deleteUserPoolReplica

Deletes a secondary replica user pool. You can only delete replicas that are in the INACTIVE status. This operation must be called from the primary Region.

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 deletes a user pool replica in the us east 2 Region.
val resp = cognitoIdentityProviderClient.deleteUserPoolReplica {
    userPoolId = "us-west-2_abcd12345"
    regionName = "us-east-2"
}