Class S3FileSystemConfig
java.lang.Object
io.trino.filesystem.s3.S3FileSystemConfig
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumstatic enumstatic enum -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription@Size(max=50) @NotNull String@NotNull S3FileSystemConfig.ObjectCannedAclOptional<io.airlift.units.Duration> Optional<io.airlift.units.Duration> com.google.common.net.HostAndPortboolean@Min(1L) Integer@Min(1L) int@NotNull StringOptional<io.airlift.units.Duration> Optional<io.airlift.units.Duration> @NotNull S3FileSystemConfig.S3SseType@NotNull @MinDataSize("5MB") @MaxDataSize("256MB") io.airlift.units.DataSizebooleanbooleanbooleanboolean@AssertTrue(message="s3.sse.customer-key has to be set for server-side encryption with customer-provided key") booleanbooleanbooleansetApplicationId(String applicationId) setAwsAccessKey(String awsAccessKey) setAwsSecretKey(String awsSecretKey) setCannedAcl(S3FileSystemConfig.ObjectCannedAcl objectCannedAcl) setConnectionMaxIdleTime(io.airlift.units.Duration connectionMaxIdleTime) setConnectionTtl(io.airlift.units.Duration connectionTtl) setEndpoint(String endpoint) setExternalId(String externalId) setHttpProxy(com.google.common.net.HostAndPort httpProxy) setHttpProxyPassword(String httpProxyPassword) setHttpProxyPreemptiveBasicProxyAuth(boolean preemptiveBasicProxyAuth) setHttpProxySecure(boolean httpProxySecure) setHttpProxyUsername(String httpProxyUsername) setIamRole(String iamRole) setMaxConnections(Integer maxConnections) setMaxErrorRetries(int maxErrorRetries) setNonProxyHosts(String nonProxyHosts) setPathStyleAccess(boolean pathStyleAccess) setRequesterPays(boolean requesterPays) setRetryMode(S3FileSystemConfig.RetryMode retryMode) setRoleSessionName(String roleSessionName) setSocketConnectTimeout(io.airlift.units.Duration socketConnectTimeout) setSocketReadTimeout(io.airlift.units.Duration socketReadTimeout) setSseCustomerKey(String sseCustomerKey) setSseKmsKeyId(String sseKmsKeyId) setSseType(S3FileSystemConfig.S3SseType sseType) setStreamingPartSize(io.airlift.units.DataSize streamingPartSize) setStsEndpoint(String stsEndpoint) setStsRegion(String stsRegion) setSupportsExclusiveCreate(boolean supportsExclusiveCreate) setTcpKeepAlive(boolean tcpKeepAlive) setUseWebIdentityTokenCredentialsProvider(boolean useWebIdentityTokenCredentialsProvider)
-
Constructor Details
-
S3FileSystemConfig
public S3FileSystemConfig()
-
-
Method Details
-
getAwsAccessKey
-
setAwsAccessKey
-
getAwsSecretKey
-
setAwsSecretKey
-
getEndpoint
-
setEndpoint
-
getRegion
-
setRegion
-
isPathStyleAccess
public boolean isPathStyleAccess() -
setPathStyleAccess
@Config("s3.path-style-access") public S3FileSystemConfig setPathStyleAccess(boolean pathStyleAccess) -
getIamRole
-
setIamRole
-
getRoleSessionName
-
setRoleSessionName
@Config("s3.role-session-name") public S3FileSystemConfig setRoleSessionName(String roleSessionName) -
getExternalId
-
setExternalId
-
getStsEndpoint
-
setStsEndpoint
-
getStsRegion
-
setStsRegion
-
getCannedAcl
-
setCannedAcl
@Config("s3.canned-acl") public S3FileSystemConfig setCannedAcl(S3FileSystemConfig.ObjectCannedAcl objectCannedAcl) -
getRetryMode
-
setRetryMode
@Config("s3.retry-mode") public S3FileSystemConfig setRetryMode(S3FileSystemConfig.RetryMode retryMode) -
getMaxErrorRetries
@Min(1L) public @Min(1L) int getMaxErrorRetries() -
setMaxErrorRetries
-
getSseType
-
setSseType
-
getSseKmsKeyId
-
setSseKmsKeyId
-
isUseWebIdentityTokenCredentialsProvider
public boolean isUseWebIdentityTokenCredentialsProvider() -
setUseWebIdentityTokenCredentialsProvider
@Config("s3.use-web-identity-token-credentials-provider") public S3FileSystemConfig setUseWebIdentityTokenCredentialsProvider(boolean useWebIdentityTokenCredentialsProvider) -
getSseCustomerKey
-
setSseCustomerKey
-
isSseWithCustomerKeyConfigValid
@AssertTrue(message="s3.sse.customer-key has to be set for server-side encryption with customer-provided key") public @AssertTrue(message="s3.sse.customer-key has to be set for server-side encryption with customer-provided key") boolean isSseWithCustomerKeyConfigValid() -
getStreamingPartSize
@NotNull @MinDataSize("5MB") @MaxDataSize("256MB") public @NotNull @MinDataSize("5MB") @MaxDataSize("256MB") io.airlift.units.DataSize getStreamingPartSize() -
setStreamingPartSize
@Config("s3.streaming.part-size") public S3FileSystemConfig setStreamingPartSize(io.airlift.units.DataSize streamingPartSize) -
isRequesterPays
public boolean isRequesterPays() -
setRequesterPays
-
getMaxConnections
-
setMaxConnections
-
getConnectionTtl
-
setConnectionTtl
@Config("s3.connection-ttl") public S3FileSystemConfig setConnectionTtl(io.airlift.units.Duration connectionTtl) -
getConnectionMaxIdleTime
-
setConnectionMaxIdleTime
@Config("s3.connection-max-idle-time") public S3FileSystemConfig setConnectionMaxIdleTime(io.airlift.units.Duration connectionMaxIdleTime) -
getSocketConnectTimeout
-
setSocketConnectTimeout
@Config("s3.socket-connect-timeout") public S3FileSystemConfig setSocketConnectTimeout(io.airlift.units.Duration socketConnectTimeout) -
getSocketReadTimeout
-
setSocketReadTimeout
@Config("s3.socket-read-timeout") public S3FileSystemConfig setSocketReadTimeout(io.airlift.units.Duration socketReadTimeout) -
getTcpKeepAlive
public boolean getTcpKeepAlive() -
setTcpKeepAlive
-
getHttpProxy
public com.google.common.net.HostAndPort getHttpProxy() -
setHttpProxy
@Config("s3.http-proxy") public S3FileSystemConfig setHttpProxy(com.google.common.net.HostAndPort httpProxy) -
isHttpProxySecure
public boolean isHttpProxySecure() -
setHttpProxySecure
@Config("s3.http-proxy.secure") public S3FileSystemConfig setHttpProxySecure(boolean httpProxySecure) -
getHttpProxyUsername
-
setHttpProxyUsername
@Config("s3.http-proxy.username") public S3FileSystemConfig setHttpProxyUsername(String httpProxyUsername) -
getHttpProxyPassword
-
setHttpProxyPassword
@Config("s3.http-proxy.password") public S3FileSystemConfig setHttpProxyPassword(String httpProxyPassword) -
getHttpProxyPreemptiveBasicProxyAuth
public boolean getHttpProxyPreemptiveBasicProxyAuth() -
setHttpProxyPreemptiveBasicProxyAuth
@Config("s3.http-proxy.preemptive-basic-auth") public S3FileSystemConfig setHttpProxyPreemptiveBasicProxyAuth(boolean preemptiveBasicProxyAuth) -
getNonProxyHosts
-
setNonProxyHosts
@Config("s3.http-proxy.non-proxy-hosts") public S3FileSystemConfig setNonProxyHosts(String nonProxyHosts) -
isSupportsExclusiveCreate
public boolean isSupportsExclusiveCreate() -
setSupportsExclusiveCreate
@Config("s3.exclusive-create") public S3FileSystemConfig setSupportsExclusiveCreate(boolean supportsExclusiveCreate) -
getApplicationId
-
setApplicationId
-