Create Lifecycle Policy
opensearchserviceserverless_create_lifecycle_policy | R Documentation |
Creates a lifecyle policy to be applied to OpenSearch Serverless indexes¶
Description¶
Creates a lifecyle policy to be applied to OpenSearch Serverless indexes. Lifecycle policies define the number of days or hours to retain the data on an OpenSearch Serverless index. For more information, see Creating data lifecycle policies.
Usage¶
Arguments¶
clientToken
A unique, case-sensitive identifier to ensure idempotency of the request.
description
A description of the lifecycle policy.
name
[required] The name of the lifecycle policy.
policy
[required] The JSON policy document to use as the content for the lifecycle policy.
type
[required] The type of lifecycle policy.
Value¶
A list with the following syntax:
list(
lifecyclePolicyDetail = list(
createdDate = 123,
description = "string",
lastModifiedDate = 123,
name = "string",
policy = list(),
policyVersion = "string",
type = "retention"
)
)