Updates an OpenSearch Serverless access policy¶
Description¶
Updates an OpenSearch Serverless access policy. For more information, see Updating data lifecycle policies.
Usage¶
opensearchserviceserverless_update_lifecycle_policy(type, name,
policyVersion, description, policy, clientToken)
Arguments¶
-
type[required] The type of lifecycle policy.
-
name[required] The name of the policy.
-
policyVersion[required] The version of the policy being updated.
-
descriptionA description of the lifecycle policy.
-
policyThe JSON policy document to use as the content for the lifecycle policy.
-
clientTokenA unique, case-sensitive identifier to ensure idempotency of the request.
Value¶
A list with the following syntax:
list(
lifecyclePolicyDetail = list(
type = "retention",
name = "string",
policyVersion = "string",
description = "string",
policy = list(),
createdDate = 123,
lastModifiedDate = 123
)
)