Module Smaws_Client_OpenSearchServerless.CreateLifecyclePolicy

val request : Smaws_Lib.Context.t -> create_lifecycle_policy_request -> (create_lifecycle_policy_response, [> Smaws_Lib.Protocols.AwsJson.error | `ConflictException of conflict_exception | `InternalServerException of internal_server_exception | `ServiceQuotaExceededException of service_quota_exceeded_exception | `ValidationException of validation_exception ]) Stdlib.result

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.