AWS::OpenSearchServerless::LifecyclePolicyCreates 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](https://docs.aws.amazon.com/opensearch-service/latest/developerguide/serverless-lifecycle.html#serverless-lifecycle-create) .
import { CfnLifecyclePolicy } from 'aws-cdk-lib/aws-opensearchserverless';Or use the module namespace:
import * as opensearchserverless from 'aws-cdk-lib/aws-opensearchserverless';
// opensearchserverless.CfnLifecyclePolicyConfiguration passed to the constructor as CfnLifecyclePolicyProps.
nameRequiredstringThe name of the lifecycle policy.
policyRequiredstringThe JSON policy document without any whitespaces.
typeRequiredstringThe type of lifecycle policy.
descriptionOptionalstringThe description of the lifecycle policy.
This L1 construct maps directly to the following CloudFormation resource type.
Our bi-weekly newsletter teaches hands-on AWS fundamentals. No certification fluff - just practical knowledge.
Subscribe to Newsletteraws-opensearchserverlessAWS::OpenSearchServerless::LifecyclePolicy