/*
* 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
{
///
/// A framework consists of one or more controls. Each control has its own control scope.
/// The control scope can include one or more resource types, a combination of a tag key
/// and value, or a combination of one resource type and one resource ID. If no scope
/// is specified, evaluations for the rule are triggered when any resource in your recording
/// group changes in configuration.
///
///
///
/// To set a control scope that includes all of a particular resource, leave the ControlScope
/// empty or do not pass it when calling CreateFramework
.
///
///
///
public partial class ControlScope
{
private List _complianceResourceIds = new List();
private List _complianceResourceTypes = new List();
private Dictionary _tags = new Dictionary();
///
/// Gets and sets the property ComplianceResourceIds.
///
/// The ID of the only Amazon Web Services resource that you want your control scope to
/// contain.
///
///
[AWSProperty(Min=1, Max=100)]
public List ComplianceResourceIds
{
get { return this._complianceResourceIds; }
set { this._complianceResourceIds = value; }
}
// Check to see if ComplianceResourceIds property is set
internal bool IsSetComplianceResourceIds()
{
return this._complianceResourceIds != null && this._complianceResourceIds.Count > 0;
}
///
/// Gets and sets the property ComplianceResourceTypes.
///
/// Describes whether the control scope includes one or more types of resources, such
/// as EFS
or RDS
.
///
///
public List ComplianceResourceTypes
{
get { return this._complianceResourceTypes; }
set { this._complianceResourceTypes = value; }
}
// Check to see if ComplianceResourceTypes property is set
internal bool IsSetComplianceResourceTypes()
{
return this._complianceResourceTypes != null && this._complianceResourceTypes.Count > 0;
}
///
/// Gets and sets the property Tags.
///
/// The tag key-value pair applied to those Amazon Web Services resources that you want
/// to trigger an evaluation for a rule. A maximum of one key-value pair can be provided.
/// The tag value is optional, but it cannot be an empty string. The structure to assign
/// a tag is: [{"Key":"string","Value":"string"}]
.
///
///
public Dictionary Tags
{
get { return this._tags; }
set { this._tags = value; }
}
// Check to see if Tags property is set
internal bool IsSetTags()
{
return this._tags != null && this._tags.Count > 0;
}
}
}