@aws-sdk/client-migrationhub-config 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 CreateHomeRegionControlCommand 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_json1_1_1.serializeAws_json1_1CreateHomeRegionControlCommand)(input, context);
39
+ return (0, Aws_json1_1_1.se_CreateHomeRegionControlCommand)(input, context);
40
40
  }
41
41
  deserialize(output, context) {
42
- return (0, Aws_json1_1_1.deserializeAws_json1_1CreateHomeRegionControlCommand)(output, context);
42
+ return (0, Aws_json1_1_1.de_CreateHomeRegionControlCommand)(output, context);
43
43
  }
44
44
  }
45
45
  exports.CreateHomeRegionControlCommand = CreateHomeRegionControlCommand;
@@ -36,10 +36,10 @@ class DescribeHomeRegionControlsCommand 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_json1_1_1.serializeAws_json1_1DescribeHomeRegionControlsCommand)(input, context);
39
+ return (0, Aws_json1_1_1.se_DescribeHomeRegionControlsCommand)(input, context);
40
40
  }
41
41
  deserialize(output, context) {
42
- return (0, Aws_json1_1_1.deserializeAws_json1_1DescribeHomeRegionControlsCommand)(output, context);
42
+ return (0, Aws_json1_1_1.de_DescribeHomeRegionControlsCommand)(output, context);
43
43
  }
44
44
  }
45
45
  exports.DescribeHomeRegionControlsCommand = DescribeHomeRegionControlsCommand;
@@ -36,10 +36,10 @@ class GetHomeRegionCommand 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_json1_1_1.serializeAws_json1_1GetHomeRegionCommand)(input, context);
39
+ return (0, Aws_json1_1_1.se_GetHomeRegionCommand)(input, context);
40
40
  }
41
41
  deserialize(output, context) {
42
- return (0, Aws_json1_1_1.deserializeAws_json1_1GetHomeRegionCommand)(output, context);
42
+ return (0, Aws_json1_1_1.de_GetHomeRegionCommand)(output, context);
43
43
  }
44
44
  }
45
45
  exports.GetHomeRegionCommand = GetHomeRegionCommand;
@@ -1,55 +1,55 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.deserializeAws_json1_1GetHomeRegionCommand = exports.deserializeAws_json1_1DescribeHomeRegionControlsCommand = exports.deserializeAws_json1_1CreateHomeRegionControlCommand = exports.serializeAws_json1_1GetHomeRegionCommand = exports.serializeAws_json1_1DescribeHomeRegionControlsCommand = exports.serializeAws_json1_1CreateHomeRegionControlCommand = void 0;
3
+ exports.de_GetHomeRegionCommand = exports.de_DescribeHomeRegionControlsCommand = exports.de_CreateHomeRegionControlCommand = exports.se_GetHomeRegionCommand = exports.se_DescribeHomeRegionControlsCommand = exports.se_CreateHomeRegionControlCommand = 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 MigrationHubConfigServiceException_1 = require("../models/MigrationHubConfigServiceException");
7
7
  const models_0_1 = require("../models/models_0");
