createPolicyStore

Creates a policy store. A policy store is a container for policy resources.

Although Cedar supports multiple namespaces, Verified Permissions currently supports only one namespace per policy store.

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

import aws.sdk.kotlin.services.verifiedpermissions.model.ValidationMode
import aws.sdk.kotlin.services.verifiedpermissions.model.ValidationSettings

fun main() { 
   //sampleStart 
   // The following example creates a new policy store with strict validation turned on.
val resp = verifiedPermissionsClient.createPolicyStore {
    validationSettings = ValidationSettings {
        mode = ValidationMode.fromValue("STRICT")
    }
    clientToken = "a1b2c3d4-e5f6-a1b2-c3d4-TOKEN1111111"
} 
   //sampleEnd
}