Skip to content

Returns information about a list of OpenSearch Serverless access policies

Description

Returns information about a list of OpenSearch Serverless access policies.

Usage

opensearchserviceserverless_list_access_policies(type, resource,
  nextToken, maxResults)

Arguments

  • type

    [required] The type of access policy.

  • resource

    Resource filters (can be collections or indexes) that policies can apply to.

  • nextToken

    If your initial list_access_policies operation returns a nextToken, you can include the returned nextToken in subsequent list_access_policies operations, which returns results in the next page.

  • maxResults

    An optional parameter that specifies the maximum number of results to return. You can use nextToken to get the next page of results. The default is 20.

Value

A list with the following syntax:

list(
  accessPolicySummaries = list(
    list(
      type = "data",
      name = "string",
      policyVersion = "string",
      description = "string",
      createdDate = 123,
      lastModifiedDate = 123
    )
  ),
  nextToken = "string"
)

Request syntax

svc$list_access_policies(
  type = "data",
  resource = list(
    "string"
  ),
  nextToken = "string",
  maxResults = 123
)