Skip to content

Returns information about configured OpenSearch Serverless security policies

Description

Returns information about configured OpenSearch Serverless security policies.

Usage

opensearchserviceserverless_list_security_policies(type, resource,
  nextToken, maxResults)

Arguments

  • type

    [required] The type of policy.

  • resource

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

  • 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.

  • 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(
  securityPolicySummaries = list(
    list(
      type = "encryption"|"network",
      name = "string",
      policyVersion = "string",
      description = "string",
      createdDate = 123,
      lastModifiedDate = 123
    )
  ),
  nextToken = "string"
)

Request syntax

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