/*
* 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 config-2014-11-12.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.ConfigService.Model
{
///
/// Defines which resources trigger an evaluation for an Config rule. The 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. Specify a scope to constrain which resources
/// trigger an evaluation for a rule. Otherwise, evaluations for the rule are triggered
/// when any resource in your recording group changes in configuration.
///
public partial class Scope
{
private string _complianceResourceId;
private List _complianceResourceTypes = new List();
private string _tagKey;
private string _tagValue;
///
/// Gets and sets the property ComplianceResourceId.
///
/// The ID of the only Amazon Web Services resource that you want to trigger an evaluation
/// for the rule. If you specify a resource ID, you must specify one resource type for
/// ComplianceResourceTypes
.
///
///
[AWSProperty(Min=1, Max=768)]
public string ComplianceResourceId
{
get { return this._complianceResourceId; }
set { this._complianceResourceId = value; }
}
// Check to see if ComplianceResourceId property is set
internal bool IsSetComplianceResourceId()
{
return this._complianceResourceId != null;
}
///
/// Gets and sets the property ComplianceResourceTypes.
///
/// The resource types of only those Amazon Web Services resources that you want to trigger
/// an evaluation for the rule. You can only specify one type if you also specify a resource
/// ID for ComplianceResourceId
.
///
///
[AWSProperty(Min=0, Max=100)]
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 TagKey.
///
/// The tag key that is applied to only those Amazon Web Services resources that you want
/// to trigger an evaluation for the rule.
///
///
[AWSProperty(Min=1, Max=128)]
public string TagKey
{
get { return this._tagKey; }
set { this._tagKey = value; }
}
// Check to see if TagKey property is set
internal bool IsSetTagKey()
{
return this._tagKey != null;
}
///
/// Gets and sets the property TagValue.
///
/// The tag value applied to only those Amazon Web Services resources that you want to
/// trigger an evaluation for the rule. If you specify a value for TagValue
,
/// you must also specify a value for TagKey
.
///
///
[AWSProperty(Min=1, Max=256)]
public string TagValue
{
get { return this._tagValue; }
set { this._tagValue = value; }
}
// Check to see if TagValue property is set
internal bool IsSetTagValue()
{
return this._tagValue != null;
}
}
}