@aws-sdk/client-apigatewaymanagementapi 3.306.0 → 3.310.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -36,10 +36,10 @@ class DeleteConnectionCommand extends smithy_client_1.Command {
36
36
  return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
37
37
  }
38
38
  serialize(input, context) {
39
- return (0, Aws_restJson1_1.serializeAws_restJson1DeleteConnectionCommand)(input, context);
39
+ return (0, Aws_restJson1_1.se_DeleteConnectionCommand)(input, context);
40
40
  }
41
41
  deserialize(output, context) {
42
- return (0, Aws_restJson1_1.deserializeAws_restJson1DeleteConnectionCommand)(output, context);
42
+ return (0, Aws_restJson1_1.de_DeleteConnectionCommand)(output, context);
43
43
  }
44
44
  }
45
45
  exports.DeleteConnectionCommand = DeleteConnectionCommand;
@@ -36,10 +36,10 @@ class GetConnectionCommand extends smithy_client_1.Command {
36
36
  return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
37
37
  }
38
38
  serialize(input, context) {
39
- return (0, Aws_restJson1_1.serializeAws_restJson1GetConnectionCommand)(input, context);
39
+ return (0, Aws_restJson1_1.se_GetConnectionCommand)(input, context);
40
40
  }
41
41
  deserialize(output, context) {
42
- return (0, Aws_restJson1_1.deserializeAws_restJson1GetConnectionCommand)(output, context);
42
+ return (0, Aws_restJson1_1.de_GetConnectionCommand)(output, context);
43
43
  }
44
44
  }
45
45
  exports.GetConnectionCommand = GetConnectionCommand;
@@ -36,10 +36,10 @@ class PostToConnectionCommand extends smithy_client_1.Command {
36
36
  return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
37
37
  }
38
38
  serialize(input, context) {
39
- return (0, Aws_restJson1_1.serializeAws_restJson1PostToConnectionCommand)(input, context);
39
+ return (0, Aws_restJson1_1.se_PostToConnectionCommand)(input, context);
40
40
  }
41
41
  deserialize(output, context) {
42
- return (0, Aws_restJson1_1.deserializeAws_restJson1PostToConnectionCommand)(output, context);
42
+ return (0, Aws_restJson1_1.de_PostToConnectionCommand)(output, context);
43
43
  }
44
44
  }
45
45
  exports.PostToConnectionCommand = PostToConnectionCommand;
@@ -1,11 +1,11 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.deserializeAws_restJson1PostToConnectionCommand = exports.deserializeAws_restJson1GetConnectionCommand = exports.deserializeAws_restJson1DeleteConnectionCommand = exports.serializeAws_restJson1PostToConnectionCommand = exports.serializeAws_restJson1GetConnectionCommand = exports.serializeAws_restJson1DeleteConnectionCommand = void 0;
3
+ exports.de_PostToConnectionCommand = exports.de_GetConnectionCommand = exports.de_DeleteConnectionCommand = exports.se_PostToConnectionCommand = exports.se_GetConnectionCommand = exports.se_DeleteConnectionCommand = void 0;
4
4
  const protocol_http_1 = require("@aws-sdk/protocol-http");
5
5
  const smithy_client_1 = require("@aws-sdk/smithy-client");
6
6
  const ApiGatewayManagementApiServiceException_1 = require("../models/ApiGatewayManagementApiServiceException");
7
7
  const models_0_1 = require("../models/models_0");
8
- const serializeAws_restJson1DeleteConnectionCommand = async (input, context) => {
8
+ const se_DeleteConnectionCommand = async (input, context) => {
9
9
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
10
10
  const headers = {};
11
11
  let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/@connections/{ConnectionId}";
@@ -21,8 +21,8 @@ const serializeAws_restJson1DeleteConnectionCommand = async (input, context) =>
21
21
  body,
22
22
  });
23
23
  };
24
- exports.serializeAws_restJson1DeleteConnectionCommand = serializeAws_restJson1DeleteConnectionCommand;
25
- const serializeAws_restJson1GetConnectionCommand = async (input, context) => {
24
+ exports.se_DeleteConnectionCommand = se_DeleteConnectionCommand;
25
+ const se_GetConnectionCommand = async (input, context) => {
26
26
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
27
27
  const headers = {};
28
28
  let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/@connections/{ConnectionId}";
@@ -38,8 +38,8 @@ const serializeAws_restJson1GetConnectionCommand = async (input, context) => {
38
38
  body,
39
39
  });
40
40
  };
41
- exports.serializeAws_restJson1GetConnectionCommand = serializeAws_restJson1GetConnectionCommand;
42
- const serializeAws_restJson1PostToConnectionCommand = async (input, context) => {
41
+ exports.se_GetConnectionCommand = se_GetConnectionCommand;
42
+ const se_PostToConnectionCommand = async (input, context) => {
43
43
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
44
44
  const headers = {
45
45
  "content-type": "application/octet-stream",
@@ -60,10 +60,10 @@ const serializeAws_restJson1PostToConnectionCommand = async (input, context) =>
60
60
  body,
61
61
  });
62
62
  };
