@aws-sdk/client-backupsearch 3.901.0 → 3.907.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 +1297 -1470
- package/package.json +6 -6
package/dist-cjs/index.js
CHANGED
|
@@ -1,1501 +1,1328 @@
|
|
|
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
|
-
ExportJobStatus: () => ExportJobStatus,
|
|
31
|
-
ExportSpecification: () => ExportSpecification,
|
|
32
|
-
GetSearchJobCommand: () => GetSearchJobCommand,
|
|
33
|
-
GetSearchResultExportJobCommand: () => GetSearchResultExportJobCommand,
|
|
34
|
-
InternalServerException: () => InternalServerException,
|
|
35
|
-
ListSearchJobBackupsCommand: () => ListSearchJobBackupsCommand,
|
|
36
|
-
ListSearchJobResultsCommand: () => ListSearchJobResultsCommand,
|
|
37
|
-
ListSearchJobResultsOutputFilterSensitiveLog: () => ListSearchJobResultsOutputFilterSensitiveLog,
|
|
38
|
-
ListSearchJobsCommand: () => ListSearchJobsCommand,
|
|
39
|
-
ListSearchResultExportJobsCommand: () => ListSearchResultExportJobsCommand,
|
|
40
|
-
ListTagsForResourceCommand: () => ListTagsForResourceCommand,
|
|
41
|
-
LongConditionOperator: () => LongConditionOperator,
|
|
42
|
-
ResourceNotFoundException: () => ResourceNotFoundException,
|
|
43
|
-
ResourceType: () => ResourceType,
|
|
44
|
-
ResultItem: () => ResultItem,
|
|
45
|
-
ResultItemFilterSensitiveLog: () => ResultItemFilterSensitiveLog,
|
|
46
|
-
S3ResultItemFilterSensitiveLog: () => S3ResultItemFilterSensitiveLog,
|
|
47
|
-
SearchJobState: () => SearchJobState,
|
|
48
|
-
ServiceQuotaExceededException: () => ServiceQuotaExceededException,
|
|
49
|
-
StartSearchJobCommand: () => StartSearchJobCommand,
|
|
50
|
-
StartSearchResultExportJobCommand: () => StartSearchResultExportJobCommand,
|
|
51
|
-
StopSearchJobCommand: () => StopSearchJobCommand,
|
|
52
|
-
StringConditionOperator: () => StringConditionOperator,
|
|
53
|
-
TagResourceCommand: () => TagResourceCommand,
|
|
54
|
-
ThrottlingException: () => ThrottlingException,
|
|
55
|
-
TimeConditionOperator: () => TimeConditionOperator,
|
|
56
|
-
UntagResourceCommand: () => UntagResourceCommand,
|
|
57
|
-
ValidationException: () => ValidationException,
|
|
58
|
-
__Client: () => import_smithy_client.Client,
|
|
59
|
-
paginateListSearchJobBackups: () => paginateListSearchJobBackups,
|
|
60
|
-
paginateListSearchJobResults: () => paginateListSearchJobResults,
|
|
61
|
-
paginateListSearchJobs: () => paginateListSearchJobs,
|
|
62
|
-
paginateListSearchResultExportJobs: () => paginateListSearchResultExportJobs
|
|
63
|
-
});
|
|
64
|
-
module.exports = __toCommonJS(index_exports);
|
|
65
|
-
|
|
66
|
-
// src/BackupSearchClient.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
|
-
useFipsEndpoint: options.useFipsEndpoint ?? false,
|
|
83
|
-
defaultSigningName: "backup-search"
|
|
84
|
-
});
|
|
85
|
-
}, "resolveClientEndpointParameters");
|
|
86
|
-
var commonParams = {
|
|
87
|
-
UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
|
|
88
|
-
Endpoint: { type: "builtInParams", name: "endpoint" },
|
|
89
|
-
Region: { type: "builtInParams", name: "region" }
|
|
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
|
+
useFipsEndpoint: options.useFipsEndpoint ?? false,
|
|
23
|
+
defaultSigningName: "backup-search",
|
|
24
|
+
});
|
|
25
|
+
};
|
|
26
|
+
const commonParams = {
|
|
27
|
+
UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
|
|
28
|
+
Endpoint: { type: "builtInParams", name: "endpoint" },
|
|
29
|
+
Region: { type: "builtInParams", name: "region" },
|
|
90
30
|
};
|
|
91
31
|
|
|
92
|
-
|
|
93
|
-
|
|
32
|
+
const getHttpAuthExtensionConfiguration = (runtimeConfig) => {
|
|
33
|
+
const _httpAuthSchemes = runtimeConfig.httpAuthSchemes;
|
|
34
|
+
let _httpAuthSchemeProvider = runtimeConfig.httpAuthSchemeProvider;
|
|
35
|
+
let _credentials = runtimeConfig.credentials;
|
|
36
|
+
return {
|
|
37
|
+
setHttpAuthScheme(httpAuthScheme) {
|
|
38
|
+
const index = _httpAuthSchemes.findIndex((scheme) => scheme.schemeId === httpAuthScheme.schemeId);
|
|
39
|
+
if (index === -1) {
|
|
40
|
+
_httpAuthSchemes.push(httpAuthScheme);
|
|
41
|
+
}
|
|
42
|
+
else {
|
|
43
|
+
_httpAuthSchemes.splice(index, 1, httpAuthScheme);
|
|
44
|
+
}
|
|
45
|
+
},
|
|
46
|
+
httpAuthSchemes() {
|
|
47
|
+
return _httpAuthSchemes;
|
|
48
|
+
},
|
|
49
|
+
setHttpAuthSchemeProvider(httpAuthSchemeProvider) {
|
|
50
|
+
_httpAuthSchemeProvider = httpAuthSchemeProvider;
|
|
51
|
+
},
|
|
52
|
+
httpAuthSchemeProvider() {
|
|
53
|
+
return _httpAuthSchemeProvider;
|
|
54
|
+
},
|
|
55
|
+
setCredentials(credentials) {
|
|
56
|
+
_credentials = credentials;
|
|
57
|
+
},
|
|
58
|
+
credentials() {
|
|
59
|
+
return _credentials;
|
|
60
|
+
},
|
|
61
|
+
};
|
|
62
|
+
};
|
|
63
|
+
const resolveHttpAuthRuntimeConfig = (config) => {
|
|
64
|
+
return {
|
|
65
|
+
httpAuthSchemes: config.httpAuthSchemes(),
|
|
66
|
+
httpAuthSchemeProvider: config.httpAuthSchemeProvider(),
|
|
67
|
+
credentials: config.credentials(),
|
|
68
|
+
};
|
|
69
|
+
};
|
|
94
70
|
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
71
|
+
const resolveRuntimeExtensions = (runtimeConfig, extensions) => {
|
|
72
|
+
const extensionConfiguration = Object.assign(regionConfigResolver.getAwsRegionExtensionConfiguration(runtimeConfig), smithyClient.getDefaultExtensionConfiguration(runtimeConfig), protocolHttp.getHttpHandlerExtensionConfiguration(runtimeConfig), getHttpAuthExtensionConfiguration(runtimeConfig));
|
|
73
|
+
extensions.forEach((extension) => extension.configure(extensionConfiguration));
|
|
74
|
+
return Object.assign(runtimeConfig, regionConfigResolver.resolveAwsRegionExtensionConfiguration(extensionConfiguration), smithyClient.resolveDefaultRuntimeConfig(extensionConfiguration), protocolHttp.resolveHttpHandlerRuntimeConfig(extensionConfiguration), resolveHttpAuthRuntimeConfig(extensionConfiguration));
|
|
75
|
+
};
|
|
99
76
|
|
|
100
|
-
|
|
101
|
-
|
|
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
|
-
|
|
77
|
+
class BackupSearchClient extends smithyClient.Client {
|
|
78
|
+
config;
|
|
79
|
+
constructor(...[configuration]) {
|
|
80
|
+
const _config_0 = runtimeConfig.getRuntimeConfig(configuration || {});
|
|
81
|
+
super(_config_0);
|
|
82
|
+
this.initConfig = _config_0;
|
|
83
|
+
const _config_1 = resolveClientEndpointParameters(_config_0);
|
|
84
|
+
const _config_2 = middlewareUserAgent.resolveUserAgentConfig(_config_1);
|
|
85
|
+
const _config_3 = middlewareRetry.resolveRetryConfig(_config_2);
|
|
86
|
+
const _config_4 = configResolver.resolveRegionConfig(_config_3);
|
|
87
|
+
const _config_5 = middlewareHostHeader.resolveHostHeaderConfig(_config_4);
|
|
88
|
+
const _config_6 = middlewareEndpoint.resolveEndpointConfig(_config_5);
|
|
89
|
+
const _config_7 = httpAuthSchemeProvider.resolveHttpAuthSchemeConfig(_config_6);
|
|
90
|
+
const _config_8 = resolveRuntimeExtensions(_config_7, configuration?.extensions || []);
|
|
91
|
+
this.config = _config_8;
|
|
92
|
+
this.middlewareStack.use(middlewareUserAgent.getUserAgentPlugin(this.config));
|
|
93
|
+
this.middlewareStack.use(middlewareRetry.getRetryPlugin(this.config));
|
|
94
|
+
this.middlewareStack.use(middlewareContentLength.getContentLengthPlugin(this.config));
|
|
95
|
+
this.middlewareStack.use(middlewareHostHeader.getHostHeaderPlugin(this.config));
|
|
96
|
+
this.middlewareStack.use(middlewareLogger.getLoggerPlugin(this.config));
|
|
97
|
+
this.middlewareStack.use(middlewareRecursionDetection.getRecursionDetectionPlugin(this.config));
|
|
98
|
+
this.middlewareStack.use(core.getHttpAuthSchemeEndpointRuleSetPlugin(this.config, {
|
|
99
|
+
httpAuthSchemeParametersProvider: httpAuthSchemeProvider.defaultBackupSearchHttpAuthSchemeParametersProvider,
|
|
100
|
+
identityProviderConfigProvider: async (config) => new core.DefaultIdentityProviderConfig({
|
|
101
|
+
"aws.auth#sigv4": config.credentials,
|
|
102
|
+
}),
|
|
103
|
+
}));
|
|
104
|
+
this.middlewareStack.use(core.getHttpSigningPlugin(this.config));
|
|
128
105
|
}
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
httpAuthSchemes: config.httpAuthSchemes(),
|
|
134
|
-
httpAuthSchemeProvider: config.httpAuthSchemeProvider(),
|
|
135
|
-
credentials: config.credentials()
|
|
136
|
-
};
|
|
137
|
-
}, "resolveHttpAuthRuntimeConfig");
|
|
138
|
-
|
|
139
|
-
// src/runtimeExtensions.ts
|
|
140
|
-
var resolveRuntimeExtensions = /* @__PURE__ */ __name((runtimeConfig, extensions) => {
|
|
141
|
-
const extensionConfiguration = Object.assign(
|
|
142
|
-
(0, import_region_config_resolver.getAwsRegionExtensionConfiguration)(runtimeConfig),
|
|
143
|
-
(0, import_smithy_client.getDefaultExtensionConfiguration)(runtimeConfig),
|
|
144
|
-
(0, import_protocol_http.getHttpHandlerExtensionConfiguration)(runtimeConfig),
|
|
145
|
-
getHttpAuthExtensionConfiguration(runtimeConfig)
|
|
146
|
-
);
|
|
147
|
-
extensions.forEach((extension) => extension.configure(extensionConfiguration));
|
|
148
|
-
return Object.assign(
|
|
149
|
-
runtimeConfig,
|
|
150
|
-
(0, import_region_config_resolver.resolveAwsRegionExtensionConfiguration)(extensionConfiguration),
|
|
151
|
-
(0, import_smithy_client.resolveDefaultRuntimeConfig)(extensionConfiguration),
|
|
152
|
-
(0, import_protocol_http.resolveHttpHandlerRuntimeConfig)(extensionConfiguration),
|
|
153
|
-
resolveHttpAuthRuntimeConfig(extensionConfiguration)
|
|
154
|
-
);
|
|
155
|
-
}, "resolveRuntimeExtensions");
|
|
106
|
+
destroy() {
|
|
107
|
+
super.destroy();
|
|
108
|
+
}
|
|
109
|
+
}
|
|
156
110
|
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
111
|
+
class BackupSearchServiceException extends smithyClient.ServiceException {
|
|
112
|
+
constructor(options) {
|
|
113
|
+
super(options);
|
|
114
|
+
Object.setPrototypeOf(this, BackupSearchServiceException.prototype);
|
|
115
|
+
}
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
class AccessDeniedException extends BackupSearchServiceException {
|
|
119
|
+
name = "AccessDeniedException";
|
|
120
|
+
$fault = "client";
|
|
121
|
+
constructor(opts) {
|
|
122
|
+
super({
|
|
123
|
+
name: "AccessDeniedException",
|
|
124
|
+
$fault: "client",
|
|
125
|
+
...opts,
|
|
126
|
+
});
|
|
127
|
+
Object.setPrototypeOf(this, AccessDeniedException.prototype);
|
|
128
|
+
}
|
|
129
|
+
}
|
|
130
|
+
class ConflictException extends BackupSearchServiceException {
|
|
131
|
+
name = "ConflictException";
|
|
132
|
+
$fault = "client";
|
|
133
|
+
resourceId;
|
|
134
|
+
resourceType;
|
|
135
|
+
constructor(opts) {
|
|
136
|
+
super({
|
|
137
|
+
name: "ConflictException",
|
|
138
|
+
$fault: "client",
|
|
139
|
+
...opts,
|
|
140
|
+
});
|
|
141
|
+
Object.setPrototypeOf(this, ConflictException.prototype);
|
|
142
|
+
this.resourceId = opts.resourceId;
|
|
143
|
+
this.resourceType = opts.resourceType;
|
|
144
|
+
}
|
|
145
|
+
}
|
|
146
|
+
class InternalServerException extends BackupSearchServiceException {
|
|
147
|
+
name = "InternalServerException";
|
|
148
|
+
$fault = "server";
|
|
149
|
+
$retryable = {};
|
|
150
|
+
retryAfterSeconds;
|
|
151
|
+
constructor(opts) {
|
|
152
|
+
super({
|
|
153
|
+
name: "InternalServerException",
|
|
154
|
+
$fault: "server",
|
|
155
|
+
...opts,
|
|
156
|
+
});
|
|
157
|
+
Object.setPrototypeOf(this, InternalServerException.prototype);
|
|
158
|
+
this.retryAfterSeconds = opts.retryAfterSeconds;
|
|
159
|
+
}
|
|
160
|
+
}
|
|
161
|
+
const ResourceType = {
|
|
162
|
+
EBS: "EBS",
|
|
163
|
+
S3: "S3",
|
|
203
164
|
};
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
var import_middleware_serde = require("@smithy/middleware-serde");
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
// src/protocols/Aws_restJson1.ts
|
|
214
|
-
var import_core2 = require("@aws-sdk/core");
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
// src/models/BackupSearchServiceException.ts
|
|
219
|
-
|
|
220
|
-
var BackupSearchServiceException = class _BackupSearchServiceException extends import_smithy_client.ServiceException {
|
|
221
|
-
static {
|
|
222
|
-
__name(this, "BackupSearchServiceException");
|
|
223
|
-
}
|
|
224
|
-
/**
|
|
225
|
-
* @internal
|
|
226
|
-
*/
|
|
227
|
-
constructor(options) {
|
|
228
|
-
super(options);
|
|
229
|
-
Object.setPrototypeOf(this, _BackupSearchServiceException.prototype);
|
|
230
|
-
}
|
|
165
|
+
const SearchJobState = {
|
|
166
|
+
COMPLETED: "COMPLETED",
|
|
167
|
+
FAILED: "FAILED",
|
|
168
|
+
RUNNING: "RUNNING",
|
|
169
|
+
STOPPED: "STOPPED",
|
|
170
|
+
STOPPING: "STOPPING",
|
|
231
171
|
};
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
name: "AccessDeniedException",
|
|
247
|
-
$fault: "client",
|
|
248
|
-
...opts
|
|
249
|
-
});
|
|
250
|
-
Object.setPrototypeOf(this, _AccessDeniedException.prototype);
|
|
251
|
-
}
|
|
252
|
-
};
|
|
253
|
-
var ConflictException = class _ConflictException extends BackupSearchServiceException {
|
|
254
|
-
static {
|
|
255
|
-
__name(this, "ConflictException");
|
|
256
|
-
}
|
|
257
|
-
name = "ConflictException";
|
|
258
|
-
$fault = "client";
|
|
259
|
-
/**
|
|
260
|
-
* <p>Identifier of the resource affected.</p>
|
|
261
|
-
* @public
|
|
262
|
-
*/
|
|
263
|
-
resourceId;
|
|
264
|
-
/**
|
|
265
|
-
* <p>Type of the resource affected.</p>
|
|
266
|
-
* @public
|
|
267
|
-
*/
|
|
268
|
-
resourceType;
|
|
269
|
-
/**
|
|
270
|
-
* @internal
|
|
271
|
-
*/
|
|
272
|
-
constructor(opts) {
|
|
273
|
-
super({
|
|
274
|
-
name: "ConflictException",
|
|
275
|
-
$fault: "client",
|
|
276
|
-
...opts
|
|
277
|
-
});
|
|
278
|
-
Object.setPrototypeOf(this, _ConflictException.prototype);
|
|
279
|
-
this.resourceId = opts.resourceId;
|
|
280
|
-
this.resourceType = opts.resourceType;
|
|
281
|
-
}
|
|
282
|
-
};
|
|
283
|
-
var InternalServerException = class _InternalServerException extends BackupSearchServiceException {
|
|
284
|
-
static {
|
|
285
|
-
__name(this, "InternalServerException");
|
|
286
|
-
}
|
|
287
|
-
name = "InternalServerException";
|
|
288
|
-
$fault = "server";
|
|
289
|
-
$retryable = {};
|
|
290
|
-
/**
|
|
291
|
-
* <p>Retry the call after number of seconds.</p>
|
|
292
|
-
* @public
|
|
293
|
-
*/
|
|
294
|
-
retryAfterSeconds;
|
|
295
|
-
/**
|
|
296
|
-
* @internal
|
|
297
|
-
*/
|
|
298
|
-
constructor(opts) {
|
|
299
|
-
super({
|
|
300
|
-
name: "InternalServerException",
|
|
301
|
-
$fault: "server",
|
|
302
|
-
...opts
|
|
303
|
-
});
|
|
304
|
-
Object.setPrototypeOf(this, _InternalServerException.prototype);
|
|
305
|
-
this.retryAfterSeconds = opts.retryAfterSeconds;
|
|
306
|
-
}
|
|
307
|
-
};
|
|
308
|
-
var ResourceType = {
|
|
309
|
-
EBS: "EBS",
|
|
310
|
-
S3: "S3"
|
|
311
|
-
};
|
|
312
|
-
var SearchJobState = {
|
|
313
|
-
COMPLETED: "COMPLETED",
|
|
314
|
-
FAILED: "FAILED",
|
|
315
|
-
RUNNING: "RUNNING",
|
|
316
|
-
STOPPED: "STOPPED",
|
|
317
|
-
STOPPING: "STOPPING"
|
|
318
|
-
};
|
|
319
|
-
var ResourceNotFoundException = class _ResourceNotFoundException extends BackupSearchServiceException {
|
|
320
|
-
static {
|
|
321
|
-
__name(this, "ResourceNotFoundException");
|
|
322
|
-
}
|
|
323
|
-
name = "ResourceNotFoundException";
|
|
324
|
-
$fault = "client";
|
|
325
|
-
/**
|
|
326
|
-
* <p>Hypothetical identifier of the resource affected.</p>
|
|
327
|
-
* @public
|
|
328
|
-
*/
|
|
329
|
-
resourceId;
|
|
330
|
-
/**
|
|
331
|
-
* <p>Hypothetical type of the resource affected.</p>
|
|
332
|
-
* @public
|
|
333
|
-
*/
|
|
334
|
-
resourceType;
|
|
335
|
-
/**
|
|
336
|
-
* @internal
|
|
337
|
-
*/
|
|
338
|
-
constructor(opts) {
|
|
339
|
-
super({
|
|
340
|
-
name: "ResourceNotFoundException",
|
|
341
|
-
$fault: "client",
|
|
342
|
-
...opts
|
|
343
|
-
});
|
|
344
|
-
Object.setPrototypeOf(this, _ResourceNotFoundException.prototype);
|
|
345
|
-
this.resourceId = opts.resourceId;
|
|
346
|
-
this.resourceType = opts.resourceType;
|
|
347
|
-
}
|
|
348
|
-
};
|
|
349
|
-
var ThrottlingException = class _ThrottlingException extends BackupSearchServiceException {
|
|
350
|
-
static {
|
|
351
|
-
__name(this, "ThrottlingException");
|
|
352
|
-
}
|
|
353
|
-
name = "ThrottlingException";
|
|
354
|
-
$fault = "client";
|
|
355
|
-
$retryable = {
|
|
356
|
-
throttling: true
|
|
357
|
-
};
|
|
358
|
-
/**
|
|
359
|
-
* <p>This is the code unique to the originating service.</p>
|
|
360
|
-
* @public
|
|
361
|
-
*/
|
|
362
|
-
serviceCode;
|
|
363
|
-
/**
|
|
364
|
-
* <p>This is the code unique to the originating service with the quota.</p>
|
|
365
|
-
* @public
|
|
366
|
-
*/
|
|
367
|
-
quotaCode;
|
|
368
|
-
/**
|
|
369
|
-
* <p>Retry the call after number of seconds.</p>
|
|
370
|
-
* @public
|
|
371
|
-
*/
|
|
372
|
-
retryAfterSeconds;
|
|
373
|
-
/**
|
|
374
|
-
* @internal
|
|
375
|
-
*/
|
|
376
|
-
constructor(opts) {
|
|
377
|
-
super({
|
|
378
|
-
name: "ThrottlingException",
|
|
379
|
-
$fault: "client",
|
|
380
|
-
...opts
|
|
381
|
-
});
|
|
382
|
-
Object.setPrototypeOf(this, _ThrottlingException.prototype);
|
|
383
|
-
this.serviceCode = opts.serviceCode;
|
|
384
|
-
this.quotaCode = opts.quotaCode;
|
|
385
|
-
this.retryAfterSeconds = opts.retryAfterSeconds;
|
|
386
|
-
}
|
|
387
|
-
};
|
|
388
|
-
var ValidationException = class _ValidationException extends BackupSearchServiceException {
|
|
389
|
-
static {
|
|
390
|
-
__name(this, "ValidationException");
|
|
391
|
-
}
|
|
392
|
-
name = "ValidationException";
|
|
393
|
-
$fault = "client";
|
|
394
|
-
/**
|
|
395
|
-
* @internal
|
|
396
|
-
*/
|
|
397
|
-
constructor(opts) {
|
|
398
|
-
super({
|
|
399
|
-
name: "ValidationException",
|
|
400
|
-
$fault: "client",
|
|
401
|
-
...opts
|
|
402
|
-
});
|
|
403
|
-
Object.setPrototypeOf(this, _ValidationException.prototype);
|
|
404
|
-
}
|
|
405
|
-
};
|
|
406
|
-
var ResultItem;
|
|
407
|
-
((ResultItem3) => {
|
|
408
|
-
ResultItem3.visit = /* @__PURE__ */ __name((value, visitor) => {
|
|
409
|
-
if (value.S3ResultItem !== void 0) return visitor.S3ResultItem(value.S3ResultItem);
|
|
410
|
-
if (value.EBSResultItem !== void 0) return visitor.EBSResultItem(value.EBSResultItem);
|
|
411
|
-
return visitor._(value.$unknown[0], value.$unknown[1]);
|
|
412
|
-
}, "visit");
|
|
413
|
-
})(ResultItem || (ResultItem = {}));
|
|
414
|
-
var TimeConditionOperator = {
|
|
415
|
-
EQUALS_TO: "EQUALS_TO",
|
|
416
|
-
GREATER_THAN_EQUAL_TO: "GREATER_THAN_EQUAL_TO",
|
|
417
|
-
LESS_THAN_EQUAL_TO: "LESS_THAN_EQUAL_TO",
|
|
418
|
-
NOT_EQUALS_TO: "NOT_EQUALS_TO"
|
|
419
|
-
};
|
|
420
|
-
var StringConditionOperator = {
|
|
421
|
-
BEGINS_WITH: "BEGINS_WITH",
|
|
422
|
-
CONTAINS: "CONTAINS",
|
|
423
|
-
DOES_NOT_BEGIN_WITH: "DOES_NOT_BEGIN_WITH",
|
|
424
|
-
DOES_NOT_CONTAIN: "DOES_NOT_CONTAIN",
|
|
425
|
-
DOES_NOT_END_WITH: "DOES_NOT_END_WITH",
|
|
426
|
-
ENDS_WITH: "ENDS_WITH",
|
|
427
|
-
EQUALS_TO: "EQUALS_TO",
|
|
428
|
-
NOT_EQUALS_TO: "NOT_EQUALS_TO"
|
|
429
|
-
};
|
|
430
|
-
var LongConditionOperator = {
|
|
431
|
-
EQUALS_TO: "EQUALS_TO",
|
|
432
|
-
GREATER_THAN_EQUAL_TO: "GREATER_THAN_EQUAL_TO",
|
|
433
|
-
LESS_THAN_EQUAL_TO: "LESS_THAN_EQUAL_TO",
|
|
434
|
-
NOT_EQUALS_TO: "NOT_EQUALS_TO"
|
|
435
|
-
};
|
|
436
|
-
var ServiceQuotaExceededException = class _ServiceQuotaExceededException extends BackupSearchServiceException {
|
|
437
|
-
static {
|
|
438
|
-
__name(this, "ServiceQuotaExceededException");
|
|
439
|
-
}
|
|
440
|
-
name = "ServiceQuotaExceededException";
|
|
441
|
-
$fault = "client";
|
|
442
|
-
/**
|
|
443
|
-
* <p>Identifier of the resource.</p>
|
|
444
|
-
* @public
|
|
445
|
-
*/
|
|
446
|
-
resourceId;
|
|
447
|
-
/**
|
|
448
|
-
* <p>Type of resource.</p>
|
|
449
|
-
* @public
|
|
450
|
-
*/
|
|
451
|
-
resourceType;
|
|
452
|
-
/**
|
|
453
|
-
* <p>This is the code unique to the originating service with the quota.</p>
|
|
454
|
-
* @public
|
|
455
|
-
*/
|
|
456
|
-
serviceCode;
|
|
457
|
-
/**
|
|
458
|
-
* <p>This is the code specific to the quota type.</p>
|
|
459
|
-
* @public
|
|
460
|
-
*/
|
|
461
|
-
quotaCode;
|
|
462
|
-
/**
|
|
463
|
-
* @internal
|
|
464
|
-
*/
|
|
465
|
-
constructor(opts) {
|
|
466
|
-
super({
|
|
467
|
-
name: "ServiceQuotaExceededException",
|
|
468
|
-
$fault: "client",
|
|
469
|
-
...opts
|
|
470
|
-
});
|
|
471
|
-
Object.setPrototypeOf(this, _ServiceQuotaExceededException.prototype);
|
|
472
|
-
this.resourceId = opts.resourceId;
|
|
473
|
-
this.resourceType = opts.resourceType;
|
|
474
|
-
this.serviceCode = opts.serviceCode;
|
|
475
|
-
this.quotaCode = opts.quotaCode;
|
|
476
|
-
}
|
|
477
|
-
};
|
|
478
|
-
var ExportJobStatus = {
|
|
479
|
-
COMPLETED: "COMPLETED",
|
|
480
|
-
FAILED: "FAILED",
|
|
481
|
-
RUNNING: "RUNNING"
|
|
482
|
-
};
|
|
483
|
-
var ExportSpecification;
|
|
484
|
-
((ExportSpecification3) => {
|
|
485
|
-
ExportSpecification3.visit = /* @__PURE__ */ __name((value, visitor) => {
|
|
486
|
-
if (value.s3ExportSpecification !== void 0) return visitor.s3ExportSpecification(value.s3ExportSpecification);
|
|
487
|
-
return visitor._(value.$unknown[0], value.$unknown[1]);
|
|
488
|
-
}, "visit");
|
|
489
|
-
})(ExportSpecification || (ExportSpecification = {}));
|
|
490
|
-
var EBSResultItemFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
|
|
491
|
-
...obj,
|
|
492
|
-
...obj.FilePath && { FilePath: import_smithy_client.SENSITIVE_STRING }
|
|
493
|
-
}), "EBSResultItemFilterSensitiveLog");
|
|
494
|
-
var S3ResultItemFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
|
|
495
|
-
...obj,
|
|
496
|
-
...obj.ObjectKey && { ObjectKey: import_smithy_client.SENSITIVE_STRING }
|
|
497
|
-
}), "S3ResultItemFilterSensitiveLog");
|
|
498
|
-
var ResultItemFilterSensitiveLog = /* @__PURE__ */ __name((obj) => {
|
|
499
|
-
if (obj.S3ResultItem !== void 0) return { S3ResultItem: S3ResultItemFilterSensitiveLog(obj.S3ResultItem) };
|
|
500
|
-
if (obj.EBSResultItem !== void 0) return { EBSResultItem: EBSResultItemFilterSensitiveLog(obj.EBSResultItem) };
|
|
501
|
-
if (obj.$unknown !== void 0) return { [obj.$unknown[0]]: "UNKNOWN" };
|
|
502
|
-
}, "ResultItemFilterSensitiveLog");
|
|
503
|
-
var ListSearchJobResultsOutputFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
|
|
504
|
-
...obj,
|
|
505
|
-
...obj.Results && { Results: obj.Results.map((item) => ResultItemFilterSensitiveLog(item)) }
|
|
506
|
-
}), "ListSearchJobResultsOutputFilterSensitiveLog");
|
|
507
|
-
|
|
508
|
-
// src/protocols/Aws_restJson1.ts
|
|
509
|
-
var se_GetSearchJobCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
510
|
-
const b = (0, import_core.requestBuilder)(input, context);
|
|
511
|
-
const headers = {};
|
|
512
|
-
b.bp("/search-jobs/{SearchJobIdentifier}");
|
|
513
|
-
b.p("SearchJobIdentifier", () => input.SearchJobIdentifier, "{SearchJobIdentifier}", false);
|
|
514
|
-
let body;
|
|
515
|
-
b.m("GET").h(headers).b(body);
|
|
516
|
-
return b.build();
|
|
517
|
-
}, "se_GetSearchJobCommand");
|
|
518
|
-
var se_GetSearchResultExportJobCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
519
|
-
const b = (0, import_core.requestBuilder)(input, context);
|
|
520
|
-
const headers = {};
|
|
521
|
-
b.bp("/export-search-jobs/{ExportJobIdentifier}");
|
|
522
|
-
b.p("ExportJobIdentifier", () => input.ExportJobIdentifier, "{ExportJobIdentifier}", false);
|
|
523
|
-
let body;
|
|
524
|
-
b.m("GET").h(headers).b(body);
|
|
525
|
-
return b.build();
|
|
526
|
-
}, "se_GetSearchResultExportJobCommand");
|
|
527
|
-
var se_ListSearchJobBackupsCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
528
|
-
const b = (0, import_core.requestBuilder)(input, context);
|
|
529
|
-
const headers = {};
|
|
530
|
-
b.bp("/search-jobs/{SearchJobIdentifier}/backups");
|
|
531
|
-
b.p("SearchJobIdentifier", () => input.SearchJobIdentifier, "{SearchJobIdentifier}", false);
|
|
532
|
-
const query = (0, import_smithy_client.map)({
|
|
533
|
-
[_nT]: [, input[_NT]],
|
|
534
|
-
[_mR]: [() => input.MaxResults !== void 0, () => input[_MR].toString()]
|
|
535
|
-
});
|
|
536
|
-
let body;
|
|
537
|
-
b.m("GET").h(headers).q(query).b(body);
|
|
538
|
-
return b.build();
|
|
539
|
-
}, "se_ListSearchJobBackupsCommand");
|
|
540
|
-
var se_ListSearchJobResultsCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
541
|
-
const b = (0, import_core.requestBuilder)(input, context);
|
|
542
|
-
const headers = {};
|
|
543
|
-
b.bp("/search-jobs/{SearchJobIdentifier}/search-results");
|
|
544
|
-
b.p("SearchJobIdentifier", () => input.SearchJobIdentifier, "{SearchJobIdentifier}", false);
|
|
545
|
-
const query = (0, import_smithy_client.map)({
|
|
546
|
-
[_nT]: [, input[_NT]],
|
|
547
|
-
[_mR]: [() => input.MaxResults !== void 0, () => input[_MR].toString()]
|
|
548
|
-
});
|
|
549
|
-
let body;
|
|
550
|
-
b.m("GET").h(headers).q(query).b(body);
|
|
551
|
-
return b.build();
|
|
552
|
-
}, "se_ListSearchJobResultsCommand");
|
|
553
|
-
var se_ListSearchJobsCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
554
|
-
const b = (0, import_core.requestBuilder)(input, context);
|
|
555
|
-
const headers = {};
|
|
556
|
-
b.bp("/search-jobs");
|
|
557
|
-
const query = (0, import_smithy_client.map)({
|
|
558
|
-
[_S]: [, input[_BS]],
|
|
559
|
-
[_NT]: [, input[_NT]],
|
|
560
|
-
[_MR]: [() => input.MaxResults !== void 0, () => input[_MR].toString()]
|
|
561
|
-
});
|
|
562
|
-
let body;
|
|
563
|
-
b.m("GET").h(headers).q(query).b(body);
|
|
564
|
-
return b.build();
|
|
565
|
-
}, "se_ListSearchJobsCommand");
|
|
566
|
-
var se_ListSearchResultExportJobsCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
567
|
-
const b = (0, import_core.requestBuilder)(input, context);
|
|
568
|
-
const headers = {};
|
|
569
|
-
b.bp("/export-search-jobs");
|
|
570
|
-
const query = (0, import_smithy_client.map)({
|
|
571
|
-
[_S]: [, input[_S]],
|
|
572
|
-
[_SJI]: [, input[_SJI]],
|
|
573
|
-
[_NT]: [, input[_NT]],
|
|
574
|
-
[_MR]: [() => input.MaxResults !== void 0, () => input[_MR].toString()]
|
|
575
|
-
});
|
|
576
|
-
let body;
|
|
577
|
-
b.m("GET").h(headers).q(query).b(body);
|
|
578
|
-
return b.build();
|
|
579
|
-
}, "se_ListSearchResultExportJobsCommand");
|
|
580
|
-
var se_ListTagsForResourceCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
581
|
-
const b = (0, import_core.requestBuilder)(input, context);
|
|
582
|
-
const headers = {};
|
|
583
|
-
b.bp("/tags/{ResourceArn}");
|
|
584
|
-
b.p("ResourceArn", () => input.ResourceArn, "{ResourceArn}", false);
|
|
585
|
-
let body;
|
|
586
|
-
b.m("GET").h(headers).b(body);
|
|
587
|
-
return b.build();
|
|
588
|
-
}, "se_ListTagsForResourceCommand");
|
|
589
|
-
var se_StartSearchJobCommand = /* @__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("/search-jobs");
|
|
595
|
-
let body;
|
|
596
|
-
body = JSON.stringify(
|
|
597
|
-
(0, import_smithy_client.take)(input, {
|
|
598
|
-
ClientToken: [],
|
|
599
|
-
EncryptionKeyArn: [],
|
|
600
|
-
ItemFilters: /* @__PURE__ */ __name((_) => se_ItemFilters(_, context), "ItemFilters"),
|
|
601
|
-
Name: [],
|
|
602
|
-
SearchScope: /* @__PURE__ */ __name((_) => se_SearchScope(_, context), "SearchScope"),
|
|
603
|
-
Tags: /* @__PURE__ */ __name((_) => se_TagMap(_, context), "Tags")
|
|
604
|
-
})
|
|
605
|
-
);
|
|
606
|
-
b.m("PUT").h(headers).b(body);
|
|
607
|
-
return b.build();
|
|
608
|
-
}, "se_StartSearchJobCommand");
|
|
609
|
-
var se_StartSearchResultExportJobCommand = /* @__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("/export-search-jobs");
|
|
615
|
-
let body;
|
|
616
|
-
body = JSON.stringify(
|
|
617
|
-
(0, import_smithy_client.take)(input, {
|
|
618
|
-
ClientToken: [],
|
|
619
|
-
ExportSpecification: /* @__PURE__ */ __name((_) => (0, import_smithy_client._json)(_), "ExportSpecification"),
|
|
620
|
-
RoleArn: [],
|
|
621
|
-
SearchJobIdentifier: [],
|
|
622
|
-
Tags: /* @__PURE__ */ __name((_) => se_TagMap(_, context), "Tags")
|
|
623
|
-
})
|
|
624
|
-
);
|
|
625
|
-
b.m("PUT").h(headers).b(body);
|
|
626
|
-
return b.build();
|
|
627
|
-
}, "se_StartSearchResultExportJobCommand");
|
|
628
|
-
var se_StopSearchJobCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
629
|
-
const b = (0, import_core.requestBuilder)(input, context);
|
|
630
|
-
const headers = {};
|
|
631
|
-
b.bp("/search-jobs/{SearchJobIdentifier}/actions/cancel");
|
|
632
|
-
b.p("SearchJobIdentifier", () => input.SearchJobIdentifier, "{SearchJobIdentifier}", false);
|
|
633
|
-
let body;
|
|
634
|
-
b.m("PUT").h(headers).b(body);
|
|
635
|
-
return b.build();
|
|
636
|
-
}, "se_StopSearchJobCommand");
|
|
637
|
-
var se_TagResourceCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
638
|
-
const b = (0, import_core.requestBuilder)(input, context);
|
|
639
|
-
const headers = {
|
|
640
|
-
"content-type": "application/json"
|
|
641
|
-
};
|
|
642
|
-
b.bp("/tags/{ResourceArn}");
|
|
643
|
-
b.p("ResourceArn", () => input.ResourceArn, "{ResourceArn}", false);
|
|
644
|
-
let body;
|
|
645
|
-
body = JSON.stringify(
|
|
646
|
-
(0, import_smithy_client.take)(input, {
|
|
647
|
-
Tags: /* @__PURE__ */ __name((_) => se_TagMap(_, context), "Tags")
|
|
648
|
-
})
|
|
649
|
-
);
|
|
650
|
-
b.m("POST").h(headers).b(body);
|
|
651
|
-
return b.build();
|
|
652
|
-
}, "se_TagResourceCommand");
|
|
653
|
-
var se_UntagResourceCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
654
|
-
const b = (0, import_core.requestBuilder)(input, context);
|
|
655
|
-
const headers = {};
|
|
656
|
-
b.bp("/tags/{ResourceArn}");
|
|
657
|
-
b.p("ResourceArn", () => input.ResourceArn, "{ResourceArn}", false);
|
|
658
|
-
const query = (0, import_smithy_client.map)({
|
|
659
|
-
[_tK]: [(0, import_smithy_client.expectNonNull)(input.TagKeys, `TagKeys`) != null, () => input[_TK] || []]
|
|
660
|
-
});
|
|
661
|
-
let body;
|
|
662
|
-
b.m("DELETE").h(headers).q(query).b(body);
|
|
663
|
-
return b.build();
|
|
664
|
-
}, "se_UntagResourceCommand");
|
|
665
|
-
var de_GetSearchJobCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
666
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
667
|
-
return de_CommandError(output, context);
|
|
668
|
-
}
|
|
669
|
-
const contents = (0, import_smithy_client.map)({
|
|
670
|
-
$metadata: deserializeMetadata(output)
|
|
671
|
-
});
|
|
672
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
673
|
-
const doc = (0, import_smithy_client.take)(data, {
|
|
674
|
-
CompletionTime: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))), "CompletionTime"),
|
|
675
|
-
CreationTime: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))), "CreationTime"),
|
|
676
|
-
CurrentSearchProgress: import_smithy_client._json,
|
|
677
|
-
EncryptionKeyArn: import_smithy_client.expectString,
|
|
678
|
-
ItemFilters: /* @__PURE__ */ __name((_) => de_ItemFilters(_, context), "ItemFilters"),
|
|
679
|
-
Name: import_smithy_client.expectString,
|
|
680
|
-
SearchJobArn: import_smithy_client.expectString,
|
|
681
|
-
SearchJobIdentifier: import_smithy_client.expectString,
|
|
682
|
-
SearchScope: /* @__PURE__ */ __name((_) => de_SearchScope(_, context), "SearchScope"),
|
|
683
|
-
SearchScopeSummary: import_smithy_client._json,
|
|
684
|
-
Status: import_smithy_client.expectString,
|
|
685
|
-
StatusMessage: import_smithy_client.expectString
|
|
686
|
-
});
|
|
687
|
-
Object.assign(contents, doc);
|
|
688
|
-
return contents;
|
|
689
|
-
}, "de_GetSearchJobCommand");
|
|
690
|
-
var de_GetSearchResultExportJobCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
691
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
692
|
-
return de_CommandError(output, context);
|
|
693
|
-
}
|
|
694
|
-
const contents = (0, import_smithy_client.map)({
|
|
695
|
-
$metadata: deserializeMetadata(output)
|
|
696
|
-
});
|
|
697
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
698
|
-
const doc = (0, import_smithy_client.take)(data, {
|
|
699
|
-
CompletionTime: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))), "CompletionTime"),
|
|
700
|
-
CreationTime: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))), "CreationTime"),
|
|
701
|
-
ExportJobArn: import_smithy_client.expectString,
|
|
702
|
-
ExportJobIdentifier: import_smithy_client.expectString,
|
|
703
|
-
ExportSpecification: /* @__PURE__ */ __name((_) => (0, import_smithy_client._json)((0, import_core2.awsExpectUnion)(_)), "ExportSpecification"),
|
|
704
|
-
SearchJobArn: import_smithy_client.expectString,
|
|
705
|
-
Status: import_smithy_client.expectString,
|
|
706
|
-
StatusMessage: import_smithy_client.expectString
|
|
707
|
-
});
|
|
708
|
-
Object.assign(contents, doc);
|
|
709
|
-
return contents;
|
|
710
|
-
}, "de_GetSearchResultExportJobCommand");
|
|
711
|
-
var de_ListSearchJobBackupsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
712
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
713
|
-
return de_CommandError(output, context);
|
|
714
|
-
}
|
|
715
|
-
const contents = (0, import_smithy_client.map)({
|
|
716
|
-
$metadata: deserializeMetadata(output)
|
|
717
|
-
});
|
|
718
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
719
|
-
const doc = (0, import_smithy_client.take)(data, {
|
|
720
|
-
NextToken: import_smithy_client.expectString,
|
|
721
|
-
Results: /* @__PURE__ */ __name((_) => de_SearchJobBackupsResults(_, context), "Results")
|
|
722
|
-
});
|
|
723
|
-
Object.assign(contents, doc);
|
|
724
|
-
return contents;
|
|
725
|
-
}, "de_ListSearchJobBackupsCommand");
|
|
726
|
-
var de_ListSearchJobResultsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
727
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
728
|
-
return de_CommandError(output, context);
|
|
729
|
-
}
|
|
730
|
-
const contents = (0, import_smithy_client.map)({
|
|
731
|
-
$metadata: deserializeMetadata(output)
|
|
732
|
-
});
|
|
733
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
734
|
-
const doc = (0, import_smithy_client.take)(data, {
|
|
735
|
-
NextToken: import_smithy_client.expectString,
|
|
736
|
-
Results: /* @__PURE__ */ __name((_) => de_Results(_, context), "Results")
|
|
737
|
-
});
|
|
738
|
-
Object.assign(contents, doc);
|
|
739
|
-
return contents;
|
|
740
|
-
}, "de_ListSearchJobResultsCommand");
|
|
741
|
-
var de_ListSearchJobsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
742
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
743
|
-
return de_CommandError(output, context);
|
|
744
|
-
}
|
|
745
|
-
const contents = (0, import_smithy_client.map)({
|
|
746
|
-
$metadata: deserializeMetadata(output)
|
|
747
|
-
});
|
|
748
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
749
|
-
const doc = (0, import_smithy_client.take)(data, {
|
|
750
|
-
NextToken: import_smithy_client.expectString,
|
|
751
|
-
SearchJobs: /* @__PURE__ */ __name((_) => de_SearchJobs(_, context), "SearchJobs")
|
|
752
|
-
});
|
|
753
|
-
Object.assign(contents, doc);
|
|
754
|
-
return contents;
|
|
755
|
-
}, "de_ListSearchJobsCommand");
|
|
756
|
-
var de_ListSearchResultExportJobsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
757
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
758
|
-
return de_CommandError(output, context);
|
|
759
|
-
}
|
|
760
|
-
const contents = (0, import_smithy_client.map)({
|
|
761
|
-
$metadata: deserializeMetadata(output)
|
|
762
|
-
});
|
|
763
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
764
|
-
const doc = (0, import_smithy_client.take)(data, {
|
|
765
|
-
ExportJobs: /* @__PURE__ */ __name((_) => de_ExportJobSummaries(_, context), "ExportJobs"),
|
|
766
|
-
NextToken: import_smithy_client.expectString
|
|
767
|
-
});
|
|
768
|
-
Object.assign(contents, doc);
|
|
769
|
-
return contents;
|
|
770
|
-
}, "de_ListSearchResultExportJobsCommand");
|
|
771
|
-
var de_ListTagsForResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
772
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
773
|
-
return de_CommandError(output, context);
|
|
774
|
-
}
|
|
775
|
-
const contents = (0, import_smithy_client.map)({
|
|
776
|
-
$metadata: deserializeMetadata(output)
|
|
777
|
-
});
|
|
778
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
779
|
-
const doc = (0, import_smithy_client.take)(data, {
|
|
780
|
-
Tags: /* @__PURE__ */ __name((_) => de_TagMap(_, context), "Tags")
|
|
781
|
-
});
|
|
782
|
-
Object.assign(contents, doc);
|
|
783
|
-
return contents;
|
|
784
|
-
}, "de_ListTagsForResourceCommand");
|
|
785
|
-
var de_StartSearchJobCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
786
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
787
|
-
return de_CommandError(output, context);
|
|
788
|
-
}
|
|
789
|
-
const contents = (0, import_smithy_client.map)({
|
|
790
|
-
$metadata: deserializeMetadata(output)
|
|
791
|
-
});
|
|
792
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
793
|
-
const doc = (0, import_smithy_client.take)(data, {
|
|
794
|
-
CreationTime: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))), "CreationTime"),
|
|
795
|
-
SearchJobArn: import_smithy_client.expectString,
|
|
796
|
-
SearchJobIdentifier: import_smithy_client.expectString
|
|
797
|
-
});
|
|
798
|
-
Object.assign(contents, doc);
|
|
799
|
-
return contents;
|
|
800
|
-
}, "de_StartSearchJobCommand");
|
|
801
|
-
var de_StartSearchResultExportJobCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
802
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
803
|
-
return de_CommandError(output, context);
|
|
804
|
-
}
|
|
805
|
-
const contents = (0, import_smithy_client.map)({
|
|
806
|
-
$metadata: deserializeMetadata(output)
|
|
807
|
-
});
|
|
808
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
809
|
-
const doc = (0, import_smithy_client.take)(data, {
|
|
810
|
-
ExportJobArn: import_smithy_client.expectString,
|
|
811
|
-
ExportJobIdentifier: import_smithy_client.expectString
|
|
812
|
-
});
|
|
813
|
-
Object.assign(contents, doc);
|
|
814
|
-
return contents;
|
|
815
|
-
}, "de_StartSearchResultExportJobCommand");
|
|
816
|
-
var de_StopSearchJobCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
817
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
818
|
-
return de_CommandError(output, context);
|
|
819
|
-
}
|
|
820
|
-
const contents = (0, import_smithy_client.map)({
|
|
821
|
-
$metadata: deserializeMetadata(output)
|
|
822
|
-
});
|
|
823
|
-
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
824
|
-
return contents;
|
|
825
|
-
}, "de_StopSearchJobCommand");
|
|
826
|
-
var de_TagResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
827
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
828
|
-
return de_CommandError(output, context);
|
|
829
|
-
}
|
|
830
|
-
const contents = (0, import_smithy_client.map)({
|
|
831
|
-
$metadata: deserializeMetadata(output)
|
|
832
|
-
});
|
|
833
|
-
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
834
|
-
return contents;
|
|
835
|
-
}, "de_TagResourceCommand");
|
|
836
|
-
var de_UntagResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
837
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
838
|
-
return de_CommandError(output, context);
|
|
839
|
-
}
|
|
840
|
-
const contents = (0, import_smithy_client.map)({
|
|
841
|
-
$metadata: deserializeMetadata(output)
|
|
842
|
-
});
|
|
843
|
-
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
844
|
-
return contents;
|
|
845
|
-
}, "de_UntagResourceCommand");
|
|
846
|
-
var de_CommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
847
|
-
const parsedOutput = {
|
|
848
|
-
...output,
|
|
849
|
-
body: await (0, import_core2.parseJsonErrorBody)(output.body, context)
|
|
850
|
-
};
|
|
851
|
-
const errorCode = (0, import_core2.loadRestJsonErrorCode)(output, parsedOutput.body);
|
|
852
|
-
switch (errorCode) {
|
|
853
|
-
case "AccessDeniedException":
|
|
854
|
-
case "com.amazonaws.backupsearch#AccessDeniedException":
|
|
855
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
856
|
-
case "InternalServerException":
|
|
857
|
-
case "com.amazonaws.backupsearch#InternalServerException":
|
|
858
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
859
|
-
case "ResourceNotFoundException":
|
|
860
|
-
case "com.amazonaws.backupsearch#ResourceNotFoundException":
|
|
861
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
862
|
-
case "ThrottlingException":
|
|
863
|
-
case "com.amazonaws.backupsearch#ThrottlingException":
|
|
864
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
865
|
-
case "ValidationException":
|
|
866
|
-
case "com.amazonaws.backupsearch#ValidationException":
|
|
867
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
868
|
-
case "ServiceQuotaExceededException":
|
|
869
|
-
case "com.amazonaws.backupsearch#ServiceQuotaExceededException":
|
|
870
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
871
|
-
case "ConflictException":
|
|
872
|
-
case "com.amazonaws.backupsearch#ConflictException":
|
|
873
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
874
|
-
default:
|
|
875
|
-
const parsedBody = parsedOutput.body;
|
|
876
|
-
return throwDefaultError({
|
|
877
|
-
output,
|
|
878
|
-
parsedBody,
|
|
879
|
-
errorCode
|
|
880
|
-
});
|
|
881
|
-
}
|
|
882
|
-
}, "de_CommandError");
|
|
883
|
-
var throwDefaultError = (0, import_smithy_client.withBaseException)(BackupSearchServiceException);
|
|
884
|
-
var de_AccessDeniedExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
885
|
-
const contents = (0, import_smithy_client.map)({});
|
|
886
|
-
const data = parsedOutput.body;
|
|
887
|
-
const doc = (0, import_smithy_client.take)(data, {
|
|
888
|
-
message: import_smithy_client.expectString
|
|
889
|
-
});
|
|
890
|
-
Object.assign(contents, doc);
|
|
891
|
-
const exception = new AccessDeniedException({
|
|
892
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
893
|
-
...contents
|
|
894
|
-
});
|
|
895
|
-
return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
|
|
896
|
-
}, "de_AccessDeniedExceptionRes");
|
|
897
|
-
var de_ConflictExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
898
|
-
const contents = (0, import_smithy_client.map)({});
|
|
899
|
-
const data = parsedOutput.body;
|
|
900
|
-
const doc = (0, import_smithy_client.take)(data, {
|
|
901
|
-
message: import_smithy_client.expectString,
|
|
902
|
-
resourceId: import_smithy_client.expectString,
|
|
903
|
-
resourceType: import_smithy_client.expectString
|
|
904
|
-
});
|
|
905
|
-
Object.assign(contents, doc);
|
|
906
|
-
const exception = new ConflictException({
|
|
907
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
908
|
-
...contents
|
|
909
|
-
});
|
|
910
|
-
return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
|
|
911
|
-
}, "de_ConflictExceptionRes");
|
|
912
|
-
var de_InternalServerExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
913
|
-
const contents = (0, import_smithy_client.map)({
|
|
914
|
-
[_rAS]: [() => void 0 !== parsedOutput.headers[_ra], () => (0, import_smithy_client.strictParseInt32)(parsedOutput.headers[_ra])]
|
|
915
|
-
});
|
|
916
|
-
const data = parsedOutput.body;
|
|
917
|
-
const doc = (0, import_smithy_client.take)(data, {
|
|
918
|
-
message: import_smithy_client.expectString
|
|
919
|
-
});
|
|
920
|
-
Object.assign(contents, doc);
|
|
921
|
-
const exception = new InternalServerException({
|
|
922
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
923
|
-
...contents
|
|
924
|
-
});
|
|
925
|
-
return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
|
|
926
|
-
}, "de_InternalServerExceptionRes");
|
|
927
|
-
var de_ResourceNotFoundExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
928
|
-
const contents = (0, import_smithy_client.map)({});
|
|
929
|
-
const data = parsedOutput.body;
|
|
930
|
-
const doc = (0, import_smithy_client.take)(data, {
|
|
931
|
-
message: import_smithy_client.expectString,
|
|
932
|
-
resourceId: import_smithy_client.expectString,
|
|
933
|
-
resourceType: import_smithy_client.expectString
|
|
934
|
-
});
|
|
935
|
-
Object.assign(contents, doc);
|
|
936
|
-
const exception = new ResourceNotFoundException({
|
|
937
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
938
|
-
...contents
|
|
939
|
-
});
|
|
940
|
-
return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
|
|
941
|
-
}, "de_ResourceNotFoundExceptionRes");
|
|
942
|
-
var de_ServiceQuotaExceededExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
943
|
-
const contents = (0, import_smithy_client.map)({});
|
|
944
|
-
const data = parsedOutput.body;
|
|
945
|
-
const doc = (0, import_smithy_client.take)(data, {
|
|
946
|
-
message: import_smithy_client.expectString,
|
|
947
|
-
quotaCode: import_smithy_client.expectString,
|
|
948
|
-
resourceId: import_smithy_client.expectString,
|
|
949
|
-
resourceType: import_smithy_client.expectString,
|
|
950
|
-
serviceCode: import_smithy_client.expectString
|
|
951
|
-
});
|
|
952
|
-
Object.assign(contents, doc);
|
|
953
|
-
const exception = new ServiceQuotaExceededException({
|
|
954
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
955
|
-
...contents
|
|
956
|
-
});
|
|
957
|
-
return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
|
|
958
|
-
}, "de_ServiceQuotaExceededExceptionRes");
|
|
959
|
-
var de_ThrottlingExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
960
|
-
const contents = (0, import_smithy_client.map)({
|
|
961
|
-
[_rAS]: [() => void 0 !== parsedOutput.headers[_ra], () => (0, import_smithy_client.strictParseInt32)(parsedOutput.headers[_ra])]
|
|
962
|
-
});
|
|
963
|
-
const data = parsedOutput.body;
|
|
964
|
-
const doc = (0, import_smithy_client.take)(data, {
|
|
965
|
-
message: import_smithy_client.expectString,
|
|
966
|
-
quotaCode: import_smithy_client.expectString,
|
|
967
|
-
serviceCode: import_smithy_client.expectString
|
|
968
|
-
});
|
|
969
|
-
Object.assign(contents, doc);
|
|
970
|
-
const exception = new ThrottlingException({
|
|
971
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
972
|
-
...contents
|
|
973
|
-
});
|
|
974
|
-
return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
|
|
975
|
-
}, "de_ThrottlingExceptionRes");
|
|
976
|
-
var de_ValidationExceptionRes = /* @__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 ValidationException({
|
|
984
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
985
|
-
...contents
|
|
986
|
-
});
|
|
987
|
-
return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
|
|
988
|
-
}, "de_ValidationExceptionRes");
|
|
989
|
-
var se_BackupCreationTimeFilter = /* @__PURE__ */ __name((input, context) => {
|
|
990
|
-
return (0, import_smithy_client.take)(input, {
|
|
991
|
-
CreatedAfter: /* @__PURE__ */ __name((_) => _.getTime() / 1e3, "CreatedAfter"),
|
|
992
|
-
CreatedBefore: /* @__PURE__ */ __name((_) => _.getTime() / 1e3, "CreatedBefore")
|
|
993
|
-
});
|
|
994
|
-
}, "se_BackupCreationTimeFilter");
|
|
995
|
-
var se_EBSItemFilter = /* @__PURE__ */ __name((input, context) => {
|
|
996
|
-
return (0, import_smithy_client.take)(input, {
|
|
997
|
-
CreationTimes: /* @__PURE__ */ __name((_) => se_TimeConditionList(_, context), "CreationTimes"),
|
|
998
|
-
FilePaths: import_smithy_client._json,
|
|
999
|
-
LastModificationTimes: /* @__PURE__ */ __name((_) => se_TimeConditionList(_, context), "LastModificationTimes"),
|
|
1000
|
-
Sizes: import_smithy_client._json
|
|
1001
|
-
});
|
|
1002
|
-
}, "se_EBSItemFilter");
|
|
1003
|
-
var se_EBSItemFilters = /* @__PURE__ */ __name((input, context) => {
|
|
1004
|
-
return input.filter((e) => e != null).map((entry) => {
|
|
1005
|
-
return se_EBSItemFilter(entry, context);
|
|
1006
|
-
});
|
|
1007
|
-
}, "se_EBSItemFilters");
|
|
1008
|
-
var se_ItemFilters = /* @__PURE__ */ __name((input, context) => {
|
|
1009
|
-
return (0, import_smithy_client.take)(input, {
|
|
1010
|
-
EBSItemFilters: /* @__PURE__ */ __name((_) => se_EBSItemFilters(_, context), "EBSItemFilters"),
|
|
1011
|
-
S3ItemFilters: /* @__PURE__ */ __name((_) => se_S3ItemFilters(_, context), "S3ItemFilters")
|
|
1012
|
-
});
|
|
1013
|
-
}, "se_ItemFilters");
|
|
1014
|
-
var se_S3ItemFilter = /* @__PURE__ */ __name((input, context) => {
|
|
1015
|
-
return (0, import_smithy_client.take)(input, {
|
|
1016
|
-
CreationTimes: /* @__PURE__ */ __name((_) => se_TimeConditionList(_, context), "CreationTimes"),
|
|
1017
|
-
ETags: import_smithy_client._json,
|
|
1018
|
-
ObjectKeys: import_smithy_client._json,
|
|
1019
|
-
Sizes: import_smithy_client._json,
|
|
1020
|
-
VersionIds: import_smithy_client._json
|
|
1021
|
-
});
|
|
1022
|
-
}, "se_S3ItemFilter");
|
|
1023
|
-
var se_S3ItemFilters = /* @__PURE__ */ __name((input, context) => {
|
|
1024
|
-
return input.filter((e) => e != null).map((entry) => {
|
|
1025
|
-
return se_S3ItemFilter(entry, context);
|
|
1026
|
-
});
|
|
1027
|
-
}, "se_S3ItemFilters");
|
|
1028
|
-
var se_SearchScope = /* @__PURE__ */ __name((input, context) => {
|
|
1029
|
-
return (0, import_smithy_client.take)(input, {
|
|
1030
|
-
BackupResourceArns: import_smithy_client._json,
|
|
1031
|
-
BackupResourceCreationTime: /* @__PURE__ */ __name((_) => se_BackupCreationTimeFilter(_, context), "BackupResourceCreationTime"),
|
|
1032
|
-
BackupResourceTags: /* @__PURE__ */ __name((_) => se_TagMap(_, context), "BackupResourceTags"),
|
|
1033
|
-
BackupResourceTypes: import_smithy_client._json,
|
|
1034
|
-
SourceResourceArns: import_smithy_client._json
|
|
1035
|
-
});
|
|
1036
|
-
}, "se_SearchScope");
|
|
1037
|
-
var se_TagMap = /* @__PURE__ */ __name((input, context) => {
|
|
1038
|
-
return Object.entries(input).reduce((acc, [key, value]) => {
|
|
1039
|
-
if (value === null) {
|
|
1040
|
-
acc[key] = null;
|
|
1041
|
-
return acc;
|
|
172
|
+
class ResourceNotFoundException extends BackupSearchServiceException {
|
|
173
|
+
name = "ResourceNotFoundException";
|
|
174
|
+
$fault = "client";
|
|
175
|
+
resourceId;
|
|
176
|
+
resourceType;
|
|
177
|
+
constructor(opts) {
|
|
178
|
+
super({
|
|
179
|
+
name: "ResourceNotFoundException",
|
|
180
|
+
$fault: "client",
|
|
181
|
+
...opts,
|
|
182
|
+
});
|
|
183
|
+
Object.setPrototypeOf(this, ResourceNotFoundException.prototype);
|
|
184
|
+
this.resourceId = opts.resourceId;
|
|
185
|
+
this.resourceType = opts.resourceType;
|
|
1042
186
|
}
|
|
1043
|
-
|
|
1044
|
-
|
|
1045
|
-
|
|
1046
|
-
|
|
1047
|
-
|
|
1048
|
-
|
|
1049
|
-
Operator: [],
|
|
1050
|
-
Value: /* @__PURE__ */ __name((_) => _.getTime() / 1e3, "Value")
|
|
1051
|
-
});
|
|
1052
|
-
}, "se_TimeCondition");
|
|
1053
|
-
var se_TimeConditionList = /* @__PURE__ */ __name((input, context) => {
|
|
1054
|
-
return input.filter((e) => e != null).map((entry) => {
|
|
1055
|
-
return se_TimeCondition(entry, context);
|
|
1056
|
-
});
|
|
1057
|
-
}, "se_TimeConditionList");
|
|
1058
|
-
var de_BackupCreationTimeFilter = /* @__PURE__ */ __name((output, context) => {
|
|
1059
|
-
return (0, import_smithy_client.take)(output, {
|
|
1060
|
-
CreatedAfter: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))), "CreatedAfter"),
|
|
1061
|
-
CreatedBefore: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))), "CreatedBefore")
|
|
1062
|
-
});
|
|
1063
|
-
}, "de_BackupCreationTimeFilter");
|
|
1064
|
-
var de_EBSItemFilter = /* @__PURE__ */ __name((output, context) => {
|
|
1065
|
-
return (0, import_smithy_client.take)(output, {
|
|
1066
|
-
CreationTimes: /* @__PURE__ */ __name((_) => de_TimeConditionList(_, context), "CreationTimes"),
|
|
1067
|
-
FilePaths: import_smithy_client._json,
|
|
1068
|
-
LastModificationTimes: /* @__PURE__ */ __name((_) => de_TimeConditionList(_, context), "LastModificationTimes"),
|
|
1069
|
-
Sizes: import_smithy_client._json
|
|
1070
|
-
});
|
|
1071
|
-
}, "de_EBSItemFilter");
|
|
1072
|
-
var de_EBSItemFilters = /* @__PURE__ */ __name((output, context) => {
|
|
1073
|
-
const retVal = (output || []).filter((e) => e != null).map((entry) => {
|
|
1074
|
-
return de_EBSItemFilter(entry, context);
|
|
1075
|
-
});
|
|
1076
|
-
return retVal;
|
|
1077
|
-
}, "de_EBSItemFilters");
|
|
1078
|
-
var de_EBSResultItem = /* @__PURE__ */ __name((output, context) => {
|
|
1079
|
-
return (0, import_smithy_client.take)(output, {
|
|
1080
|
-
BackupResourceArn: import_smithy_client.expectString,
|
|
1081
|
-
BackupVaultName: import_smithy_client.expectString,
|
|
1082
|
-
CreationTime: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))), "CreationTime"),
|
|
1083
|
-
FilePath: import_smithy_client.expectString,
|
|
1084
|
-
FileSize: import_smithy_client.expectLong,
|
|
1085
|
-
FileSystemIdentifier: import_smithy_client.expectString,
|
|
1086
|
-
LastModifiedTime: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))), "LastModifiedTime"),
|
|
1087
|
-
SourceResourceArn: import_smithy_client.expectString
|
|
1088
|
-
});
|
|
1089
|
-
}, "de_EBSResultItem");
|
|
1090
|
-
var de_ExportJobSummaries = /* @__PURE__ */ __name((output, context) => {
|
|
1091
|
-
const retVal = (output || []).filter((e) => e != null).map((entry) => {
|
|
1092
|
-
return de_ExportJobSummary(entry, context);
|
|
1093
|
-
});
|
|
1094
|
-
return retVal;
|
|
1095
|
-
}, "de_ExportJobSummaries");
|
|
1096
|
-
var de_ExportJobSummary = /* @__PURE__ */ __name((output, context) => {
|
|
1097
|
-
return (0, import_smithy_client.take)(output, {
|
|
1098
|
-
CompletionTime: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))), "CompletionTime"),
|
|
1099
|
-
CreationTime: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))), "CreationTime"),
|
|
1100
|
-
ExportJobArn: import_smithy_client.expectString,
|
|
1101
|
-
ExportJobIdentifier: import_smithy_client.expectString,
|
|
1102
|
-
SearchJobArn: import_smithy_client.expectString,
|
|
1103
|
-
Status: import_smithy_client.expectString,
|
|
1104
|
-
StatusMessage: import_smithy_client.expectString
|
|
1105
|
-
});
|
|
1106
|
-
}, "de_ExportJobSummary");
|
|
1107
|
-
var de_ItemFilters = /* @__PURE__ */ __name((output, context) => {
|
|
1108
|
-
return (0, import_smithy_client.take)(output, {
|
|
1109
|
-
EBSItemFilters: /* @__PURE__ */ __name((_) => de_EBSItemFilters(_, context), "EBSItemFilters"),
|
|
1110
|
-
S3ItemFilters: /* @__PURE__ */ __name((_) => de_S3ItemFilters(_, context), "S3ItemFilters")
|
|
1111
|
-
});
|
|
1112
|
-
}, "de_ItemFilters");
|
|
1113
|
-
var de_ResultItem = /* @__PURE__ */ __name((output, context) => {
|
|
1114
|
-
if (output.EBSResultItem != null) {
|
|
1115
|
-
return {
|
|
1116
|
-
EBSResultItem: de_EBSResultItem(output.EBSResultItem, context)
|
|
187
|
+
}
|
|
188
|
+
class ThrottlingException extends BackupSearchServiceException {
|
|
189
|
+
name = "ThrottlingException";
|
|
190
|
+
$fault = "client";
|
|
191
|
+
$retryable = {
|
|
192
|
+
throttling: true,
|
|
1117
193
|
};
|
|
1118
|
-
|
|
1119
|
-
|
|
1120
|
-
|
|
1121
|
-
|
|
194
|
+
serviceCode;
|
|
195
|
+
quotaCode;
|
|
196
|
+
retryAfterSeconds;
|
|
197
|
+
constructor(opts) {
|
|
198
|
+
super({
|
|
199
|
+
name: "ThrottlingException",
|
|
200
|
+
$fault: "client",
|
|
201
|
+
...opts,
|
|
202
|
+
});
|
|
203
|
+
Object.setPrototypeOf(this, ThrottlingException.prototype);
|
|
204
|
+
this.serviceCode = opts.serviceCode;
|
|
205
|
+
this.quotaCode = opts.quotaCode;
|
|
206
|
+
this.retryAfterSeconds = opts.retryAfterSeconds;
|
|
207
|
+
}
|
|
208
|
+
}
|
|
209
|
+
class ValidationException extends BackupSearchServiceException {
|
|
210
|
+
name = "ValidationException";
|
|
211
|
+
$fault = "client";
|
|
212
|
+
constructor(opts) {
|
|
213
|
+
super({
|
|
214
|
+
name: "ValidationException",
|
|
215
|
+
$fault: "client",
|
|
216
|
+
...opts,
|
|
217
|
+
});
|
|
218
|
+
Object.setPrototypeOf(this, ValidationException.prototype);
|
|
219
|
+
}
|
|
220
|
+
}
|
|
221
|
+
exports.ResultItem = void 0;
|
|
222
|
+
(function (ResultItem) {
|
|
223
|
+
ResultItem.visit = (value, visitor) => {
|
|
224
|
+
if (value.S3ResultItem !== undefined)
|
|
225
|
+
return visitor.S3ResultItem(value.S3ResultItem);
|
|
226
|
+
if (value.EBSResultItem !== undefined)
|
|
227
|
+
return visitor.EBSResultItem(value.EBSResultItem);
|
|
228
|
+
return visitor._(value.$unknown[0], value.$unknown[1]);
|
|
1122
229
|
};
|
|
1123
|
-
|
|
1124
|
-
|
|
1125
|
-
|
|
1126
|
-
|
|
1127
|
-
|
|
1128
|
-
|
|
1129
|
-
|
|
1130
|
-
|
|
1131
|
-
|
|
1132
|
-
|
|
1133
|
-
|
|
1134
|
-
|
|
1135
|
-
|
|
1136
|
-
|
|
1137
|
-
|
|
1138
|
-
|
|
1139
|
-
|
|
1140
|
-
|
|
1141
|
-
|
|
1142
|
-
|
|
1143
|
-
|
|
1144
|
-
|
|
1145
|
-
|
|
1146
|
-
|
|
1147
|
-
|
|
1148
|
-
|
|
1149
|
-
|
|
1150
|
-
|
|
1151
|
-
|
|
1152
|
-
|
|
1153
|
-
|
|
1154
|
-
|
|
1155
|
-
|
|
1156
|
-
|
|
1157
|
-
|
|
1158
|
-
}
|
|
1159
|
-
|
|
1160
|
-
|
|
1161
|
-
|
|
1162
|
-
|
|
1163
|
-
|
|
1164
|
-
ResourceType: import_smithy_client.expectString,
|
|
1165
|
-
SourceResourceArn: import_smithy_client.expectString,
|
|
1166
|
-
Status: import_smithy_client.expectString,
|
|
1167
|
-
StatusMessage: import_smithy_client.expectString
|
|
1168
|
-
});
|
|
1169
|
-
}, "de_SearchJobBackupsResult");
|
|
1170
|
-
var de_SearchJobBackupsResults = /* @__PURE__ */ __name((output, context) => {
|
|
1171
|
-
const retVal = (output || []).filter((e) => e != null).map((entry) => {
|
|
1172
|
-
return de_SearchJobBackupsResult(entry, context);
|
|
1173
|
-
});
|
|
1174
|
-
return retVal;
|
|
1175
|
-
}, "de_SearchJobBackupsResults");
|
|
1176
|
-
var de_SearchJobs = /* @__PURE__ */ __name((output, context) => {
|
|
1177
|
-
const retVal = (output || []).filter((e) => e != null).map((entry) => {
|
|
1178
|
-
return de_SearchJobSummary(entry, context);
|
|
1179
|
-
});
|
|
1180
|
-
return retVal;
|
|
1181
|
-
}, "de_SearchJobs");
|
|
1182
|
-
var de_SearchJobSummary = /* @__PURE__ */ __name((output, context) => {
|
|
1183
|
-
return (0, import_smithy_client.take)(output, {
|
|
1184
|
-
CompletionTime: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))), "CompletionTime"),
|
|
1185
|
-
CreationTime: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))), "CreationTime"),
|
|
1186
|
-
Name: import_smithy_client.expectString,
|
|
1187
|
-
SearchJobArn: import_smithy_client.expectString,
|
|
1188
|
-
SearchJobIdentifier: import_smithy_client.expectString,
|
|
1189
|
-
SearchScopeSummary: import_smithy_client._json,
|
|
1190
|
-
Status: import_smithy_client.expectString,
|
|
1191
|
-
StatusMessage: import_smithy_client.expectString
|
|
1192
|
-
});
|
|
1193
|
-
}, "de_SearchJobSummary");
|
|
1194
|
-
var de_SearchScope = /* @__PURE__ */ __name((output, context) => {
|
|
1195
|
-
return (0, import_smithy_client.take)(output, {
|
|
1196
|
-
BackupResourceArns: import_smithy_client._json,
|
|
1197
|
-
BackupResourceCreationTime: /* @__PURE__ */ __name((_) => de_BackupCreationTimeFilter(_, context), "BackupResourceCreationTime"),
|
|
1198
|
-
BackupResourceTags: /* @__PURE__ */ __name((_) => de_TagMap(_, context), "BackupResourceTags"),
|
|
1199
|
-
BackupResourceTypes: import_smithy_client._json,
|
|
1200
|
-
SourceResourceArns: import_smithy_client._json
|
|
1201
|
-
});
|
|
1202
|
-
}, "de_SearchScope");
|
|
1203
|
-
var de_TagMap = /* @__PURE__ */ __name((output, context) => {
|
|
1204
|
-
return Object.entries(output).reduce((acc, [key, value]) => {
|
|
1205
|
-
if (value === null) {
|
|
1206
|
-
acc[key] = null;
|
|
1207
|
-
return acc;
|
|
230
|
+
})(exports.ResultItem || (exports.ResultItem = {}));
|
|
231
|
+
const TimeConditionOperator = {
|
|
232
|
+
EQUALS_TO: "EQUALS_TO",
|
|
233
|
+
GREATER_THAN_EQUAL_TO: "GREATER_THAN_EQUAL_TO",
|
|
234
|
+
LESS_THAN_EQUAL_TO: "LESS_THAN_EQUAL_TO",
|
|
235
|
+
NOT_EQUALS_TO: "NOT_EQUALS_TO",
|
|
236
|
+
};
|
|
237
|
+
const StringConditionOperator = {
|
|
238
|
+
BEGINS_WITH: "BEGINS_WITH",
|
|
239
|
+
CONTAINS: "CONTAINS",
|
|
240
|
+
DOES_NOT_BEGIN_WITH: "DOES_NOT_BEGIN_WITH",
|
|
241
|
+
DOES_NOT_CONTAIN: "DOES_NOT_CONTAIN",
|
|
242
|
+
DOES_NOT_END_WITH: "DOES_NOT_END_WITH",
|
|
243
|
+
ENDS_WITH: "ENDS_WITH",
|
|
244
|
+
EQUALS_TO: "EQUALS_TO",
|
|
245
|
+
NOT_EQUALS_TO: "NOT_EQUALS_TO",
|
|
246
|
+
};
|
|
247
|
+
const LongConditionOperator = {
|
|
248
|
+
EQUALS_TO: "EQUALS_TO",
|
|
249
|
+
GREATER_THAN_EQUAL_TO: "GREATER_THAN_EQUAL_TO",
|
|
250
|
+
LESS_THAN_EQUAL_TO: "LESS_THAN_EQUAL_TO",
|
|
251
|
+
NOT_EQUALS_TO: "NOT_EQUALS_TO",
|
|
252
|
+
};
|
|
253
|
+
class ServiceQuotaExceededException extends BackupSearchServiceException {
|
|
254
|
+
name = "ServiceQuotaExceededException";
|
|
255
|
+
$fault = "client";
|
|
256
|
+
resourceId;
|
|
257
|
+
resourceType;
|
|
258
|
+
serviceCode;
|
|
259
|
+
quotaCode;
|
|
260
|
+
constructor(opts) {
|
|
261
|
+
super({
|
|
262
|
+
name: "ServiceQuotaExceededException",
|
|
263
|
+
$fault: "client",
|
|
264
|
+
...opts,
|
|
265
|
+
});
|
|
266
|
+
Object.setPrototypeOf(this, ServiceQuotaExceededException.prototype);
|
|
267
|
+
this.resourceId = opts.resourceId;
|
|
268
|
+
this.resourceType = opts.resourceType;
|
|
269
|
+
this.serviceCode = opts.serviceCode;
|
|
270
|
+
this.quotaCode = opts.quotaCode;
|
|
1208
271
|
}
|
|
1209
|
-
|
|
1210
|
-
|
|
1211
|
-
|
|
1212
|
-
|
|
1213
|
-
|
|
1214
|
-
return (0, import_smithy_client.take)(output, {
|
|
1215
|
-
Operator: import_smithy_client.expectString,
|
|
1216
|
-
Value: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))), "Value")
|
|
1217
|
-
});
|
|
1218
|
-
}, "de_TimeCondition");
|
|
1219
|
-
var de_TimeConditionList = /* @__PURE__ */ __name((output, context) => {
|
|
1220
|
-
const retVal = (output || []).filter((e) => e != null).map((entry) => {
|
|
1221
|
-
return de_TimeCondition(entry, context);
|
|
1222
|
-
});
|
|
1223
|
-
return retVal;
|
|
1224
|
-
}, "de_TimeConditionList");
|
|
1225
|
-
var deserializeMetadata = /* @__PURE__ */ __name((output) => ({
|
|
1226
|
-
httpStatusCode: output.statusCode,
|
|
1227
|
-
requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
|
|
1228
|
-
extendedRequestId: output.headers["x-amz-id-2"],
|
|
1229
|
-
cfId: output.headers["x-amz-cf-id"]
|
|
1230
|
-
}), "deserializeMetadata");
|
|
1231
|
-
var _BS = "ByStatus";
|
|
1232
|
-
var _MR = "MaxResults";
|
|
1233
|
-
var _NT = "NextToken";
|
|
1234
|
-
var _S = "Status";
|
|
1235
|
-
var _SJI = "SearchJobIdentifier";
|
|
1236
|
-
var _TK = "TagKeys";
|
|
1237
|
-
var _mR = "maxResults";
|
|
1238
|
-
var _nT = "nextToken";
|
|
1239
|
-
var _rAS = "retryAfterSeconds";
|
|
1240
|
-
var _ra = "retry-after";
|
|
1241
|
-
var _tK = "tagKeys";
|
|
1242
|
-
|
|
1243
|
-
// src/commands/GetSearchJobCommand.ts
|
|
1244
|
-
var GetSearchJobCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
|
|
1245
|
-
return [
|
|
1246
|
-
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
1247
|
-
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
1248
|
-
];
|
|
1249
|
-
}).s("CryoBackupSearchService", "GetSearchJob", {}).n("BackupSearchClient", "GetSearchJobCommand").f(void 0, void 0).ser(se_GetSearchJobCommand).de(de_GetSearchJobCommand).build() {
|
|
1250
|
-
static {
|
|
1251
|
-
__name(this, "GetSearchJobCommand");
|
|
1252
|
-
}
|
|
272
|
+
}
|
|
273
|
+
const ExportJobStatus = {
|
|
274
|
+
COMPLETED: "COMPLETED",
|
|
275
|
+
FAILED: "FAILED",
|
|
276
|
+
RUNNING: "RUNNING",
|
|
1253
277
|
};
|
|
1254
|
-
|
|
1255
|
-
|
|
1256
|
-
|
|
1257
|
-
|
|
1258
|
-
|
|
1259
|
-
|
|
1260
|
-
|
|
1261
|
-
|
|
1262
|
-
|
|
1263
|
-
|
|
1264
|
-
|
|
1265
|
-
|
|
1266
|
-
|
|
1267
|
-
|
|
278
|
+
exports.ExportSpecification = void 0;
|
|
279
|
+
(function (ExportSpecification) {
|
|
280
|
+
ExportSpecification.visit = (value, visitor) => {
|
|
281
|
+
if (value.s3ExportSpecification !== undefined)
|
|
282
|
+
return visitor.s3ExportSpecification(value.s3ExportSpecification);
|
|
283
|
+
return visitor._(value.$unknown[0], value.$unknown[1]);
|
|
284
|
+
};
|
|
285
|
+
})(exports.ExportSpecification || (exports.ExportSpecification = {}));
|
|
286
|
+
const EBSResultItemFilterSensitiveLog = (obj) => ({
|
|
287
|
+
...obj,
|
|
288
|
+
...(obj.FilePath && { FilePath: smithyClient.SENSITIVE_STRING }),
|
|
289
|
+
});
|
|
290
|
+
const S3ResultItemFilterSensitiveLog = (obj) => ({
|
|
291
|
+
...obj,
|
|
292
|
+
...(obj.ObjectKey && { ObjectKey: smithyClient.SENSITIVE_STRING }),
|
|
293
|
+
});
|
|
294
|
+
const ResultItemFilterSensitiveLog = (obj) => {
|
|
295
|
+
if (obj.S3ResultItem !== undefined)
|
|
296
|
+
return { S3ResultItem: S3ResultItemFilterSensitiveLog(obj.S3ResultItem) };
|
|
297
|
+
if (obj.EBSResultItem !== undefined)
|
|
298
|
+
return { EBSResultItem: EBSResultItemFilterSensitiveLog(obj.EBSResultItem) };
|
|
299
|
+
if (obj.$unknown !== undefined)
|
|
300
|
+
return { [obj.$unknown[0]]: "UNKNOWN" };
|
|
1268
301
|
};
|
|
302
|
+
const ListSearchJobResultsOutputFilterSensitiveLog = (obj) => ({
|
|
303
|
+
...obj,
|
|
304
|
+
...(obj.Results && { Results: obj.Results.map((item) => ResultItemFilterSensitiveLog(item)) }),
|
|
305
|
+
});
|
|
1269
306
|
|
|
1270
|
-
|
|
1271
|
-
|
|
1272
|
-
|
|
1273
|
-
|
|
1274
|
-
|
|
1275
|
-
|
|
1276
|
-
(
|
|
1277
|
-
|
|
1278
|
-
];
|
|
1279
|
-
}).s("CryoBackupSearchService", "ListSearchJobBackups", {}).n("BackupSearchClient", "ListSearchJobBackupsCommand").f(void 0, void 0).ser(se_ListSearchJobBackupsCommand).de(de_ListSearchJobBackupsCommand).build() {
|
|
1280
|
-
static {
|
|
1281
|
-
__name(this, "ListSearchJobBackupsCommand");
|
|
1282
|
-
}
|
|
307
|
+
const se_GetSearchJobCommand = async (input, context) => {
|
|
308
|
+
const b = core.requestBuilder(input, context);
|
|
309
|
+
const headers = {};
|
|
310
|
+
b.bp("/search-jobs/{SearchJobIdentifier}");
|
|
311
|
+
b.p("SearchJobIdentifier", () => input.SearchJobIdentifier, "{SearchJobIdentifier}", false);
|
|
312
|
+
let body;
|
|
313
|
+
b.m("GET").h(headers).b(body);
|
|
314
|
+
return b.build();
|
|
1283
315
|
};
|
|
1284
|
-
|
|
1285
|
-
|
|
1286
|
-
|
|
1287
|
-
|
|
1288
|
-
|
|
1289
|
-
|
|
1290
|
-
|
|
1291
|
-
|
|
1292
|
-
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
1293
|
-
];
|
|
1294
|
-
}).s("CryoBackupSearchService", "ListSearchJobResults", {}).n("BackupSearchClient", "ListSearchJobResultsCommand").f(void 0, ListSearchJobResultsOutputFilterSensitiveLog).ser(se_ListSearchJobResultsCommand).de(de_ListSearchJobResultsCommand).build() {
|
|
1295
|
-
static {
|
|
1296
|
-
__name(this, "ListSearchJobResultsCommand");
|
|
1297
|
-
}
|
|
316
|
+
const se_GetSearchResultExportJobCommand = async (input, context) => {
|
|
317
|
+
const b = core.requestBuilder(input, context);
|
|
318
|
+
const headers = {};
|
|
319
|
+
b.bp("/export-search-jobs/{ExportJobIdentifier}");
|
|
320
|
+
b.p("ExportJobIdentifier", () => input.ExportJobIdentifier, "{ExportJobIdentifier}", false);
|
|
321
|
+
let body;
|
|
322
|
+
b.m("GET").h(headers).b(body);
|
|
323
|
+
return b.build();
|
|
1298
324
|
};
|
|
1299
|
-
|
|
1300
|
-
|
|
1301
|
-
|
|
1302
|
-
|
|
1303
|
-
|
|
1304
|
-
|
|
1305
|
-
|
|
1306
|
-
|
|
1307
|
-
|
|
1308
|
-
|
|
1309
|
-
|
|
1310
|
-
|
|
1311
|
-
__name(this, "ListSearchJobsCommand");
|
|
1312
|
-
}
|
|
325
|
+
const se_ListSearchJobBackupsCommand = async (input, context) => {
|
|
326
|
+
const b = core.requestBuilder(input, context);
|
|
327
|
+
const headers = {};
|
|
328
|
+
b.bp("/search-jobs/{SearchJobIdentifier}/backups");
|
|
329
|
+
b.p("SearchJobIdentifier", () => input.SearchJobIdentifier, "{SearchJobIdentifier}", false);
|
|
330
|
+
const query = smithyClient.map({
|
|
331
|
+
[_nT]: [, input[_NT]],
|
|
332
|
+
[_mR]: [() => input.MaxResults !== void 0, () => input[_MR].toString()],
|
|
333
|
+
});
|
|
334
|
+
let body;
|
|
335
|
+
b.m("GET").h(headers).q(query).b(body);
|
|
336
|
+
return b.build();
|
|
1313
337
|
};
|
|
1314
|
-
|
|
1315
|
-
|
|
1316
|
-
|
|
1317
|
-
|
|
1318
|
-
|
|
1319
|
-
|
|
1320
|
-
|
|
1321
|
-
|
|
1322
|
-
|
|
1323
|
-
|
|
1324
|
-
|
|
1325
|
-
|
|
1326
|
-
__name(this, "ListSearchResultExportJobsCommand");
|
|
1327
|
-
}
|
|
338
|
+
const se_ListSearchJobResultsCommand = async (input, context) => {
|
|
339
|
+
const b = core.requestBuilder(input, context);
|
|
340
|
+
const headers = {};
|
|
341
|
+
b.bp("/search-jobs/{SearchJobIdentifier}/search-results");
|
|
342
|
+
b.p("SearchJobIdentifier", () => input.SearchJobIdentifier, "{SearchJobIdentifier}", false);
|
|
343
|
+
const query = smithyClient.map({
|
|
344
|
+
[_nT]: [, input[_NT]],
|
|
345
|
+
[_mR]: [() => input.MaxResults !== void 0, () => input[_MR].toString()],
|
|
346
|
+
});
|
|
347
|
+
let body;
|
|
348
|
+
b.m("GET").h(headers).q(query).b(body);
|
|
349
|
+
return b.build();
|
|
1328
350
|
};
|
|
1329
|
-
|
|
1330
|
-
|
|
1331
|
-
|
|
1332
|
-
|
|
1333
|
-
|
|
1334
|
-
|
|
1335
|
-
|
|
1336
|
-
|
|
1337
|
-
|
|
1338
|
-
|
|
1339
|
-
|
|
1340
|
-
|
|
1341
|
-
__name(this, "ListTagsForResourceCommand");
|
|
1342
|
-
}
|
|
351
|
+
const se_ListSearchJobsCommand = async (input, context) => {
|
|
352
|
+
const b = core.requestBuilder(input, context);
|
|
353
|
+
const headers = {};
|
|
354
|
+
b.bp("/search-jobs");
|
|
355
|
+
const query = smithyClient.map({
|
|
356
|
+
[_S]: [, input[_BS]],
|
|
357
|
+
[_NT]: [, input[_NT]],
|
|
358
|
+
[_MR]: [() => input.MaxResults !== void 0, () => input[_MR].toString()],
|
|
359
|
+
});
|
|
360
|
+
let body;
|
|
361
|
+
b.m("GET").h(headers).q(query).b(body);
|
|
362
|
+
return b.build();
|
|
1343
363
|
};
|
|
1344
|
-
|
|
1345
|
-
|
|
1346
|
-
|
|
1347
|
-
|
|
1348
|
-
|
|
1349
|
-
|
|
1350
|
-
|
|
1351
|
-
|
|
1352
|
-
|
|
1353
|
-
|
|
1354
|
-
|
|
1355
|
-
|
|
1356
|
-
|
|
1357
|
-
}
|
|
364
|
+
const se_ListSearchResultExportJobsCommand = async (input, context) => {
|
|
365
|
+
const b = core.requestBuilder(input, context);
|
|
366
|
+
const headers = {};
|
|
367
|
+
b.bp("/export-search-jobs");
|
|
368
|
+
const query = smithyClient.map({
|
|
369
|
+
[_S]: [, input[_S]],
|
|
370
|
+
[_SJI]: [, input[_SJI]],
|
|
371
|
+
[_NT]: [, input[_NT]],
|
|
372
|
+
[_MR]: [() => input.MaxResults !== void 0, () => input[_MR].toString()],
|
|
373
|
+
});
|
|
374
|
+
let body;
|
|
375
|
+
b.m("GET").h(headers).q(query).b(body);
|
|
376
|
+
return b.build();
|
|
1358
377
|
};
|
|
1359
|
-
|
|
1360
|
-
|
|
1361
|
-
|
|
1362
|
-
|
|
1363
|
-
|
|
1364
|
-
|
|
1365
|
-
|
|
1366
|
-
|
|
1367
|
-
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
1368
|
-
];
|
|
1369
|
-
}).s("CryoBackupSearchService", "StartSearchResultExportJob", {}).n("BackupSearchClient", "StartSearchResultExportJobCommand").f(void 0, void 0).ser(se_StartSearchResultExportJobCommand).de(de_StartSearchResultExportJobCommand).build() {
|
|
1370
|
-
static {
|
|
1371
|
-
__name(this, "StartSearchResultExportJobCommand");
|
|
1372
|
-
}
|
|
378
|
+
const se_ListTagsForResourceCommand = async (input, context) => {
|
|
379
|
+
const b = core.requestBuilder(input, context);
|
|
380
|
+
const headers = {};
|
|
381
|
+
b.bp("/tags/{ResourceArn}");
|
|
382
|
+
b.p("ResourceArn", () => input.ResourceArn, "{ResourceArn}", false);
|
|
383
|
+
let body;
|
|
384
|
+
b.m("GET").h(headers).b(body);
|
|
385
|
+
return b.build();
|
|
1373
386
|
};
|
|
1374
|
-
|
|
1375
|
-
|
|
1376
|
-
|
|
1377
|
-
|
|
1378
|
-
|
|
1379
|
-
|
|
1380
|
-
|
|
1381
|
-
|
|
1382
|
-
|
|
1383
|
-
|
|
1384
|
-
|
|
1385
|
-
|
|
1386
|
-
|
|
1387
|
-
|
|
387
|
+
const se_StartSearchJobCommand = async (input, context) => {
|
|
388
|
+
const b = core.requestBuilder(input, context);
|
|
389
|
+
const headers = {
|
|
390
|
+
"content-type": "application/json",
|
|
391
|
+
};
|
|
392
|
+
b.bp("/search-jobs");
|
|
393
|
+
let body;
|
|
394
|
+
body = JSON.stringify(smithyClient.take(input, {
|
|
395
|
+
ClientToken: [],
|
|
396
|
+
EncryptionKeyArn: [],
|
|
397
|
+
ItemFilters: (_) => se_ItemFilters(_),
|
|
398
|
+
Name: [],
|
|
399
|
+
SearchScope: (_) => se_SearchScope(_),
|
|
400
|
+
Tags: (_) => se_TagMap(_),
|
|
401
|
+
}));
|
|
402
|
+
b.m("PUT").h(headers).b(body);
|
|
403
|
+
return b.build();
|
|
1388
404
|
};
|
|
1389
|
-
|
|
1390
|
-
|
|
1391
|
-
|
|
1392
|
-
|
|
1393
|
-
|
|
1394
|
-
|
|
1395
|
-
|
|
1396
|
-
|
|
1397
|
-
|
|
1398
|
-
|
|
1399
|
-
|
|
1400
|
-
|
|
1401
|
-
|
|
1402
|
-
|
|
405
|
+
const se_StartSearchResultExportJobCommand = async (input, context) => {
|
|
406
|
+
const b = core.requestBuilder(input, context);
|
|
407
|
+
const headers = {
|
|
408
|
+
"content-type": "application/json",
|
|
409
|
+
};
|
|
410
|
+
b.bp("/export-search-jobs");
|
|
411
|
+
let body;
|
|
412
|
+
body = JSON.stringify(smithyClient.take(input, {
|
|
413
|
+
ClientToken: [],
|
|
414
|
+
ExportSpecification: (_) => smithyClient._json(_),
|
|
415
|
+
RoleArn: [],
|
|
416
|
+
SearchJobIdentifier: [],
|
|
417
|
+
Tags: (_) => se_TagMap(_),
|
|
418
|
+
}));
|
|
419
|
+
b.m("PUT").h(headers).b(body);
|
|
420
|
+
return b.build();
|
|
1403
421
|
};
|
|
1404
|
-
|
|
1405
|
-
|
|
1406
|
-
|
|
1407
|
-
|
|
1408
|
-
|
|
1409
|
-
|
|
1410
|
-
|
|
1411
|
-
|
|
1412
|
-
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
1413
|
-
];
|
|
1414
|
-
}).s("CryoBackupSearchService", "UntagResource", {}).n("BackupSearchClient", "UntagResourceCommand").f(void 0, void 0).ser(se_UntagResourceCommand).de(de_UntagResourceCommand).build() {
|
|
1415
|
-
static {
|
|
1416
|
-
__name(this, "UntagResourceCommand");
|
|
1417
|
-
}
|
|
422
|
+
const se_StopSearchJobCommand = async (input, context) => {
|
|
423
|
+
const b = core.requestBuilder(input, context);
|
|
424
|
+
const headers = {};
|
|
425
|
+
b.bp("/search-jobs/{SearchJobIdentifier}/actions/cancel");
|
|
426
|
+
b.p("SearchJobIdentifier", () => input.SearchJobIdentifier, "{SearchJobIdentifier}", false);
|
|
427
|
+
let body;
|
|
428
|
+
b.m("PUT").h(headers).b(body);
|
|
429
|
+
return b.build();
|
|
1418
430
|
};
|
|
431
|
+
const se_TagResourceCommand = async (input, context) => {
|
|
432
|
+
const b = core.requestBuilder(input, context);
|
|
433
|
+
const headers = {
|
|
434
|
+
"content-type": "application/json",
|
|
435
|
+
};
|
|
436
|
+
b.bp("/tags/{ResourceArn}");
|
|
437
|
+
b.p("ResourceArn", () => input.ResourceArn, "{ResourceArn}", false);
|
|
438
|
+
let body;
|
|
439
|
+
body = JSON.stringify(smithyClient.take(input, {
|
|
440
|
+
Tags: (_) => se_TagMap(_),
|
|
441
|
+
}));
|
|
442
|
+
b.m("POST").h(headers).b(body);
|
|
443
|
+
return b.build();
|
|
444
|
+
};
|
|
445
|
+
const se_UntagResourceCommand = async (input, context) => {
|
|
446
|
+
const b = core.requestBuilder(input, context);
|
|
447
|
+
const headers = {};
|
|
448
|
+
b.bp("/tags/{ResourceArn}");
|
|
449
|
+
b.p("ResourceArn", () => input.ResourceArn, "{ResourceArn}", false);
|
|
450
|
+
const query = smithyClient.map({
|
|
451
|
+
[_tK]: [smithyClient.expectNonNull(input.TagKeys, `TagKeys`) != null, () => input[_TK] || []],
|
|
452
|
+
});
|
|
453
|
+
let body;
|
|
454
|
+
b.m("DELETE").h(headers).q(query).b(body);
|
|
455
|
+
return b.build();
|
|
456
|
+
};
|
|
457
|
+
const de_GetSearchJobCommand = async (output, context) => {
|
|
458
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
459
|
+
return de_CommandError(output, context);
|
|
460
|
+
}
|
|
461
|
+
const contents = smithyClient.map({
|
|
462
|
+
$metadata: deserializeMetadata(output),
|
|
463
|
+
});
|
|
464
|
+
const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
|
|
465
|
+
const doc = smithyClient.take(data, {
|
|
466
|
+
CompletionTime: (_) => smithyClient.expectNonNull(smithyClient.parseEpochTimestamp(smithyClient.expectNumber(_))),
|
|
467
|
+
CreationTime: (_) => smithyClient.expectNonNull(smithyClient.parseEpochTimestamp(smithyClient.expectNumber(_))),
|
|
468
|
+
CurrentSearchProgress: smithyClient._json,
|
|
469
|
+
EncryptionKeyArn: smithyClient.expectString,
|
|
470
|
+
ItemFilters: (_) => de_ItemFilters(_),
|
|
471
|
+
Name: smithyClient.expectString,
|
|
472
|
+
SearchJobArn: smithyClient.expectString,
|
|
473
|
+
SearchJobIdentifier: smithyClient.expectString,
|
|
474
|
+
SearchScope: (_) => de_SearchScope(_),
|
|
475
|
+
SearchScopeSummary: smithyClient._json,
|
|
476
|
+
Status: smithyClient.expectString,
|
|
477
|
+
StatusMessage: smithyClient.expectString,
|
|
478
|
+
});
|
|
479
|
+
Object.assign(contents, doc);
|
|
480
|
+
return contents;
|
|
481
|
+
};
|
|
482
|
+
const de_GetSearchResultExportJobCommand = async (output, context) => {
|
|
483
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
484
|
+
return de_CommandError(output, context);
|
|
485
|
+
}
|
|
486
|
+
const contents = smithyClient.map({
|
|
487
|
+
$metadata: deserializeMetadata(output),
|
|
488
|
+
});
|
|
489
|
+
const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
|
|
490
|
+
const doc = smithyClient.take(data, {
|
|
491
|
+
CompletionTime: (_) => smithyClient.expectNonNull(smithyClient.parseEpochTimestamp(smithyClient.expectNumber(_))),
|
|
492
|
+
CreationTime: (_) => smithyClient.expectNonNull(smithyClient.parseEpochTimestamp(smithyClient.expectNumber(_))),
|
|
493
|
+
ExportJobArn: smithyClient.expectString,
|
|
494
|
+
ExportJobIdentifier: smithyClient.expectString,
|
|
495
|
+
ExportSpecification: (_) => smithyClient._json(core$1.awsExpectUnion(_)),
|
|
496
|
+
SearchJobArn: smithyClient.expectString,
|
|
497
|
+
Status: smithyClient.expectString,
|
|
498
|
+
StatusMessage: smithyClient.expectString,
|
|
499
|
+
});
|
|
500
|
+
Object.assign(contents, doc);
|
|
501
|
+
return contents;
|
|
502
|
+
};
|
|
503
|
+
const de_ListSearchJobBackupsCommand = async (output, context) => {
|
|
504
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
505
|
+
return de_CommandError(output, context);
|
|
506
|
+
}
|
|
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
|
+
NextToken: smithyClient.expectString,
|
|
513
|
+
Results: (_) => de_SearchJobBackupsResults(_),
|
|
514
|
+
});
|
|
515
|
+
Object.assign(contents, doc);
|
|
516
|
+
return contents;
|
|
517
|
+
};
|
|
518
|
+
const de_ListSearchJobResultsCommand = async (output, context) => {
|
|
519
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
520
|
+
return de_CommandError(output, context);
|
|
521
|
+
}
|
|
522
|
+
const contents = smithyClient.map({
|
|
523
|
+
$metadata: deserializeMetadata(output),
|
|
524
|
+
});
|
|
525
|
+
const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
|
|
526
|
+
const doc = smithyClient.take(data, {
|
|
527
|
+
NextToken: smithyClient.expectString,
|
|
528
|
+
Results: (_) => de_Results(_),
|
|
529
|
+
});
|
|
530
|
+
Object.assign(contents, doc);
|
|
531
|
+
return contents;
|
|
532
|
+
};
|
|
533
|
+
const de_ListSearchJobsCommand = async (output, context) => {
|
|
534
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
535
|
+
return de_CommandError(output, context);
|
|
536
|
+
}
|
|
537
|
+
const contents = smithyClient.map({
|
|
538
|
+
$metadata: deserializeMetadata(output),
|
|
539
|
+
});
|
|
540
|
+
const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
|
|
541
|
+
const doc = smithyClient.take(data, {
|
|
542
|
+
NextToken: smithyClient.expectString,
|
|
543
|
+
SearchJobs: (_) => de_SearchJobs(_),
|
|
544
|
+
});
|
|
545
|
+
Object.assign(contents, doc);
|
|
546
|
+
return contents;
|
|
547
|
+
};
|
|
548
|
+
const de_ListSearchResultExportJobsCommand = async (output, context) => {
|
|
549
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
550
|
+
return de_CommandError(output, context);
|
|
551
|
+
}
|
|
552
|
+
const contents = smithyClient.map({
|
|
553
|
+
$metadata: deserializeMetadata(output),
|
|
554
|
+
});
|
|
555
|
+
const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
|
|
556
|
+
const doc = smithyClient.take(data, {
|
|
557
|
+
ExportJobs: (_) => de_ExportJobSummaries(_),
|
|
558
|
+
NextToken: smithyClient.expectString,
|
|
559
|
+
});
|
|
560
|
+
Object.assign(contents, doc);
|
|
561
|
+
return contents;
|
|
562
|
+
};
|
|
563
|
+
const de_ListTagsForResourceCommand = async (output, context) => {
|
|
564
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
565
|
+
return de_CommandError(output, context);
|
|
566
|
+
}
|
|
567
|
+
const contents = smithyClient.map({
|
|
568
|
+
$metadata: deserializeMetadata(output),
|
|
569
|
+
});
|
|
570
|
+
const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
|
|
571
|
+
const doc = smithyClient.take(data, {
|
|
572
|
+
Tags: (_) => de_TagMap(_),
|
|
573
|
+
});
|
|
574
|
+
Object.assign(contents, doc);
|
|
575
|
+
return contents;
|
|
576
|
+
};
|
|
577
|
+
const de_StartSearchJobCommand = async (output, context) => {
|
|
578
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
579
|
+
return de_CommandError(output, context);
|
|
580
|
+
}
|
|
581
|
+
const contents = smithyClient.map({
|
|
582
|
+
$metadata: deserializeMetadata(output),
|
|
583
|
+
});
|
|
584
|
+
const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
|
|
585
|
+
const doc = smithyClient.take(data, {
|
|
586
|
+
CreationTime: (_) => smithyClient.expectNonNull(smithyClient.parseEpochTimestamp(smithyClient.expectNumber(_))),
|
|
587
|
+
SearchJobArn: smithyClient.expectString,
|
|
588
|
+
SearchJobIdentifier: smithyClient.expectString,
|
|
589
|
+
});
|
|
590
|
+
Object.assign(contents, doc);
|
|
591
|
+
return contents;
|
|
592
|
+
};
|
|
593
|
+
const de_StartSearchResultExportJobCommand = async (output, context) => {
|
|
594
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
595
|
+
return de_CommandError(output, context);
|
|
596
|
+
}
|
|
597
|
+
const contents = smithyClient.map({
|
|
598
|
+
$metadata: deserializeMetadata(output),
|
|
599
|
+
});
|
|
600
|
+
const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
|
|
601
|
+
const doc = smithyClient.take(data, {
|
|
602
|
+
ExportJobArn: smithyClient.expectString,
|
|
603
|
+
ExportJobIdentifier: smithyClient.expectString,
|
|
604
|
+
});
|
|
605
|
+
Object.assign(contents, doc);
|
|
606
|
+
return contents;
|
|
607
|
+
};
|
|
608
|
+
const de_StopSearchJobCommand = async (output, context) => {
|
|
609
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
610
|
+
return de_CommandError(output, context);
|
|
611
|
+
}
|
|
612
|
+
const contents = smithyClient.map({
|
|
613
|
+
$metadata: deserializeMetadata(output),
|
|
614
|
+
});
|
|
615
|
+
await smithyClient.collectBody(output.body, context);
|
|
616
|
+
return contents;
|
|
617
|
+
};
|
|
618
|
+
const de_TagResourceCommand = async (output, context) => {
|
|
619
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
620
|
+
return de_CommandError(output, context);
|
|
621
|
+
}
|
|
622
|
+
const contents = smithyClient.map({
|
|
623
|
+
$metadata: deserializeMetadata(output),
|
|
624
|
+
});
|
|
625
|
+
await smithyClient.collectBody(output.body, context);
|
|
626
|
+
return contents;
|
|
627
|
+
};
|
|
628
|
+
const de_UntagResourceCommand = async (output, context) => {
|
|
629
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
630
|
+
return de_CommandError(output, context);
|
|
631
|
+
}
|
|
632
|
+
const contents = smithyClient.map({
|
|
633
|
+
$metadata: deserializeMetadata(output),
|
|
634
|
+
});
|
|
635
|
+
await smithyClient.collectBody(output.body, context);
|
|
636
|
+
return contents;
|
|
637
|
+
};
|
|
638
|
+
const de_CommandError = async (output, context) => {
|
|
639
|
+
const parsedOutput = {
|
|
640
|
+
...output,
|
|
641
|
+
body: await core$1.parseJsonErrorBody(output.body, context),
|
|
642
|
+
};
|
|
643
|
+
const errorCode = core$1.loadRestJsonErrorCode(output, parsedOutput.body);
|
|
644
|
+
switch (errorCode) {
|
|
645
|
+
case "AccessDeniedException":
|
|
646
|
+
case "com.amazonaws.backupsearch#AccessDeniedException":
|
|
647
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput);
|
|
648
|
+
case "InternalServerException":
|
|
649
|
+
case "com.amazonaws.backupsearch#InternalServerException":
|
|
650
|
+
throw await de_InternalServerExceptionRes(parsedOutput);
|
|
651
|
+
case "ResourceNotFoundException":
|
|
652
|
+
case "com.amazonaws.backupsearch#ResourceNotFoundException":
|
|
653
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput);
|
|
654
|
+
case "ThrottlingException":
|
|
655
|
+
case "com.amazonaws.backupsearch#ThrottlingException":
|
|
656
|
+
throw await de_ThrottlingExceptionRes(parsedOutput);
|
|
657
|
+
case "ValidationException":
|
|
658
|
+
case "com.amazonaws.backupsearch#ValidationException":
|
|
659
|
+
throw await de_ValidationExceptionRes(parsedOutput);
|
|
660
|
+
case "ServiceQuotaExceededException":
|
|
661
|
+
case "com.amazonaws.backupsearch#ServiceQuotaExceededException":
|
|
662
|
+
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput);
|
|
663
|
+
case "ConflictException":
|
|
664
|
+
case "com.amazonaws.backupsearch#ConflictException":
|
|
665
|
+
throw await de_ConflictExceptionRes(parsedOutput);
|
|
666
|
+
default:
|
|
667
|
+
const parsedBody = parsedOutput.body;
|
|
668
|
+
return throwDefaultError({
|
|
669
|
+
output,
|
|
670
|
+
parsedBody,
|
|
671
|
+
errorCode,
|
|
672
|
+
});
|
|
673
|
+
}
|
|
674
|
+
};
|
|
675
|
+
const throwDefaultError = smithyClient.withBaseException(BackupSearchServiceException);
|
|
676
|
+
const de_AccessDeniedExceptionRes = async (parsedOutput, context) => {
|
|
677
|
+
const contents = smithyClient.map({});
|
|
678
|
+
const data = parsedOutput.body;
|
|
679
|
+
const doc = smithyClient.take(data, {
|
|
680
|
+
message: smithyClient.expectString,
|
|
681
|
+
});
|
|
682
|
+
Object.assign(contents, doc);
|
|
683
|
+
const exception = new AccessDeniedException({
|
|
684
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
685
|
+
...contents,
|
|
686
|
+
});
|
|
687
|
+
return smithyClient.decorateServiceException(exception, parsedOutput.body);
|
|
688
|
+
};
|
|
689
|
+
const de_ConflictExceptionRes = async (parsedOutput, context) => {
|
|
690
|
+
const contents = smithyClient.map({});
|
|
691
|
+
const data = parsedOutput.body;
|
|
692
|
+
const doc = smithyClient.take(data, {
|
|
693
|
+
message: smithyClient.expectString,
|
|
694
|
+
resourceId: smithyClient.expectString,
|
|
695
|
+
resourceType: smithyClient.expectString,
|
|
696
|
+
});
|
|
697
|
+
Object.assign(contents, doc);
|
|
698
|
+
const exception = new ConflictException({
|
|
699
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
700
|
+
...contents,
|
|
701
|
+
});
|
|
702
|
+
return smithyClient.decorateServiceException(exception, parsedOutput.body);
|
|
703
|
+
};
|
|
704
|
+
const de_InternalServerExceptionRes = async (parsedOutput, context) => {
|
|
705
|
+
const contents = smithyClient.map({
|
|
706
|
+
[_rAS]: [() => void 0 !== parsedOutput.headers[_ra], () => smithyClient.strictParseInt32(parsedOutput.headers[_ra])],
|
|
707
|
+
});
|
|
708
|
+
const data = parsedOutput.body;
|
|
709
|
+
const doc = smithyClient.take(data, {
|
|
710
|
+
message: smithyClient.expectString,
|
|
711
|
+
});
|
|
712
|
+
Object.assign(contents, doc);
|
|
713
|
+
const exception = new InternalServerException({
|
|
714
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
715
|
+
...contents,
|
|
716
|
+
});
|
|
717
|
+
return smithyClient.decorateServiceException(exception, parsedOutput.body);
|
|
718
|
+
};
|
|
719
|
+
const de_ResourceNotFoundExceptionRes = async (parsedOutput, context) => {
|
|
720
|
+
const contents = smithyClient.map({});
|
|
721
|
+
const data = parsedOutput.body;
|
|
722
|
+
const doc = smithyClient.take(data, {
|
|
723
|
+
message: smithyClient.expectString,
|
|
724
|
+
resourceId: smithyClient.expectString,
|
|
725
|
+
resourceType: smithyClient.expectString,
|
|
726
|
+
});
|
|
727
|
+
Object.assign(contents, doc);
|
|
728
|
+
const exception = new ResourceNotFoundException({
|
|
729
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
730
|
+
...contents,
|
|
731
|
+
});
|
|
732
|
+
return smithyClient.decorateServiceException(exception, parsedOutput.body);
|
|
733
|
+
};
|
|
734
|
+
const de_ServiceQuotaExceededExceptionRes = async (parsedOutput, context) => {
|
|
735
|
+
const contents = smithyClient.map({});
|
|
736
|
+
const data = parsedOutput.body;
|
|
737
|
+
const doc = smithyClient.take(data, {
|
|
738
|
+
message: smithyClient.expectString,
|
|
739
|
+
quotaCode: smithyClient.expectString,
|
|
740
|
+
resourceId: smithyClient.expectString,
|
|
741
|
+
resourceType: smithyClient.expectString,
|
|
742
|
+
serviceCode: smithyClient.expectString,
|
|
743
|
+
});
|
|
744
|
+
Object.assign(contents, doc);
|
|
745
|
+
const exception = new ServiceQuotaExceededException({
|
|
746
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
747
|
+
...contents,
|
|
748
|
+
});
|
|
749
|
+
return smithyClient.decorateServiceException(exception, parsedOutput.body);
|
|
750
|
+
};
|
|
751
|
+
const de_ThrottlingExceptionRes = async (parsedOutput, context) => {
|
|
752
|
+
const contents = smithyClient.map({
|
|
753
|
+
[_rAS]: [() => void 0 !== parsedOutput.headers[_ra], () => smithyClient.strictParseInt32(parsedOutput.headers[_ra])],
|
|
754
|
+
});
|
|
755
|
+
const data = parsedOutput.body;
|
|
756
|
+
const doc = smithyClient.take(data, {
|
|
757
|
+
message: smithyClient.expectString,
|
|
758
|
+
quotaCode: smithyClient.expectString,
|
|
759
|
+
serviceCode: smithyClient.expectString,
|
|
760
|
+
});
|
|
761
|
+
Object.assign(contents, doc);
|
|
762
|
+
const exception = new ThrottlingException({
|
|
763
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
764
|
+
...contents,
|
|
765
|
+
});
|
|
766
|
+
return smithyClient.decorateServiceException(exception, parsedOutput.body);
|
|
767
|
+
};
|
|
768
|
+
const de_ValidationExceptionRes = async (parsedOutput, context) => {
|
|
769
|
+
const contents = smithyClient.map({});
|
|
770
|
+
const data = parsedOutput.body;
|
|
771
|
+
const doc = smithyClient.take(data, {
|
|
772
|
+
message: smithyClient.expectString,
|
|
773
|
+
});
|
|
774
|
+
Object.assign(contents, doc);
|
|
775
|
+
const exception = new ValidationException({
|
|
776
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
777
|
+
...contents,
|
|
778
|
+
});
|
|
779
|
+
return smithyClient.decorateServiceException(exception, parsedOutput.body);
|
|
780
|
+
};
|
|
781
|
+
const se_BackupCreationTimeFilter = (input, context) => {
|
|
782
|
+
return smithyClient.take(input, {
|
|
783
|
+
CreatedAfter: (_) => _.getTime() / 1_000,
|
|
784
|
+
CreatedBefore: (_) => _.getTime() / 1_000,
|
|
785
|
+
});
|
|
786
|
+
};
|
|
787
|
+
const se_EBSItemFilter = (input, context) => {
|
|
788
|
+
return smithyClient.take(input, {
|
|
789
|
+
CreationTimes: (_) => se_TimeConditionList(_),
|
|
790
|
+
FilePaths: smithyClient._json,
|
|
791
|
+
LastModificationTimes: (_) => se_TimeConditionList(_),
|
|
792
|
+
Sizes: smithyClient._json,
|
|
793
|
+
});
|
|
794
|
+
};
|
|
795
|
+
const se_EBSItemFilters = (input, context) => {
|
|
796
|
+
return input
|
|
797
|
+
.filter((e) => e != null)
|
|
798
|
+
.map((entry) => {
|
|
799
|
+
return se_EBSItemFilter(entry);
|
|
800
|
+
});
|
|
801
|
+
};
|
|
802
|
+
const se_ItemFilters = (input, context) => {
|
|
803
|
+
return smithyClient.take(input, {
|
|
804
|
+
EBSItemFilters: (_) => se_EBSItemFilters(_),
|
|
805
|
+
S3ItemFilters: (_) => se_S3ItemFilters(_),
|
|
806
|
+
});
|
|
807
|
+
};
|
|
808
|
+
const se_S3ItemFilter = (input, context) => {
|
|
809
|
+
return smithyClient.take(input, {
|
|
810
|
+
CreationTimes: (_) => se_TimeConditionList(_),
|
|
811
|
+
ETags: smithyClient._json,
|
|
812
|
+
ObjectKeys: smithyClient._json,
|
|
813
|
+
Sizes: smithyClient._json,
|
|
814
|
+
VersionIds: smithyClient._json,
|
|
815
|
+
});
|
|
816
|
+
};
|
|
817
|
+
const se_S3ItemFilters = (input, context) => {
|
|
818
|
+
return input
|
|
819
|
+
.filter((e) => e != null)
|
|
820
|
+
.map((entry) => {
|
|
821
|
+
return se_S3ItemFilter(entry);
|
|
822
|
+
});
|
|
823
|
+
};
|
|
824
|
+
const se_SearchScope = (input, context) => {
|
|
825
|
+
return smithyClient.take(input, {
|
|
826
|
+
BackupResourceArns: smithyClient._json,
|
|
827
|
+
BackupResourceCreationTime: (_) => se_BackupCreationTimeFilter(_),
|
|
828
|
+
BackupResourceTags: (_) => se_TagMap(_),
|
|
829
|
+
BackupResourceTypes: smithyClient._json,
|
|
830
|
+
SourceResourceArns: smithyClient._json,
|
|
831
|
+
});
|
|
832
|
+
};
|
|
833
|
+
const se_TagMap = (input, context) => {
|
|
834
|
+
return Object.entries(input).reduce((acc, [key, value]) => {
|
|
835
|
+
if (value === null) {
|
|
836
|
+
acc[key] = null;
|
|
837
|
+
return acc;
|
|
838
|
+
}
|
|
839
|
+
acc[key] = value;
|
|
840
|
+
return acc;
|
|
841
|
+
}, {});
|
|
842
|
+
};
|
|
843
|
+
const se_TimeCondition = (input, context) => {
|
|
844
|
+
return smithyClient.take(input, {
|
|
845
|
+
Operator: [],
|
|
846
|
+
Value: (_) => _.getTime() / 1_000,
|
|
847
|
+
});
|
|
848
|
+
};
|
|
849
|
+
const se_TimeConditionList = (input, context) => {
|
|
850
|
+
return input
|
|
851
|
+
.filter((e) => e != null)
|
|
852
|
+
.map((entry) => {
|
|
853
|
+
return se_TimeCondition(entry);
|
|
854
|
+
});
|
|
855
|
+
};
|
|
856
|
+
const de_BackupCreationTimeFilter = (output, context) => {
|
|
857
|
+
return smithyClient.take(output, {
|
|
858
|
+
CreatedAfter: (_) => smithyClient.expectNonNull(smithyClient.parseEpochTimestamp(smithyClient.expectNumber(_))),
|
|
859
|
+
CreatedBefore: (_) => smithyClient.expectNonNull(smithyClient.parseEpochTimestamp(smithyClient.expectNumber(_))),
|
|
860
|
+
});
|
|
861
|
+
};
|
|
862
|
+
const de_EBSItemFilter = (output, context) => {
|
|
863
|
+
return smithyClient.take(output, {
|
|
864
|
+
CreationTimes: (_) => de_TimeConditionList(_),
|
|
865
|
+
FilePaths: smithyClient._json,
|
|
866
|
+
LastModificationTimes: (_) => de_TimeConditionList(_),
|
|
867
|
+
Sizes: smithyClient._json,
|
|
868
|
+
});
|
|
869
|
+
};
|
|
870
|
+
const de_EBSItemFilters = (output, context) => {
|
|
871
|
+
const retVal = (output || [])
|
|
872
|
+
.filter((e) => e != null)
|
|
873
|
+
.map((entry) => {
|
|
874
|
+
return de_EBSItemFilter(entry);
|
|
875
|
+
});
|
|
876
|
+
return retVal;
|
|
877
|
+
};
|
|
878
|
+
const de_EBSResultItem = (output, context) => {
|
|
879
|
+
return smithyClient.take(output, {
|
|
880
|
+
BackupResourceArn: smithyClient.expectString,
|
|
881
|
+
BackupVaultName: smithyClient.expectString,
|
|
882
|
+
CreationTime: (_) => smithyClient.expectNonNull(smithyClient.parseEpochTimestamp(smithyClient.expectNumber(_))),
|
|
883
|
+
FilePath: smithyClient.expectString,
|
|
884
|
+
FileSize: smithyClient.expectLong,
|
|
885
|
+
FileSystemIdentifier: smithyClient.expectString,
|
|
886
|
+
LastModifiedTime: (_) => smithyClient.expectNonNull(smithyClient.parseEpochTimestamp(smithyClient.expectNumber(_))),
|
|
887
|
+
SourceResourceArn: smithyClient.expectString,
|
|
888
|
+
});
|
|
889
|
+
};
|
|
890
|
+
const de_ExportJobSummaries = (output, context) => {
|
|
891
|
+
const retVal = (output || [])
|
|
892
|
+
.filter((e) => e != null)
|
|
893
|
+
.map((entry) => {
|
|
894
|
+
return de_ExportJobSummary(entry);
|
|
895
|
+
});
|
|
896
|
+
return retVal;
|
|
897
|
+
};
|
|
898
|
+
const de_ExportJobSummary = (output, context) => {
|
|
899
|
+
return smithyClient.take(output, {
|
|
900
|
+
CompletionTime: (_) => smithyClient.expectNonNull(smithyClient.parseEpochTimestamp(smithyClient.expectNumber(_))),
|
|
901
|
+
CreationTime: (_) => smithyClient.expectNonNull(smithyClient.parseEpochTimestamp(smithyClient.expectNumber(_))),
|
|
902
|
+
ExportJobArn: smithyClient.expectString,
|
|
903
|
+
ExportJobIdentifier: smithyClient.expectString,
|
|
904
|
+
SearchJobArn: smithyClient.expectString,
|
|
905
|
+
Status: smithyClient.expectString,
|
|
906
|
+
StatusMessage: smithyClient.expectString,
|
|
907
|
+
});
|
|
908
|
+
};
|
|
909
|
+
const de_ItemFilters = (output, context) => {
|
|
910
|
+
return smithyClient.take(output, {
|
|
911
|
+
EBSItemFilters: (_) => de_EBSItemFilters(_),
|
|
912
|
+
S3ItemFilters: (_) => de_S3ItemFilters(_),
|
|
913
|
+
});
|
|
914
|
+
};
|
|
915
|
+
const de_ResultItem = (output, context) => {
|
|
916
|
+
if (output.EBSResultItem != null) {
|
|
917
|
+
return {
|
|
918
|
+
EBSResultItem: de_EBSResultItem(output.EBSResultItem),
|
|
919
|
+
};
|
|
920
|
+
}
|
|
921
|
+
if (output.S3ResultItem != null) {
|
|
922
|
+
return {
|
|
923
|
+
S3ResultItem: de_S3ResultItem(output.S3ResultItem),
|
|
924
|
+
};
|
|
925
|
+
}
|
|
926
|
+
return { $unknown: Object.entries(output)[0] };
|
|
927
|
+
};
|
|
928
|
+
const de_Results = (output, context) => {
|
|
929
|
+
const retVal = (output || [])
|
|
930
|
+
.filter((e) => e != null)
|
|
931
|
+
.map((entry) => {
|
|
932
|
+
return de_ResultItem(core$1.awsExpectUnion(entry));
|
|
933
|
+
});
|
|
934
|
+
return retVal;
|
|
935
|
+
};
|
|
936
|
+
const de_S3ItemFilter = (output, context) => {
|
|
937
|
+
return smithyClient.take(output, {
|
|
938
|
+
CreationTimes: (_) => de_TimeConditionList(_),
|
|
939
|
+
ETags: smithyClient._json,
|
|
940
|
+
ObjectKeys: smithyClient._json,
|
|
941
|
+
Sizes: smithyClient._json,
|
|
942
|
+
VersionIds: smithyClient._json,
|
|
943
|
+
});
|
|
944
|
+
};
|
|
945
|
+
const de_S3ItemFilters = (output, context) => {
|
|
946
|
+
const retVal = (output || [])
|
|
947
|
+
.filter((e) => e != null)
|
|
948
|
+
.map((entry) => {
|
|
949
|
+
return de_S3ItemFilter(entry);
|
|
950
|
+
});
|
|
951
|
+
return retVal;
|
|
952
|
+
};
|
|
953
|
+
const de_S3ResultItem = (output, context) => {
|
|
954
|
+
return smithyClient.take(output, {
|
|
955
|
+
BackupResourceArn: smithyClient.expectString,
|
|
956
|
+
BackupVaultName: smithyClient.expectString,
|
|
957
|
+
CreationTime: (_) => smithyClient.expectNonNull(smithyClient.parseEpochTimestamp(smithyClient.expectNumber(_))),
|
|
958
|
+
ETag: smithyClient.expectString,
|
|
959
|
+
ObjectKey: smithyClient.expectString,
|
|
960
|
+
ObjectSize: smithyClient.expectLong,
|
|
961
|
+
SourceResourceArn: smithyClient.expectString,
|
|
962
|
+
VersionId: smithyClient.expectString,
|
|
963
|
+
});
|
|
964
|
+
};
|
|
965
|
+
const de_SearchJobBackupsResult = (output, context) => {
|
|
966
|
+
return smithyClient.take(output, {
|
|
967
|
+
BackupCreationTime: (_) => smithyClient.expectNonNull(smithyClient.parseEpochTimestamp(smithyClient.expectNumber(_))),
|
|
968
|
+
BackupResourceArn: smithyClient.expectString,
|
|
969
|
+
IndexCreationTime: (_) => smithyClient.expectNonNull(smithyClient.parseEpochTimestamp(smithyClient.expectNumber(_))),
|
|
970
|
+
ResourceType: smithyClient.expectString,
|
|
971
|
+
SourceResourceArn: smithyClient.expectString,
|
|
972
|
+
Status: smithyClient.expectString,
|
|
973
|
+
StatusMessage: smithyClient.expectString,
|
|
974
|
+
});
|
|
975
|
+
};
|
|
976
|
+
const de_SearchJobBackupsResults = (output, context) => {
|
|
977
|
+
const retVal = (output || [])
|
|
978
|
+
.filter((e) => e != null)
|
|
979
|
+
.map((entry) => {
|
|
980
|
+
return de_SearchJobBackupsResult(entry);
|
|
981
|
+
});
|
|
982
|
+
return retVal;
|
|
983
|
+
};
|
|
984
|
+
const de_SearchJobs = (output, context) => {
|
|
985
|
+
const retVal = (output || [])
|
|
986
|
+
.filter((e) => e != null)
|
|
987
|
+
.map((entry) => {
|
|
988
|
+
return de_SearchJobSummary(entry);
|
|
989
|
+
});
|
|
990
|
+
return retVal;
|
|
991
|
+
};
|
|
992
|
+
const de_SearchJobSummary = (output, context) => {
|
|
993
|
+
return smithyClient.take(output, {
|
|
994
|
+
CompletionTime: (_) => smithyClient.expectNonNull(smithyClient.parseEpochTimestamp(smithyClient.expectNumber(_))),
|
|
995
|
+
CreationTime: (_) => smithyClient.expectNonNull(smithyClient.parseEpochTimestamp(smithyClient.expectNumber(_))),
|
|
996
|
+
Name: smithyClient.expectString,
|
|
997
|
+
SearchJobArn: smithyClient.expectString,
|
|
998
|
+
SearchJobIdentifier: smithyClient.expectString,
|
|
999
|
+
SearchScopeSummary: smithyClient._json,
|
|
1000
|
+
Status: smithyClient.expectString,
|
|
1001
|
+
StatusMessage: smithyClient.expectString,
|
|
1002
|
+
});
|
|
1003
|
+
};
|
|
1004
|
+
const de_SearchScope = (output, context) => {
|
|
1005
|
+
return smithyClient.take(output, {
|
|
1006
|
+
BackupResourceArns: smithyClient._json,
|
|
1007
|
+
BackupResourceCreationTime: (_) => de_BackupCreationTimeFilter(_),
|
|
1008
|
+
BackupResourceTags: (_) => de_TagMap(_),
|
|
1009
|
+
BackupResourceTypes: smithyClient._json,
|
|
1010
|
+
SourceResourceArns: smithyClient._json,
|
|
1011
|
+
});
|
|
1012
|
+
};
|
|
1013
|
+
const de_TagMap = (output, context) => {
|
|
1014
|
+
return Object.entries(output).reduce((acc, [key, value]) => {
|
|
1015
|
+
if (value === null) {
|
|
1016
|
+
acc[key] = null;
|
|
1017
|
+
return acc;
|
|
1018
|
+
}
|
|
1019
|
+
acc[key] = smithyClient.expectString(value);
|
|
1020
|
+
return acc;
|
|
1021
|
+
}, {});
|
|
1022
|
+
};
|
|
1023
|
+
const de_TimeCondition = (output, context) => {
|
|
1024
|
+
return smithyClient.take(output, {
|
|
1025
|
+
Operator: smithyClient.expectString,
|
|
1026
|
+
Value: (_) => smithyClient.expectNonNull(smithyClient.parseEpochTimestamp(smithyClient.expectNumber(_))),
|
|
1027
|
+
});
|
|
1028
|
+
};
|
|
1029
|
+
const de_TimeConditionList = (output, context) => {
|
|
1030
|
+
const retVal = (output || [])
|
|
1031
|
+
.filter((e) => e != null)
|
|
1032
|
+
.map((entry) => {
|
|
1033
|
+
return de_TimeCondition(entry);
|
|
1034
|
+
});
|
|
1035
|
+
return retVal;
|
|
1036
|
+
};
|
|
1037
|
+
const deserializeMetadata = (output) => ({
|
|
1038
|
+
httpStatusCode: output.statusCode,
|
|
1039
|
+
requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
|
|
1040
|
+
extendedRequestId: output.headers["x-amz-id-2"],
|
|
1041
|
+
cfId: output.headers["x-amz-cf-id"],
|
|
1042
|
+
});
|
|
1043
|
+
const _BS = "ByStatus";
|
|
1044
|
+
const _MR = "MaxResults";
|
|
1045
|
+
const _NT = "NextToken";
|
|
1046
|
+
const _S = "Status";
|
|
1047
|
+
const _SJI = "SearchJobIdentifier";
|
|
1048
|
+
const _TK = "TagKeys";
|
|
1049
|
+
const _mR = "maxResults";
|
|
1050
|
+
const _nT = "nextToken";
|
|
1051
|
+
const _rAS = "retryAfterSeconds";
|
|
1052
|
+
const _ra = "retry-after";
|
|
1053
|
+
const _tK = "tagKeys";
|
|
1054
|
+
|
|
1055
|
+
class GetSearchJobCommand extends smithyClient.Command
|
|
1056
|
+
.classBuilder()
|
|
1057
|
+
.ep(commonParams)
|
|
1058
|
+
.m(function (Command, cs, config, o) {
|
|
1059
|
+
return [
|
|
1060
|
+
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
1061
|
+
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
1062
|
+
];
|
|
1063
|
+
})
|
|
1064
|
+
.s("CryoBackupSearchService", "GetSearchJob", {})
|
|
1065
|
+
.n("BackupSearchClient", "GetSearchJobCommand")
|
|
1066
|
+
.f(void 0, void 0)
|
|
1067
|
+
.ser(se_GetSearchJobCommand)
|
|
1068
|
+
.de(de_GetSearchJobCommand)
|
|
1069
|
+
.build() {
|
|
1070
|
+
}
|
|
1071
|
+
|
|
1072
|
+
class GetSearchResultExportJobCommand extends smithyClient.Command
|
|
1073
|
+
.classBuilder()
|
|
1074
|
+
.ep(commonParams)
|
|
1075
|
+
.m(function (Command, cs, config, o) {
|
|
1076
|
+
return [
|
|
1077
|
+
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
1078
|
+
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
1079
|
+
];
|
|
1080
|
+
})
|
|
1081
|
+
.s("CryoBackupSearchService", "GetSearchResultExportJob", {})
|
|
1082
|
+
.n("BackupSearchClient", "GetSearchResultExportJobCommand")
|
|
1083
|
+
.f(void 0, void 0)
|
|
1084
|
+
.ser(se_GetSearchResultExportJobCommand)
|
|
1085
|
+
.de(de_GetSearchResultExportJobCommand)
|
|
1086
|
+
.build() {
|
|
1087
|
+
}
|
|
1088
|
+
|
|
1089
|
+
class ListSearchJobBackupsCommand extends smithyClient.Command
|
|
1090
|
+
.classBuilder()
|
|
1091
|
+
.ep(commonParams)
|
|
1092
|
+
.m(function (Command, cs, config, o) {
|
|
1093
|
+
return [
|
|
1094
|
+
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
1095
|
+
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
1096
|
+
];
|
|
1097
|
+
})
|
|
1098
|
+
.s("CryoBackupSearchService", "ListSearchJobBackups", {})
|
|
1099
|
+
.n("BackupSearchClient", "ListSearchJobBackupsCommand")
|
|
1100
|
+
.f(void 0, void 0)
|
|
1101
|
+
.ser(se_ListSearchJobBackupsCommand)
|
|
1102
|
+
.de(de_ListSearchJobBackupsCommand)
|
|
1103
|
+
.build() {
|
|
1104
|
+
}
|
|
1105
|
+
|
|
1106
|
+
class ListSearchJobResultsCommand extends smithyClient.Command
|
|
1107
|
+
.classBuilder()
|
|
1108
|
+
.ep(commonParams)
|
|
1109
|
+
.m(function (Command, cs, config, o) {
|
|
1110
|
+
return [
|
|
1111
|
+
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
1112
|
+
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
1113
|
+
];
|
|
1114
|
+
})
|
|
1115
|
+
.s("CryoBackupSearchService", "ListSearchJobResults", {})
|
|
1116
|
+
.n("BackupSearchClient", "ListSearchJobResultsCommand")
|
|
1117
|
+
.f(void 0, ListSearchJobResultsOutputFilterSensitiveLog)
|
|
1118
|
+
.ser(se_ListSearchJobResultsCommand)
|
|
1119
|
+
.de(de_ListSearchJobResultsCommand)
|
|
1120
|
+
.build() {
|
|
1121
|
+
}
|
|
1122
|
+
|
|
1123
|
+
class ListSearchJobsCommand extends smithyClient.Command
|
|
1124
|
+
.classBuilder()
|
|
1125
|
+
.ep(commonParams)
|
|
1126
|
+
.m(function (Command, cs, config, o) {
|
|
1127
|
+
return [
|
|
1128
|
+
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
1129
|
+
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
1130
|
+
];
|
|
1131
|
+
})
|
|
1132
|
+
.s("CryoBackupSearchService", "ListSearchJobs", {})
|
|
1133
|
+
.n("BackupSearchClient", "ListSearchJobsCommand")
|
|
1134
|
+
.f(void 0, void 0)
|
|
1135
|
+
.ser(se_ListSearchJobsCommand)
|
|
1136
|
+
.de(de_ListSearchJobsCommand)
|
|
1137
|
+
.build() {
|
|
1138
|
+
}
|
|
1139
|
+
|
|
1140
|
+
class ListSearchResultExportJobsCommand extends smithyClient.Command
|
|
1141
|
+
.classBuilder()
|
|
1142
|
+
.ep(commonParams)
|
|
1143
|
+
.m(function (Command, cs, config, o) {
|
|
1144
|
+
return [
|
|
1145
|
+
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
1146
|
+
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
1147
|
+
];
|
|
1148
|
+
})
|
|
1149
|
+
.s("CryoBackupSearchService", "ListSearchResultExportJobs", {})
|
|
1150
|
+
.n("BackupSearchClient", "ListSearchResultExportJobsCommand")
|
|
1151
|
+
.f(void 0, void 0)
|
|
1152
|
+
.ser(se_ListSearchResultExportJobsCommand)
|
|
1153
|
+
.de(de_ListSearchResultExportJobsCommand)
|
|
1154
|
+
.build() {
|
|
1155
|
+
}
|
|
1156
|
+
|
|
1157
|
+
class ListTagsForResourceCommand extends smithyClient.Command
|
|
1158
|
+
.classBuilder()
|
|
1159
|
+
.ep(commonParams)
|
|
1160
|
+
.m(function (Command, cs, config, o) {
|
|
1161
|
+
return [
|
|
1162
|
+
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
1163
|
+
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
1164
|
+
];
|
|
1165
|
+
})
|
|
1166
|
+
.s("CryoBackupSearchService", "ListTagsForResource", {})
|
|
1167
|
+
.n("BackupSearchClient", "ListTagsForResourceCommand")
|
|
1168
|
+
.f(void 0, void 0)
|
|
1169
|
+
.ser(se_ListTagsForResourceCommand)
|
|
1170
|
+
.de(de_ListTagsForResourceCommand)
|
|
1171
|
+
.build() {
|
|
1172
|
+
}
|
|
1173
|
+
|
|
1174
|
+
class StartSearchJobCommand extends smithyClient.Command
|
|
1175
|
+
.classBuilder()
|
|
1176
|
+
.ep(commonParams)
|
|
1177
|
+
.m(function (Command, cs, config, o) {
|
|
1178
|
+
return [
|
|
1179
|
+
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
1180
|
+
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
1181
|
+
];
|
|
1182
|
+
})
|
|
1183
|
+
.s("CryoBackupSearchService", "StartSearchJob", {})
|
|
1184
|
+
.n("BackupSearchClient", "StartSearchJobCommand")
|
|
1185
|
+
.f(void 0, void 0)
|
|
1186
|
+
.ser(se_StartSearchJobCommand)
|
|
1187
|
+
.de(de_StartSearchJobCommand)
|
|
1188
|
+
.build() {
|
|
1189
|
+
}
|
|
1190
|
+
|
|
1191
|
+
class StartSearchResultExportJobCommand extends smithyClient.Command
|
|
1192
|
+
.classBuilder()
|
|
1193
|
+
.ep(commonParams)
|
|
1194
|
+
.m(function (Command, cs, config, o) {
|
|
1195
|
+
return [
|
|
1196
|
+
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
1197
|
+
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
1198
|
+
];
|
|
1199
|
+
})
|
|
1200
|
+
.s("CryoBackupSearchService", "StartSearchResultExportJob", {})
|
|
1201
|
+
.n("BackupSearchClient", "StartSearchResultExportJobCommand")
|
|
1202
|
+
.f(void 0, void 0)
|
|
1203
|
+
.ser(se_StartSearchResultExportJobCommand)
|
|
1204
|
+
.de(de_StartSearchResultExportJobCommand)
|
|
1205
|
+
.build() {
|
|
1206
|
+
}
|
|
1207
|
+
|
|
1208
|
+
class StopSearchJobCommand extends smithyClient.Command
|
|
1209
|
+
.classBuilder()
|
|
1210
|
+
.ep(commonParams)
|
|
1211
|
+
.m(function (Command, cs, config, o) {
|
|
1212
|
+
return [
|
|
1213
|
+
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
1214
|
+
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
1215
|
+
];
|
|
1216
|
+
})
|
|
1217
|
+
.s("CryoBackupSearchService", "StopSearchJob", {})
|
|
1218
|
+
.n("BackupSearchClient", "StopSearchJobCommand")
|
|
1219
|
+
.f(void 0, void 0)
|
|
1220
|
+
.ser(se_StopSearchJobCommand)
|
|
1221
|
+
.de(de_StopSearchJobCommand)
|
|
1222
|
+
.build() {
|
|
1223
|
+
}
|
|
1224
|
+
|
|
1225
|
+
class TagResourceCommand extends smithyClient.Command
|
|
1226
|
+
.classBuilder()
|
|
1227
|
+
.ep(commonParams)
|
|
1228
|
+
.m(function (Command, cs, config, o) {
|
|
1229
|
+
return [
|
|
1230
|
+
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
1231
|
+
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
1232
|
+
];
|
|
1233
|
+
})
|
|
1234
|
+
.s("CryoBackupSearchService", "TagResource", {})
|
|
1235
|
+
.n("BackupSearchClient", "TagResourceCommand")
|
|
1236
|
+
.f(void 0, void 0)
|
|
1237
|
+
.ser(se_TagResourceCommand)
|
|
1238
|
+
.de(de_TagResourceCommand)
|
|
1239
|
+
.build() {
|
|
1240
|
+
}
|
|
1241
|
+
|
|
1242
|
+
class UntagResourceCommand extends smithyClient.Command
|
|
1243
|
+
.classBuilder()
|
|
1244
|
+
.ep(commonParams)
|
|
1245
|
+
.m(function (Command, cs, config, o) {
|
|
1246
|
+
return [
|
|
1247
|
+
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
1248
|
+
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
1249
|
+
];
|
|
1250
|
+
})
|
|
1251
|
+
.s("CryoBackupSearchService", "UntagResource", {})
|
|
1252
|
+
.n("BackupSearchClient", "UntagResourceCommand")
|
|
1253
|
+
.f(void 0, void 0)
|
|
1254
|
+
.ser(se_UntagResourceCommand)
|
|
1255
|
+
.de(de_UntagResourceCommand)
|
|
1256
|
+
.build() {
|
|
1257
|
+
}
|
|
1258
|
+
|
|
1259
|
+
const commands = {
|
|
1260
|
+
GetSearchJobCommand,
|
|
1261
|
+
GetSearchResultExportJobCommand,
|
|
1262
|
+
ListSearchJobBackupsCommand,
|
|
1263
|
+
ListSearchJobResultsCommand,
|
|
1264
|
+
ListSearchJobsCommand,
|
|
1265
|
+
ListSearchResultExportJobsCommand,
|
|
1266
|
+
ListTagsForResourceCommand,
|
|
1267
|
+
StartSearchJobCommand,
|
|
1268
|
+
StartSearchResultExportJobCommand,
|
|
1269
|
+
StopSearchJobCommand,
|
|
1270
|
+
TagResourceCommand,
|
|
1271
|
+
UntagResourceCommand,
|
|
1272
|
+
};
|
|
1273
|
+
class BackupSearch extends BackupSearchClient {
|
|
1274
|
+
}
|
|
1275
|
+
smithyClient.createAggregatedClient(commands, BackupSearch);
|
|
1419
1276
|
|
|
1420
|
-
|
|
1421
|
-
var commands = {
|
|
1422
|
-
GetSearchJobCommand,
|
|
1423
|
-
GetSearchResultExportJobCommand,
|
|
1424
|
-
ListSearchJobBackupsCommand,
|
|
1425
|
-
ListSearchJobResultsCommand,
|
|
1426
|
-
ListSearchJobsCommand,
|
|
1427
|
-
ListSearchResultExportJobsCommand,
|
|
1428
|
-
ListTagsForResourceCommand,
|
|
1429
|
-
StartSearchJobCommand,
|
|
1430
|
-
StartSearchResultExportJobCommand,
|
|
1431
|
-
StopSearchJobCommand,
|
|
1432
|
-
TagResourceCommand,
|
|
1433
|
-
UntagResourceCommand
|
|
1434
|
-
};
|
|
1435
|
-
var BackupSearch = class extends BackupSearchClient {
|
|
1436
|
-
static {
|
|
1437
|
-
__name(this, "BackupSearch");
|
|
1438
|
-
}
|
|
1439
|
-
};
|
|
1440
|
-
(0, import_smithy_client.createAggregatedClient)(commands, BackupSearch);
|
|
1441
|
-
|
|
1442
|
-
// src/pagination/ListSearchJobBackupsPaginator.ts
|
|
1443
|
-
|
|
1444
|
-
var paginateListSearchJobBackups = (0, import_core.createPaginator)(BackupSearchClient, ListSearchJobBackupsCommand, "NextToken", "NextToken", "MaxResults");
|
|
1445
|
-
|
|
1446
|
-
// src/pagination/ListSearchJobResultsPaginator.ts
|
|
1447
|
-
|
|
1448
|
-
var paginateListSearchJobResults = (0, import_core.createPaginator)(BackupSearchClient, ListSearchJobResultsCommand, "NextToken", "NextToken", "MaxResults");
|
|
1449
|
-
|
|
1450
|
-
// src/pagination/ListSearchJobsPaginator.ts
|
|
1277
|
+
const paginateListSearchJobBackups = core.createPaginator(BackupSearchClient, ListSearchJobBackupsCommand, "NextToken", "NextToken", "MaxResults");
|
|
1451
1278
|
|
|
1452
|
-
|
|
1279
|
+
const paginateListSearchJobResults = core.createPaginator(BackupSearchClient, ListSearchJobResultsCommand, "NextToken", "NextToken", "MaxResults");
|
|
1453
1280
|
|
|
1454
|
-
|
|
1281
|
+
const paginateListSearchJobs = core.createPaginator(BackupSearchClient, ListSearchJobsCommand, "NextToken", "NextToken", "MaxResults");
|
|
1455
1282
|
|
|
1456
|
-
|
|
1457
|
-
// Annotate the CommonJS export names for ESM import in node:
|
|
1283
|
+
const paginateListSearchResultExportJobs = core.createPaginator(BackupSearchClient, ListSearchResultExportJobsCommand, "NextToken", "NextToken", "MaxResults");
|
|
1458
1284
|
|
|
1459
|
-
|
|
1460
|
-
|
|
1461
|
-
|
|
1462
|
-
BackupSearchClient,
|
|
1463
|
-
BackupSearch,
|
|
1464
|
-
$Command,
|
|
1465
|
-
GetSearchJobCommand,
|
|
1466
|
-
GetSearchResultExportJobCommand,
|
|
1467
|
-
ListSearchJobBackupsCommand,
|
|
1468
|
-
ListSearchJobResultsCommand,
|
|
1469
|
-
ListSearchJobsCommand,
|
|
1470
|
-
ListSearchResultExportJobsCommand,
|
|
1471
|
-
ListTagsForResourceCommand,
|
|
1472
|
-
StartSearchJobCommand,
|
|
1473
|
-
StartSearchResultExportJobCommand,
|
|
1474
|
-
StopSearchJobCommand,
|
|
1475
|
-
TagResourceCommand,
|
|
1476
|
-
UntagResourceCommand,
|
|
1477
|
-
paginateListSearchJobBackups,
|
|
1478
|
-
paginateListSearchJobResults,
|
|
1479
|
-
paginateListSearchJobs,
|
|
1480
|
-
paginateListSearchResultExportJobs,
|
|
1481
|
-
AccessDeniedException,
|
|
1482
|
-
ConflictException,
|
|
1483
|
-
InternalServerException,
|
|
1484
|
-
ResourceType,
|
|
1485
|
-
SearchJobState,
|
|
1486
|
-
ResourceNotFoundException,
|
|
1487
|
-
ThrottlingException,
|
|
1488
|
-
ValidationException,
|
|
1489
|
-
ResultItem,
|
|
1490
|
-
TimeConditionOperator,
|
|
1491
|
-
StringConditionOperator,
|
|
1492
|
-
LongConditionOperator,
|
|
1493
|
-
ServiceQuotaExceededException,
|
|
1494
|
-
ExportJobStatus,
|
|
1495
|
-
ExportSpecification,
|
|
1496
|
-
EBSResultItemFilterSensitiveLog,
|
|
1497
|
-
S3ResultItemFilterSensitiveLog,
|
|
1498
|
-
ResultItemFilterSensitiveLog,
|
|
1499
|
-
ListSearchJobResultsOutputFilterSensitiveLog
|
|
1285
|
+
Object.defineProperty(exports, "$Command", {
|
|
1286
|
+
enumerable: true,
|
|
1287
|
+
get: function () { return smithyClient.Command; }
|
|
1500
1288
|
});
|
|
1501
|
-
|
|
1289
|
+
Object.defineProperty(exports, "__Client", {
|
|
1290
|
+
enumerable: true,
|
|
1291
|
+
get: function () { return smithyClient.Client; }
|
|
1292
|
+
});
|
|
1293
|
+
exports.AccessDeniedException = AccessDeniedException;
|
|
1294
|
+
exports.BackupSearch = BackupSearch;
|
|
1295
|
+
exports.BackupSearchClient = BackupSearchClient;
|
|
1296
|
+
exports.BackupSearchServiceException = BackupSearchServiceException;
|
|
1297
|
+
exports.ConflictException = ConflictException;
|
|
1298
|
+
exports.EBSResultItemFilterSensitiveLog = EBSResultItemFilterSensitiveLog;
|
|
1299
|
+
exports.ExportJobStatus = ExportJobStatus;
|
|
1300
|
+
exports.GetSearchJobCommand = GetSearchJobCommand;
|
|
1301
|
+
exports.GetSearchResultExportJobCommand = GetSearchResultExportJobCommand;
|
|
1302
|
+
exports.InternalServerException = InternalServerException;
|
|
1303
|
+
exports.ListSearchJobBackupsCommand = ListSearchJobBackupsCommand;
|
|
1304
|
+
exports.ListSearchJobResultsCommand = ListSearchJobResultsCommand;
|
|
1305
|
+
exports.ListSearchJobResultsOutputFilterSensitiveLog = ListSearchJobResultsOutputFilterSensitiveLog;
|
|
1306
|
+
exports.ListSearchJobsCommand = ListSearchJobsCommand;
|
|
1307
|
+
exports.ListSearchResultExportJobsCommand = ListSearchResultExportJobsCommand;
|
|
1308
|
+
exports.ListTagsForResourceCommand = ListTagsForResourceCommand;
|
|
1309
|
+
exports.LongConditionOperator = LongConditionOperator;
|
|
1310
|
+
exports.ResourceNotFoundException = ResourceNotFoundException;
|
|
1311
|
+
exports.ResourceType = ResourceType;
|
|
1312
|
+
exports.ResultItemFilterSensitiveLog = ResultItemFilterSensitiveLog;
|
|
1313
|
+
exports.S3ResultItemFilterSensitiveLog = S3ResultItemFilterSensitiveLog;
|
|
1314
|
+
exports.SearchJobState = SearchJobState;
|
|
1315
|
+
exports.ServiceQuotaExceededException = ServiceQuotaExceededException;
|
|
1316
|
+
exports.StartSearchJobCommand = StartSearchJobCommand;
|
|
1317
|
+
exports.StartSearchResultExportJobCommand = StartSearchResultExportJobCommand;
|
|
1318
|
+
exports.StopSearchJobCommand = StopSearchJobCommand;
|
|
1319
|
+
exports.StringConditionOperator = StringConditionOperator;
|
|
1320
|
+
exports.TagResourceCommand = TagResourceCommand;
|
|
1321
|
+
exports.ThrottlingException = ThrottlingException;
|
|
1322
|
+
exports.TimeConditionOperator = TimeConditionOperator;
|
|
1323
|
+
exports.UntagResourceCommand = UntagResourceCommand;
|
|
1324
|
+
exports.ValidationException = ValidationException;
|
|
1325
|
+
exports.paginateListSearchJobBackups = paginateListSearchJobBackups;
|
|
1326
|
+
exports.paginateListSearchJobResults = paginateListSearchJobResults;
|
|
1327
|
+
exports.paginateListSearchJobs = paginateListSearchJobs;
|
|
1328
|
+
exports.paginateListSearchResultExportJobs = paginateListSearchResultExportJobs;
|