@NotThreadSafe public static interface S3Presigner.Builder extends SdkPresigner.Builder
S3Presigners. Created using S3Presigner.builder().| Modifier and Type | Method and Description |
|---|---|
S3Presigner |
build()
Build the presigner using the configuration on this builder.
|
default S3Presigner.Builder |
credentialsProvider(AwsCredentialsProvider credentialsProvider)
Configure the credentials that should be used for request signing.
|
S3Presigner.Builder |
credentialsProvider(IdentityProvider<? extends AwsCredentialsIdentity> credentialsProvider)
Configure the credentials that should be used to authenticate with AWS.
|
S3Presigner.Builder |
disableS3ExpressSessionAuth(Boolean disableS3ExpressSessionAuth)
Explicitly disable using S3 express session credentials when presigning a request with an S3 express bucket name.
|
S3Presigner.Builder |
dualstackEnabled(Boolean dualstackEnabled)
Configure whether the SDK should use the AWS dualstack endpoint.
|
S3Presigner.Builder |
endpointOverride(URI endpointOverride)
Configure an endpoint that should be used in the pre-signed requests.
|
S3Presigner.Builder |
fipsEnabled(Boolean fipsEnabled)
Configure whether the SDK should use the AWS fips endpoint.
|
S3Presigner.Builder |
region(Region region)
Configure the region for which the requests should be signed.
|
S3Presigner.Builder |
s3Client(S3Client s3Client)
Supply an S3 client for presigning S3 express requests that require S3 express session credentials,
S3ExpressSessionCredentials. |
S3Presigner.Builder |
serviceConfiguration(S3Configuration serviceConfiguration)
Allows providing a custom S3 serviceConfiguration by providing a
S3Configuration object;
Note: chunkedEncodingEnabled and checksumValidationEnabled do not apply to presigned requests. |
S3Presigner.Builder serviceConfiguration(S3Configuration serviceConfiguration)
S3Configuration object;
Note: chunkedEncodingEnabled and checksumValidationEnabled do not apply to presigned requests.serviceConfiguration - S3ConfigurationS3Presigner.Builder disableS3ExpressSessionAuth(Boolean disableS3ExpressSessionAuth)
S3ExpressSessionCredentials will be used for presigning
the request if an s3Client(S3Client) is also configured on the presigner.
Note: If this option and s3Client(S3Client) is not configured, S3 express presigning works,
but session auth will be disabled
disableS3ExpressSessionAuth - - whether to disable S3 express session auth or notS3Presigner.Builder s3Client(S3Client s3Client)
S3ExpressSessionCredentials. These session credentials are short-lived. If the client isn't supplied, a
presigned request targeting an S3 express bucket will use standard Sigv4 credentials for signing.
This results in the same behavior as disabling S3 session auth using disableS3ExpressSessionAuth(Boolean).
Note: If this option and disableS3ExpressSessionAuth(Boolean) is not configured, S3 express presigning works,
but session auth will be disabled
s3Client - S3ClientS3Presigner.Builder region(Region region)
SdkPresigner.BuilderIf this is not specified, the SDK will attempt to identify the endpoint automatically using the following logic:
If the region is not found in any of the locations above, an exception will be thrown at SdkPresigner.Builder.build()
time.
region in interface SdkPresigner.Builderdefault S3Presigner.Builder credentialsProvider(AwsCredentialsProvider credentialsProvider)
SdkPresigner.BuilderThe default provider will attempt to identify the credentials automatically using the following checks:
aws.accessKeyId and aws.secretAccessKeyAWS_ACCESS_KEY_ID and AWS_SECRET_ACCESS_KEYIf the credentials are not found in any of the locations above, an exception will be thrown at SdkPresigner.Builder.build()
time.
The last of SdkPresigner.Builder.credentialsProvider(AwsCredentialsProvider) or SdkPresigner.Builder.credentialsProvider(IdentityProvider)
wins.
credentialsProvider in interface SdkPresigner.BuilderS3Presigner.Builder credentialsProvider(IdentityProvider<? extends AwsCredentialsIdentity> credentialsProvider)
SdkPresigner.BuilderThe default provider will attempt to identify the credentials automatically using the following checks:
aws.accessKeyId and aws.secretAccessKeyAWS_ACCESS_KEY_ID and AWS_SECRET_ACCESS_KEYIf the credentials are not found in any of the locations above, an exception will be thrown at SdkPresigner.Builder.build()
time.
The last of SdkPresigner.Builder.credentialsProvider(AwsCredentialsProvider) or SdkPresigner.Builder.credentialsProvider(IdentityProvider)
wins.
credentialsProvider in interface SdkPresigner.BuilderS3Presigner.Builder dualstackEnabled(Boolean dualstackEnabled)
SdkPresigner.BuilderIf this is not specified, the SDK will attempt to determine whether the dualstack endpoint should be used automatically using the following logic:
If the setting is not found in any of the locations above, 'false' will be used.
dualstackEnabled in interface SdkPresigner.BuilderS3Presigner.Builder fipsEnabled(Boolean fipsEnabled)
SdkPresigner.BuilderIf this is not specified, the SDK will attempt to determine whether the fips endpoint should be used automatically using the following logic:
If the setting is not found in any of the locations above, 'false' will be used.
fipsEnabled in interface SdkPresigner.BuilderS3Presigner.Builder endpointOverride(URI endpointOverride)
SdkPresigner.BuilderSdkPresigner.Builder.region(Region) and SdkPresigner.Builder.dualstackEnabled(Boolean) settings.endpointOverride in interface SdkPresigner.BuilderS3Presigner build()
SdkPresigner.Builderbuild in interface SdkPresigner.BuilderCopyright © 2026. All rights reserved.