8
- const serializeAws_json1_1CreateHomeRegionControlCommand = async (input, context) => {
8
+ const se_CreateHomeRegionControlCommand = async (input, context) => {
9
9
  const headers = {
10
10
  "content-type": "application/x-amz-json-1.1",
11
11
  "x-amz-target": "AWSMigrationHubMultiAccountService.CreateHomeRegionControl",
12
12
  };
13
13
  let body;
14
- body = JSON.stringify(serializeAws_json1_1CreateHomeRegionControlRequest(input, context));
14
+ body = JSON.stringify(se_CreateHomeRegionControlRequest(input, context));
15
15
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
16
16
  };
17
- exports.serializeAws_json1_1CreateHomeRegionControlCommand = serializeAws_json1_1CreateHomeRegionControlCommand;
18
- const serializeAws_json1_1DescribeHomeRegionControlsCommand = async (input, context) => {
17
+ exports.se_CreateHomeRegionControlCommand = se_CreateHomeRegionControlCommand;
18
+ const se_DescribeHomeRegionControlsCommand = async (input, context) => {
19
19
  const headers = {
20
20
  "content-type": "application/x-amz-json-1.1",
21
21
  "x-amz-target": "AWSMigrationHubMultiAccountService.DescribeHomeRegionControls",
22
22
  };
23
23
  let body;
24
- body = JSON.stringify(serializeAws_json1_1DescribeHomeRegionControlsRequest(input, context));
24
+ body = JSON.stringify(se_DescribeHomeRegionControlsRequest(input, context));
25
25
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
26
26
  };
27
- exports.serializeAws_json1_1DescribeHomeRegionControlsCommand = serializeAws_json1_1DescribeHomeRegionControlsCommand;
28
- const serializeAws_json1_1GetHomeRegionCommand = async (input, context) => {
27
+ exports.se_DescribeHomeRegionControlsCommand = se_DescribeHomeRegionControlsCommand;
28
+ const se_GetHomeRegionCommand = async (input, context) => {
29
29
  const headers = {
30
30
  "content-type": "application/x-amz-json-1.1",
31
31
  "x-amz-target": "AWSMigrationHubMultiAccountService.GetHomeRegion",
32
32
  };
33
33
  let body;
34
- body = JSON.stringify(serializeAws_json1_1GetHomeRegionRequest(input, context));
34
+ body = JSON.stringify(se_GetHomeRegionRequest(input, context));
35
35
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
36
36
  };
37
- exports.serializeAws_json1_1GetHomeRegionCommand = serializeAws_json1_1GetHomeRegionCommand;
38
- const deserializeAws_json1_1CreateHomeRegionControlCommand = async (output, context) => {
37
+ exports.se_GetHomeRegionCommand = se_GetHomeRegionCommand;
38
+ const de_CreateHomeRegionControlCommand = async (output, context) => {
39
39
  if (output.statusCode >= 300) {
40
- return deserializeAws_json1_1CreateHomeRegionControlCommandError(output, context);
40
+ return de_CreateHomeRegionControlCommandError(output, context);
41
41
  }
42
42
  const data = await parseBody(output.body, context);
43
43
  let contents = {};
44
- contents = deserializeAws_json1_1CreateHomeRegionControlResult(data, context);
44
+ contents = de_CreateHomeRegionControlResult(data, context);
45
45
  const response = {
46
46
  $metadata: deserializeMetadata(output),
47
47
  ...contents,
48
48
  };
49
49
  return Promise.resolve(response);
50
50
  };
51
- exports.deserializeAws_json1_1CreateHomeRegionControlCommand = deserializeAws_json1_1CreateHomeRegionControlCommand;
52
- const deserializeAws_json1_1CreateHomeRegionControlCommandError = async (output, context) => {
51
+ exports.de_CreateHomeRegionControlCommand = de_CreateHomeRegionControlCommand;
52
+ const de_CreateHomeRegionControlCommandError = async (output, context) => {
53
53
  const parsedOutput = {
54
54
  ...output,
55
55
  body: await parseErrorBody(output.body, context),
@@ -58,22 +58,22 @@ const deserializeAws_json1_1CreateHomeRegionControlCommandError = async (output,
58
58
  switch (errorCode) {
59
59
  case "AccessDeniedException":
60
60
  case "com.amazonaws.migrationhubconfig#AccessDeniedException":
61
- throw await deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context);
61
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
62
62
  case "DryRunOperation":
63
63
  case "com.amazonaws.migrationhubconfig#DryRunOperation":
64
- throw await deserializeAws_json1_1DryRunOperationResponse(parsedOutput, context);
64
+ throw await de_DryRunOperationRes(parsedOutput, context);
65
65
  case "InternalServerError":
66
66
  case "com.amazonaws.migrationhubconfig#InternalServerError":
67
- throw await deserializeAws_json1_1InternalServerErrorResponse(parsedOutput, context);
67
+ throw await de_InternalServerErrorRes(parsedOutput, context);
68
68
  case "InvalidInputException":
69
69
  case "com.amazonaws.migrationhubconfig#InvalidInputException":
70
- throw await deserializeAws_json1_1InvalidInputExceptionResponse(parsedOutput, context);
70
+ throw await de_InvalidInputExceptionRes(parsedOutput, context);
71
71
  case "ServiceUnavailableException":
72
72
  case "com.amazonaws.migrationhubconfig#ServiceUnavailableException":
73
- throw await deserializeAws_json1_1ServiceUnavailableExceptionResponse(parsedOutput, context);
73
+ throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
74
74
  case "ThrottlingException":
75
75
  case "com.amazonaws.migrationhubconfig#ThrottlingException":
76
- throw await deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context);
76
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
77
77
  default:
78
78
  const parsedBody = parsedOutput.body;
79
79
  (0, smithy_client_1.throwDefaultError)({
@@ -84,21 +84,21 @@ const deserializeAws_json1_1CreateHomeRegionControlCommandError = async (output,
84
84
  });
85
85
  }
86
86
  };
87
- const deserializeAws_json1_1DescribeHomeRegionControlsCommand = async (output, context) => {
87
+ const de_DescribeHomeRegionControlsCommand = async (output, context) => {
88
88
  if (output.statusCode >= 300) {
89
- return deserializeAws_json1_1DescribeHomeRegionControlsCommandError(output, context);
89
+ return de_DescribeHomeRegionControlsCommandError(output, context);
90
90
  }
91
91
  const data = await parseBody(output.body, context);
92
92
  let contents = {};
93
- contents = deserializeAws_json1_1DescribeHomeRegionControlsResult(data, context);
93
+ contents = de_DescribeHomeRegionControlsResult(data, context);
94
94
  const response = {
95
95
  $metadata: deserializeMetadata(output),
96
96
  ...contents,
97
97
  };
98
98
  return Promise.resolve(response);
99
99
  };
100
- exports.deserializeAws_json1_1DescribeHomeRegionControlsCommand = deserializeAws_json1_1DescribeHomeRegionControlsCommand;
101
- const deserializeAws_json1_1DescribeHomeRegionControlsCommandError = async (output, context) => {
100
+ exports.de_DescribeHomeRegionControlsCommand = de_DescribeHomeRegionControlsCommand;
101
+ const de_DescribeHomeRegionControlsCommandError = async (output, context) => {
102
102
  const parsedOutput = {
103
103
  ...output,
104
104
  body: await parseErrorBody(output.body, context),
@@ -107,19 +107,19 @@ const deserializeAws_json1_1DescribeHomeRegionControlsCommandError = async (outp
107
107
  switch (errorCode) {
108
108
  case "AccessDeniedException":
109
109
  case "com.amazonaws.migrationhubconfig#AccessDeniedException":
110
- throw await deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context);
110
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
111
111
  case "InternalServerError":
112
112
  case "com.amazonaws.migrationhubconfig#InternalServerError":
113
- throw await deserializeAws_json1_1InternalServerErrorResponse(parsedOutput, context);
113
+ throw await de_InternalServerErrorRes(parsedOutput, context);
114
114
  case "InvalidInputException":
115
115
  case "com.amazonaws.migrationhubconfig#InvalidInputException":
116
- throw await deserializeAws_json1_1InvalidInputExceptionResponse(parsedOutput, context);
116
+ throw await de_InvalidInputExceptionRes(parsedOutput, context);
117
117
  case "ServiceUnavailableException":
118
118
  case "com.amazonaws.migrationhubconfig#ServiceUnavailableException":
119
- throw await deserializeAws_json1_1ServiceUnavailableExceptionResponse(parsedOutput, context);
119
+ throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
120
120
  case "ThrottlingException":
121
121
  case "com.amazonaws.migrationhubconfig#ThrottlingException":
122
- throw await deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context);
122
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
123
123
  default:
124
124
  const parsedBody = parsedOutput.body;
125
125
  (0, smithy_client_1.throwDefaultError)({
@@ -130,21 +130,21 @@ const deserializeAws_json1_1DescribeHomeRegionControlsCommandError = async (outp
130
130
  });
131
131
  }
132
132
  };
133
- const deserializeAws_json1_1GetHomeRegionCommand = async (output, context) => {
133
+ const de_GetHomeRegionCommand = async (output, context) => {
134
134
  if (output.statusCode >= 300) {
135
- return deserializeAws_json1_1GetHomeRegionCommandError(output, context);
135
+ return de_GetHomeRegionCommandError(output, context);
136
136
  }
137
137
  const data = await parseBody(output.body, context);
138
138
  let contents = {};
139
- contents = deserializeAws_json1_1GetHomeRegionResult(data, context);
139
+ contents = de_GetHomeRegionResult(data, context);
140
140
  const response = {
141
141
  $metadata: deserializeMetadata(output),
142
142
  ...contents,
143
143
  };
144
144
  return Promise.resolve(response);
145
145
  };
146
- exports.deserializeAws_json1_1GetHomeRegionCommand = deserializeAws_json1_1GetHomeRegionCommand;
147
- const deserializeAws_json1_1GetHomeRegionCommandError = async (output, context) => {
146
+ exports.de_GetHomeRegionCommand = de_GetHomeRegionCommand;
147
+ const de_GetHomeRegionCommandError = async (output, context) => {
148
148
  const parsedOutput = {
149
149
  ...output,
150
150
  body: await parseErrorBody(output.body, context),
@@ -153,19 +153,19 @@ const deserializeAws_json1_1GetHomeRegionCommandError = async (output, context)
153
153
  switch (errorCode) {
154
154
  case "AccessDeniedException":
155
155
  case "com.amazonaws.migrationhubconfig#AccessDeniedException":
156
- throw await deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context);
156
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
157
157
  case "InternalServerError":
158
158
  case "com.amazonaws.migrationhubconfig#InternalServerError":
159
- throw await deserializeAws_json1_1InternalServerErrorResponse(parsedOutput, context);
159
+ throw await de_InternalServerErrorRes(parsedOutput, context);
160
160
  case "InvalidInputException":
161
161
  case "com.amazonaws.migrationhubconfig#InvalidInputException":
162
- throw await deserializeAws_json1_1InvalidInputExceptionResponse(parsedOutput, context);
162
+ throw await de_InvalidInputExceptionRes(parsedOutput, context);
163
163
  case "ServiceUnavailableException":
164
164
  case "com.amazonaws.migrationhubconfig#ServiceUnavailableException":
165
- throw await deserializeAws_json1_1ServiceUnavailableExceptionResponse(parsedOutput, context);
165
+ throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
166
166
  case "ThrottlingException":
167
167
  case "com.amazonaws.migrationhubconfig#ThrottlingException":
168
- throw await deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context);
168
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
169
169
  default:
170
170
  const parsedBody = parsedOutput.body;
171
171
  (0, smithy_client_1.throwDefaultError)({
@@ -176,158 +176,154 @@ const deserializeAws_json1_1GetHomeRegionCommandError = async (output, context)
176
176
  });
177
177
  }
178
178
  };
179
- const deserializeAws_json1_1AccessDeniedExceptionResponse = async (parsedOutput, context) => {
179
+ const de_AccessDeniedExceptionRes = async (parsedOutput, context) => {
180
180
  const body = parsedOutput.body;
181
- const deserialized = deserializeAws_json1_1AccessDeniedException(body, context);
181
+ const deserialized = de_AccessDeniedException(body, context);
182
182
  const exception = new models_0_1.AccessDeniedException({
183
183
  $metadata: deserializeMetadata(parsedOutput),
184
184
  ...deserialized,
185
185
  });
186
186
  return (0, smithy_client_1.decorateServiceException)(exception, body);
187
187
  };
188
- const deserializeAws_json1_1DryRunOperationResponse = async (parsedOutput, context) => {
188
+ const de_DryRunOperationRes = async (parsedOutput, context) => {
189
189
  const body = parsedOutput.body;
190
- const deserialized = deserializeAws_json1_1DryRunOperation(body, context);
190
+ const deserialized = de_DryRunOperation(body, context);
191
191
  const exception = new models_0_1.DryRunOperation({
192
192
  $metadata: deserializeMetadata(parsedOutput),
193
193
  ...deserialized,
194
194
  });
195
195
  return (0, smithy_client_1.decorateServiceException)(exception, body);
196
196
  };
197
- const deserializeAws_json1_1InternalServerErrorResponse = async (parsedOutput, context) => {
197
+ const de_InternalServerErrorRes = async (parsedOutput, context) => {
198
198
  const body = parsedOutput.body;
199
- const deserialized = deserializeAws_json1_1InternalServerError(body, context);
199
+ const deserialized = de_InternalServerError(body, context);
200
200
  const exception = new models_0_1.InternalServerError({
201
201
  $metadata: deserializeMetadata(parsedOutput),
202
202
  ...deserialized,
203
203
  });
204
204
  return (0, smithy_client_1.decorateServiceException)(exception, body);
205
205
  };
206
- const deserializeAws_json1_1InvalidInputExceptionResponse = async (parsedOutput, context) => {
206
+ const de_InvalidInputExceptionRes = async (parsedOutput, context) => {
207
207
  const body = parsedOutput.body;
208
- const deserialized = deserializeAws_json1_1InvalidInputException(body, context);
208
+ const deserialized = de_InvalidInputException(body, context);
209
209
  const exception = new models_0_1.InvalidInputException({
210
210
  $metadata: deserializeMetadata(parsedOutput),
211
211
  ...deserialized,
212
212
  });
213
213
  return (0, smithy_client_1.decorateServiceException)(exception, body);
214
214
  };
215
- const deserializeAws_json1_1ServiceUnavailableExceptionResponse = async (parsedOutput, context) => {
215
+ const de_ServiceUnavailableExceptionRes = async (parsedOutput, context) => {
216
216
  const body = parsedOutput.body;
217
- const deserialized = deserializeAws_json1_1ServiceUnavailableException(body, context);
217
+ const deserialized = de_ServiceUnavailableException(body, context);
218
218
  const exception = new models_0_1.ServiceUnavailableException({
219
219
  $metadata: deserializeMetadata(parsedOutput),
220
220
  ...deserialized,
221
221
  });
222
222
  return (0, smithy_client_1.decorateServiceException)(exception, body);
223
223
  };
224
- const deserializeAws_json1_1ThrottlingExceptionResponse = async (parsedOutput, context) => {
224
+ const de_ThrottlingExceptionRes = async (parsedOutput, context) => {
225
225
  const body = parsedOutput.body;
226
- const deserialized = deserializeAws_json1_1ThrottlingException(body, context);
226
+ const deserialized = de_ThrottlingException(body, context);
227
227
  const exception = new models_0_1.ThrottlingException({
228
228
  $metadata: deserializeMetadata(parsedOutput),
229
229
  ...deserialized,
230
230
  });
231
231
  return (0, smithy_client_1.decorateServiceException)(exception, body);
232
232
  };
233
- const serializeAws_json1_1CreateHomeRegionControlRequest = (input, context) => {
233
+ const se_CreateHomeRegionControlRequest = (input, context) => {
234
234
  return {
235
235
  ...(input.DryRun != null && { DryRun: input.DryRun }),
236
236
  ...(input.HomeRegion != null && { HomeRegion: input.HomeRegion }),
237
- ...(input.Target != null && { Target: serializeAws_json1_1Target(input.Target, context) }),
237
+ ...(input.Target != null && { Target: se_Target(input.Target, context) }),
238
238
  };
239
239
  };
240
- const serializeAws_json1_1DescribeHomeRegionControlsRequest = (input, context) => {
240
+ const se_DescribeHomeRegionControlsRequest = (input, context) => {
241
241
  return {
242
242
  ...(input.ControlId != null && { ControlId: input.ControlId }),
243
243
  ...(input.HomeRegion != null && { HomeRegion: input.HomeRegion }),
244
244
  ...(input.MaxResults != null && { MaxResults: input.MaxResults }),
245
245
  ...(input.NextToken != null && { NextToken: input.NextToken }),
246
- ...(input.Target != null && { Target: serializeAws_json1_1Target(input.Target, context) }),
246
+ ...(input.Target != null && { Target: se_Target(input.Target, context) }),
247
247
  };
248
248
  };
249
- const serializeAws_json1_1GetHomeRegionRequest = (input, context) => {
249
+ const se_GetHomeRegionRequest = (input, context) => {
250
250
  return {};
251
251
  };
252
- const serializeAws_json1_1Target = (input, context) => {
252
+ const se_Target = (input, context) => {
253
253
  return {
254
254
  ...(input.Id != null && { Id: input.Id }),
255
255
  ...(input.Type != null && { Type: input.Type }),
256
256
  };
257
257
  };
258
- const deserializeAws_json1_1AccessDeniedException = (output, context) => {
258
+ const de_AccessDeniedException = (output, context) => {
259
259
  return {
260
260
  Message: (0, smithy_client_1.expectString)(output.Message),
261
261
  };
262
262
  };
263
- const deserializeAws_json1_1CreateHomeRegionControlResult = (output, context) => {
263
+ const de_CreateHomeRegionControlResult = (output, context) => {
264
264
  return {
265
- HomeRegionControl: output.HomeRegionControl != null
266
- ? deserializeAws_json1_1HomeRegionControl(output.HomeRegionControl, context)
267
- : undefined,
265
+ HomeRegionControl: output.HomeRegionControl != null ? de_HomeRegionControl(output.HomeRegionControl, context) : undefined,
268
266
  };
269
267
  };
270
- const deserializeAws_json1_1DescribeHomeRegionControlsResult = (output, context) => {
268
+ const de_DescribeHomeRegionControlsResult = (output, context) => {
271
269
  return {
272
- HomeRegionControls: output.HomeRegionControls != null
273
- ? deserializeAws_json1_1HomeRegionControls(output.HomeRegionControls, context)
274
- : undefined,
270
+ HomeRegionControls: output.HomeRegionControls != null ? de_HomeRegionControls(output.HomeRegionControls, context) : undefined,
275
271
  NextToken: (0, smithy_client_1.expectString)(output.NextToken),
276
272
  };
277
273
  };
278
- const deserializeAws_json1_1DryRunOperation = (output, context) => {
274
+ const de_DryRunOperation = (output, context) => {
279
275
  return {
280
276
  Message: (0, smithy_client_1.expectString)(output.Message),
281
277
  };
282
278
  };
283
- const deserializeAws_json1_1GetHomeRegionResult = (output, context) => {
279
+ const de_GetHomeRegionResult = (output, context) => {
284
280
  return {
285
281
  HomeRegion: (0, smithy_client_1.expectString)(output.HomeRegion),
286
282
  };
287
283
  };
288
- const deserializeAws_json1_1HomeRegionControl = (output, context) => {
284
+ const de_HomeRegionControl = (output, context) => {
289
285
  return {
290
286
  ControlId: (0, smithy_client_1.expectString)(output.ControlId),
291
287
  HomeRegion: (0, smithy_client_1.expectString)(output.HomeRegion),
292
288
  RequestedTime: output.RequestedTime != null
293
289
  ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.RequestedTime)))
294
290
  : undefined,
295
- Target: output.Target != null ? deserializeAws_json1_1Target(output.Target, context) : undefined,
291
+ Target: output.Target != null ? de_Target(output.Target, context) : undefined,
296
292
  };
297
293
  };
298
- const deserializeAws_json1_1HomeRegionControls = (output, context) => {
294
+ const de_HomeRegionControls = (output, context) => {
299
295
  const retVal = (output || [])
300
296
  .filter((e) => e != null)
301
297
  .map((entry) => {
302
298
  if (entry === null) {
303
299
  return null;
304
300
  }
305
- return deserializeAws_json1_1HomeRegionControl(entry, context);
301
+ return de_HomeRegionControl(entry, context);
306
302
  });
307
303
  return retVal;
308
304
  };
309
- const deserializeAws_json1_1InternalServerError = (output, context) => {
305
+ const de_InternalServerError = (output, context) => {
310
306
  return {
311
307
  Message: (0, smithy_client_1.expectString)(output.Message),
312
308
  };
313
309
  };
314
- const deserializeAws_json1_1InvalidInputException = (output, context) => {
310
+ const de_InvalidInputException = (output, context) => {
315
311
  return {
316
312
  Message: (0, smithy_client_1.expectString)(output.Message),
317
313
  };
318
314
  };
319
- const deserializeAws_json1_1ServiceUnavailableException = (output, context) => {
315
+ const de_ServiceUnavailableException = (output, context) => {
320
316
  return {
321
317
  Message: (0, smithy_client_1.expectString)(output.Message),
322
318
  };
323
319
  };
324
- const deserializeAws_json1_1Target = (output, context) => {
320
+ const de_Target = (output, context) => {
325
321
  return {
326
322
  Id: (0, smithy_client_1.expectString)(output.Id),
327
323
  Type: (0, smithy_client_1.expectString)(output.Type),
328
324
  };
329
325
  };
330
- const deserializeAws_json1_1ThrottlingException = (output, context) => {
326
+ const de_ThrottlingException = (output, context) => {
331
327
  return {
332
328
  Message: (0, smithy_client_1.expectString)(output.Message),
333
329
  RetryAfterSeconds: (0, smithy_client_1.expectInt32)(output.RetryAfterSeconds),
@@ -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_json1_1CreateHomeRegionControlCommand, serializeAws_json1_1CreateHomeRegionControlCommand, } from "../protocols/Aws_json1_1";
4
+ import { de_CreateHomeRegionControlCommand, se_CreateHomeRegionControlCommand } from "../protocols/Aws_json1_1";
5
5
  export class CreateHomeRegionControlCommand extends $Command {
6
6
  static getEndpointParameterInstructions() {
7
7
  return {
@@ -33,9 +33,9 @@ export class CreateHomeRegionControlCommand extends $Command {
33
33
  return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
34
34
  }
35
35
  serialize(input, context) {
36
- return serializeAws_json1_1CreateHomeRegionControlCommand(input, context);
36
+ return se_CreateHomeRegionControlCommand(input, context);
37
37
  }
38
38
  deserialize(output, context) {
39
- return deserializeAws_json1_1CreateHomeRegionControlCommand(output, context);
39
+ return de_CreateHomeRegionControlCommand(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_json1_1DescribeHomeRegionControlsCommand, serializeAws_json1_1DescribeHomeRegionControlsCommand, } from "../protocols/Aws_json1_1";
4
+ import { de_DescribeHomeRegionControlsCommand, se_DescribeHomeRegionControlsCommand } from "../protocols/Aws_json1_1";
5
5
  export class DescribeHomeRegionControlsCommand extends $Command {
6
6
  static getEndpointParameterInstructions() {
7
7
  return {
@@ -33,9 +33,9 @@ export class DescribeHomeRegionControlsCommand extends $Command {
33
33
  return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
34
34
  }
35
35
  serialize(input, context) {
36
- return serializeAws_json1_1DescribeHomeRegionControlsCommand(input, context);
36
+ return se_DescribeHomeRegionControlsCommand(input, context);
37
37
  }
38
38
  deserialize(output, context) {
39
- return deserializeAws_json1_1DescribeHomeRegionControlsCommand(output, context);
39
+ return de_DescribeHomeRegionControlsCommand(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_json1_1GetHomeRegionCommand, serializeAws_json1_1GetHomeRegionCommand, } from "../protocols/Aws_json1_1";
4
+ import { de_GetHomeRegionCommand, se_GetHomeRegionCommand } from "../protocols/Aws_json1_1";
5
5
  export class GetHomeRegionCommand extends $Command {
6
6
  static getEndpointParameterInstructions() {
7
7
  return {
@@ -33,9 +33,9 @@ export class GetHomeRegionCommand extends $Command {
33
33
  return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
34
34
  }
35
35
  serialize(input, context) {
36
- return serializeAws_json1_1GetHomeRegionCommand(input, context);
36
+ return se_GetHomeRegionCommand(input, context);
37
37
  }
38
38
  deserialize(output, context) {
39
- return deserializeAws_json1_1GetHomeRegionCommand(output, context);
39
+ return de_GetHomeRegionCommand(output, context);
40
40
  }
41
41
  }
@@ -2,47 +2,47 @@ import { HttpRequest as __HttpRequest } from "@aws-sdk/protocol-http";
2
2
  import { decorateServiceException as __decorateServiceException, expectInt32 as __expectInt32, expectNonNull as __expectNonNull, expectNumber as __expectNumber, expectString as __expectString, parseEpochTimestamp as __parseEpochTimestamp, throwDefaultError, } from "@aws-sdk/smithy-client";
3
3
  import { MigrationHubConfigServiceException as __BaseException } from "../models/MigrationHubConfigServiceException";
4
4
  import { AccessDeniedException, DryRunOperation, InternalServerError, InvalidInputException, ServiceUnavailableException, ThrottlingException, } from "../models/models_0";
5
- export const serializeAws_json1_1CreateHomeRegionControlCommand = async (input, context) => {
5
+ export const se_CreateHomeRegionControlCommand = async (input, context) => {
6
6
  const headers = {
7
7
  "content-type": "application/x-amz-json-1.1",
8
8
  "x-amz-target": "AWSMigrationHubMultiAccountService.CreateHomeRegionControl",
9
9
  };
10
10
  let body;
11
- body = JSON.stringify(serializeAws_json1_1CreateHomeRegionControlRequest(input, context));
11
+ body = JSON.stringify(se_CreateHomeRegionControlRequest(input, context));
12
12
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
13
13
  };
14
- export const serializeAws_json1_1DescribeHomeRegionControlsCommand = async (input, context) => {
14
+ export const se_DescribeHomeRegionControlsCommand = async (input, context) => {
15
15
  const headers = {
16
16
  "content-type": "application/x-amz-json-1.1",
17
17
  "x-amz-target": "AWSMigrationHubMultiAccountService.DescribeHomeRegionControls",
18
18
  };
19
19
  let body;
20
- body = JSON.stringify(serializeAws_json1_1DescribeHomeRegionControlsRequest(input, context));
20
+ body = JSON.stringify(se_DescribeHomeRegionControlsRequest(input, context));
21
21
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
22
22
  };
23
- export const serializeAws_json1_1GetHomeRegionCommand = async (input, context) => {
23
+ export const se_GetHomeRegionCommand = async (input, context) => {
24
24
  const headers = {
25
25
  "content-type": "application/x-amz-json-1.1",
26
26
  "x-amz-target": "AWSMigrationHubMultiAccountService.GetHomeRegion",
27
27
  };
28
28
  let body;
29
- body = JSON.stringify(serializeAws_json1_1GetHomeRegionRequest(input, context));
29
+ body = JSON.stringify(se_GetHomeRegionRequest(input, context));
30
30
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
31
31
  };
32
- export const deserializeAws_json1_1CreateHomeRegionControlCommand = async (output, context) => {
32
+ export const de_CreateHomeRegionControlCommand = async (output, context) => {
33
33
  if (output.statusCode >= 300) {
34
- return deserializeAws_json1_1CreateHomeRegionControlCommandError(output, context);
34
+ return de_CreateHomeRegionControlCommandError(output, context);
35
35
  }
36
36
  const data = await parseBody(output.body, context);
37
37
  let contents = {};
38
- contents = deserializeAws_json1_1CreateHomeRegionControlResult(data, context);
38
+ contents = de_CreateHomeRegionControlResult(data, context);
39
39
  const response = {
40
40
  $metadata: deserializeMetadata(output),
41
41
  ...contents,
42
42
  };
43
43
  return Promise.resolve(response);
44
44
  };
45
- const deserializeAws_json1_1CreateHomeRegionControlCommandError = async (output, context) => {
45
+ const de_CreateHomeRegionControlCommandError = async (output, context) => {
46
46
  const parsedOutput = {
47
47
  ...output,
48
48
  body: await parseErrorBody(output.body, context),
@@ -51,22 +51,22 @@ const deserializeAws_json1_1CreateHomeRegionControlCommandError = async (output,
51
51
  switch (errorCode) {
52
52
  case "AccessDeniedException":
53
53
  case "com.amazonaws.migrationhubconfig#AccessDeniedException":
54
- throw await deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context);
54
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
55
55
  case "DryRunOperation":
56
56
  case "com.amazonaws.migrationhubconfig#DryRunOperation":
57
- throw await deserializeAws_json1_1DryRunOperationResponse(parsedOutput, context);
57
+ throw await de_DryRunOperationRes(parsedOutput, context);
58
58
  case "InternalServerError":
59
59
  case "com.amazonaws.migrationhubconfig#InternalServerError":
60
- throw await deserializeAws_json1_1InternalServerErrorResponse(parsedOutput, context);
60
+ throw await de_InternalServerErrorRes(parsedOutput, context);
61
61
  case "InvalidInputException":
62
62
  case "com.amazonaws.migrationhubconfig#InvalidInputException":
63
- throw await deserializeAws_json1_1InvalidInputExceptionResponse(parsedOutput, context);
63
+ throw await de_InvalidInputExceptionRes(parsedOutput, context);
64
64
  case "ServiceUnavailableException":
65
65
  case "com.amazonaws.migrationhubconfig#ServiceUnavailableException":
66
- throw await deserializeAws_json1_1ServiceUnavailableExceptionResponse(parsedOutput, context);
66
+ throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
67
67
  case "ThrottlingException":
68
68
  case "com.amazonaws.migrationhubconfig#ThrottlingException":
69
- throw await deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context);
69
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
70
70
  default:
71
71
  const parsedBody = parsedOutput.body;
72
72
  throwDefaultError({
@@ -77,20 +77,20 @@ const deserializeAws_json1_1CreateHomeRegionControlCommandError = async (output,
77
77
  });
78
78
  }
79
79
  };
80
- export const deserializeAws_json1_1DescribeHomeRegionControlsCommand = async (output, context) => {
80
+ export const de_DescribeHomeRegionControlsCommand = async (output, context) => {
81
81
  if (output.statusCode >= 300) {
82
- return deserializeAws_json1_1DescribeHomeRegionControlsCommandError(output, context);
82
+ return de_DescribeHomeRegionControlsCommandError(output, context);
83
83
  }
84
84
  const data = await parseBody(output.body, context);
85
85
  let contents = {};
86
- contents = deserializeAws_json1_1DescribeHomeRegionControlsResult(data, context);
86
+ contents = de_DescribeHomeRegionControlsResult(data, context);
87
87
  const response = {
88
88
  $metadata: deserializeMetadata(output),
89
89
  ...contents,
90
90
  };
91
91
  return Promise.resolve(response);
92
92
  };
93
- const deserializeAws_json1_1DescribeHomeRegionControlsCommandError = async (output, context) => {
93
+ const de_DescribeHomeRegionControlsCommandError = async (output, context) => {
94
94
  const parsedOutput = {
95
95
  ...output,
96
96
  body: await parseErrorBody(output.body, context),
@@ -99,19 +99,19 @@ const deserializeAws_json1_1DescribeHomeRegionControlsCommandError = async (outp
99
99
  switch (errorCode) {
100
100
  case "AccessDeniedException":
101
101
  case "com.amazonaws.migrationhubconfig#AccessDeniedException":
102
- throw await deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context);
102
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
103
103
  case "InternalServerError":
104
104
  case "com.amazonaws.migrationhubconfig#InternalServerError":
105
- throw await deserializeAws_json1_1InternalServerErrorResponse(parsedOutput, context);
105
+ throw await de_InternalServerErrorRes(parsedOutput, context);
106
106
  case "InvalidInputException":
107
107
  case "com.amazonaws.migrationhubconfig#InvalidInputException":
108
- throw await deserializeAws_json1_1InvalidInputExceptionResponse(parsedOutput, context);
108
+ throw await de_InvalidInputExceptionRes(parsedOutput, context);
109
109
  case "ServiceUnavailableException":
110
110
  case "com.amazonaws.migrationhubconfig#ServiceUnavailableException":
111
- throw await deserializeAws_json1_1ServiceUnavailableExceptionResponse(parsedOutput, context);
111
+ throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
112
112
  case "ThrottlingException":
113
113
  case "com.amazonaws.migrationhubconfig#ThrottlingException":
114
- throw await deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context);
114
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
115
115
  default:
116
116
  const parsedBody = parsedOutput.body;
117
117
  throwDefaultError({
@@ -122,20 +122,20 @@ const deserializeAws_json1_1DescribeHomeRegionControlsCommandError = async (outp
122
122
  });
123
123
  }
124
124
  };
125
- export const deserializeAws_json1_1GetHomeRegionCommand = async (output, context) => {
125
+ export const de_GetHomeRegionCommand = async (output, context) => {
126
126
  if (output.statusCode >= 300) {
127
- return deserializeAws_json1_1GetHomeRegionCommandError(output, context);
127
+ return de_GetHomeRegionCommandError(output, context);
128
128
  }
129
129
  const data = await parseBody(output.body, context);
130
130
  let contents = {};
131
- contents = deserializeAws_json1_1GetHomeRegionResult(data, context);
131
+ contents = de_GetHomeRegionResult(data, context);
132
132
  const response = {
133
133
  $metadata: deserializeMetadata(output),
134
134
  ...contents,
135
135
  };
136
136
  return Promise.resolve(response);
137
137
  };
138
- const deserializeAws_json1_1GetHomeRegionCommandError = async (output, context) => {
138
+ const de_GetHomeRegionCommandError = async (output, context) => {
139
139
  const parsedOutput = {
140
140
  ...output,
141
141
  body: await parseErrorBody(output.body, context),
@@ -144,19 +144,19 @@ const deserializeAws_json1_1GetHomeRegionCommandError = async (output, context)
144
144
  switch (errorCode) {
145
145
  case "AccessDeniedException":
146
146
  case "com.amazonaws.migrationhubconfig#AccessDeniedException":
147
- throw await deserializeAws_json1_1AccessDeniedExceptionResponse(parsedOutput, context);
147
+ throw await de_AccessDeniedExceptionRes(parsedOutput, context);
148
148
  case "InternalServerError":
149
149
  case "com.amazonaws.migrationhubconfig#InternalServerError":
150
- throw await deserializeAws_json1_1InternalServerErrorResponse(parsedOutput, context);
150
+ throw await de_InternalServerErrorRes(parsedOutput, context);
151
151
  case "InvalidInputException":
152
152
  case "com.amazonaws.migrationhubconfig#InvalidInputException":
153
- throw await deserializeAws_json1_1InvalidInputExceptionResponse(parsedOutput, context);
153
+ throw await de_InvalidInputExceptionRes(parsedOutput, context);
154
154
  case "ServiceUnavailableException":
155
155
  case "com.amazonaws.migrationhubconfig#ServiceUnavailableException":
156
- throw await deserializeAws_json1_1ServiceUnavailableExceptionResponse(parsedOutput, context);
156
+ throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
157
157
  case "ThrottlingException":
158
158
  case "com.amazonaws.migrationhubconfig#ThrottlingException":
159
- throw await deserializeAws_json1_1ThrottlingExceptionResponse(parsedOutput, context);
159
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
160
160
  default:
161
161
  const parsedBody = parsedOutput.body;
162
162
  throwDefaultError({
@@ -167,158 +167,154 @@ const deserializeAws_json1_1GetHomeRegionCommandError = async (output, context)
167
167
  });
168
168
  }
169
169
  };
170
- const deserializeAws_json1_1AccessDeniedExceptionResponse = async (parsedOutput, context) => {
170
+ const de_AccessDeniedExceptionRes = async (parsedOutput, context) => {
171
171
  const body = parsedOutput.body;
172
- const deserialized = deserializeAws_json1_1AccessDeniedException(body, context);
172
+ const deserialized = de_AccessDeniedException(body, context);
173
173
  const exception = new AccessDeniedException({
174
174
  $metadata: deserializeMetadata(parsedOutput),
175
175
  ...deserialized,
176
176
  });
177
177
  return __decorateServiceException(exception, body);
178
178
  };
179
- const deserializeAws_json1_1DryRunOperationResponse = async (parsedOutput, context) => {
179
+ const de_DryRunOperationRes = async (parsedOutput, context) => {
180
180
  const body = parsedOutput.body;
181
- const deserialized = deserializeAws_json1_1DryRunOperation(body, context);
181
+ const deserialized = de_DryRunOperation(body, context);
182
182
  const exception = new DryRunOperation({
183
183
  $metadata: deserializeMetadata(parsedOutput),
184
184
  ...deserialized,
185
185
  });
186
186
  return __decorateServiceException(exception, body);
187
187
  };
188
- const deserializeAws_json1_1InternalServerErrorResponse = async (parsedOutput, context) => {
188
+ const de_InternalServerErrorRes = async (parsedOutput, context) => {
189
189
  const body = parsedOutput.body;
190
- const deserialized = deserializeAws_json1_1InternalServerError(body, context);
190
+ const deserialized = de_InternalServerError(body, context);
191
191
  const exception = new InternalServerError({
192
192
  $metadata: deserializeMetadata(parsedOutput),
193
193
  ...deserialized,
194
194
  });
195
195
  return __decorateServiceException(exception, body);
196
196
  };
197
- const deserializeAws_json1_1InvalidInputExceptionResponse = async (parsedOutput, context) => {
197
+ const de_InvalidInputExceptionRes = async (parsedOutput, context) => {
198
198
  const body = parsedOutput.body;
199
- const deserialized = deserializeAws_json1_1InvalidInputException(body, context);
199
+ const deserialized = de_InvalidInputException(body, context);
200
200
  const exception = new InvalidInputException({
201
201
  $metadata: deserializeMetadata(parsedOutput),
202
202
  ...deserialized,
203
203
  });
204
204
  return __decorateServiceException(exception, body);
205
205
  };
206
- const deserializeAws_json1_1ServiceUnavailableExceptionResponse = async (parsedOutput, context) => {
206
+ const de_ServiceUnavailableExceptionRes = async (parsedOutput, context) => {
207
207
  const body = parsedOutput.body;
208
- const deserialized = deserializeAws_json1_1ServiceUnavailableException(body, context);
208
+ const deserialized = de_ServiceUnavailableException(body, context);
209
209
  const exception = new ServiceUnavailableException({
210
210
  $metadata: deserializeMetadata(parsedOutput),
211
211
  ...deserialized,
212
212
  });
213
213
  return __decorateServiceException(exception, body);
214
214
  };
215
- const deserializeAws_json1_1ThrottlingExceptionResponse = async (parsedOutput, context) => {
215
+ const de_ThrottlingExceptionRes = async (parsedOutput, context) => {
216
216
  const body = parsedOutput.body;
217
- const deserialized = deserializeAws_json1_1ThrottlingException(body, context);
217
+ const deserialized = de_ThrottlingException(body, context);
218
218
  const exception = new ThrottlingException({
219
219
  $metadata: deserializeMetadata(parsedOutput),
220
220
  ...deserialized,
221
221
  });
222
222
  return __decorateServiceException(exception, body);
223
223
  };
224
- const serializeAws_json1_1CreateHomeRegionControlRequest = (input, context) => {
224
+ const se_CreateHomeRegionControlRequest = (input, context) => {
225
225
  return {
226
226
  ...(input.DryRun != null && { DryRun: input.DryRun }),
227
227
  ...(input.HomeRegion != null && { HomeRegion: input.HomeRegion }),
228
- ...(input.Target != null && { Target: serializeAws_json1_1Target(input.Target, context) }),
228
+ ...(input.Target != null && { Target: se_Target(input.Target, context) }),
229
229
  };
230
230
  };
231
- const serializeAws_json1_1DescribeHomeRegionControlsRequest = (input, context) => {
231
+ const se_DescribeHomeRegionControlsRequest = (input, context) => {
232
232
  return {
233
233
  ...(input.ControlId != null && { ControlId: input.ControlId }),
234
234
  ...(input.HomeRegion != null && { HomeRegion: input.HomeRegion }),
235
235
  ...(input.MaxResults != null && { MaxResults: input.MaxResults }),
236
236
  ...(input.NextToken != null && { NextToken: input.NextToken }),
237
- ...(input.Target != null && { Target: serializeAws_json1_1Target(input.Target, context) }),
237
+ ...(input.Target != null && { Target: se_Target(input.Target, context) }),
238
238
  };
239
239
  };
240
- const serializeAws_json1_1GetHomeRegionRequest = (input, context) => {
240
+ const se_GetHomeRegionRequest = (input, context) => {
241
241
  return {};
242
242
  };
243
- const serializeAws_json1_1Target = (input, context) => {
243
+ const se_Target = (input, context) => {
244
244
  return {
245
245
  ...(input.Id != null && { Id: input.Id }),
246
246
  ...(input.Type != null && { Type: input.Type }),
247
247
  };
248
248
  };
249
- const deserializeAws_json1_1AccessDeniedException = (output, context) => {
249
+ const de_AccessDeniedException = (output, context) => {
250
250
  return {
251
251
  Message: __expectString(output.Message),
252
252
  };
253
253
  };
254
- const deserializeAws_json1_1CreateHomeRegionControlResult = (output, context) => {
254
+ const de_CreateHomeRegionControlResult = (output, context) => {
255
255
  return {
256
- HomeRegionControl: output.HomeRegionControl != null
257
- ? deserializeAws_json1_1HomeRegionControl(output.HomeRegionControl, context)
258
- : undefined,
256
+ HomeRegionControl: output.HomeRegionControl != null ? de_HomeRegionControl(output.HomeRegionControl, context) : undefined,
259
257
  };
260
258
  };
261
- const deserializeAws_json1_1DescribeHomeRegionControlsResult = (output, context) => {
259
+ const de_DescribeHomeRegionControlsResult = (output, context) => {
262
260
  return {
263
- HomeRegionControls: output.HomeRegionControls != null
264
- ? deserializeAws_json1_1HomeRegionControls(output.HomeRegionControls, context)
265
- : undefined,
261
+ HomeRegionControls: output.HomeRegionControls != null ? de_HomeRegionControls(output.HomeRegionControls, context) : undefined,
266
262
  NextToken: __expectString(output.NextToken),
267
263
  };
268
264
  };
269
- const deserializeAws_json1_1DryRunOperation = (output, context) => {
265
+ const de_DryRunOperation = (output, context) => {
270
266
  return {
271
267
  Message: __expectString(output.Message),
272
268
  };
273
269
  };
274
- const deserializeAws_json1_1GetHomeRegionResult = (output, context) => {
270
+ const de_GetHomeRegionResult = (output, context) => {
275
271
  return {
276
272
  HomeRegion: __expectString(output.HomeRegion),
277
273
  };
278
274
  };
279
- const deserializeAws_json1_1HomeRegionControl = (output, context) => {
275
+ const de_HomeRegionControl = (output, context) => {
280
276
  return {
281
277
  ControlId: __expectString(output.ControlId),
282
278
  HomeRegion: __expectString(output.HomeRegion),
283
279
  RequestedTime: output.RequestedTime != null
284
280
  ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.RequestedTime)))
285
281
  : undefined,
286
- Target: output.Target != null ? deserializeAws_json1_1Target(output.Target, context) : undefined,
282
+ Target: output.Target != null ? de_Target(output.Target, context) : undefined,
287
283
  };
288
284
  };
289
- const deserializeAws_json1_1HomeRegionControls = (output, context) => {
285
+ const de_HomeRegionControls = (output, context) => {
290
286
  const retVal = (output || [])
291
287
  .filter((e) => e != null)
292
288
  .map((entry) => {
293
289
  if (entry === null) {
294
290
  return null;
295
291
  }
296
- return deserializeAws_json1_1HomeRegionControl(entry, context);
292
+ return de_HomeRegionControl(entry, context);
297
293
  });
298
294
  return retVal;
299
295
  };
300
- const deserializeAws_json1_1InternalServerError = (output, context) => {
296
+ const de_InternalServerError = (output, context) => {
301
297
  return {
302
298
  Message: __expectString(output.Message),
303
299
  };
304
300
  };
305
- const deserializeAws_json1_1InvalidInputException = (output, context) => {
301
+ const de_InvalidInputException = (output, context) => {
306
302
  return {
307
303
  Message: __expectString(output.Message),
308
304
  };
309
305
  };
310
- const deserializeAws_json1_1ServiceUnavailableException = (output, context) => {
306
+ const de_ServiceUnavailableException = (output, context) => {
311
307
  return {
312
308
  Message: __expectString(output.Message),
313
309
  };
314
310
  };
315
- const deserializeAws_json1_1Target = (output, context) => {
311
+ const de_Target = (output, context) => {
316
312
  return {
317
313
  Id: __expectString(output.Id),
318
314
  Type: __expectString(output.Type),
319
315
  };
320
316
  };
321
- const deserializeAws_json1_1ThrottlingException = (output, context) => {
317
+ const de_ThrottlingException = (output, context) => {
322
318
  return {
323
319
  Message: __expectString(output.Message),
324
320
  RetryAfterSeconds: __expectInt32(output.RetryAfterSeconds),
@@ -3,9 +3,27 @@ import { SerdeContext as __SerdeContext } from "@aws-sdk/types";
3
3
  import { CreateHomeRegionControlCommandInput, CreateHomeRegionControlCommandOutput } from "../commands/CreateHomeRegionControlCommand";
4
4
  import { DescribeHomeRegionControlsCommandInput, DescribeHomeRegionControlsCommandOutput } from "../commands/DescribeHomeRegionControlsCommand";
5
5
  import { GetHomeRegionCommandInput, GetHomeRegionCommandOutput } from "../commands/GetHomeRegionCommand";
6
- export declare const serializeAws_json1_1CreateHomeRegionControlCommand: (input: CreateHomeRegionControlCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
7
- export declare const serializeAws_json1_1DescribeHomeRegionControlsCommand: (input: DescribeHomeRegionControlsCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
8
- export declare const serializeAws_json1_1GetHomeRegionCommand: (input: GetHomeRegionCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
9
- export declare const deserializeAws_json1_1CreateHomeRegionControlCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<CreateHomeRegionControlCommandOutput>;
10
- export declare const deserializeAws_json1_1DescribeHomeRegionControlsCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<DescribeHomeRegionControlsCommandOutput>;
11
- export declare const deserializeAws_json1_1GetHomeRegionCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<GetHomeRegionCommandOutput>;
6
+ /**
7
+ * serializeAws_json1_1CreateHomeRegionControlCommand
8
+ */
9
+ export declare const se_CreateHomeRegionControlCommand: (input: CreateHomeRegionControlCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
10
+ /**
11
+ * serializeAws_json1_1DescribeHomeRegionControlsCommand
12
+ */
13
+ export declare const se_DescribeHomeRegionControlsCommand: (input: DescribeHomeRegionControlsCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
14
+ /**
15
+ * serializeAws_json1_1GetHomeRegionCommand
16
+ */
17
+ export declare const se_GetHomeRegionCommand: (input: GetHomeRegionCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
18
+ /**
19
+ * deserializeAws_json1_1CreateHomeRegionControlCommand
20
+ */
21
+ export declare const de_CreateHomeRegionControlCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<CreateHomeRegionControlCommandOutput>;
22
+ /**
23
+ * deserializeAws_json1_1DescribeHomeRegionControlsCommand
24
+ */
25
+ export declare const de_DescribeHomeRegionControlsCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<DescribeHomeRegionControlsCommandOutput>;
26
+ /**
27
+ * deserializeAws_json1_1GetHomeRegionCommand
28
+ */
29
+ export declare const de_GetHomeRegionCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<GetHomeRegionCommandOutput>;
@@ -15,27 +15,27 @@ import {
15
15
  GetHomeRegionCommandInput,
16
16
  GetHomeRegionCommandOutput,
17
17
  } from "../commands/GetHomeRegionCommand";
18
- export declare const serializeAws_json1_1CreateHomeRegionControlCommand: (
18
+ export declare const se_CreateHomeRegionControlCommand: (
19
19
  input: CreateHomeRegionControlCommandInput,
20
20
  context: __SerdeContext
21
21
  ) => Promise<__HttpRequest>;
22
- export declare const serializeAws_json1_1DescribeHomeRegionControlsCommand: (
22
+ export declare const se_DescribeHomeRegionControlsCommand: (
23
23
  input: DescribeHomeRegionControlsCommandInput,
24
24
  context: __SerdeContext
25
25
  ) => Promise<__HttpRequest>;
26
- export declare const serializeAws_json1_1GetHomeRegionCommand: (
26
+ export declare const se_GetHomeRegionCommand: (
27
27
  input: GetHomeRegionCommandInput,
28
28
  context: __SerdeContext
29
29
  ) => Promise<__HttpRequest>;
30
- export declare const deserializeAws_json1_1CreateHomeRegionControlCommand: (
30
+ export declare const de_CreateHomeRegionControlCommand: (
31
31
  output: __HttpResponse,
32
32
  context: __SerdeContext
33
33
  ) => Promise<CreateHomeRegionControlCommandOutput>;
34
- export declare const deserializeAws_json1_1DescribeHomeRegionControlsCommand: (
34
+ export declare const de_DescribeHomeRegionControlsCommand: (
35
35
  output: __HttpResponse,
36
36
  context: __SerdeContext
37
37
  ) => Promise<DescribeHomeRegionControlsCommandOutput>;
38
- export declare const deserializeAws_json1_1GetHomeRegionCommand: (
38
+ export declare const de_GetHomeRegionCommand: (
39
39
  output: __HttpResponse,
40
40
  context: __SerdeContext
41
41
  ) => Promise<GetHomeRegionCommandOutput>;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-migrationhub-config",
3
3
  "description": "AWS SDK for JavaScript Migrationhub Config 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",