Skip to content

Put Schema

verifiedpermissions_put_schema R Documentation

Creates or updates the policy schema in the specified policy store

Description

Creates or updates the policy schema in the specified policy store. The schema is used to validate any Cedar policies and policy templates submitted to the policy store. Any changes to the schema validate only policies and templates submitted after the schema change. Existing policies and templates are not re-evaluated against the changed schema. If you later update a policy, then it is evaluated against the new schema at that time.

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.

Usage

verifiedpermissions_put_schema(policyStoreId, definition)

Arguments

policyStoreId

[required] Specifies the ID of the policy store in which to place the schema.

definition

[required] Specifies the definition of the schema to be stored. The schema definition must be written in Cedar schema JSON.

Value

A list with the following syntax:

list(
  policyStoreId = "string",
  namespaces = list(
    "string"
  ),
  createdDate = as.POSIXct(
    "2015-01-01"
  ),
  lastUpdatedDate = as.POSIXct(
    "2015-01-01"
  )
)

Request syntax

svc$put_schema(
  policyStoreId = "string",
  definition = list(
    cedarJson = "string"
  )
)