listHandshakesForAccount
abstract suspend fun listHandshakesForAccount(input: ListHandshakesForAccountRequest = ListHandshakesForAccountRequest { }): ListHandshakesForAccountResponse
Lists the current handshakes that are associated with the account of the requesting user.
Handshakes that are ACCEPTED
, DECLINED
, CANCELED
, or EXPIRED
appear in the results of this API for only 30 days after changing to that state. After that, they're deleted and no longer accessible.
Always check the NextToken
response parameter for a null
value when calling a List*
operation. These operations can occasionally return an empty set of results even when there are more results available. The NextToken
response parameter value is null
only when there are no more results to display.
This operation can be called from any account in the organization.
Samples
fun main() {
//sampleStart
// The following example shows you how to get a list of handshakes that are associated with the account
// of the credentials used to call the operation
val resp = organizationsClient.listHandshakesForAccount()
//sampleEnd
}