File Explorer

/proc/self/root/proc/self/root/var/runtime/node_modules/@aws-sdk/client-pipes/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.7 KB · 435 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 PipesServiceException = require('./models/PipesServiceException'); const resolveClientEndpointParameters = (options) => {    return Object.assign(options, {        useDualstackEndpoint: options.useDualstackEndpoint ?? false,        useFipsEndpoint: options.useFipsEndpoint ?? false,        defaultSigningName: "pipes",    });};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 PipesClient 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.defaultPipesHttpAuthSchemeParametersProvider,            identityProviderConfigProvider: async (config) => new core.DefaultIdentityProviderConfig({                "aws.auth#sigv4": config.credentials,            }),        }));        this.middlewareStack.use(core.getHttpSigningPlugin(this.config));    }    destroy() {        super.destroy();    }} class CreatePipeCommand extends client.Command    .classBuilder()    .ep(commonParams)    .m(function (Command, cs, config, o) {    return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];})    .s("Pipes", "CreatePipe", {})    .n("PipesClient", "CreatePipeCommand")    .sc(schemas_0.CreatePipe$)    .build() {} class DeletePipeCommand extends client.Command    .classBuilder()    .ep(commonParams)    .m(function (Command, cs, config, o) {    return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];})    .s("Pipes", "DeletePipe", {})    .n("PipesClient", "DeletePipeCommand")    .sc(schemas_0.DeletePipe$)    .build() {} class DescribePipeCommand extends client.Command    .classBuilder()    .ep(commonParams)    .m(function (Command, cs, config, o) {    return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];})    .s("Pipes", "DescribePipe", {})    .n("PipesClient", "DescribePipeCommand")    .sc(schemas_0.DescribePipe$)    .build() {} class ListPipesCommand extends client.Command    .classBuilder()    .ep(commonParams)    .m(function (Command, cs, config, o) {    return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];})    .s("Pipes", "ListPipes", {})    .n("PipesClient", "ListPipesCommand")    .sc(schemas_0.ListPipes$)    .build() {} class ListTagsForResourceCommand extends client.Command    .classBuilder()    .ep(commonParams)    .m(function (Command, cs, config, o) {    return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];})    .s("Pipes", "ListTagsForResource", {})    .n("PipesClient", "ListTagsForResourceCommand")    .sc(schemas_0.ListTagsForResource$)    .build() {} class StartPipeCommand extends client.Command    .classBuilder()    .ep(commonParams)    .m(function (Command, cs, config, o) {    return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];})    .s("Pipes", "StartPipe", {})    .n("PipesClient", "StartPipeCommand")    .sc(schemas_0.StartPipe$)    .build() {} class StopPipeCommand extends client.Command    .classBuilder()    .ep(commonParams)    .m(function (Command, cs, config, o) {    return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];})    .s("Pipes", "StopPipe", {})    .n("PipesClient", "StopPipeCommand")    .sc(schemas_0.StopPipe$)    .build() {} class TagResourceCommand extends client.Command    .classBuilder()    .ep(commonParams)    .m(function (Command, cs, config, o) {    return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];})    .s("Pipes", "TagResource", {})    .n("PipesClient", "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("Pipes", "UntagResource", {})    .n("PipesClient", "UntagResourceCommand")    .sc(schemas_0.UntagResource$)    .build() {} class UpdatePipeCommand extends client.Command    .classBuilder()    .ep(commonParams)    .m(function (Command, cs, config, o) {    return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];})    .s("Pipes", "UpdatePipe", {})    .n("PipesClient", "UpdatePipeCommand")    .sc(schemas_0.UpdatePipe$)    .build() {} const paginateListPipes = core.createPaginator(PipesClient, ListPipesCommand, "NextToken", "NextToken", "Limit"); const commands = {    CreatePipeCommand,    DeletePipeCommand,    DescribePipeCommand,    ListPipesCommand,    ListTagsForResourceCommand,    StartPipeCommand,    StopPipeCommand,    TagResourceCommand,    UntagResourceCommand,    UpdatePipeCommand,};const paginators = {    paginateListPipes,};class Pipes extends PipesClient {}client.createAggregatedClient(commands, Pipes, { paginators }); const AssignPublicIp = {    DISABLED: "DISABLED",    ENABLED: "ENABLED",};const BatchResourceRequirementType = {    GPU: "GPU",    MEMORY: "MEMORY",    VCPU: "VCPU",};const BatchJobDependencyType = {    N_TO_N: "N_TO_N",    SEQUENTIAL: "SEQUENTIAL",};const RequestedPipeState = {    RUNNING: "RUNNING",    STOPPED: "STOPPED",};const IncludeExecutionDataOption = {    ALL: "ALL",};const LogLevel = {    ERROR: "ERROR",    INFO: "INFO",    OFF: "OFF",    TRACE: "TRACE",};const S3OutputFormat = {    JSON: "json",    PLAIN: "plain",    W3C: "w3c",};const OnPartialBatchItemFailureStreams = {    AUTOMATIC_BISECT: "AUTOMATIC_BISECT",};const DynamoDBStreamStartPosition = {    LATEST: "LATEST",    TRIM_HORIZON: "TRIM_HORIZON",};const KinesisStreamStartPosition = {    AT_TIMESTAMP: "AT_TIMESTAMP",    LATEST: "LATEST",    TRIM_HORIZON: "TRIM_HORIZON",};const MSKStartPosition = {    LATEST: "LATEST",    TRIM_HORIZON: "TRIM_HORIZON",};const SelfManagedKafkaStartPosition = {    LATEST: "LATEST",    TRIM_HORIZON: "TRIM_HORIZON",};const LaunchType = {    EC2: "EC2",    EXTERNAL: "EXTERNAL",    FARGATE: "FARGATE",};const EcsEnvironmentFileType = {    s3: "s3",};const EcsResourceRequirementType = {    GPU: "GPU",    InferenceAccelerator: "InferenceAccelerator",};const PlacementConstraintType = {    DISTINCT_INSTANCE: "distinctInstance",    MEMBER_OF: "memberOf",};const PlacementStrategyType = {    BINPACK: "binpack",    RANDOM: "random",    SPREAD: "spread",};const PropagateTags = {    TASK_DEFINITION: "TASK_DEFINITION",};const PipeTargetInvocationType = {    FIRE_AND_FORGET: "FIRE_AND_FORGET",    REQUEST_RESPONSE: "REQUEST_RESPONSE",};const DimensionValueType = {    VARCHAR: "VARCHAR",};const EpochTimeUnit = {    MICROSECONDS: "MICROSECONDS",    MILLISECONDS: "MILLISECONDS",    NANOSECONDS: "NANOSECONDS",    SECONDS: "SECONDS",};const MeasureValueType = {    BIGINT: "BIGINT",    BOOLEAN: "BOOLEAN",    DOUBLE: "DOUBLE",    TIMESTAMP: "TIMESTAMP",    VARCHAR: "VARCHAR",};const TimeFieldType = {    EPOCH: "EPOCH",    TIMESTAMP_FORMAT: "TIMESTAMP_FORMAT",};const PipeState = {    CREATE_FAILED: "CREATE_FAILED",    CREATE_ROLLBACK_FAILED: "CREATE_ROLLBACK_FAILED",    CREATING: "CREATING",    DELETE_FAILED: "DELETE_FAILED",    DELETE_ROLLBACK_FAILED: "DELETE_ROLLBACK_FAILED",    DELETING: "DELETING",    RUNNING: "RUNNING",    STARTING: "STARTING",    START_FAILED: "START_FAILED",    STOPPED: "STOPPED",    STOPPING: "STOPPING",    STOP_FAILED: "STOP_FAILED",    UPDATE_FAILED: "UPDATE_FAILED",    UPDATE_ROLLBACK_FAILED: "UPDATE_ROLLBACK_FAILED",    UPDATING: "UPDATING",};const RequestedPipeStateDescribeResponse = {    DELETED: "DELETED",    RUNNING: "RUNNING",    STOPPED: "STOPPED",}; exports.$Command = client.Command;exports.__Client = client.Client;exports.PipesServiceException = PipesServiceException.PipesServiceException;exports.AssignPublicIp = AssignPublicIp;exports.BatchJobDependencyType = BatchJobDependencyType;exports.BatchResourceRequirementType = BatchResourceRequirementType;exports.CreatePipeCommand = CreatePipeCommand;exports.DeletePipeCommand = DeletePipeCommand;exports.DescribePipeCommand = DescribePipeCommand;exports.DimensionValueType = DimensionValueType;exports.DynamoDBStreamStartPosition = DynamoDBStreamStartPosition;exports.EcsEnvironmentFileType = EcsEnvironmentFileType;exports.EcsResourceRequirementType = EcsResourceRequirementType;exports.EpochTimeUnit = EpochTimeUnit;exports.IncludeExecutionDataOption = IncludeExecutionDataOption;exports.KinesisStreamStartPosition = KinesisStreamStartPosition;exports.LaunchType = LaunchType;exports.ListPipesCommand = ListPipesCommand;exports.ListTagsForResourceCommand = ListTagsForResourceCommand;exports.LogLevel = LogLevel;exports.MSKStartPosition = MSKStartPosition;exports.MeasureValueType = MeasureValueType;exports.OnPartialBatchItemFailureStreams = OnPartialBatchItemFailureStreams;exports.PipeState = PipeState;exports.PipeTargetInvocationType = PipeTargetInvocationType;exports.Pipes = Pipes;exports.PipesClient = PipesClient;exports.PlacementConstraintType = PlacementConstraintType;exports.PlacementStrategyType = PlacementStrategyType;exports.PropagateTags = PropagateTags;exports.RequestedPipeState = RequestedPipeState;exports.RequestedPipeStateDescribeResponse = RequestedPipeStateDescribeResponse;exports.S3OutputFormat = S3OutputFormat;exports.SelfManagedKafkaStartPosition = SelfManagedKafkaStartPosition;exports.StartPipeCommand = StartPipeCommand;exports.StopPipeCommand = StopPipeCommand;exports.TagResourceCommand = TagResourceCommand;exports.TimeFieldType = TimeFieldType;exports.UntagResourceCommand = UntagResourceCommand;exports.UpdatePipeCommand = UpdatePipeCommand;exports.paginateListPipes = paginateListPipes;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];});