listUserPoolReplicas
abstract suspend fun listUserPoolReplicas(input: ListUserPoolReplicasRequest): ListUserPoolReplicasResponse
Lists all replicas for a user pool, including both primary and secondary replicas. We recommend using pagination to ensure that the operation returns quickly and successfully.
Amazon Cognito evaluates Identity and Access Management (IAM) policies in requests for this API operation. For this operation, you must use IAM credentials to authorize requests, and you must grant yourself the corresponding IAM permission in a policy.
Learn more
Samples
// The following example lists the replicas of a user pool that has a replica in the ap south 1 Region.
val resp = cognitoIdentityProviderClient.listUserPoolReplicas {
userPoolId = "eu-north-1_abcd12345"
}Content copied to clipboard