/var/runtime/node_modules/@aws-sdk/client-dlm/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, { CreateLifecyclePolicyCommand: () => CreateLifecyclePolicyCommand, DLM: () => DLM, DLMClient: () => DLMClient, DLMServiceException: () => DLMServiceException, DefaultPoliciesTypeValues: () => DefaultPoliciesTypeValues, DefaultPolicyTypeValues: () => DefaultPolicyTypeValues, DeleteLifecyclePolicyCommand: () => DeleteLifecyclePolicyCommand, EventSourceValues: () => EventSourceValues, EventTypeValues: () => EventTypeValues, ExecutionHandlerServiceValues: () => ExecutionHandlerServiceValues, GetLifecyclePoliciesCommand: () => GetLifecyclePoliciesCommand, GetLifecyclePolicyCommand: () => GetLifecyclePolicyCommand, GettablePolicyStateValues: () => GettablePolicyStateValues, InternalServerException: () => InternalServerException, IntervalUnitValues: () => IntervalUnitValues, InvalidRequestException: () => InvalidRequestException, LimitExceededException: () => LimitExceededException, ListTagsForResourceCommand: () => ListTagsForResourceCommand, LocationValues: () => LocationValues, PolicyLanguageValues: () => PolicyLanguageValues, PolicyTypeValues: () => PolicyTypeValues, ResourceLocationValues: () => ResourceLocationValues, ResourceNotFoundException: () => ResourceNotFoundException, ResourceTypeValues: () => ResourceTypeValues, RetentionIntervalUnitValues: () => RetentionIntervalUnitValues, SettablePolicyStateValues: () => SettablePolicyStateValues, StageValues: () => StageValues, TagResourceCommand: () => TagResourceCommand, UntagResourceCommand: () => UntagResourceCommand, UpdateLifecyclePolicyCommand: () => UpdateLifecyclePolicyCommand, __Client: () => import_smithy_client.Client});module.exports = __toCommonJS(index_exports); // src/DLMClient.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, { useDualstackEndpoint: options.useDualstackEndpoint ?? false, useFipsEndpoint: options.useFipsEndpoint ?? false, defaultSigningName: "dlm" });}, "resolveClientEndpointParameters");var commonParams = { UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" }, Endpoint: { type: "builtInParams", name: "endpoint" }, Region: { type: "builtInParams", name: "region" }, UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }}; // src/DLMClient.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/DLMClient.tsvar DLMClient = class extends import_smithy_client.Client { static { __name(this, "DLMClient"); } /** * The resolved configuration of DLMClient class. This is resolved and normalized from the {@link DLMClientConfig | 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.defaultDLMHttpAuthSchemeParametersProvider, 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/DLM.ts // src/commands/CreateLifecyclePolicyCommand.ts var import_middleware_serde = require("@smithy/middleware-serde"); // src/protocols/Aws_restJson1.tsvar import_core2 = require("@aws-sdk/core"); // src/models/DLMServiceException.ts var DLMServiceException = class _DLMServiceException extends import_smithy_client.ServiceException { static { __name(this, "DLMServiceException"); } /** * @internal */ constructor(options) { super(options); Object.setPrototypeOf(this, _DLMServiceException.prototype); }}; // src/models/models_0.tsvar RetentionIntervalUnitValues = { DAYS: "DAYS", MONTHS: "MONTHS", WEEKS: "WEEKS", YEARS: "YEARS"};var DefaultPolicyTypeValues = { INSTANCE: "INSTANCE", VOLUME: "VOLUME"};var EventTypeValues = { SHARE_SNAPSHOT: "shareSnapshot"};var EventSourceValues = { MANAGED_CWE: "MANAGED_CWE"};var PolicyLanguageValues = { SIMPLIFIED: "SIMPLIFIED", STANDARD: "STANDARD"};var PolicyTypeValues = { EBS_SNAPSHOT_MANAGEMENT: "EBS_SNAPSHOT_MANAGEMENT", EVENT_BASED_POLICY: "EVENT_BASED_POLICY", IMAGE_MANAGEMENT: "IMAGE_MANAGEMENT"};var ResourceLocationValues = { CLOUD: "CLOUD", LOCAL_ZONE: "LOCAL_ZONE", OUTPOST: "OUTPOST"};var ResourceTypeValues = { INSTANCE: "INSTANCE", VOLUME: "VOLUME"};var IntervalUnitValues = { HOURS: "HOURS"};var LocationValues = { CLOUD: "CLOUD", LOCAL_ZONE: "LOCAL_ZONE", OUTPOST_LOCAL: "OUTPOST_LOCAL"};var ExecutionHandlerServiceValues = { AWS_SYSTEMS_MANAGER: "AWS_SYSTEMS_MANAGER"};var StageValues = { POST: "POST", PRE: "PRE"};var SettablePolicyStateValues = { DISABLED: "DISABLED", ENABLED: "ENABLED"};var InternalServerException = class _InternalServerException extends DLMServiceException { static { __name(this, "InternalServerException"); } name = "InternalServerException"; $fault = "server"; Message; Code; /** * @internal */ constructor(opts) { super({ name: "InternalServerException", $fault: "server", ...opts }); Object.setPrototypeOf(this, _InternalServerException.prototype); this.Message = opts.Message; this.Code = opts.Code; }};var InvalidRequestException = class _InvalidRequestException extends DLMServiceException { static { __name(this, "InvalidRequestException"); } name = "InvalidRequestException"; $fault = "client"; Message; Code; /** * <p>The request omitted one or more required parameters.</p> * @public */ RequiredParameters; /** * <p>The request included parameters that cannot be provided together.</p> * @public */ MutuallyExclusiveParameters; /** * @internal */ constructor(opts) { super({ name: "InvalidRequestException", $fault: "client", ...opts }); Object.setPrototypeOf(this, _InvalidRequestException.prototype); this.Message = opts.Message; this.Code = opts.Code; this.RequiredParameters = opts.RequiredParameters; this.MutuallyExclusiveParameters = opts.MutuallyExclusiveParameters; }};var LimitExceededException = class _LimitExceededException extends DLMServiceException { static { __name(this, "LimitExceededException"); } name = "LimitExceededException"; $fault = "client"; Message; Code; /** * <p>Value is the type of resource for which a limit was exceeded.</p> * @public */ ResourceType; /** * @internal */ constructor(opts) { super({ name: "LimitExceededException", $fault: "client", ...opts }); Object.setPrototypeOf(this, _LimitExceededException.prototype); this.Message = opts.Message; this.Code = opts.Code; this.ResourceType = opts.ResourceType; }};var DefaultPoliciesTypeValues = { ALL: "ALL", INSTANCE: "INSTANCE", VOLUME: "VOLUME"};var ResourceNotFoundException = class _ResourceNotFoundException extends DLMServiceException { static { __name(this, "ResourceNotFoundException"); } name = "ResourceNotFoundException"; $fault = "client"; Message; Code; /** * <p>Value is the type of resource that was not found.</p> * @public */ ResourceType; /** * <p>Value is a list of resource IDs that were not found.</p> * @public */ ResourceIds; /** * @internal */ constructor(opts) { super({ name: "ResourceNotFoundException", $fault: "client", ...opts }); Object.setPrototypeOf(this, _ResourceNotFoundException.prototype); this.Message = opts.Message; this.Code = opts.Code; this.ResourceType = opts.ResourceType; this.ResourceIds = opts.ResourceIds; }};var GettablePolicyStateValues = { DISABLED: "DISABLED", ENABLED: "ENABLED", ERROR: "ERROR"}; // src/protocols/Aws_restJson1.tsvar se_CreateLifecyclePolicyCommand = /* @__PURE__ */ __name(async (input, context) => { const b = (0, import_core.requestBuilder)(input, context); const headers = { "content-type": "application/json" }; b.bp("/policies"); let body; body = JSON.stringify( (0, import_smithy_client.take)(input, { CopyTags: [], CreateInterval: [], CrossRegionCopyTargets: /* @__PURE__ */ __name((_) => (0, import_smithy_client._json)(_), "CrossRegionCopyTargets"), DefaultPolicy: [], Description: [], Exclusions: /* @__PURE__ */ __name((_) => (0, import_smithy_client._json)(_), "Exclusions"), ExecutionRoleArn: [], ExtendDeletion: [], PolicyDetails: /* @__PURE__ */ __name((_) => (0, import_smithy_client._json)(_), "PolicyDetails"), RetainInterval: [], State: [], Tags: /* @__PURE__ */ __name((_) => (0, import_smithy_client._json)(_), "Tags") }) ); b.m("POST").h(headers).b(body); return b.build();}, "se_CreateLifecyclePolicyCommand");var se_DeleteLifecyclePolicyCommand = /* @__PURE__ */ __name(async (input, context) => { const b = (0, import_core.requestBuilder)(input, context); const headers = {}; b.bp("/policies/{PolicyId}"); b.p("PolicyId", () => input.PolicyId, "{PolicyId}", false); let body; b.m("DELETE").h(headers).b(body); return b.build();}, "se_DeleteLifecyclePolicyCommand");var se_GetLifecyclePoliciesCommand = /* @__PURE__ */ __name(async (input, context) => { const b = (0, import_core.requestBuilder)(input, context); const headers = {}; b.bp("/policies"); const query = (0, import_smithy_client.map)({ [_pI]: [() => input.PolicyIds !== void 0, () => input[_PI] || []], [_s]: [, input[_S]], [_rT]: [() => input.ResourceTypes !== void 0, () => input[_RT] || []], [_tT]: [() => input.TargetTags !== void 0, () => input[_TT] || []], [_tTA]: [() => input.TagsToAdd !== void 0, () => input[_TTA] || []], [_dPT]: [, input[_DPT]] }); let body; b.m("GET").h(headers).q(query).b(body); return b.build();}, "se_GetLifecyclePoliciesCommand");var se_GetLifecyclePolicyCommand = /* @__PURE__ */ __name(async (input, context) => { const b = (0, import_core.requestBuilder)(input, context); const headers = {}; b.bp("/policies/{PolicyId}"); b.p("PolicyId", () => input.PolicyId, "{PolicyId}", false); let body; b.m("GET").h(headers).b(body); return b.build();}, "se_GetLifecyclePolicyCommand");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_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((_) => (0, import_smithy_client._json)(_), "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 se_UpdateLifecyclePolicyCommand = /* @__PURE__ */ __name(async (input, context) => { const b = (0, import_core.requestBuilder)(input, context); const headers = { "content-type": "application/json" }; b.bp("/policies/{PolicyId}"); b.p("PolicyId", () => input.PolicyId, "{PolicyId}", false); let body; body = JSON.stringify( (0, import_smithy_client.take)(input, { CopyTags: [], CreateInterval: [], CrossRegionCopyTargets: /* @__PURE__ */ __name((_) => (0, import_smithy_client._json)(_), "CrossRegionCopyTargets"), Description: [], Exclusions: /* @__PURE__ */ __name((_) => (0, import_smithy_client._json)(_), "Exclusions"), ExecutionRoleArn: [], ExtendDeletion: [], PolicyDetails: /* @__PURE__ */ __name((_) => (0, import_smithy_client._json)(_), "PolicyDetails"), RetainInterval: [], State: [] }) ); b.m("PATCH").h(headers).b(body); return b.build();}, "se_UpdateLifecyclePolicyCommand");var de_CreateLifecyclePolicyCommand = /* @__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, { PolicyId: import_smithy_client.expectString }); Object.assign(contents, doc); return contents;}, "de_CreateLifecyclePolicyCommand");var de_DeleteLifecyclePolicyCommand = /* @__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_DeleteLifecyclePolicyCommand");var de_GetLifecyclePoliciesCommand = /* @__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, { Policies: import_smithy_client._json }); Object.assign(contents, doc); return contents;}, "de_GetLifecyclePoliciesCommand");var de_GetLifecyclePolicyCommand = /* @__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, { Policy: /* @__PURE__ */ __name((_) => de_LifecyclePolicy(_, context), "Policy") }); Object.assign(contents, doc); return contents;}, "de_GetLifecyclePolicyCommand");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: import_smithy_client._json }); Object.assign(contents, doc); return contents;}, "de_ListTagsForResourceCommand");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_UpdateLifecyclePolicyCommand = /* @__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_UpdateLifecyclePolicyCommand");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 "InternalServerException": case "com.amazonaws.dlm#InternalServerException": throw await de_InternalServerExceptionRes(parsedOutput, context); case "InvalidRequestException": case "com.amazonaws.dlm#InvalidRequestException": throw await de_InvalidRequestExceptionRes(parsedOutput, context); case "LimitExceededException": case "com.amazonaws.dlm#LimitExceededException": throw await de_LimitExceededExceptionRes(parsedOutput, context); case "ResourceNotFoundException": case "com.amazonaws.dlm#ResourceNotFoundException": throw await de_ResourceNotFoundExceptionRes(parsedOutput, context); default: const parsedBody = parsedOutput.body; return throwDefaultError({ output, parsedBody, errorCode }); }}, "de_CommandError");var throwDefaultError = (0, import_smithy_client.withBaseException)(DLMServiceException);var de_InternalServerExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => { const contents = (0, import_smithy_client.map)({}); const data = parsedOutput.body; const doc = (0, import_smithy_client.take)(data, { Code: import_smithy_client.expectString, 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_InvalidRequestExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => { const contents = (0, import_smithy_client.map)({}); const data = parsedOutput.body; const doc = (0, import_smithy_client.take)(data, { Code: import_smithy_client.expectString, Message: import_smithy_client.expectString, MutuallyExclusiveParameters: import_smithy_client._json, RequiredParameters: import_smithy_client._json }); Object.assign(contents, doc); const exception = new InvalidRequestException({ $metadata: deserializeMetadata(parsedOutput), ...contents }); return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);}, "de_InvalidRequestExceptionRes");var de_LimitExceededExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => { const contents = (0, import_smithy_client.map)({}); const data = parsedOutput.body; const doc = (0, import_smithy_client.take)(data, { Code: import_smithy_client.expectString, Message: import_smithy_client.expectString, ResourceType: import_smithy_client.expectString }); Object.assign(contents, doc); const exception = new LimitExceededException({ $metadata: deserializeMetadata(parsedOutput), ...contents }); return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);}, "de_LimitExceededExceptionRes");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, { Code: import_smithy_client.expectString, Message: import_smithy_client.expectString, ResourceIds: import_smithy_client._json, 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_LifecyclePolicy = /* @__PURE__ */ __name((output, context) => { return (0, import_smithy_client.take)(output, { DateCreated: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc3339DateTimeWithOffset)(_)), "DateCreated"), DateModified: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc3339DateTimeWithOffset)(_)), "DateModified"), DefaultPolicy: import_smithy_client.expectBoolean, Description: import_smithy_client.expectString, ExecutionRoleArn: import_smithy_client.expectString, PolicyArn: import_smithy_client.expectString, PolicyDetails: import_smithy_client._json, PolicyId: import_smithy_client.expectString, State: import_smithy_client.expectString, StatusMessage: import_smithy_client.expectString, Tags: import_smithy_client._json });}, "de_LifecyclePolicy");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 _DPT = "DefaultPolicyType";var _PI = "PolicyIds";var _RT = "ResourceTypes";var _S = "State";var _TK = "TagKeys";var _TT = "TargetTags";var _TTA = "TagsToAdd";var _dPT = "defaultPolicyType";var _pI = "policyIds";var _rT = "resourceTypes";var _s = "state";var _tK = "tagKeys";var _tT = "targetTags";var _tTA = "tagsToAdd"; // src/commands/CreateLifecyclePolicyCommand.tsvar CreateLifecyclePolicyCommand = 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("dlm_20180112", "CreateLifecyclePolicy", {}).n("DLMClient", "CreateLifecyclePolicyCommand").f(void 0, void 0).ser(se_CreateLifecyclePolicyCommand).de(de_CreateLifecyclePolicyCommand).build() { static { __name(this, "CreateLifecyclePolicyCommand"); }}; // src/commands/DeleteLifecyclePolicyCommand.ts var DeleteLifecyclePolicyCommand = 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("dlm_20180112", "DeleteLifecyclePolicy", {}).n("DLMClient", "DeleteLifecyclePolicyCommand").f(void 0, void 0).ser(se_DeleteLifecyclePolicyCommand).de(de_DeleteLifecyclePolicyCommand).build() { static { __name(this, "DeleteLifecyclePolicyCommand"); }}; // src/commands/GetLifecyclePoliciesCommand.ts var GetLifecyclePoliciesCommand = 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("dlm_20180112", "GetLifecyclePolicies", {}).n("DLMClient", "GetLifecyclePoliciesCommand").f(void 0, void 0).ser(se_GetLifecyclePoliciesCommand).de(de_GetLifecyclePoliciesCommand).build() { static { __name(this, "GetLifecyclePoliciesCommand"); }}; // src/commands/GetLifecyclePolicyCommand.ts var GetLifecyclePolicyCommand = 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("dlm_20180112", "GetLifecyclePolicy", {}).n("DLMClient", "GetLifecyclePolicyCommand").f(void 0, void 0).ser(se_GetLifecyclePolicyCommand).de(de_GetLifecyclePolicyCommand).build() { static { __name(this, "GetLifecyclePolicyCommand"); }}; // 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("dlm_20180112", "ListTagsForResource", {}).n("DLMClient", "ListTagsForResourceCommand").f(void 0, void 0).ser(se_ListTagsForResourceCommand).de(de_ListTagsForResourceCommand).build() { static { __name(this, "ListTagsForResourceCommand"); }}; // 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("dlm_20180112", "TagResource", {}).n("DLMClient", "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("dlm_20180112", "UntagResource", {}).n("DLMClient", "UntagResourceCommand").f(void 0, void 0).ser(se_UntagResourceCommand).de(de_UntagResourceCommand).build() { static { __name(this, "UntagResourceCommand"); }}; // src/commands/UpdateLifecyclePolicyCommand.ts var UpdateLifecyclePolicyCommand = 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("dlm_20180112", "UpdateLifecyclePolicy", {}).n("DLMClient", "UpdateLifecyclePolicyCommand").f(void 0, void 0).ser(se_UpdateLifecyclePolicyCommand).de(de_UpdateLifecyclePolicyCommand).build() { static { __name(this, "UpdateLifecyclePolicyCommand"); }}; // src/DLM.tsvar commands = { CreateLifecyclePolicyCommand, DeleteLifecyclePolicyCommand, GetLifecyclePoliciesCommand, GetLifecyclePolicyCommand, ListTagsForResourceCommand, TagResourceCommand, UntagResourceCommand, UpdateLifecyclePolicyCommand};var DLM = class extends DLMClient { static { __name(this, "DLM"); }};(0, import_smithy_client.createAggregatedClient)(commands, DLM);// Annotate the CommonJS export names for ESM import in node: 0 && (module.exports = { DLMServiceException, __Client, DLMClient, DLM, $Command, CreateLifecyclePolicyCommand, DeleteLifecyclePolicyCommand, GetLifecyclePoliciesCommand, GetLifecyclePolicyCommand, ListTagsForResourceCommand, TagResourceCommand, UntagResourceCommand, UpdateLifecyclePolicyCommand, RetentionIntervalUnitValues, DefaultPolicyTypeValues, EventTypeValues, EventSourceValues, PolicyLanguageValues, PolicyTypeValues, ResourceLocationValues, ResourceTypeValues, IntervalUnitValues, LocationValues, ExecutionHandlerServiceValues, StageValues, SettablePolicyStateValues, InternalServerException, InvalidRequestException, LimitExceededException, DefaultPoliciesTypeValues, ResourceNotFoundException, GettablePolicyStateValues});