@aws-sdk/client-iam 3.645.0 → 3.650.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist-cjs/endpoint/endpointResolver.js +6 -2
- package/dist-cjs/index.js +159 -477
- package/dist-es/commands/AddClientIDToOpenIDConnectProviderCommand.js +1 -3
- package/dist-es/commands/AddRoleToInstanceProfileCommand.js +1 -3
- package/dist-es/commands/AddUserToGroupCommand.js +1 -3
- package/dist-es/commands/AttachGroupPolicyCommand.js +1 -3
- package/dist-es/commands/AttachRolePolicyCommand.js +1 -3
- package/dist-es/commands/AttachUserPolicyCommand.js +1 -3
- package/dist-es/commands/ChangePasswordCommand.js +1 -3
- package/dist-es/commands/CreateAccessKeyCommand.js +1 -3
- package/dist-es/commands/CreateAccountAliasCommand.js +1 -3
- package/dist-es/commands/CreateGroupCommand.js +1 -3
- package/dist-es/commands/CreateInstanceProfileCommand.js +1 -3
- package/dist-es/commands/CreateLoginProfileCommand.js +1 -3
- package/dist-es/commands/CreateOpenIDConnectProviderCommand.js +1 -3
- package/dist-es/commands/CreatePolicyCommand.js +1 -3
- package/dist-es/commands/CreatePolicyVersionCommand.js +1 -3
- package/dist-es/commands/CreateRoleCommand.js +1 -3
- package/dist-es/commands/CreateSAMLProviderCommand.js +1 -3
- package/dist-es/commands/CreateServiceLinkedRoleCommand.js +1 -3
- package/dist-es/commands/CreateServiceSpecificCredentialCommand.js +1 -3
- package/dist-es/commands/CreateUserCommand.js +1 -3
- package/dist-es/commands/CreateVirtualMFADeviceCommand.js +1 -3
- package/dist-es/commands/DeactivateMFADeviceCommand.js +1 -3
- package/dist-es/commands/DeleteAccessKeyCommand.js +1 -3
- package/dist-es/commands/DeleteAccountAliasCommand.js +1 -3
- package/dist-es/commands/DeleteAccountPasswordPolicyCommand.js +1 -3
- package/dist-es/commands/DeleteGroupCommand.js +1 -3
- package/dist-es/commands/DeleteGroupPolicyCommand.js +1 -3
- package/dist-es/commands/DeleteInstanceProfileCommand.js +1 -3
- package/dist-es/commands/DeleteLoginProfileCommand.js +1 -3
- package/dist-es/commands/DeleteOpenIDConnectProviderCommand.js +1 -3
- package/dist-es/commands/DeletePolicyCommand.js +1 -3
- package/dist-es/commands/DeletePolicyVersionCommand.js +1 -3
- package/dist-es/commands/DeleteRoleCommand.js +1 -3
- package/dist-es/commands/DeleteRolePermissionsBoundaryCommand.js +1 -3
- package/dist-es/commands/DeleteRolePolicyCommand.js +1 -3
- package/dist-es/commands/DeleteSAMLProviderCommand.js +1 -3
- package/dist-es/commands/DeleteSSHPublicKeyCommand.js +1 -3
- package/dist-es/commands/DeleteServerCertificateCommand.js +1 -3
- package/dist-es/commands/DeleteServiceLinkedRoleCommand.js +1 -3
- package/dist-es/commands/DeleteServiceSpecificCredentialCommand.js +1 -3
- package/dist-es/commands/DeleteSigningCertificateCommand.js +1 -3
- package/dist-es/commands/DeleteUserCommand.js +1 -3
- package/dist-es/commands/DeleteUserPermissionsBoundaryCommand.js +1 -3
- package/dist-es/commands/DeleteUserPolicyCommand.js +1 -3
- package/dist-es/commands/DeleteVirtualMFADeviceCommand.js +1 -3
- package/dist-es/commands/DetachGroupPolicyCommand.js +1 -3
- package/dist-es/commands/DetachRolePolicyCommand.js +1 -3
- package/dist-es/commands/DetachUserPolicyCommand.js +1 -3
- package/dist-es/commands/EnableMFADeviceCommand.js +1 -3
- package/dist-es/commands/GenerateCredentialReportCommand.js +1 -3
- package/dist-es/commands/GenerateOrganizationsAccessReportCommand.js +1 -3
- package/dist-es/commands/GenerateServiceLastAccessedDetailsCommand.js +1 -3
- package/dist-es/commands/GetAccessKeyLastUsedCommand.js +1 -3
- package/dist-es/commands/GetAccountAuthorizationDetailsCommand.js +1 -3
- package/dist-es/commands/GetAccountPasswordPolicyCommand.js +1 -3
- package/dist-es/commands/GetAccountSummaryCommand.js +1 -3
- package/dist-es/commands/GetContextKeysForCustomPolicyCommand.js +1 -3
- package/dist-es/commands/GetContextKeysForPrincipalPolicyCommand.js +1 -3
- package/dist-es/commands/GetCredentialReportCommand.js +1 -3
- package/dist-es/commands/GetGroupCommand.js +1 -3
- package/dist-es/commands/GetGroupPolicyCommand.js +1 -3
- package/dist-es/commands/GetInstanceProfileCommand.js +1 -3
- package/dist-es/commands/GetLoginProfileCommand.js +1 -3
- package/dist-es/commands/GetMFADeviceCommand.js +1 -3
- package/dist-es/commands/GetOpenIDConnectProviderCommand.js +1 -3
- package/dist-es/commands/GetOrganizationsAccessReportCommand.js +1 -3
- package/dist-es/commands/GetPolicyCommand.js +1 -3
- package/dist-es/commands/GetPolicyVersionCommand.js +1 -3
- package/dist-es/commands/GetRoleCommand.js +1 -3
- package/dist-es/commands/GetRolePolicyCommand.js +1 -3
- package/dist-es/commands/GetSAMLProviderCommand.js +1 -3
- package/dist-es/commands/GetSSHPublicKeyCommand.js +1 -3
- package/dist-es/commands/GetServerCertificateCommand.js +1 -3
- package/dist-es/commands/GetServiceLastAccessedDetailsCommand.js +1 -3
- package/dist-es/commands/GetServiceLastAccessedDetailsWithEntitiesCommand.js +1 -3
- package/dist-es/commands/GetServiceLinkedRoleDeletionStatusCommand.js +1 -3
- package/dist-es/commands/GetUserCommand.js +1 -3
- package/dist-es/commands/GetUserPolicyCommand.js +1 -3
- package/dist-es/commands/ListAccessKeysCommand.js +1 -3
- package/dist-es/commands/ListAccountAliasesCommand.js +1 -3
- package/dist-es/commands/ListAttachedGroupPoliciesCommand.js +1 -3
- package/dist-es/commands/ListAttachedRolePoliciesCommand.js +1 -3
- package/dist-es/commands/ListAttachedUserPoliciesCommand.js +1 -3
- package/dist-es/commands/ListEntitiesForPolicyCommand.js +1 -3
- package/dist-es/commands/ListGroupPoliciesCommand.js +1 -3
- package/dist-es/commands/ListGroupsCommand.js +1 -3
- package/dist-es/commands/ListGroupsForUserCommand.js +1 -3
- package/dist-es/commands/ListInstanceProfileTagsCommand.js +1 -3
- package/dist-es/commands/ListInstanceProfilesCommand.js +1 -3
- package/dist-es/commands/ListInstanceProfilesForRoleCommand.js +1 -3
- package/dist-es/commands/ListMFADeviceTagsCommand.js +1 -3
- package/dist-es/commands/ListMFADevicesCommand.js +1 -3
- package/dist-es/commands/ListOpenIDConnectProviderTagsCommand.js +1 -3
- package/dist-es/commands/ListOpenIDConnectProvidersCommand.js +1 -3
- package/dist-es/commands/ListPoliciesCommand.js +1 -3
- package/dist-es/commands/ListPoliciesGrantingServiceAccessCommand.js +1 -3
- package/dist-es/commands/ListPolicyTagsCommand.js +1 -3
- package/dist-es/commands/ListPolicyVersionsCommand.js +1 -3
- package/dist-es/commands/ListRolePoliciesCommand.js +1 -3
- package/dist-es/commands/ListRoleTagsCommand.js +1 -3
- package/dist-es/commands/ListRolesCommand.js +1 -3
- package/dist-es/commands/ListSAMLProviderTagsCommand.js +1 -3
- package/dist-es/commands/ListSAMLProvidersCommand.js +1 -3
- package/dist-es/commands/ListSSHPublicKeysCommand.js +1 -3
- package/dist-es/commands/ListServerCertificateTagsCommand.js +1 -3
- package/dist-es/commands/ListServerCertificatesCommand.js +1 -3
- package/dist-es/commands/ListServiceSpecificCredentialsCommand.js +1 -3
- package/dist-es/commands/ListSigningCertificatesCommand.js +1 -3
- package/dist-es/commands/ListUserPoliciesCommand.js +1 -3
- package/dist-es/commands/ListUserTagsCommand.js +1 -3
- package/dist-es/commands/ListUsersCommand.js +1 -3
- package/dist-es/commands/ListVirtualMFADevicesCommand.js +1 -3
- package/dist-es/commands/PutGroupPolicyCommand.js +1 -3
- package/dist-es/commands/PutRolePermissionsBoundaryCommand.js +1 -3
- package/dist-es/commands/PutRolePolicyCommand.js +1 -3
- package/dist-es/commands/PutUserPermissionsBoundaryCommand.js +1 -3
- package/dist-es/commands/PutUserPolicyCommand.js +1 -3
- package/dist-es/commands/RemoveClientIDFromOpenIDConnectProviderCommand.js +1 -3
- package/dist-es/commands/RemoveRoleFromInstanceProfileCommand.js +1 -3
- package/dist-es/commands/RemoveUserFromGroupCommand.js +1 -3
- package/dist-es/commands/ResetServiceSpecificCredentialCommand.js +1 -3
- package/dist-es/commands/ResyncMFADeviceCommand.js +1 -3
- package/dist-es/commands/SetDefaultPolicyVersionCommand.js +1 -3
- package/dist-es/commands/SetSecurityTokenServicePreferencesCommand.js +1 -3
- package/dist-es/commands/SimulateCustomPolicyCommand.js +1 -3
- package/dist-es/commands/SimulatePrincipalPolicyCommand.js +1 -3
- package/dist-es/commands/TagInstanceProfileCommand.js +1 -3
- package/dist-es/commands/TagMFADeviceCommand.js +1 -3
- package/dist-es/commands/TagOpenIDConnectProviderCommand.js +1 -3
- package/dist-es/commands/TagPolicyCommand.js +1 -3
- package/dist-es/commands/TagRoleCommand.js +1 -3
- package/dist-es/commands/TagSAMLProviderCommand.js +1 -3
- package/dist-es/commands/TagServerCertificateCommand.js +1 -3
- package/dist-es/commands/TagUserCommand.js +1 -3
- package/dist-es/commands/UntagInstanceProfileCommand.js +1 -3
- package/dist-es/commands/UntagMFADeviceCommand.js +1 -3
- package/dist-es/commands/UntagOpenIDConnectProviderCommand.js +1 -3
- package/dist-es/commands/UntagPolicyCommand.js +1 -3
- package/dist-es/commands/UntagRoleCommand.js +1 -3
- package/dist-es/commands/UntagSAMLProviderCommand.js +1 -3
- package/dist-es/commands/UntagServerCertificateCommand.js +1 -3
- package/dist-es/commands/UntagUserCommand.js +1 -3
- package/dist-es/commands/UpdateAccessKeyCommand.js +1 -3
- package/dist-es/commands/UpdateAccountPasswordPolicyCommand.js +1 -3
- package/dist-es/commands/UpdateAssumeRolePolicyCommand.js +1 -3
- package/dist-es/commands/UpdateGroupCommand.js +1 -3
- package/dist-es/commands/UpdateLoginProfileCommand.js +1 -3
- package/dist-es/commands/UpdateOpenIDConnectProviderThumbprintCommand.js +1 -3
- package/dist-es/commands/UpdateRoleCommand.js +1 -3
- package/dist-es/commands/UpdateRoleDescriptionCommand.js +1 -3
- package/dist-es/commands/UpdateSAMLProviderCommand.js +1 -3
- package/dist-es/commands/UpdateSSHPublicKeyCommand.js +1 -3
- package/dist-es/commands/UpdateServerCertificateCommand.js +1 -3
- package/dist-es/commands/UpdateServiceSpecificCredentialCommand.js +1 -3
- package/dist-es/commands/UpdateSigningCertificateCommand.js +1 -3
- package/dist-es/commands/UpdateUserCommand.js +1 -3
- package/dist-es/commands/UploadSSHPublicKeyCommand.js +1 -3
- package/dist-es/commands/UploadServerCertificateCommand.js +1 -3
- package/dist-es/commands/UploadSigningCertificateCommand.js +1 -3
- package/dist-es/endpoint/endpointResolver.js +7 -3
- package/dist-types/runtimeConfig.browser.d.ts +2 -0
- package/dist-types/runtimeConfig.d.ts +2 -0
- package/dist-types/runtimeConfig.native.d.ts +2 -0
- package/dist-types/ts3.4/runtimeConfig.browser.d.ts +2 -0
- package/dist-types/ts3.4/runtimeConfig.d.ts +2 -0
- package/dist-types/ts3.4/runtimeConfig.native.d.ts +2 -0
- package/package.json +36 -36
|
@@ -4,11 +4,15 @@ exports.defaultEndpointResolver = void 0;
|
|
|
4
4
|
const util_endpoints_1 = require("@aws-sdk/util-endpoints");
|
|
5
5
|
const util_endpoints_2 = require("@smithy/util-endpoints");
|
|
6
6
|
const ruleset_1 = require("./ruleset");
|
|
7
|
+
const cache = new util_endpoints_2.EndpointCache({
|
|
8
|
+
size: 50,
|
|
9
|
+
params: ["Endpoint", "Region", "UseDualStack", "UseFIPS"],
|
|
10
|
+
});
|
|
7
11
|
const defaultEndpointResolver = (endpointParams, context = {}) => {
|
|
8
|
-
return (0, util_endpoints_2.resolveEndpoint)(ruleset_1.ruleSet, {
|
|
12
|
+
return cache.get(endpointParams, () => (0, util_endpoints_2.resolveEndpoint)(ruleset_1.ruleSet, {
|
|
9
13
|
endpointParams: endpointParams,
|
|
10
14
|
logger: context.logger,
|
|
11
|
-
});
|
|
15
|
+
}));
|
|
12
16
|
};
|
|
13
17
|
exports.defaultEndpointResolver = defaultEndpointResolver;
|
|
14
18
|
util_endpoints_2.customEndpointFunctions.aws = util_endpoints_1.awsEndpointFunctions;
|