Skip to content

List Security Policies

opensearchserviceserverless_list_security_policies R Documentation

Returns information about configured OpenSearch Serverless security policies

Description

Returns information about configured OpenSearch Serverless security policies.

Usage

opensearchserviceserverless_list_security_policies(maxResults,
  nextToken, resource, type)

Arguments

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.

nextToken

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

resource

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

type

[required] The type of policy.

Value

A list with the following syntax:

list(
  nextToken = "string",
  securityPolicySummaries = list(
    list(
      createdDate = 123,
      description = "string",
      lastModifiedDate = 123,
      name = "string",
      policyVersion = "string",
      type = "encryption"|"network"
    )
  )
)

Request syntax

svc$list_security_policies(
  maxResults = 123,
  nextToken = "string",
  resource = list(
    "string"
  ),
  type = "encryption"|"network"
)