File Explorer

/proc/self/root/var/runtime/node_modules/@aws-sdk/client-identitystore/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.js17.3 KB · 464 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 IdentitystoreServiceException = require('./models/IdentitystoreServiceException'); const resolveClientEndpointParameters = (options) => {    return Object.assign(options, {        useDualstackEndpoint: options.useDualstackEndpoint ?? false,        useFipsEndpoint: options.useFipsEndpoint ?? false,        defaultSigningName: "identitystore",    });};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 IdentitystoreClient 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.defaultIdentitystoreHttpAuthSchemeParametersProvider,            identityProviderConfigProvider: async (config) => new core.DefaultIdentityProviderConfig({                "aws.auth#sigv4": config.credentials,            }),        }));        this.middlewareStack.use(core.getHttpSigningPlugin(this.config));    }    destroy() {        super.destroy();    }} class CreateGroupCommand extends client.Command    .classBuilder()    .ep(commonParams)    .m(function (Command, cs, config, o) {    return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];})    .s("AWSIdentityStore", "CreateGroup", {})    .n("IdentitystoreClient", "CreateGroupCommand")    .sc(schemas_0.CreateGroup$)    .build() {} class CreateGroupMembershipCommand extends client.Command    .classBuilder()    .ep(commonParams)    .m(function (Command, cs, config, o) {    return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];})    .s("AWSIdentityStore", "CreateGroupMembership", {})    .n("IdentitystoreClient", "CreateGroupMembershipCommand")    .sc(schemas_0.CreateGroupMembership$)    .build() {} class CreateUserCommand extends client.Command    .classBuilder()    .ep(commonParams)    .m(function (Command, cs, config, o) {    return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];})    .s("AWSIdentityStore", "CreateUser", {})    .n("IdentitystoreClient", "CreateUserCommand")    .sc(schemas_0.CreateUser$)    .build() {} class DeleteGroupCommand extends client.Command    .classBuilder()    .ep(commonParams)    .m(function (Command, cs, config, o) {    return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];})    .s("AWSIdentityStore", "DeleteGroup", {})    .n("IdentitystoreClient", "DeleteGroupCommand")    .sc(schemas_0.DeleteGroup$)    .build() {} class DeleteGroupMembershipCommand extends client.Command    .classBuilder()    .ep(commonParams)    .m(function (Command, cs, config, o) {    return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];})    .s("AWSIdentityStore", "DeleteGroupMembership", {})    .n("IdentitystoreClient", "DeleteGroupMembershipCommand")    .sc(schemas_0.DeleteGroupMembership$)    .build() {} class DeleteUserCommand extends client.Command    .classBuilder()    .ep(commonParams)    .m(function (Command, cs, config, o) {    return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];})    .s("AWSIdentityStore", "DeleteUser", {})    .n("IdentitystoreClient", "DeleteUserCommand")    .sc(schemas_0.DeleteUser$)    .build() {} class DescribeGroupCommand extends client.Command    .classBuilder()    .ep(commonParams)    .m(function (Command, cs, config, o) {    return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];})    .s("AWSIdentityStore", "DescribeGroup", {})    .n("IdentitystoreClient", "DescribeGroupCommand")    .sc(schemas_0.DescribeGroup$)    .build() {} class DescribeGroupMembershipCommand extends client.Command    .classBuilder()    .ep(commonParams)    .m(function (Command, cs, config, o) {    return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];})    .s("AWSIdentityStore", "DescribeGroupMembership", {})    .n("IdentitystoreClient", "DescribeGroupMembershipCommand")    .sc(schemas_0.DescribeGroupMembership$)    .build() {} class DescribeUserCommand extends client.Command    .classBuilder()    .ep(commonParams)    .m(function (Command, cs, config, o) {    return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];})    .s("AWSIdentityStore", "DescribeUser", {})    .n("IdentitystoreClient", "DescribeUserCommand")    .sc(schemas_0.DescribeUser$)    .build() {} class GetGroupIdCommand extends client.Command    .classBuilder()    .ep(commonParams)    .m(function (Command, cs, config, o) {    return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];})    .s("AWSIdentityStore", "GetGroupId", {})    .n("IdentitystoreClient", "GetGroupIdCommand")    .sc(schemas_0.GetGroupId$)    .build() {} class GetGroupMembershipIdCommand extends client.Command    .classBuilder()    .ep(commonParams)    .m(function (Command, cs, config, o) {    return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];})    .s("AWSIdentityStore", "GetGroupMembershipId", {})    .n("IdentitystoreClient", "GetGroupMembershipIdCommand")    .sc(schemas_0.GetGroupMembershipId$)    .build() {} class GetUserIdCommand extends client.Command    .classBuilder()    .ep(commonParams)    .m(function (Command, cs, config, o) {    return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];})    .s("AWSIdentityStore", "GetUserId", {})    .n("IdentitystoreClient", "GetUserIdCommand")    .sc(schemas_0.GetUserId$)    .build() {} class IsMemberInGroupsCommand extends client.Command    .classBuilder()    .ep(commonParams)    .m(function (Command, cs, config, o) {    return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];})    .s("AWSIdentityStore", "IsMemberInGroups", {})    .n("IdentitystoreClient", "IsMemberInGroupsCommand")    .sc(schemas_0.IsMemberInGroups$)    .build() {} class ListGroupMembershipsCommand extends client.Command    .classBuilder()    .ep(commonParams)    .m(function (Command, cs, config, o) {    return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];})    .s("AWSIdentityStore", "ListGroupMemberships", {})    .n("IdentitystoreClient", "ListGroupMembershipsCommand")    .sc(schemas_0.ListGroupMemberships$)    .build() {} class ListGroupMembershipsForMemberCommand extends client.Command    .classBuilder()    .ep(commonParams)    .m(function (Command, cs, config, o) {    return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];})    .s("AWSIdentityStore", "ListGroupMembershipsForMember", {})    .n("IdentitystoreClient", "ListGroupMembershipsForMemberCommand")    .sc(schemas_0.ListGroupMembershipsForMember$)    .build() {} class ListGroupsCommand extends client.Command    .classBuilder()    .ep(commonParams)    .m(function (Command, cs, config, o) {    return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];})    .s("AWSIdentityStore", "ListGroups", {})    .n("IdentitystoreClient", "ListGroupsCommand")    .sc(schemas_0.ListGroups$)    .build() {} class ListUsersCommand extends client.Command    .classBuilder()    .ep(commonParams)    .m(function (Command, cs, config, o) {    return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];})    .s("AWSIdentityStore", "ListUsers", {})    .n("IdentitystoreClient", "ListUsersCommand")    .sc(schemas_0.ListUsers$)    .build() {} class UpdateGroupCommand extends client.Command    .classBuilder()    .ep(commonParams)    .m(function (Command, cs, config, o) {    return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];})    .s("AWSIdentityStore", "UpdateGroup", {})    .n("IdentitystoreClient", "UpdateGroupCommand")    .sc(schemas_0.UpdateGroup$)    .build() {} class UpdateUserCommand extends client.Command    .classBuilder()    .ep(commonParams)    .m(function (Command, cs, config, o) {    return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];})    .s("AWSIdentityStore", "UpdateUser", {})    .n("IdentitystoreClient", "UpdateUserCommand")    .sc(schemas_0.UpdateUser$)    .build() {} const paginateListGroupMembershipsForMember = core.createPaginator(IdentitystoreClient, ListGroupMembershipsForMemberCommand, "NextToken", "NextToken", "MaxResults"); const paginateListGroupMemberships = core.createPaginator(IdentitystoreClient, ListGroupMembershipsCommand, "NextToken", "NextToken", "MaxResults"); const paginateListGroups = core.createPaginator(IdentitystoreClient, ListGroupsCommand, "NextToken", "NextToken", "MaxResults"); const paginateListUsers = core.createPaginator(IdentitystoreClient, ListUsersCommand, "NextToken", "NextToken", "MaxResults"); const commands = {    CreateGroupCommand,    CreateGroupMembershipCommand,    CreateUserCommand,    DeleteGroupCommand,    DeleteGroupMembershipCommand,    DeleteUserCommand,    DescribeGroupCommand,    DescribeGroupMembershipCommand,    DescribeUserCommand,    GetGroupIdCommand,    GetGroupMembershipIdCommand,    GetUserIdCommand,    IsMemberInGroupsCommand,    ListGroupMembershipsCommand,    ListGroupMembershipsForMemberCommand,    ListGroupsCommand,    ListUsersCommand,    UpdateGroupCommand,    UpdateUserCommand,};const paginators = {    paginateListGroupMemberships,    paginateListGroupMembershipsForMember,    paginateListGroups,    paginateListUsers,};class Identitystore extends IdentitystoreClient {}client.createAggregatedClient(commands, Identitystore, { paginators }); const AccessDeniedExceptionReason = {    KMS_ACCESS_DENIED: "KMS_ACCESS_DENIED",};const ResourceNotFoundExceptionReason = {    KMS_KEY_NOT_FOUND: "KMS_KEY_NOT_FOUND",};const ResourceType = {    GROUP: "GROUP",    GROUP_MEMBERSHIP: "GROUP_MEMBERSHIP",    IDENTITY_STORE: "IDENTITY_STORE",    RESOURCE_POLICY: "RESOURCE_POLICY",    USER: "USER",};const ThrottlingExceptionReason = {    KMS_THROTTLING: "KMS_THROTTLING",};const ValidationExceptionReason = {    KMS_DISABLED: "KMS_DISABLED",    KMS_INVALID_ARN: "KMS_INVALID_ARN",    KMS_INVALID_KEY_USAGE: "KMS_INVALID_KEY_USAGE",    KMS_INVALID_STATE: "KMS_INVALID_STATE",};const ConflictExceptionReason = {    CONCURRENT_MODIFICATION: "CONCURRENT_MODIFICATION",    UNIQUENESS_CONSTRAINT_VIOLATION: "UNIQUENESS_CONSTRAINT_VIOLATION",};const UserStatus = {    DISABLED: "DISABLED",    ENABLED: "ENABLED",}; exports.$Command = client.Command;exports.__Client = client.Client;exports.IdentitystoreServiceException = IdentitystoreServiceException.IdentitystoreServiceException;exports.AccessDeniedExceptionReason = AccessDeniedExceptionReason;exports.ConflictExceptionReason = ConflictExceptionReason;exports.CreateGroupCommand = CreateGroupCommand;exports.CreateGroupMembershipCommand = CreateGroupMembershipCommand;exports.CreateUserCommand = CreateUserCommand;exports.DeleteGroupCommand = DeleteGroupCommand;exports.DeleteGroupMembershipCommand = DeleteGroupMembershipCommand;exports.DeleteUserCommand = DeleteUserCommand;exports.DescribeGroupCommand = DescribeGroupCommand;exports.DescribeGroupMembershipCommand = DescribeGroupMembershipCommand;exports.DescribeUserCommand = DescribeUserCommand;exports.GetGroupIdCommand = GetGroupIdCommand;exports.GetGroupMembershipIdCommand = GetGroupMembershipIdCommand;exports.GetUserIdCommand = GetUserIdCommand;exports.Identitystore = Identitystore;exports.IdentitystoreClient = IdentitystoreClient;exports.IsMemberInGroupsCommand = IsMemberInGroupsCommand;exports.ListGroupMembershipsCommand = ListGroupMembershipsCommand;exports.ListGroupMembershipsForMemberCommand = ListGroupMembershipsForMemberCommand;exports.ListGroupsCommand = ListGroupsCommand;exports.ListUsersCommand = ListUsersCommand;exports.ResourceNotFoundExceptionReason = ResourceNotFoundExceptionReason;exports.ResourceType = ResourceType;exports.ThrottlingExceptionReason = ThrottlingExceptionReason;exports.UpdateGroupCommand = UpdateGroupCommand;exports.UpdateUserCommand = UpdateUserCommand;exports.UserStatus = UserStatus;exports.ValidationExceptionReason = ValidationExceptionReason;exports.paginateListGroupMemberships = paginateListGroupMemberships;exports.paginateListGroupMembershipsForMember = paginateListGroupMembershipsForMember;exports.paginateListGroups = paginateListGroups;exports.paginateListUsers = paginateListUsers;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];});