File Explorer

/proc/self/root/proc/self/root/var/runtime/node_modules/@aws-sdk/client-rbin/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.js11.9 KB · 331 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 RbinServiceException = require('./models/RbinServiceException'); const resolveClientEndpointParameters = (options) => {    return Object.assign(options, {        useDualstackEndpoint: options.useDualstackEndpoint ?? false,        useFipsEndpoint: options.useFipsEndpoint ?? false,        defaultSigningName: "rbin",    });};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 RbinClient 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.defaultRbinHttpAuthSchemeParametersProvider,            identityProviderConfigProvider: async (config) => new core.DefaultIdentityProviderConfig({                "aws.auth#sigv4": config.credentials,            }),        }));        this.middlewareStack.use(core.getHttpSigningPlugin(this.config));    }    destroy() {        super.destroy();    }} class CreateRuleCommand extends client.Command    .classBuilder()    .ep(commonParams)    .m(function (Command, cs, config, o) {    return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];})    .s("AmazonRecycleBin", "CreateRule", {})    .n("RbinClient", "CreateRuleCommand")    .sc(schemas_0.CreateRule$)    .build() {} class DeleteRuleCommand extends client.Command    .classBuilder()    .ep(commonParams)    .m(function (Command, cs, config, o) {    return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];})    .s("AmazonRecycleBin", "DeleteRule", {})    .n("RbinClient", "DeleteRuleCommand")    .sc(schemas_0.DeleteRule$)    .build() {} class GetRuleCommand extends client.Command    .classBuilder()    .ep(commonParams)    .m(function (Command, cs, config, o) {    return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];})    .s("AmazonRecycleBin", "GetRule", {})    .n("RbinClient", "GetRuleCommand")    .sc(schemas_0.GetRule$)    .build() {} class ListRulesCommand extends client.Command    .classBuilder()    .ep(commonParams)    .m(function (Command, cs, config, o) {    return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];})    .s("AmazonRecycleBin", "ListRules", {})    .n("RbinClient", "ListRulesCommand")    .sc(schemas_0.ListRules$)    .build() {} class ListTagsForResourceCommand extends client.Command    .classBuilder()    .ep(commonParams)    .m(function (Command, cs, config, o) {    return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];})    .s("AmazonRecycleBin", "ListTagsForResource", {})    .n("RbinClient", "ListTagsForResourceCommand")    .sc(schemas_0.ListTagsForResource$)    .build() {} class LockRuleCommand extends client.Command    .classBuilder()    .ep(commonParams)    .m(function (Command, cs, config, o) {    return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];})    .s("AmazonRecycleBin", "LockRule", {})    .n("RbinClient", "LockRuleCommand")    .sc(schemas_0.LockRule$)    .build() {} class TagResourceCommand extends client.Command    .classBuilder()    .ep(commonParams)    .m(function (Command, cs, config, o) {    return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];})    .s("AmazonRecycleBin", "TagResource", {})    .n("RbinClient", "TagResourceCommand")    .sc(schemas_0.TagResource$)    .build() {} class UnlockRuleCommand extends client.Command    .classBuilder()    .ep(commonParams)    .m(function (Command, cs, config, o) {    return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];})    .s("AmazonRecycleBin", "UnlockRule", {})    .n("RbinClient", "UnlockRuleCommand")    .sc(schemas_0.UnlockRule$)    .build() {} class UntagResourceCommand extends client.Command    .classBuilder()    .ep(commonParams)    .m(function (Command, cs, config, o) {    return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];})    .s("AmazonRecycleBin", "UntagResource", {})    .n("RbinClient", "UntagResourceCommand")    .sc(schemas_0.UntagResource$)    .build() {} class UpdateRuleCommand extends client.Command    .classBuilder()    .ep(commonParams)    .m(function (Command, cs, config, o) {    return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];})    .s("AmazonRecycleBin", "UpdateRule", {})    .n("RbinClient", "UpdateRuleCommand")    .sc(schemas_0.UpdateRule$)    .build() {} const paginateListRules = core.createPaginator(RbinClient, ListRulesCommand, "NextToken", "NextToken", "MaxResults"); const commands = {    CreateRuleCommand,    DeleteRuleCommand,    GetRuleCommand,    ListRulesCommand,    ListTagsForResourceCommand,    LockRuleCommand,    TagResourceCommand,    UnlockRuleCommand,    UntagResourceCommand,    UpdateRuleCommand,};const paginators = {    paginateListRules,};class Rbin extends RbinClient {}client.createAggregatedClient(commands, Rbin, { paginators }); const UnlockDelayUnit = {    DAYS: "DAYS",};const ResourceType = {    EBS_SNAPSHOT: "EBS_SNAPSHOT",    EBS_VOLUME: "EBS_VOLUME",    EC2_IMAGE: "EC2_IMAGE",};const RetentionPeriodUnit = {    DAYS: "DAYS",};const LockState = {    LOCKED: "locked",    PENDING_UNLOCK: "pending_unlock",    UNLOCKED: "unlocked",};const RuleStatus = {    AVAILABLE: "available",    PENDING: "pending",};const ServiceQuotaExceededExceptionReason = {    SERVICE_QUOTA_EXCEEDED: "SERVICE_QUOTA_EXCEEDED",};const ValidationExceptionReason = {    INVALID_PAGE_TOKEN: "INVALID_PAGE_TOKEN",    INVALID_PARAMETER_VALUE: "INVALID_PARAMETER_VALUE",};const ConflictExceptionReason = {    INVALID_RULE_STATE: "INVALID_RULE_STATE",};const ResourceNotFoundExceptionReason = {    RULE_NOT_FOUND: "RULE_NOT_FOUND",}; exports.$Command = client.Command;exports.__Client = client.Client;exports.RbinServiceException = RbinServiceException.RbinServiceException;exports.ConflictExceptionReason = ConflictExceptionReason;exports.CreateRuleCommand = CreateRuleCommand;exports.DeleteRuleCommand = DeleteRuleCommand;exports.GetRuleCommand = GetRuleCommand;exports.ListRulesCommand = ListRulesCommand;exports.ListTagsForResourceCommand = ListTagsForResourceCommand;exports.LockRuleCommand = LockRuleCommand;exports.LockState = LockState;exports.Rbin = Rbin;exports.RbinClient = RbinClient;exports.ResourceNotFoundExceptionReason = ResourceNotFoundExceptionReason;exports.ResourceType = ResourceType;exports.RetentionPeriodUnit = RetentionPeriodUnit;exports.RuleStatus = RuleStatus;exports.ServiceQuotaExceededExceptionReason = ServiceQuotaExceededExceptionReason;exports.TagResourceCommand = TagResourceCommand;exports.UnlockDelayUnit = UnlockDelayUnit;exports.UnlockRuleCommand = UnlockRuleCommand;exports.UntagResourceCommand = UntagResourceCommand;exports.UpdateRuleCommand = UpdateRuleCommand;exports.ValidationExceptionReason = ValidationExceptionReason;exports.paginateListRules = paginateListRules;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];});