@Override
    public CreateLifecyclePolicyResult createLifecyclePolicy(CreateLifecyclePolicyRequest request) {
        request = beforeClientExecution(request);
        return executeCreateLifecyclePolicy(request);
    }
<p>
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 <a href=
"https://docs.aws.amazon.com/opensearch-service/latest/developerguide/serverless-lifecycle.html#serverless-lifecycle-create"
>Creating data lifecycle policies</a>.
</p>

@param createLifecyclePolicyRequest
@return Result of the CreateLifecyclePolicy operation returned by the service.
@throws InternalServerException
        Thrown when an error internal to the service occurs while processing a request.
@throws ConflictException
        When creating a resource, thrown when a resource with the same name already exists or is being created.
        When deleting a resource, thrown when the resource is not in the ACTIVE or FAILED state.
@throws ValidationException
        Thrown when the HTTP request contains invalid input or is missing required input.
@throws ServiceQuotaExceededException
        Thrown when you attempt to create more resources than the service allows based on service quotas.
@sample AWSOpenSearchServerless.CreateLifecyclePolicy
@see <a href="http://docs.aws.amazon.com/goto/WebAPI/opensearchserverless-2021-11-01/CreateLifecyclePolicy"
     target="_top">AWS API Documentation</a>
aws-java-sdk-opensearchserverless/src/main/java/com/amazonaws/services/opensearchserverless/AWSOpenSearchServerlessClient.java