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.NoOpMetricsSink, PipelineOptions.UserAgentFactory
Modifier and Type | Method and Description |
---|---|
com.amazonaws.auth.AWSCredentialsProvider |
getAwsCredentialsProvider()
The credential instance that should be used to authenticate against AWS services.
|
java.lang.String |
getAwsRegion()
AWS region used by the AWS client.
|
java.lang.String |
getAwsServiceEndpoint()
The AWS service endpoint used by the AWS client.
|
com.amazonaws.ClientConfiguration |
getClientConfiguration()
The client configuration instance that should be used to configure AWS service clients.
|
void |
setAwsCredentialsProvider(com.amazonaws.auth.AWSCredentialsProvider value) |
void |
setAwsRegion(java.lang.String value) |
void |
setAwsServiceEndpoint(java.lang.String value) |
void |
setClientConfiguration(com.amazonaws.ClientConfiguration clientConfiguration) |
as, getJobName, getMetricsHttpSinkUrl, getMetricsPushPeriod, getMetricsSink, getOptionsId, getRunner, getStableUniqueNames, getTempLocation, getUserAgent, outputRuntimeOptions, setJobName, setMetricsHttpSinkUrl, setMetricsPushPeriod, setMetricsSink, 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) com.amazonaws.auth.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(com.amazonaws.auth.AWSCredentialsProvider value)
@Default.InstanceFactory(value=AwsOptions.ClientConfigurationFactory.class) com.amazonaws.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(com.amazonaws.ClientConfiguration clientConfiguration)