Skip to content

Update Policy Store

verifiedpermissions_update_policy_store R Documentation

Modifies the validation setting for a policy store

Description

Modifies the validation setting for a 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.

Usage

verifiedpermissions_update_policy_store(policyStoreId,
  validationSettings, deletionProtection, description)

Arguments

policyStoreId

[required] Specifies the ID of the policy store that you want to update

To specify a policy store, use its ID or alias name. When using an alias name, prefix it with ⁠policy-store-alias/⁠. For example:

  • ID: PSEXAMPLEabcdefg111111

  • Alias name: policy-store-alias/example-policy-store

To view aliases, use list_policy_store_aliases.

validationSettings

[required] A structure that defines the validation settings that want to enable for the policy store.

deletionProtection

Specifies whether the policy store can be deleted. If enabled, the policy store can't be deleted.

When you call update_policy_store, this parameter is unchanged unless explicitly included in the call.

description

Descriptive text that you can provide to help with identification of the current policy store.

Value

A list with the following syntax:

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

Request syntax

svc$update_policy_store(
  policyStoreId = "string",
  validationSettings = list(
    mode = "OFF"|"STRICT"
  ),
  deletionProtection = "ENABLED"|"DISABLED",
  description = "string"
)