Skip to content
v2.278.0

CfnLifecyclePolicyProps Struct ​

Properties for defining a CfnLifecyclePolicy.

Example ​

ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_opensearchserverless as opensearchserverless } from 'aws-cdk-lib';
const cfnLifecyclePolicyProps: opensearchserverless.CfnLifecyclePolicyProps = {
  name: 'name',
  policy: 'policy',
  type: 'type',

  // the properties below are optional
  description: 'description',
};
python
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk import aws_opensearchserverless as opensearchserverless

cfn_lifecycle_policy_props = opensearchserverless.CfnLifecyclePolicyProps(
    name="name",
    policy="policy",
    type="type",

    # the properties below are optional
    description="description"
)
java
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.opensearchserverless.*;

CfnLifecyclePolicyProps cfnLifecyclePolicyProps = CfnLifecyclePolicyProps.builder()
        .name("name")
        .policy("policy")
        .type("type")

        // the properties below are optional
        .description("description")
        .build();
csharp
// Install: dotnet add package Amazon.CDK.Lib
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.OpenSearchServerless;

var cfnLifecyclePolicyProps = new CfnLifecyclePolicyProps {
    Name = "name",
    Policy = "policy",
    Type = "type",

    // the properties below are optional
    Description = "description"
};
go
// Install: go get github.com/aws/aws-cdk-go/awscdk/v2
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"

cfnLifecyclePolicyProps := &CfnLifecyclePolicyProps{
	Name: jsii.String("name"),
	Policy: jsii.String("policy"),
	Type: jsii.String("type"),

	// the properties below are optional
	Description: jsii.String("description"),
}

Properties ​

descriptionoptionalstringdescriptionoptionalstrdescriptionoptionalStringDescriptionoptionalstringDescriptionoptional*string #
The description of the lifecycle policy.
namestringnamestrnameStringNamestringName*string required #
The name of the lifecycle policy.
policystringpolicystrpolicyStringPolicystringPolicy*string required #
The JSON policy document without any whitespaces.
typestringtypestrtypeStringTypestringType*string required #
The type of lifecycle policy.