@Experimental(value=SOURCE_SINK) 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.UserAgentFactory
Modifier and Type | Method and Description |
---|---|
software.amazon.awssdk.utils.AttributeMap |
getAttributeMap()
The client configuration instance that should be used to configure AWS service clients.
|
AwsCredentialsProvider |
getAwsCredentialsProvider()
The credential instance that should be used to authenticate against AWS services.
|
java.lang.String |
getEndpoint()
The AWS service endpoint used by the AWS client.
|
software.amazon.awssdk.http.apache.ProxyConfiguration |
getProxyConfiguration()
The client configuration instance that should be used to configure AWS service clients.
|
java.lang.String |
getRegion()
AWS region used by the AWS client.
|
void |
setAttributeMap(software.amazon.awssdk.utils.AttributeMap attributeMap) |
void |
setAwsCredentialsProvider(AwsCredentialsProvider value) |
void |
setEndpoint(java.lang.String value) |
void |
setProxyConfiguration(software.amazon.awssdk.http.apache.ProxyConfiguration value) |
void |
setRegion(java.lang.String value) |
as, getJobName, getOptionsId, getRunner, getStableUniqueNames, getTempLocation, getUserAgent, outputRuntimeOptions, setJobName, setOptionsId, setRunner, setStableUniqueNames, setTempLocation, setUserAgent
populateDisplayData
@Validation.Required java.lang.String getRegion()
void setRegion(java.lang.String value)
java.lang.String getEndpoint()
void setEndpoint(java.lang.String value)
@Default.InstanceFactory(value=AwsOptions.AwsUserCredentialsFactory.class) AwsCredentialsProvider getAwsCredentialsProvider()
DefaultCredentialsProvider
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)
software.amazon.awssdk.http.apache.ProxyConfiguration getProxyConfiguration()
For example, to specify the proxy endpoint, username and password, specify the following:
--proxyConfiguration={
"endpoint": "http://hostname:port",
"username": "username",
"password": "password"
}
void setProxyConfiguration(software.amazon.awssdk.http.apache.ProxyConfiguration value)
software.amazon.awssdk.utils.AttributeMap getAttributeMap()
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.
--attributeMap={
"connectionAcquisitionTimeout":"PT1000S",
"connectionMaxIdleTime":"PT3000S",
"connectionTimeout":"PT10000S",
"socketTimeout":"PT600S",
"maxConnections":"10",
"socketTimeout":"PT5000SS"
}
void setAttributeMap(software.amazon.awssdk.utils.AttributeMap attributeMap)