- Behavior change: requests are now retried automatically on throttling errors, HTTP 429/500/502/503/504 responses and transport failures, with full-jitter exponential backoff and three attempts in total (the
standardretry mode of the official AWS SDKs). Every operation is retried, including non-idempotent ones. Configure or turn this off per client with theretryOptionsparameter (RetryOptions.disabled()opts out). - Behavior change: clients built without
credentialsorcredentialsProvidernow resolve credentials through the full default chain (environment, web identity, shared config files, container endpoint, instance metadata), cached and refreshed before expiry, instead of only the environment variables and~/.aws/credentials. Instance metadata and container requests time out after one second so a host without credentials fails fast instead of hanging. - Potentially breaking: every service library now also exports
RetryOptions,AwsExceptionandGenericAwsException.package:retryhas its ownRetryOptions: a file that imports it alongside a service library without a prefix and usesRetryOptionsmust now addhide RetryOptionsto one of the imports, or import one of them with a prefix. AwsExceptionandGenericAwsExceptionbeing exported means an error from any service can be caught by a shared type.GenericAwsExceptionalso exposes the response's HTTPstatusCode.- The default credential provider chain now also resolves ECS/EKS container credentials (
fromContainer) and web identity / IRSA (fromWebIdentity, via STSAssumeRoleWithWebIdentity), and the EC2 instance metadata provider now uses IMDSv2. - Added
fromSso(IAM Identity Center profiles, including token refresh) andfromProcess(credential_process) providers, both part of the default chain. - Query and REST-XML services: an error response with an empty or non-XML body (such as a proxy's HTML error page) now throws a
GenericAwsExceptioncarrying the HTTP status instead of an XML parsing error, so a 5xx is retried.