api / org.gradle.api.credentials / AwsCredentials

AwsCredentials

@Incubating interface AwsCredentials : Credentials

Represents credentials used to authenticate with Amazon Web Services.

Functions

getAccessKey

abstract fun getAccessKey(): String

Returns the access key to use to authenticate with AWS.

getSecretKey

abstract fun getSecretKey(): String

Returns the secret key to use to authenticate with AWS.

getSessionToken

abstract fun getSessionToken(): String

Returns the secret key to use to authenticate with AWS.

setAccessKey

abstract fun setAccessKey(accessKey: String): Unit

Sets the access key to use to authenticate with AWS.

setSecretKey

abstract fun setSecretKey(secretKey: String): Unit

Sets the secret key to use to authenticate with AWS.

setSessionToken

abstract fun setSessionToken(token: String): Unit

Sets the secret key to use to authenticate with AWS.