UNPKG

lambda-live-debugger

Version:

Debug Lambda functions locally like it is running in the cloud

1,287 lines (1,264 loc) 529 kB
"use strict"; var __defProp = Object.defineProperty; var __getOwnPropDesc = Object.getOwnPropertyDescriptor; var __getOwnPropNames = Object.getOwnPropertyNames; var __hasOwnProp = Object.prototype.hasOwnProperty; var __name = (target, value) => __defProp(target, "name", { value, configurable: true }); var __export = (target, all) => { for (var name in all) __defProp(target, name, { get: all[name], enumerable: true }); }; var __copyProps = (to, from, except, desc) => { if (from && typeof from === "object" || typeof from === "function") { for (let key of __getOwnPropNames(from)) if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable }); } return to; }; var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod); // src/index.ts var index_exports = {}; __export(index_exports, { AccessAdvisorUsageGranularityType: () => AccessAdvisorUsageGranularityType, AccessKeyFilterSensitiveLog: () => AccessKeyFilterSensitiveLog, AccountNotManagementOrDelegatedAdministratorException: () => AccountNotManagementOrDelegatedAdministratorException, AddClientIDToOpenIDConnectProviderCommand: () => AddClientIDToOpenIDConnectProviderCommand, AddRoleToInstanceProfileCommand: () => AddRoleToInstanceProfileCommand, AddUserToGroupCommand: () => AddUserToGroupCommand, AssertionEncryptionModeType: () => AssertionEncryptionModeType, AssignmentStatusType: () => AssignmentStatusType, AttachGroupPolicyCommand: () => AttachGroupPolicyCommand, AttachRolePolicyCommand: () => AttachRolePolicyCommand, AttachUserPolicyCommand: () => AttachUserPolicyCommand, CallerIsNotManagementAccountException: () => CallerIsNotManagementAccountException, ChangePasswordCommand: () => ChangePasswordCommand, ChangePasswordRequestFilterSensitiveLog: () => ChangePasswordRequestFilterSensitiveLog, ConcurrentModificationException: () => ConcurrentModificationException, ContextKeyTypeEnum: () => ContextKeyTypeEnum, CreateAccessKeyCommand: () => CreateAccessKeyCommand, CreateAccessKeyResponseFilterSensitiveLog: () => CreateAccessKeyResponseFilterSensitiveLog, CreateAccountAliasCommand: () => CreateAccountAliasCommand, CreateGroupCommand: () => CreateGroupCommand, CreateInstanceProfileCommand: () => CreateInstanceProfileCommand, CreateLoginProfileCommand: () => CreateLoginProfileCommand, CreateLoginProfileRequestFilterSensitiveLog: () => CreateLoginProfileRequestFilterSensitiveLog, CreateOpenIDConnectProviderCommand: () => CreateOpenIDConnectProviderCommand, CreatePolicyCommand: () => CreatePolicyCommand, CreatePolicyVersionCommand: () => CreatePolicyVersionCommand, CreateRoleCommand: () => CreateRoleCommand, CreateSAMLProviderCommand: () => CreateSAMLProviderCommand, CreateSAMLProviderRequestFilterSensitiveLog: () => CreateSAMLProviderRequestFilterSensitiveLog, CreateServiceLinkedRoleCommand: () => CreateServiceLinkedRoleCommand, CreateServiceSpecificCredentialCommand: () => CreateServiceSpecificCredentialCommand, CreateServiceSpecificCredentialResponseFilterSensitiveLog: () => CreateServiceSpecificCredentialResponseFilterSensitiveLog, CreateUserCommand: () => CreateUserCommand, CreateVirtualMFADeviceCommand: () => CreateVirtualMFADeviceCommand, CreateVirtualMFADeviceResponseFilterSensitiveLog: () => CreateVirtualMFADeviceResponseFilterSensitiveLog, CredentialReportExpiredException: () => CredentialReportExpiredException, CredentialReportNotPresentException: () => CredentialReportNotPresentException, CredentialReportNotReadyException: () => CredentialReportNotReadyException, DeactivateMFADeviceCommand: () => DeactivateMFADeviceCommand, DeleteAccessKeyCommand: () => DeleteAccessKeyCommand, DeleteAccountAliasCommand: () => DeleteAccountAliasCommand, DeleteAccountPasswordPolicyCommand: () => DeleteAccountPasswordPolicyCommand, DeleteConflictException: () => DeleteConflictException, DeleteGroupCommand: () => DeleteGroupCommand, DeleteGroupPolicyCommand: () => DeleteGroupPolicyCommand, DeleteInstanceProfileCommand: () => DeleteInstanceProfileCommand, DeleteLoginProfileCommand: () => DeleteLoginProfileCommand, DeleteOpenIDConnectProviderCommand: () => DeleteOpenIDConnectProviderCommand, DeletePolicyCommand: () => DeletePolicyCommand, DeletePolicyVersionCommand: () => DeletePolicyVersionCommand, DeleteRoleCommand: () => DeleteRoleCommand, DeleteRolePermissionsBoundaryCommand: () => DeleteRolePermissionsBoundaryCommand, DeleteRolePolicyCommand: () => DeleteRolePolicyCommand, DeleteSAMLProviderCommand: () => DeleteSAMLProviderCommand, DeleteSSHPublicKeyCommand: () => DeleteSSHPublicKeyCommand, DeleteServerCertificateCommand: () => DeleteServerCertificateCommand, DeleteServiceLinkedRoleCommand: () => DeleteServiceLinkedRoleCommand, DeleteServiceSpecificCredentialCommand: () => DeleteServiceSpecificCredentialCommand, DeleteSigningCertificateCommand: () => DeleteSigningCertificateCommand, DeleteUserCommand: () => DeleteUserCommand, DeleteUserPermissionsBoundaryCommand: () => DeleteUserPermissionsBoundaryCommand, DeleteUserPolicyCommand: () => DeleteUserPolicyCommand, DeleteVirtualMFADeviceCommand: () => DeleteVirtualMFADeviceCommand, DeletionTaskStatusType: () => DeletionTaskStatusType, DetachGroupPolicyCommand: () => DetachGroupPolicyCommand, DetachRolePolicyCommand: () => DetachRolePolicyCommand, DetachUserPolicyCommand: () => DetachUserPolicyCommand, DisableOrganizationsRootCredentialsManagementCommand: () => DisableOrganizationsRootCredentialsManagementCommand, DisableOrganizationsRootSessionsCommand: () => DisableOrganizationsRootSessionsCommand, DuplicateCertificateException: () => DuplicateCertificateException, DuplicateSSHPublicKeyException: () => DuplicateSSHPublicKeyException, EnableMFADeviceCommand: () => EnableMFADeviceCommand, EnableOrganizationsRootCredentialsManagementCommand: () => EnableOrganizationsRootCredentialsManagementCommand, EnableOrganizationsRootSessionsCommand: () => EnableOrganizationsRootSessionsCommand, EncodingType: () => EncodingType, EntityAlreadyExistsException: () => EntityAlreadyExistsException, EntityTemporarilyUnmodifiableException: () => EntityTemporarilyUnmodifiableException, EntityType: () => EntityType, FeatureType: () => FeatureType, GenerateCredentialReportCommand: () => GenerateCredentialReportCommand, GenerateOrganizationsAccessReportCommand: () => GenerateOrganizationsAccessReportCommand, GenerateServiceLastAccessedDetailsCommand: () => GenerateServiceLastAccessedDetailsCommand, GetAccessKeyLastUsedCommand: () => GetAccessKeyLastUsedCommand, GetAccountAuthorizationDetailsCommand: () => GetAccountAuthorizationDetailsCommand, GetAccountPasswordPolicyCommand: () => GetAccountPasswordPolicyCommand, GetAccountSummaryCommand: () => GetAccountSummaryCommand, GetContextKeysForCustomPolicyCommand: () => GetContextKeysForCustomPolicyCommand, GetContextKeysForPrincipalPolicyCommand: () => GetContextKeysForPrincipalPolicyCommand, GetCredentialReportCommand: () => GetCredentialReportCommand, GetGroupCommand: () => GetGroupCommand, GetGroupPolicyCommand: () => GetGroupPolicyCommand, GetInstanceProfileCommand: () => GetInstanceProfileCommand, GetLoginProfileCommand: () => GetLoginProfileCommand, GetMFADeviceCommand: () => GetMFADeviceCommand, GetOpenIDConnectProviderCommand: () => GetOpenIDConnectProviderCommand, GetOrganizationsAccessReportCommand: () => GetOrganizationsAccessReportCommand, GetPolicyCommand: () => GetPolicyCommand, GetPolicyVersionCommand: () => GetPolicyVersionCommand, GetRoleCommand: () => GetRoleCommand, GetRolePolicyCommand: () => GetRolePolicyCommand, GetSAMLProviderCommand: () => GetSAMLProviderCommand, GetSSHPublicKeyCommand: () => GetSSHPublicKeyCommand, GetServerCertificateCommand: () => GetServerCertificateCommand, GetServiceLastAccessedDetailsCommand: () => GetServiceLastAccessedDetailsCommand, GetServiceLastAccessedDetailsWithEntitiesCommand: () => GetServiceLastAccessedDetailsWithEntitiesCommand, GetServiceLinkedRoleDeletionStatusCommand: () => GetServiceLinkedRoleDeletionStatusCommand, GetUserCommand: () => GetUserCommand, GetUserPolicyCommand: () => GetUserPolicyCommand, GlobalEndpointTokenVersion: () => GlobalEndpointTokenVersion, IAM: () => IAM, IAMClient: () => IAMClient, IAMServiceException: () => IAMServiceException, InvalidAuthenticationCodeException: () => InvalidAuthenticationCodeException, InvalidCertificateException: () => InvalidCertificateException, InvalidInputException: () => InvalidInputException, InvalidPublicKeyException: () => InvalidPublicKeyException, InvalidUserTypeException: () => InvalidUserTypeException, JobStatusType: () => JobStatusType, KeyPairMismatchException: () => KeyPairMismatchException, LimitExceededException: () => LimitExceededException, ListAccessKeysCommand: () => ListAccessKeysCommand, ListAccountAliasesCommand: () => ListAccountAliasesCommand, ListAttachedGroupPoliciesCommand: () => ListAttachedGroupPoliciesCommand, ListAttachedRolePoliciesCommand: () => ListAttachedRolePoliciesCommand, ListAttachedUserPoliciesCommand: () => ListAttachedUserPoliciesCommand, ListEntitiesForPolicyCommand: () => ListEntitiesForPolicyCommand, ListGroupPoliciesCommand: () => ListGroupPoliciesCommand, ListGroupsCommand: () => ListGroupsCommand, ListGroupsForUserCommand: () => ListGroupsForUserCommand, ListInstanceProfileTagsCommand: () => ListInstanceProfileTagsCommand, ListInstanceProfilesCommand: () => ListInstanceProfilesCommand, ListInstanceProfilesForRoleCommand: () => ListInstanceProfilesForRoleCommand, ListMFADeviceTagsCommand: () => ListMFADeviceTagsCommand, ListMFADevicesCommand: () => ListMFADevicesCommand, ListOpenIDConnectProviderTagsCommand: () => ListOpenIDConnectProviderTagsCommand, ListOpenIDConnectProvidersCommand: () => ListOpenIDConnectProvidersCommand, ListOrganizationsFeaturesCommand: () => ListOrganizationsFeaturesCommand, ListPoliciesCommand: () => ListPoliciesCommand, ListPoliciesGrantingServiceAccessCommand: () => ListPoliciesGrantingServiceAccessCommand, ListPolicyTagsCommand: () => ListPolicyTagsCommand, ListPolicyVersionsCommand: () => ListPolicyVersionsCommand, ListRolePoliciesCommand: () => ListRolePoliciesCommand, ListRoleTagsCommand: () => ListRoleTagsCommand, ListRolesCommand: () => ListRolesCommand, ListSAMLProviderTagsCommand: () => ListSAMLProviderTagsCommand, ListSAMLProvidersCommand: () => ListSAMLProvidersCommand, ListSSHPublicKeysCommand: () => ListSSHPublicKeysCommand, ListServerCertificateTagsCommand: () => ListServerCertificateTagsCommand, ListServerCertificatesCommand: () => ListServerCertificatesCommand, ListServiceSpecificCredentialsCommand: () => ListServiceSpecificCredentialsCommand, ListSigningCertificatesCommand: () => ListSigningCertificatesCommand, ListUserPoliciesCommand: () => ListUserPoliciesCommand, ListUserTagsCommand: () => ListUserTagsCommand, ListUsersCommand: () => ListUsersCommand, ListVirtualMFADevicesCommand: () => ListVirtualMFADevicesCommand, ListVirtualMFADevicesResponseFilterSensitiveLog: () => ListVirtualMFADevicesResponseFilterSensitiveLog, MalformedCertificateException: () => MalformedCertificateException, MalformedPolicyDocumentException: () => MalformedPolicyDocumentException, NoSuchEntityException: () => NoSuchEntityException, OpenIdIdpCommunicationErrorException: () => OpenIdIdpCommunicationErrorException, OrganizationNotFoundException: () => OrganizationNotFoundException, OrganizationNotInAllFeaturesModeException: () => OrganizationNotInAllFeaturesModeException, PasswordPolicyViolationException: () => PasswordPolicyViolationException, PermissionsBoundaryAttachmentType: () => PermissionsBoundaryAttachmentType, PolicyEvaluationDecisionType: () => PolicyEvaluationDecisionType, PolicyEvaluationException: () => PolicyEvaluationException, PolicyNotAttachableException: () => PolicyNotAttachableException, PolicyOwnerEntityType: () => PolicyOwnerEntityType, PolicyScopeType: () => PolicyScopeType, PolicySourceType: () => PolicySourceType, PolicyType: () => PolicyType, PolicyUsageType: () => PolicyUsageType, PutGroupPolicyCommand: () => PutGroupPolicyCommand, PutRolePermissionsBoundaryCommand: () => PutRolePermissionsBoundaryCommand, PutRolePolicyCommand: () => PutRolePolicyCommand, PutUserPermissionsBoundaryCommand: () => PutUserPermissionsBoundaryCommand, PutUserPolicyCommand: () => PutUserPolicyCommand, RemoveClientIDFromOpenIDConnectProviderCommand: () => RemoveClientIDFromOpenIDConnectProviderCommand, RemoveRoleFromInstanceProfileCommand: () => RemoveRoleFromInstanceProfileCommand, RemoveUserFromGroupCommand: () => RemoveUserFromGroupCommand, ReportFormatType: () => ReportFormatType, ReportGenerationLimitExceededException: () => ReportGenerationLimitExceededException, ReportStateType: () => ReportStateType, ResetServiceSpecificCredentialCommand: () => ResetServiceSpecificCredentialCommand, ResetServiceSpecificCredentialResponseFilterSensitiveLog: () => ResetServiceSpecificCredentialResponseFilterSensitiveLog, ResyncMFADeviceCommand: () => ResyncMFADeviceCommand, ServiceAccessNotEnabledException: () => ServiceAccessNotEnabledException, ServiceFailureException: () => ServiceFailureException, ServiceNotSupportedException: () => ServiceNotSupportedException, ServiceSpecificCredentialFilterSensitiveLog: () => ServiceSpecificCredentialFilterSensitiveLog, SetDefaultPolicyVersionCommand: () => SetDefaultPolicyVersionCommand, SetSecurityTokenServicePreferencesCommand: () => SetSecurityTokenServicePreferencesCommand, SimulateCustomPolicyCommand: () => SimulateCustomPolicyCommand, SimulatePrincipalPolicyCommand: () => SimulatePrincipalPolicyCommand, SortKeyType: () => SortKeyType, StatusType: () => StatusType, SummaryKeyType: () => SummaryKeyType, TagInstanceProfileCommand: () => TagInstanceProfileCommand, TagMFADeviceCommand: () => TagMFADeviceCommand, TagOpenIDConnectProviderCommand: () => TagOpenIDConnectProviderCommand, TagPolicyCommand: () => TagPolicyCommand, TagRoleCommand: () => TagRoleCommand, TagSAMLProviderCommand: () => TagSAMLProviderCommand, TagServerCertificateCommand: () => TagServerCertificateCommand, TagUserCommand: () => TagUserCommand, UnmodifiableEntityException: () => UnmodifiableEntityException, UnrecognizedPublicKeyEncodingException: () => UnrecognizedPublicKeyEncodingException, UntagInstanceProfileCommand: () => UntagInstanceProfileCommand, UntagMFADeviceCommand: () => UntagMFADeviceCommand, UntagOpenIDConnectProviderCommand: () => UntagOpenIDConnectProviderCommand, UntagPolicyCommand: () => UntagPolicyCommand, UntagRoleCommand: () => UntagRoleCommand, UntagSAMLProviderCommand: () => UntagSAMLProviderCommand, UntagServerCertificateCommand: () => UntagServerCertificateCommand, UntagUserCommand: () => UntagUserCommand, UpdateAccessKeyCommand: () => UpdateAccessKeyCommand, UpdateAccountPasswordPolicyCommand: () => UpdateAccountPasswordPolicyCommand, UpdateAssumeRolePolicyCommand: () => UpdateAssumeRolePolicyCommand, UpdateGroupCommand: () => UpdateGroupCommand, UpdateLoginProfileCommand: () => UpdateLoginProfileCommand, UpdateLoginProfileRequestFilterSensitiveLog: () => UpdateLoginProfileRequestFilterSensitiveLog, UpdateOpenIDConnectProviderThumbprintCommand: () => UpdateOpenIDConnectProviderThumbprintCommand, UpdateRoleCommand: () => UpdateRoleCommand, UpdateRoleDescriptionCommand: () => UpdateRoleDescriptionCommand, UpdateSAMLProviderCommand: () => UpdateSAMLProviderCommand, UpdateSAMLProviderRequestFilterSensitiveLog: () => UpdateSAMLProviderRequestFilterSensitiveLog, UpdateSSHPublicKeyCommand: () => UpdateSSHPublicKeyCommand, UpdateServerCertificateCommand: () => UpdateServerCertificateCommand, UpdateServiceSpecificCredentialCommand: () => UpdateServiceSpecificCredentialCommand, UpdateSigningCertificateCommand: () => UpdateSigningCertificateCommand, UpdateUserCommand: () => UpdateUserCommand, UploadSSHPublicKeyCommand: () => UploadSSHPublicKeyCommand, UploadServerCertificateCommand: () => UploadServerCertificateCommand, UploadServerCertificateRequestFilterSensitiveLog: () => UploadServerCertificateRequestFilterSensitiveLog, UploadSigningCertificateCommand: () => UploadSigningCertificateCommand, VirtualMFADeviceFilterSensitiveLog: () => VirtualMFADeviceFilterSensitiveLog, __Client: () => import_smithy_client.Client, paginateGetAccountAuthorizationDetails: () => paginateGetAccountAuthorizationDetails, paginateGetGroup: () => paginateGetGroup, paginateListAccessKeys: () => paginateListAccessKeys, paginateListAccountAliases: () => paginateListAccountAliases, paginateListAttachedGroupPolicies: () => paginateListAttachedGroupPolicies, paginateListAttachedRolePolicies: () => paginateListAttachedRolePolicies, paginateListAttachedUserPolicies: () => paginateListAttachedUserPolicies, paginateListEntitiesForPolicy: () => paginateListEntitiesForPolicy, paginateListGroupPolicies: () => paginateListGroupPolicies, paginateListGroups: () => paginateListGroups, paginateListGroupsForUser: () => paginateListGroupsForUser, paginateListInstanceProfileTags: () => paginateListInstanceProfileTags, paginateListInstanceProfiles: () => paginateListInstanceProfiles, paginateListInstanceProfilesForRole: () => paginateListInstanceProfilesForRole, paginateListMFADeviceTags: () => paginateListMFADeviceTags, paginateListMFADevices: () => paginateListMFADevices, paginateListOpenIDConnectProviderTags: () => paginateListOpenIDConnectProviderTags, paginateListPolicies: () => paginateListPolicies, paginateListPolicyTags: () => paginateListPolicyTags, paginateListPolicyVersions: () => paginateListPolicyVersions, paginateListRolePolicies: () => paginateListRolePolicies, paginateListRoleTags: () => paginateListRoleTags, paginateListRoles: () => paginateListRoles, paginateListSAMLProviderTags: () => paginateListSAMLProviderTags, paginateListSSHPublicKeys: () => paginateListSSHPublicKeys, paginateListServerCertificateTags: () => paginateListServerCertificateTags, paginateListServerCertificates: () => paginateListServerCertificates, paginateListSigningCertificates: () => paginateListSigningCertificates, paginateListUserPolicies: () => paginateListUserPolicies, paginateListUserTags: () => paginateListUserTags, paginateListUsers: () => paginateListUsers, paginateListVirtualMFADevices: () => paginateListVirtualMFADevices, paginateSimulateCustomPolicy: () => paginateSimulateCustomPolicy, paginateSimulatePrincipalPolicy: () => paginateSimulatePrincipalPolicy, waitForInstanceProfileExists: () => waitForInstanceProfileExists, waitForPolicyExists: () => waitForPolicyExists, waitForRoleExists: () => waitForRoleExists, waitForUserExists: () => waitForUserExists, waitUntilInstanceProfileExists: () => waitUntilInstanceProfileExists, waitUntilPolicyExists: () => waitUntilPolicyExists, waitUntilRoleExists: () => waitUntilRoleExists, waitUntilUserExists: () => waitUntilUserExists }); module.exports = __toCommonJS(index_exports); // src/IAMClient.ts var import_middleware_host_header = require("@aws-sdk/middleware-host-header"); var import_middleware_logger = require("@aws-sdk/middleware-logger"); var import_middleware_recursion_detection = require("@aws-sdk/middleware-recursion-detection"); var import_middleware_user_agent = require("@aws-sdk/middleware-user-agent"); var import_config_resolver = require("@smithy/config-resolver"); var import_core = require("@smithy/core"); var import_middleware_content_length = require("@smithy/middleware-content-length"); var import_middleware_endpoint = require("@smithy/middleware-endpoint"); var import_middleware_retry = require("@smithy/middleware-retry"); var import_httpAuthSchemeProvider = require("./auth/httpAuthSchemeProvider"); // src/endpoint/EndpointParameters.ts var resolveClientEndpointParameters = /* @__PURE__ */ __name((options) => { return Object.assign(options, { useDualstackEndpoint: options.useDualstackEndpoint ?? false, useFipsEndpoint: options.useFipsEndpoint ?? false, defaultSigningName: "iam" }); }, "resolveClientEndpointParameters"); var commonParams = { UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" }, Endpoint: { type: "builtInParams", name: "endpoint" }, Region: { type: "builtInParams", name: "region" }, UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" } }; // src/IAMClient.ts var import_runtimeConfig = require("././runtimeConfig"); // src/runtimeExtensions.ts var import_region_config_resolver = require("@aws-sdk/region-config-resolver"); var import_protocol_http = require("@smithy/protocol-http"); var import_smithy_client = require("@smithy/smithy-client"); // src/auth/httpAuthExtensionConfiguration.ts var getHttpAuthExtensionConfiguration = /* @__PURE__ */ __name((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; } }; }, "getHttpAuthExtensionConfiguration"); var resolveHttpAuthRuntimeConfig = /* @__PURE__ */ __name((config) => { return { httpAuthSchemes: config.httpAuthSchemes(), httpAuthSchemeProvider: config.httpAuthSchemeProvider(), credentials: config.credentials() }; }, "resolveHttpAuthRuntimeConfig"); // src/runtimeExtensions.ts var resolveRuntimeExtensions = /* @__PURE__ */ __name((runtimeConfig, extensions) => { const extensionConfiguration = Object.assign( (0, import_region_config_resolver.getAwsRegionExtensionConfiguration)(runtimeConfig), (0, import_smithy_client.getDefaultExtensionConfiguration)(runtimeConfig), (0, import_protocol_http.getHttpHandlerExtensionConfiguration)(runtimeConfig), getHttpAuthExtensionConfiguration(runtimeConfig) ); extensions.forEach((extension) => extension.configure(extensionConfiguration)); return Object.assign( runtimeConfig, (0, import_region_config_resolver.resolveAwsRegionExtensionConfiguration)(extensionConfiguration), (0, import_smithy_client.resolveDefaultRuntimeConfig)(extensionConfiguration), (0, import_protocol_http.resolveHttpHandlerRuntimeConfig)(extensionConfiguration), resolveHttpAuthRuntimeConfig(extensionConfiguration) ); }, "resolveRuntimeExtensions"); // src/IAMClient.ts var IAMClient = class extends import_smithy_client.Client { static { __name(this, "IAMClient"); } /** * The resolved configuration of IAMClient class. This is resolved and normalized from the {@link IAMClientConfig | constructor configuration interface}. */ config; constructor(...[configuration]) { const _config_0 = (0, import_runtimeConfig.getRuntimeConfig)(configuration || {}); super(_config_0); this.initConfig = _config_0; const _config_1 = resolveClientEndpointParameters(_config_0); const _config_2 = (0, import_middleware_user_agent.resolveUserAgentConfig)(_config_1); const _config_3 = (0, import_middleware_retry.resolveRetryConfig)(_config_2); const _config_4 = (0, import_config_resolver.resolveRegionConfig)(_config_3); const _config_5 = (0, import_middleware_host_header.resolveHostHeaderConfig)(_config_4); const _config_6 = (0, import_middleware_endpoint.resolveEndpointConfig)(_config_5); const _config_7 = (0, import_httpAuthSchemeProvider.resolveHttpAuthSchemeConfig)(_config_6); const _config_8 = resolveRuntimeExtensions(_config_7, configuration?.extensions || []); this.config = _config_8; this.middlewareStack.use((0, import_middleware_user_agent.getUserAgentPlugin)(this.config)); this.middlewareStack.use((0, import_middleware_retry.getRetryPlugin)(this.config)); this.middlewareStack.use((0, import_middleware_content_length.getContentLengthPlugin)(this.config)); this.middlewareStack.use((0, import_middleware_host_header.getHostHeaderPlugin)(this.config)); this.middlewareStack.use((0, import_middleware_logger.getLoggerPlugin)(this.config)); this.middlewareStack.use((0, import_middleware_recursion_detection.getRecursionDetectionPlugin)(this.config)); this.middlewareStack.use( (0, import_core.getHttpAuthSchemeEndpointRuleSetPlugin)(this.config, { httpAuthSchemeParametersProvider: import_httpAuthSchemeProvider.defaultIAMHttpAuthSchemeParametersProvider, identityProviderConfigProvider: /* @__PURE__ */ __name(async (config) => new import_core.DefaultIdentityProviderConfig({ "aws.auth#sigv4": config.credentials }), "identityProviderConfigProvider") }) ); this.middlewareStack.use((0, import_core.getHttpSigningPlugin)(this.config)); } /** * Destroy underlying resources, like sockets. It's usually not necessary to do this. * However in Node.js, it's best to explicitly shut down the client's agent when it is no longer needed. * Otherwise, sockets might stay open for quite a long time before the server terminates them. */ destroy() { super.destroy(); } }; // src/IAM.ts // src/commands/AddClientIDToOpenIDConnectProviderCommand.ts var import_middleware_serde = require("@smithy/middleware-serde"); // src/protocols/Aws_query.ts var import_core2 = require("@aws-sdk/core"); // src/models/IAMServiceException.ts var IAMServiceException = class _IAMServiceException extends import_smithy_client.ServiceException { static { __name(this, "IAMServiceException"); } /** * @internal */ constructor(options) { super(options); Object.setPrototypeOf(this, _IAMServiceException.prototype); } }; // src/models/models_0.ts var AccessAdvisorUsageGranularityType = { ACTION_LEVEL: "ACTION_LEVEL", SERVICE_LEVEL: "SERVICE_LEVEL" }; var StatusType = { Active: "Active", Expired: "Expired", Inactive: "Inactive" }; var AccountNotManagementOrDelegatedAdministratorException = class _AccountNotManagementOrDelegatedAdministratorException extends IAMServiceException { static { __name(this, "AccountNotManagementOrDelegatedAdministratorException"); } name = "AccountNotManagementOrDelegatedAdministratorException"; $fault = "client"; Message; /** * @internal */ constructor(opts) { super({ name: "AccountNotManagementOrDelegatedAdministratorException", $fault: "client", ...opts }); Object.setPrototypeOf(this, _AccountNotManagementOrDelegatedAdministratorException.prototype); this.Message = opts.Message; } }; var InvalidInputException = class _InvalidInputException extends IAMServiceException { static { __name(this, "InvalidInputException"); } name = "InvalidInputException"; $fault = "client"; /** * @internal */ constructor(opts) { super({ name: "InvalidInputException", $fault: "client", ...opts }); Object.setPrototypeOf(this, _InvalidInputException.prototype); } }; var LimitExceededException = class _LimitExceededException extends IAMServiceException { static { __name(this, "LimitExceededException"); } name = "LimitExceededException"; $fault = "client"; /** * @internal */ constructor(opts) { super({ name: "LimitExceededException", $fault: "client", ...opts }); Object.setPrototypeOf(this, _LimitExceededException.prototype); } }; var NoSuchEntityException = class _NoSuchEntityException extends IAMServiceException { static { __name(this, "NoSuchEntityException"); } name = "NoSuchEntityException"; $fault = "client"; /** * @internal */ constructor(opts) { super({ name: "NoSuchEntityException", $fault: "client", ...opts }); Object.setPrototypeOf(this, _NoSuchEntityException.prototype); } }; var ServiceFailureException = class _ServiceFailureException extends IAMServiceException { static { __name(this, "ServiceFailureException"); } name = "ServiceFailureException"; $fault = "server"; /** * @internal */ constructor(opts) { super({ name: "ServiceFailureException", $fault: "server", ...opts }); Object.setPrototypeOf(this, _ServiceFailureException.prototype); } }; var EntityAlreadyExistsException = class _EntityAlreadyExistsException extends IAMServiceException { static { __name(this, "EntityAlreadyExistsException"); } name = "EntityAlreadyExistsException"; $fault = "client"; /** * @internal */ constructor(opts) { super({ name: "EntityAlreadyExistsException", $fault: "client", ...opts }); Object.setPrototypeOf(this, _EntityAlreadyExistsException.prototype); } }; var UnmodifiableEntityException = class _UnmodifiableEntityException extends IAMServiceException { static { __name(this, "UnmodifiableEntityException"); } name = "UnmodifiableEntityException"; $fault = "client"; /** * @internal */ constructor(opts) { super({ name: "UnmodifiableEntityException", $fault: "client", ...opts }); Object.setPrototypeOf(this, _UnmodifiableEntityException.prototype); } }; var AssertionEncryptionModeType = { Allowed: "Allowed", Required: "Required" }; var AssignmentStatusType = { Any: "Any", Assigned: "Assigned", Unassigned: "Unassigned" }; var PermissionsBoundaryAttachmentType = { Policy: "PermissionsBoundaryPolicy" }; var PolicyNotAttachableException = class _PolicyNotAttachableException extends IAMServiceException { static { __name(this, "PolicyNotAttachableException"); } name = "PolicyNotAttachableException"; $fault = "client"; /** * @internal */ constructor(opts) { super({ name: "PolicyNotAttachableException", $fault: "client", ...opts }); Object.setPrototypeOf(this, _PolicyNotAttachableException.prototype); } }; var EntityTemporarilyUnmodifiableException = class _EntityTemporarilyUnmodifiableException extends IAMServiceException { static { __name(this, "EntityTemporarilyUnmodifiableException"); } name = "EntityTemporarilyUnmodifiableException"; $fault = "client"; /** * @internal */ constructor(opts) { super({ name: "EntityTemporarilyUnmodifiableException", $fault: "client", ...opts }); Object.setPrototypeOf(this, _EntityTemporarilyUnmodifiableException.prototype); } }; var InvalidUserTypeException = class _InvalidUserTypeException extends IAMServiceException { static { __name(this, "InvalidUserTypeException"); } name = "InvalidUserTypeException"; $fault = "client"; /** * @internal */ constructor(opts) { super({ name: "InvalidUserTypeException", $fault: "client", ...opts }); Object.setPrototypeOf(this, _InvalidUserTypeException.prototype); } }; var PasswordPolicyViolationException = class _PasswordPolicyViolationException extends IAMServiceException { static { __name(this, "PasswordPolicyViolationException"); } name = "PasswordPolicyViolationException"; $fault = "client"; /** * @internal */ constructor(opts) { super({ name: "PasswordPolicyViolationException", $fault: "client", ...opts }); Object.setPrototypeOf(this, _PasswordPolicyViolationException.prototype); } }; var ConcurrentModificationException = class _ConcurrentModificationException extends IAMServiceException { static { __name(this, "ConcurrentModificationException"); } name = "ConcurrentModificationException"; $fault = "client"; /** * @internal */ constructor(opts) { super({ name: "ConcurrentModificationException", $fault: "client", ...opts }); Object.setPrototypeOf(this, _ConcurrentModificationException.prototype); } }; var OpenIdIdpCommunicationErrorException = class _OpenIdIdpCommunicationErrorException extends IAMServiceException { static { __name(this, "OpenIdIdpCommunicationErrorException"); } name = "OpenIdIdpCommunicationErrorException"; $fault = "client"; /** * @internal */ constructor(opts) { super({ name: "OpenIdIdpCommunicationErrorException", $fault: "client", ...opts }); Object.setPrototypeOf(this, _OpenIdIdpCommunicationErrorException.prototype); } }; var MalformedPolicyDocumentException = class _MalformedPolicyDocumentException extends IAMServiceException { static { __name(this, "MalformedPolicyDocumentException"); } name = "MalformedPolicyDocumentException"; $fault = "client"; /** * @internal */ constructor(opts) { super({ name: "MalformedPolicyDocumentException", $fault: "client", ...opts }); Object.setPrototypeOf(this, _MalformedPolicyDocumentException.prototype); } }; var ServiceNotSupportedException = class _ServiceNotSupportedException extends IAMServiceException { static { __name(this, "ServiceNotSupportedException"); } name = "ServiceNotSupportedException"; $fault = "client"; /** * @internal */ constructor(opts) { super({ name: "ServiceNotSupportedException", $fault: "client", ...opts }); Object.setPrototypeOf(this, _ServiceNotSupportedException.prototype); } }; var DeleteConflictException = class _DeleteConflictException extends IAMServiceException { static { __name(this, "DeleteConflictException"); } name = "DeleteConflictException"; $fault = "client"; /** * @internal */ constructor(opts) { super({ name: "DeleteConflictException", $fault: "client", ...opts }); Object.setPrototypeOf(this, _DeleteConflictException.prototype); } }; var FeatureType = { ROOT_CREDENTIALS_MANAGEMENT: "RootCredentialsManagement", ROOT_SESSIONS: "RootSessions" }; var OrganizationNotFoundException = class _OrganizationNotFoundException extends IAMServiceException { static { __name(this, "OrganizationNotFoundException"); } name = "OrganizationNotFoundException"; $fault = "client"; Message; /** * @internal */ constructor(opts) { super({ name: "OrganizationNotFoundException", $fault: "client", ...opts }); Object.setPrototypeOf(this, _OrganizationNotFoundException.prototype); this.Message = opts.Message; } }; var OrganizationNotInAllFeaturesModeException = class _OrganizationNotInAllFeaturesModeException extends IAMServiceException { static { __name(this, "OrganizationNotInAllFeaturesModeException"); } name = "OrganizationNotInAllFeaturesModeException"; $fault = "client"; Message; /** * @internal */ constructor(opts) { super({ name: "OrganizationNotInAllFeaturesModeException", $fault: "client", ...opts }); Object.setPrototypeOf(this, _OrganizationNotInAllFeaturesModeException.prototype); this.Message = opts.Message; } }; var ServiceAccessNotEnabledException = class _ServiceAccessNotEnabledException extends IAMServiceException { static { __name(this, "ServiceAccessNotEnabledException"); } name = "ServiceAccessNotEnabledException"; $fault = "client"; Message; /** * @internal */ constructor(opts) { super({ name: "ServiceAccessNotEnabledException", $fault: "client", ...opts }); Object.setPrototypeOf(this, _ServiceAccessNotEnabledException.prototype); this.Message = opts.Message; } }; var InvalidAuthenticationCodeException = class _InvalidAuthenticationCodeException extends IAMServiceException { static { __name(this, "InvalidAuthenticationCodeException"); } name = "InvalidAuthenticationCodeException"; $fault = "client"; /** * @internal */ constructor(opts) { super({ name: "InvalidAuthenticationCodeException", $fault: "client", ...opts }); Object.setPrototypeOf(this, _InvalidAuthenticationCodeException.prototype); } }; var CallerIsNotManagementAccountException = class _CallerIsNotManagementAccountException extends IAMServiceException { static { __name(this, "CallerIsNotManagementAccountException"); } name = "CallerIsNotManagementAccountException"; $fault = "client"; Message; /** * @internal */ constructor(opts) { super({ name: "CallerIsNotManagementAccountException", $fault: "client", ...opts }); Object.setPrototypeOf(this, _CallerIsNotManagementAccountException.prototype); this.Message = opts.Message; } }; var ReportStateType = { COMPLETE: "COMPLETE", INPROGRESS: "INPROGRESS", STARTED: "STARTED" }; var ReportGenerationLimitExceededException = class _ReportGenerationLimitExceededException extends IAMServiceException { static { __name(this, "ReportGenerationLimitExceededException"); } name = "ReportGenerationLimitExceededException"; $fault = "client"; /** * @internal */ constructor(opts) { super({ name: "ReportGenerationLimitExceededException", $fault: "client", ...opts }); Object.setPrototypeOf(this, _ReportGenerationLimitExceededException.prototype); } }; var EntityType = { AWSManagedPolicy: "AWSManagedPolicy", Group: "Group", LocalManagedPolicy: "LocalManagedPolicy", Role: "Role", User: "User" }; var SummaryKeyType = { AccessKeysPerUserQuota: "AccessKeysPerUserQuota", AccountAccessKeysPresent: "AccountAccessKeysPresent", AccountMFAEnabled: "AccountMFAEnabled", AccountPasswordPresent: "AccountPasswordPresent", AccountSigningCertificatesPresent: "AccountSigningCertificatesPresent", AttachedPoliciesPerGroupQuota: "AttachedPoliciesPerGroupQuota", AttachedPoliciesPerRoleQuota: "AttachedPoliciesPerRoleQuota", AttachedPoliciesPerUserQuota: "AttachedPoliciesPerUserQuota", GlobalEndpointTokenVersion: "GlobalEndpointTokenVersion", GroupPolicySizeQuota: "GroupPolicySizeQuota", Groups: "Groups", GroupsPerUserQuota: "GroupsPerUserQuota", GroupsQuota: "GroupsQuota", MFADevices: "MFADevices", MFADevicesInUse: "MFADevicesInUse", Policies: "Policies", PoliciesQuota: "PoliciesQuota", PolicySizeQuota: "PolicySizeQuota", PolicyVersionsInUse: "PolicyVersionsInUse", PolicyVersionsInUseQuota: "PolicyVersionsInUseQuota", ServerCertificates: "ServerCertificates", ServerCertificatesQuota: "ServerCertificatesQuota", SigningCertificatesPerUserQuota: "SigningCertificatesPerUserQuota", UserPolicySizeQuota: "UserPolicySizeQuota", Users: "Users", UsersQuota: "UsersQuota", VersionsPerPolicyQuota: "VersionsPerPolicyQuota" }; var CredentialReportExpiredException = class _CredentialReportExpiredException extends IAMServiceException { static { __name(this, "CredentialReportExpiredException"); } name = "CredentialReportExpiredException"; $fault = "client"; /** * @internal */ constructor(opts) { super({ name: "CredentialReportExpiredException", $fault: "client", ...opts }); Object.setPrototypeOf(this, _CredentialReportExpiredException.prototype); } }; var CredentialReportNotPresentException = class _CredentialReportNotPresentException extends IAMServiceException { static { __name(this, "CredentialReportNotPresentException"); } name = "CredentialReportNotPresentException"; $fault = "client"; /** * @internal */ constructor(opts) { super({ name: "CredentialReportNotPresentException", $fault: "client", ...opts }); Object.setPrototypeOf(this, _CredentialReportNotPresentException.prototype); } }; var CredentialReportNotReadyException = class _CredentialReportNotReadyException extends IAMServiceException { static { __name(this, "CredentialReportNotReadyException"); } name = "CredentialReportNotReadyException"; $fault = "client"; /** * @internal */ constructor(opts) { super({ name: "CredentialReportNotReadyException", $fault: "client", ...opts }); Object.setPrototypeOf(this, _CredentialReportNotReadyException.prototype); } }; var ReportFormatType = { text_csv: "text/csv" }; var SortKeyType = { LAST_AUTHENTICATED_TIME_ASCENDING: "LAST_AUTHENTICATED_TIME_ASCENDING", LAST_AUTHENTICATED_TIME_DESCENDING: "LAST_AUTHENTICATED_TIME_DESCENDING", SERVICE_NAMESPACE_ASCENDING: "SERVICE_NAMESPACE_ASCENDING", SERVICE_NAMESPACE_DESCENDING: "SERVICE_NAMESPACE_DESCENDING" }; var JobStatusType = { COMPLETED: "COMPLETED", FAILED: "FAILED", IN_PROGRESS: "IN_PROGRESS" }; var PolicyOwnerEntityType = { GROUP: "GROUP", ROLE: "ROLE", USER: "USER" }; var DeletionTaskStatusType = { FAILED: "FAILED", IN_PROGRESS: "IN_PROGRESS", NOT_STARTED: "NOT_STARTED", SUCCEEDED: "SUCCEEDED" }; var EncodingType = { PEM: "PEM", SSH: "SSH" }; var UnrecognizedPublicKeyEncodingException = class _UnrecognizedPublicKeyEncodingException extends IAMServiceException { static { __name(this, "UnrecognizedPublicKeyEncodingException"); } name = "UnrecognizedPublicKeyEncodingException"; $fault = "client"; /** * @internal */ constructor(opts) { super({ name: "UnrecognizedPublicKeyEncodingException", $fault: "client", ...opts }); Object.setPrototypeOf(this, _UnrecognizedPublicKeyEncodingException.prototype); } }; var PolicyUsageType = { PermissionsBoundary: "PermissionsBoundary", PermissionsPolicy: "PermissionsPolicy" }; var PolicyScopeType = { AWS: "AWS", All: "All", Local: "Local" }; var PolicyType = { INLINE: "INLINE", MANAGED: "MANAGED" }; var GlobalEndpointTokenVersion = { v1Token: "v1Token", v2Token: "v2Token" }; var PolicyEvaluationException = class _PolicyEvaluationException extends IAMServiceException { static { __name(this, "PolicyEvaluationException"); } name = "PolicyEvaluationException"; $fault = "server"; /** * @internal */ constructor(opts) { super({ name: "PolicyEvaluationException", $fault: "server", ...opts }); Object.setPrototypeOf(this, _PolicyEvaluationException.prototype); } }; var ContextKeyTypeEnum = { BINARY: "binary", BINARY_LIST: "binaryList", BOOLEAN: "boolean", BOOLEAN_LIST: "booleanList", DATE: "date", DATE_LIST: "dateList", IP: "ip", IP_LIST: "ipList", NUMERIC: "numeric", NUMERIC_LIST: "numericList", STRING: "string", STRING_LIST: "stringList" }; var AccessKeyFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({ ...obj, ...obj.SecretAccessKey && { SecretAccessKey: import_smithy_client.SENSITIVE_STRING } }), "AccessKeyFilterSensitiveLog"); var ChangePasswordRequestFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({ ...obj, ...obj.OldPassword && { OldPassword: import_smithy_client.SENSITIVE_STRING }, ...obj.NewPassword && { NewPassword: import_smithy_client.SENSITIVE_STRING } }), "ChangePasswordRequestFilterSensitiveLog"); var CreateAccessKeyResponseFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({ ...obj, ...obj.AccessKey && { AccessKey: AccessKeyFilterSensitiveLog(obj.AccessKey) } }), "CreateAccessKeyResponseFilterSensitiveLog"); var CreateLoginProfileRequestFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({ ...obj, ...obj.Password && { Password: import_smithy_client.SENSITIVE_STRING } }), "CreateLoginProfileRequestFilterSensitiveLog"); var CreateSAMLProviderRequestFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({ ...obj, ...obj.AddPrivateKey && { AddPrivateKey: import_smithy_client.SENSITIVE_STRING } }), "CreateSAMLProviderRequestFilterSensitiveLog"); var ServiceSpecificCredentialFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({ ...obj, ...obj.ServicePassword && { ServicePassword: import_smithy_client.SENSITIVE_STRING }, ...obj.ServiceCredentialSecret && { ServiceCredentialSecret: import_smithy_client.SENSITIVE_STRING } }), "ServiceSpecificCredentialFilterSensitiveLog"); var CreateServiceSpecificCredentialResponseFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({ ...obj, ...obj.ServiceSpecificCredential && { ServiceSpecificCredential: ServiceSpecificCredentialFilterSensitiveLog(obj.ServiceSpecificCredential) } }), "CreateServiceSpecificCredentialResponseFilterSensitiveLog"); var VirtualMFADeviceFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({ ...obj, ...obj.Base32StringSeed && { Base32StringSeed: import_smithy_client.SENSITIVE_STRING }, ...obj.QRCodePNG && { QRCodePNG: import_smithy_client.SENSITIVE_STRING } }), "VirtualMFADeviceFilterSensitiveLog"); var CreateVirtualMFADeviceResponseFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({ ...obj, ...obj.VirtualMFADevice && { VirtualMFADevice: VirtualMFADeviceFilterSensitiveLog(obj.VirtualMFADevice) } }), "CreateVirtualMFADeviceResponseFilterSensitiveLog"); var ListVirtualMFADevicesResponseFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({ ...obj, ...obj.VirtualMFADevices && { VirtualMFADevices: obj.VirtualMFADevices.map((item) => VirtualMFADeviceFilterSensitiveLog(item)) } }), "ListVirtualMFADevicesResponseFilterSensitiveLog"); var ResetServiceSpecificCredentialResponseFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({ ...obj, ...obj.ServiceSpecificCredential && { ServiceSpecificCredential: ServiceSpecificCredentialFilterSensitiveLog(obj.ServiceSpecificCredential) } }), "ResetServiceSpecificCredentialResponseFilterSensitiveLog"); // src/models/models_1.ts var PolicyEvaluationDecisionType = { ALLOWED: "allowed", EXPLICIT_DENY: "explicitDeny", IMPLICIT_DENY: "implicitDeny" }; var PolicySourceType = { AWS_MANAGED: "aws-managed", GROUP: "group", NONE: "none", RESOURCE: "resource", ROLE: "role", USER: "user", USER_MANAGED: "user-managed" }; var KeyPairMismatchException = class _KeyPairMismatchException extends IAMServiceException { static { __name(this, "KeyPairMismatchException"); } name = "KeyPairMismatchException"; $fault = "client"; /** * @internal */ constructor(opts) { super({ name: "KeyPairMismatchException", $fault: "client", ...opts }); Object.setPrototypeOf(this, _KeyPairMismatchException.prototype); } }; var MalformedCertificateException = class _MalformedCertificateException extends IAMServiceException { static { __name(this, "MalformedCertificateException"); } name = "MalformedCertificateException"; $fault = "client"; /** * @internal */ constructor(opts) { super({ name: "MalformedCertificateException", $fault: "client", ...opts }); Object.setPrototypeOf(this, _MalformedCertificateException.prototype); } }; var DuplicateCertificateException = class _DuplicateCertificateException extends IAMServiceException { static { __name(this, "DuplicateCertificateException"); } name = "DuplicateCertificateException"; $fault = "client"; /** * @internal */ constructor(opts) { super({ name: "DuplicateCertificateException", $fault: "client", ...opts }); Object.setPrototypeOf(this, _DuplicateCertificateException.prototype); } }; var InvalidCertificateException = class _InvalidCertificateException extends IAMServiceException { static { __name(this, "InvalidCertificateException"); } name = "InvalidCertificateException"; $fault = "client"; /** * @internal */ constructor(opts) { super({ name: "InvalidCertificateException", $fault: "client", ...opts }); Object.setPrototypeOf(this, _InvalidCertificateException.prototype); } }; var DuplicateSSHPublicKeyException = class _DuplicateSSHPublicKeyException extends IAMServiceException { static { __name(this, "DuplicateSSHPublicKeyException"); } name = "DuplicateSSHPublicKeyException"; $fault = "client"; /** * @internal */ constructor(opts) { super({ name: "DuplicateSSHPublicKeyException", $fault: "client", ...opts }); Object.setPrototypeOf(this, _DuplicateSSHPublicKeyException.prototype); } }; var InvalidPublicKeyException = class _InvalidPublicKeyException extends IAMServiceException { static { __name(this, "InvalidPublicKeyException"); } name = "InvalidPublicKeyException"; $fault = "client"; /** * @internal */ constructor(opts) { super({ name: "InvalidPublicKeyException", $fault: "client", ...opts }); Object.setPrototypeOf(this, _InvalidPublicKeyException.prototype); } }; var UpdateLoginProfileRequestFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({ ...obj, ...obj.Password && { Password: import_smithy_client.SENSITIVE_STRING } }), "UpdateLoginProfileRequestFilterSensitiveLog"); var UpdateSAMLProviderRequestFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({ ...obj, ...obj.AddPrivateKey && { AddPrivateKey: import_smithy_client.SENSITIVE_STRING } }), "UpdateSAMLProviderRequestFilterSensitiveLog"); var UploadServerCertificateRequestFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({ ...obj, ...obj.PrivateKey && { PrivateKey: import_smithy_cli