Interface CfnLegalHoldProps
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
CfnLegalHoldProps.Jsii$Proxy
@Generated(value="jsii-pacmak/1.138.0 (build 0ca7ee8)",
date="2026-08-10T14:50:57.496Z")
@Stability(Stable)
public interface CfnLegalHoldProps
extends software.amazon.jsii.JsiiSerializable
Properties for defining a
CfnLegalHold.
Example:
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.backup.*;
CfnLegalHoldProps cfnLegalHoldProps = CfnLegalHoldProps.builder()
.description("description")
.recoveryPointSelection(RecoveryPointSelectionProperty.builder()
.dateRange(DateRangeProperty.builder()
.fromDate("fromDate")
.toDate("toDate")
.build())
.resourceIdentifiers(List.of("resourceIdentifiers"))
.vaultNames(List.of("vaultNames"))
.build())
.title("title")
// the properties below are optional
.tags(List.of(TagsItemsProperty.builder()
.key("key")
.value("value")
.build()))
.build();
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final classA builder forCfnLegalHoldPropsstatic final classAn implementation forCfnLegalHoldProps -
Method Summary
Modifier and TypeMethodDescriptionstatic CfnLegalHoldProps.Builderbuilder()The description of the legal hold.The criteria to assign a set of resources, such as resource types or backup vaults.default List<CfnLegalHold.TagsItemsProperty> getTags()Optional tags to include.getTitle()The title of the legal hold.Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getDescription
The description of the legal hold.- See Also:
-
getRecoveryPointSelection
The criteria to assign a set of resources, such as resource types or backup vaults.Returns union: either
IResolvableorCfnLegalHold.RecoveryPointSelectionProperty- See Also:
-
getTitle
The title of the legal hold.- See Also:
-
getTags
Optional tags to include.- See Also:
-
builder
- Returns:
- a
CfnLegalHoldProps.BuilderofCfnLegalHoldProps
-