public interface AwsOptions extends PipelineOptions
Modifier and Type | Interface and Description |
---|---|
static class |
AwsOptions.AwsUserCredentialsFactory
Attempts to load AWS credentials.
|
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.
|
void |
setAwsCredentialsProvider(com.amazonaws.auth.AWSCredentialsProvider value) |
void |
setAwsRegion(java.lang.String value) |
void |
setAwsServiceEndpoint(java.lang.String value) |
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)