63
- exports.serializeAws_restJson1PostToConnectionCommand = serializeAws_restJson1PostToConnectionCommand;
64
- const deserializeAws_restJson1DeleteConnectionCommand = async (output, context) => {
63
+ exports.se_PostToConnectionCommand = se_PostToConnectionCommand;
64
+ const de_DeleteConnectionCommand = async (output, context) => {
65
65
  if (output.statusCode !== 204 && output.statusCode >= 300) {
66
- return deserializeAws_restJson1DeleteConnectionCommandError(output, context);
66
+ return de_DeleteConnectionCommandError(output, context);
67
67
  }
68
68
  const contents = map({
69
69
  $metadata: deserializeMetadata(output),
@@ -71,8 +71,8 @@ const deserializeAws_restJson1DeleteConnectionCommand = async (output, context)
71
71
  await collectBody(output.body, context);
72
72
  return contents;
73
73
  };
74
- exports.deserializeAws_restJson1DeleteConnectionCommand = deserializeAws_restJson1DeleteConnectionCommand;
75
- const deserializeAws_restJson1DeleteConnectionCommandError = async (output, context) => {
74
+ exports.de_DeleteConnectionCommand = de_DeleteConnectionCommand;
75
+ const de_DeleteConnectionCommandError = async (output, context) => {
76
76
  const parsedOutput = {
77
77
  ...output,
78
78
  body: await parseErrorBody(output.body, context),
@@ -81,13 +81,13 @@ const deserializeAws_restJson1DeleteConnectionCommandError = async (output, cont
81
81
  switch (errorCode) {
82
82
  case "ForbiddenException":
83
83
  case "com.amazonaws.apigatewaymanagementapi#ForbiddenException":
84
- throw await deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context);
84
+ throw await de_ForbiddenExceptionRes(parsedOutput, context);
85
85
  case "GoneException":
86
86
  case "com.amazonaws.apigatewaymanagementapi#GoneException":
87
- throw await deserializeAws_restJson1GoneExceptionResponse(parsedOutput, context);
87
+ throw await de_GoneExceptionRes(parsedOutput, context);
88
88
  case "LimitExceededException":
89
89
  case "com.amazonaws.apigatewaymanagementapi#LimitExceededException":
90
- throw await deserializeAws_restJson1LimitExceededExceptionResponse(parsedOutput, context);
90
+ throw await de_LimitExceededExceptionRes(parsedOutput, context);
91
91
  default:
92
92
  const parsedBody = parsedOutput.body;
93
93
  (0, smithy_client_1.throwDefaultError)({
@@ -98,9 +98,9 @@ const deserializeAws_restJson1DeleteConnectionCommandError = async (output, cont
98
98
  });
99
99
  }
100
100
  };
101
- const deserializeAws_restJson1GetConnectionCommand = async (output, context) => {
101
+ const de_GetConnectionCommand = async (output, context) => {
102
102
  if (output.statusCode !== 200 && output.statusCode >= 300) {
103
- return deserializeAws_restJson1GetConnectionCommandError(output, context);
103
+ return de_GetConnectionCommandError(output, context);
104
104
  }
105
105
  const contents = map({
106
106
  $metadata: deserializeMetadata(output),
@@ -110,15 +110,15 @@ const deserializeAws_restJson1GetConnectionCommand = async (output, context) =>
110
110
  contents.ConnectedAt = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(data.connectedAt));
111
111
  }
112
112
  if (data.identity != null) {
113
- contents.Identity = deserializeAws_restJson1Identity(data.identity, context);
113
+ contents.Identity = de_Identity(data.identity, context);
114
114
  }
115
115
  if (data.lastActiveAt != null) {
116
116
  contents.LastActiveAt = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(data.lastActiveAt));
117
117
  }
118
118
  return contents;
119
119
  };
120
- exports.deserializeAws_restJson1GetConnectionCommand = deserializeAws_restJson1GetConnectionCommand;
121
- const deserializeAws_restJson1GetConnectionCommandError = async (output, context) => {
120
+ exports.de_GetConnectionCommand = de_GetConnectionCommand;
121
+ const de_GetConnectionCommandError = async (output, context) => {
122
122
  const parsedOutput = {
123
123
  ...output,
124
124
  body: await parseErrorBody(output.body, context),
@@ -127,13 +127,13 @@ const deserializeAws_restJson1GetConnectionCommandError = async (output, context
127
127
  switch (errorCode) {
128
128
  case "ForbiddenException":
129
129
  case "com.amazonaws.apigatewaymanagementapi#ForbiddenException":
130
- throw await deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context);
130
+ throw await de_ForbiddenExceptionRes(parsedOutput, context);
131
131
  case "GoneException":
132
132
  case "com.amazonaws.apigatewaymanagementapi#GoneException":
133
- throw await deserializeAws_restJson1GoneExceptionResponse(parsedOutput, context);
133
+ throw await de_GoneExceptionRes(parsedOutput, context);
134
134
  case "LimitExceededException":
135
135
  case "com.amazonaws.apigatewaymanagementapi#LimitExceededException":
136
- throw await deserializeAws_restJson1LimitExceededExceptionResponse(parsedOutput, context);
136
+ throw await de_LimitExceededExceptionRes(parsedOutput, context);
137
137
  default:
138
138
  const parsedBody = parsedOutput.body;
139
139
  (0, smithy_client_1.throwDefaultError)({
@@ -144,9 +144,9 @@ const deserializeAws_restJson1GetConnectionCommandError = async (output, context
144
144
  });
145
145
  }
146
146
  };
147
- const deserializeAws_restJson1PostToConnectionCommand = async (output, context) => {
147
+ const de_PostToConnectionCommand = async (output, context) => {
148
148
  if (output.statusCode !== 200 && output.statusCode >= 300) {
149
- return deserializeAws_restJson1PostToConnectionCommandError(output, context);
149
+ return de_PostToConnectionCommandError(output, context);
150
150
  }
151
151
  const contents = map({
152
152
  $metadata: deserializeMetadata(output),
@@ -154,8 +154,8 @@ const deserializeAws_restJson1PostToConnectionCommand = async (output, context)
154
154
  await collectBody(output.body, context);
155
155
  return contents;
156
156
  };
157
- exports.deserializeAws_restJson1PostToConnectionCommand = deserializeAws_restJson1PostToConnectionCommand;
158
- const deserializeAws_restJson1PostToConnectionCommandError = async (output, context) => {
157
+ exports.de_PostToConnectionCommand = de_PostToConnectionCommand;
158
+ const de_PostToConnectionCommandError = async (output, context) => {
159
159
  const parsedOutput = {
160
160
  ...output,
161
161
  body: await parseErrorBody(output.body, context),
@@ -164,16 +164,16 @@ const deserializeAws_restJson1PostToConnectionCommandError = async (output, cont
164
164
  switch (errorCode) {
165
165
  case "ForbiddenException":
166
166
  case "com.amazonaws.apigatewaymanagementapi#ForbiddenException":
167
- throw await deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context);
167
+ throw await de_ForbiddenExceptionRes(parsedOutput, context);
168
168
  case "GoneException":
169
169
  case "com.amazonaws.apigatewaymanagementapi#GoneException":
170
- throw await deserializeAws_restJson1GoneExceptionResponse(parsedOutput, context);
170
+ throw await de_GoneExceptionRes(parsedOutput, context);
171
171
  case "LimitExceededException":
172
172
  case "com.amazonaws.apigatewaymanagementapi#LimitExceededException":
173
- throw await deserializeAws_restJson1LimitExceededExceptionResponse(parsedOutput, context);
173
+ throw await de_LimitExceededExceptionRes(parsedOutput, context);
174
174
  case "PayloadTooLargeException":
175
175
  case "com.amazonaws.apigatewaymanagementapi#PayloadTooLargeException":
176
- throw await deserializeAws_restJson1PayloadTooLargeExceptionResponse(parsedOutput, context);
176
+ throw await de_PayloadTooLargeExceptionRes(parsedOutput, context);
177
177
  default:
178
178
  const parsedBody = parsedOutput.body;
179
179
  (0, smithy_client_1.throwDefaultError)({
@@ -185,7 +185,7 @@ const deserializeAws_restJson1PostToConnectionCommandError = async (output, cont
185
185
  }
186
186
  };
187
187
  const map = smithy_client_1.map;
188
- const deserializeAws_restJson1ForbiddenExceptionResponse = async (parsedOutput, context) => {
188
+ const de_ForbiddenExceptionRes = async (parsedOutput, context) => {
189
189
  const contents = map({});
190
190
  const data = parsedOutput.body;
191
191
  const exception = new models_0_1.ForbiddenException({
@@ -194,7 +194,7 @@ const deserializeAws_restJson1ForbiddenExceptionResponse = async (parsedOutput,
194
194
  });
195
195
  return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
196
196
  };
197
- const deserializeAws_restJson1GoneExceptionResponse = async (parsedOutput, context) => {
197
+ const de_GoneExceptionRes = async (parsedOutput, context) => {
198
198
  const contents = map({});
199
199
  const data = parsedOutput.body;
200
200
  const exception = new models_0_1.GoneException({
@@ -203,7 +203,7 @@ const deserializeAws_restJson1GoneExceptionResponse = async (parsedOutput, conte
203
203
  });
204
204
  return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
205
205
  };
206
- const deserializeAws_restJson1LimitExceededExceptionResponse = async (parsedOutput, context) => {
206
+ const de_LimitExceededExceptionRes = async (parsedOutput, context) => {
207
207
  const contents = map({});
208
208
  const data = parsedOutput.body;
209
209
  const exception = new models_0_1.LimitExceededException({
@@ -212,7 +212,7 @@ const deserializeAws_restJson1LimitExceededExceptionResponse = async (parsedOutp
212
212
  });
213
213
  return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
214
214
  };
215
- const deserializeAws_restJson1PayloadTooLargeExceptionResponse = async (parsedOutput, context) => {
215
+ const de_PayloadTooLargeExceptionRes = async (parsedOutput, context) => {
216
216
  const contents = map({});
217
217
  const data = parsedOutput.body;
218
218
  if (data.message != null) {
@@ -224,7 +224,7 @@ const deserializeAws_restJson1PayloadTooLargeExceptionResponse = async (parsedOu
224
224
  });
225
225
  return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
226
226
  };
227
- const deserializeAws_restJson1Identity = (output, context) => {
227
+ const de_Identity = (output, context) => {
228
228
  return {
229
229
  SourceIp: (0, smithy_client_1.expectString)(output.sourceIp),
230
230
  UserAgent: (0, smithy_client_1.expectString)(output.userAgent),
@@ -1,7 +1,7 @@
1
1
  import { getEndpointPlugin } from "@aws-sdk/middleware-endpoint";
2
2
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
3
  import { Command as $Command } from "@aws-sdk/smithy-client";
4
- import { deserializeAws_restJson1DeleteConnectionCommand, serializeAws_restJson1DeleteConnectionCommand, } from "../protocols/Aws_restJson1";
4
+ import { de_DeleteConnectionCommand, se_DeleteConnectionCommand } from "../protocols/Aws_restJson1";
5
5
  export class DeleteConnectionCommand extends $Command {
6
6
  static getEndpointParameterInstructions() {
7
7
  return {
@@ -33,9 +33,9 @@ export class DeleteConnectionCommand extends $Command {
33
33
  return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
34
34
  }
35
35
  serialize(input, context) {
36
- return serializeAws_restJson1DeleteConnectionCommand(input, context);
36
+ return se_DeleteConnectionCommand(input, context);
37
37
  }
38
38
  deserialize(output, context) {
39
- return deserializeAws_restJson1DeleteConnectionCommand(output, context);
39
+ return de_DeleteConnectionCommand(output, context);
40
40
  }
41
41
  }
@@ -1,7 +1,7 @@
1
1
  import { getEndpointPlugin } from "@aws-sdk/middleware-endpoint";
2
2
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
3
  import { Command as $Command } from "@aws-sdk/smithy-client";
4
- import { deserializeAws_restJson1GetConnectionCommand, serializeAws_restJson1GetConnectionCommand, } from "../protocols/Aws_restJson1";
4
+ import { de_GetConnectionCommand, se_GetConnectionCommand } from "../protocols/Aws_restJson1";
5
5
  export class GetConnectionCommand extends $Command {
6
6
  static getEndpointParameterInstructions() {
7
7
  return {
@@ -33,9 +33,9 @@ export class GetConnectionCommand extends $Command {
33
33
  return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
34
34
  }
35
35
  serialize(input, context) {
36
- return serializeAws_restJson1GetConnectionCommand(input, context);
36
+ return se_GetConnectionCommand(input, context);
37
37
  }
38
38
  deserialize(output, context) {
39
- return deserializeAws_restJson1GetConnectionCommand(output, context);
39
+ return de_GetConnectionCommand(output, context);
40
40
  }
41
41
  }
@@ -1,7 +1,7 @@
1
1
  import { getEndpointPlugin } from "@aws-sdk/middleware-endpoint";
2
2
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
3
  import { Command as $Command } from "@aws-sdk/smithy-client";
4
- import { deserializeAws_restJson1PostToConnectionCommand, serializeAws_restJson1PostToConnectionCommand, } from "../protocols/Aws_restJson1";
4
+ import { de_PostToConnectionCommand, se_PostToConnectionCommand } from "../protocols/Aws_restJson1";
5
5
  export class PostToConnectionCommand extends $Command {
6
6
  static getEndpointParameterInstructions() {
7
7
  return {
@@ -33,9 +33,9 @@ export class PostToConnectionCommand extends $Command {
33
33
  return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
34
34
  }
35
35
  serialize(input, context) {
36
- return serializeAws_restJson1PostToConnectionCommand(input, context);
36
+ return se_PostToConnectionCommand(input, context);
37
37
  }
38
38
  deserialize(output, context) {
39
- return deserializeAws_restJson1PostToConnectionCommand(output, context);
39
+ return de_PostToConnectionCommand(output, context);
40
40
  }
41
41
  }
@@ -2,7 +2,7 @@ import { HttpRequest as __HttpRequest } from "@aws-sdk/protocol-http";
2
2
  import { decorateServiceException as __decorateServiceException, expectNonNull as __expectNonNull, expectObject as __expectObject, expectString as __expectString, map as __map, parseRfc3339DateTimeWithOffset as __parseRfc3339DateTimeWithOffset, resolvedPath as __resolvedPath, throwDefaultError, } from "@aws-sdk/smithy-client";
3
3
  import { ApiGatewayManagementApiServiceException as __BaseException } from "../models/ApiGatewayManagementApiServiceException";
4
4
  import { ForbiddenException, GoneException, LimitExceededException, PayloadTooLargeException, } from "../models/models_0";
5
- export const serializeAws_restJson1DeleteConnectionCommand = async (input, context) => {
5
+ export const se_DeleteConnectionCommand = async (input, context) => {
6
6
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
7
7
  const headers = {};
8
8
  let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/@connections/{ConnectionId}";
@@ -18,7 +18,7 @@ export const serializeAws_restJson1DeleteConnectionCommand = async (input, conte
18
18
  body,
19
19
  });
20
20
  };
21
- export const serializeAws_restJson1GetConnectionCommand = async (input, context) => {
21
+ export const se_GetConnectionCommand = async (input, context) => {
22
22
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
23
23
  const headers = {};
24
24
  let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/@connections/{ConnectionId}";
@@ -34,7 +34,7 @@ export const serializeAws_restJson1GetConnectionCommand = async (input, context)
34
34
  body,
35
35
  });
36
36
  };
37
- export const serializeAws_restJson1PostToConnectionCommand = async (input, context) => {
37
+ export const se_PostToConnectionCommand = async (input, context) => {
38
38
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
39
39
  const headers = {
40
40
  "content-type": "application/octet-stream",
@@ -55,9 +55,9 @@ export const serializeAws_restJson1PostToConnectionCommand = async (input, conte
55
55
  body,
56
56
  });
57
57
  };
58
- export const deserializeAws_restJson1DeleteConnectionCommand = async (output, context) => {
58
+ export const de_DeleteConnectionCommand = async (output, context) => {
59
59
  if (output.statusCode !== 204 && output.statusCode >= 300) {
60
- return deserializeAws_restJson1DeleteConnectionCommandError(output, context);
60
+ return de_DeleteConnectionCommandError(output, context);
61
61
  }
62
62
  const contents = map({
63
63
  $metadata: deserializeMetadata(output),
@@ -65,7 +65,7 @@ export const deserializeAws_restJson1DeleteConnectionCommand = async (output, co
65
65
  await collectBody(output.body, context);
66
66
  return contents;
67
67
  };
68
- const deserializeAws_restJson1DeleteConnectionCommandError = async (output, context) => {
68
+ const de_DeleteConnectionCommandError = async (output, context) => {
69
69
  const parsedOutput = {
70
70
  ...output,
71
71
  body: await parseErrorBody(output.body, context),
@@ -74,13 +74,13 @@ const deserializeAws_restJson1DeleteConnectionCommandError = async (output, cont
74
74
  switch (errorCode) {
75
75
  case "ForbiddenException":
76
76
  case "com.amazonaws.apigatewaymanagementapi#ForbiddenException":
77
- throw await deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context);
77
+ throw await de_ForbiddenExceptionRes(parsedOutput, context);
78
78
  case "GoneException":
79
79
  case "com.amazonaws.apigatewaymanagementapi#GoneException":
80
- throw await deserializeAws_restJson1GoneExceptionResponse(parsedOutput, context);
80
+ throw await de_GoneExceptionRes(parsedOutput, context);
81
81
  case "LimitExceededException":
82
82
  case "com.amazonaws.apigatewaymanagementapi#LimitExceededException":
83
- throw await deserializeAws_restJson1LimitExceededExceptionResponse(parsedOutput, context);
83
+ throw await de_LimitExceededExceptionRes(parsedOutput, context);
84
84
  default:
85
85
  const parsedBody = parsedOutput.body;
86
86
  throwDefaultError({
@@ -91,9 +91,9 @@ const deserializeAws_restJson1DeleteConnectionCommandError = async (output, cont
91
91
  });
92
92
  }
93
93
  };
94
- export const deserializeAws_restJson1GetConnectionCommand = async (output, context) => {
94
+ export const de_GetConnectionCommand = async (output, context) => {
95
95
  if (output.statusCode !== 200 && output.statusCode >= 300) {
96
- return deserializeAws_restJson1GetConnectionCommandError(output, context);
96
+ return de_GetConnectionCommandError(output, context);
97
97
  }
98
98
  const contents = map({
99
99
  $metadata: deserializeMetadata(output),
@@ -103,14 +103,14 @@ export const deserializeAws_restJson1GetConnectionCommand = async (output, conte
103
103
  contents.ConnectedAt = __expectNonNull(__parseRfc3339DateTimeWithOffset(data.connectedAt));
104
104
  }
105
105
  if (data.identity != null) {
106
- contents.Identity = deserializeAws_restJson1Identity(data.identity, context);
106
+ contents.Identity = de_Identity(data.identity, context);
107
107
  }
108
108
  if (data.lastActiveAt != null) {
109
109
  contents.LastActiveAt = __expectNonNull(__parseRfc3339DateTimeWithOffset(data.lastActiveAt));
110
110
  }
111
111
  return contents;
112
112
  };
113
- const deserializeAws_restJson1GetConnectionCommandError = async (output, context) => {
113
+ const de_GetConnectionCommandError = async (output, context) => {
114
114
  const parsedOutput = {
115
115
  ...output,
116
116
  body: await parseErrorBody(output.body, context),
@@ -119,13 +119,13 @@ const deserializeAws_restJson1GetConnectionCommandError = async (output, context
119
119
  switch (errorCode) {
120
120
  case "ForbiddenException":
121
121
  case "com.amazonaws.apigatewaymanagementapi#ForbiddenException":
122
- throw await deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context);
122
+ throw await de_ForbiddenExceptionRes(parsedOutput, context);
123
123
  case "GoneException":
124
124
  case "com.amazonaws.apigatewaymanagementapi#GoneException":
125
- throw await deserializeAws_restJson1GoneExceptionResponse(parsedOutput, context);
125
+ throw await de_GoneExceptionRes(parsedOutput, context);
126
126
  case "LimitExceededException":
127
127
  case "com.amazonaws.apigatewaymanagementapi#LimitExceededException":
128
- throw await deserializeAws_restJson1LimitExceededExceptionResponse(parsedOutput, context);
128
+ throw await de_LimitExceededExceptionRes(parsedOutput, context);
129
129
  default:
130
130
  const parsedBody = parsedOutput.body;
131
131
  throwDefaultError({
@@ -136,9 +136,9 @@ const deserializeAws_restJson1GetConnectionCommandError = async (output, context
136
136
  });
137
137
  }
138
138
  };
139
- export const deserializeAws_restJson1PostToConnectionCommand = async (output, context) => {
139
+ export const de_PostToConnectionCommand = async (output, context) => {
140
140
  if (output.statusCode !== 200 && output.statusCode >= 300) {
141
- return deserializeAws_restJson1PostToConnectionCommandError(output, context);
141
+ return de_PostToConnectionCommandError(output, context);
142
142
  }
143
143
  const contents = map({
144
144
  $metadata: deserializeMetadata(output),
@@ -146,7 +146,7 @@ export const deserializeAws_restJson1PostToConnectionCommand = async (output, co
146
146
  await collectBody(output.body, context);
147
147
  return contents;
148
148
  };
149
- const deserializeAws_restJson1PostToConnectionCommandError = async (output, context) => {
149
+ const de_PostToConnectionCommandError = async (output, context) => {
150
150
  const parsedOutput = {
151
151
  ...output,
152
152
  body: await parseErrorBody(output.body, context),
@@ -155,16 +155,16 @@ const deserializeAws_restJson1PostToConnectionCommandError = async (output, cont
155
155
  switch (errorCode) {
156
156
  case "ForbiddenException":
157
157
  case "com.amazonaws.apigatewaymanagementapi#ForbiddenException":
158
- throw await deserializeAws_restJson1ForbiddenExceptionResponse(parsedOutput, context);
158
+ throw await de_ForbiddenExceptionRes(parsedOutput, context);
159
159
  case "GoneException":
160
160
  case "com.amazonaws.apigatewaymanagementapi#GoneException":
161
- throw await deserializeAws_restJson1GoneExceptionResponse(parsedOutput, context);
161
+ throw await de_GoneExceptionRes(parsedOutput, context);
162
162
  case "LimitExceededException":
163
163
  case "com.amazonaws.apigatewaymanagementapi#LimitExceededException":
164
- throw await deserializeAws_restJson1LimitExceededExceptionResponse(parsedOutput, context);
164
+ throw await de_LimitExceededExceptionRes(parsedOutput, context);
165
165
  case "PayloadTooLargeException":
166
166
  case "com.amazonaws.apigatewaymanagementapi#PayloadTooLargeException":
167
- throw await deserializeAws_restJson1PayloadTooLargeExceptionResponse(parsedOutput, context);
167
+ throw await de_PayloadTooLargeExceptionRes(parsedOutput, context);
168
168
  default:
169
169
  const parsedBody = parsedOutput.body;
170
170
  throwDefaultError({
@@ -176,7 +176,7 @@ const deserializeAws_restJson1PostToConnectionCommandError = async (output, cont
176
176
  }
177
177
  };
178
178
  const map = __map;
179
- const deserializeAws_restJson1ForbiddenExceptionResponse = async (parsedOutput, context) => {
179
+ const de_ForbiddenExceptionRes = async (parsedOutput, context) => {
180
180
  const contents = map({});
181
181
  const data = parsedOutput.body;
182
182
  const exception = new ForbiddenException({
@@ -185,7 +185,7 @@ const deserializeAws_restJson1ForbiddenExceptionResponse = async (parsedOutput,
185
185
  });
186
186
  return __decorateServiceException(exception, parsedOutput.body);
187
187
  };
188
- const deserializeAws_restJson1GoneExceptionResponse = async (parsedOutput, context) => {
188
+ const de_GoneExceptionRes = async (parsedOutput, context) => {
189
189
  const contents = map({});
190
190
  const data = parsedOutput.body;
191
191
  const exception = new GoneException({
@@ -194,7 +194,7 @@ const deserializeAws_restJson1GoneExceptionResponse = async (parsedOutput, conte
194
194
  });
195
195
  return __decorateServiceException(exception, parsedOutput.body);
196
196
  };
197
- const deserializeAws_restJson1LimitExceededExceptionResponse = async (parsedOutput, context) => {
197
+ const de_LimitExceededExceptionRes = async (parsedOutput, context) => {
198
198
  const contents = map({});
199
199
  const data = parsedOutput.body;
200
200
  const exception = new LimitExceededException({
@@ -203,7 +203,7 @@ const deserializeAws_restJson1LimitExceededExceptionResponse = async (parsedOutp
203
203
  });
204
204
  return __decorateServiceException(exception, parsedOutput.body);
205
205
  };
206
- const deserializeAws_restJson1PayloadTooLargeExceptionResponse = async (parsedOutput, context) => {
206
+ const de_PayloadTooLargeExceptionRes = async (parsedOutput, context) => {
207
207
  const contents = map({});
208
208
  const data = parsedOutput.body;
209
209
  if (data.message != null) {
@@ -215,7 +215,7 @@ const deserializeAws_restJson1PayloadTooLargeExceptionResponse = async (parsedOu
215
215
  });
216
216
  return __decorateServiceException(exception, parsedOutput.body);
217
217
  };
218
- const deserializeAws_restJson1Identity = (output, context) => {
218
+ const de_Identity = (output, context) => {
219
219
  return {
220
220
  SourceIp: __expectString(output.sourceIp),
221
221
  UserAgent: __expectString(output.userAgent),
@@ -3,9 +3,27 @@ import { SerdeContext as __SerdeContext } from "@aws-sdk/types";
3
3
  import { DeleteConnectionCommandInput, DeleteConnectionCommandOutput } from "../commands/DeleteConnectionCommand";
4
4
  import { GetConnectionCommandInput, GetConnectionCommandOutput } from "../commands/GetConnectionCommand";
5
5
  import { PostToConnectionCommandInput, PostToConnectionCommandOutput } from "../commands/PostToConnectionCommand";
6
- export declare const serializeAws_restJson1DeleteConnectionCommand: (input: DeleteConnectionCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
7
- export declare const serializeAws_restJson1GetConnectionCommand: (input: GetConnectionCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
8
- export declare const serializeAws_restJson1PostToConnectionCommand: (input: PostToConnectionCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
9
- export declare const deserializeAws_restJson1DeleteConnectionCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<DeleteConnectionCommandOutput>;
10
- export declare const deserializeAws_restJson1GetConnectionCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<GetConnectionCommandOutput>;
11
- export declare const deserializeAws_restJson1PostToConnectionCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<PostToConnectionCommandOutput>;
6
+ /**
7
+ * serializeAws_restJson1DeleteConnectionCommand
8
+ */
9
+ export declare const se_DeleteConnectionCommand: (input: DeleteConnectionCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
10
+ /**
11
+ * serializeAws_restJson1GetConnectionCommand
12
+ */
13
+ export declare const se_GetConnectionCommand: (input: GetConnectionCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
14
+ /**
15
+ * serializeAws_restJson1PostToConnectionCommand
16
+ */
17
+ export declare const se_PostToConnectionCommand: (input: PostToConnectionCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
18
+ /**
19
+ * deserializeAws_restJson1DeleteConnectionCommand
20
+ */
21
+ export declare const de_DeleteConnectionCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<DeleteConnectionCommandOutput>;
22
+ /**
23
+ * deserializeAws_restJson1GetConnectionCommand
24
+ */
25
+ export declare const de_GetConnectionCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<GetConnectionCommandOutput>;
26
+ /**
27
+ * deserializeAws_restJson1PostToConnectionCommand
28
+ */
29
+ export declare const de_PostToConnectionCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<PostToConnectionCommandOutput>;
@@ -15,27 +15,27 @@ import {
15
15
  PostToConnectionCommandInput,
16
16
  PostToConnectionCommandOutput,
17
17
  } from "../commands/PostToConnectionCommand";
18
- export declare const serializeAws_restJson1DeleteConnectionCommand: (
18
+ export declare const se_DeleteConnectionCommand: (
19
19
  input: DeleteConnectionCommandInput,
20
20
  context: __SerdeContext
21
21
  ) => Promise<__HttpRequest>;
22
- export declare const serializeAws_restJson1GetConnectionCommand: (
22
+ export declare const se_GetConnectionCommand: (
23
23
  input: GetConnectionCommandInput,
24
24
  context: __SerdeContext
25
25
  ) => Promise<__HttpRequest>;
26
- export declare const serializeAws_restJson1PostToConnectionCommand: (
26
+ export declare const se_PostToConnectionCommand: (
27
27
  input: PostToConnectionCommandInput,
28
28
  context: __SerdeContext
29
29
  ) => Promise<__HttpRequest>;
30
- export declare const deserializeAws_restJson1DeleteConnectionCommand: (
30
+ export declare const de_DeleteConnectionCommand: (
31
31
  output: __HttpResponse,
32
32
  context: __SerdeContext
33
33
  ) => Promise<DeleteConnectionCommandOutput>;
34
- export declare const deserializeAws_restJson1GetConnectionCommand: (
34
+ export declare const de_GetConnectionCommand: (
35
35
  output: __HttpResponse,
36
36
  context: __SerdeContext
37
37
  ) => Promise<GetConnectionCommandOutput>;
38
- export declare const deserializeAws_restJson1PostToConnectionCommand: (
38
+ export declare const de_PostToConnectionCommand: (
39
39
  output: __HttpResponse,
40
40
  context: __SerdeContext
41
41
  ) => Promise<PostToConnectionCommandOutput>;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-apigatewaymanagementapi",
3
3
  "description": "AWS SDK for JavaScript Apigatewaymanagementapi Client for Node.js, Browser and React Native",
4
- "version": "3.306.0",
4
+ "version": "3.310.0",
5
5
  "scripts": {
6
6
  "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
7
7
  "build:cjs": "tsc -p tsconfig.cjs.json",
@@ -21,42 +21,42 @@
21
21
  "dependencies": {
22
22
  "@aws-crypto/sha256-browser": "3.0.0",
23
23
  "@aws-crypto/sha256-js": "3.0.0",
24
- "@aws-sdk/client-sts": "3.306.0",
25
- "@aws-sdk/config-resolver": "3.306.0",
26
- "@aws-sdk/credential-provider-node": "3.306.0",
27
- "@aws-sdk/fetch-http-handler": "3.306.0",
28
- "@aws-sdk/hash-node": "3.306.0",
29
- "@aws-sdk/invalid-dependency": "3.306.0",
30
- "@aws-sdk/middleware-content-length": "3.306.0",
31
- "@aws-sdk/middleware-endpoint": "3.306.0",
32
- "@aws-sdk/middleware-host-header": "3.306.0",
33
- "@aws-sdk/middleware-logger": "3.306.0",
34
- "@aws-sdk/middleware-recursion-detection": "3.306.0",
35
- "@aws-sdk/middleware-retry": "3.306.0",
36
- "@aws-sdk/middleware-serde": "3.306.0",
37
- "@aws-sdk/middleware-signing": "3.306.0",
38
- "@aws-sdk/middleware-stack": "3.306.0",
39
- "@aws-sdk/middleware-user-agent": "3.306.0",
40
- "@aws-sdk/node-config-provider": "3.306.0",
41
- "@aws-sdk/node-http-handler": "3.306.0",
42
- "@aws-sdk/protocol-http": "3.306.0",
43
- "@aws-sdk/smithy-client": "3.306.0",
44
- "@aws-sdk/types": "3.306.0",
45
- "@aws-sdk/url-parser": "3.306.0",
46
- "@aws-sdk/util-base64": "3.303.0",
47
- "@aws-sdk/util-body-length-browser": "3.303.0",
48
- "@aws-sdk/util-body-length-node": "3.303.0",
49
- "@aws-sdk/util-defaults-mode-browser": "3.306.0",
50
- "@aws-sdk/util-defaults-mode-node": "3.306.0",
51
- "@aws-sdk/util-endpoints": "3.306.0",
52
- "@aws-sdk/util-retry": "3.306.0",
53
- "@aws-sdk/util-user-agent-browser": "3.306.0",
54
- "@aws-sdk/util-user-agent-node": "3.306.0",
55
- "@aws-sdk/util-utf8": "3.303.0",
24
+ "@aws-sdk/client-sts": "3.310.0",
25
+ "@aws-sdk/config-resolver": "3.310.0",
26
+ "@aws-sdk/credential-provider-node": "3.310.0",
27
+ "@aws-sdk/fetch-http-handler": "3.310.0",
28
+ "@aws-sdk/hash-node": "3.310.0",
29
+ "@aws-sdk/invalid-dependency": "3.310.0",
30
+ "@aws-sdk/middleware-content-length": "3.310.0",
31
+ "@aws-sdk/middleware-endpoint": "3.310.0",
32
+ "@aws-sdk/middleware-host-header": "3.310.0",
33
+ "@aws-sdk/middleware-logger": "3.310.0",
34
+ "@aws-sdk/middleware-recursion-detection": "3.310.0",
35
+ "@aws-sdk/middleware-retry": "3.310.0",
36
+ "@aws-sdk/middleware-serde": "3.310.0",
37
+ "@aws-sdk/middleware-signing": "3.310.0",
38
+ "@aws-sdk/middleware-stack": "3.310.0",
39
+ "@aws-sdk/middleware-user-agent": "3.310.0",
40
+ "@aws-sdk/node-config-provider": "3.310.0",
41
+ "@aws-sdk/node-http-handler": "3.310.0",
42
+ "@aws-sdk/protocol-http": "3.310.0",
43
+ "@aws-sdk/smithy-client": "3.310.0",
44
+ "@aws-sdk/types": "3.310.0",
45
+ "@aws-sdk/url-parser": "3.310.0",
46
+ "@aws-sdk/util-base64": "3.310.0",
47
+ "@aws-sdk/util-body-length-browser": "3.310.0",
48
+ "@aws-sdk/util-body-length-node": "3.310.0",
49
+ "@aws-sdk/util-defaults-mode-browser": "3.310.0",
50
+ "@aws-sdk/util-defaults-mode-node": "3.310.0",
51
+ "@aws-sdk/util-endpoints": "3.310.0",
52
+ "@aws-sdk/util-retry": "3.310.0",
53
+ "@aws-sdk/util-user-agent-browser": "3.310.0",
54
+ "@aws-sdk/util-user-agent-node": "3.310.0",
55
+ "@aws-sdk/util-utf8": "3.310.0",
56
56
  "tslib": "^2.5.0"
57
57
  },
58
58
  "devDependencies": {
59
- "@aws-sdk/service-client-documentation-generator": "3.303.0",
59
+ "@aws-sdk/service-client-documentation-generator": "3.310.0",
60
60
  "@tsconfig/node14": "1.0.3",
61
61
  "@types/node": "^14.14.31",
62
62
  "concurrently": "7.0.0",
@@ -76,7 +76,7 @@
76
76
  }
77
77
  },
78
78
  "files": [
79
- "dist-*"
79
+ "dist-*/**"
80
80
  ],
81
81
  "author": {
82
82
  "name": "AWS SDK for JavaScript Team",