Class CfnRestoreTestingSelection.Builder
java.lang.Object
software.amazon.awscdk.services.backup.CfnRestoreTestingSelection.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnRestoreTestingSelection>
- Enclosing class:
CfnRestoreTestingSelection
@Stability(Stable)
public static final class CfnRestoreTestingSelection.Builder
extends Object
implements software.amazon.jsii.Builder<CfnRestoreTestingSelection>
A fluent builder for
CfnRestoreTestingSelection
.-
Method Summary
Modifier and TypeMethodDescriptionbuild()
iamRoleArn
(String iamRoleArn) The Amazon Resource Name (ARN) of the IAM role that AWS Backup uses to create the target resource;protectedResourceArns
(List<String> protectedResourceArns) You can include specific ARNs, such asProtectedResourceArns: ["arn:aws:...", "arn:aws:..."]
or you can include a wildcard:ProtectedResourceArns: ["*"]
, but not both.protectedResourceConditions
(IResolvable protectedResourceConditions) In a resource testing selection, this parameter filters by specific conditions such asStringEquals
orStringNotEquals
.protectedResourceConditions
(CfnRestoreTestingSelection.ProtectedResourceConditionsProperty protectedResourceConditions) In a resource testing selection, this parameter filters by specific conditions such asStringEquals
orStringNotEquals
.protectedResourceType
(String protectedResourceType) The type of AWS resource included in a resource testing selection;restoreMetadataOverrides
(Map<String, String> restoreMetadataOverrides) You can override certain restore metadata keys by including the parameterRestoreMetadataOverrides
in the body ofRestoreTestingSelection
.restoreMetadataOverrides
(IResolvable restoreMetadataOverrides) You can override certain restore metadata keys by including the parameterRestoreMetadataOverrides
in the body ofRestoreTestingSelection
.restoreTestingPlanName
(String restoreTestingPlanName) Unique string that is the name of the restore testing plan.restoreTestingSelectionName
(String restoreTestingSelectionName) The unique name of the restore testing selection that belongs to the related restore testing plan.validationWindowHours
(Number validationWindowHours) This is amount of hours (1 to 168) available to run a validation script on the data.
-
Method Details
-
create
@Stability(Stable) public static CfnRestoreTestingSelection.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
CfnRestoreTestingSelection.Builder
.
-
iamRoleArn
The Amazon Resource Name (ARN) of the IAM role that AWS Backup uses to create the target resource;for example:
arn:aws:iam::123456789012:role/S3Access
.- Parameters:
iamRoleArn
- The Amazon Resource Name (ARN) of the IAM role that AWS Backup uses to create the target resource;. This parameter is required.- Returns:
this
- See Also:
-
protectedResourceType
@Stability(Stable) public CfnRestoreTestingSelection.Builder protectedResourceType(String protectedResourceType) The type of AWS resource included in a resource testing selection;for example, an Amazon EBS volume or an Amazon RDS database.
- Parameters:
protectedResourceType
- The type of AWS resource included in a resource testing selection;. This parameter is required.- Returns:
this
- See Also:
-
restoreTestingPlanName
@Stability(Stable) public CfnRestoreTestingSelection.Builder restoreTestingPlanName(String restoreTestingPlanName) Unique string that is the name of the restore testing plan.The name cannot be changed after creation. The name must consist of only alphanumeric characters and underscores. Maximum length is 50.
- Parameters:
restoreTestingPlanName
- Unique string that is the name of the restore testing plan. This parameter is required.- Returns:
this
- See Also:
-
restoreTestingSelectionName
@Stability(Stable) public CfnRestoreTestingSelection.Builder restoreTestingSelectionName(String restoreTestingSelectionName) The unique name of the restore testing selection that belongs to the related restore testing plan.- Parameters:
restoreTestingSelectionName
- The unique name of the restore testing selection that belongs to the related restore testing plan. This parameter is required.- Returns:
this
- See Also:
-
protectedResourceArns
@Stability(Stable) public CfnRestoreTestingSelection.Builder protectedResourceArns(List<String> protectedResourceArns) You can include specific ARNs, such asProtectedResourceArns: ["arn:aws:...", "arn:aws:..."]
or you can include a wildcard:ProtectedResourceArns: ["*"]
, but not both.- Parameters:
protectedResourceArns
- You can include specific ARNs, such asProtectedResourceArns: ["arn:aws:...", "arn:aws:..."]
or you can include a wildcard:ProtectedResourceArns: ["*"]
, but not both. This parameter is required.- Returns:
this
- See Also:
-
protectedResourceConditions
@Stability(Stable) public CfnRestoreTestingSelection.Builder protectedResourceConditions(IResolvable protectedResourceConditions) In a resource testing selection, this parameter filters by specific conditions such asStringEquals
orStringNotEquals
.- Parameters:
protectedResourceConditions
- In a resource testing selection, this parameter filters by specific conditions such asStringEquals
orStringNotEquals
. This parameter is required.- Returns:
this
- See Also:
-
protectedResourceConditions
@Stability(Stable) public CfnRestoreTestingSelection.Builder protectedResourceConditions(CfnRestoreTestingSelection.ProtectedResourceConditionsProperty protectedResourceConditions) In a resource testing selection, this parameter filters by specific conditions such asStringEquals
orStringNotEquals
.- Parameters:
protectedResourceConditions
- In a resource testing selection, this parameter filters by specific conditions such asStringEquals
orStringNotEquals
. This parameter is required.- Returns:
this
- See Also:
-
restoreMetadataOverrides
@Stability(Stable) public CfnRestoreTestingSelection.Builder restoreMetadataOverrides(IResolvable restoreMetadataOverrides) You can override certain restore metadata keys by including the parameterRestoreMetadataOverrides
in the body ofRestoreTestingSelection
.Key values are not case sensitive.
See the complete list of restore testing inferred metadata .
- Parameters:
restoreMetadataOverrides
- You can override certain restore metadata keys by including the parameterRestoreMetadataOverrides
in the body ofRestoreTestingSelection
. This parameter is required.- Returns:
this
- See Also:
-
restoreMetadataOverrides
@Stability(Stable) public CfnRestoreTestingSelection.Builder restoreMetadataOverrides(Map<String, String> restoreMetadataOverrides) You can override certain restore metadata keys by including the parameterRestoreMetadataOverrides
in the body ofRestoreTestingSelection
.Key values are not case sensitive.
See the complete list of restore testing inferred metadata .
- Parameters:
restoreMetadataOverrides
- You can override certain restore metadata keys by including the parameterRestoreMetadataOverrides
in the body ofRestoreTestingSelection
. This parameter is required.- Returns:
this
- See Also:
-
validationWindowHours
@Stability(Stable) public CfnRestoreTestingSelection.Builder validationWindowHours(Number validationWindowHours) This is amount of hours (1 to 168) available to run a validation script on the data.The data will be deleted upon the completion of the validation script or the end of the specified retention period, whichever comes first.
- Parameters:
validationWindowHours
- This is amount of hours (1 to 168) available to run a validation script on the data. This parameter is required.- Returns:
this
- See Also:
-
build
- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnRestoreTestingSelection>
- Returns:
- a newly built instance of
CfnRestoreTestingSelection
.
-