Skip to content

Get Access Policy

opensearchserviceserverless_get_access_policy R Documentation

Returns an OpenSearch Serverless access policy

Description

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

Usage

opensearchserviceserverless_get_access_policy(name, type)

Arguments

name

[required] The name of the access policy.

type

[required] Tye type of policy. Currently, the only supported value is data.

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$get_access_policy(
  name = "string",
  type = "data"
)