Class CfnRestoreTestingSelection
This request can be sent after CreateRestoreTestingPlan request returns successfully.
Implements
Inherited Members
Namespace: Amazon.CDK.AWS.Backup
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public class CfnRestoreTestingSelection : CfnResource, IInspectable
Syntax (vb)
Public Class CfnRestoreTestingSelection
Inherits CfnResource
Implements IInspectable
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(ByRefValue) | Used by jsii to construct an instance of this class from a Javascript-owned object reference |
CfnRestoreTestingSelection(DeputyBase.DeputyProps) | Used by jsii to construct an instance of this class from DeputyProps |
CfnRestoreTestingSelection(Construct, String, ICfnRestoreTestingSelectionProps) |
Properties
CFN_RESOURCE_TYPE_NAME | The CloudFormation resource type name for this resource class. |
CfnProperties | |
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. |
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>) |
Constructors
CfnRestoreTestingSelection(ByRefValue)
Used by jsii to construct an instance of this class from a Javascript-owned object reference
protected CfnRestoreTestingSelection(ByRefValue reference)
Parameters
- reference Amazon.JSII.Runtime.Deputy.ByRefValue
The Javascript-owned object reference
CfnRestoreTestingSelection(DeputyBase.DeputyProps)
Used by jsii to construct an instance of this class from DeputyProps
protected CfnRestoreTestingSelection(DeputyBase.DeputyProps props)
Parameters
- props Amazon.JSII.Runtime.Deputy.DeputyBase.DeputyProps
The deputy props
CfnRestoreTestingSelection(Construct, String, ICfnRestoreTestingSelectionProps)
public CfnRestoreTestingSelection(Construct scope, string id, ICfnRestoreTestingSelectionProps props)
Parameters
- scope Constructs.Construct
Scope in which this resource is defined.
- id System.String
Construct identifier for this resource (unique in its scope).
- props ICfnRestoreTestingSelectionProps
Resource properties.
Properties
CFN_RESOURCE_TYPE_NAME
The CloudFormation resource type name for this resource class.
public static string CFN_RESOURCE_TYPE_NAME { get; }
Property Value
System.String
CfnProperties
protected override IDictionary<string, object> CfnProperties { get; }
Property Value
System.Collections.Generic.IDictionary<System.String, System.Object>
Overrides
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
System.String
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
System.String[]
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
System.Object
ProtectedResourceType
The type of AWS resource included in a resource testing selection;
public virtual string ProtectedResourceType { get; set; }
Property Value
System.String
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
System.Object
RestoreTestingPlanName
Unique string that is the name of the restore testing plan.
public virtual string RestoreTestingPlanName { get; set; }
Property Value
System.String
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
System.String
ValidationWindowHours
This is amount of hours (1 to 168) available to run a validation script on the data.
public virtual Nullable<double> ValidationWindowHours { get; set; }
Property Value
System.Nullable<System.Double>
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.
RenderProperties(IDictionary<String, Object>)
protected override IDictionary<string, object> RenderProperties(IDictionary<string, object> props)
Parameters
- props System.Collections.Generic.IDictionary<System.String, System.Object>
Returns
System.Collections.Generic.IDictionary<System.String, System.Object>