/var/runtime/node_modules/@aws-sdk/client-backupsearch/dist-cjs
This explorer reads the filesystem of the server it runs on, so /workspace/user isn't present here. Browsing and the terminal still work against this server's own disk from /.
"use strict";var __defProp = Object.defineProperty;var __getOwnPropDesc = Object.getOwnPropertyDescriptor;var __getOwnPropNames = Object.getOwnPropertyNames;var __hasOwnProp = Object.prototype.hasOwnProperty;var __name = (target, value) => __defProp(target, "name", { value, configurable: true });var __export = (target, all) => { for (var name in all) __defProp(target, name, { get: all[name], enumerable: true });};var __copyProps = (to, from, except, desc) => { if (from && typeof from === "object" || typeof from === "function") { for (let key of __getOwnPropNames(from)) if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable }); } return to;};var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod); // src/index.tsvar index_exports = {};__export(index_exports, { AccessDeniedException: () => AccessDeniedException, BackupSearch: () => BackupSearch, BackupSearchClient: () => BackupSearchClient, BackupSearchServiceException: () => BackupSearchServiceException, ConflictException: () => ConflictException, EBSResultItemFilterSensitiveLog: () => EBSResultItemFilterSensitiveLog, ExportJobStatus: () => ExportJobStatus, ExportSpecification: () => ExportSpecification, GetSearchJobCommand: () => GetSearchJobCommand, GetSearchResultExportJobCommand: () => GetSearchResultExportJobCommand, InternalServerException: () => InternalServerException, ListSearchJobBackupsCommand: () => ListSearchJobBackupsCommand, ListSearchJobResultsCommand: () => ListSearchJobResultsCommand, ListSearchJobResultsOutputFilterSensitiveLog: () => ListSearchJobResultsOutputFilterSensitiveLog, ListSearchJobsCommand: () => ListSearchJobsCommand, ListSearchResultExportJobsCommand: () => ListSearchResultExportJobsCommand, ListTagsForResourceCommand: () => ListTagsForResourceCommand, LongConditionOperator: () => LongConditionOperator, ResourceNotFoundException: () => ResourceNotFoundException, ResourceType: () => ResourceType, ResultItem: () => ResultItem, ResultItemFilterSensitiveLog: () => ResultItemFilterSensitiveLog, S3ResultItemFilterSensitiveLog: () => S3ResultItemFilterSensitiveLog, SearchJobState: () => SearchJobState, ServiceQuotaExceededException: () => ServiceQuotaExceededException, StartSearchJobCommand: () => StartSearchJobCommand, StartSearchResultExportJobCommand: () => StartSearchResultExportJobCommand, StopSearchJobCommand: () => StopSearchJobCommand, StringConditionOperator: () => StringConditionOperator, TagResourceCommand: () => TagResourceCommand, ThrottlingException: () => ThrottlingException, TimeConditionOperator: () => TimeConditionOperator, UntagResourceCommand: () => UntagResourceCommand, ValidationException: () => ValidationException, __Client: () => import_smithy_client.Client, paginateListSearchJobBackups: () => paginateListSearchJobBackups, paginateListSearchJobResults: () => paginateListSearchJobResults, paginateListSearchJobs: () => paginateListSearchJobs, paginateListSearchResultExportJobs: () => paginateListSearchResultExportJobs});module.exports = __toCommonJS(index_exports); // src/BackupSearchClient.tsvar import_middleware_host_header = require("@aws-sdk/middleware-host-header");var import_middleware_logger = require("@aws-sdk/middleware-logger");var import_middleware_recursion_detection = require("@aws-sdk/middleware-recursion-detection");var import_middleware_user_agent = require("@aws-sdk/middleware-user-agent");var import_config_resolver = require("@smithy/config-resolver");var import_core = require("@smithy/core");var import_middleware_content_length = require("@smithy/middleware-content-length");var import_middleware_endpoint = require("@smithy/middleware-endpoint");var import_middleware_retry = require("@smithy/middleware-retry"); var import_httpAuthSchemeProvider = require("./auth/httpAuthSchemeProvider"); // src/endpoint/EndpointParameters.tsvar resolveClientEndpointParameters = /* @__PURE__ */ __name((options) => { return Object.assign(options, { useFipsEndpoint: options.useFipsEndpoint ?? false, defaultSigningName: "backup-search" });}, "resolveClientEndpointParameters");var commonParams = { UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" }, Endpoint: { type: "builtInParams", name: "endpoint" }, Region: { type: "builtInParams", name: "region" }}; // src/BackupSearchClient.tsvar import_runtimeConfig = require("././runtimeConfig"); // src/runtimeExtensions.tsvar import_region_config_resolver = require("@aws-sdk/region-config-resolver");var import_protocol_http = require("@smithy/protocol-http");var import_smithy_client = require("@smithy/smithy-client"); // src/auth/httpAuthExtensionConfiguration.tsvar getHttpAuthExtensionConfiguration = /* @__PURE__ */ __name((runtimeConfig) => { const _httpAuthSchemes = runtimeConfig.httpAuthSchemes; let _httpAuthSchemeProvider = runtimeConfig.httpAuthSchemeProvider; let _credentials = runtimeConfig.credentials; return { setHttpAuthScheme(httpAuthScheme) { const index = _httpAuthSchemes.findIndex((scheme) => scheme.schemeId === httpAuthScheme.schemeId); if (index === -1) { _httpAuthSchemes.push(httpAuthScheme); } else { _httpAuthSchemes.splice(index, 1, httpAuthScheme); } }, httpAuthSchemes() { return _httpAuthSchemes; }, setHttpAuthSchemeProvider(httpAuthSchemeProvider) { _httpAuthSchemeProvider = httpAuthSchemeProvider; }, httpAuthSchemeProvider() { return _httpAuthSchemeProvider; }, setCredentials(credentials) { _credentials = credentials; }, credentials() { return _credentials; } };}, "getHttpAuthExtensionConfiguration");var resolveHttpAuthRuntimeConfig = /* @__PURE__ */ __name((config) => { return { httpAuthSchemes: config.httpAuthSchemes(), httpAuthSchemeProvider: config.httpAuthSchemeProvider(), credentials: config.credentials() };}, "resolveHttpAuthRuntimeConfig"); // src/runtimeExtensions.tsvar resolveRuntimeExtensions = /* @__PURE__ */ __name((runtimeConfig, extensions) => { const extensionConfiguration = Object.assign( (0, import_region_config_resolver.getAwsRegionExtensionConfiguration)(runtimeConfig), (0, import_smithy_client.getDefaultExtensionConfiguration)(runtimeConfig), (0, import_protocol_http.getHttpHandlerExtensionConfiguration)(runtimeConfig), getHttpAuthExtensionConfiguration(runtimeConfig) ); extensions.forEach((extension) => extension.configure(extensionConfiguration)); return Object.assign( runtimeConfig, (0, import_region_config_resolver.resolveAwsRegionExtensionConfiguration)(extensionConfiguration), (0, import_smithy_client.resolveDefaultRuntimeConfig)(extensionConfiguration), (0, import_protocol_http.resolveHttpHandlerRuntimeConfig)(extensionConfiguration), resolveHttpAuthRuntimeConfig(extensionConfiguration) );}, "resolveRuntimeExtensions"); // src/BackupSearchClient.tsvar BackupSearchClient = class extends import_smithy_client.Client { static { __name(this, "BackupSearchClient"); } /** * The resolved configuration of BackupSearchClient class. This is resolved and normalized from the {@link BackupSearchClientConfig | constructor configuration interface}. */ config; constructor(...[configuration]) { const _config_0 = (0, import_runtimeConfig.getRuntimeConfig)(configuration || {}); super(_config_0); this.initConfig = _config_0; const _config_1 = resolveClientEndpointParameters(_config_0); const _config_2 = (0, import_middleware_user_agent.resolveUserAgentConfig)(_config_1); const _config_3 = (0, import_middleware_retry.resolveRetryConfig)(_config_2); const _config_4 = (0, import_config_resolver.resolveRegionConfig)(_config_3); const _config_5 = (0, import_middleware_host_header.resolveHostHeaderConfig)(_config_4); const _config_6 = (0, import_middleware_endpoint.resolveEndpointConfig)(_config_5); const _config_7 = (0, import_httpAuthSchemeProvider.resolveHttpAuthSchemeConfig)(_config_6); const _config_8 = resolveRuntimeExtensions(_config_7, configuration?.extensions || []); this.config = _config_8; this.middlewareStack.use((0, import_middleware_user_agent.getUserAgentPlugin)(this.config)); this.middlewareStack.use((0, import_middleware_retry.getRetryPlugin)(this.config)); this.middlewareStack.use((0, import_middleware_content_length.getContentLengthPlugin)(this.config)); this.middlewareStack.use((0, import_middleware_host_header.getHostHeaderPlugin)(this.config)); this.middlewareStack.use((0, import_middleware_logger.getLoggerPlugin)(this.config)); this.middlewareStack.use((0, import_middleware_recursion_detection.getRecursionDetectionPlugin)(this.config)); this.middlewareStack.use( (0, import_core.getHttpAuthSchemeEndpointRuleSetPlugin)(this.config, { httpAuthSchemeParametersProvider: import_httpAuthSchemeProvider.defaultBackupSearchHttpAuthSchemeParametersProvider, identityProviderConfigProvider: /* @__PURE__ */ __name(async (config) => new import_core.DefaultIdentityProviderConfig({ "aws.auth#sigv4": config.credentials }), "identityProviderConfigProvider") }) ); this.middlewareStack.use((0, import_core.getHttpSigningPlugin)(this.config)); } /** * Destroy underlying resources, like sockets. It's usually not necessary to do this. * However in Node.js, it's best to explicitly shut down the client's agent when it is no longer needed. * Otherwise, sockets might stay open for quite a long time before the server terminates them. */ destroy() { super.destroy(); }}; // src/BackupSearch.ts // src/commands/GetSearchJobCommand.ts var import_middleware_serde = require("@smithy/middleware-serde"); // src/protocols/Aws_restJson1.tsvar import_core2 = require("@aws-sdk/core"); // src/models/BackupSearchServiceException.ts var BackupSearchServiceException = class _BackupSearchServiceException extends import_smithy_client.ServiceException { static { __name(this, "BackupSearchServiceException"); } /** * @internal */ constructor(options) { super(options); Object.setPrototypeOf(this, _BackupSearchServiceException.prototype); }}; // src/models/models_0.ts var AccessDeniedException = class _AccessDeniedException extends BackupSearchServiceException { static { __name(this, "AccessDeniedException"); } name = "AccessDeniedException"; $fault = "client"; /** * @internal */ constructor(opts) { super({ name: "AccessDeniedException", $fault: "client", ...opts }); Object.setPrototypeOf(this, _AccessDeniedException.prototype); }};var ConflictException = class _ConflictException extends BackupSearchServiceException { static { __name(this, "ConflictException"); } name = "ConflictException"; $fault = "client"; /** * <p>Identifier of the resource affected.</p> * @public */ resourceId; /** * <p>Type of the resource affected.</p> * @public */ resourceType; /** * @internal */ constructor(opts) { super({ name: "ConflictException", $fault: "client", ...opts }); Object.setPrototypeOf(this, _ConflictException.prototype); this.resourceId = opts.resourceId; this.resourceType = opts.resourceType; }};var InternalServerException = class _InternalServerException extends BackupSearchServiceException { static { __name(this, "InternalServerException"); } name = "InternalServerException"; $fault = "server"; $retryable = {}; /** * <p>Retry the call after number of seconds.</p> * @public */ retryAfterSeconds; /** * @internal */ constructor(opts) { super({ name: "InternalServerException", $fault: "server", ...opts }); Object.setPrototypeOf(this, _InternalServerException.prototype); this.retryAfterSeconds = opts.retryAfterSeconds; }};var ResourceType = { EBS: "EBS", S3: "S3"};var SearchJobState = { COMPLETED: "COMPLETED", FAILED: "FAILED", RUNNING: "RUNNING", STOPPED: "STOPPED", STOPPING: "STOPPING"};var ResourceNotFoundException = class _ResourceNotFoundException extends BackupSearchServiceException { static { __name(this, "ResourceNotFoundException"); } name = "ResourceNotFoundException"; $fault = "client"; /** * <p>Hypothetical identifier of the resource affected.</p> * @public */ resourceId; /** * <p>Hypothetical type of the resource affected.</p> * @public */ resourceType; /** * @internal */ constructor(opts) { super({ name: "ResourceNotFoundException", $fault: "client", ...opts }); Object.setPrototypeOf(this, _ResourceNotFoundException.prototype); this.resourceId = opts.resourceId; this.resourceType = opts.resourceType; }};var ThrottlingException = class _ThrottlingException extends BackupSearchServiceException { static { __name(this, "ThrottlingException"); } name = "ThrottlingException"; $fault = "client"; $retryable = { throttling: true }; /** * <p>This is the code unique to the originating service.</p> * @public */ serviceCode; /** * <p>This is the code unique to the originating service with the quota.</p> * @public */ quotaCode; /** * <p>Retry the call after number of seconds.</p> * @public */ retryAfterSeconds; /** * @internal */ constructor(opts) { super({ name: "ThrottlingException", $fault: "client", ...opts }); Object.setPrototypeOf(this, _ThrottlingException.prototype); this.serviceCode = opts.serviceCode; this.quotaCode = opts.quotaCode; this.retryAfterSeconds = opts.retryAfterSeconds; }};var ValidationException = class _ValidationException extends BackupSearchServiceException { static { __name(this, "ValidationException"); } name = "ValidationException"; $fault = "client"; /** * @internal */ constructor(opts) { super({ name: "ValidationException", $fault: "client", ...opts }); Object.setPrototypeOf(this, _ValidationException.prototype); }};var ResultItem;((ResultItem3) => { ResultItem3.visit = /* @__PURE__ */ __name((value, visitor) => { if (value.S3ResultItem !== void 0) return visitor.S3ResultItem(value.S3ResultItem); if (value.EBSResultItem !== void 0) return visitor.EBSResultItem(value.EBSResultItem); return visitor._(value.$unknown[0], value.$unknown[1]); }, "visit");})(ResultItem || (ResultItem = {}));var TimeConditionOperator = { EQUALS_TO: "EQUALS_TO", GREATER_THAN_EQUAL_TO: "GREATER_THAN_EQUAL_TO", LESS_THAN_EQUAL_TO: "LESS_THAN_EQUAL_TO", NOT_EQUALS_TO: "NOT_EQUALS_TO"};var StringConditionOperator = { BEGINS_WITH: "BEGINS_WITH", CONTAINS: "CONTAINS", DOES_NOT_BEGIN_WITH: "DOES_NOT_BEGIN_WITH", DOES_NOT_CONTAIN: "DOES_NOT_CONTAIN", DOES_NOT_END_WITH: "DOES_NOT_END_WITH", ENDS_WITH: "ENDS_WITH", EQUALS_TO: "EQUALS_TO", NOT_EQUALS_TO: "NOT_EQUALS_TO"};var LongConditionOperator = { EQUALS_TO: "EQUALS_TO", GREATER_THAN_EQUAL_TO: "GREATER_THAN_EQUAL_TO", LESS_THAN_EQUAL_TO: "LESS_THAN_EQUAL_TO", NOT_EQUALS_TO: "NOT_EQUALS_TO"};var ServiceQuotaExceededException = class _ServiceQuotaExceededException extends BackupSearchServiceException { static { __name(this, "ServiceQuotaExceededException"); } name = "ServiceQuotaExceededException"; $fault = "client"; /** * <p>Identifier of the resource.</p> * @public */ resourceId; /** * <p>Type of resource.</p> * @public */ resourceType; /** * <p>This is the code unique to the originating service with the quota.</p> * @public */ serviceCode; /** * <p>This is the code specific to the quota type.</p> * @public */ quotaCode; /** * @internal */ constructor(opts) { super({ name: "ServiceQuotaExceededException", $fault: "client", ...opts }); Object.setPrototypeOf(this, _ServiceQuotaExceededException.prototype); this.resourceId = opts.resourceId; this.resourceType = opts.resourceType; this.serviceCode = opts.serviceCode; this.quotaCode = opts.quotaCode; }};var ExportJobStatus = { COMPLETED: "COMPLETED", FAILED: "FAILED", RUNNING: "RUNNING"};var ExportSpecification;((ExportSpecification3) => { ExportSpecification3.visit = /* @__PURE__ */ __name((value, visitor) => { if (value.s3ExportSpecification !== void 0) return visitor.s3ExportSpecification(value.s3ExportSpecification); return visitor._(value.$unknown[0], value.$unknown[1]); }, "visit");})(ExportSpecification || (ExportSpecification = {}));var EBSResultItemFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({ ...obj, ...obj.FilePath && { FilePath: import_smithy_client.SENSITIVE_STRING }}), "EBSResultItemFilterSensitiveLog");var S3ResultItemFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({ ...obj, ...obj.ObjectKey && { ObjectKey: import_smithy_client.SENSITIVE_STRING }}), "S3ResultItemFilterSensitiveLog");var ResultItemFilterSensitiveLog = /* @__PURE__ */ __name((obj) => { if (obj.S3ResultItem !== void 0) return { S3ResultItem: S3ResultItemFilterSensitiveLog(obj.S3ResultItem) }; if (obj.EBSResultItem !== void 0) return { EBSResultItem: EBSResultItemFilterSensitiveLog(obj.EBSResultItem) }; if (obj.$unknown !== void 0) return { [obj.$unknown[0]]: "UNKNOWN" };}, "ResultItemFilterSensitiveLog");var ListSearchJobResultsOutputFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({ ...obj, ...obj.Results && { Results: obj.Results.map((item) => ResultItemFilterSensitiveLog(item)) }}), "ListSearchJobResultsOutputFilterSensitiveLog"); // src/protocols/Aws_restJson1.tsvar se_GetSearchJobCommand = /* @__PURE__ */ __name(async (input, context) => { const b = (0, import_core.requestBuilder)(input, context); const headers = {}; b.bp("/search-jobs/{SearchJobIdentifier}"); b.p("SearchJobIdentifier", () => input.SearchJobIdentifier, "{SearchJobIdentifier}", false); let body; b.m("GET").h(headers).b(body); return b.build();}, "se_GetSearchJobCommand");var se_GetSearchResultExportJobCommand = /* @__PURE__ */ __name(async (input, context) => { const b = (0, import_core.requestBuilder)(input, context); const headers = {}; b.bp("/export-search-jobs/{ExportJobIdentifier}"); b.p("ExportJobIdentifier", () => input.ExportJobIdentifier, "{ExportJobIdentifier}", false); let body; b.m("GET").h(headers).b(body); return b.build();}, "se_GetSearchResultExportJobCommand");var se_ListSearchJobBackupsCommand = /* @__PURE__ */ __name(async (input, context) => { const b = (0, import_core.requestBuilder)(input, context); const headers = {}; b.bp("/search-jobs/{SearchJobIdentifier}/backups"); b.p("SearchJobIdentifier", () => input.SearchJobIdentifier, "{SearchJobIdentifier}", false); const query = (0, import_smithy_client.map)({ [_nT]: [, input[_NT]], [_mR]: [() => input.MaxResults !== void 0, () => input[_MR].toString()] }); let body; b.m("GET").h(headers).q(query).b(body); return b.build();}, "se_ListSearchJobBackupsCommand");var se_ListSearchJobResultsCommand = /* @__PURE__ */ __name(async (input, context) => { const b = (0, import_core.requestBuilder)(input, context); const headers = {}; b.bp("/search-jobs/{SearchJobIdentifier}/search-results"); b.p("SearchJobIdentifier", () => input.SearchJobIdentifier, "{SearchJobIdentifier}", false); const query = (0, import_smithy_client.map)({ [_nT]: [, input[_NT]], [_mR]: [() => input.MaxResults !== void 0, () => input[_MR].toString()] }); let body; b.m("GET").h(headers).q(query).b(body); return b.build();}, "se_ListSearchJobResultsCommand");var se_ListSearchJobsCommand = /* @__PURE__ */ __name(async (input, context) => { const b = (0, import_core.requestBuilder)(input, context); const headers = {}; b.bp("/search-jobs"); const query = (0, import_smithy_client.map)({ [_S]: [, input[_BS]], [_NT]: [, input[_NT]], [_MR]: [() => input.MaxResults !== void 0, () => input[_MR].toString()] }); let body; b.m("GET").h(headers).q(query).b(body); return b.build();}, "se_ListSearchJobsCommand");var se_ListSearchResultExportJobsCommand = /* @__PURE__ */ __name(async (input, context) => { const b = (0, import_core.requestBuilder)(input, context); const headers = {}; b.bp("/export-search-jobs"); const query = (0, import_smithy_client.map)({ [_S]: [, input[_S]], [_SJI]: [, input[_SJI]], [_NT]: [, input[_NT]], [_MR]: [() => input.MaxResults !== void 0, () => input[_MR].toString()] }); let body; b.m("GET").h(headers).q(query).b(body); return b.build();}, "se_ListSearchResultExportJobsCommand");var se_ListTagsForResourceCommand = /* @__PURE__ */ __name(async (input, context) => { const b = (0, import_core.requestBuilder)(input, context); const headers = {}; b.bp("/tags/{ResourceArn}"); b.p("ResourceArn", () => input.ResourceArn, "{ResourceArn}", false); let body; b.m("GET").h(headers).b(body); return b.build();}, "se_ListTagsForResourceCommand");var se_StartSearchJobCommand = /* @__PURE__ */ __name(async (input, context) => { const b = (0, import_core.requestBuilder)(input, context); const headers = { "content-type": "application/json" }; b.bp("/search-jobs"); let body; body = JSON.stringify( (0, import_smithy_client.take)(input, { ClientToken: [], EncryptionKeyArn: [], ItemFilters: /* @__PURE__ */ __name((_) => se_ItemFilters(_, context), "ItemFilters"), Name: [], SearchScope: /* @__PURE__ */ __name((_) => se_SearchScope(_, context), "SearchScope"), Tags: /* @__PURE__ */ __name((_) => se_TagMap(_, context), "Tags") }) ); b.m("PUT").h(headers).b(body); return b.build();}, "se_StartSearchJobCommand");var se_StartSearchResultExportJobCommand = /* @__PURE__ */ __name(async (input, context) => { const b = (0, import_core.requestBuilder)(input, context); const headers = { "content-type": "application/json" }; b.bp("/export-search-jobs"); let body; body = JSON.stringify( (0, import_smithy_client.take)(input, { ClientToken: [], ExportSpecification: /* @__PURE__ */ __name((_) => (0, import_smithy_client._json)(_), "ExportSpecification"), RoleArn: [], SearchJobIdentifier: [], Tags: /* @__PURE__ */ __name((_) => se_TagMap(_, context), "Tags") }) ); b.m("PUT").h(headers).b(body); return b.build();}, "se_StartSearchResultExportJobCommand");var se_StopSearchJobCommand = /* @__PURE__ */ __name(async (input, context) => { const b = (0, import_core.requestBuilder)(input, context); const headers = {}; b.bp("/search-jobs/{SearchJobIdentifier}/actions/cancel"); b.p("SearchJobIdentifier", () => input.SearchJobIdentifier, "{SearchJobIdentifier}", false); let body; b.m("PUT").h(headers).b(body); return b.build();}, "se_StopSearchJobCommand");var se_TagResourceCommand = /* @__PURE__ */ __name(async (input, context) => { const b = (0, import_core.requestBuilder)(input, context); const headers = { "content-type": "application/json" }; b.bp("/tags/{ResourceArn}"); b.p("ResourceArn", () => input.ResourceArn, "{ResourceArn}", false); let body; body = JSON.stringify( (0, import_smithy_client.take)(input, { Tags: /* @__PURE__ */ __name((_) => se_TagMap(_, context), "Tags") }) ); b.m("POST").h(headers).b(body); return b.build();}, "se_TagResourceCommand");var se_UntagResourceCommand = /* @__PURE__ */ __name(async (input, context) => { const b = (0, import_core.requestBuilder)(input, context); const headers = {}; b.bp("/tags/{ResourceArn}"); b.p("ResourceArn", () => input.ResourceArn, "{ResourceArn}", false); const query = (0, import_smithy_client.map)({ [_tK]: [(0, import_smithy_client.expectNonNull)(input.TagKeys, `TagKeys`) != null, () => input[_TK] || []] }); let body; b.m("DELETE").h(headers).q(query).b(body); return b.build();}, "se_UntagResourceCommand");var de_GetSearchJobCommand = /* @__PURE__ */ __name(async (output, context) => { if (output.statusCode !== 200 && output.statusCode >= 300) { return de_CommandError(output, context); } const contents = (0, import_smithy_client.map)({ $metadata: deserializeMetadata(output) }); const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body"); const doc = (0, import_smithy_client.take)(data, { CompletionTime: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))), "CompletionTime"), CreationTime: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))), "CreationTime"), CurrentSearchProgress: import_smithy_client._json, EncryptionKeyArn: import_smithy_client.expectString, ItemFilters: /* @__PURE__ */ __name((_) => de_ItemFilters(_, context), "ItemFilters"), Name: import_smithy_client.expectString, SearchJobArn: import_smithy_client.expectString, SearchJobIdentifier: import_smithy_client.expectString, SearchScope: /* @__PURE__ */ __name((_) => de_SearchScope(_, context), "SearchScope"), SearchScopeSummary: import_smithy_client._json, Status: import_smithy_client.expectString, StatusMessage: import_smithy_client.expectString }); Object.assign(contents, doc); return contents;}, "de_GetSearchJobCommand");var de_GetSearchResultExportJobCommand = /* @__PURE__ */ __name(async (output, context) => { if (output.statusCode !== 200 && output.statusCode >= 300) { return de_CommandError(output, context); } const contents = (0, import_smithy_client.map)({ $metadata: deserializeMetadata(output) }); const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body"); const doc = (0, import_smithy_client.take)(data, { CompletionTime: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))), "CompletionTime"), CreationTime: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))), "CreationTime"), ExportJobArn: import_smithy_client.expectString, ExportJobIdentifier: import_smithy_client.expectString, ExportSpecification: /* @__PURE__ */ __name((_) => (0, import_smithy_client._json)((0, import_core2.awsExpectUnion)(_)), "ExportSpecification"), SearchJobArn: import_smithy_client.expectString, Status: import_smithy_client.expectString, StatusMessage: import_smithy_client.expectString }); Object.assign(contents, doc); return contents;}, "de_GetSearchResultExportJobCommand");var de_ListSearchJobBackupsCommand = /* @__PURE__ */ __name(async (output, context) => { if (output.statusCode !== 200 && output.statusCode >= 300) { return de_CommandError(output, context); } const contents = (0, import_smithy_client.map)({ $metadata: deserializeMetadata(output) }); const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body"); const doc = (0, import_smithy_client.take)(data, { NextToken: import_smithy_client.expectString, Results: /* @__PURE__ */ __name((_) => de_SearchJobBackupsResults(_, context), "Results") }); Object.assign(contents, doc); return contents;}, "de_ListSearchJobBackupsCommand");var de_ListSearchJobResultsCommand = /* @__PURE__ */ __name(async (output, context) => { if (output.statusCode !== 200 && output.statusCode >= 300) { return de_CommandError(output, context); } const contents = (0, import_smithy_client.map)({ $metadata: deserializeMetadata(output) }); const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body"); const doc = (0, import_smithy_client.take)(data, { NextToken: import_smithy_client.expectString, Results: /* @__PURE__ */ __name((_) => de_Results(_, context), "Results") }); Object.assign(contents, doc); return contents;}, "de_ListSearchJobResultsCommand");var de_ListSearchJobsCommand = /* @__PURE__ */ __name(async (output, context) => { if (output.statusCode !== 200 && output.statusCode >= 300) { return de_CommandError(output, context); } const contents = (0, import_smithy_client.map)({ $metadata: deserializeMetadata(output) }); const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body"); const doc = (0, import_smithy_client.take)(data, { NextToken: import_smithy_client.expectString, SearchJobs: /* @__PURE__ */ __name((_) => de_SearchJobs(_, context), "SearchJobs") }); Object.assign(contents, doc); return contents;}, "de_ListSearchJobsCommand");var de_ListSearchResultExportJobsCommand = /* @__PURE__ */ __name(async (output, context) => { if (output.statusCode !== 200 && output.statusCode >= 300) { return de_CommandError(output, context); } const contents = (0, import_smithy_client.map)({ $metadata: deserializeMetadata(output) }); const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body"); const doc = (0, import_smithy_client.take)(data, { ExportJobs: /* @__PURE__ */ __name((_) => de_ExportJobSummaries(_, context), "ExportJobs"), NextToken: import_smithy_client.expectString }); Object.assign(contents, doc); return contents;}, "de_ListSearchResultExportJobsCommand");var de_ListTagsForResourceCommand = /* @__PURE__ */ __name(async (output, context) => { if (output.statusCode !== 200 && output.statusCode >= 300) { return de_CommandError(output, context); } const contents = (0, import_smithy_client.map)({ $metadata: deserializeMetadata(output) }); const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body"); const doc = (0, import_smithy_client.take)(data, { Tags: /* @__PURE__ */ __name((_) => de_TagMap(_, context), "Tags") }); Object.assign(contents, doc); return contents;}, "de_ListTagsForResourceCommand");var de_StartSearchJobCommand = /* @__PURE__ */ __name(async (output, context) => { if (output.statusCode !== 200 && output.statusCode >= 300) { return de_CommandError(output, context); } const contents = (0, import_smithy_client.map)({ $metadata: deserializeMetadata(output) }); const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body"); const doc = (0, import_smithy_client.take)(data, { CreationTime: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))), "CreationTime"), SearchJobArn: import_smithy_client.expectString, SearchJobIdentifier: import_smithy_client.expectString }); Object.assign(contents, doc); return contents;}, "de_StartSearchJobCommand");var de_StartSearchResultExportJobCommand = /* @__PURE__ */ __name(async (output, context) => { if (output.statusCode !== 200 && output.statusCode >= 300) { return de_CommandError(output, context); } const contents = (0, import_smithy_client.map)({ $metadata: deserializeMetadata(output) }); const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body"); const doc = (0, import_smithy_client.take)(data, { ExportJobArn: import_smithy_client.expectString, ExportJobIdentifier: import_smithy_client.expectString }); Object.assign(contents, doc); return contents;}, "de_StartSearchResultExportJobCommand");var de_StopSearchJobCommand = /* @__PURE__ */ __name(async (output, context) => { if (output.statusCode !== 200 && output.statusCode >= 300) { return de_CommandError(output, context); } const contents = (0, import_smithy_client.map)({ $metadata: deserializeMetadata(output) }); await (0, import_smithy_client.collectBody)(output.body, context); return contents;}, "de_StopSearchJobCommand");var de_TagResourceCommand = /* @__PURE__ */ __name(async (output, context) => { if (output.statusCode !== 200 && output.statusCode >= 300) { return de_CommandError(output, context); } const contents = (0, import_smithy_client.map)({ $metadata: deserializeMetadata(output) }); await (0, import_smithy_client.collectBody)(output.body, context); return contents;}, "de_TagResourceCommand");var de_UntagResourceCommand = /* @__PURE__ */ __name(async (output, context) => { if (output.statusCode !== 200 && output.statusCode >= 300) { return de_CommandError(output, context); } const contents = (0, import_smithy_client.map)({ $metadata: deserializeMetadata(output) }); await (0, import_smithy_client.collectBody)(output.body, context); return contents;}, "de_UntagResourceCommand");var de_CommandError = /* @__PURE__ */ __name(async (output, context) => { const parsedOutput = { ...output, body: await (0, import_core2.parseJsonErrorBody)(output.body, context) }; const errorCode = (0, import_core2.loadRestJsonErrorCode)(output, parsedOutput.body); switch (errorCode) { case "AccessDeniedException": case "com.amazonaws.backupsearch#AccessDeniedException": throw await de_AccessDeniedExceptionRes(parsedOutput, context); case "InternalServerException": case "com.amazonaws.backupsearch#InternalServerException": throw await de_InternalServerExceptionRes(parsedOutput, context); case "ResourceNotFoundException": case "com.amazonaws.backupsearch#ResourceNotFoundException": throw await de_ResourceNotFoundExceptionRes(parsedOutput, context); case "ThrottlingException": case "com.amazonaws.backupsearch#ThrottlingException": throw await de_ThrottlingExceptionRes(parsedOutput, context); case "ValidationException": case "com.amazonaws.backupsearch#ValidationException": throw await de_ValidationExceptionRes(parsedOutput, context); case "ServiceQuotaExceededException": case "com.amazonaws.backupsearch#ServiceQuotaExceededException": throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context); case "ConflictException": case "com.amazonaws.backupsearch#ConflictException": throw await de_ConflictExceptionRes(parsedOutput, context); default: const parsedBody = parsedOutput.body; return throwDefaultError({ output, parsedBody, errorCode }); }}, "de_CommandError");var throwDefaultError = (0, import_smithy_client.withBaseException)(BackupSearchServiceException);var de_AccessDeniedExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => { const contents = (0, import_smithy_client.map)({}); const data = parsedOutput.body; const doc = (0, import_smithy_client.take)(data, { message: import_smithy_client.expectString }); Object.assign(contents, doc); const exception = new AccessDeniedException({ $metadata: deserializeMetadata(parsedOutput), ...contents }); return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);}, "de_AccessDeniedExceptionRes");var de_ConflictExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => { const contents = (0, import_smithy_client.map)({}); const data = parsedOutput.body; const doc = (0, import_smithy_client.take)(data, { message: import_smithy_client.expectString, resourceId: import_smithy_client.expectString, resourceType: import_smithy_client.expectString }); Object.assign(contents, doc); const exception = new ConflictException({ $metadata: deserializeMetadata(parsedOutput), ...contents }); return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);}, "de_ConflictExceptionRes");var de_InternalServerExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => { const contents = (0, import_smithy_client.map)({ [_rAS]: [() => void 0 !== parsedOutput.headers[_ra], () => (0, import_smithy_client.strictParseInt32)(parsedOutput.headers[_ra])] }); const data = parsedOutput.body; const doc = (0, import_smithy_client.take)(data, { message: import_smithy_client.expectString }); Object.assign(contents, doc); const exception = new InternalServerException({ $metadata: deserializeMetadata(parsedOutput), ...contents }); return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);}, "de_InternalServerExceptionRes");var de_ResourceNotFoundExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => { const contents = (0, import_smithy_client.map)({}); const data = parsedOutput.body; const doc = (0, import_smithy_client.take)(data, { message: import_smithy_client.expectString, resourceId: import_smithy_client.expectString, resourceType: import_smithy_client.expectString }); Object.assign(contents, doc); const exception = new ResourceNotFoundException({ $metadata: deserializeMetadata(parsedOutput), ...contents }); return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);}, "de_ResourceNotFoundExceptionRes");var de_ServiceQuotaExceededExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => { const contents = (0, import_smithy_client.map)({}); const data = parsedOutput.body; const doc = (0, import_smithy_client.take)(data, { message: import_smithy_client.expectString, quotaCode: import_smithy_client.expectString, resourceId: import_smithy_client.expectString, resourceType: import_smithy_client.expectString, serviceCode: import_smithy_client.expectString }); Object.assign(contents, doc); const exception = new ServiceQuotaExceededException({ $metadata: deserializeMetadata(parsedOutput), ...contents }); return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);}, "de_ServiceQuotaExceededExceptionRes");var de_ThrottlingExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => { const contents = (0, import_smithy_client.map)({ [_rAS]: [() => void 0 !== parsedOutput.headers[_ra], () => (0, import_smithy_client.strictParseInt32)(parsedOutput.headers[_ra])] }); const data = parsedOutput.body; const doc = (0, import_smithy_client.take)(data, { message: import_smithy_client.expectString, quotaCode: import_smithy_client.expectString, serviceCode: import_smithy_client.expectString }); Object.assign(contents, doc); const exception = new ThrottlingException({ $metadata: deserializeMetadata(parsedOutput), ...contents }); return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);}, "de_ThrottlingExceptionRes");var de_ValidationExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => { const contents = (0, import_smithy_client.map)({}); const data = parsedOutput.body; const doc = (0, import_smithy_client.take)(data, { message: import_smithy_client.expectString }); Object.assign(contents, doc); const exception = new ValidationException({ $metadata: deserializeMetadata(parsedOutput), ...contents }); return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);}, "de_ValidationExceptionRes");var se_BackupCreationTimeFilter = /* @__PURE__ */ __name((input, context) => { return (0, import_smithy_client.take)(input, { CreatedAfter: /* @__PURE__ */ __name((_) => _.getTime() / 1e3, "CreatedAfter"), CreatedBefore: /* @__PURE__ */ __name((_) => _.getTime() / 1e3, "CreatedBefore") });}, "se_BackupCreationTimeFilter");var se_EBSItemFilter = /* @__PURE__ */ __name((input, context) => { return (0, import_smithy_client.take)(input, { CreationTimes: /* @__PURE__ */ __name((_) => se_TimeConditionList(_, context), "CreationTimes"), FilePaths: import_smithy_client._json, LastModificationTimes: /* @__PURE__ */ __name((_) => se_TimeConditionList(_, context), "LastModificationTimes"), Sizes: import_smithy_client._json });}, "se_EBSItemFilter");var se_EBSItemFilters = /* @__PURE__ */ __name((input, context) => { return input.filter((e) => e != null).map((entry) => { return se_EBSItemFilter(entry, context); });}, "se_EBSItemFilters");var se_ItemFilters = /* @__PURE__ */ __name((input, context) => { return (0, import_smithy_client.take)(input, { EBSItemFilters: /* @__PURE__ */ __name((_) => se_EBSItemFilters(_, context), "EBSItemFilters"), S3ItemFilters: /* @__PURE__ */ __name((_) => se_S3ItemFilters(_, context), "S3ItemFilters") });}, "se_ItemFilters");var se_S3ItemFilter = /* @__PURE__ */ __name((input, context) => { return (0, import_smithy_client.take)(input, { CreationTimes: /* @__PURE__ */ __name((_) => se_TimeConditionList(_, context), "CreationTimes"), ETags: import_smithy_client._json, ObjectKeys: import_smithy_client._json, Sizes: import_smithy_client._json, VersionIds: import_smithy_client._json });}, "se_S3ItemFilter");var se_S3ItemFilters = /* @__PURE__ */ __name((input, context) => { return input.filter((e) => e != null).map((entry) => { return se_S3ItemFilter(entry, context); });}, "se_S3ItemFilters");var se_SearchScope = /* @__PURE__ */ __name((input, context) => { return (0, import_smithy_client.take)(input, { BackupResourceArns: import_smithy_client._json, BackupResourceCreationTime: /* @__PURE__ */ __name((_) => se_BackupCreationTimeFilter(_, context), "BackupResourceCreationTime"), BackupResourceTags: /* @__PURE__ */ __name((_) => se_TagMap(_, context), "BackupResourceTags"), BackupResourceTypes: import_smithy_client._json, SourceResourceArns: import_smithy_client._json });}, "se_SearchScope");var se_TagMap = /* @__PURE__ */ __name((input, context) => { return Object.entries(input).reduce((acc, [key, value]) => { if (value === null) { acc[key] = null; return acc; } acc[key] = value; return acc; }, {});}, "se_TagMap");var se_TimeCondition = /* @__PURE__ */ __name((input, context) => { return (0, import_smithy_client.take)(input, { Operator: [], Value: /* @__PURE__ */ __name((_) => _.getTime() / 1e3, "Value") });}, "se_TimeCondition");var se_TimeConditionList = /* @__PURE__ */ __name((input, context) => { return input.filter((e) => e != null).map((entry) => { return se_TimeCondition(entry, context); });}, "se_TimeConditionList");var de_BackupCreationTimeFilter = /* @__PURE__ */ __name((output, context) => { return (0, import_smithy_client.take)(output, { CreatedAfter: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))), "CreatedAfter"), CreatedBefore: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))), "CreatedBefore") });}, "de_BackupCreationTimeFilter");var de_EBSItemFilter = /* @__PURE__ */ __name((output, context) => { return (0, import_smithy_client.take)(output, { CreationTimes: /* @__PURE__ */ __name((_) => de_TimeConditionList(_, context), "CreationTimes"), FilePaths: import_smithy_client._json, LastModificationTimes: /* @__PURE__ */ __name((_) => de_TimeConditionList(_, context), "LastModificationTimes"), Sizes: import_smithy_client._json });}, "de_EBSItemFilter");var de_EBSItemFilters = /* @__PURE__ */ __name((output, context) => { const retVal = (output || []).filter((e) => e != null).map((entry) => { return de_EBSItemFilter(entry, context); }); return retVal;}, "de_EBSItemFilters");var de_EBSResultItem = /* @__PURE__ */ __name((output, context) => { return (0, import_smithy_client.take)(output, { BackupResourceArn: import_smithy_client.expectString, BackupVaultName: import_smithy_client.expectString, CreationTime: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))), "CreationTime"), FilePath: import_smithy_client.expectString, FileSize: import_smithy_client.expectLong, FileSystemIdentifier: import_smithy_client.expectString, LastModifiedTime: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))), "LastModifiedTime"), SourceResourceArn: import_smithy_client.expectString });}, "de_EBSResultItem");var de_ExportJobSummaries = /* @__PURE__ */ __name((output, context) => { const retVal = (output || []).filter((e) => e != null).map((entry) => { return de_ExportJobSummary(entry, context); }); return retVal;}, "de_ExportJobSummaries");var de_ExportJobSummary = /* @__PURE__ */ __name((output, context) => { return (0, import_smithy_client.take)(output, { CompletionTime: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))), "CompletionTime"), CreationTime: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))), "CreationTime"), ExportJobArn: import_smithy_client.expectString, ExportJobIdentifier: import_smithy_client.expectString, SearchJobArn: import_smithy_client.expectString, Status: import_smithy_client.expectString, StatusMessage: import_smithy_client.expectString });}, "de_ExportJobSummary");var de_ItemFilters = /* @__PURE__ */ __name((output, context) => { return (0, import_smithy_client.take)(output, { EBSItemFilters: /* @__PURE__ */ __name((_) => de_EBSItemFilters(_, context), "EBSItemFilters"), S3ItemFilters: /* @__PURE__ */ __name((_) => de_S3ItemFilters(_, context), "S3ItemFilters") });}, "de_ItemFilters");var de_ResultItem = /* @__PURE__ */ __name((output, context) => { if (output.EBSResultItem != null) { return { EBSResultItem: de_EBSResultItem(output.EBSResultItem, context) }; } if (output.S3ResultItem != null) { return { S3ResultItem: de_S3ResultItem(output.S3ResultItem, context) }; } return { $unknown: Object.entries(output)[0] };}, "de_ResultItem");var de_Results = /* @__PURE__ */ __name((output, context) => { const retVal = (output || []).filter((e) => e != null).map((entry) => { return de_ResultItem((0, import_core2.awsExpectUnion)(entry), context); }); return retVal;}, "de_Results");var de_S3ItemFilter = /* @__PURE__ */ __name((output, context) => { return (0, import_smithy_client.take)(output, { CreationTimes: /* @__PURE__ */ __name((_) => de_TimeConditionList(_, context), "CreationTimes"), ETags: import_smithy_client._json, ObjectKeys: import_smithy_client._json, Sizes: import_smithy_client._json, VersionIds: import_smithy_client._json });}, "de_S3ItemFilter");var de_S3ItemFilters = /* @__PURE__ */ __name((output, context) => { const retVal = (output || []).filter((e) => e != null).map((entry) => { return de_S3ItemFilter(entry, context); }); return retVal;}, "de_S3ItemFilters");var de_S3ResultItem = /* @__PURE__ */ __name((output, context) => { return (0, import_smithy_client.take)(output, { BackupResourceArn: import_smithy_client.expectString, BackupVaultName: import_smithy_client.expectString, CreationTime: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))), "CreationTime"), ETag: import_smithy_client.expectString, ObjectKey: import_smithy_client.expectString, ObjectSize: import_smithy_client.expectLong, SourceResourceArn: import_smithy_client.expectString, VersionId: import_smithy_client.expectString });}, "de_S3ResultItem");var de_SearchJobBackupsResult = /* @__PURE__ */ __name((output, context) => { return (0, import_smithy_client.take)(output, { BackupCreationTime: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))), "BackupCreationTime"), BackupResourceArn: import_smithy_client.expectString, IndexCreationTime: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))), "IndexCreationTime"), ResourceType: import_smithy_client.expectString, SourceResourceArn: import_smithy_client.expectString, Status: import_smithy_client.expectString, StatusMessage: import_smithy_client.expectString });}, "de_SearchJobBackupsResult");var de_SearchJobBackupsResults = /* @__PURE__ */ __name((output, context) => { const retVal = (output || []).filter((e) => e != null).map((entry) => { return de_SearchJobBackupsResult(entry, context); }); return retVal;}, "de_SearchJobBackupsResults");var de_SearchJobs = /* @__PURE__ */ __name((output, context) => { const retVal = (output || []).filter((e) => e != null).map((entry) => { return de_SearchJobSummary(entry, context); }); return retVal;}, "de_SearchJobs");var de_SearchJobSummary = /* @__PURE__ */ __name((output, context) => { return (0, import_smithy_client.take)(output, { CompletionTime: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))), "CompletionTime"), CreationTime: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))), "CreationTime"), Name: import_smithy_client.expectString, SearchJobArn: import_smithy_client.expectString, SearchJobIdentifier: import_smithy_client.expectString, SearchScopeSummary: import_smithy_client._json, Status: import_smithy_client.expectString, StatusMessage: import_smithy_client.expectString });}, "de_SearchJobSummary");var de_SearchScope = /* @__PURE__ */ __name((output, context) => { return (0, import_smithy_client.take)(output, { BackupResourceArns: import_smithy_client._json, BackupResourceCreationTime: /* @__PURE__ */ __name((_) => de_BackupCreationTimeFilter(_, context), "BackupResourceCreationTime"), BackupResourceTags: /* @__PURE__ */ __name((_) => de_TagMap(_, context), "BackupResourceTags"), BackupResourceTypes: import_smithy_client._json, SourceResourceArns: import_smithy_client._json });}, "de_SearchScope");var de_TagMap = /* @__PURE__ */ __name((output, context) => { return Object.entries(output).reduce((acc, [key, value]) => { if (value === null) { acc[key] = null; return acc; } acc[key] = (0, import_smithy_client.expectString)(value); return acc; }, {});}, "de_TagMap");var de_TimeCondition = /* @__PURE__ */ __name((output, context) => { return (0, import_smithy_client.take)(output, { Operator: import_smithy_client.expectString, Value: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))), "Value") });}, "de_TimeCondition");var de_TimeConditionList = /* @__PURE__ */ __name((output, context) => { const retVal = (output || []).filter((e) => e != null).map((entry) => { return de_TimeCondition(entry, context); }); return retVal;}, "de_TimeConditionList");var deserializeMetadata = /* @__PURE__ */ __name((output) => ({ httpStatusCode: output.statusCode, requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"], extendedRequestId: output.headers["x-amz-id-2"], cfId: output.headers["x-amz-cf-id"]}), "deserializeMetadata");var _BS = "ByStatus";var _MR = "MaxResults";var _NT = "NextToken";var _S = "Status";var _SJI = "SearchJobIdentifier";var _TK = "TagKeys";var _mR = "maxResults";var _nT = "nextToken";var _rAS = "retryAfterSeconds";var _ra = "retry-after";var _tK = "tagKeys"; // src/commands/GetSearchJobCommand.tsvar GetSearchJobCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) { return [ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize), (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()) ];}).s("CryoBackupSearchService", "GetSearchJob", {}).n("BackupSearchClient", "GetSearchJobCommand").f(void 0, void 0).ser(se_GetSearchJobCommand).de(de_GetSearchJobCommand).build() { static { __name(this, "GetSearchJobCommand"); }}; // src/commands/GetSearchResultExportJobCommand.ts var GetSearchResultExportJobCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) { return [ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize), (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()) ];}).s("CryoBackupSearchService", "GetSearchResultExportJob", {}).n("BackupSearchClient", "GetSearchResultExportJobCommand").f(void 0, void 0).ser(se_GetSearchResultExportJobCommand).de(de_GetSearchResultExportJobCommand).build() { static { __name(this, "GetSearchResultExportJobCommand"); }}; // src/commands/ListSearchJobBackupsCommand.ts var ListSearchJobBackupsCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) { return [ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize), (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()) ];}).s("CryoBackupSearchService", "ListSearchJobBackups", {}).n("BackupSearchClient", "ListSearchJobBackupsCommand").f(void 0, void 0).ser(se_ListSearchJobBackupsCommand).de(de_ListSearchJobBackupsCommand).build() { static { __name(this, "ListSearchJobBackupsCommand"); }}; // src/commands/ListSearchJobResultsCommand.ts var ListSearchJobResultsCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) { return [ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize), (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()) ];}).s("CryoBackupSearchService", "ListSearchJobResults", {}).n("BackupSearchClient", "ListSearchJobResultsCommand").f(void 0, ListSearchJobResultsOutputFilterSensitiveLog).ser(se_ListSearchJobResultsCommand).de(de_ListSearchJobResultsCommand).build() { static { __name(this, "ListSearchJobResultsCommand"); }}; // src/commands/ListSearchJobsCommand.ts var ListSearchJobsCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) { return [ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize), (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()) ];}).s("CryoBackupSearchService", "ListSearchJobs", {}).n("BackupSearchClient", "ListSearchJobsCommand").f(void 0, void 0).ser(se_ListSearchJobsCommand).de(de_ListSearchJobsCommand).build() { static { __name(this, "ListSearchJobsCommand"); }}; // src/commands/ListSearchResultExportJobsCommand.ts var ListSearchResultExportJobsCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) { return [ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize), (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()) ];}).s("CryoBackupSearchService", "ListSearchResultExportJobs", {}).n("BackupSearchClient", "ListSearchResultExportJobsCommand").f(void 0, void 0).ser(se_ListSearchResultExportJobsCommand).de(de_ListSearchResultExportJobsCommand).build() { static { __name(this, "ListSearchResultExportJobsCommand"); }}; // src/commands/ListTagsForResourceCommand.ts var ListTagsForResourceCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) { return [ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize), (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()) ];}).s("CryoBackupSearchService", "ListTagsForResource", {}).n("BackupSearchClient", "ListTagsForResourceCommand").f(void 0, void 0).ser(se_ListTagsForResourceCommand).de(de_ListTagsForResourceCommand).build() { static { __name(this, "ListTagsForResourceCommand"); }}; // src/commands/StartSearchJobCommand.ts var StartSearchJobCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) { return [ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize), (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()) ];}).s("CryoBackupSearchService", "StartSearchJob", {}).n("BackupSearchClient", "StartSearchJobCommand").f(void 0, void 0).ser(se_StartSearchJobCommand).de(de_StartSearchJobCommand).build() { static { __name(this, "StartSearchJobCommand"); }}; // src/commands/StartSearchResultExportJobCommand.ts var StartSearchResultExportJobCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) { return [ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize), (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()) ];}).s("CryoBackupSearchService", "StartSearchResultExportJob", {}).n("BackupSearchClient", "StartSearchResultExportJobCommand").f(void 0, void 0).ser(se_StartSearchResultExportJobCommand).de(de_StartSearchResultExportJobCommand).build() { static { __name(this, "StartSearchResultExportJobCommand"); }}; // src/commands/StopSearchJobCommand.ts var StopSearchJobCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) { return [ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize), (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()) ];}).s("CryoBackupSearchService", "StopSearchJob", {}).n("BackupSearchClient", "StopSearchJobCommand").f(void 0, void 0).ser(se_StopSearchJobCommand).de(de_StopSearchJobCommand).build() { static { __name(this, "StopSearchJobCommand"); }}; // src/commands/TagResourceCommand.ts var TagResourceCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) { return [ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize), (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()) ];}).s("CryoBackupSearchService", "TagResource", {}).n("BackupSearchClient", "TagResourceCommand").f(void 0, void 0).ser(se_TagResourceCommand).de(de_TagResourceCommand).build() { static { __name(this, "TagResourceCommand"); }}; // src/commands/UntagResourceCommand.ts var UntagResourceCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) { return [ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize), (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()) ];}).s("CryoBackupSearchService", "UntagResource", {}).n("BackupSearchClient", "UntagResourceCommand").f(void 0, void 0).ser(se_UntagResourceCommand).de(de_UntagResourceCommand).build() { static { __name(this, "UntagResourceCommand"); }}; // src/BackupSearch.tsvar commands = { GetSearchJobCommand, GetSearchResultExportJobCommand, ListSearchJobBackupsCommand, ListSearchJobResultsCommand, ListSearchJobsCommand, ListSearchResultExportJobsCommand, ListTagsForResourceCommand, StartSearchJobCommand, StartSearchResultExportJobCommand, StopSearchJobCommand, TagResourceCommand, UntagResourceCommand};var BackupSearch = class extends BackupSearchClient { static { __name(this, "BackupSearch"); }};(0, import_smithy_client.createAggregatedClient)(commands, BackupSearch); // src/pagination/ListSearchJobBackupsPaginator.ts var paginateListSearchJobBackups = (0, import_core.createPaginator)(BackupSearchClient, ListSearchJobBackupsCommand, "NextToken", "NextToken", "MaxResults"); // src/pagination/ListSearchJobResultsPaginator.ts var paginateListSearchJobResults = (0, import_core.createPaginator)(BackupSearchClient, ListSearchJobResultsCommand, "NextToken", "NextToken", "MaxResults"); // src/pagination/ListSearchJobsPaginator.ts var paginateListSearchJobs = (0, import_core.createPaginator)(BackupSearchClient, ListSearchJobsCommand, "NextToken", "NextToken", "MaxResults"); // src/pagination/ListSearchResultExportJobsPaginator.ts var paginateListSearchResultExportJobs = (0, import_core.createPaginator)(BackupSearchClient, ListSearchResultExportJobsCommand, "NextToken", "NextToken", "MaxResults");// Annotate the CommonJS export names for ESM import in node: 0 && (module.exports = { BackupSearchServiceException, __Client, BackupSearchClient, BackupSearch, $Command, GetSearchJobCommand, GetSearchResultExportJobCommand, ListSearchJobBackupsCommand, ListSearchJobResultsCommand, ListSearchJobsCommand, ListSearchResultExportJobsCommand, ListTagsForResourceCommand, StartSearchJobCommand, StartSearchResultExportJobCommand, StopSearchJobCommand, TagResourceCommand, UntagResourceCommand, paginateListSearchJobBackups, paginateListSearchJobResults, paginateListSearchJobs, paginateListSearchResultExportJobs, AccessDeniedException, ConflictException, InternalServerException, ResourceType, SearchJobState, ResourceNotFoundException, ThrottlingException, ValidationException, ResultItem, TimeConditionOperator, StringConditionOperator, LongConditionOperator, ServiceQuotaExceededException, ExportJobStatus, ExportSpecification, EBSResultItemFilterSensitiveLog, S3ResultItemFilterSensitiveLog, ResultItemFilterSensitiveLog, ListSearchJobResultsOutputFilterSensitiveLog});