public interface AwsOptions extends PipelineOptions
Modifier and Type | Interface and Description |
---|---|
static class |
AwsOptions.AwsUserCredentialsFactory
Attempts to load AWS credentials.
|
static class |
AwsOptions.ClientConfigurationFactory
Default AWS client configuration.
|
PipelineOptions.AtomicLongFactory, PipelineOptions.CheckEnabled, PipelineOptions.DirectRunner, PipelineOptions.JobNameFactory, PipelineOptions.UserAgentFactory
Modifier and Type | Method and Description |
---|---|
AWSCredentialsProvider |
getAwsCredentialsProvider()
The credential instance that should be used to authenticate against AWS services.
|
ClientConfiguration |
getAwsHttpClientConfiguration()
The client configuration instance that should be used to configure AWS service clients.
|
java.lang.String |
getAwsRegion()
AWS region used by the AWS client.
|
java.lang.String |
getAwsServiceEndpoint()
The AWS service endpoint used by the AWS client.
|
ClientConfiguration |
getClientConfiguration()
The client configuration instance that should be used to configure AWS service clients.
|
void |
setAwsCredentialsProvider(AWSCredentialsProvider value) |
void |
setAwsHttpClientConfiguration(ClientConfiguration clientConfiguration) |
void |
setAwsRegion(java.lang.String value) |
void |
setAwsServiceEndpoint(java.lang.String value) |
void |
setClientConfiguration(ClientConfiguration clientConfiguration) |
as, getJobName, getOptionsId, getRunner, getStableUniqueNames, getTempLocation, getUserAgent, outputRuntimeOptions, setJobName, setOptionsId, setRunner, setStableUniqueNames, setTempLocation, setUserAgent
populateDisplayData
@Validation.Required java.lang.String getAwsRegion()
void setAwsRegion(java.lang.String value)
java.lang.String getAwsServiceEndpoint()
void setAwsServiceEndpoint(java.lang.String value)
@Default.InstanceFactory(value=AwsOptions.AwsUserCredentialsFactory.class) AWSCredentialsProvider getAwsCredentialsProvider()
DefaultAWSCredentialsProviderChain
Javadoc for usage help.
For example, to specify the AWS key ID and secret, specify the following:
{"@type" : "AWSStaticCredentialsProvider", "awsAccessKeyId" : "key_id_value",
"awsSecretKey" : "secret_value"}
void setAwsCredentialsProvider(AWSCredentialsProvider value)
@Default.InstanceFactory(value=AwsOptions.ClientConfigurationFactory.class) ClientConfiguration getClientConfiguration()
For example, to specify the proxy host, port, username and password, specify the following:
--clientConfiguration={
"proxyHost":"hostname",
"proxyPort":1234,
"proxyUsername":"username",
"proxyPassword":"password"
}
void setClientConfiguration(ClientConfiguration clientConfiguration)
@Default.InstanceFactory(value=AwsOptions.ClientConfigurationFactory.class) ClientConfiguration getAwsHttpClientConfiguration()
For example, to set different timeout for aws client service : Note that all the below
fields are optional, so only add those configurations that need to be set.
--clientConfiguration={
"clientExecutionTimeout":1000,
"connectionMaxIdleTime":3000,
"connectionTimeout":10000,
"requestTimeout":30,
"socketTimeout":600,
"maxConnections":10,
"socketTimeout":5000
}
void setAwsHttpClientConfiguration(ClientConfiguration clientConfiguration)