Skip to content

Update Security Policy

opensearchserviceserverless_update_security_policy R Documentation

Updates an OpenSearch Serverless security policy

Description

Updates an OpenSearch Serverless security policy. For more information, see Network access for Amazon OpenSearch Serverless and Encryption at rest for Amazon OpenSearch Serverless.

Usage

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

Arguments

type

[required] The type of access policy.

name

[required] The name of the policy.

policyVersion

[required] The version of the policy being updated.

description

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

policy

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

clientToken

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

Value

A list with the following syntax:

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

Request syntax

svc$update_security_policy(
  type = "encryption"|"network",
  name = "string",
  policyVersion = "string",
  description = "string",
  policy = "string",
  clientToken = "string"
)