# CfnLifecyclePolicyProps

Properties for defining a `CfnLifecyclePolicy`.

Used as props by: [CfnLifecyclePolicy](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_opensearchserverless.CfnLifecyclePolicy.html)

- Source: Generated at build time
- Type last changed: v2.110.0 · 17 Nov 2023

## Example

TypeScript:

```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:

```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:

```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();
```

C# / .NET:

```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"
};
```

Golang:

```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

- `description`: string — The description of the lifecycle policy.

- `name`: string (required) — The name of the lifecycle policy.

- `policy`: string (required) — The JSON policy document without any whitespaces.

- `type`: string (required) — The type of lifecycle policy.
