deletePolicyStoreAlias

Deletes the specified policy store alias.

This operation is idempotent. If you specify a policy store alias that does not exist, the request response will still return a successful HTTP 200 status code.

When a policy store alias is deleted, it enters the PendingDeletion state. When a policy store alias is in the PendingDeletion state, new policy store aliases cannot be created with the same name. If the policy store alias is used in an API that has a policyStoreId field, the operation will fail with a ResourceNotFound exception.

Samples


fun main() { 
   //sampleStart 
   // The following example deletes the policy store alias with name example policy store.
val resp = verifiedPermissionsClient.deletePolicyStoreAlias {
    aliasName = "policy-store-alias/example-policy-store"
} 
   //sampleEnd
}