Interface CfnBackupSelection.IBackupSelectionResourceTypeProperty
Specifies an object containing properties used to assign a set of resources to a backup plan.
Namespace: Amazon.CDK.AWS.Backup
Assembly: Amazon.CDK.AWS.Backup.dll
Syntax (csharp)
public interface IBackupSelectionResourceTypeProperty
Syntax (vb)
Public Interface 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
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. |
Properties
Conditions
A list of conditions that you define to assign resources to your backup plans using tags.
virtual object Conditions { get; }
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;
string IamRoleArn { get; }
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.
virtual object ListOfTags { get; }
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.
virtual string[] NotResources { get; }
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.
virtual string[] Resources { get; }
Property Value
System.String[]
Remarks
SelectionName
The display name of a resource selection document.
string SelectionName { get; }
Property Value
System.String