Skip to content

Commit f69ff44

Browse files
authored
feat: update clients as of 12/12/2020 (#1771)
1 parent e22d9ef commit f69ff44

File tree

250 files changed

+136207
-81011
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

250 files changed

+136207
-81011
lines changed

clients/client-accessanalyzer/protocols/Aws_restJson1.ts

Lines changed: 200 additions & 113 deletions
Large diffs are not rendered by default.

clients/client-acm-pca/protocols/Aws_json1_1.ts

Lines changed: 262 additions & 175 deletions
Large diffs are not rendered by default.

clients/client-acm/protocols/Aws_json1_1.ts

Lines changed: 260 additions & 105 deletions
Large diffs are not rendered by default.

clients/client-alexa-for-business/protocols/Aws_json1_1.ts

Lines changed: 1061 additions & 725 deletions
Large diffs are not rendered by default.

clients/client-amplify/protocols/Aws_restJson1.ts

Lines changed: 448 additions & 298 deletions
Large diffs are not rendered by default.

clients/client-amplifybackend/protocols/Aws_restJson1.ts

Lines changed: 400 additions & 262 deletions
Large diffs are not rendered by default.

clients/client-api-gateway/protocols/Aws_restJson1.ts

Lines changed: 892 additions & 677 deletions
Large diffs are not rendered by default.

clients/client-apigatewaymanagementapi/protocols/Aws_restJson1.ts

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,7 @@ export const serializeAws_restJson1DeleteConnectionCommand = async (
2424
input: DeleteConnectionCommandInput,
2525
context: __SerdeContext
2626
): Promise<__HttpRequest> => {
27-
const headers: any = {
28-
"Content-Type": "",
29-
};
27+
const headers: any = {};
3028
let resolvedPath = "/@connections/{ConnectionId}";
3129
if (input.ConnectionId !== undefined) {
3230
const labelValue: string = input.ConnectionId;
@@ -54,9 +52,7 @@ export const serializeAws_restJson1GetConnectionCommand = async (
5452
input: GetConnectionCommandInput,
5553
context: __SerdeContext
5654
): Promise<__HttpRequest> => {
57-
const headers: any = {
58-
"Content-Type": "",
59-
};
55+
const headers: any = {};
6056
let resolvedPath = "/@connections/{ConnectionId}";
6157
if (input.ConnectionId !== undefined) {
6258
const labelValue: string = input.ConnectionId;
@@ -85,7 +81,7 @@ export const serializeAws_restJson1PostToConnectionCommand = async (
8581
context: __SerdeContext
8682
): Promise<__HttpRequest> => {
8783
const headers: any = {
88-
"Content-Type": "application/octet-stream",
84+
"content-type": "application/octet-stream",
8985
};
9086
let resolvedPath = "/@connections/{ConnectionId}";
9187
if (input.ConnectionId !== undefined) {
@@ -417,6 +413,7 @@ const collectBodyString = (streamBody: any, context: __SerdeContext): Promise<st
417413

418414
const isSerializableHeaderValue = (value: any): boolean =>
419415
value !== undefined &&
416+
value !== null &&
420417
value !== "" &&
421418
(!Object.getOwnPropertyNames(value).includes("length") || value.length != 0) &&
422419
(!Object.getOwnPropertyNames(value).includes("size") || value.size != 0);

clients/client-apigatewayv2/protocols/Aws_restJson1.ts

Lines changed: 840 additions & 577 deletions
Large diffs are not rendered by default.

clients/client-app-mesh/protocols/Aws_restJson1.ts

Lines changed: 705 additions & 383 deletions
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)