Skip to content

Update Access Policy

opensearchserviceserverless_update_access_policy R Documentation

Updates an OpenSearch Serverless access policy

Description

Updates an OpenSearch Serverless access policy. For more information, see Data access control for Amazon OpenSearch Serverless.

Usage

opensearchserviceserverless_update_access_policy(clientToken,
  description, name, policy, policyVersion, type)

Arguments

clientToken

Unique, case-sensitive identifier to ensure idempotency of the request.

description

A description of the policy. Typically used to store information about the permissions defined in the policy.

name

[required] The name of the policy.

policy

The JSON policy document to use as the content for the policy.

policyVersion

[required] The version of the policy being updated.

type

[required] The type of policy.

Value

A list with the following syntax:

list(
  accessPolicyDetail = list(
    createdDate = 123,
    description = "string",
    lastModifiedDate = 123,
    name = "string",
    policy = list(),
    policyVersion = "string",
    type = "data"
  )
)

Request syntax

svc$update_access_policy(
  clientToken = "string",
  description = "string",
  name = "string",
  policy = "string",
  policyVersion = "string",
  type = "data"
)