@Experimental(value=SOURCE_SINK) public interface AwsOptions extends PipelineOptions
Modifier and Type | Interface and Description |
---|---|
static class |
AwsOptions.AwsRegionFactory
Attempt to load default region.
|
static class |
AwsOptions.AwsUserCredentialsFactory
Return
DefaultCredentialsProvider as default provider. |
PipelineOptions.AtomicLongFactory, PipelineOptions.CheckEnabled, PipelineOptions.DirectRunner, PipelineOptions.JobNameFactory, PipelineOptions.UserAgentFactory
Modifier and Type | Method and Description |
---|---|
AwsCredentialsProvider |
getAwsCredentialsProvider()
AwsCredentialsProvider used to configure AWS service clients. |
Region |
getAwsRegion()
Region used to configure AWS service clients.
|
java.lang.Class<? extends ClientBuilderFactory> |
getClientBuilderFactory() |
java.net.URI |
getEndpoint()
Endpoint used to configure AWS service clients.
|
HttpClientConfiguration |
getHttpClientConfiguration()
HttpClientConfiguration used to configure AWS service clients. |
software.amazon.awssdk.http.apache.ProxyConfiguration |
getProxyConfiguration()
ProxyConfiguration used to configure AWS service clients. |
void |
setAwsCredentialsProvider(AwsCredentialsProvider value) |
void |
setAwsRegion(Region region) |
void |
setClientBuilderFactory(java.lang.Class<? extends ClientBuilderFactory> clazz) |
void |
setEndpoint(java.net.URI uri) |
void |
setHttpClientConfiguration(HttpClientConfiguration value) |
void |
setProxyConfiguration(software.amazon.awssdk.http.apache.ProxyConfiguration value) |
as, getJobName, getOptionsId, getRunner, getStableUniqueNames, getTempLocation, getUserAgent, outputRuntimeOptions, setJobName, setOptionsId, setRunner, setStableUniqueNames, setTempLocation, setUserAgent
populateDisplayData
@Default.InstanceFactory(value=AwsOptions.AwsRegionFactory.class) Region getAwsRegion()
void setAwsRegion(Region region)
java.net.URI getEndpoint()
void setEndpoint(java.net.URI uri)
@Default.InstanceFactory(value=AwsOptions.AwsUserCredentialsFactory.class) AwsCredentialsProvider getAwsCredentialsProvider()
AwsCredentialsProvider
used to configure AWS service clients.
The class name of the provider must be set in the @type
field. Note: Not all
available providers are supported and some configuration options might be ignored.
Most providers rely on system's environment to follow AWS conventions, there's no further configuration:
DefaultCredentialsProvider
EnvironmentVariableCredentialsProvider
SystemPropertyCredentialsProvider
ProfileCredentialsProvider
ContainerCredentialsProvider
Example:
--awsCredentialsProvider={"@type": "ProfileCredentialsProvider"}
Some other providers require additional configuration:
StaticCredentialsProvider
StsAssumeRoleCredentialsProvider
Examples:
--awsCredentialsProvider={
"@type": "StaticCredentialsProvider",
"awsAccessKeyId": "key_id_value",
"awsSecretKey": "secret_value"
}
--awsCredentialsProvider={
"@type": "StaticCredentialsProvider",
"awsAccessKeyId": "key_id_value",
"awsSecretKey": "secret_value",
"sessionToken": "token_value"
}
--awsCredentialsProvider={
"@type": "StsAssumeRoleCredentialsProvider",
"roleArn": "role_arn_Value",
"roleSessionName": "session_name_value",
"policy": "policy_value",
"durationSeconds": 3600
}
DefaultCredentialsProvider
void setAwsCredentialsProvider(AwsCredentialsProvider value)
software.amazon.awssdk.http.apache.ProxyConfiguration getProxyConfiguration()
ProxyConfiguration
used to configure AWS service clients.
Note, only the options shown in the example below are supported. username
and
password
are optional.
Example:
--proxyConfiguration={
"endpoint": "http://hostname:port",
"username": "username",
"password": "password"
}
void setProxyConfiguration(software.amazon.awssdk.http.apache.ProxyConfiguration value)
HttpClientConfiguration getHttpClientConfiguration()
HttpClientConfiguration
used to configure AWS service clients.
Example:
--httpClientConfiguration={"socketTimeout":1000, "maxConnections":10}
void setHttpClientConfiguration(HttpClientConfiguration value)
@Default.Class(value=ClientBuilderFactory.DefaultClientBuilder.class) java.lang.Class<? extends ClientBuilderFactory> getClientBuilderFactory()
void setClientBuilderFactory(java.lang.Class<? extends ClientBuilderFactory> clazz)