RecoveryPointSelectionProperty
Struct External
The criteria to assign a set of resources, such as resource types or backup vaults.
| Source | |
|---|---|
| Type last changed |
Example
ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_backup as backup } from 'aws-cdk-lib';
const recoveryPointSelectionProperty: backup.CfnLegalHold.RecoveryPointSelectionProperty = {
dateRange: {
fromDate: 'fromDate',
toDate: 'toDate',
},
resourceIdentifiers: ['resourceIdentifiers'],
vaultNames: ['vaultNames'],
};
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_backup as backup
recovery_point_selection_property = backup.CfnLegalHold.RecoveryPointSelectionProperty(
date_range=backup.CfnLegalHold.DateRangeProperty(
from_date="fromDate",
to_date="toDate"
),
resource_identifiers=["resourceIdentifiers"],
vault_names=["vaultNames"]
)
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.backup.*;
RecoveryPointSelectionProperty recoveryPointSelectionProperty = RecoveryPointSelectionProperty.builder()
.dateRange(DateRangeProperty.builder()
.fromDate("fromDate")
.toDate("toDate")
.build())
.resourceIdentifiers(List.of("resourceIdentifiers"))
.vaultNames(List.of("vaultNames"))
.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.Backup;
var recoveryPointSelectionProperty = new RecoveryPointSelectionProperty {
DateRange = new DateRangeProperty {
FromDate = "fromDate",
ToDate = "toDate"
},
ResourceIdentifiers = new [] { "resourceIdentifiers" },
VaultNames = new [] { "vaultNames" }
};
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"
recoveryPointSelectionProperty := &RecoveryPointSelectionProperty{
DateRange: &DateRangeProperty{
FromDate: jsii.String("fromDate"),
ToDate: jsii.String("toDate"),
},
ResourceIdentifiers: []*string{
jsii.String("resourceIdentifiers"),
},
VaultNames: []*string{
jsii.String("vaultNames"),
},
}
Properties
dateRangeoptionalIResolvable | CfnLegalHold.DateRangePropertydate_rangeoptionaltyping.Union[IResolvable, DateRangeProperty]dateRangeoptionalIResolvableDateRangeoptionalIResolvableDateRangeoptionalinterface{} #A date range for filtering recovery points.
resourceIdentifiersoptionalstring[]resource_identifiersoptionaltyping.List[str]resourceIdentifiersoptionalList<String>ResourceIdentifiersoptionalstring[]ResourceIdentifiersoptional*[]*string #The resources included in the resource selection.
vaultNamesoptionalstring[]vault_namesoptionaltyping.List[str]vaultNamesoptionalList<String>VaultNamesoptionalstring[]VaultNamesoptional*[]*string #The names of the vaults in which the selected recovery points are contained.