/* * 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 ssm-2014-11-06.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.SimpleSystemsManagement.Model { /// /// The combination of Amazon Web Services Regions and Amazon Web Services accounts targeted /// by the current Automation execution. /// public partial class TargetLocation { private List _accounts = new List(); private string _executionRoleName; private List _regions = new List(); private AlarmConfiguration _targetLocationAlarmConfiguration; private string _targetLocationMaxConcurrency; private string _targetLocationMaxErrors; /// /// Gets and sets the property Accounts. /// /// The Amazon Web Services accounts targeted by the current Automation execution. /// /// [AWSProperty(Min=1, Max=50)] public List Accounts { get { return this._accounts; } set { this._accounts = value; } } // Check to see if Accounts property is set internal bool IsSetAccounts() { return this._accounts != null && this._accounts.Count > 0; } /// /// Gets and sets the property ExecutionRoleName. /// /// The Automation execution role used by the currently running Automation. If not specified, /// the default value is AWS-SystemsManager-AutomationExecutionRole. /// /// [AWSProperty(Min=1, Max=64)] public string ExecutionRoleName { get { return this._executionRoleName; } set { this._executionRoleName = value; } } // Check to see if ExecutionRoleName property is set internal bool IsSetExecutionRoleName() { return this._executionRoleName != null; } /// /// Gets and sets the property Regions. /// /// The Amazon Web Services Regions targeted by the current Automation execution. /// /// [AWSProperty(Min=1, Max=50)] public List Regions { get { return this._regions; } set { this._regions = value; } } // Check to see if Regions property is set internal bool IsSetRegions() { return this._regions != null && this._regions.Count > 0; } /// /// Gets and sets the property TargetLocationAlarmConfiguration. /// public AlarmConfiguration TargetLocationAlarmConfiguration { get { return this._targetLocationAlarmConfiguration; } set { this._targetLocationAlarmConfiguration = value; } } // Check to see if TargetLocationAlarmConfiguration property is set internal bool IsSetTargetLocationAlarmConfiguration() { return this._targetLocationAlarmConfiguration != null; } /// /// Gets and sets the property TargetLocationMaxConcurrency. /// /// The maximum number of Amazon Web Services Regions and Amazon Web Services accounts /// allowed to run the Automation concurrently. /// /// [AWSProperty(Min=1, Max=7)] public string TargetLocationMaxConcurrency { get { return this._targetLocationMaxConcurrency; } set { this._targetLocationMaxConcurrency = value; } } // Check to see if TargetLocationMaxConcurrency property is set internal bool IsSetTargetLocationMaxConcurrency() { return this._targetLocationMaxConcurrency != null; } /// /// Gets and sets the property TargetLocationMaxErrors. /// /// The maximum number of errors allowed before the system stops queueing additional Automation /// executions for the currently running Automation. /// /// [AWSProperty(Min=1, Max=7)] public string TargetLocationMaxErrors { get { return this._targetLocationMaxErrors; } set { this._targetLocationMaxErrors = value; } } // Check to see if TargetLocationMaxErrors property is set internal bool IsSetTargetLocationMaxErrors() { return this._targetLocationMaxErrors != null; } } }