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