Class CfnRestoreTestingSelection
java.lang.Object
software.amazon.jsii.JsiiObject
software.constructs.Construct
software.amazon.awscdk.CfnElement
software.amazon.awscdk.CfnRefElement
software.amazon.awscdk.CfnResource
software.amazon.awscdk.services.backup.CfnRestoreTestingSelection
- All Implemented Interfaces:
IInspectable
,software.amazon.jsii.JsiiSerializable
,software.constructs.IConstruct
,software.constructs.IDependable
@Generated(value="jsii-pacmak/1.104.0 (build e79254c)",
date="2024-11-21T06:34:03.975Z")
@Stability(Stable)
public class CfnRestoreTestingSelection
extends CfnResource
implements IInspectable
This request can be sent after CreateRestoreTestingPlan request returns successfully.
This is the second part of creating a resource testing plan, and it must be completed sequentially.
This consists of RestoreTestingSelectionName
, ProtectedResourceType
, and one of the following:
ProtectedResourceArns
ProtectedResourceConditions
Each protected resource type can have one single value.
A restore testing selection can include a wildcard value ("*") for ProtectedResourceArns
along with ProtectedResourceConditions
. Alternatively, you can include up to 30 specific protected resource ARNs in ProtectedResourceArns
.
Cannot select by both protected resource types AND specific ARNs. Request will fail if both are included.
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.*; CfnRestoreTestingSelection cfnRestoreTestingSelection = CfnRestoreTestingSelection.Builder.create(this, "MyCfnRestoreTestingSelection") .iamRoleArn("iamRoleArn") .protectedResourceType("protectedResourceType") .restoreTestingPlanName("restoreTestingPlanName") .restoreTestingSelectionName("restoreTestingSelectionName") // the properties below are optional .protectedResourceArns(List.of("protectedResourceArns")) .protectedResourceConditions(ProtectedResourceConditionsProperty.builder() .stringEquals(List.of(KeyValueProperty.builder() .key("key") .value("value") .build())) .stringNotEquals(List.of(KeyValueProperty.builder() .key("key") .value("value") .build())) .build()) .restoreMetadataOverrides(Map.of( "restoreMetadataOverridesKey", "restoreMetadataOverrides")) .validationWindowHours(123) .build();
- See Also:
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic final class
A fluent builder forCfnRestoreTestingSelection
.static interface
Pair of two related strings.static interface
The conditions that you define for resources in your restore testing plan using tags.Nested classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationMode
Nested classes/interfaces inherited from interface software.constructs.IConstruct
software.constructs.IConstruct.Jsii$Default
Nested classes/interfaces inherited from interface software.amazon.awscdk.IInspectable
IInspectable.Jsii$Default, IInspectable.Jsii$Proxy
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
The CloudFormation resource type name for this resource class. -
Constructor Summary
ModifierConstructorDescriptionprotected
CfnRestoreTestingSelection
(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protected
CfnRestoreTestingSelection
(software.amazon.jsii.JsiiObjectRef objRef) CfnRestoreTestingSelection
(software.constructs.Construct scope, String id, CfnRestoreTestingSelectionProps props) -
Method Summary
Modifier and TypeMethodDescriptionThe Amazon Resource Name (ARN) of the IAM role that AWS Backup uses to create the target resource;You can include specific ARNs, such asProtectedResourceArns: ["arn:aws:...", "arn:aws:..."]
or you can include a wildcard:ProtectedResourceArns: ["*"]
, but not both.In a resource testing selection, this parameter filters by specific conditions such asStringEquals
orStringNotEquals
.The type of AWS resource included in a resource testing selection;You can override certain restore metadata keys by including the parameterRestoreMetadataOverrides
in the body ofRestoreTestingSelection
.Unique string that is the name of the restore testing plan.The unique name of the restore testing selection that belongs to the related restore testing plan.This is amount of hours (1 to 168) available to run a validation script on the data.void
inspect
(TreeInspector inspector) Examines the CloudFormation resource and discloses attributes.renderProperties
(Map<String, Object> props) void
setIamRoleArn
(String value) The Amazon Resource Name (ARN) of the IAM role that AWS Backup uses to create the target resource;void
setProtectedResourceArns
(List<String> value) You can include specific ARNs, such asProtectedResourceArns: ["arn:aws:...", "arn:aws:..."]
or you can include a wildcard:ProtectedResourceArns: ["*"]
, but not both.void
In a resource testing selection, this parameter filters by specific conditions such asStringEquals
orStringNotEquals
.void
setProtectedResourceConditions
(CfnRestoreTestingSelection.ProtectedResourceConditionsProperty value) In a resource testing selection, this parameter filters by specific conditions such asStringEquals
orStringNotEquals
.void
setProtectedResourceType
(String value) The type of AWS resource included in a resource testing selection;void
setRestoreMetadataOverrides
(Map<String, String> value) You can override certain restore metadata keys by including the parameterRestoreMetadataOverrides
in the body ofRestoreTestingSelection
.void
You can override certain restore metadata keys by including the parameterRestoreMetadataOverrides
in the body ofRestoreTestingSelection
.void
setRestoreTestingPlanName
(String value) Unique string that is the name of the restore testing plan.void
The unique name of the restore testing selection that belongs to the related restore testing plan.void
setValidationWindowHours
(Number value) This is amount of hours (1 to 168) available to run a validation script on the data.Methods inherited from class software.amazon.awscdk.CfnResource
addDeletionOverride, addDependency, addDependsOn, addMetadata, addOverride, addPropertyDeletionOverride, addPropertyOverride, applyRemovalPolicy, applyRemovalPolicy, applyRemovalPolicy, getAtt, getAtt, getCfnOptions, getCfnResourceType, getMetadata, getUpdatedProperites, getUpdatedProperties, isCfnResource, obtainDependencies, obtainResourceDependencies, removeDependency, replaceDependency, shouldSynthesize, toString, validateProperties
Methods inherited from class software.amazon.awscdk.CfnRefElement
getRef
Methods inherited from class software.amazon.awscdk.CfnElement
getCreationStack, getLogicalId, getStack, isCfnElement, overrideLogicalId
Methods inherited from class software.constructs.Construct
getNode, isConstruct
Methods inherited from class software.amazon.jsii.JsiiObject
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSet
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Field Details
-
CFN_RESOURCE_TYPE_NAME
The CloudFormation resource type name for this resource class.
-
-
Constructor Details
-
CfnRestoreTestingSelection
protected CfnRestoreTestingSelection(software.amazon.jsii.JsiiObjectRef objRef) -
CfnRestoreTestingSelection
protected CfnRestoreTestingSelection(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) -
CfnRestoreTestingSelection
@Stability(Stable) public CfnRestoreTestingSelection(@NotNull software.constructs.Construct scope, @NotNull String id, @NotNull CfnRestoreTestingSelectionProps props) - 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.props
- Resource properties. This parameter is required.
-
-
Method Details
-
inspect
Examines the CloudFormation resource and discloses attributes.- Specified by:
inspect
in interfaceIInspectable
- Parameters:
inspector
- tree inspector to collect and process attributes. This parameter is required.
-
renderProperties
@Stability(Stable) @NotNull protected Map<String,Object> renderProperties(@NotNull Map<String, Object> props) - Overrides:
renderProperties
in classCfnResource
- Parameters:
props
- This parameter is required.
-
getCfnProperties
- Overrides:
getCfnProperties
in classCfnResource
-
getIamRoleArn
The Amazon Resource Name (ARN) of the IAM role that AWS Backup uses to create the target resource; -
setIamRoleArn
The Amazon Resource Name (ARN) of the IAM role that AWS Backup uses to create the target resource; -
getProtectedResourceType
The type of AWS resource included in a resource testing selection; -
setProtectedResourceType
The type of AWS resource included in a resource testing selection; -
getRestoreTestingPlanName
Unique string that is the name of the restore testing plan. -
setRestoreTestingPlanName
Unique string that is the name of the restore testing plan. -
getRestoreTestingSelectionName
The unique name of the restore testing selection that belongs to the related restore testing plan. -
setRestoreTestingSelectionName
The unique name of the restore testing selection that belongs to the related restore testing plan. -
getProtectedResourceArns
You can include specific ARNs, such asProtectedResourceArns: ["arn:aws:...", "arn:aws:..."]
or you can include a wildcard:ProtectedResourceArns: ["*"]
, but not both. -
setProtectedResourceArns
You can include specific ARNs, such asProtectedResourceArns: ["arn:aws:...", "arn:aws:..."]
or you can include a wildcard:ProtectedResourceArns: ["*"]
, but not both. -
getProtectedResourceConditions
In a resource testing selection, this parameter filters by specific conditions such asStringEquals
orStringNotEquals
. -
setProtectedResourceConditions
In a resource testing selection, this parameter filters by specific conditions such asStringEquals
orStringNotEquals
. -
setProtectedResourceConditions
@Stability(Stable) public void setProtectedResourceConditions(@Nullable CfnRestoreTestingSelection.ProtectedResourceConditionsProperty value) In a resource testing selection, this parameter filters by specific conditions such asStringEquals
orStringNotEquals
. -
getRestoreMetadataOverrides
You can override certain restore metadata keys by including the parameterRestoreMetadataOverrides
in the body ofRestoreTestingSelection
. -
setRestoreMetadataOverrides
You can override certain restore metadata keys by including the parameterRestoreMetadataOverrides
in the body ofRestoreTestingSelection
. -
setRestoreMetadataOverrides
You can override certain restore metadata keys by including the parameterRestoreMetadataOverrides
in the body ofRestoreTestingSelection
. -
getValidationWindowHours
This is amount of hours (1 to 168) available to run a validation script on the data. -
setValidationWindowHours
This is amount of hours (1 to 168) available to run a validation script on the data.
-