createPolicyStoreAlias

Creates a policy store alias for the specified policy store. A policy store alias is an alternative identifier that you can use to reference a policy store in API operations.

This operation is idempotent. If multiple CreatePolicyStoreAlias requests are made where the aliasName and policyStoreId fields are the same between the requests, subsequent requests will be ignored. For each duplicate CreatePolicyStoreAlias request, a Success response will be returned and a new policy store alias will not be created.

Verified Permissions is eventually consistent. It can take a few seconds for a new or changed element to propagate through the service and be visible in the results of other Verified Permissions operations.

Samples


fun main() { 
   //sampleStart 
   // The following example creates a new policy store alias.
val resp = verifiedPermissionsClient.createPolicyStoreAlias {
    aliasName = "policy-store-alias/example-policy-store"
    policyStoreId = "C7v5xMplfFH3i3e4Jrzb1a"
} 
   //sampleEnd
}