/var/runtime/node_modules/@aws-sdk/client-scheduler/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, { ActionAfterCompletion: () => ActionAfterCompletion, AssignPublicIp: () => AssignPublicIp, ConflictException: () => ConflictException, CreateScheduleCommand: () => CreateScheduleCommand, CreateScheduleGroupCommand: () => CreateScheduleGroupCommand, DeleteScheduleCommand: () => DeleteScheduleCommand, DeleteScheduleGroupCommand: () => DeleteScheduleGroupCommand, FlexibleTimeWindowMode: () => FlexibleTimeWindowMode, GetScheduleCommand: () => GetScheduleCommand, GetScheduleGroupCommand: () => GetScheduleGroupCommand, InternalServerException: () => InternalServerException, LaunchType: () => LaunchType, ListScheduleGroupsCommand: () => ListScheduleGroupsCommand, ListSchedulesCommand: () => ListSchedulesCommand, ListTagsForResourceCommand: () => ListTagsForResourceCommand, PlacementConstraintType: () => PlacementConstraintType, PlacementStrategyType: () => PlacementStrategyType, PropagateTags: () => PropagateTags, ResourceNotFoundException: () => ResourceNotFoundException, ScheduleGroupState: () => ScheduleGroupState, ScheduleState: () => ScheduleState, Scheduler: () => Scheduler, SchedulerClient: () => SchedulerClient, SchedulerServiceException: () => SchedulerServiceException, ServiceQuotaExceededException: () => ServiceQuotaExceededException, TagResourceCommand: () => TagResourceCommand, ThrottlingException: () => ThrottlingException, UntagResourceCommand: () => UntagResourceCommand, UpdateScheduleCommand: () => UpdateScheduleCommand, ValidationException: () => ValidationException, __Client: () => import_smithy_client.Client, paginateListScheduleGroups: () => paginateListScheduleGroups, paginateListSchedules: () => paginateListSchedules});module.exports = __toCommonJS(index_exports); // src/SchedulerClient.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: "scheduler" });}, "resolveClientEndpointParameters");var commonParams = { UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" }, Endpoint: { type: "builtInParams", name: "endpoint" }, Region: { type: "builtInParams", name: "region" }, UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }}; // src/SchedulerClient.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/SchedulerClient.tsvar SchedulerClient = class extends import_smithy_client.Client { static { __name(this, "SchedulerClient"); } /** * The resolved configuration of SchedulerClient class. This is resolved and normalized from the {@link SchedulerClientConfig | 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.defaultSchedulerHttpAuthSchemeParametersProvider, 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/Scheduler.ts // src/commands/CreateScheduleCommand.ts var import_middleware_serde = require("@smithy/middleware-serde"); // src/protocols/Aws_restJson1.tsvar import_core2 = require("@aws-sdk/core"); var import_uuid = require("uuid"); // src/models/SchedulerServiceException.ts var SchedulerServiceException = class _SchedulerServiceException extends import_smithy_client.ServiceException { static { __name(this, "SchedulerServiceException"); } /** * @internal */ constructor(options) { super(options); Object.setPrototypeOf(this, _SchedulerServiceException.prototype); }}; // src/models/models_0.tsvar ActionAfterCompletion = { DELETE: "DELETE", NONE: "NONE"};var AssignPublicIp = { DISABLED: "DISABLED", ENABLED: "ENABLED"};var InternalServerException = class _InternalServerException extends SchedulerServiceException { static { __name(this, "InternalServerException"); } name = "InternalServerException"; $fault = "server"; Message; /** * @internal */ constructor(opts) { super({ name: "InternalServerException", $fault: "server", ...opts }); Object.setPrototypeOf(this, _InternalServerException.prototype); this.Message = opts.Message; }};var ResourceNotFoundException = class _ResourceNotFoundException extends SchedulerServiceException { static { __name(this, "ResourceNotFoundException"); } name = "ResourceNotFoundException"; $fault = "client"; Message; /** * @internal */ constructor(opts) { super({ name: "ResourceNotFoundException", $fault: "client", ...opts }); Object.setPrototypeOf(this, _ResourceNotFoundException.prototype); this.Message = opts.Message; }};var ThrottlingException = class _ThrottlingException extends SchedulerServiceException { static { __name(this, "ThrottlingException"); } name = "ThrottlingException"; $fault = "client"; Message; /** * @internal */ constructor(opts) { super({ name: "ThrottlingException", $fault: "client", ...opts }); Object.setPrototypeOf(this, _ThrottlingException.prototype); this.Message = opts.Message; }};var ValidationException = class _ValidationException extends SchedulerServiceException { static { __name(this, "ValidationException"); } name = "ValidationException"; $fault = "client"; Message; /** * @internal */ constructor(opts) { super({ name: "ValidationException", $fault: "client", ...opts }); Object.setPrototypeOf(this, _ValidationException.prototype); this.Message = opts.Message; }};var ConflictException = class _ConflictException extends SchedulerServiceException { static { __name(this, "ConflictException"); } name = "ConflictException"; $fault = "client"; Message; /** * @internal */ constructor(opts) { super({ name: "ConflictException", $fault: "client", ...opts }); Object.setPrototypeOf(this, _ConflictException.prototype); this.Message = opts.Message; }};var FlexibleTimeWindowMode = { FLEXIBLE: "FLEXIBLE", OFF: "OFF"};var ScheduleState = { DISABLED: "DISABLED", ENABLED: "ENABLED"};var LaunchType = { EC2: "EC2", EXTERNAL: "EXTERNAL", FARGATE: "FARGATE"};var PlacementConstraintType = { DISTINCT_INSTANCE: "distinctInstance", MEMBER_OF: "memberOf"};var PlacementStrategyType = { BINPACK: "binpack", RANDOM: "random", SPREAD: "spread"};var PropagateTags = { TASK_DEFINITION: "TASK_DEFINITION"};var ServiceQuotaExceededException = class _ServiceQuotaExceededException extends SchedulerServiceException { static { __name(this, "ServiceQuotaExceededException"); } name = "ServiceQuotaExceededException"; $fault = "client"; Message; /** * @internal */ constructor(opts) { super({ name: "ServiceQuotaExceededException", $fault: "client", ...opts }); Object.setPrototypeOf(this, _ServiceQuotaExceededException.prototype); this.Message = opts.Message; }};var ScheduleGroupState = { ACTIVE: "ACTIVE", DELETING: "DELETING"}; // src/protocols/Aws_restJson1.tsvar se_CreateScheduleCommand = /* @__PURE__ */ __name(async (input, context) => { const b = (0, import_core.requestBuilder)(input, context); const headers = { "content-type": "application/json" }; b.bp("/schedules/{Name}"); b.p("Name", () => input.Name, "{Name}", false); let body; body = JSON.stringify( (0, import_smithy_client.take)(input, { ActionAfterCompletion: [], ClientToken: [true, (_) => _ ?? (0, import_uuid.v4)()], Description: [], EndDate: /* @__PURE__ */ __name((_) => _.getTime() / 1e3, "EndDate"), FlexibleTimeWindow: /* @__PURE__ */ __name((_) => (0, import_smithy_client._json)(_), "FlexibleTimeWindow"), GroupName: [], KmsKeyArn: [], ScheduleExpression: [], ScheduleExpressionTimezone: [], StartDate: /* @__PURE__ */ __name((_) => _.getTime() / 1e3, "StartDate"), State: [], Target: /* @__PURE__ */ __name((_) => (0, import_smithy_client._json)(_), "Target") }) ); b.m("POST").h(headers).b(body); return b.build();}, "se_CreateScheduleCommand");var se_CreateScheduleGroupCommand = /* @__PURE__ */ __name(async (input, context) => { const b = (0, import_core.requestBuilder)(input, context); const headers = { "content-type": "application/json" }; b.bp("/schedule-groups/{Name}"); b.p("Name", () => input.Name, "{Name}", false); let body; body = JSON.stringify( (0, import_smithy_client.take)(input, { ClientToken: [true, (_) => _ ?? (0, import_uuid.v4)()], Tags: /* @__PURE__ */ __name((_) => (0, import_smithy_client._json)(_), "Tags") }) ); b.m("POST").h(headers).b(body); return b.build();}, "se_CreateScheduleGroupCommand");var se_DeleteScheduleCommand = /* @__PURE__ */ __name(async (input, context) => { const b = (0, import_core.requestBuilder)(input, context); const headers = {}; b.bp("/schedules/{Name}"); b.p("Name", () => input.Name, "{Name}", false); const query = (0, import_smithy_client.map)({ [_gN]: [, input[_GN]], [_cT]: [, input[_CT] ?? (0, import_uuid.v4)()] }); let body; b.m("DELETE").h(headers).q(query).b(body); return b.build();}, "se_DeleteScheduleCommand");var se_DeleteScheduleGroupCommand = /* @__PURE__ */ __name(async (input, context) => { const b = (0, import_core.requestBuilder)(input, context); const headers = {}; b.bp("/schedule-groups/{Name}"); b.p("Name", () => input.Name, "{Name}", false); const query = (0, import_smithy_client.map)({ [_cT]: [, input[_CT] ?? (0, import_uuid.v4)()] }); let body; b.m("DELETE").h(headers).q(query).b(body); return b.build();}, "se_DeleteScheduleGroupCommand");var se_GetScheduleCommand = /* @__PURE__ */ __name(async (input, context) => { const b = (0, import_core.requestBuilder)(input, context); const headers = {}; b.bp("/schedules/{Name}"); b.p("Name", () => input.Name, "{Name}", false); const query = (0, import_smithy_client.map)({ [_gN]: [, input[_GN]] }); let body; b.m("GET").h(headers).q(query).b(body); return b.build();}, "se_GetScheduleCommand");var se_GetScheduleGroupCommand = /* @__PURE__ */ __name(async (input, context) => { const b = (0, import_core.requestBuilder)(input, context); const headers = {}; b.bp("/schedule-groups/{Name}"); b.p("Name", () => input.Name, "{Name}", false); let body; b.m("GET").h(headers).b(body); return b.build();}, "se_GetScheduleGroupCommand");var se_ListScheduleGroupsCommand = /* @__PURE__ */ __name(async (input, context) => { const b = (0, import_core.requestBuilder)(input, context); const headers = {}; b.bp("/schedule-groups"); const query = (0, import_smithy_client.map)({ [_NP]: [, input[_NP]], [_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_ListScheduleGroupsCommand");var se_ListSchedulesCommand = /* @__PURE__ */ __name(async (input, context) => { const b = (0, import_core.requestBuilder)(input, context); const headers = {}; b.bp("/schedules"); const query = (0, import_smithy_client.map)({ [_SG]: [, input[_GN]], [_NP]: [, input[_NP]], [_S]: [, input[_S]], [_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_ListSchedulesCommand");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_UpdateScheduleCommand = /* @__PURE__ */ __name(async (input, context) => { const b = (0, import_core.requestBuilder)(input, context); const headers = { "content-type": "application/json" }; b.bp("/schedules/{Name}"); b.p("Name", () => input.Name, "{Name}", false); let body; body = JSON.stringify( (0, import_smithy_client.take)(input, { ActionAfterCompletion: [], ClientToken: [true, (_) => _ ?? (0, import_uuid.v4)()], Description: [], EndDate: /* @__PURE__ */ __name((_) => _.getTime() / 1e3, "EndDate"), FlexibleTimeWindow: /* @__PURE__ */ __name((_) => (0, import_smithy_client._json)(_), "FlexibleTimeWindow"), GroupName: [], KmsKeyArn: [], ScheduleExpression: [], ScheduleExpressionTimezone: [], StartDate: /* @__PURE__ */ __name((_) => _.getTime() / 1e3, "StartDate"), State: [], Target: /* @__PURE__ */ __name((_) => (0, import_smithy_client._json)(_), "Target") }) ); b.m("PUT").h(headers).b(body); return b.build();}, "se_UpdateScheduleCommand");var de_CreateScheduleCommand = /* @__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, { ScheduleArn: import_smithy_client.expectString }); Object.assign(contents, doc); return contents;}, "de_CreateScheduleCommand");var de_CreateScheduleGroupCommand = /* @__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, { ScheduleGroupArn: import_smithy_client.expectString }); Object.assign(contents, doc); return contents;}, "de_CreateScheduleGroupCommand");var de_DeleteScheduleCommand = /* @__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_DeleteScheduleCommand");var de_DeleteScheduleGroupCommand = /* @__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_DeleteScheduleGroupCommand");var de_GetScheduleCommand = /* @__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, { ActionAfterCompletion: import_smithy_client.expectString, Arn: import_smithy_client.expectString, CreationDate: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))), "CreationDate"), Description: import_smithy_client.expectString, EndDate: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))), "EndDate"), FlexibleTimeWindow: import_smithy_client._json, GroupName: import_smithy_client.expectString, KmsKeyArn: import_smithy_client.expectString, LastModificationDate: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))), "LastModificationDate"), Name: import_smithy_client.expectString, ScheduleExpression: import_smithy_client.expectString, ScheduleExpressionTimezone: import_smithy_client.expectString, StartDate: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))), "StartDate"), State: import_smithy_client.expectString, Target: import_smithy_client._json }); Object.assign(contents, doc); return contents;}, "de_GetScheduleCommand");var de_GetScheduleGroupCommand = /* @__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, { Arn: import_smithy_client.expectString, CreationDate: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))), "CreationDate"), LastModificationDate: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))), "LastModificationDate"), Name: import_smithy_client.expectString, State: import_smithy_client.expectString }); Object.assign(contents, doc); return contents;}, "de_GetScheduleGroupCommand");var de_ListScheduleGroupsCommand = /* @__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, ScheduleGroups: /* @__PURE__ */ __name((_) => de_ScheduleGroupList(_, context), "ScheduleGroups") }); Object.assign(contents, doc); return contents;}, "de_ListScheduleGroupsCommand");var de_ListSchedulesCommand = /* @__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, Schedules: /* @__PURE__ */ __name((_) => de_ScheduleList(_, context), "Schedules") }); Object.assign(contents, doc); return contents;}, "de_ListSchedulesCommand");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_UpdateScheduleCommand = /* @__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, { ScheduleArn: import_smithy_client.expectString }); Object.assign(contents, doc); return contents;}, "de_UpdateScheduleCommand");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 "ConflictException": case "com.amazonaws.scheduler#ConflictException": throw await de_ConflictExceptionRes(parsedOutput, context); case "InternalServerException": case "com.amazonaws.scheduler#InternalServerException": throw await de_InternalServerExceptionRes(parsedOutput, context); case "ResourceNotFoundException": case "com.amazonaws.scheduler#ResourceNotFoundException": throw await de_ResourceNotFoundExceptionRes(parsedOutput, context); case "ServiceQuotaExceededException": case "com.amazonaws.scheduler#ServiceQuotaExceededException": throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context); case "ThrottlingException": case "com.amazonaws.scheduler#ThrottlingException": throw await de_ThrottlingExceptionRes(parsedOutput, context); case "ValidationException": case "com.amazonaws.scheduler#ValidationException": throw await de_ValidationExceptionRes(parsedOutput, context); default: const parsedBody = parsedOutput.body; return throwDefaultError({ output, parsedBody, errorCode }); }}, "de_CommandError");var throwDefaultError = (0, import_smithy_client.withBaseException)(SchedulerServiceException);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 }); 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)({}); 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 }); 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 }); 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)({}); const data = parsedOutput.body; const doc = (0, import_smithy_client.take)(data, { Message: 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 de_ScheduleGroupList = /* @__PURE__ */ __name((output, context) => { const retVal = (output || []).filter((e) => e != null).map((entry) => { return de_ScheduleGroupSummary(entry, context); }); return retVal;}, "de_ScheduleGroupList");var de_ScheduleGroupSummary = /* @__PURE__ */ __name((output, context) => { return (0, import_smithy_client.take)(output, { Arn: import_smithy_client.expectString, CreationDate: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))), "CreationDate"), LastModificationDate: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))), "LastModificationDate"), Name: import_smithy_client.expectString, State: import_smithy_client.expectString });}, "de_ScheduleGroupSummary");var de_ScheduleList = /* @__PURE__ */ __name((output, context) => { const retVal = (output || []).filter((e) => e != null).map((entry) => { return de_ScheduleSummary(entry, context); }); return retVal;}, "de_ScheduleList");var de_ScheduleSummary = /* @__PURE__ */ __name((output, context) => { return (0, import_smithy_client.take)(output, { Arn: import_smithy_client.expectString, CreationDate: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))), "CreationDate"), GroupName: import_smithy_client.expectString, LastModificationDate: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))), "LastModificationDate"), Name: import_smithy_client.expectString, State: import_smithy_client.expectString, Target: import_smithy_client._json });}, "de_ScheduleSummary");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 _CT = "ClientToken";var _GN = "GroupName";var _MR = "MaxResults";var _NP = "NamePrefix";var _NT = "NextToken";var _S = "State";var _SG = "ScheduleGroup";var _TK = "TagKeys";var _cT = "clientToken";var _gN = "groupName"; // src/commands/CreateScheduleCommand.tsvar CreateScheduleCommand = 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("AWSChronosService", "CreateSchedule", {}).n("SchedulerClient", "CreateScheduleCommand").f(void 0, void 0).ser(se_CreateScheduleCommand).de(de_CreateScheduleCommand).build() { static { __name(this, "CreateScheduleCommand"); }}; // src/commands/CreateScheduleGroupCommand.ts var CreateScheduleGroupCommand = 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("AWSChronosService", "CreateScheduleGroup", {}).n("SchedulerClient", "CreateScheduleGroupCommand").f(void 0, void 0).ser(se_CreateScheduleGroupCommand).de(de_CreateScheduleGroupCommand).build() { static { __name(this, "CreateScheduleGroupCommand"); }}; // src/commands/DeleteScheduleCommand.ts var DeleteScheduleCommand = 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("AWSChronosService", "DeleteSchedule", {}).n("SchedulerClient", "DeleteScheduleCommand").f(void 0, void 0).ser(se_DeleteScheduleCommand).de(de_DeleteScheduleCommand).build() { static { __name(this, "DeleteScheduleCommand"); }}; // src/commands/DeleteScheduleGroupCommand.ts var DeleteScheduleGroupCommand = 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("AWSChronosService", "DeleteScheduleGroup", {}).n("SchedulerClient", "DeleteScheduleGroupCommand").f(void 0, void 0).ser(se_DeleteScheduleGroupCommand).de(de_DeleteScheduleGroupCommand).build() { static { __name(this, "DeleteScheduleGroupCommand"); }}; // src/commands/GetScheduleCommand.ts var GetScheduleCommand = 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("AWSChronosService", "GetSchedule", {}).n("SchedulerClient", "GetScheduleCommand").f(void 0, void 0).ser(se_GetScheduleCommand).de(de_GetScheduleCommand).build() { static { __name(this, "GetScheduleCommand"); }}; // src/commands/GetScheduleGroupCommand.ts var GetScheduleGroupCommand = 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("AWSChronosService", "GetScheduleGroup", {}).n("SchedulerClient", "GetScheduleGroupCommand").f(void 0, void 0).ser(se_GetScheduleGroupCommand).de(de_GetScheduleGroupCommand).build() { static { __name(this, "GetScheduleGroupCommand"); }}; // src/commands/ListScheduleGroupsCommand.ts var ListScheduleGroupsCommand = 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("AWSChronosService", "ListScheduleGroups", {}).n("SchedulerClient", "ListScheduleGroupsCommand").f(void 0, void 0).ser(se_ListScheduleGroupsCommand).de(de_ListScheduleGroupsCommand).build() { static { __name(this, "ListScheduleGroupsCommand"); }}; // src/commands/ListSchedulesCommand.ts var ListSchedulesCommand = 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("AWSChronosService", "ListSchedules", {}).n("SchedulerClient", "ListSchedulesCommand").f(void 0, void 0).ser(se_ListSchedulesCommand).de(de_ListSchedulesCommand).build() { static { __name(this, "ListSchedulesCommand"); }}; // 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("AWSChronosService", "ListTagsForResource", {}).n("SchedulerClient", "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("AWSChronosService", "TagResource", {}).n("SchedulerClient", "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("AWSChronosService", "UntagResource", {}).n("SchedulerClient", "UntagResourceCommand").f(void 0, void 0).ser(se_UntagResourceCommand).de(de_UntagResourceCommand).build() { static { __name(this, "UntagResourceCommand"); }}; // src/commands/UpdateScheduleCommand.ts var UpdateScheduleCommand = 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("AWSChronosService", "UpdateSchedule", {}).n("SchedulerClient", "UpdateScheduleCommand").f(void 0, void 0).ser(se_UpdateScheduleCommand).de(de_UpdateScheduleCommand).build() { static { __name(this, "UpdateScheduleCommand"); }}; // src/Scheduler.tsvar commands = { CreateScheduleCommand, CreateScheduleGroupCommand, DeleteScheduleCommand, DeleteScheduleGroupCommand, GetScheduleCommand, GetScheduleGroupCommand, ListScheduleGroupsCommand, ListSchedulesCommand, ListTagsForResourceCommand, TagResourceCommand, UntagResourceCommand, UpdateScheduleCommand};var Scheduler = class extends SchedulerClient { static { __name(this, "Scheduler"); }};(0, import_smithy_client.createAggregatedClient)(commands, Scheduler); // src/pagination/ListScheduleGroupsPaginator.ts var paginateListScheduleGroups = (0, import_core.createPaginator)(SchedulerClient, ListScheduleGroupsCommand, "NextToken", "NextToken", "MaxResults"); // src/pagination/ListSchedulesPaginator.ts var paginateListSchedules = (0, import_core.createPaginator)(SchedulerClient, ListSchedulesCommand, "NextToken", "NextToken", "MaxResults");// Annotate the CommonJS export names for ESM import in node: 0 && (module.exports = { SchedulerServiceException, __Client, SchedulerClient, Scheduler, $Command, CreateScheduleCommand, CreateScheduleGroupCommand, DeleteScheduleCommand, DeleteScheduleGroupCommand, GetScheduleCommand, GetScheduleGroupCommand, ListScheduleGroupsCommand, ListSchedulesCommand, ListTagsForResourceCommand, TagResourceCommand, UntagResourceCommand, UpdateScheduleCommand, paginateListScheduleGroups, paginateListSchedules, ActionAfterCompletion, AssignPublicIp, InternalServerException, ResourceNotFoundException, ThrottlingException, ValidationException, ConflictException, FlexibleTimeWindowMode, ScheduleState, LaunchType, PlacementConstraintType, PlacementStrategyType, PropagateTags, ServiceQuotaExceededException, ScheduleGroupState});