/proc/self/root/proc/self/root/var/runtime/node_modules/@aws-sdk/client-mpa/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 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 MPAServiceException = require('./models/MPAServiceException'); const resolveClientEndpointParameters = (options) => { return Object.assign(options, { useFipsEndpoint: options.useFipsEndpoint ?? false, defaultSigningName: "mpa", });};const commonParams = { UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" }, Endpoint: { type: "builtInParams", name: "endpoint" }, Region: { type: "builtInParams", name: "region" },}; 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 MPAClient 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.defaultMPAHttpAuthSchemeParametersProvider, identityProviderConfigProvider: async (config) => new core.DefaultIdentityProviderConfig({ "aws.auth#sigv4": config.credentials, }), })); this.middlewareStack.use(core.getHttpSigningPlugin(this.config)); } destroy() { super.destroy(); }} class CancelSessionCommand extends client.Command .classBuilder() .ep(commonParams) .m(function (Command, cs, config, o) { return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];}) .s("AWSFluffyCoreService", "CancelSession", {}) .n("MPAClient", "CancelSessionCommand") .sc(schemas_0.CancelSession$) .build() {} class CreateApprovalTeamCommand extends client.Command .classBuilder() .ep(commonParams) .m(function (Command, cs, config, o) { return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];}) .s("AWSFluffyCoreService", "CreateApprovalTeam", {}) .n("MPAClient", "CreateApprovalTeamCommand") .sc(schemas_0.CreateApprovalTeam$) .build() {} class CreateIdentitySourceCommand extends client.Command .classBuilder() .ep(commonParams) .m(function (Command, cs, config, o) { return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];}) .s("AWSFluffyCoreService", "CreateIdentitySource", {}) .n("MPAClient", "CreateIdentitySourceCommand") .sc(schemas_0.CreateIdentitySource$) .build() {} class DeleteIdentitySourceCommand extends client.Command .classBuilder() .ep(commonParams) .m(function (Command, cs, config, o) { return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];}) .s("AWSFluffyCoreService", "DeleteIdentitySource", {}) .n("MPAClient", "DeleteIdentitySourceCommand") .sc(schemas_0.DeleteIdentitySource$) .build() {} class DeleteInactiveApprovalTeamVersionCommand extends client.Command .classBuilder() .ep(commonParams) .m(function (Command, cs, config, o) { return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];}) .s("AWSFluffyCoreService", "DeleteInactiveApprovalTeamVersion", {}) .n("MPAClient", "DeleteInactiveApprovalTeamVersionCommand") .sc(schemas_0.DeleteInactiveApprovalTeamVersion$) .build() {} class GetApprovalTeamCommand extends client.Command .classBuilder() .ep(commonParams) .m(function (Command, cs, config, o) { return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];}) .s("AWSFluffyCoreService", "GetApprovalTeam", {}) .n("MPAClient", "GetApprovalTeamCommand") .sc(schemas_0.GetApprovalTeam$) .build() {} class GetIdentitySourceCommand extends client.Command .classBuilder() .ep(commonParams) .m(function (Command, cs, config, o) { return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];}) .s("AWSFluffyCoreService", "GetIdentitySource", {}) .n("MPAClient", "GetIdentitySourceCommand") .sc(schemas_0.GetIdentitySource$) .build() {} class GetPolicyVersionCommand extends client.Command .classBuilder() .ep(commonParams) .m(function (Command, cs, config, o) { return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];}) .s("AWSFluffyCoreService", "GetPolicyVersion", {}) .n("MPAClient", "GetPolicyVersionCommand") .sc(schemas_0.GetPolicyVersion$) .build() {} class GetResourcePolicyCommand extends client.Command .classBuilder() .ep(commonParams) .m(function (Command, cs, config, o) { return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];}) .s("AWSFluffyCoreService", "GetResourcePolicy", {}) .n("MPAClient", "GetResourcePolicyCommand") .sc(schemas_0.GetResourcePolicy$) .build() {} class GetSessionCommand extends client.Command .classBuilder() .ep(commonParams) .m(function (Command, cs, config, o) { return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];}) .s("AWSFluffyCoreService", "GetSession", {}) .n("MPAClient", "GetSessionCommand") .sc(schemas_0.GetSession$) .build() {} class ListApprovalTeamsCommand extends client.Command .classBuilder() .ep(commonParams) .m(function (Command, cs, config, o) { return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];}) .s("AWSFluffyCoreService", "ListApprovalTeams", {}) .n("MPAClient", "ListApprovalTeamsCommand") .sc(schemas_0.ListApprovalTeams$) .build() {} class ListIdentitySourcesCommand extends client.Command .classBuilder() .ep(commonParams) .m(function (Command, cs, config, o) { return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];}) .s("AWSFluffyCoreService", "ListIdentitySources", {}) .n("MPAClient", "ListIdentitySourcesCommand") .sc(schemas_0.ListIdentitySources$) .build() {} class ListPoliciesCommand extends client.Command .classBuilder() .ep(commonParams) .m(function (Command, cs, config, o) { return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];}) .s("AWSFluffyCoreService", "ListPolicies", {}) .n("MPAClient", "ListPoliciesCommand") .sc(schemas_0.ListPolicies$) .build() {} class ListPolicyVersionsCommand extends client.Command .classBuilder() .ep(commonParams) .m(function (Command, cs, config, o) { return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];}) .s("AWSFluffyCoreService", "ListPolicyVersions", {}) .n("MPAClient", "ListPolicyVersionsCommand") .sc(schemas_0.ListPolicyVersions$) .build() {} class ListResourcePoliciesCommand extends client.Command .classBuilder() .ep(commonParams) .m(function (Command, cs, config, o) { return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];}) .s("AWSFluffyCoreService", "ListResourcePolicies", {}) .n("MPAClient", "ListResourcePoliciesCommand") .sc(schemas_0.ListResourcePolicies$) .build() {} class ListSessionsCommand extends client.Command .classBuilder() .ep(commonParams) .m(function (Command, cs, config, o) { return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];}) .s("AWSFluffyCoreService", "ListSessions", {}) .n("MPAClient", "ListSessionsCommand") .sc(schemas_0.ListSessions$) .build() {} class ListTagsForResourceCommand extends client.Command .classBuilder() .ep(commonParams) .m(function (Command, cs, config, o) { return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];}) .s("AWSFluffyCoreService", "ListTagsForResource", {}) .n("MPAClient", "ListTagsForResourceCommand") .sc(schemas_0.ListTagsForResource$) .build() {} class StartActiveApprovalTeamDeletionCommand extends client.Command .classBuilder() .ep(commonParams) .m(function (Command, cs, config, o) { return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];}) .s("AWSFluffyCoreService", "StartActiveApprovalTeamDeletion", {}) .n("MPAClient", "StartActiveApprovalTeamDeletionCommand") .sc(schemas_0.StartActiveApprovalTeamDeletion$) .build() {} class StartApprovalTeamBaselineCommand extends client.Command .classBuilder() .ep(commonParams) .m(function (Command, cs, config, o) { return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];}) .s("AWSFluffyCoreService", "StartApprovalTeamBaseline", {}) .n("MPAClient", "StartApprovalTeamBaselineCommand") .sc(schemas_0.StartApprovalTeamBaseline$) .build() {} class TagResourceCommand extends client.Command .classBuilder() .ep(commonParams) .m(function (Command, cs, config, o) { return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];}) .s("AWSFluffyCoreService", "TagResource", {}) .n("MPAClient", "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("AWSFluffyCoreService", "UntagResource", {}) .n("MPAClient", "UntagResourceCommand") .sc(schemas_0.UntagResource$) .build() {} class UpdateApprovalTeamCommand extends client.Command .classBuilder() .ep(commonParams) .m(function (Command, cs, config, o) { return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];}) .s("AWSFluffyCoreService", "UpdateApprovalTeam", {}) .n("MPAClient", "UpdateApprovalTeamCommand") .sc(schemas_0.UpdateApprovalTeam$) .build() {} const paginateListApprovalTeams = core.createPaginator(MPAClient, ListApprovalTeamsCommand, "NextToken", "NextToken", "MaxResults"); const paginateListIdentitySources = core.createPaginator(MPAClient, ListIdentitySourcesCommand, "NextToken", "NextToken", "MaxResults"); const paginateListPolicies = core.createPaginator(MPAClient, ListPoliciesCommand, "NextToken", "NextToken", "MaxResults"); const paginateListPolicyVersions = core.createPaginator(MPAClient, ListPolicyVersionsCommand, "NextToken", "NextToken", "MaxResults"); const paginateListResourcePolicies = core.createPaginator(MPAClient, ListResourcePoliciesCommand, "NextToken", "NextToken", "MaxResults"); const paginateListSessions = core.createPaginator(MPAClient, ListSessionsCommand, "NextToken", "NextToken", "MaxResults"); const commands = { CancelSessionCommand, CreateApprovalTeamCommand, CreateIdentitySourceCommand, DeleteIdentitySourceCommand, DeleteInactiveApprovalTeamVersionCommand, GetApprovalTeamCommand, GetIdentitySourceCommand, GetPolicyVersionCommand, GetResourcePolicyCommand, GetSessionCommand, ListApprovalTeamsCommand, ListIdentitySourcesCommand, ListPoliciesCommand, ListPolicyVersionsCommand, ListResourcePoliciesCommand, ListSessionsCommand, ListTagsForResourceCommand, StartActiveApprovalTeamDeletionCommand, StartApprovalTeamBaselineCommand, TagResourceCommand, UntagResourceCommand, UpdateApprovalTeamCommand,};const paginators = { paginateListApprovalTeams, paginateListIdentitySources, paginateListPolicies, paginateListPolicyVersions, paginateListResourcePolicies, paginateListSessions,};class MPA extends MPAClient {}client.createAggregatedClient(commands, MPA, { paginators }); const ActionCompletionStrategy = { AUTO_COMPLETION_UPON_APPROVAL: "AUTO_COMPLETION_UPON_APPROVAL",};const AdditionalSecurityRequirement = { APPROVER_VERIFICATION_REQUIRED: "APPROVER_VERIFICATION_REQUIRED",};const ApproverLastActivity = { BASELINED: "BASELINED", RESPONDED_TO_INVITATION: "RESPONDED_TO_INVITATION", VOTED: "VOTED",};const MfaSyncStatus = { IN_SYNC: "IN_SYNC", OUT_OF_SYNC: "OUT_OF_SYNC",};const MfaType = { EMAIL_OTP: "EMAIL_OTP",};const IdentityStatus = { ACCEPTED: "ACCEPTED", INVALID: "INVALID", PENDING: "PENDING", REJECTED: "REJECTED",};const ApprovalTeamStatus = { ACTIVE: "ACTIVE", DELETING: "DELETING", INACTIVE: "INACTIVE", PENDING: "PENDING",};const ApprovalTeamStatusCode = { DELETE_FAILED_APPROVAL: "DELETE_FAILED_APPROVAL", DELETE_FAILED_VALIDATION: "DELETE_FAILED_VALIDATION", DELETE_PENDING_APPROVAL: "DELETE_PENDING_APPROVAL", FAILED_ACTIVATION: "FAILED_ACTIVATION", FAILED_VALIDATION: "FAILED_VALIDATION", PENDING_ACTIVATION: "PENDING_ACTIVATION", UPDATE_FAILED_ACTIVATION: "UPDATE_FAILED_ACTIVATION", UPDATE_FAILED_APPROVAL: "UPDATE_FAILED_APPROVAL", UPDATE_FAILED_VALIDATION: "UPDATE_FAILED_VALIDATION", UPDATE_PENDING_ACTIVATION: "UPDATE_PENDING_ACTIVATION", UPDATE_PENDING_APPROVAL: "UPDATE_PENDING_APPROVAL", VALIDATING: "VALIDATING",};const UpdateAction = { SYNCHRONIZE_MFA_DEVICES: "SYNCHRONIZE_MFA_DEVICES",};const PolicyType = { AWS_MANAGED: "AWS_MANAGED", AWS_RAM: "AWS_RAM",};const PolicyStatus = { ATTACHABLE: "ATTACHABLE", DEPRECATED: "DEPRECATED",};const IdentitySourceType = { IAM_IDENTITY_CENTER: "IAM_IDENTITY_CENTER",};const IdentitySourceStatus = { ACTIVE: "ACTIVE", CREATING: "CREATING", DELETING: "DELETING", ERROR: "ERROR",};const IdentitySourceStatusCode = { ACCESS_DENIED: "ACCESS_DENIED", DELETION_FAILED: "DELETION_FAILED", IDC_INSTANCE_NOT_FOUND: "IDC_INSTANCE_NOT_FOUND", IDC_INSTANCE_NOT_VALID: "IDC_INSTANCE_NOT_VALID",};const SessionResponse = { APPROVED: "APPROVED", NO_RESPONSE: "NO_RESPONSE", REJECTED: "REJECTED",};const SessionExecutionStatus = { EXECUTED: "EXECUTED", FAILED: "FAILED", PENDING: "PENDING",};const SessionStatus = { APPROVED: "APPROVED", CANCELLED: "CANCELLED", CREATING: "CREATING", FAILED: "FAILED", PENDING: "PENDING",};const SessionStatusCode = { ALL_APPROVERS_IN_SESSION: "ALL_APPROVERS_IN_SESSION", CONFIGURATION_CHANGED: "CONFIGURATION_CHANGED", EXPIRED: "EXPIRED", REJECTED: "REJECTED",};const FilterField = { ACTION_NAME: "ActionName", APPROVAL_TEAM_NAME: "ApprovalTeamName", INITIATION_TIME: "InitiationTime", SESSION_STATUS: "SessionStatus", VOTE: "Vote", VOTING_TIME: "VotingTime",};const Operator = { BETWEEN: "BETWEEN", CONTAINS: "CONTAINS", DOES_NOT_CONTAIN: "NOT_CONTAINS", EQUALS: "EQ", GREATER_THAN: "GT", GREATER_THAN_OR_EQUAL_TO: "GTE", LESS_THAN: "LT", LESS_THAN_OR_EQUAL_TO: "LTE", NOT_EQUALS: "NE",}; exports.$Command = client.Command;exports.__Client = client.Client;exports.MPAServiceException = MPAServiceException.MPAServiceException;exports.ActionCompletionStrategy = ActionCompletionStrategy;exports.AdditionalSecurityRequirement = AdditionalSecurityRequirement;exports.ApprovalTeamStatus = ApprovalTeamStatus;exports.ApprovalTeamStatusCode = ApprovalTeamStatusCode;exports.ApproverLastActivity = ApproverLastActivity;exports.CancelSessionCommand = CancelSessionCommand;exports.CreateApprovalTeamCommand = CreateApprovalTeamCommand;exports.CreateIdentitySourceCommand = CreateIdentitySourceCommand;exports.DeleteIdentitySourceCommand = DeleteIdentitySourceCommand;exports.DeleteInactiveApprovalTeamVersionCommand = DeleteInactiveApprovalTeamVersionCommand;exports.FilterField = FilterField;exports.GetApprovalTeamCommand = GetApprovalTeamCommand;exports.GetIdentitySourceCommand = GetIdentitySourceCommand;exports.GetPolicyVersionCommand = GetPolicyVersionCommand;exports.GetResourcePolicyCommand = GetResourcePolicyCommand;exports.GetSessionCommand = GetSessionCommand;exports.IdentitySourceStatus = IdentitySourceStatus;exports.IdentitySourceStatusCode = IdentitySourceStatusCode;exports.IdentitySourceType = IdentitySourceType;exports.IdentityStatus = IdentityStatus;exports.ListApprovalTeamsCommand = ListApprovalTeamsCommand;exports.ListIdentitySourcesCommand = ListIdentitySourcesCommand;exports.ListPoliciesCommand = ListPoliciesCommand;exports.ListPolicyVersionsCommand = ListPolicyVersionsCommand;exports.ListResourcePoliciesCommand = ListResourcePoliciesCommand;exports.ListSessionsCommand = ListSessionsCommand;exports.ListTagsForResourceCommand = ListTagsForResourceCommand;exports.MPA = MPA;exports.MPAClient = MPAClient;exports.MfaSyncStatus = MfaSyncStatus;exports.MfaType = MfaType;exports.Operator = Operator;exports.PolicyStatus = PolicyStatus;exports.PolicyType = PolicyType;exports.SessionExecutionStatus = SessionExecutionStatus;exports.SessionResponse = SessionResponse;exports.SessionStatus = SessionStatus;exports.SessionStatusCode = SessionStatusCode;exports.StartActiveApprovalTeamDeletionCommand = StartActiveApprovalTeamDeletionCommand;exports.StartApprovalTeamBaselineCommand = StartApprovalTeamBaselineCommand;exports.TagResourceCommand = TagResourceCommand;exports.UntagResourceCommand = UntagResourceCommand;exports.UpdateAction = UpdateAction;exports.UpdateApprovalTeamCommand = UpdateApprovalTeamCommand;exports.paginateListApprovalTeams = paginateListApprovalTeams;exports.paginateListIdentitySources = paginateListIdentitySources;exports.paginateListPolicies = paginateListPolicies;exports.paginateListPolicyVersions = paginateListPolicyVersions;exports.paginateListResourcePolicies = paginateListResourcePolicies;exports.paginateListSessions = paginateListSessions;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];});