Learn R Programming

paws.analytics (version 0.7.0)

opensearchserviceserverless_create_lifecycle_policy: 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.

See https://www.paws-r-sdk.com/docs/opensearchserviceserverless_create_lifecycle_policy/ for full documentation.

Usage

opensearchserviceserverless_create_lifecycle_policy(
  clientToken = NULL,
  description = NULL,
  name,
  policy,
  type
)

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.