Module Values.CreateLifecyclePolicyRequestSource

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.

Sourcetype nonrec t = {
  1. type_ : LifecyclePolicyType.t;
    (*

    The type of lifecycle policy.

    *)
  2. name : PolicyName.t;
    (*

    The name of the lifecycle policy.

    *)
  3. description : PolicyDescription.t option;
    (*

    A description of the lifecycle policy.

    *)
  4. policy : PolicyDocument.t;
    (*

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

    *)
  5. clientToken : ClientToken.t option;
    (*

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

    *)
}
Sourceval context_ : string
Sourceval make : ?description:??? -> ?clientToken:??? -> type_:LifecyclePolicyType.t -> name:PolicyName.t -> policy:PolicyDocument.t -> unit -> t
Sourceval to_value : t -> [> `Structure of (string * [> `Enum of string | `String of PolicyName.t ]) list ]
Sourceval to_query : t -> Awso.Client.Query.t
Sourceval of_xml : Awso.Xml.t -> t
Sourceval of_string : string -> t
Sourceval of_json : Yojson.Safe.t -> t
Sourceval to_json : t -> Yojson.Safe.t