/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the backup-2018-11-15.normal.json service model. */ using System; using System.Collections.Generic; using System.Xml.Serialization; using System.Text; using System.IO; using System.Net; using Amazon.Runtime; using Amazon.Runtime.Internal; namespace Amazon.Backup.Model { /// /// Used to specify a set of resources to a backup plan. /// /// /// /// Specifying your desired Conditions, ListOfTags, NotResources, /// and/or Resources is recommended. If none of these are specified, Backup /// will attempt to select all supported and opted-in storage resources, which could have /// unintended cost implications. /// /// public partial class BackupSelection { private Conditions _conditions; private string _iamRoleArn; private List _listOfTags = new List(); private List _notResources = new List(); private List _resources = new List(); private string _selectionName; /// /// Gets and sets the property Conditions. /// /// A list of conditions that you define to assign resources to your backup plans using /// tags. For example, "StringEquals": { "ConditionKey": "aws:ResourceTag/CreatedByCryo", /// "ConditionValue": "true" },. Condition operators are case sensitive. /// /// /// /// Conditions differs from ListOfTags as follows: /// ///
  • /// /// When you specify more than one condition, you only assign the resources that match /// ALL conditions (using AND logic). /// ///
  • /// /// Conditions supports StringEquals, StringLike, /// StringNotEquals, and StringNotLike. ListOfTags /// only supports StringEquals. /// ///
///
public Conditions Conditions { get { return this._conditions; } set { this._conditions = value; } } // Check to see if Conditions property is set internal bool IsSetConditions() { return this._conditions != null; } /// /// Gets and sets the property IamRoleArn. /// /// The ARN of the IAM role that Backup uses to authenticate when backing up the target /// resource; for example, arn:aws:iam::123456789012:role/S3Access. /// /// [AWSProperty(Required=true)] public string IamRoleArn { get { return this._iamRoleArn; } set { this._iamRoleArn = value; } } // Check to see if IamRoleArn property is set internal bool IsSetIamRoleArn() { return this._iamRoleArn != null; } /// /// Gets and sets the property ListOfTags. /// /// A list of conditions that you define to assign resources to your backup plans using /// tags. For example, "StringEquals": { "ConditionKey": "aws:ResourceTag/CreatedByCryo", /// "ConditionValue": "true" },. Condition operators are case sensitive. /// /// /// /// ListOfTags differs from Conditions as follows: /// ///
  • /// /// When you specify more than one condition, you assign all resources that match AT LEAST /// ONE condition (using OR logic). /// ///
  • /// /// ListOfTags only supports StringEquals. Conditions /// supports StringEquals, StringLike, StringNotEquals, /// and StringNotLike. /// ///
///
public List ListOfTags { get { return this._listOfTags; } set { this._listOfTags = value; } } // Check to see if ListOfTags property is set internal bool IsSetListOfTags() { return this._listOfTags != null && this._listOfTags.Count > 0; } /// /// Gets and sets the property NotResources. /// /// A list of Amazon Resource Names (ARNs) to exclude from a backup plan. 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. /// /// public List NotResources { get { return this._notResources; } set { this._notResources = value; } } // Check to see if NotResources property is set internal bool IsSetNotResources() { return this._notResources != null && this._notResources.Count > 0; } /// /// Gets and sets the property Resources. /// /// A list of Amazon Resource Names (ARNs) to assign to a backup plan. The maximum number /// of ARNs is 500 without wildcards, or 30 ARNs with wildcards. /// /// /// /// If you need to assign many resources to a backup plan, consider a different resource /// selection strategy, such as assigning all resources of a resource type or refining /// your resource selection using tags. /// /// public List Resources { get { return this._resources; } set { this._resources = value; } } // Check to see if Resources property is set internal bool IsSetResources() { return this._resources != null && this._resources.Count > 0; } /// /// Gets and sets the property SelectionName. /// /// The display name of a resource selection document. Must contain 1 to 50 alphanumeric /// or '-_.' characters. /// /// [AWSProperty(Required=true)] public string SelectionName { get { return this._selectionName; } set { this._selectionName = value; } } // Check to see if SelectionName property is set internal bool IsSetSelectionName() { return this._selectionName != null; } } }