Class CfnRestoreTestingSelection
This request can be sent after CreateRestoreTestingPlan request returns successfully.
Inherited Members
Namespace: Amazon.CDK.AWS.Backup
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public class CfnRestoreTestingSelection : CfnResource, IInspectable, IRestoreTestingSelectionRef, IConstruct, IDependable, IEnvironmentAware
Syntax (vb)
Public Class CfnRestoreTestingSelection Inherits CfnResource Implements IInspectable, IRestoreTestingSelectionRef, IConstruct, IDependable, IEnvironmentAware
Remarks
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:
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.
CloudformationResource: AWS::Backup::RestoreTestingSelection
ExampleMetadata: fixture=_generated
Examples
// 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 cfnRestoreTestingSelection = new CfnRestoreTestingSelection(this, "MyCfnRestoreTestingSelection", new CfnRestoreTestingSelectionProps {
IamRoleArn = "iamRoleArn",
ProtectedResourceType = "protectedResourceType",
RestoreTestingPlanName = "restoreTestingPlanName",
RestoreTestingSelectionName = "restoreTestingSelectionName",
// the properties below are optional
ProtectedResourceArns = new [] { "protectedResourceArns" },
ProtectedResourceConditions = new ProtectedResourceConditionsProperty {
StringEquals = new [] { new KeyValueProperty {
Key = "key",
Value = "value"
} },
StringNotEquals = new [] { new KeyValueProperty {
Key = "key",
Value = "value"
} }
},
RestoreMetadataOverrides = new Dictionary<string, string> {
{ "restoreMetadataOverridesKey", "restoreMetadataOverrides" }
},
ValidationWindowHours = 123
});
Synopsis
Constructors
| CfnRestoreTestingSelection(Construct, string, ICfnRestoreTestingSelectionProps) | This request can be sent after CreateRestoreTestingPlan request returns successfully. |
Properties
| CFN_RESOURCE_TYPE_NAME | The CloudFormation resource type name for this resource class. |
| CfnProperties | This request can be sent after CreateRestoreTestingPlan request returns successfully. |
| IamRoleArn | The Amazon Resource Name (ARN) of the IAM role that AWS Backup uses to create the target resource; |
| ProtectedResourceArns | You can include specific ARNs, such as |
| ProtectedResourceConditions | In a resource testing selection, this parameter filters by specific conditions such as |
| ProtectedResourceType | The type of AWS resource included in a resource testing selection; |
| RestoreMetadataOverrides | You can override certain restore metadata keys by including the parameter |
| RestoreTestingPlanName | Unique string that is the name of the restore testing plan. |
| RestoreTestingSelectionName | The unique name of the restore testing selection that belongs to the related restore testing plan. |
| RestoreTestingSelectionRef | A reference to a RestoreTestingSelection resource. |
| ValidationWindowHours | This is amount of hours (1 to 168) available to run a validation script on the data. |
Methods
| Inspect(TreeInspector) | Examines the CloudFormation resource and discloses attributes. |
| RenderProperties(IDictionary<string, object>) | This request can be sent after CreateRestoreTestingPlan request returns successfully. |
Constructors
CfnRestoreTestingSelection(Construct, string, ICfnRestoreTestingSelectionProps)
This request can be sent after CreateRestoreTestingPlan request returns successfully.
public CfnRestoreTestingSelection(Construct scope, string id, ICfnRestoreTestingSelectionProps props)
Parameters
- scope Construct
Scope in which this resource is defined.
- id string
Construct identifier for this resource (unique in its scope).
- props ICfnRestoreTestingSelectionProps
Resource properties.
Remarks
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:
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.
CloudformationResource: AWS::Backup::RestoreTestingSelection
ExampleMetadata: fixture=_generated
Properties
CFN_RESOURCE_TYPE_NAME
The CloudFormation resource type name for this resource class.
public static string CFN_RESOURCE_TYPE_NAME { get; }
Property Value
Remarks
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:
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.
CloudformationResource: AWS::Backup::RestoreTestingSelection
ExampleMetadata: fixture=_generated
CfnProperties
This request can be sent after CreateRestoreTestingPlan request returns successfully.
protected override IDictionary<string, object> CfnProperties { get; }
Property Value
Overrides
Remarks
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:
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.
CloudformationResource: AWS::Backup::RestoreTestingSelection
ExampleMetadata: fixture=_generated
IamRoleArn
The Amazon Resource Name (ARN) of the IAM role that AWS Backup uses to create the target resource;
public virtual string IamRoleArn { get; set; }
Property Value
Remarks
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:
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.
CloudformationResource: AWS::Backup::RestoreTestingSelection
ExampleMetadata: fixture=_generated
ProtectedResourceArns
You can include specific ARNs, such as ProtectedResourceArns: ["arn:aws:...", "arn:aws:..."] or you can include a wildcard: ProtectedResourceArns: ["*"] , but not both.
public virtual string[]? ProtectedResourceArns { get; set; }
Property Value
string[]
Remarks
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:
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.
CloudformationResource: AWS::Backup::RestoreTestingSelection
ExampleMetadata: fixture=_generated
ProtectedResourceConditions
In a resource testing selection, this parameter filters by specific conditions such as StringEquals or StringNotEquals .
public virtual object? ProtectedResourceConditions { get; set; }
Property Value
Remarks
Type union: either IResolvable or CfnRestoreTestingSelection.IProtectedResourceConditionsProperty
ProtectedResourceType
The type of AWS resource included in a resource testing selection;
public virtual string ProtectedResourceType { get; set; }
Property Value
Remarks
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:
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.
CloudformationResource: AWS::Backup::RestoreTestingSelection
ExampleMetadata: fixture=_generated
RestoreMetadataOverrides
You can override certain restore metadata keys by including the parameter RestoreMetadataOverrides in the body of RestoreTestingSelection .
public virtual object? RestoreMetadataOverrides { get; set; }
Property Value
Remarks
Type union: either Dictionary<string, string> or IResolvable
RestoreTestingPlanName
Unique string that is the name of the restore testing plan.
public virtual string RestoreTestingPlanName { get; set; }
Property Value
Remarks
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:
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.
CloudformationResource: AWS::Backup::RestoreTestingSelection
ExampleMetadata: fixture=_generated
RestoreTestingSelectionName
The unique name of the restore testing selection that belongs to the related restore testing plan.
public virtual string RestoreTestingSelectionName { get; set; }
Property Value
Remarks
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:
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.
CloudformationResource: AWS::Backup::RestoreTestingSelection
ExampleMetadata: fixture=_generated
RestoreTestingSelectionRef
A reference to a RestoreTestingSelection resource.
public virtual IRestoreTestingSelectionReference RestoreTestingSelectionRef { get; }
Property Value
IRestoreTestingSelectionReference
Remarks
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:
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.
CloudformationResource: AWS::Backup::RestoreTestingSelection
ExampleMetadata: fixture=_generated
ValidationWindowHours
This is amount of hours (1 to 168) available to run a validation script on the data.
public virtual double? ValidationWindowHours { get; set; }
Property Value
Remarks
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:
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.
CloudformationResource: AWS::Backup::RestoreTestingSelection
ExampleMetadata: fixture=_generated
Methods
Inspect(TreeInspector)
Examines the CloudFormation resource and discloses attributes.
public virtual void Inspect(TreeInspector inspector)
Parameters
- inspector TreeInspector
tree inspector to collect and process attributes.
Remarks
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:
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.
CloudformationResource: AWS::Backup::RestoreTestingSelection
ExampleMetadata: fixture=_generated
RenderProperties(IDictionary<string, object>)
This request can be sent after CreateRestoreTestingPlan request returns successfully.
protected override IDictionary<string, object> RenderProperties(IDictionary<string, object> props)
Parameters
- props IDictionary<string, object>
Returns
Overrides
Remarks
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:
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.
CloudformationResource: AWS::Backup::RestoreTestingSelection
ExampleMetadata: fixture=_generated