Class DefaultS3Presigner.Builder
- java.lang.Object
-
- software.amazon.awssdk.services.s3.internal.signing.DefaultSdkPresigner.Builder<DefaultS3Presigner.Builder>
-
- software.amazon.awssdk.services.s3.internal.signing.DefaultS3Presigner.Builder
-
- All Implemented Interfaces:
SdkPresigner.Builder,S3Presigner.Builder
- Enclosing class:
- DefaultS3Presigner
@SdkInternalApi public static final class DefaultS3Presigner.Builder extends DefaultSdkPresigner.Builder<DefaultS3Presigner.Builder> implements S3Presigner.Builder
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description S3Presignerbuild()DefaultS3Presigner.BuilderdisableS3ExpressSessionAuth(Boolean disableS3ExpressSessionAuth)Explicitly disable using S3 express session credentials when presigning a request with an S3 express bucket name.DefaultS3Presigner.Builders3Client(S3Client s3Client)Supply an S3 client for presigning S3 express requests that require S3 express session credentials,S3ExpressSessionCredentials.DefaultS3Presigner.BuilderserviceConfiguration(S3Configuration serviceConfiguration)Allows providing a custom S3 serviceConfiguration by providing aS3Configurationobject; Note: chunkedEncodingEnabled and checksumValidationEnabled do not apply to presigned requests.-
Methods inherited from class software.amazon.awssdk.services.s3.internal.signing.DefaultSdkPresigner.Builder
credentialsProvider, credentialsProvider, dualstackEnabled, endpointOverride, fipsEnabled, region
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface software.amazon.awssdk.services.s3.presigner.S3Presigner.Builder
credentialsProvider, credentialsProvider, dualstackEnabled, endpointOverride, fipsEnabled, region
-
-
-
-
Method Detail
-
serviceConfiguration
public DefaultS3Presigner.Builder serviceConfiguration(S3Configuration serviceConfiguration)
Allows providing a custom S3 serviceConfiguration by providing aS3Configurationobject; Note: chunkedEncodingEnabled and checksumValidationEnabled do not apply to presigned requests.- Specified by:
serviceConfigurationin interfaceS3Presigner.Builder- Parameters:
serviceConfiguration-S3Configuration- Returns:
- this Builder
-
disableS3ExpressSessionAuth
public DefaultS3Presigner.Builder disableS3ExpressSessionAuth(Boolean disableS3ExpressSessionAuth)
Description copied from interface:S3Presigner.BuilderExplicitly disable using S3 express session credentials when presigning a request with an S3 express bucket name. This value is by default false, which means thatS3ExpressSessionCredentialswill be used for presigning the request if anS3Presigner.Builder.s3Client(S3Client)is also configured on the presigner.Note: If this option and
S3Presigner.Builder.s3Client(S3Client)is not configured, S3 express presigning works, but session auth will be disabled- Specified by:
disableS3ExpressSessionAuthin interfaceS3Presigner.Builder- Parameters:
disableS3ExpressSessionAuth- - whether to disable S3 express session auth or not- Returns:
- this Builder
-
s3Client
public DefaultS3Presigner.Builder s3Client(S3Client s3Client)
Description copied from interface:S3Presigner.BuilderSupply an S3 client for presigning S3 express requests that require S3 express session credentials,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 usingS3Presigner.Builder.disableS3ExpressSessionAuth(Boolean).Note: If this option and
S3Presigner.Builder.disableS3ExpressSessionAuth(Boolean)is not configured, S3 express presigning works, but session auth will be disabled- Specified by:
s3Clientin interfaceS3Presigner.Builder- Parameters:
s3Client-S3Client- Returns:
- this Builder
-
build
public S3Presigner build()
- Specified by:
buildin interfaceS3Presigner.Builder- Specified by:
buildin interfaceSdkPresigner.Builder
-
-