File Explorer

/proc/self/root/proc/self/root/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 /.

index.js13.4 KB · 367 lines
'use strict'; var client$1 = require('@aws-sdk/core/client');var core = require('@smithy/core');var client = require('@smithy/core/client');var config = require('@smithy/core/config');var endpoints = require('@smithy/core/endpoints');var protocols = require('@smithy/core/protocols');var retry = require('@smithy/core/retry');var schema = require('@smithy/core/schema');var httpAuthSchemeProvider = require('./auth/httpAuthSchemeProvider');var runtimeConfig = require('./runtimeConfig');var schemas_0 = require('./schemas/schemas_0');var errors = require('./models/errors');var SchedulerServiceException = require('./models/SchedulerServiceException'); const resolveClientEndpointParameters = (options) => {    return Object.assign(options, {        useDualstackEndpoint: options.useDualstackEndpoint ?? false,        useFipsEndpoint: options.useFipsEndpoint ?? false,        defaultSigningName: "scheduler",    });};const commonParams = {    UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },    Endpoint: { type: "builtInParams", name: "endpoint" },    Region: { type: "builtInParams", name: "region" },    UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },}; const getHttpAuthExtensionConfiguration = (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;        },    };};const resolveHttpAuthRuntimeConfig = (config) => {    return {        httpAuthSchemes: config.httpAuthSchemes(),        httpAuthSchemeProvider: config.httpAuthSchemeProvider(),        credentials: config.credentials(),    };}; const resolveRuntimeExtensions = (runtimeConfig, extensions) => {    const extensionConfiguration = Object.assign(client$1.getAwsRegionExtensionConfiguration(runtimeConfig), client.getDefaultExtensionConfiguration(runtimeConfig), protocols.getHttpHandlerExtensionConfiguration(runtimeConfig), getHttpAuthExtensionConfiguration(runtimeConfig));    extensions.forEach((extension) => extension.configure(extensionConfiguration));    return Object.assign(runtimeConfig, client$1.resolveAwsRegionExtensionConfiguration(extensionConfiguration), client.resolveDefaultRuntimeConfig(extensionConfiguration), protocols.resolveHttpHandlerRuntimeConfig(extensionConfiguration), resolveHttpAuthRuntimeConfig(extensionConfiguration));}; class SchedulerClient extends client.Client {    config;    constructor(...[configuration]) {        const _config_0 = runtimeConfig.getRuntimeConfig(configuration || {});        super(_config_0);        this.initConfig = _config_0;        const _config_1 = resolveClientEndpointParameters(_config_0);        const _config_2 = client$1.resolveUserAgentConfig(_config_1);        const _config_3 = retry.resolveRetryConfig(_config_2);        const _config_4 = config.resolveRegionConfig(_config_3);        const _config_5 = client$1.resolveHostHeaderConfig(_config_4);        const _config_6 = endpoints.resolveEndpointConfig(_config_5);        const _config_7 = httpAuthSchemeProvider.resolveHttpAuthSchemeConfig(_config_6);        const _config_8 = resolveRuntimeExtensions(_config_7, configuration?.extensions || []);        this.config = _config_8;        this.middlewareStack.use(schema.getSchemaSerdePlugin(this.config));        this.middlewareStack.use(client$1.getUserAgentPlugin(this.config));        this.middlewareStack.use(retry.getRetryPlugin(this.config));        this.middlewareStack.use(protocols.getContentLengthPlugin(this.config));        this.middlewareStack.use(client$1.getHostHeaderPlugin(this.config));        this.middlewareStack.use(client$1.getLoggerPlugin(this.config));        this.middlewareStack.use(client$1.getRecursionDetectionPlugin(this.config));        this.middlewareStack.use(core.getHttpAuthSchemeEndpointRuleSetPlugin(this.config, {            httpAuthSchemeParametersProvider: httpAuthSchemeProvider.defaultSchedulerHttpAuthSchemeParametersProvider,            identityProviderConfigProvider: async (config) => new core.DefaultIdentityProviderConfig({                "aws.auth#sigv4": config.credentials,            }),        }));        this.middlewareStack.use(core.getHttpSigningPlugin(this.config));    }    destroy() {        super.destroy();    }} class CreateScheduleCommand extends client.Command    .classBuilder()    .ep(commonParams)    .m(function (Command, cs, config, o) {    return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];})    .s("AWSChronosService", "CreateSchedule", {})    .n("SchedulerClient", "CreateScheduleCommand")    .sc(schemas_0.CreateSchedule$)    .build() {} class CreateScheduleGroupCommand extends client.Command    .classBuilder()    .ep(commonParams)    .m(function (Command, cs, config, o) {    return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];})    .s("AWSChronosService", "CreateScheduleGroup", {})    .n("SchedulerClient", "CreateScheduleGroupCommand")    .sc(schemas_0.CreateScheduleGroup$)    .build() {} class DeleteScheduleCommand extends client.Command    .classBuilder()    .ep(commonParams)    .m(function (Command, cs, config, o) {    return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];})    .s("AWSChronosService", "DeleteSchedule", {})    .n("SchedulerClient", "DeleteScheduleCommand")    .sc(schemas_0.DeleteSchedule$)    .build() {} class DeleteScheduleGroupCommand extends client.Command    .classBuilder()    .ep(commonParams)    .m(function (Command, cs, config, o) {    return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];})    .s("AWSChronosService", "DeleteScheduleGroup", {})    .n("SchedulerClient", "DeleteScheduleGroupCommand")    .sc(schemas_0.DeleteScheduleGroup$)    .build() {} class GetScheduleCommand extends client.Command    .classBuilder()    .ep(commonParams)    .m(function (Command, cs, config, o) {    return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];})    .s("AWSChronosService", "GetSchedule", {})    .n("SchedulerClient", "GetScheduleCommand")    .sc(schemas_0.GetSchedule$)    .build() {} class GetScheduleGroupCommand extends client.Command    .classBuilder()    .ep(commonParams)    .m(function (Command, cs, config, o) {    return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];})    .s("AWSChronosService", "GetScheduleGroup", {})    .n("SchedulerClient", "GetScheduleGroupCommand")    .sc(schemas_0.GetScheduleGroup$)    .build() {} class ListScheduleGroupsCommand extends client.Command    .classBuilder()    .ep(commonParams)    .m(function (Command, cs, config, o) {    return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];})    .s("AWSChronosService", "ListScheduleGroups", {})    .n("SchedulerClient", "ListScheduleGroupsCommand")    .sc(schemas_0.ListScheduleGroups$)    .build() {} class ListSchedulesCommand extends client.Command    .classBuilder()    .ep(commonParams)    .m(function (Command, cs, config, o) {    return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];})    .s("AWSChronosService", "ListSchedules", {})    .n("SchedulerClient", "ListSchedulesCommand")    .sc(schemas_0.ListSchedules$)    .build() {} class ListTagsForResourceCommand extends client.Command    .classBuilder()    .ep(commonParams)    .m(function (Command, cs, config, o) {    return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];})    .s("AWSChronosService", "ListTagsForResource", {})    .n("SchedulerClient", "ListTagsForResourceCommand")    .sc(schemas_0.ListTagsForResource$)    .build() {} class TagResourceCommand extends client.Command    .classBuilder()    .ep(commonParams)    .m(function (Command, cs, config, o) {    return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];})    .s("AWSChronosService", "TagResource", {})    .n("SchedulerClient", "TagResourceCommand")    .sc(schemas_0.TagResource$)    .build() {} class UntagResourceCommand extends client.Command    .classBuilder()    .ep(commonParams)    .m(function (Command, cs, config, o) {    return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];})    .s("AWSChronosService", "UntagResource", {})    .n("SchedulerClient", "UntagResourceCommand")    .sc(schemas_0.UntagResource$)    .build() {} class UpdateScheduleCommand extends client.Command    .classBuilder()    .ep(commonParams)    .m(function (Command, cs, config, o) {    return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];})    .s("AWSChronosService", "UpdateSchedule", {})    .n("SchedulerClient", "UpdateScheduleCommand")    .sc(schemas_0.UpdateSchedule$)    .build() {} const paginateListScheduleGroups = core.createPaginator(SchedulerClient, ListScheduleGroupsCommand, "NextToken", "NextToken", "MaxResults"); const paginateListSchedules = core.createPaginator(SchedulerClient, ListSchedulesCommand, "NextToken", "NextToken", "MaxResults"); const commands = {    CreateScheduleCommand,    CreateScheduleGroupCommand,    DeleteScheduleCommand,    DeleteScheduleGroupCommand,    GetScheduleCommand,    GetScheduleGroupCommand,    ListScheduleGroupsCommand,    ListSchedulesCommand,    ListTagsForResourceCommand,    TagResourceCommand,    UntagResourceCommand,    UpdateScheduleCommand,};const paginators = {    paginateListScheduleGroups,    paginateListSchedules,};class Scheduler extends SchedulerClient {}client.createAggregatedClient(commands, Scheduler, { paginators }); const ActionAfterCompletion = {    DELETE: "DELETE",    NONE: "NONE",};const AssignPublicIp = {    DISABLED: "DISABLED",    ENABLED: "ENABLED",};const FlexibleTimeWindowMode = {    FLEXIBLE: "FLEXIBLE",    OFF: "OFF",};const ScheduleState = {    DISABLED: "DISABLED",    ENABLED: "ENABLED",};const LaunchType = {    EC2: "EC2",    EXTERNAL: "EXTERNAL",    FARGATE: "FARGATE",};const PlacementConstraintType = {    DISTINCT_INSTANCE: "distinctInstance",    MEMBER_OF: "memberOf",};const PlacementStrategyType = {    BINPACK: "binpack",    RANDOM: "random",    SPREAD: "spread",};const PropagateTags = {    TASK_DEFINITION: "TASK_DEFINITION",};const ScheduleGroupState = {    ACTIVE: "ACTIVE",    DELETING: "DELETING",}; exports.$Command = client.Command;exports.__Client = client.Client;exports.SchedulerServiceException = SchedulerServiceException.SchedulerServiceException;exports.ActionAfterCompletion = ActionAfterCompletion;exports.AssignPublicIp = AssignPublicIp;exports.CreateScheduleCommand = CreateScheduleCommand;exports.CreateScheduleGroupCommand = CreateScheduleGroupCommand;exports.DeleteScheduleCommand = DeleteScheduleCommand;exports.DeleteScheduleGroupCommand = DeleteScheduleGroupCommand;exports.FlexibleTimeWindowMode = FlexibleTimeWindowMode;exports.GetScheduleCommand = GetScheduleCommand;exports.GetScheduleGroupCommand = GetScheduleGroupCommand;exports.LaunchType = LaunchType;exports.ListScheduleGroupsCommand = ListScheduleGroupsCommand;exports.ListSchedulesCommand = ListSchedulesCommand;exports.ListTagsForResourceCommand = ListTagsForResourceCommand;exports.PlacementConstraintType = PlacementConstraintType;exports.PlacementStrategyType = PlacementStrategyType;exports.PropagateTags = PropagateTags;exports.ScheduleGroupState = ScheduleGroupState;exports.ScheduleState = ScheduleState;exports.Scheduler = Scheduler;exports.SchedulerClient = SchedulerClient;exports.TagResourceCommand = TagResourceCommand;exports.UntagResourceCommand = UntagResourceCommand;exports.UpdateScheduleCommand = UpdateScheduleCommand;exports.paginateListScheduleGroups = paginateListScheduleGroups;exports.paginateListSchedules = paginateListSchedules;Object.prototype.hasOwnProperty.call(schemas_0, '__proto__') &&    !Object.prototype.hasOwnProperty.call(exports, '__proto__') &&    Object.defineProperty(exports, '__proto__', {        enumerable: true,        value: schemas_0['__proto__']    }); Object.keys(schemas_0).forEach(function (k) {    if (k !== 'default' && !Object.prototype.hasOwnProperty.call(exports, k)) exports[k] = schemas_0[k];});Object.prototype.hasOwnProperty.call(errors, '__proto__') &&    !Object.prototype.hasOwnProperty.call(exports, '__proto__') &&    Object.defineProperty(exports, '__proto__', {        enumerable: true,        value: errors['__proto__']    }); Object.keys(errors).forEach(function (k) {    if (k !== 'default' && !Object.prototype.hasOwnProperty.call(exports, k)) exports[k] = errors[k];});