public interface AwsCredentialsTask
interface for Embulk's task-defining interface.| Modifier and Type | Method and Description |
|---|---|
Optional<String> |
getAccessKeyId()
Gets the AWS IAM access key ID configured.
|
Optional<String> |
getAccountId()
Gets the AWS Account ID configured.
|
String |
getArnPartition()
Gets the ARN Partition configured.
|
String |
getAuthMethod()
Gets the authentication method configured.
|
int |
getDurationInSeconds()
Gets the Duration in seconds configured.
|
Optional<String> |
getExternalId()
Gets the External ID configured.
|
Optional<String> |
getProfileFile()
Gets the path to an AWS IAM profile file configured.
|
Optional<String> |
getProfileName()
Gets the name in an AWS IAM profile file configured.
|
Optional<String> |
getRoleName()
Gets the AWS Role Name configured.
|
Optional<String> |
getSecretAccessKey()
Gets the AWS IAM secret access key configured.
|
String |
getSessionName()
Gets the Role session name configured.
|
Optional<String> |
getSessionToken()
Gets the AWS IAM session token configured.
|
void |
setAccessKeyId(Optional<String> value)
Sets an AWS IAM access key ID to configure.
|
void |
setAccountId(Optional<String> value)
Sets an AWS Account ID to configure.
|
void |
setArnPartition(String value)
Sets an ARN Partition to configure.
|
void |
setAuthMethod(String method)
Sets an authentication method to configure.
|
void |
setDurationInSeconds(int value)
Sets a Duration in seconds to configure.
|
void |
setExternalId(Optional<String> value)
Sets an External ID to configure.
|
void |
setProfileFile(Optional<String> value)
Sets a path to an AWS IAM profile file to configure.
|
void |
setProfileName(Optional<String> value)
Sets a name in an AWS IAM profile file to configure.
|
void |
setRoleName(Optional<String> value)
Sets an AWS Role Name to configure.
|
void |
setSecretAccessKey(Optional<String> value)
Sets an AWS IAM secret access key to configure.
|
void |
setSessionName(String value)
Sets a Role session name to configure.
|
void |
setSessionToken(Optional<String> value)
Sets an AWS IAM session token to configure.
|
@Config(value="auth_method") @ConfigDefault(value="\"basic\"") String getAuthMethod()
@Config(value="access_key_id") @ConfigDefault(value="null") Optional<String> getAccessKeyId()
It is available only when the authentication method is set to: "basic" or "session".
AKIAIOSFODNN7EXAMPLE)@Config(value="secret_access_key") @ConfigDefault(value="null") Optional<String> getSecretAccessKey()
It is available only when the authentication method is set to: "basic" or "session".
wJalrXUtnFEMI/K7MDENG/bPxRfiCYEXAMPLEKEY)@Config(value="session_token") @ConfigDefault(value="null") Optional<String> getSessionToken()
It is available only when the authentication method is set to: "session".
@Config(value="profile_file") @ConfigDefault(value="null") Optional<String> getProfileFile()
It is available only when the authentication method is set to: "profile".
@Config(value="profile_name") @ConfigDefault(value="null") Optional<String> getProfileName()
It is available only when the authentication method is set to: "profile".
@Config(value="account_id") @ConfigDefault(value="null") Optional<String> getAccountId()
It is available only when the authentication method is set to: "assume_role".
@Config(value="role_name") @ConfigDefault(value="null") Optional<String> getRoleName()
It is available only when the authentication method is set to: "assume_role".
@Config(value="external_id") @ConfigDefault(value="null") Optional<String> getExternalId()
It is available only when the authentication method is set to: "assume_role".
@Config(value="duration_in_seconds") @ConfigDefault(value="3600") int getDurationInSeconds()
It is available only when the authentication method is set to: "assume_role".
@Config(value="arn_partition") @ConfigDefault(value="\"aws\"") String getArnPartition()
It is available only when the authentication method is set to: "assume_role".
@Config(value="session_name") @ConfigDefault(value="\"embulk\"") String getSessionName()
It is available only when the authentication method is set to: "assume_role".
void setAuthMethod(String method)
method - One of authentication methods from "basic", "env", "instance",
"profile", "properties", "anonymous", "session",
"assume_role", and "default".void setAccessKeyId(Optional<String> value)
It is available only when the authentication method is set to: "basic" or "session".
value - An AWS IAM access key ID to configure. (For example, AKIAIOSFODNN7EXAMPLE)void setSecretAccessKey(Optional<String> value)
It is available only when the authentication method is set to: "basic" or "session".
value - The AWS IAM secret access key to configure. (For example, wJalrXUtnFEMI/K7MDENG/bPxRfiCYEXAMPLEKEY)void setSessionToken(Optional<String> value)
It is available only when the authentication method is set to: "session".
value - The AWS IAM session token to configurevoid setProfileFile(Optional<String> value)
It is available only when the authentication method is set to: "profile".
value - The path to an AWS IAM profile file to configurevoid setProfileName(Optional<String> value)
It is available only when the authentication method is set to: "profile".
value - The name in an AWS IAM profile file to configurevoid setAccountId(Optional<String> value)
It is available only when the authentication method is set to: "assume_role".
value - An AWS Account ID to configure. (For example, 0123456789)void setRoleName(Optional<String> value)
It is available only when the authentication method is set to: "assume_role".
value - An AWS Role Name to configure. (For example, exampleRole)void setExternalId(Optional<String> value)
It is available only when the authentication method is set to: "assume_role".
value - An External ID to configure. (For example, 9a59e793-355f-4729-abbc-ab612ee419e5)void setDurationInSeconds(int value)
It is available only when the authentication method is set to: "assume_role".
value - A Duration in seconds to configure. (For example, 900)void setArnPartition(String value)
It is available only when the authentication method is set to: "assume_role".
value - An ARN Partition to configure. (For example, aws)void setSessionName(String value)
It is available only when the authentication method is set to: "assume_role".
value - A Role session name to configure. (For example, treasure-data)