Smaws_Client_OpenSearchServerless.CreateLifecyclePolicy
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.
val error_to_string :
[ Smaws_Lib.Protocols.AwsJson.error
| `ConflictException of Types.conflict_exception
| `InternalServerException of Types.internal_server_exception
| `ServiceQuotaExceededException of Types.service_quota_exceeded_exception
| `ValidationException of Types.validation_exception ] ->
string
val request :
'http_type Smaws_Lib.Context.t ->
Types.create_lifecycle_policy_request ->
(Types.create_lifecycle_policy_response,
[> Smaws_Lib.Protocols.AwsJson.error
| `ConflictException of Types.conflict_exception
| `InternalServerException of Types.internal_server_exception
| `ServiceQuotaExceededException of Types.service_quota_exceeded_exception
| `ValidationException of Types.validation_exception ])
Stdlib.result