Class CfnBackupSelection.BackupSelectionResourceTypeProperty
Specifies an object containing properties used to assign a set of resources to a backup plan.
Inheritance
Namespace: Amazon.CDK.AWS.Backup
Assembly: Amazon.CDK.AWS.Backup.dll
Syntax (csharp)
public class BackupSelectionResourceTypeProperty : Object, CfnBackupSelection.IBackupSelectionResourceTypeProperty
Syntax (vb)
Public Class BackupSelectionResourceTypeProperty
Inherits Object
Implements CfnBackupSelection.IBackupSelectionResourceTypeProperty
Remarks
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 conditions;
var backupSelectionResourceTypeProperty = new BackupSelectionResourceTypeProperty {
IamRoleArn = "iamRoleArn",
SelectionName = "selectionName",
// the properties below are optional
Conditions = conditions,
ListOfTags = new [] { new ConditionResourceTypeProperty {
ConditionKey = "conditionKey",
ConditionType = "conditionType",
ConditionValue = "conditionValue"
} },
NotResources = new [] { "notResources" },
Resources = new [] { "resources" }
};
Synopsis
Constructors
BackupSelectionResourceTypeProperty() |
Properties
Conditions | A list of conditions that you define to assign resources to your backup plans using tags. |
IamRoleArn | The ARN of the IAM role that AWS Backup uses to authenticate when backing up the target resource; |
ListOfTags | A list of conditions that you define to assign resources to your backup plans using tags. |
NotResources | A list of Amazon Resource Names (ARNs) to exclude from a backup plan. |
Resources | An array of strings that contain Amazon Resource Names (ARNs) of resources to assign to a backup plan. |
SelectionName | The display name of a resource selection document. |
Constructors
BackupSelectionResourceTypeProperty()
public BackupSelectionResourceTypeProperty()
Properties
Conditions
A list of conditions that you define to assign resources to your backup plans using tags.
public object Conditions { get; set; }
Property Value
System.Object
Remarks
For example, "StringEquals": { "ConditionKey": "aws:ResourceTag/CreatedByCryo", "ConditionValue": "true" },
. Condition operators are case sensitive.
Conditions
differs from ListOfTags
as follows:
IamRoleArn
The ARN of the IAM role that AWS Backup uses to authenticate when backing up the target resource;
public string IamRoleArn { get; set; }
Property Value
System.String
Remarks
for example, arn:aws:iam::123456789012:role/S3Access
.
ListOfTags
A list of conditions that you define to assign resources to your backup plans using tags.
public object ListOfTags { get; set; }
Property Value
System.Object
Remarks
For example, "StringEquals": { "ConditionKey": "aws:ResourceTag/CreatedByCryo", "ConditionValue": "true" },
. Condition operators are case sensitive.
ListOfTags
differs from Conditions
as follows:
NotResources
A list of Amazon Resource Names (ARNs) to exclude from a backup plan.
public string[] NotResources { get; set; }
Property Value
System.String[]
Remarks
The maximum number of ARNs is 500 without wildcards, or 30 ARNs with wildcards.
If you need to exclude many resources from a backup plan, consider a different resource selection strategy, such as assigning only one or a few resource types or refining your resource selection using tags.
Resources
An array of strings that contain Amazon Resource Names (ARNs) of resources to assign to a backup plan.
public string[] Resources { get; set; }
Property Value
System.String[]
Remarks
SelectionName
The display name of a resource selection document.
public string SelectionName { get; set; }
Property Value
System.String