Class SdkCredentialsProviders
java.lang.Object
dev.hardwood.aws.auth.SdkCredentialsProviders
Bridges the AWS SDK credential chain to Hardwood's types.
This class requires software.amazon.awssdk:auth on the classpath.
Use the hardwood-aws-auth module dependency to pull it in.
-
Method Summary
Modifier and TypeMethodDescriptionstatic S3CredentialsProviderReturns a provider backed by the full AWS default credential chain (env vars,~/.aws/credentials, EC2/ECS instance profile, SSO, web identity, etc.).static S3CredentialsProviderfromProfile(String profileName) Returns a provider for a specific named profile from~/.aws/credentials.
-
Method Details
-
defaultChain
Returns a provider backed by the full AWS default credential chain (env vars,~/.aws/credentials, EC2/ECS instance profile, SSO, web identity, etc.). -
fromProfile
Returns a provider for a specific named profile from~/.aws/credentials.- Parameters:
profileName- the profile name
-