Class CfnLifecyclePolicy.Builder
java.lang.Object
software.amazon.awscdk.services.opensearchserverless.CfnLifecyclePolicy.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnLifecyclePolicy>
- Enclosing class:
CfnLifecyclePolicy
@Stability(Stable)
public static final class CfnLifecyclePolicy.Builder
extends Object
implements software.amazon.jsii.Builder<CfnLifecyclePolicy>
A fluent builder for
CfnLifecyclePolicy
.-
Method Summary
Modifier and TypeMethodDescriptionbuild()
static CfnLifecyclePolicy.Builder
description
(String description) The description of the lifecycle policy.The name of the lifecycle policy.The JSON policy document without any whitespaces.The type of lifecycle policy.
-
Method Details
-
create
@Stability(Stable) public static CfnLifecyclePolicy.Builder create(software.constructs.Construct scope, String id) - Parameters:
scope
- Scope in which this resource is defined. This parameter is required.id
- Construct identifier for this resource (unique in its scope). This parameter is required.- Returns:
- a new instance of
CfnLifecyclePolicy.Builder
.
-
name
The name of the lifecycle policy.- Parameters:
name
- The name of the lifecycle policy. This parameter is required.- Returns:
this
- See Also:
-
policy
The JSON policy document without any whitespaces.- Parameters:
policy
- The JSON policy document without any whitespaces. This parameter is required.- Returns:
this
- See Also:
-
type
The type of lifecycle policy.- Parameters:
type
- The type of lifecycle policy. This parameter is required.- Returns:
this
- See Also:
-
description
The description of the lifecycle policy.- Parameters:
description
- The description of the lifecycle policy. This parameter is required.- Returns:
this
- See Also:
-
build
- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnLifecyclePolicy>
- Returns:
- a newly built instance of
CfnLifecyclePolicy
.
-