@aws-sdk/client-arc-zonal-shift 3.489.0 → 3.495.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.
- package/dist-cjs/ARCZonalShift.js +1 -33
- package/dist-cjs/ARCZonalShiftClient.js +1 -43
- package/dist-cjs/commands/CancelZonalShiftCommand.js +1 -28
- package/dist-cjs/commands/CreatePracticeRunConfigurationCommand.js +1 -28
- package/dist-cjs/commands/DeletePracticeRunConfigurationCommand.js +1 -28
- package/dist-cjs/commands/GetManagedResourceCommand.js +1 -28
- package/dist-cjs/commands/ListAutoshiftsCommand.js +1 -28
- package/dist-cjs/commands/ListManagedResourcesCommand.js +1 -28
- package/dist-cjs/commands/ListZonalShiftsCommand.js +1 -28
- package/dist-cjs/commands/StartZonalShiftCommand.js +1 -28
- package/dist-cjs/commands/UpdatePracticeRunConfigurationCommand.js +1 -28
- package/dist-cjs/commands/UpdateZonalAutoshiftConfigurationCommand.js +1 -28
- package/dist-cjs/commands/UpdateZonalShiftCommand.js +1 -28
- package/dist-cjs/commands/index.js +1 -14
- package/dist-cjs/endpoint/EndpointParameters.js +1 -18
- package/dist-cjs/extensionConfiguration.js +1 -2
- package/dist-cjs/index.js +1503 -11
- package/dist-cjs/models/ARCZonalShiftServiceException.js +1 -12
- package/dist-cjs/models/index.js +1 -4
- package/dist-cjs/models/models_0.js +1 -135
- package/dist-cjs/pagination/Interfaces.js +1 -2
- package/dist-cjs/pagination/ListAutoshiftsPaginator.js +1 -7
- package/dist-cjs/pagination/ListManagedResourcesPaginator.js +1 -7
- package/dist-cjs/pagination/ListZonalShiftsPaginator.js +1 -7
- package/dist-cjs/pagination/index.js +1 -7
- package/dist-cjs/protocols/Aws_restJson1.js +1 -955
- package/dist-cjs/runtimeExtensions.js +1 -22
- package/package.json +40 -40
package/dist-cjs/index.js
CHANGED
|
@@ -1,12 +1,1504 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
Object.defineProperty
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
var
|
|
12
|
-
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
+
var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
|
|
7
|
+
var __export = (target, all) => {
|
|
8
|
+
for (var name in all)
|
|
9
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
10
|
+
};
|
|
11
|
+
var __copyProps = (to, from, except, desc) => {
|
|
12
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
13
|
+
for (let key of __getOwnPropNames(from))
|
|
14
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
15
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
16
|
+
}
|
|
17
|
+
return to;
|
|
18
|
+
};
|
|
19
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
20
|
+
|
|
21
|
+
// src/index.ts
|
|
22
|
+
var src_exports = {};
|
|
23
|
+
__export(src_exports, {
|
|
24
|
+
ARCZonalShift: () => ARCZonalShift,
|
|
25
|
+
ARCZonalShiftClient: () => ARCZonalShiftClient,
|
|
26
|
+
ARCZonalShiftServiceException: () => ARCZonalShiftServiceException,
|
|
27
|
+
AccessDeniedException: () => AccessDeniedException,
|
|
28
|
+
AppliedStatus: () => AppliedStatus,
|
|
29
|
+
AutoshiftAppliedStatus: () => AutoshiftAppliedStatus,
|
|
30
|
+
AutoshiftExecutionStatus: () => AutoshiftExecutionStatus,
|
|
31
|
+
CancelZonalShiftCommand: () => CancelZonalShiftCommand,
|
|
32
|
+
ConflictException: () => ConflictException,
|
|
33
|
+
ConflictExceptionReason: () => ConflictExceptionReason,
|
|
34
|
+
ControlConditionType: () => ControlConditionType,
|
|
35
|
+
CreatePracticeRunConfigurationCommand: () => CreatePracticeRunConfigurationCommand,
|
|
36
|
+
DeletePracticeRunConfigurationCommand: () => DeletePracticeRunConfigurationCommand,
|
|
37
|
+
GetManagedResourceCommand: () => GetManagedResourceCommand,
|
|
38
|
+
InternalServerException: () => InternalServerException,
|
|
39
|
+
ListAutoshiftsCommand: () => ListAutoshiftsCommand,
|
|
40
|
+
ListManagedResourcesCommand: () => ListManagedResourcesCommand,
|
|
41
|
+
ListZonalShiftsCommand: () => ListZonalShiftsCommand,
|
|
42
|
+
PracticeRunOutcome: () => PracticeRunOutcome,
|
|
43
|
+
ResourceNotFoundException: () => ResourceNotFoundException,
|
|
44
|
+
StartZonalShiftCommand: () => StartZonalShiftCommand,
|
|
45
|
+
ThrottlingException: () => ThrottlingException,
|
|
46
|
+
UpdatePracticeRunConfigurationCommand: () => UpdatePracticeRunConfigurationCommand,
|
|
47
|
+
UpdateZonalAutoshiftConfigurationCommand: () => UpdateZonalAutoshiftConfigurationCommand,
|
|
48
|
+
UpdateZonalShiftCommand: () => UpdateZonalShiftCommand,
|
|
49
|
+
ValidationException: () => ValidationException,
|
|
50
|
+
ValidationExceptionReason: () => ValidationExceptionReason,
|
|
51
|
+
ZonalAutoshiftStatus: () => ZonalAutoshiftStatus,
|
|
52
|
+
ZonalShiftStatus: () => ZonalShiftStatus,
|
|
53
|
+
__Client: () => import_smithy_client.Client,
|
|
54
|
+
paginateListAutoshifts: () => paginateListAutoshifts,
|
|
55
|
+
paginateListManagedResources: () => paginateListManagedResources,
|
|
56
|
+
paginateListZonalShifts: () => paginateListZonalShifts
|
|
57
|
+
});
|
|
58
|
+
module.exports = __toCommonJS(src_exports);
|
|
59
|
+
|
|
60
|
+
// src/ARCZonalShiftClient.ts
|
|
61
|
+
var import_middleware_host_header = require("@aws-sdk/middleware-host-header");
|
|
62
|
+
var import_middleware_logger = require("@aws-sdk/middleware-logger");
|
|
63
|
+
var import_middleware_recursion_detection = require("@aws-sdk/middleware-recursion-detection");
|
|
64
|
+
var import_middleware_signing = require("@aws-sdk/middleware-signing");
|
|
65
|
+
var import_middleware_user_agent = require("@aws-sdk/middleware-user-agent");
|
|
66
|
+
var import_config_resolver = require("@smithy/config-resolver");
|
|
67
|
+
var import_middleware_content_length = require("@smithy/middleware-content-length");
|
|
68
|
+
var import_middleware_endpoint = require("@smithy/middleware-endpoint");
|
|
69
|
+
var import_middleware_retry = require("@smithy/middleware-retry");
|
|
70
|
+
|
|
71
|
+
|
|
72
|
+
// src/endpoint/EndpointParameters.ts
|
|
73
|
+
var resolveClientEndpointParameters = /* @__PURE__ */ __name((options) => {
|
|
74
|
+
return {
|
|
75
|
+
...options,
|
|
76
|
+
useDualstackEndpoint: options.useDualstackEndpoint ?? false,
|
|
77
|
+
useFipsEndpoint: options.useFipsEndpoint ?? false,
|
|
78
|
+
defaultSigningName: "arc-zonal-shift"
|
|
79
|
+
};
|
|
80
|
+
}, "resolveClientEndpointParameters");
|
|
81
|
+
var commonParams = {
|
|
82
|
+
UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
|
|
83
|
+
Endpoint: { type: "builtInParams", name: "endpoint" },
|
|
84
|
+
Region: { type: "builtInParams", name: "region" },
|
|
85
|
+
UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }
|
|
86
|
+
};
|
|
87
|
+
|
|
88
|
+
// src/ARCZonalShiftClient.ts
|
|
89
|
+
var import_runtimeConfig = require("././runtimeConfig");
|
|
90
|
+
|
|
91
|
+
// src/runtimeExtensions.ts
|
|
92
|
+
var import_region_config_resolver = require("@aws-sdk/region-config-resolver");
|
|
93
|
+
var import_protocol_http = require("@smithy/protocol-http");
|
|
94
|
+
var import_smithy_client = require("@smithy/smithy-client");
|
|
95
|
+
var asPartial = /* @__PURE__ */ __name((t) => t, "asPartial");
|
|
96
|
+
var resolveRuntimeExtensions = /* @__PURE__ */ __name((runtimeConfig, extensions) => {
|
|
97
|
+
const extensionConfiguration = {
|
|
98
|
+
...asPartial((0, import_region_config_resolver.getAwsRegionExtensionConfiguration)(runtimeConfig)),
|
|
99
|
+
...asPartial((0, import_smithy_client.getDefaultExtensionConfiguration)(runtimeConfig)),
|
|
100
|
+
...asPartial((0, import_protocol_http.getHttpHandlerExtensionConfiguration)(runtimeConfig))
|
|
101
|
+
};
|
|
102
|
+
extensions.forEach((extension) => extension.configure(extensionConfiguration));
|
|
103
|
+
return {
|
|
104
|
+
...runtimeConfig,
|
|
105
|
+
...(0, import_region_config_resolver.resolveAwsRegionExtensionConfiguration)(extensionConfiguration),
|
|
106
|
+
...(0, import_smithy_client.resolveDefaultRuntimeConfig)(extensionConfiguration),
|
|
107
|
+
...(0, import_protocol_http.resolveHttpHandlerRuntimeConfig)(extensionConfiguration)
|
|
108
|
+
};
|
|
109
|
+
}, "resolveRuntimeExtensions");
|
|
110
|
+
|
|
111
|
+
// src/ARCZonalShiftClient.ts
|
|
112
|
+
var _ARCZonalShiftClient = class _ARCZonalShiftClient extends import_smithy_client.Client {
|
|
113
|
+
constructor(...[configuration]) {
|
|
114
|
+
const _config_0 = (0, import_runtimeConfig.getRuntimeConfig)(configuration || {});
|
|
115
|
+
const _config_1 = resolveClientEndpointParameters(_config_0);
|
|
116
|
+
const _config_2 = (0, import_config_resolver.resolveRegionConfig)(_config_1);
|
|
117
|
+
const _config_3 = (0, import_middleware_endpoint.resolveEndpointConfig)(_config_2);
|
|
118
|
+
const _config_4 = (0, import_middleware_retry.resolveRetryConfig)(_config_3);
|
|
119
|
+
const _config_5 = (0, import_middleware_host_header.resolveHostHeaderConfig)(_config_4);
|
|
120
|
+
const _config_6 = (0, import_middleware_signing.resolveAwsAuthConfig)(_config_5);
|
|
121
|
+
const _config_7 = (0, import_middleware_user_agent.resolveUserAgentConfig)(_config_6);
|
|
122
|
+
const _config_8 = resolveRuntimeExtensions(_config_7, (configuration == null ? void 0 : configuration.extensions) || []);
|
|
123
|
+
super(_config_8);
|
|
124
|
+
this.config = _config_8;
|
|
125
|
+
this.middlewareStack.use((0, import_middleware_retry.getRetryPlugin)(this.config));
|
|
126
|
+
this.middlewareStack.use((0, import_middleware_content_length.getContentLengthPlugin)(this.config));
|
|
127
|
+
this.middlewareStack.use((0, import_middleware_host_header.getHostHeaderPlugin)(this.config));
|
|
128
|
+
this.middlewareStack.use((0, import_middleware_logger.getLoggerPlugin)(this.config));
|
|
129
|
+
this.middlewareStack.use((0, import_middleware_recursion_detection.getRecursionDetectionPlugin)(this.config));
|
|
130
|
+
this.middlewareStack.use((0, import_middleware_signing.getAwsAuthPlugin)(this.config));
|
|
131
|
+
this.middlewareStack.use((0, import_middleware_user_agent.getUserAgentPlugin)(this.config));
|
|
132
|
+
}
|
|
133
|
+
/**
|
|
134
|
+
* Destroy underlying resources, like sockets. It's usually not necessary to do this.
|
|
135
|
+
* However in Node.js, it's best to explicitly shut down the client's agent when it is no longer needed.
|
|
136
|
+
* Otherwise, sockets might stay open for quite a long time before the server terminates them.
|
|
137
|
+
*/
|
|
138
|
+
destroy() {
|
|
139
|
+
super.destroy();
|
|
140
|
+
}
|
|
141
|
+
};
|
|
142
|
+
__name(_ARCZonalShiftClient, "ARCZonalShiftClient");
|
|
143
|
+
var ARCZonalShiftClient = _ARCZonalShiftClient;
|
|
144
|
+
|
|
145
|
+
// src/ARCZonalShift.ts
|
|
146
|
+
|
|
147
|
+
|
|
148
|
+
// src/commands/CancelZonalShiftCommand.ts
|
|
149
|
+
|
|
150
|
+
var import_middleware_serde = require("@smithy/middleware-serde");
|
|
151
|
+
|
|
152
|
+
var import_types = require("@smithy/types");
|
|
153
|
+
|
|
154
|
+
// src/protocols/Aws_restJson1.ts
|
|
155
|
+
var import_core = require("@smithy/core");
|
|
156
|
+
|
|
157
|
+
|
|
158
|
+
// src/models/ARCZonalShiftServiceException.ts
|
|
159
|
+
|
|
160
|
+
var _ARCZonalShiftServiceException = class _ARCZonalShiftServiceException extends import_smithy_client.ServiceException {
|
|
161
|
+
/**
|
|
162
|
+
* @internal
|
|
163
|
+
*/
|
|
164
|
+
constructor(options) {
|
|
165
|
+
super(options);
|
|
166
|
+
Object.setPrototypeOf(this, _ARCZonalShiftServiceException.prototype);
|
|
167
|
+
}
|
|
168
|
+
};
|
|
169
|
+
__name(_ARCZonalShiftServiceException, "ARCZonalShiftServiceException");
|
|
170
|
+
var ARCZonalShiftServiceException = _ARCZonalShiftServiceException;
|
|
171
|
+
|
|
172
|
+
// src/models/models_0.ts
|
|
173
|
+
var _AccessDeniedException = class _AccessDeniedException extends ARCZonalShiftServiceException {
|
|
174
|
+
/**
|
|
175
|
+
* @internal
|
|
176
|
+
*/
|
|
177
|
+
constructor(opts) {
|
|
178
|
+
super({
|
|
179
|
+
name: "AccessDeniedException",
|
|
180
|
+
$fault: "client",
|
|
181
|
+
...opts
|
|
182
|
+
});
|
|
183
|
+
this.name = "AccessDeniedException";
|
|
184
|
+
this.$fault = "client";
|
|
185
|
+
Object.setPrototypeOf(this, _AccessDeniedException.prototype);
|
|
186
|
+
}
|
|
187
|
+
};
|
|
188
|
+
__name(_AccessDeniedException, "AccessDeniedException");
|
|
189
|
+
var AccessDeniedException = _AccessDeniedException;
|
|
190
|
+
var AppliedStatus = {
|
|
191
|
+
APPLIED: "APPLIED",
|
|
192
|
+
NOT_APPLIED: "NOT_APPLIED"
|
|
193
|
+
};
|
|
194
|
+
var _InternalServerException = class _InternalServerException extends ARCZonalShiftServiceException {
|
|
195
|
+
/**
|
|
196
|
+
* @internal
|
|
197
|
+
*/
|
|
198
|
+
constructor(opts) {
|
|
199
|
+
super({
|
|
200
|
+
name: "InternalServerException",
|
|
201
|
+
$fault: "server",
|
|
202
|
+
...opts
|
|
203
|
+
});
|
|
204
|
+
this.name = "InternalServerException";
|
|
205
|
+
this.$fault = "server";
|
|
206
|
+
Object.setPrototypeOf(this, _InternalServerException.prototype);
|
|
207
|
+
}
|
|
208
|
+
};
|
|
209
|
+
__name(_InternalServerException, "InternalServerException");
|
|
210
|
+
var InternalServerException = _InternalServerException;
|
|
211
|
+
var AutoshiftExecutionStatus = {
|
|
212
|
+
ACTIVE: "ACTIVE",
|
|
213
|
+
COMPLETED: "COMPLETED"
|
|
214
|
+
};
|
|
215
|
+
var _ThrottlingException = class _ThrottlingException extends ARCZonalShiftServiceException {
|
|
216
|
+
/**
|
|
217
|
+
* @internal
|
|
218
|
+
*/
|
|
219
|
+
constructor(opts) {
|
|
220
|
+
super({
|
|
221
|
+
name: "ThrottlingException",
|
|
222
|
+
$fault: "client",
|
|
223
|
+
...opts
|
|
224
|
+
});
|
|
225
|
+
this.name = "ThrottlingException";
|
|
226
|
+
this.$fault = "client";
|
|
227
|
+
Object.setPrototypeOf(this, _ThrottlingException.prototype);
|
|
228
|
+
}
|
|
229
|
+
};
|
|
230
|
+
__name(_ThrottlingException, "ThrottlingException");
|
|
231
|
+
var ThrottlingException = _ThrottlingException;
|
|
232
|
+
var ValidationExceptionReason = {
|
|
233
|
+
INVALID_ALARM_CONDITION: "InvalidAlarmCondition",
|
|
234
|
+
INVALID_AZ: "InvalidAz",
|
|
235
|
+
INVALID_CONDITION_TYPE: "InvalidConditionType",
|
|
236
|
+
INVALID_EXPIRES_IN: "InvalidExpiresIn",
|
|
237
|
+
INVALID_PRACTICE_BLOCKER: "InvalidPracticeBlocker",
|
|
238
|
+
INVALID_RESOURCE_IDENTIFIER: "InvalidResourceIdentifier",
|
|
239
|
+
INVALID_STATUS: "InvalidStatus",
|
|
240
|
+
INVALID_TOKEN: "InvalidToken",
|
|
241
|
+
MISSING_VALUE: "MissingValue",
|
|
242
|
+
UNSUPPORTED_AZ: "UnsupportedAz"
|
|
243
|
+
};
|
|
244
|
+
var _ValidationException = class _ValidationException extends ARCZonalShiftServiceException {
|
|
245
|
+
/**
|
|
246
|
+
* @internal
|
|
247
|
+
*/
|
|
248
|
+
constructor(opts) {
|
|
249
|
+
super({
|
|
250
|
+
name: "ValidationException",
|
|
251
|
+
$fault: "client",
|
|
252
|
+
...opts
|
|
253
|
+
});
|
|
254
|
+
this.name = "ValidationException";
|
|
255
|
+
this.$fault = "client";
|
|
256
|
+
Object.setPrototypeOf(this, _ValidationException.prototype);
|
|
257
|
+
this.reason = opts.reason;
|
|
258
|
+
}
|
|
259
|
+
};
|
|
260
|
+
__name(_ValidationException, "ValidationException");
|
|
261
|
+
var ValidationException = _ValidationException;
|
|
262
|
+
var AutoshiftAppliedStatus = {
|
|
263
|
+
APPLIED: "APPLIED",
|
|
264
|
+
NOT_APPLIED: "NOT_APPLIED"
|
|
265
|
+
};
|
|
266
|
+
var ConflictExceptionReason = {
|
|
267
|
+
AUTOSHIFT_ENABLED: "AutoShiftEnabled",
|
|
268
|
+
PRACTICE_CONFIGURATION_ALREADY_EXISTS: "PracticeConfigurationAlreadyExists",
|
|
269
|
+
PRACTICE_CONFIGURATION_DOES_NOT_EXIST: "PracticeConfigurationDoesNotExist",
|
|
270
|
+
SIMULTANEOUS_ZONAL_SHIFTS_CONFLICT: "SimultaneousZonalShiftsConflict",
|
|
271
|
+
ZONAL_SHIFT_ALREADY_EXISTS: "ZonalShiftAlreadyExists",
|
|
272
|
+
ZONAL_SHIFT_STATUS_NOT_ACTIVE: "ZonalShiftStatusNotActive"
|
|
273
|
+
};
|
|
274
|
+
var _ConflictException = class _ConflictException extends ARCZonalShiftServiceException {
|
|
275
|
+
/**
|
|
276
|
+
* @internal
|
|
277
|
+
*/
|
|
278
|
+
constructor(opts) {
|
|
279
|
+
super({
|
|
280
|
+
name: "ConflictException",
|
|
281
|
+
$fault: "client",
|
|
282
|
+
...opts
|
|
283
|
+
});
|
|
284
|
+
this.name = "ConflictException";
|
|
285
|
+
this.$fault = "client";
|
|
286
|
+
Object.setPrototypeOf(this, _ConflictException.prototype);
|
|
287
|
+
this.reason = opts.reason;
|
|
288
|
+
this.zonalShiftId = opts.zonalShiftId;
|
|
289
|
+
}
|
|
290
|
+
};
|
|
291
|
+
__name(_ConflictException, "ConflictException");
|
|
292
|
+
var ConflictException = _ConflictException;
|
|
293
|
+
var _ResourceNotFoundException = class _ResourceNotFoundException extends ARCZonalShiftServiceException {
|
|
294
|
+
/**
|
|
295
|
+
* @internal
|
|
296
|
+
*/
|
|
297
|
+
constructor(opts) {
|
|
298
|
+
super({
|
|
299
|
+
name: "ResourceNotFoundException",
|
|
300
|
+
$fault: "client",
|
|
301
|
+
...opts
|
|
302
|
+
});
|
|
303
|
+
this.name = "ResourceNotFoundException";
|
|
304
|
+
this.$fault = "client";
|
|
305
|
+
Object.setPrototypeOf(this, _ResourceNotFoundException.prototype);
|
|
306
|
+
}
|
|
307
|
+
};
|
|
308
|
+
__name(_ResourceNotFoundException, "ResourceNotFoundException");
|
|
309
|
+
var ResourceNotFoundException = _ResourceNotFoundException;
|
|
310
|
+
var ZonalShiftStatus = {
|
|
311
|
+
ACTIVE: "ACTIVE",
|
|
312
|
+
CANCELED: "CANCELED",
|
|
313
|
+
EXPIRED: "EXPIRED"
|
|
314
|
+
};
|
|
315
|
+
var ControlConditionType = {
|
|
316
|
+
CLOUDWATCH: "CLOUDWATCH"
|
|
317
|
+
};
|
|
318
|
+
var ZonalAutoshiftStatus = {
|
|
319
|
+
DISABLED: "DISABLED",
|
|
320
|
+
ENABLED: "ENABLED"
|
|
321
|
+
};
|
|
322
|
+
var PracticeRunOutcome = {
|
|
323
|
+
FAILED: "FAILED",
|
|
324
|
+
INTERRUPTED: "INTERRUPTED",
|
|
325
|
+
PENDING: "PENDING",
|
|
326
|
+
SUCCEEDED: "SUCCEEDED"
|
|
327
|
+
};
|
|
328
|
+
|
|
329
|
+
// src/protocols/Aws_restJson1.ts
|
|
330
|
+
var se_CancelZonalShiftCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
331
|
+
const b = (0, import_core.requestBuilder)(input, context);
|
|
332
|
+
const headers = {};
|
|
333
|
+
b.bp("/zonalshifts/{zonalShiftId}");
|
|
334
|
+
b.p("zonalShiftId", () => input.zonalShiftId, "{zonalShiftId}", false);
|
|
335
|
+
let body;
|
|
336
|
+
b.m("DELETE").h(headers).b(body);
|
|
337
|
+
return b.build();
|
|
338
|
+
}, "se_CancelZonalShiftCommand");
|
|
339
|
+
var se_CreatePracticeRunConfigurationCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
340
|
+
const b = (0, import_core.requestBuilder)(input, context);
|
|
341
|
+
const headers = {
|
|
342
|
+
"content-type": "application/json"
|
|
343
|
+
};
|
|
344
|
+
b.bp("/configuration");
|
|
345
|
+
let body;
|
|
346
|
+
body = JSON.stringify(
|
|
347
|
+
(0, import_smithy_client.take)(input, {
|
|
348
|
+
blockedDates: (_) => (0, import_smithy_client._json)(_),
|
|
349
|
+
blockedWindows: (_) => (0, import_smithy_client._json)(_),
|
|
350
|
+
blockingAlarms: (_) => (0, import_smithy_client._json)(_),
|
|
351
|
+
outcomeAlarms: (_) => (0, import_smithy_client._json)(_),
|
|
352
|
+
resourceIdentifier: []
|
|
353
|
+
})
|
|
354
|
+
);
|
|
355
|
+
b.m("POST").h(headers).b(body);
|
|
356
|
+
return b.build();
|
|
357
|
+
}, "se_CreatePracticeRunConfigurationCommand");
|
|
358
|
+
var se_DeletePracticeRunConfigurationCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
359
|
+
const b = (0, import_core.requestBuilder)(input, context);
|
|
360
|
+
const headers = {};
|
|
361
|
+
b.bp("/configuration/{resourceIdentifier}");
|
|
362
|
+
b.p("resourceIdentifier", () => input.resourceIdentifier, "{resourceIdentifier}", false);
|
|
363
|
+
let body;
|
|
364
|
+
b.m("DELETE").h(headers).b(body);
|
|
365
|
+
return b.build();
|
|
366
|
+
}, "se_DeletePracticeRunConfigurationCommand");
|
|
367
|
+
var se_GetManagedResourceCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
368
|
+
const b = (0, import_core.requestBuilder)(input, context);
|
|
369
|
+
const headers = {};
|
|
370
|
+
b.bp("/managedresources/{resourceIdentifier}");
|
|
371
|
+
b.p("resourceIdentifier", () => input.resourceIdentifier, "{resourceIdentifier}", false);
|
|
372
|
+
let body;
|
|
373
|
+
b.m("GET").h(headers).b(body);
|
|
374
|
+
return b.build();
|
|
375
|
+
}, "se_GetManagedResourceCommand");
|
|
376
|
+
var se_ListAutoshiftsCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
377
|
+
const b = (0, import_core.requestBuilder)(input, context);
|
|
378
|
+
const headers = {};
|
|
379
|
+
b.bp("/autoshifts");
|
|
380
|
+
const query = (0, import_smithy_client.map)({
|
|
381
|
+
[_nT]: [, input[_nT]],
|
|
382
|
+
[_s]: [, input[_s]],
|
|
383
|
+
[_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()]
|
|
384
|
+
});
|
|
385
|
+
let body;
|
|
386
|
+
b.m("GET").h(headers).q(query).b(body);
|
|
387
|
+
return b.build();
|
|
388
|
+
}, "se_ListAutoshiftsCommand");
|
|
389
|
+
var se_ListManagedResourcesCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
390
|
+
const b = (0, import_core.requestBuilder)(input, context);
|
|
391
|
+
const headers = {};
|
|
392
|
+
b.bp("/managedresources");
|
|
393
|
+
const query = (0, import_smithy_client.map)({
|
|
394
|
+
[_nT]: [, input[_nT]],
|
|
395
|
+
[_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()]
|
|
396
|
+
});
|
|
397
|
+
let body;
|
|
398
|
+
b.m("GET").h(headers).q(query).b(body);
|
|
399
|
+
return b.build();
|
|
400
|
+
}, "se_ListManagedResourcesCommand");
|
|
401
|
+
var se_ListZonalShiftsCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
402
|
+
const b = (0, import_core.requestBuilder)(input, context);
|
|
403
|
+
const headers = {};
|
|
404
|
+
b.bp("/zonalshifts");
|
|
405
|
+
const query = (0, import_smithy_client.map)({
|
|
406
|
+
[_nT]: [, input[_nT]],
|
|
407
|
+
[_s]: [, input[_s]],
|
|
408
|
+
[_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
|
|
409
|
+
[_rI]: [, input[_rI]]
|
|
410
|
+
});
|
|
411
|
+
let body;
|
|
412
|
+
b.m("GET").h(headers).q(query).b(body);
|
|
413
|
+
return b.build();
|
|
414
|
+
}, "se_ListZonalShiftsCommand");
|
|
415
|
+
var se_StartZonalShiftCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
416
|
+
const b = (0, import_core.requestBuilder)(input, context);
|
|
417
|
+
const headers = {
|
|
418
|
+
"content-type": "application/json"
|
|
419
|
+
};
|
|
420
|
+
b.bp("/zonalshifts");
|
|
421
|
+
let body;
|
|
422
|
+
body = JSON.stringify(
|
|
423
|
+
(0, import_smithy_client.take)(input, {
|
|
424
|
+
awayFrom: [],
|
|
425
|
+
comment: [],
|
|
426
|
+
expiresIn: [],
|
|
427
|
+
resourceIdentifier: []
|
|
428
|
+
})
|
|
429
|
+
);
|
|
430
|
+
b.m("POST").h(headers).b(body);
|
|
431
|
+
return b.build();
|
|
432
|
+
}, "se_StartZonalShiftCommand");
|
|
433
|
+
var se_UpdatePracticeRunConfigurationCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
434
|
+
const b = (0, import_core.requestBuilder)(input, context);
|
|
435
|
+
const headers = {
|
|
436
|
+
"content-type": "application/json"
|
|
437
|
+
};
|
|
438
|
+
b.bp("/configuration/{resourceIdentifier}");
|
|
439
|
+
b.p("resourceIdentifier", () => input.resourceIdentifier, "{resourceIdentifier}", false);
|
|
440
|
+
let body;
|
|
441
|
+
body = JSON.stringify(
|
|
442
|
+
(0, import_smithy_client.take)(input, {
|
|
443
|
+
blockedDates: (_) => (0, import_smithy_client._json)(_),
|
|
444
|
+
blockedWindows: (_) => (0, import_smithy_client._json)(_),
|
|
445
|
+
blockingAlarms: (_) => (0, import_smithy_client._json)(_),
|
|
446
|
+
outcomeAlarms: (_) => (0, import_smithy_client._json)(_)
|
|
447
|
+
})
|
|
448
|
+
);
|
|
449
|
+
b.m("PATCH").h(headers).b(body);
|
|
450
|
+
return b.build();
|
|
451
|
+
}, "se_UpdatePracticeRunConfigurationCommand");
|
|
452
|
+
var se_UpdateZonalAutoshiftConfigurationCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
453
|
+
const b = (0, import_core.requestBuilder)(input, context);
|
|
454
|
+
const headers = {
|
|
455
|
+
"content-type": "application/json"
|
|
456
|
+
};
|
|
457
|
+
b.bp("/managedresources/{resourceIdentifier}");
|
|
458
|
+
b.p("resourceIdentifier", () => input.resourceIdentifier, "{resourceIdentifier}", false);
|
|
459
|
+
let body;
|
|
460
|
+
body = JSON.stringify(
|
|
461
|
+
(0, import_smithy_client.take)(input, {
|
|
462
|
+
zonalAutoshiftStatus: []
|
|
463
|
+
})
|
|
464
|
+
);
|
|
465
|
+
b.m("PUT").h(headers).b(body);
|
|
466
|
+
return b.build();
|
|
467
|
+
}, "se_UpdateZonalAutoshiftConfigurationCommand");
|
|
468
|
+
var se_UpdateZonalShiftCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
469
|
+
const b = (0, import_core.requestBuilder)(input, context);
|
|
470
|
+
const headers = {
|
|
471
|
+
"content-type": "application/json"
|
|
472
|
+
};
|
|
473
|
+
b.bp("/zonalshifts/{zonalShiftId}");
|
|
474
|
+
b.p("zonalShiftId", () => input.zonalShiftId, "{zonalShiftId}", false);
|
|
475
|
+
let body;
|
|
476
|
+
body = JSON.stringify(
|
|
477
|
+
(0, import_smithy_client.take)(input, {
|
|
478
|
+
comment: [],
|
|
479
|
+
expiresIn: []
|
|
480
|
+
})
|
|
481
|
+
);
|
|
482
|
+
b.m("PATCH").h(headers).b(body);
|
|
483
|
+
return b.build();
|
|
484
|
+
}, "se_UpdateZonalShiftCommand");
|
|
485
|
+
var de_CancelZonalShiftCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
486
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
487
|
+
return de_CancelZonalShiftCommandError(output, context);
|
|
488
|
+
}
|
|
489
|
+
const contents = (0, import_smithy_client.map)({
|
|
490
|
+
$metadata: deserializeMetadata(output)
|
|
491
|
+
});
|
|
492
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
|
|
493
|
+
const doc = (0, import_smithy_client.take)(data, {
|
|
494
|
+
awayFrom: import_smithy_client.expectString,
|
|
495
|
+
comment: import_smithy_client.expectString,
|
|
496
|
+
expiryTime: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))),
|
|
497
|
+
resourceIdentifier: import_smithy_client.expectString,
|
|
498
|
+
startTime: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))),
|
|
499
|
+
status: import_smithy_client.expectString,
|
|
500
|
+
zonalShiftId: import_smithy_client.expectString
|
|
501
|
+
});
|
|
502
|
+
Object.assign(contents, doc);
|
|
503
|
+
return contents;
|
|
504
|
+
}, "de_CancelZonalShiftCommand");
|
|
505
|
+
var de_CancelZonalShiftCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
506
|
+
const parsedOutput = {
|
|
507
|
+
...output,
|
|
508
|
+
body: await parseErrorBody(output.body, context)
|
|
509
|
+
};
|
|
510
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
511
|
+
switch (errorCode) {
|
|
512
|
+
case "AccessDeniedException":
|
|
513
|
+
case "com.amazonaws.arczonalshift#AccessDeniedException":
|
|
514
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
515
|
+
case "ConflictException":
|
|
516
|
+
case "com.amazonaws.arczonalshift#ConflictException":
|
|
517
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
518
|
+
case "InternalServerException":
|
|
519
|
+
case "com.amazonaws.arczonalshift#InternalServerException":
|
|
520
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
521
|
+
case "ResourceNotFoundException":
|
|
522
|
+
case "com.amazonaws.arczonalshift#ResourceNotFoundException":
|
|
523
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
524
|
+
case "ThrottlingException":
|
|
525
|
+
case "com.amazonaws.arczonalshift#ThrottlingException":
|
|
526
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
527
|
+
case "ValidationException":
|
|
528
|
+
case "com.amazonaws.arczonalshift#ValidationException":
|
|
529
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
530
|
+
default:
|
|
531
|
+
const parsedBody = parsedOutput.body;
|
|
532
|
+
return throwDefaultError({
|
|
533
|
+
output,
|
|
534
|
+
parsedBody,
|
|
535
|
+
errorCode
|
|
536
|
+
});
|
|
537
|
+
}
|
|
538
|
+
}, "de_CancelZonalShiftCommandError");
|
|
539
|
+
var de_CreatePracticeRunConfigurationCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
540
|
+
if (output.statusCode !== 201 && output.statusCode >= 300) {
|
|
541
|
+
return de_CreatePracticeRunConfigurationCommandError(output, context);
|
|
542
|
+
}
|
|
543
|
+
const contents = (0, import_smithy_client.map)({
|
|
544
|
+
$metadata: deserializeMetadata(output)
|
|
545
|
+
});
|
|
546
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
|
|
547
|
+
const doc = (0, import_smithy_client.take)(data, {
|
|
548
|
+
arn: import_smithy_client.expectString,
|
|
549
|
+
name: import_smithy_client.expectString,
|
|
550
|
+
practiceRunConfiguration: import_smithy_client._json,
|
|
551
|
+
zonalAutoshiftStatus: import_smithy_client.expectString
|
|
552
|
+
});
|
|
553
|
+
Object.assign(contents, doc);
|
|
554
|
+
return contents;
|
|
555
|
+
}, "de_CreatePracticeRunConfigurationCommand");
|
|
556
|
+
var de_CreatePracticeRunConfigurationCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
557
|
+
const parsedOutput = {
|
|
558
|
+
...output,
|
|
559
|
+
body: await parseErrorBody(output.body, context)
|
|
560
|
+
};
|
|
561
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
562
|
+
switch (errorCode) {
|
|
563
|
+
case "AccessDeniedException":
|
|
564
|
+
case "com.amazonaws.arczonalshift#AccessDeniedException":
|
|
565
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
566
|
+
case "ConflictException":
|
|
567
|
+
case "com.amazonaws.arczonalshift#ConflictException":
|
|
568
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
569
|
+
case "InternalServerException":
|
|
570
|
+
case "com.amazonaws.arczonalshift#InternalServerException":
|
|
571
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
572
|
+
case "ResourceNotFoundException":
|
|
573
|
+
case "com.amazonaws.arczonalshift#ResourceNotFoundException":
|
|
574
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
575
|
+
case "ThrottlingException":
|
|
576
|
+
case "com.amazonaws.arczonalshift#ThrottlingException":
|
|
577
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
578
|
+
case "ValidationException":
|
|
579
|
+
case "com.amazonaws.arczonalshift#ValidationException":
|
|
580
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
581
|
+
default:
|
|
582
|
+
const parsedBody = parsedOutput.body;
|
|
583
|
+
return throwDefaultError({
|
|
584
|
+
output,
|
|
585
|
+
parsedBody,
|
|
586
|
+
errorCode
|
|
587
|
+
});
|
|
588
|
+
}
|
|
589
|
+
}, "de_CreatePracticeRunConfigurationCommandError");
|
|
590
|
+
var de_DeletePracticeRunConfigurationCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
591
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
592
|
+
return de_DeletePracticeRunConfigurationCommandError(output, context);
|
|
593
|
+
}
|
|
594
|
+
const contents = (0, import_smithy_client.map)({
|
|
595
|
+
$metadata: deserializeMetadata(output)
|
|
596
|
+
});
|
|
597
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
|
|
598
|
+
const doc = (0, import_smithy_client.take)(data, {
|
|
599
|
+
arn: import_smithy_client.expectString,
|
|
600
|
+
name: import_smithy_client.expectString,
|
|
601
|
+
zonalAutoshiftStatus: import_smithy_client.expectString
|
|
602
|
+
});
|
|
603
|
+
Object.assign(contents, doc);
|
|
604
|
+
return contents;
|
|
605
|
+
}, "de_DeletePracticeRunConfigurationCommand");
|
|
606
|
+
var de_DeletePracticeRunConfigurationCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
607
|
+
const parsedOutput = {
|
|
608
|
+
...output,
|
|
609
|
+
body: await parseErrorBody(output.body, context)
|
|
610
|
+
};
|
|
611
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
612
|
+
switch (errorCode) {
|
|
613
|
+
case "AccessDeniedException":
|
|
614
|
+
case "com.amazonaws.arczonalshift#AccessDeniedException":
|
|
615
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
616
|
+
case "ConflictException":
|
|
617
|
+
case "com.amazonaws.arczonalshift#ConflictException":
|
|
618
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
619
|
+
case "InternalServerException":
|
|
620
|
+
case "com.amazonaws.arczonalshift#InternalServerException":
|
|
621
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
622
|
+
case "ResourceNotFoundException":
|
|
623
|
+
case "com.amazonaws.arczonalshift#ResourceNotFoundException":
|
|
624
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
625
|
+
case "ThrottlingException":
|
|
626
|
+
case "com.amazonaws.arczonalshift#ThrottlingException":
|
|
627
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
628
|
+
case "ValidationException":
|
|
629
|
+
case "com.amazonaws.arczonalshift#ValidationException":
|
|
630
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
631
|
+
default:
|
|
632
|
+
const parsedBody = parsedOutput.body;
|
|
633
|
+
return throwDefaultError({
|
|
634
|
+
output,
|
|
635
|
+
parsedBody,
|
|
636
|
+
errorCode
|
|
637
|
+
});
|
|
638
|
+
}
|
|
639
|
+
}, "de_DeletePracticeRunConfigurationCommandError");
|
|
640
|
+
var de_GetManagedResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
641
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
642
|
+
return de_GetManagedResourceCommandError(output, context);
|
|
643
|
+
}
|
|
644
|
+
const contents = (0, import_smithy_client.map)({
|
|
645
|
+
$metadata: deserializeMetadata(output)
|
|
646
|
+
});
|
|
647
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
|
|
648
|
+
const doc = (0, import_smithy_client.take)(data, {
|
|
649
|
+
appliedWeights: (_) => de_AppliedWeights(_, context),
|
|
650
|
+
arn: import_smithy_client.expectString,
|
|
651
|
+
autoshifts: (_) => de_AutoshiftsInResource(_, context),
|
|
652
|
+
name: import_smithy_client.expectString,
|
|
653
|
+
practiceRunConfiguration: import_smithy_client._json,
|
|
654
|
+
zonalAutoshiftStatus: import_smithy_client.expectString,
|
|
655
|
+
zonalShifts: (_) => de_ZonalShiftsInResource(_, context)
|
|
656
|
+
});
|
|
657
|
+
Object.assign(contents, doc);
|
|
658
|
+
return contents;
|
|
659
|
+
}, "de_GetManagedResourceCommand");
|
|
660
|
+
var de_GetManagedResourceCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
661
|
+
const parsedOutput = {
|
|
662
|
+
...output,
|
|
663
|
+
body: await parseErrorBody(output.body, context)
|
|
664
|
+
};
|
|
665
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
666
|
+
switch (errorCode) {
|
|
667
|
+
case "AccessDeniedException":
|
|
668
|
+
case "com.amazonaws.arczonalshift#AccessDeniedException":
|
|
669
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
670
|
+
case "InternalServerException":
|
|
671
|
+
case "com.amazonaws.arczonalshift#InternalServerException":
|
|
672
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
673
|
+
case "ResourceNotFoundException":
|
|
674
|
+
case "com.amazonaws.arczonalshift#ResourceNotFoundException":
|
|
675
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
676
|
+
case "ThrottlingException":
|
|
677
|
+
case "com.amazonaws.arczonalshift#ThrottlingException":
|
|
678
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
679
|
+
case "ValidationException":
|
|
680
|
+
case "com.amazonaws.arczonalshift#ValidationException":
|
|
681
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
682
|
+
default:
|
|
683
|
+
const parsedBody = parsedOutput.body;
|
|
684
|
+
return throwDefaultError({
|
|
685
|
+
output,
|
|
686
|
+
parsedBody,
|
|
687
|
+
errorCode
|
|
688
|
+
});
|
|
689
|
+
}
|
|
690
|
+
}, "de_GetManagedResourceCommandError");
|
|
691
|
+
var de_ListAutoshiftsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
692
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
693
|
+
return de_ListAutoshiftsCommandError(output, context);
|
|
694
|
+
}
|
|
695
|
+
const contents = (0, import_smithy_client.map)({
|
|
696
|
+
$metadata: deserializeMetadata(output)
|
|
697
|
+
});
|
|
698
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
|
|
699
|
+
const doc = (0, import_smithy_client.take)(data, {
|
|
700
|
+
items: (_) => de_AutoshiftSummaries(_, context),
|
|
701
|
+
nextToken: import_smithy_client.expectString
|
|
702
|
+
});
|
|
703
|
+
Object.assign(contents, doc);
|
|
704
|
+
return contents;
|
|
705
|
+
}, "de_ListAutoshiftsCommand");
|
|
706
|
+
var de_ListAutoshiftsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
707
|
+
const parsedOutput = {
|
|
708
|
+
...output,
|
|
709
|
+
body: await parseErrorBody(output.body, context)
|
|
710
|
+
};
|
|
711
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
712
|
+
switch (errorCode) {
|
|
713
|
+
case "AccessDeniedException":
|
|
714
|
+
case "com.amazonaws.arczonalshift#AccessDeniedException":
|
|
715
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
716
|
+
case "InternalServerException":
|
|
717
|
+
case "com.amazonaws.arczonalshift#InternalServerException":
|
|
718
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
719
|
+
case "ThrottlingException":
|
|
720
|
+
case "com.amazonaws.arczonalshift#ThrottlingException":
|
|
721
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
722
|
+
case "ValidationException":
|
|
723
|
+
case "com.amazonaws.arczonalshift#ValidationException":
|
|
724
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
725
|
+
default:
|
|
726
|
+
const parsedBody = parsedOutput.body;
|
|
727
|
+
return throwDefaultError({
|
|
728
|
+
output,
|
|
729
|
+
parsedBody,
|
|
730
|
+
errorCode
|
|
731
|
+
});
|
|
732
|
+
}
|
|
733
|
+
}, "de_ListAutoshiftsCommandError");
|
|
734
|
+
var de_ListManagedResourcesCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
735
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
736
|
+
return de_ListManagedResourcesCommandError(output, context);
|
|
737
|
+
}
|
|
738
|
+
const contents = (0, import_smithy_client.map)({
|
|
739
|
+
$metadata: deserializeMetadata(output)
|
|
740
|
+
});
|
|
741
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
|
|
742
|
+
const doc = (0, import_smithy_client.take)(data, {
|
|
743
|
+
items: (_) => de_ManagedResourceSummaries(_, context),
|
|
744
|
+
nextToken: import_smithy_client.expectString
|
|
745
|
+
});
|
|
746
|
+
Object.assign(contents, doc);
|
|
747
|
+
return contents;
|
|
748
|
+
}, "de_ListManagedResourcesCommand");
|
|
749
|
+
var de_ListManagedResourcesCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
750
|
+
const parsedOutput = {
|
|
751
|
+
...output,
|
|
752
|
+
body: await parseErrorBody(output.body, context)
|
|
753
|
+
};
|
|
754
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
755
|
+
switch (errorCode) {
|
|
756
|
+
case "AccessDeniedException":
|
|
757
|
+
case "com.amazonaws.arczonalshift#AccessDeniedException":
|
|
758
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
759
|
+
case "InternalServerException":
|
|
760
|
+
case "com.amazonaws.arczonalshift#InternalServerException":
|
|
761
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
762
|
+
case "ThrottlingException":
|
|
763
|
+
case "com.amazonaws.arczonalshift#ThrottlingException":
|
|
764
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
765
|
+
case "ValidationException":
|
|
766
|
+
case "com.amazonaws.arczonalshift#ValidationException":
|
|
767
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
768
|
+
default:
|
|
769
|
+
const parsedBody = parsedOutput.body;
|
|
770
|
+
return throwDefaultError({
|
|
771
|
+
output,
|
|
772
|
+
parsedBody,
|
|
773
|
+
errorCode
|
|
774
|
+
});
|
|
775
|
+
}
|
|
776
|
+
}, "de_ListManagedResourcesCommandError");
|
|
777
|
+
var de_ListZonalShiftsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
778
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
779
|
+
return de_ListZonalShiftsCommandError(output, context);
|
|
780
|
+
}
|
|
781
|
+
const contents = (0, import_smithy_client.map)({
|
|
782
|
+
$metadata: deserializeMetadata(output)
|
|
783
|
+
});
|
|
784
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
|
|
785
|
+
const doc = (0, import_smithy_client.take)(data, {
|
|
786
|
+
items: (_) => de_ZonalShiftSummaries(_, context),
|
|
787
|
+
nextToken: import_smithy_client.expectString
|
|
788
|
+
});
|
|
789
|
+
Object.assign(contents, doc);
|
|
790
|
+
return contents;
|
|
791
|
+
}, "de_ListZonalShiftsCommand");
|
|
792
|
+
var de_ListZonalShiftsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
793
|
+
const parsedOutput = {
|
|
794
|
+
...output,
|
|
795
|
+
body: await parseErrorBody(output.body, context)
|
|
796
|
+
};
|
|
797
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
798
|
+
switch (errorCode) {
|
|
799
|
+
case "AccessDeniedException":
|
|
800
|
+
case "com.amazonaws.arczonalshift#AccessDeniedException":
|
|
801
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
802
|
+
case "InternalServerException":
|
|
803
|
+
case "com.amazonaws.arczonalshift#InternalServerException":
|
|
804
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
805
|
+
case "ThrottlingException":
|
|
806
|
+
case "com.amazonaws.arczonalshift#ThrottlingException":
|
|
807
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
808
|
+
case "ValidationException":
|
|
809
|
+
case "com.amazonaws.arczonalshift#ValidationException":
|
|
810
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
811
|
+
default:
|
|
812
|
+
const parsedBody = parsedOutput.body;
|
|
813
|
+
return throwDefaultError({
|
|
814
|
+
output,
|
|
815
|
+
parsedBody,
|
|
816
|
+
errorCode
|
|
817
|
+
});
|
|
818
|
+
}
|
|
819
|
+
}, "de_ListZonalShiftsCommandError");
|
|
820
|
+
var de_StartZonalShiftCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
821
|
+
if (output.statusCode !== 201 && output.statusCode >= 300) {
|
|
822
|
+
return de_StartZonalShiftCommandError(output, context);
|
|
823
|
+
}
|
|
824
|
+
const contents = (0, import_smithy_client.map)({
|
|
825
|
+
$metadata: deserializeMetadata(output)
|
|
826
|
+
});
|
|
827
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
|
|
828
|
+
const doc = (0, import_smithy_client.take)(data, {
|
|
829
|
+
awayFrom: import_smithy_client.expectString,
|
|
830
|
+
comment: import_smithy_client.expectString,
|
|
831
|
+
expiryTime: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))),
|
|
832
|
+
resourceIdentifier: import_smithy_client.expectString,
|
|
833
|
+
startTime: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))),
|
|
834
|
+
status: import_smithy_client.expectString,
|
|
835
|
+
zonalShiftId: import_smithy_client.expectString
|
|
836
|
+
});
|
|
837
|
+
Object.assign(contents, doc);
|
|
838
|
+
return contents;
|
|
839
|
+
}, "de_StartZonalShiftCommand");
|
|
840
|
+
var de_StartZonalShiftCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
841
|
+
const parsedOutput = {
|
|
842
|
+
...output,
|
|
843
|
+
body: await parseErrorBody(output.body, context)
|
|
844
|
+
};
|
|
845
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
846
|
+
switch (errorCode) {
|
|
847
|
+
case "AccessDeniedException":
|
|
848
|
+
case "com.amazonaws.arczonalshift#AccessDeniedException":
|
|
849
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
850
|
+
case "ConflictException":
|
|
851
|
+
case "com.amazonaws.arczonalshift#ConflictException":
|
|
852
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
853
|
+
case "InternalServerException":
|
|
854
|
+
case "com.amazonaws.arczonalshift#InternalServerException":
|
|
855
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
856
|
+
case "ResourceNotFoundException":
|
|
857
|
+
case "com.amazonaws.arczonalshift#ResourceNotFoundException":
|
|
858
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
859
|
+
case "ThrottlingException":
|
|
860
|
+
case "com.amazonaws.arczonalshift#ThrottlingException":
|
|
861
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
862
|
+
case "ValidationException":
|
|
863
|
+
case "com.amazonaws.arczonalshift#ValidationException":
|
|
864
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
865
|
+
default:
|
|
866
|
+
const parsedBody = parsedOutput.body;
|
|
867
|
+
return throwDefaultError({
|
|
868
|
+
output,
|
|
869
|
+
parsedBody,
|
|
870
|
+
errorCode
|
|
871
|
+
});
|
|
872
|
+
}
|
|
873
|
+
}, "de_StartZonalShiftCommandError");
|
|
874
|
+
var de_UpdatePracticeRunConfigurationCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
875
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
876
|
+
return de_UpdatePracticeRunConfigurationCommandError(output, context);
|
|
877
|
+
}
|
|
878
|
+
const contents = (0, import_smithy_client.map)({
|
|
879
|
+
$metadata: deserializeMetadata(output)
|
|
880
|
+
});
|
|
881
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
|
|
882
|
+
const doc = (0, import_smithy_client.take)(data, {
|
|
883
|
+
arn: import_smithy_client.expectString,
|
|
884
|
+
name: import_smithy_client.expectString,
|
|
885
|
+
practiceRunConfiguration: import_smithy_client._json,
|
|
886
|
+
zonalAutoshiftStatus: import_smithy_client.expectString
|
|
887
|
+
});
|
|
888
|
+
Object.assign(contents, doc);
|
|
889
|
+
return contents;
|
|
890
|
+
}, "de_UpdatePracticeRunConfigurationCommand");
|
|
891
|
+
var de_UpdatePracticeRunConfigurationCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
892
|
+
const parsedOutput = {
|
|
893
|
+
...output,
|
|
894
|
+
body: await parseErrorBody(output.body, context)
|
|
895
|
+
};
|
|
896
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
897
|
+
switch (errorCode) {
|
|
898
|
+
case "AccessDeniedException":
|
|
899
|
+
case "com.amazonaws.arczonalshift#AccessDeniedException":
|
|
900
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
901
|
+
case "ConflictException":
|
|
902
|
+
case "com.amazonaws.arczonalshift#ConflictException":
|
|
903
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
904
|
+
case "InternalServerException":
|
|
905
|
+
case "com.amazonaws.arczonalshift#InternalServerException":
|
|
906
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
907
|
+
case "ResourceNotFoundException":
|
|
908
|
+
case "com.amazonaws.arczonalshift#ResourceNotFoundException":
|
|
909
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
910
|
+
case "ThrottlingException":
|
|
911
|
+
case "com.amazonaws.arczonalshift#ThrottlingException":
|
|
912
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
913
|
+
case "ValidationException":
|
|
914
|
+
case "com.amazonaws.arczonalshift#ValidationException":
|
|
915
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
916
|
+
default:
|
|
917
|
+
const parsedBody = parsedOutput.body;
|
|
918
|
+
return throwDefaultError({
|
|
919
|
+
output,
|
|
920
|
+
parsedBody,
|
|
921
|
+
errorCode
|
|
922
|
+
});
|
|
923
|
+
}
|
|
924
|
+
}, "de_UpdatePracticeRunConfigurationCommandError");
|
|
925
|
+
var de_UpdateZonalAutoshiftConfigurationCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
926
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
927
|
+
return de_UpdateZonalAutoshiftConfigurationCommandError(output, context);
|
|
928
|
+
}
|
|
929
|
+
const contents = (0, import_smithy_client.map)({
|
|
930
|
+
$metadata: deserializeMetadata(output)
|
|
931
|
+
});
|
|
932
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
|
|
933
|
+
const doc = (0, import_smithy_client.take)(data, {
|
|
934
|
+
resourceIdentifier: import_smithy_client.expectString,
|
|
935
|
+
zonalAutoshiftStatus: import_smithy_client.expectString
|
|
936
|
+
});
|
|
937
|
+
Object.assign(contents, doc);
|
|
938
|
+
return contents;
|
|
939
|
+
}, "de_UpdateZonalAutoshiftConfigurationCommand");
|
|
940
|
+
var de_UpdateZonalAutoshiftConfigurationCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
941
|
+
const parsedOutput = {
|
|
942
|
+
...output,
|
|
943
|
+
body: await parseErrorBody(output.body, context)
|
|
944
|
+
};
|
|
945
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
946
|
+
switch (errorCode) {
|
|
947
|
+
case "AccessDeniedException":
|
|
948
|
+
case "com.amazonaws.arczonalshift#AccessDeniedException":
|
|
949
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
950
|
+
case "ConflictException":
|
|
951
|
+
case "com.amazonaws.arczonalshift#ConflictException":
|
|
952
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
953
|
+
case "InternalServerException":
|
|
954
|
+
case "com.amazonaws.arczonalshift#InternalServerException":
|
|
955
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
956
|
+
case "ResourceNotFoundException":
|
|
957
|
+
case "com.amazonaws.arczonalshift#ResourceNotFoundException":
|
|
958
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
959
|
+
case "ThrottlingException":
|
|
960
|
+
case "com.amazonaws.arczonalshift#ThrottlingException":
|
|
961
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
962
|
+
case "ValidationException":
|
|
963
|
+
case "com.amazonaws.arczonalshift#ValidationException":
|
|
964
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
965
|
+
default:
|
|
966
|
+
const parsedBody = parsedOutput.body;
|
|
967
|
+
return throwDefaultError({
|
|
968
|
+
output,
|
|
969
|
+
parsedBody,
|
|
970
|
+
errorCode
|
|
971
|
+
});
|
|
972
|
+
}
|
|
973
|
+
}, "de_UpdateZonalAutoshiftConfigurationCommandError");
|
|
974
|
+
var de_UpdateZonalShiftCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
975
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
976
|
+
return de_UpdateZonalShiftCommandError(output, context);
|
|
977
|
+
}
|
|
978
|
+
const contents = (0, import_smithy_client.map)({
|
|
979
|
+
$metadata: deserializeMetadata(output)
|
|
980
|
+
});
|
|
981
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
|
|
982
|
+
const doc = (0, import_smithy_client.take)(data, {
|
|
983
|
+
awayFrom: import_smithy_client.expectString,
|
|
984
|
+
comment: import_smithy_client.expectString,
|
|
985
|
+
expiryTime: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))),
|
|
986
|
+
resourceIdentifier: import_smithy_client.expectString,
|
|
987
|
+
startTime: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))),
|
|
988
|
+
status: import_smithy_client.expectString,
|
|
989
|
+
zonalShiftId: import_smithy_client.expectString
|
|
990
|
+
});
|
|
991
|
+
Object.assign(contents, doc);
|
|
992
|
+
return contents;
|
|
993
|
+
}, "de_UpdateZonalShiftCommand");
|
|
994
|
+
var de_UpdateZonalShiftCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
995
|
+
const parsedOutput = {
|
|
996
|
+
...output,
|
|
997
|
+
body: await parseErrorBody(output.body, context)
|
|
998
|
+
};
|
|
999
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1000
|
+
switch (errorCode) {
|
|
1001
|
+
case "AccessDeniedException":
|
|
1002
|
+
case "com.amazonaws.arczonalshift#AccessDeniedException":
|
|
1003
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1004
|
+
case "ConflictException":
|
|
1005
|
+
case "com.amazonaws.arczonalshift#ConflictException":
|
|
1006
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1007
|
+
case "InternalServerException":
|
|
1008
|
+
case "com.amazonaws.arczonalshift#InternalServerException":
|
|
1009
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1010
|
+
case "ResourceNotFoundException":
|
|
1011
|
+
case "com.amazonaws.arczonalshift#ResourceNotFoundException":
|
|
1012
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1013
|
+
case "ThrottlingException":
|
|
1014
|
+
case "com.amazonaws.arczonalshift#ThrottlingException":
|
|
1015
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1016
|
+
case "ValidationException":
|
|
1017
|
+
case "com.amazonaws.arczonalshift#ValidationException":
|
|
1018
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1019
|
+
default:
|
|
1020
|
+
const parsedBody = parsedOutput.body;
|
|
1021
|
+
return throwDefaultError({
|
|
1022
|
+
output,
|
|
1023
|
+
parsedBody,
|
|
1024
|
+
errorCode
|
|
1025
|
+
});
|
|
1026
|
+
}
|
|
1027
|
+
}, "de_UpdateZonalShiftCommandError");
|
|
1028
|
+
var throwDefaultError = (0, import_smithy_client.withBaseException)(ARCZonalShiftServiceException);
|
|
1029
|
+
var de_AccessDeniedExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
1030
|
+
const contents = (0, import_smithy_client.map)({});
|
|
1031
|
+
const data = parsedOutput.body;
|
|
1032
|
+
const doc = (0, import_smithy_client.take)(data, {
|
|
1033
|
+
message: import_smithy_client.expectString
|
|
1034
|
+
});
|
|
1035
|
+
Object.assign(contents, doc);
|
|
1036
|
+
const exception = new AccessDeniedException({
|
|
1037
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
1038
|
+
...contents
|
|
1039
|
+
});
|
|
1040
|
+
return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
|
|
1041
|
+
}, "de_AccessDeniedExceptionRes");
|
|
1042
|
+
var de_ConflictExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
1043
|
+
const contents = (0, import_smithy_client.map)({});
|
|
1044
|
+
const data = parsedOutput.body;
|
|
1045
|
+
const doc = (0, import_smithy_client.take)(data, {
|
|
1046
|
+
message: import_smithy_client.expectString,
|
|
1047
|
+
reason: import_smithy_client.expectString,
|
|
1048
|
+
zonalShiftId: import_smithy_client.expectString
|
|
1049
|
+
});
|
|
1050
|
+
Object.assign(contents, doc);
|
|
1051
|
+
const exception = new ConflictException({
|
|
1052
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
1053
|
+
...contents
|
|
1054
|
+
});
|
|
1055
|
+
return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
|
|
1056
|
+
}, "de_ConflictExceptionRes");
|
|
1057
|
+
var de_InternalServerExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
1058
|
+
const contents = (0, import_smithy_client.map)({});
|
|
1059
|
+
const data = parsedOutput.body;
|
|
1060
|
+
const doc = (0, import_smithy_client.take)(data, {
|
|
1061
|
+
message: import_smithy_client.expectString
|
|
1062
|
+
});
|
|
1063
|
+
Object.assign(contents, doc);
|
|
1064
|
+
const exception = new InternalServerException({
|
|
1065
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
1066
|
+
...contents
|
|
1067
|
+
});
|
|
1068
|
+
return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
|
|
1069
|
+
}, "de_InternalServerExceptionRes");
|
|
1070
|
+
var de_ResourceNotFoundExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
1071
|
+
const contents = (0, import_smithy_client.map)({});
|
|
1072
|
+
const data = parsedOutput.body;
|
|
1073
|
+
const doc = (0, import_smithy_client.take)(data, {
|
|
1074
|
+
message: import_smithy_client.expectString
|
|
1075
|
+
});
|
|
1076
|
+
Object.assign(contents, doc);
|
|
1077
|
+
const exception = new ResourceNotFoundException({
|
|
1078
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
1079
|
+
...contents
|
|
1080
|
+
});
|
|
1081
|
+
return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
|
|
1082
|
+
}, "de_ResourceNotFoundExceptionRes");
|
|
1083
|
+
var de_ThrottlingExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
1084
|
+
const contents = (0, import_smithy_client.map)({});
|
|
1085
|
+
const data = parsedOutput.body;
|
|
1086
|
+
const doc = (0, import_smithy_client.take)(data, {
|
|
1087
|
+
message: import_smithy_client.expectString
|
|
1088
|
+
});
|
|
1089
|
+
Object.assign(contents, doc);
|
|
1090
|
+
const exception = new ThrottlingException({
|
|
1091
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
1092
|
+
...contents
|
|
1093
|
+
});
|
|
1094
|
+
return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
|
|
1095
|
+
}, "de_ThrottlingExceptionRes");
|
|
1096
|
+
var de_ValidationExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
1097
|
+
const contents = (0, import_smithy_client.map)({});
|
|
1098
|
+
const data = parsedOutput.body;
|
|
1099
|
+
const doc = (0, import_smithy_client.take)(data, {
|
|
1100
|
+
message: import_smithy_client.expectString,
|
|
1101
|
+
reason: import_smithy_client.expectString
|
|
1102
|
+
});
|
|
1103
|
+
Object.assign(contents, doc);
|
|
1104
|
+
const exception = new ValidationException({
|
|
1105
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
1106
|
+
...contents
|
|
1107
|
+
});
|
|
1108
|
+
return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
|
|
1109
|
+
}, "de_ValidationExceptionRes");
|
|
1110
|
+
var de_AppliedWeights = /* @__PURE__ */ __name((output, context) => {
|
|
1111
|
+
return Object.entries(output).reduce((acc, [key, value]) => {
|
|
1112
|
+
if (value === null) {
|
|
1113
|
+
return acc;
|
|
1114
|
+
}
|
|
1115
|
+
acc[key] = (0, import_smithy_client.limitedParseFloat32)(value);
|
|
1116
|
+
return acc;
|
|
1117
|
+
}, {});
|
|
1118
|
+
}, "de_AppliedWeights");
|
|
1119
|
+
var de_AutoshiftInResource = /* @__PURE__ */ __name((output, context) => {
|
|
1120
|
+
return (0, import_smithy_client.take)(output, {
|
|
1121
|
+
appliedStatus: import_smithy_client.expectString,
|
|
1122
|
+
awayFrom: import_smithy_client.expectString,
|
|
1123
|
+
startTime: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_)))
|
|
1124
|
+
});
|
|
1125
|
+
}, "de_AutoshiftInResource");
|
|
1126
|
+
var de_AutoshiftsInResource = /* @__PURE__ */ __name((output, context) => {
|
|
1127
|
+
const retVal = (output || []).filter((e) => e != null).map((entry) => {
|
|
1128
|
+
return de_AutoshiftInResource(entry, context);
|
|
1129
|
+
});
|
|
1130
|
+
return retVal;
|
|
1131
|
+
}, "de_AutoshiftsInResource");
|
|
1132
|
+
var de_AutoshiftSummaries = /* @__PURE__ */ __name((output, context) => {
|
|
1133
|
+
const retVal = (output || []).filter((e) => e != null).map((entry) => {
|
|
1134
|
+
return de_AutoshiftSummary(entry, context);
|
|
1135
|
+
});
|
|
1136
|
+
return retVal;
|
|
1137
|
+
}, "de_AutoshiftSummaries");
|
|
1138
|
+
var de_AutoshiftSummary = /* @__PURE__ */ __name((output, context) => {
|
|
1139
|
+
return (0, import_smithy_client.take)(output, {
|
|
1140
|
+
awayFrom: import_smithy_client.expectString,
|
|
1141
|
+
endTime: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))),
|
|
1142
|
+
startTime: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))),
|
|
1143
|
+
status: import_smithy_client.expectString
|
|
1144
|
+
});
|
|
1145
|
+
}, "de_AutoshiftSummary");
|
|
1146
|
+
var de_ManagedResourceSummaries = /* @__PURE__ */ __name((output, context) => {
|
|
1147
|
+
const retVal = (output || []).filter((e) => e != null).map((entry) => {
|
|
1148
|
+
return de_ManagedResourceSummary(entry, context);
|
|
1149
|
+
});
|
|
1150
|
+
return retVal;
|
|
1151
|
+
}, "de_ManagedResourceSummaries");
|
|
1152
|
+
var de_ManagedResourceSummary = /* @__PURE__ */ __name((output, context) => {
|
|
1153
|
+
return (0, import_smithy_client.take)(output, {
|
|
1154
|
+
appliedWeights: (_) => de_AppliedWeights(_, context),
|
|
1155
|
+
arn: import_smithy_client.expectString,
|
|
1156
|
+
autoshifts: (_) => de_AutoshiftsInResource(_, context),
|
|
1157
|
+
availabilityZones: import_smithy_client._json,
|
|
1158
|
+
name: import_smithy_client.expectString,
|
|
1159
|
+
practiceRunStatus: import_smithy_client.expectString,
|
|
1160
|
+
zonalAutoshiftStatus: import_smithy_client.expectString,
|
|
1161
|
+
zonalShifts: (_) => de_ZonalShiftsInResource(_, context)
|
|
1162
|
+
});
|
|
1163
|
+
}, "de_ManagedResourceSummary");
|
|
1164
|
+
var de_ZonalShiftInResource = /* @__PURE__ */ __name((output, context) => {
|
|
1165
|
+
return (0, import_smithy_client.take)(output, {
|
|
1166
|
+
appliedStatus: import_smithy_client.expectString,
|
|
1167
|
+
awayFrom: import_smithy_client.expectString,
|
|
1168
|
+
comment: import_smithy_client.expectString,
|
|
1169
|
+
expiryTime: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))),
|
|
1170
|
+
practiceRunOutcome: import_smithy_client.expectString,
|
|
1171
|
+
resourceIdentifier: import_smithy_client.expectString,
|
|
1172
|
+
startTime: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))),
|
|
1173
|
+
zonalShiftId: import_smithy_client.expectString
|
|
1174
|
+
});
|
|
1175
|
+
}, "de_ZonalShiftInResource");
|
|
1176
|
+
var de_ZonalShiftsInResource = /* @__PURE__ */ __name((output, context) => {
|
|
1177
|
+
const retVal = (output || []).filter((e) => e != null).map((entry) => {
|
|
1178
|
+
return de_ZonalShiftInResource(entry, context);
|
|
1179
|
+
});
|
|
1180
|
+
return retVal;
|
|
1181
|
+
}, "de_ZonalShiftsInResource");
|
|
1182
|
+
var de_ZonalShiftSummaries = /* @__PURE__ */ __name((output, context) => {
|
|
1183
|
+
const retVal = (output || []).filter((e) => e != null).map((entry) => {
|
|
1184
|
+
return de_ZonalShiftSummary(entry, context);
|
|
1185
|
+
});
|
|
1186
|
+
return retVal;
|
|
1187
|
+
}, "de_ZonalShiftSummaries");
|
|
1188
|
+
var de_ZonalShiftSummary = /* @__PURE__ */ __name((output, context) => {
|
|
1189
|
+
return (0, import_smithy_client.take)(output, {
|
|
1190
|
+
awayFrom: import_smithy_client.expectString,
|
|
1191
|
+
comment: import_smithy_client.expectString,
|
|
1192
|
+
expiryTime: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))),
|
|
1193
|
+
practiceRunOutcome: import_smithy_client.expectString,
|
|
1194
|
+
resourceIdentifier: import_smithy_client.expectString,
|
|
1195
|
+
startTime: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))),
|
|
1196
|
+
status: import_smithy_client.expectString,
|
|
1197
|
+
zonalShiftId: import_smithy_client.expectString
|
|
1198
|
+
});
|
|
1199
|
+
}, "de_ZonalShiftSummary");
|
|
1200
|
+
var deserializeMetadata = /* @__PURE__ */ __name((output) => ({
|
|
1201
|
+
httpStatusCode: output.statusCode,
|
|
1202
|
+
requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
|
|
1203
|
+
extendedRequestId: output.headers["x-amz-id-2"],
|
|
1204
|
+
cfId: output.headers["x-amz-cf-id"]
|
|
1205
|
+
}), "deserializeMetadata");
|
|
1206
|
+
var collectBodyString = /* @__PURE__ */ __name((streamBody, context) => (0, import_smithy_client.collectBody)(streamBody, context).then((body) => context.utf8Encoder(body)), "collectBodyString");
|
|
1207
|
+
var _mR = "maxResults";
|
|
1208
|
+
var _nT = "nextToken";
|
|
1209
|
+
var _rI = "resourceIdentifier";
|
|
1210
|
+
var _s = "status";
|
|
1211
|
+
var parseBody = /* @__PURE__ */ __name((streamBody, context) => collectBodyString(streamBody, context).then((encoded) => {
|
|
1212
|
+
if (encoded.length) {
|
|
1213
|
+
return JSON.parse(encoded);
|
|
1214
|
+
}
|
|
1215
|
+
return {};
|
|
1216
|
+
}), "parseBody");
|
|
1217
|
+
var parseErrorBody = /* @__PURE__ */ __name(async (errorBody, context) => {
|
|
1218
|
+
const value = await parseBody(errorBody, context);
|
|
1219
|
+
value.message = value.message ?? value.Message;
|
|
1220
|
+
return value;
|
|
1221
|
+
}, "parseErrorBody");
|
|
1222
|
+
var loadRestJsonErrorCode = /* @__PURE__ */ __name((output, data) => {
|
|
1223
|
+
const findKey = /* @__PURE__ */ __name((object, key) => Object.keys(object).find((k) => k.toLowerCase() === key.toLowerCase()), "findKey");
|
|
1224
|
+
const sanitizeErrorCode = /* @__PURE__ */ __name((rawValue) => {
|
|
1225
|
+
let cleanValue = rawValue;
|
|
1226
|
+
if (typeof cleanValue === "number") {
|
|
1227
|
+
cleanValue = cleanValue.toString();
|
|
1228
|
+
}
|
|
1229
|
+
if (cleanValue.indexOf(",") >= 0) {
|
|
1230
|
+
cleanValue = cleanValue.split(",")[0];
|
|
1231
|
+
}
|
|
1232
|
+
if (cleanValue.indexOf(":") >= 0) {
|
|
1233
|
+
cleanValue = cleanValue.split(":")[0];
|
|
1234
|
+
}
|
|
1235
|
+
if (cleanValue.indexOf("#") >= 0) {
|
|
1236
|
+
cleanValue = cleanValue.split("#")[1];
|
|
1237
|
+
}
|
|
1238
|
+
return cleanValue;
|
|
1239
|
+
}, "sanitizeErrorCode");
|
|
1240
|
+
const headerKey = findKey(output.headers, "x-amzn-errortype");
|
|
1241
|
+
if (headerKey !== void 0) {
|
|
1242
|
+
return sanitizeErrorCode(output.headers[headerKey]);
|
|
1243
|
+
}
|
|
1244
|
+
if (data.code !== void 0) {
|
|
1245
|
+
return sanitizeErrorCode(data.code);
|
|
1246
|
+
}
|
|
1247
|
+
if (data["__type"] !== void 0) {
|
|
1248
|
+
return sanitizeErrorCode(data["__type"]);
|
|
1249
|
+
}
|
|
1250
|
+
}, "loadRestJsonErrorCode");
|
|
1251
|
+
|
|
1252
|
+
// src/commands/CancelZonalShiftCommand.ts
|
|
1253
|
+
var _CancelZonalShiftCommand = class _CancelZonalShiftCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
1254
|
+
...commonParams
|
|
1255
|
+
}).m(function(Command, cs, config, o) {
|
|
1256
|
+
return [
|
|
1257
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
1258
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
1259
|
+
];
|
|
1260
|
+
}).s("PercDataPlane", "CancelZonalShift", {}).n("ARCZonalShiftClient", "CancelZonalShiftCommand").f(void 0, void 0).ser(se_CancelZonalShiftCommand).de(de_CancelZonalShiftCommand).build() {
|
|
1261
|
+
};
|
|
1262
|
+
__name(_CancelZonalShiftCommand, "CancelZonalShiftCommand");
|
|
1263
|
+
var CancelZonalShiftCommand = _CancelZonalShiftCommand;
|
|
1264
|
+
|
|
1265
|
+
// src/commands/CreatePracticeRunConfigurationCommand.ts
|
|
1266
|
+
|
|
1267
|
+
|
|
1268
|
+
|
|
1269
|
+
|
|
1270
|
+
var _CreatePracticeRunConfigurationCommand = class _CreatePracticeRunConfigurationCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
1271
|
+
...commonParams
|
|
1272
|
+
}).m(function(Command, cs, config, o) {
|
|
1273
|
+
return [
|
|
1274
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
1275
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
1276
|
+
];
|
|
1277
|
+
}).s("PercDataPlane", "CreatePracticeRunConfiguration", {}).n("ARCZonalShiftClient", "CreatePracticeRunConfigurationCommand").f(void 0, void 0).ser(se_CreatePracticeRunConfigurationCommand).de(de_CreatePracticeRunConfigurationCommand).build() {
|
|
1278
|
+
};
|
|
1279
|
+
__name(_CreatePracticeRunConfigurationCommand, "CreatePracticeRunConfigurationCommand");
|
|
1280
|
+
var CreatePracticeRunConfigurationCommand = _CreatePracticeRunConfigurationCommand;
|
|
1281
|
+
|
|
1282
|
+
// src/commands/DeletePracticeRunConfigurationCommand.ts
|
|
1283
|
+
|
|
1284
|
+
|
|
1285
|
+
|
|
1286
|
+
|
|
1287
|
+
var _DeletePracticeRunConfigurationCommand = class _DeletePracticeRunConfigurationCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
1288
|
+
...commonParams
|
|
1289
|
+
}).m(function(Command, cs, config, o) {
|
|
1290
|
+
return [
|
|
1291
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
1292
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
1293
|
+
];
|
|
1294
|
+
}).s("PercDataPlane", "DeletePracticeRunConfiguration", {}).n("ARCZonalShiftClient", "DeletePracticeRunConfigurationCommand").f(void 0, void 0).ser(se_DeletePracticeRunConfigurationCommand).de(de_DeletePracticeRunConfigurationCommand).build() {
|
|
1295
|
+
};
|
|
1296
|
+
__name(_DeletePracticeRunConfigurationCommand, "DeletePracticeRunConfigurationCommand");
|
|
1297
|
+
var DeletePracticeRunConfigurationCommand = _DeletePracticeRunConfigurationCommand;
|
|
1298
|
+
|
|
1299
|
+
// src/commands/GetManagedResourceCommand.ts
|
|
1300
|
+
|
|
1301
|
+
|
|
1302
|
+
|
|
1303
|
+
|
|
1304
|
+
var _GetManagedResourceCommand = class _GetManagedResourceCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
1305
|
+
...commonParams
|
|
1306
|
+
}).m(function(Command, cs, config, o) {
|
|
1307
|
+
return [
|
|
1308
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
1309
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
1310
|
+
];
|
|
1311
|
+
}).s("PercDataPlane", "GetManagedResource", {}).n("ARCZonalShiftClient", "GetManagedResourceCommand").f(void 0, void 0).ser(se_GetManagedResourceCommand).de(de_GetManagedResourceCommand).build() {
|
|
1312
|
+
};
|
|
1313
|
+
__name(_GetManagedResourceCommand, "GetManagedResourceCommand");
|
|
1314
|
+
var GetManagedResourceCommand = _GetManagedResourceCommand;
|
|
1315
|
+
|
|
1316
|
+
// src/commands/ListAutoshiftsCommand.ts
|
|
1317
|
+
|
|
1318
|
+
|
|
1319
|
+
|
|
1320
|
+
|
|
1321
|
+
var _ListAutoshiftsCommand = class _ListAutoshiftsCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
1322
|
+
...commonParams
|
|
1323
|
+
}).m(function(Command, cs, config, o) {
|
|
1324
|
+
return [
|
|
1325
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
1326
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
1327
|
+
];
|
|
1328
|
+
}).s("PercDataPlane", "ListAutoshifts", {}).n("ARCZonalShiftClient", "ListAutoshiftsCommand").f(void 0, void 0).ser(se_ListAutoshiftsCommand).de(de_ListAutoshiftsCommand).build() {
|
|
1329
|
+
};
|
|
1330
|
+
__name(_ListAutoshiftsCommand, "ListAutoshiftsCommand");
|
|
1331
|
+
var ListAutoshiftsCommand = _ListAutoshiftsCommand;
|
|
1332
|
+
|
|
1333
|
+
// src/commands/ListManagedResourcesCommand.ts
|
|
1334
|
+
|
|
1335
|
+
|
|
1336
|
+
|
|
1337
|
+
|
|
1338
|
+
var _ListManagedResourcesCommand = class _ListManagedResourcesCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
1339
|
+
...commonParams
|
|
1340
|
+
}).m(function(Command, cs, config, o) {
|
|
1341
|
+
return [
|
|
1342
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
1343
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
1344
|
+
];
|
|
1345
|
+
}).s("PercDataPlane", "ListManagedResources", {}).n("ARCZonalShiftClient", "ListManagedResourcesCommand").f(void 0, void 0).ser(se_ListManagedResourcesCommand).de(de_ListManagedResourcesCommand).build() {
|
|
1346
|
+
};
|
|
1347
|
+
__name(_ListManagedResourcesCommand, "ListManagedResourcesCommand");
|
|
1348
|
+
var ListManagedResourcesCommand = _ListManagedResourcesCommand;
|
|
1349
|
+
|
|
1350
|
+
// src/commands/ListZonalShiftsCommand.ts
|
|
1351
|
+
|
|
1352
|
+
|
|
1353
|
+
|
|
1354
|
+
|
|
1355
|
+
var _ListZonalShiftsCommand = class _ListZonalShiftsCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
1356
|
+
...commonParams
|
|
1357
|
+
}).m(function(Command, cs, config, o) {
|
|
1358
|
+
return [
|
|
1359
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
1360
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
1361
|
+
];
|
|
1362
|
+
}).s("PercDataPlane", "ListZonalShifts", {}).n("ARCZonalShiftClient", "ListZonalShiftsCommand").f(void 0, void 0).ser(se_ListZonalShiftsCommand).de(de_ListZonalShiftsCommand).build() {
|
|
1363
|
+
};
|
|
1364
|
+
__name(_ListZonalShiftsCommand, "ListZonalShiftsCommand");
|
|
1365
|
+
var ListZonalShiftsCommand = _ListZonalShiftsCommand;
|
|
1366
|
+
|
|
1367
|
+
// src/commands/StartZonalShiftCommand.ts
|
|
1368
|
+
|
|
1369
|
+
|
|
1370
|
+
|
|
1371
|
+
|
|
1372
|
+
var _StartZonalShiftCommand = class _StartZonalShiftCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
1373
|
+
...commonParams
|
|
1374
|
+
}).m(function(Command, cs, config, o) {
|
|
1375
|
+
return [
|
|
1376
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
1377
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
1378
|
+
];
|
|
1379
|
+
}).s("PercDataPlane", "StartZonalShift", {}).n("ARCZonalShiftClient", "StartZonalShiftCommand").f(void 0, void 0).ser(se_StartZonalShiftCommand).de(de_StartZonalShiftCommand).build() {
|
|
1380
|
+
};
|
|
1381
|
+
__name(_StartZonalShiftCommand, "StartZonalShiftCommand");
|
|
1382
|
+
var StartZonalShiftCommand = _StartZonalShiftCommand;
|
|
1383
|
+
|
|
1384
|
+
// src/commands/UpdatePracticeRunConfigurationCommand.ts
|
|
1385
|
+
|
|
1386
|
+
|
|
1387
|
+
|
|
1388
|
+
|
|
1389
|
+
var _UpdatePracticeRunConfigurationCommand = class _UpdatePracticeRunConfigurationCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
1390
|
+
...commonParams
|
|
1391
|
+
}).m(function(Command, cs, config, o) {
|
|
1392
|
+
return [
|
|
1393
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
1394
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
1395
|
+
];
|
|
1396
|
+
}).s("PercDataPlane", "UpdatePracticeRunConfiguration", {}).n("ARCZonalShiftClient", "UpdatePracticeRunConfigurationCommand").f(void 0, void 0).ser(se_UpdatePracticeRunConfigurationCommand).de(de_UpdatePracticeRunConfigurationCommand).build() {
|
|
1397
|
+
};
|
|
1398
|
+
__name(_UpdatePracticeRunConfigurationCommand, "UpdatePracticeRunConfigurationCommand");
|
|
1399
|
+
var UpdatePracticeRunConfigurationCommand = _UpdatePracticeRunConfigurationCommand;
|
|
1400
|
+
|
|
1401
|
+
// src/commands/UpdateZonalAutoshiftConfigurationCommand.ts
|
|
1402
|
+
|
|
1403
|
+
|
|
1404
|
+
|
|
1405
|
+
|
|
1406
|
+
var _UpdateZonalAutoshiftConfigurationCommand = class _UpdateZonalAutoshiftConfigurationCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
1407
|
+
...commonParams
|
|
1408
|
+
}).m(function(Command, cs, config, o) {
|
|
1409
|
+
return [
|
|
1410
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
1411
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
1412
|
+
];
|
|
1413
|
+
}).s("PercDataPlane", "UpdateZonalAutoshiftConfiguration", {}).n("ARCZonalShiftClient", "UpdateZonalAutoshiftConfigurationCommand").f(void 0, void 0).ser(se_UpdateZonalAutoshiftConfigurationCommand).de(de_UpdateZonalAutoshiftConfigurationCommand).build() {
|
|
1414
|
+
};
|
|
1415
|
+
__name(_UpdateZonalAutoshiftConfigurationCommand, "UpdateZonalAutoshiftConfigurationCommand");
|
|
1416
|
+
var UpdateZonalAutoshiftConfigurationCommand = _UpdateZonalAutoshiftConfigurationCommand;
|
|
1417
|
+
|
|
1418
|
+
// src/commands/UpdateZonalShiftCommand.ts
|
|
1419
|
+
|
|
1420
|
+
|
|
1421
|
+
|
|
1422
|
+
|
|
1423
|
+
var _UpdateZonalShiftCommand = class _UpdateZonalShiftCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
1424
|
+
...commonParams
|
|
1425
|
+
}).m(function(Command, cs, config, o) {
|
|
1426
|
+
return [
|
|
1427
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
1428
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
1429
|
+
];
|
|
1430
|
+
}).s("PercDataPlane", "UpdateZonalShift", {}).n("ARCZonalShiftClient", "UpdateZonalShiftCommand").f(void 0, void 0).ser(se_UpdateZonalShiftCommand).de(de_UpdateZonalShiftCommand).build() {
|
|
1431
|
+
};
|
|
1432
|
+
__name(_UpdateZonalShiftCommand, "UpdateZonalShiftCommand");
|
|
1433
|
+
var UpdateZonalShiftCommand = _UpdateZonalShiftCommand;
|
|
1434
|
+
|
|
1435
|
+
// src/ARCZonalShift.ts
|
|
1436
|
+
var commands = {
|
|
1437
|
+
CancelZonalShiftCommand,
|
|
1438
|
+
CreatePracticeRunConfigurationCommand,
|
|
1439
|
+
DeletePracticeRunConfigurationCommand,
|
|
1440
|
+
GetManagedResourceCommand,
|
|
1441
|
+
ListAutoshiftsCommand,
|
|
1442
|
+
ListManagedResourcesCommand,
|
|
1443
|
+
ListZonalShiftsCommand,
|
|
1444
|
+
StartZonalShiftCommand,
|
|
1445
|
+
UpdatePracticeRunConfigurationCommand,
|
|
1446
|
+
UpdateZonalAutoshiftConfigurationCommand,
|
|
1447
|
+
UpdateZonalShiftCommand
|
|
1448
|
+
};
|
|
1449
|
+
var _ARCZonalShift = class _ARCZonalShift extends ARCZonalShiftClient {
|
|
1450
|
+
};
|
|
1451
|
+
__name(_ARCZonalShift, "ARCZonalShift");
|
|
1452
|
+
var ARCZonalShift = _ARCZonalShift;
|
|
1453
|
+
(0, import_smithy_client.createAggregatedClient)(commands, ARCZonalShift);
|
|
1454
|
+
|
|
1455
|
+
// src/pagination/ListAutoshiftsPaginator.ts
|
|
1456
|
+
|
|
1457
|
+
var paginateListAutoshifts = (0, import_core.createPaginator)(ARCZonalShiftClient, ListAutoshiftsCommand, "nextToken", "nextToken", "maxResults");
|
|
1458
|
+
|
|
1459
|
+
// src/pagination/ListManagedResourcesPaginator.ts
|
|
1460
|
+
|
|
1461
|
+
var paginateListManagedResources = (0, import_core.createPaginator)(ARCZonalShiftClient, ListManagedResourcesCommand, "nextToken", "nextToken", "maxResults");
|
|
1462
|
+
|
|
1463
|
+
// src/pagination/ListZonalShiftsPaginator.ts
|
|
1464
|
+
|
|
1465
|
+
var paginateListZonalShifts = (0, import_core.createPaginator)(ARCZonalShiftClient, ListZonalShiftsCommand, "nextToken", "nextToken", "maxResults");
|
|
1466
|
+
|
|
1467
|
+
// src/index.ts
|
|
1468
|
+
var import_util_endpoints = require("@aws-sdk/util-endpoints");
|
|
1469
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
1470
|
+
0 && (module.exports = {
|
|
1471
|
+
ARCZonalShift,
|
|
1472
|
+
ARCZonalShiftClient,
|
|
1473
|
+
ARCZonalShiftServiceException,
|
|
1474
|
+
AccessDeniedException,
|
|
1475
|
+
AppliedStatus,
|
|
1476
|
+
AutoshiftAppliedStatus,
|
|
1477
|
+
AutoshiftExecutionStatus,
|
|
1478
|
+
CancelZonalShiftCommand,
|
|
1479
|
+
ConflictException,
|
|
1480
|
+
ConflictExceptionReason,
|
|
1481
|
+
ControlConditionType,
|
|
1482
|
+
CreatePracticeRunConfigurationCommand,
|
|
1483
|
+
DeletePracticeRunConfigurationCommand,
|
|
1484
|
+
GetManagedResourceCommand,
|
|
1485
|
+
InternalServerException,
|
|
1486
|
+
ListAutoshiftsCommand,
|
|
1487
|
+
ListManagedResourcesCommand,
|
|
1488
|
+
ListZonalShiftsCommand,
|
|
1489
|
+
PracticeRunOutcome,
|
|
1490
|
+
ResourceNotFoundException,
|
|
1491
|
+
StartZonalShiftCommand,
|
|
1492
|
+
ThrottlingException,
|
|
1493
|
+
UpdatePracticeRunConfigurationCommand,
|
|
1494
|
+
UpdateZonalAutoshiftConfigurationCommand,
|
|
1495
|
+
UpdateZonalShiftCommand,
|
|
1496
|
+
ValidationException,
|
|
1497
|
+
ValidationExceptionReason,
|
|
1498
|
+
ZonalAutoshiftStatus,
|
|
1499
|
+
ZonalShiftStatus,
|
|
1500
|
+
__Client,
|
|
1501
|
+
paginateListAutoshifts,
|
|
1502
|
+
paginateListManagedResources,
|
|
1503
|
+
paginateListZonalShifts
|
|
1504
|
+
});
|