File Explorer

/proc/self/root/proc/self/root/var/runtime/node_modules/@aws-sdk/client-mwaa/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.js14.1 KB · 400 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 MWAAServiceException = require('./models/MWAAServiceException'); const resolveClientEndpointParameters = (options) => {    return Object.assign(options, {        useDualstackEndpoint: options.useDualstackEndpoint ?? false,        useFipsEndpoint: options.useFipsEndpoint ?? false,        defaultSigningName: "airflow",    });};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 MWAAClient 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.defaultMWAAHttpAuthSchemeParametersProvider,            identityProviderConfigProvider: async (config) => new core.DefaultIdentityProviderConfig({                "aws.auth#sigv4": config.credentials,            }),        }));        this.middlewareStack.use(core.getHttpSigningPlugin(this.config));    }    destroy() {        super.destroy();    }} class CreateCliTokenCommand extends client.Command    .classBuilder()    .ep(commonParams)    .m(function (Command, cs, config, o) {    return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];})    .s("AmazonMWAA", "CreateCliToken", {})    .n("MWAAClient", "CreateCliTokenCommand")    .sc(schemas_0.CreateCliToken$)    .build() {} class CreateEnvironmentCommand extends client.Command    .classBuilder()    .ep(commonParams)    .m(function (Command, cs, config, o) {    return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];})    .s("AmazonMWAA", "CreateEnvironment", {})    .n("MWAAClient", "CreateEnvironmentCommand")    .sc(schemas_0.CreateEnvironment$)    .build() {} class CreateWebLoginTokenCommand extends client.Command    .classBuilder()    .ep(commonParams)    .m(function (Command, cs, config, o) {    return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];})    .s("AmazonMWAA", "CreateWebLoginToken", {})    .n("MWAAClient", "CreateWebLoginTokenCommand")    .sc(schemas_0.CreateWebLoginToken$)    .build() {} class DeleteEnvironmentCommand extends client.Command    .classBuilder()    .ep(commonParams)    .m(function (Command, cs, config, o) {    return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];})    .s("AmazonMWAA", "DeleteEnvironment", {})    .n("MWAAClient", "DeleteEnvironmentCommand")    .sc(schemas_0.DeleteEnvironment$)    .build() {} class GetEnvironmentCommand extends client.Command    .classBuilder()    .ep(commonParams)    .m(function (Command, cs, config, o) {    return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];})    .s("AmazonMWAA", "GetEnvironment", {})    .n("MWAAClient", "GetEnvironmentCommand")    .sc(schemas_0.GetEnvironment$)    .build() {} class InvokeRestApiCommand extends client.Command    .classBuilder()    .ep(commonParams)    .m(function (Command, cs, config, o) {    return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];})    .s("AmazonMWAA", "InvokeRestApi", {})    .n("MWAAClient", "InvokeRestApiCommand")    .sc(schemas_0.InvokeRestApi$)    .build() {} class ListEnvironmentsCommand extends client.Command    .classBuilder()    .ep(commonParams)    .m(function (Command, cs, config, o) {    return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];})    .s("AmazonMWAA", "ListEnvironments", {})    .n("MWAAClient", "ListEnvironmentsCommand")    .sc(schemas_0.ListEnvironments$)    .build() {} class ListTagsForResourceCommand extends client.Command    .classBuilder()    .ep(commonParams)    .m(function (Command, cs, config, o) {    return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];})    .s("AmazonMWAA", "ListTagsForResource", {})    .n("MWAAClient", "ListTagsForResourceCommand")    .sc(schemas_0.ListTagsForResource$)    .build() {} class PublishMetricsCommand extends client.Command    .classBuilder()    .ep(commonParams)    .m(function (Command, cs, config, o) {    return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];})    .s("AmazonMWAA", "PublishMetrics", {})    .n("MWAAClient", "PublishMetricsCommand")    .sc(schemas_0.PublishMetrics$)    .build() {} class TagResourceCommand extends client.Command    .classBuilder()    .ep(commonParams)    .m(function (Command, cs, config, o) {    return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];})    .s("AmazonMWAA", "TagResource", {})    .n("MWAAClient", "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("AmazonMWAA", "UntagResource", {})    .n("MWAAClient", "UntagResourceCommand")    .sc(schemas_0.UntagResource$)    .build() {} class UpdateEnvironmentCommand extends client.Command    .classBuilder()    .ep(commonParams)    .m(function (Command, cs, config, o) {    return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];})    .s("AmazonMWAA", "UpdateEnvironment", {})    .n("MWAAClient", "UpdateEnvironmentCommand")    .sc(schemas_0.UpdateEnvironment$)    .build() {} const paginateListEnvironments = core.createPaginator(MWAAClient, ListEnvironmentsCommand, "NextToken", "NextToken", "MaxResults"); const commands = {    CreateCliTokenCommand,    CreateEnvironmentCommand,    CreateWebLoginTokenCommand,    DeleteEnvironmentCommand,    GetEnvironmentCommand,    InvokeRestApiCommand,    ListEnvironmentsCommand,    ListTagsForResourceCommand,    PublishMetricsCommand,    TagResourceCommand,    UntagResourceCommand,    UpdateEnvironmentCommand,};const paginators = {    paginateListEnvironments,};class MWAA extends MWAAClient {}client.createAggregatedClient(commands, MWAA, { paginators }); const EndpointManagement = {    CUSTOMER: "CUSTOMER",    SERVICE: "SERVICE",};const LoggingLevel = {    CRITICAL: "CRITICAL",    DEBUG: "DEBUG",    ERROR: "ERROR",    INFO: "INFO",    WARNING: "WARNING",};const WebserverAccessMode = {    PRIVATE_ONLY: "PRIVATE_ONLY",    PUBLIC_AND_PRIVATE: "PUBLIC_AND_PRIVATE",    PUBLIC_ONLY: "PUBLIC_ONLY",};const UpdateStatus = {    FAILED: "FAILED",    PENDING: "PENDING",    SUCCESS: "SUCCESS",};const WorkerReplacementStrategy = {    FORCED: "FORCED",    GRACEFUL: "GRACEFUL",};const EnvironmentStatus = {    AVAILABLE: "AVAILABLE",    CREATE_FAILED: "CREATE_FAILED",    CREATING: "CREATING",    CREATING_SNAPSHOT: "CREATING_SNAPSHOT",    DELETED: "DELETED",    DELETING: "DELETING",    MAINTENANCE: "MAINTENANCE",    PENDING: "PENDING",    ROLLING_BACK: "ROLLING_BACK",    UNAVAILABLE: "UNAVAILABLE",    UPDATE_FAILED: "UPDATE_FAILED",    UPDATING: "UPDATING",};const RestApiMethod = {    DELETE: "DELETE",    GET: "GET",    PATCH: "PATCH",    POST: "POST",    PUT: "PUT",};const Unit = {    BITS: "Bits",    BITS_PER_SECOND: "Bits/Second",    BYTES: "Bytes",    BYTES_PER_SECOND: "Bytes/Second",    COUNT: "Count",    COUNT_PER_SECOND: "Count/Second",    GIGABITS: "Gigabits",    GIGABITS_PER_SECOND: "Gigabits/Second",    GIGABYTES: "Gigabytes",    GIGABYTES_PER_SECOND: "Gigabytes/Second",    KILOBITS: "Kilobits",    KILOBITS_PER_SECOND: "Kilobits/Second",    KILOBYTES: "Kilobytes",    KILOBYTES_PER_SECOND: "Kilobytes/Second",    MEGABITS: "Megabits",    MEGABITS_PER_SECOND: "Megabits/Second",    MEGABYTES: "Megabytes",    MEGABYTES_PER_SECOND: "Megabytes/Second",    MICROSECONDS: "Microseconds",    MILLISECONDS: "Milliseconds",    NONE: "None",    PERCENT: "Percent",    SECONDS: "Seconds",    TERABITS: "Terabits",    TERABITS_PER_SECOND: "Terabits/Second",    TERABYTES: "Terabytes",    TERABYTES_PER_SECOND: "Terabytes/Second",}; exports.$Command = client.Command;exports.__Client = client.Client;exports.MWAAServiceException = MWAAServiceException.MWAAServiceException;exports.CreateCliTokenCommand = CreateCliTokenCommand;exports.CreateEnvironmentCommand = CreateEnvironmentCommand;exports.CreateWebLoginTokenCommand = CreateWebLoginTokenCommand;exports.DeleteEnvironmentCommand = DeleteEnvironmentCommand;exports.EndpointManagement = EndpointManagement;exports.EnvironmentStatus = EnvironmentStatus;exports.GetEnvironmentCommand = GetEnvironmentCommand;exports.InvokeRestApiCommand = InvokeRestApiCommand;exports.ListEnvironmentsCommand = ListEnvironmentsCommand;exports.ListTagsForResourceCommand = ListTagsForResourceCommand;exports.LoggingLevel = LoggingLevel;exports.MWAA = MWAA;exports.MWAAClient = MWAAClient;exports.PublishMetricsCommand = PublishMetricsCommand;exports.RestApiMethod = RestApiMethod;exports.TagResourceCommand = TagResourceCommand;exports.Unit = Unit;exports.UntagResourceCommand = UntagResourceCommand;exports.UpdateEnvironmentCommand = UpdateEnvironmentCommand;exports.UpdateStatus = UpdateStatus;exports.WebserverAccessMode = WebserverAccessMode;exports.WorkerReplacementStrategy = WorkerReplacementStrategy;exports.paginateListEnvironments = paginateListEnvironments;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];});