repo_name
stringlengths 1
52
| repo_creator
stringclasses 6
values | programming_language
stringclasses 4
values | code
stringlengths 0
9.68M
| num_lines
int64 1
234k
|
---|---|---|---|---|
aws-sdk-net
|
aws
|
C#
|
/*
* 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 autoscaling-2011-01-01.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.AutoScaling.Model
{
/// <summary>
/// Specifies the minimum and maximum for the <code>MemoryGiBPerVCpu</code> object when
/// you specify <a>InstanceRequirements</a> for an Auto Scaling group.
/// </summary>
public partial class MemoryGiBPerVCpuRequest
{
private double? _max;
private double? _min;
/// <summary>
/// Gets and sets the property Max.
/// <para>
/// The memory maximum in GiB.
/// </para>
/// </summary>
[AWSProperty(Min=0)]
public double Max
{
get { return this._max.GetValueOrDefault(); }
set { this._max = value; }
}
// Check to see if Max property is set
internal bool IsSetMax()
{
return this._max.HasValue;
}
/// <summary>
/// Gets and sets the property Min.
/// <para>
/// The memory minimum in GiB.
/// </para>
/// </summary>
[AWSProperty(Min=0)]
public double Min
{
get { return this._min.GetValueOrDefault(); }
set { this._min = value; }
}
// Check to see if Min property is set
internal bool IsSetMin()
{
return this._min.HasValue;
}
}
}
| 79 |
aws-sdk-net
|
aws
|
C#
|
/*
* 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 autoscaling-2011-01-01.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.AutoScaling.Model
{
/// <summary>
/// Specifies the minimum and maximum for the <code>MemoryMiB</code> object when you specify
/// <a>InstanceRequirements</a> for an Auto Scaling group.
/// </summary>
public partial class MemoryMiBRequest
{
private int? _max;
private int? _min;
/// <summary>
/// Gets and sets the property Max.
/// <para>
/// The memory maximum in MiB.
/// </para>
/// </summary>
[AWSProperty(Min=0)]
public int Max
{
get { return this._max.GetValueOrDefault(); }
set { this._max = value; }
}
// Check to see if Max property is set
internal bool IsSetMax()
{
return this._max.HasValue;
}
/// <summary>
/// Gets and sets the property Min.
/// <para>
/// The memory minimum in MiB.
/// </para>
/// </summary>
[AWSProperty(Required=true, Min=0)]
public int Min
{
get { return this._min.GetValueOrDefault(); }
set { this._min = value; }
}
// Check to see if Min property is set
internal bool IsSetMin()
{
return this._min.HasValue;
}
}
}
| 79 |
aws-sdk-net
|
aws
|
C#
|
/*
* 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 autoscaling-2011-01-01.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.AutoScaling.Model
{
/// <summary>
/// Represents a specific metric.
/// </summary>
public partial class Metric
{
private List<MetricDimension> _dimensions = new List<MetricDimension>();
private string _metricName;
private string _awsNamespace;
/// <summary>
/// Gets and sets the property Dimensions.
/// <para>
/// The dimensions for the metric. For the list of available dimensions, see the Amazon
/// Web Services documentation available from the table in <a href="https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/aws-services-cloudwatch-metrics.html">Amazon
/// Web Services services that publish CloudWatch metrics </a> in the <i>Amazon CloudWatch
/// User Guide</i>.
/// </para>
///
/// <para>
/// Conditional: If you published your metric with dimensions, you must specify the same
/// dimensions in your scaling policy.
/// </para>
/// </summary>
public List<MetricDimension> Dimensions
{
get { return this._dimensions; }
set { this._dimensions = value; }
}
// Check to see if Dimensions property is set
internal bool IsSetDimensions()
{
return this._dimensions != null && this._dimensions.Count > 0;
}
/// <summary>
/// Gets and sets the property MetricName.
/// <para>
/// The name of the metric.
/// </para>
/// </summary>
[AWSProperty(Required=true)]
public string MetricName
{
get { return this._metricName; }
set { this._metricName = value; }
}
// Check to see if MetricName property is set
internal bool IsSetMetricName()
{
return this._metricName != null;
}
/// <summary>
/// Gets and sets the property Namespace.
/// <para>
/// The namespace of the metric. For more information, see the table in <a href="https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/aws-services-cloudwatch-metrics.html">Amazon
/// Web Services services that publish CloudWatch metrics </a> in the <i>Amazon CloudWatch
/// User Guide</i>.
/// </para>
/// </summary>
[AWSProperty(Required=true)]
public string Namespace
{
get { return this._awsNamespace; }
set { this._awsNamespace = value; }
}
// Check to see if Namespace property is set
internal bool IsSetNamespace()
{
return this._awsNamespace != null;
}
}
}
| 107 |
aws-sdk-net
|
aws
|
C#
|
/*
* 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 autoscaling-2011-01-01.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.AutoScaling.Model
{
/// <summary>
/// Describes a metric.
/// </summary>
public partial class MetricCollectionType
{
private string _metric;
/// <summary>
/// Gets and sets the property Metric.
/// <para>
/// One of the following metrics:
/// </para>
/// <ul> <li>
/// <para>
/// <code>GroupMinSize</code>
/// </para>
/// </li> <li>
/// <para>
/// <code>GroupMaxSize</code>
/// </para>
/// </li> <li>
/// <para>
/// <code>GroupDesiredCapacity</code>
/// </para>
/// </li> <li>
/// <para>
/// <code>GroupInServiceInstances</code>
/// </para>
/// </li> <li>
/// <para>
/// <code>GroupPendingInstances</code>
/// </para>
/// </li> <li>
/// <para>
/// <code>GroupStandbyInstances</code>
/// </para>
/// </li> <li>
/// <para>
/// <code>GroupTerminatingInstances</code>
/// </para>
/// </li> <li>
/// <para>
/// <code>GroupTotalInstances</code>
/// </para>
/// </li> <li>
/// <para>
/// <code>GroupInServiceCapacity</code>
/// </para>
/// </li> <li>
/// <para>
/// <code>GroupPendingCapacity</code>
/// </para>
/// </li> <li>
/// <para>
/// <code>GroupStandbyCapacity</code>
/// </para>
/// </li> <li>
/// <para>
/// <code>GroupTerminatingCapacity</code>
/// </para>
/// </li> <li>
/// <para>
/// <code>GroupTotalCapacity</code>
/// </para>
/// </li> <li>
/// <para>
/// <code>WarmPoolDesiredCapacity</code>
/// </para>
/// </li> <li>
/// <para>
/// <code>WarmPoolWarmedCapacity</code>
/// </para>
/// </li> <li>
/// <para>
/// <code>WarmPoolPendingCapacity</code>
/// </para>
/// </li> <li>
/// <para>
/// <code>WarmPoolTerminatingCapacity</code>
/// </para>
/// </li> <li>
/// <para>
/// <code>WarmPoolTotalCapacity</code>
/// </para>
/// </li> <li>
/// <para>
/// <code>GroupAndWarmPoolDesiredCapacity</code>
/// </para>
/// </li> <li>
/// <para>
/// <code>GroupAndWarmPoolTotalCapacity</code>
/// </para>
/// </li> </ul>
/// </summary>
[AWSProperty(Min=1, Max=255)]
public string Metric
{
get { return this._metric; }
set { this._metric = value; }
}
// Check to see if Metric property is set
internal bool IsSetMetric()
{
return this._metric != null;
}
}
}
| 139 |
aws-sdk-net
|
aws
|
C#
|
/*
* 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 autoscaling-2011-01-01.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.AutoScaling.Model
{
/// <summary>
/// The metric data to return. Also defines whether this call is returning data for one
/// metric only, or whether it is performing a math expression on the values of returned
/// metric statistics to create a new time series. A time series is a series of data points,
/// each of which is associated with a timestamp.
///
///
/// <para>
/// For more information and examples, see <a href="https://docs.aws.amazon.com/autoscaling/ec2/userguide/predictive-scaling-customized-metric-specification.html">Advanced
/// predictive scaling policy configurations using custom metrics</a> in the <i>Amazon
/// EC2 Auto Scaling User Guide</i>.
/// </para>
/// </summary>
public partial class MetricDataQuery
{
private string _expression;
private string _id;
private string _label;
private MetricStat _metricStat;
private bool? _returnData;
/// <summary>
/// Gets and sets the property Expression.
/// <para>
/// The math expression to perform on the returned data, if this object is performing
/// a math expression. This expression can use the <code>Id</code> of the other metrics
/// to refer to those metrics, and can also use the <code>Id</code> of other expressions
/// to use the result of those expressions.
/// </para>
///
/// <para>
/// Conditional: Within each <code>MetricDataQuery</code> object, you must specify either
/// <code>Expression</code> or <code>MetricStat</code>, but not both.
/// </para>
/// </summary>
[AWSProperty(Min=1, Max=1023)]
public string Expression
{
get { return this._expression; }
set { this._expression = value; }
}
// Check to see if Expression property is set
internal bool IsSetExpression()
{
return this._expression != null;
}
/// <summary>
/// Gets and sets the property Id.
/// <para>
/// A short name that identifies the object's results in the response. This name must
/// be unique among all <code>MetricDataQuery</code> objects specified for a single scaling
/// policy. If you are performing math expressions on this set of data, this name represents
/// that data and can serve as a variable in the mathematical expression. The valid characters
/// are letters, numbers, and underscores. The first character must be a lowercase letter.
///
/// </para>
/// </summary>
[AWSProperty(Required=true, Min=1, Max=255)]
public string Id
{
get { return this._id; }
set { this._id = value; }
}
// Check to see if Id property is set
internal bool IsSetId()
{
return this._id != null;
}
/// <summary>
/// Gets and sets the property Label.
/// <para>
/// A human-readable label for this metric or expression. This is especially useful if
/// this is a math expression, so that you know what the value represents.
/// </para>
/// </summary>
[AWSProperty(Max=2047)]
public string Label
{
get { return this._label; }
set { this._label = value; }
}
// Check to see if Label property is set
internal bool IsSetLabel()
{
return this._label != null;
}
/// <summary>
/// Gets and sets the property MetricStat.
/// <para>
/// Information about the metric data to return.
/// </para>
///
/// <para>
/// Conditional: Within each <code>MetricDataQuery</code> object, you must specify either
/// <code>Expression</code> or <code>MetricStat</code>, but not both.
/// </para>
/// </summary>
public MetricStat MetricStat
{
get { return this._metricStat; }
set { this._metricStat = value; }
}
// Check to see if MetricStat property is set
internal bool IsSetMetricStat()
{
return this._metricStat != null;
}
/// <summary>
/// Gets and sets the property ReturnData.
/// <para>
/// Indicates whether to return the timestamps and raw data values of this metric.
/// </para>
///
/// <para>
/// If you use any math expressions, specify <code>true</code> for this value for only
/// the final math expression that the metric specification is based on. You must specify
/// <code>false</code> for <code>ReturnData</code> for all the other metrics and expressions
/// used in the metric specification.
/// </para>
///
/// <para>
/// If you are only retrieving metrics and not performing any math expressions, do not
/// specify anything for <code>ReturnData</code>. This sets it to its default (<code>true</code>).
/// </para>
/// </summary>
public bool ReturnData
{
get { return this._returnData.GetValueOrDefault(); }
set { this._returnData = value; }
}
// Check to see if ReturnData property is set
internal bool IsSetReturnData()
{
return this._returnData.HasValue;
}
}
}
| 177 |
aws-sdk-net
|
aws
|
C#
|
/*
* 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 autoscaling-2011-01-01.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.AutoScaling.Model
{
/// <summary>
/// Describes the dimension of a metric.
/// </summary>
public partial class MetricDimension
{
private string _name;
private string _value;
/// <summary>
/// Gets and sets the property Name.
/// <para>
/// The name of the dimension.
/// </para>
/// </summary>
[AWSProperty(Required=true)]
public string Name
{
get { return this._name; }
set { this._name = value; }
}
// Check to see if Name property is set
internal bool IsSetName()
{
return this._name != null;
}
/// <summary>
/// Gets and sets the property Value.
/// <para>
/// The value of the dimension.
/// </para>
/// </summary>
[AWSProperty(Required=true)]
public string Value
{
get { return this._value; }
set { this._value = value; }
}
// Check to see if Value property is set
internal bool IsSetValue()
{
return this._value != null;
}
}
}
| 78 |
aws-sdk-net
|
aws
|
C#
|
/*
* 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 autoscaling-2011-01-01.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.AutoScaling.Model
{
/// <summary>
/// Describes a granularity of a metric.
/// </summary>
public partial class MetricGranularityType
{
private string _granularity;
/// <summary>
/// Gets and sets the property Granularity.
/// <para>
/// The granularity. The only valid value is <code>1Minute</code>.
/// </para>
/// </summary>
[AWSProperty(Min=1, Max=255)]
public string Granularity
{
get { return this._granularity; }
set { this._granularity = value; }
}
// Check to see if Granularity property is set
internal bool IsSetGranularity()
{
return this._granularity != null;
}
}
}
| 58 |
aws-sdk-net
|
aws
|
C#
|
/*
* 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 autoscaling-2011-01-01.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.AutoScaling.Model
{
/// <summary>
/// This structure defines the CloudWatch metric to return, along with the statistic,
/// period, and unit.
///
///
/// <para>
/// For more information about the CloudWatch terminology below, see <a href="https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/cloudwatch_concepts.html">Amazon
/// CloudWatch concepts</a> in the <i>Amazon CloudWatch User Guide</i>.
/// </para>
/// </summary>
public partial class MetricStat
{
private Metric _metric;
private string _stat;
private string _unit;
/// <summary>
/// Gets and sets the property Metric.
/// <para>
/// The CloudWatch metric to return, including the metric name, namespace, and dimensions.
/// To get the exact metric name, namespace, and dimensions, inspect the <a href="https://docs.aws.amazon.com/AmazonCloudWatch/latest/APIReference/API_Metric.html">Metric</a>
/// object that is returned by a call to <a href="https://docs.aws.amazon.com/AmazonCloudWatch/latest/APIReference/API_ListMetrics.html">ListMetrics</a>.
/// </para>
/// </summary>
[AWSProperty(Required=true)]
public Metric Metric
{
get { return this._metric; }
set { this._metric = value; }
}
// Check to see if Metric property is set
internal bool IsSetMetric()
{
return this._metric != null;
}
/// <summary>
/// Gets and sets the property Stat.
/// <para>
/// The statistic to return. It can include any CloudWatch statistic or extended statistic.
/// For a list of valid values, see the table in <a href="https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/cloudwatch_concepts.html#Statistic">Statistics</a>
/// in the <i>Amazon CloudWatch User Guide</i>.
/// </para>
///
/// <para>
/// The most commonly used metrics for predictive scaling are <code>Average</code> and
/// <code>Sum</code>.
/// </para>
/// </summary>
[AWSProperty(Required=true, Min=1, Max=100)]
public string Stat
{
get { return this._stat; }
set { this._stat = value; }
}
// Check to see if Stat property is set
internal bool IsSetStat()
{
return this._stat != null;
}
/// <summary>
/// Gets and sets the property Unit.
/// <para>
/// The unit to use for the returned data points. For a complete list of the units that
/// CloudWatch supports, see the <a href="https://docs.aws.amazon.com/AmazonCloudWatch/latest/APIReference/API_MetricDatum.html">MetricDatum</a>
/// data type in the <i>Amazon CloudWatch API Reference</i>.
/// </para>
/// </summary>
public string Unit
{
get { return this._unit; }
set { this._unit = value; }
}
// Check to see if Unit property is set
internal bool IsSetUnit()
{
return this._unit != null;
}
}
}
| 115 |
aws-sdk-net
|
aws
|
C#
|
/*
* 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 autoscaling-2011-01-01.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.AutoScaling.Model
{
/// <summary>
/// Use this structure to launch multiple instance types and On-Demand Instances and Spot
/// Instances within a single Auto Scaling group.
///
///
/// <para>
/// A mixed instances policy contains information that Amazon EC2 Auto Scaling can use
/// to launch instances and help optimize your costs. For more information, see <a href="https://docs.aws.amazon.com/autoscaling/ec2/userguide/ec2-auto-scaling-mixed-instances-groups.html">Auto
/// Scaling groups with multiple instance types and purchase options</a> in the <i>Amazon
/// EC2 Auto Scaling User Guide</i>.
/// </para>
/// </summary>
public partial class MixedInstancesPolicy
{
private InstancesDistribution _instancesDistribution;
private LaunchTemplate _launchTemplate;
/// <summary>
/// Gets and sets the property InstancesDistribution.
/// <para>
/// The instances distribution.
/// </para>
/// </summary>
public InstancesDistribution InstancesDistribution
{
get { return this._instancesDistribution; }
set { this._instancesDistribution = value; }
}
// Check to see if InstancesDistribution property is set
internal bool IsSetInstancesDistribution()
{
return this._instancesDistribution != null;
}
/// <summary>
/// Gets and sets the property LaunchTemplate.
/// <para>
/// One or more launch templates and the instance types (overrides) that are used to launch
/// EC2 instances to fulfill On-Demand and Spot capacities.
/// </para>
/// </summary>
public LaunchTemplate LaunchTemplate
{
get { return this._launchTemplate; }
set { this._launchTemplate = value; }
}
// Check to see if LaunchTemplate property is set
internal bool IsSetLaunchTemplate()
{
return this._launchTemplate != null;
}
}
}
| 86 |
aws-sdk-net
|
aws
|
C#
|
/*
* 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 autoscaling-2011-01-01.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.AutoScaling.Model
{
/// <summary>
/// Specifies the minimum and maximum for the <code>NetworkBandwidthGbps</code> object
/// when you specify <a>InstanceRequirements</a> for an Auto Scaling group.
///
/// <note>
/// <para>
/// Setting the minimum bandwidth does not guarantee that your instance will achieve the
/// minimum bandwidth. Amazon EC2 will identify instance types that support the specified
/// minimum bandwidth, but the actual bandwidth of your instance might go below the specified
/// minimum at times. For more information, see <a href="https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-instance-network-bandwidth.html#available-instance-bandwidth">Available
/// instance bandwidth</a> in the <i>Amazon EC2 User Guide for Linux Instances</i>.
/// </para>
/// </note>
/// </summary>
public partial class NetworkBandwidthGbpsRequest
{
private double? _max;
private double? _min;
/// <summary>
/// Gets and sets the property Max.
/// <para>
/// The maximum amount of network bandwidth, in gigabits per second (Gbps).
/// </para>
/// </summary>
[AWSProperty(Min=0)]
public double Max
{
get { return this._max.GetValueOrDefault(); }
set { this._max = value; }
}
// Check to see if Max property is set
internal bool IsSetMax()
{
return this._max.HasValue;
}
/// <summary>
/// Gets and sets the property Min.
/// <para>
/// The minimum amount of network bandwidth, in gigabits per second (Gbps).
/// </para>
/// </summary>
[AWSProperty(Min=0)]
public double Min
{
get { return this._min.GetValueOrDefault(); }
set { this._min = value; }
}
// Check to see if Min property is set
internal bool IsSetMin()
{
return this._min.HasValue;
}
}
}
| 89 |
aws-sdk-net
|
aws
|
C#
|
/*
* 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 autoscaling-2011-01-01.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.AutoScaling.Model
{
/// <summary>
/// Specifies the minimum and maximum for the <code>NetworkInterfaceCount</code> object
/// when you specify <a>InstanceRequirements</a> for an Auto Scaling group.
/// </summary>
public partial class NetworkInterfaceCountRequest
{
private int? _max;
private int? _min;
/// <summary>
/// Gets and sets the property Max.
/// <para>
/// The maximum number of network interfaces.
/// </para>
/// </summary>
[AWSProperty(Min=0)]
public int Max
{
get { return this._max.GetValueOrDefault(); }
set { this._max = value; }
}
// Check to see if Max property is set
internal bool IsSetMax()
{
return this._max.HasValue;
}
/// <summary>
/// Gets and sets the property Min.
/// <para>
/// The minimum number of network interfaces.
/// </para>
/// </summary>
[AWSProperty(Min=0)]
public int Min
{
get { return this._min.GetValueOrDefault(); }
set { this._min = value; }
}
// Check to see if Min property is set
internal bool IsSetMin()
{
return this._min.HasValue;
}
}
}
| 79 |
aws-sdk-net
|
aws
|
C#
|
/*
* 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 autoscaling-2011-01-01.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.AutoScaling.Model
{
/// <summary>
/// Describes a notification.
/// </summary>
public partial class NotificationConfiguration
{
private string _autoScalingGroupName;
private string _notificationType;
private string _topicARN;
/// <summary>
/// Gets and sets the property AutoScalingGroupName.
/// <para>
/// The name of the Auto Scaling group.
/// </para>
/// </summary>
[AWSProperty(Min=1, Max=255)]
public string AutoScalingGroupName
{
get { return this._autoScalingGroupName; }
set { this._autoScalingGroupName = value; }
}
// Check to see if AutoScalingGroupName property is set
internal bool IsSetAutoScalingGroupName()
{
return this._autoScalingGroupName != null;
}
/// <summary>
/// Gets and sets the property NotificationType.
/// <para>
/// One of the following event notification types:
/// </para>
/// <ul> <li>
/// <para>
/// <code>autoscaling:EC2_INSTANCE_LAUNCH</code>
/// </para>
/// </li> <li>
/// <para>
/// <code>autoscaling:EC2_INSTANCE_LAUNCH_ERROR</code>
/// </para>
/// </li> <li>
/// <para>
/// <code>autoscaling:EC2_INSTANCE_TERMINATE</code>
/// </para>
/// </li> <li>
/// <para>
/// <code>autoscaling:EC2_INSTANCE_TERMINATE_ERROR</code>
/// </para>
/// </li> <li>
/// <para>
/// <code>autoscaling:TEST_NOTIFICATION</code>
/// </para>
/// </li> </ul>
/// </summary>
[AWSProperty(Min=1, Max=255)]
public string NotificationType
{
get { return this._notificationType; }
set { this._notificationType = value; }
}
// Check to see if NotificationType property is set
internal bool IsSetNotificationType()
{
return this._notificationType != null;
}
/// <summary>
/// Gets and sets the property TopicARN.
/// <para>
/// The Amazon Resource Name (ARN) of the Amazon SNS topic.
/// </para>
/// </summary>
[AWSProperty(Min=1, Max=255)]
public string TopicARN
{
get { return this._topicARN; }
set { this._topicARN = value; }
}
// Check to see if TopicARN property is set
internal bool IsSetTopicARN()
{
return this._topicARN != null;
}
}
}
| 119 |
aws-sdk-net
|
aws
|
C#
|
/*
* 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 autoscaling-2011-01-01.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.AutoScaling.Model
{
/// <summary>
/// Represents a predefined metric for a target tracking scaling policy to use with Amazon
/// EC2 Auto Scaling.
/// </summary>
public partial class PredefinedMetricSpecification
{
private MetricType _predefinedMetricType;
private string _resourceLabel;
/// <summary>
/// Gets and sets the property PredefinedMetricType.
/// <para>
/// The metric type. The following predefined metrics are available:
/// </para>
/// <ul> <li>
/// <para>
/// <code>ASGAverageCPUUtilization</code> - Average CPU utilization of the Auto Scaling
/// group.
/// </para>
/// </li> <li>
/// <para>
/// <code>ASGAverageNetworkIn</code> - Average number of bytes received on all network
/// interfaces by the Auto Scaling group.
/// </para>
/// </li> <li>
/// <para>
/// <code>ASGAverageNetworkOut</code> - Average number of bytes sent out on all network
/// interfaces by the Auto Scaling group.
/// </para>
/// </li> <li>
/// <para>
/// <code>ALBRequestCountPerTarget</code> - Average Application Load Balancer request
/// count per target for your Auto Scaling group.
/// </para>
/// </li> </ul>
/// </summary>
[AWSProperty(Required=true)]
public MetricType PredefinedMetricType
{
get { return this._predefinedMetricType; }
set { this._predefinedMetricType = value; }
}
// Check to see if PredefinedMetricType property is set
internal bool IsSetPredefinedMetricType()
{
return this._predefinedMetricType != null;
}
/// <summary>
/// Gets and sets the property ResourceLabel.
/// <para>
/// A label that uniquely identifies a specific Application Load Balancer target group
/// from which to determine the average request count served by your Auto Scaling group.
/// You can't specify a resource label unless the target group is attached to the Auto
/// Scaling group.
/// </para>
///
/// <para>
/// You create the resource label by appending the final portion of the load balancer
/// ARN and the final portion of the target group ARN into a single value, separated by
/// a forward slash (/). The format of the resource label is:
/// </para>
///
/// <para>
/// <code>app/my-alb/778d41231b141a0f/targetgroup/my-alb-target-group/943f017f100becff</code>.
/// </para>
///
/// <para>
/// Where:
/// </para>
/// <ul> <li>
/// <para>
/// app/<load-balancer-name>/<load-balancer-id> is the final portion of the
/// load balancer ARN
/// </para>
/// </li> <li>
/// <para>
/// targetgroup/<target-group-name>/<target-group-id> is the final portion
/// of the target group ARN.
/// </para>
/// </li> </ul>
/// <para>
/// To find the ARN for an Application Load Balancer, use the <a href="https://docs.aws.amazon.com/elasticloadbalancing/latest/APIReference/API_DescribeLoadBalancers.html">DescribeLoadBalancers</a>
/// API operation. To find the ARN for the target group, use the <a href="https://docs.aws.amazon.com/elasticloadbalancing/latest/APIReference/API_DescribeTargetGroups.html">DescribeTargetGroups</a>
/// API operation.
/// </para>
/// </summary>
[AWSProperty(Min=1, Max=1023)]
public string ResourceLabel
{
get { return this._resourceLabel; }
set { this._resourceLabel = value; }
}
// Check to see if ResourceLabel property is set
internal bool IsSetResourceLabel()
{
return this._resourceLabel != null;
}
}
}
| 133 |
aws-sdk-net
|
aws
|
C#
|
/*
* 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 autoscaling-2011-01-01.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.AutoScaling.Model
{
/// <summary>
/// Represents a predictive scaling policy configuration to use with Amazon EC2 Auto Scaling.
/// </summary>
public partial class PredictiveScalingConfiguration
{
private PredictiveScalingMaxCapacityBreachBehavior _maxCapacityBreachBehavior;
private int? _maxCapacityBuffer;
private List<PredictiveScalingMetricSpecification> _metricSpecifications = new List<PredictiveScalingMetricSpecification>();
private PredictiveScalingMode _mode;
private int? _schedulingBufferTime;
/// <summary>
/// Gets and sets the property MaxCapacityBreachBehavior.
/// <para>
/// Defines the behavior that should be applied if the forecast capacity approaches or
/// exceeds the maximum capacity of the Auto Scaling group. Defaults to <code>HonorMaxCapacity</code>
/// if not specified.
/// </para>
///
/// <para>
/// The following are possible values:
/// </para>
/// <ul> <li>
/// <para>
/// <code>HonorMaxCapacity</code> - Amazon EC2 Auto Scaling cannot scale out capacity
/// higher than the maximum capacity. The maximum capacity is enforced as a hard limit.
///
/// </para>
/// </li> <li>
/// <para>
/// <code>IncreaseMaxCapacity</code> - Amazon EC2 Auto Scaling can scale out capacity
/// higher than the maximum capacity when the forecast capacity is close to or exceeds
/// the maximum capacity. The upper limit is determined by the forecasted capacity and
/// the value for <code>MaxCapacityBuffer</code>.
/// </para>
/// </li> </ul>
/// </summary>
public PredictiveScalingMaxCapacityBreachBehavior MaxCapacityBreachBehavior
{
get { return this._maxCapacityBreachBehavior; }
set { this._maxCapacityBreachBehavior = value; }
}
// Check to see if MaxCapacityBreachBehavior property is set
internal bool IsSetMaxCapacityBreachBehavior()
{
return this._maxCapacityBreachBehavior != null;
}
/// <summary>
/// Gets and sets the property MaxCapacityBuffer.
/// <para>
/// The size of the capacity buffer to use when the forecast capacity is close to or exceeds
/// the maximum capacity. The value is specified as a percentage relative to the forecast
/// capacity. For example, if the buffer is 10, this means a 10 percent buffer, such that
/// if the forecast capacity is 50, and the maximum capacity is 40, then the effective
/// maximum capacity is 55.
/// </para>
///
/// <para>
/// If set to 0, Amazon EC2 Auto Scaling may scale capacity higher than the maximum capacity
/// to equal but not exceed forecast capacity.
/// </para>
///
/// <para>
/// Required if the <code>MaxCapacityBreachBehavior</code> property is set to <code>IncreaseMaxCapacity</code>,
/// and cannot be used otherwise.
/// </para>
/// </summary>
[AWSProperty(Min=0, Max=100)]
public int MaxCapacityBuffer
{
get { return this._maxCapacityBuffer.GetValueOrDefault(); }
set { this._maxCapacityBuffer = value; }
}
// Check to see if MaxCapacityBuffer property is set
internal bool IsSetMaxCapacityBuffer()
{
return this._maxCapacityBuffer.HasValue;
}
/// <summary>
/// Gets and sets the property MetricSpecifications.
/// <para>
/// This structure includes the metrics and target utilization to use for predictive scaling.
///
/// </para>
///
/// <para>
/// This is an array, but we currently only support a single metric specification. That
/// is, you can specify a target value and a single metric pair, or a target value and
/// one scaling metric and one load metric.
/// </para>
/// </summary>
[AWSProperty(Required=true)]
public List<PredictiveScalingMetricSpecification> MetricSpecifications
{
get { return this._metricSpecifications; }
set { this._metricSpecifications = value; }
}
// Check to see if MetricSpecifications property is set
internal bool IsSetMetricSpecifications()
{
return this._metricSpecifications != null && this._metricSpecifications.Count > 0;
}
/// <summary>
/// Gets and sets the property Mode.
/// <para>
/// The predictive scaling mode. Defaults to <code>ForecastOnly</code> if not specified.
/// </para>
/// </summary>
public PredictiveScalingMode Mode
{
get { return this._mode; }
set { this._mode = value; }
}
// Check to see if Mode property is set
internal bool IsSetMode()
{
return this._mode != null;
}
/// <summary>
/// Gets and sets the property SchedulingBufferTime.
/// <para>
/// The amount of time, in seconds, by which the instance launch time can be advanced.
/// For example, the forecast says to add capacity at 10:00 AM, and you choose to pre-launch
/// instances by 5 minutes. In that case, the instances will be launched at 9:55 AM. The
/// intention is to give resources time to be provisioned. It can take a few minutes to
/// launch an EC2 instance. The actual amount of time required depends on several factors,
/// such as the size of the instance and whether there are startup scripts to complete.
///
/// </para>
///
/// <para>
/// The value must be less than the forecast interval duration of 3600 seconds (60 minutes).
/// Defaults to 300 seconds if not specified.
/// </para>
/// </summary>
[AWSProperty(Min=0)]
public int SchedulingBufferTime
{
get { return this._schedulingBufferTime.GetValueOrDefault(); }
set { this._schedulingBufferTime = value; }
}
// Check to see if SchedulingBufferTime property is set
internal bool IsSetSchedulingBufferTime()
{
return this._schedulingBufferTime.HasValue;
}
}
}
| 188 |
aws-sdk-net
|
aws
|
C#
|
/*
* 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 autoscaling-2011-01-01.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.AutoScaling.Model
{
/// <summary>
/// Describes a customized capacity metric for a predictive scaling policy.
/// </summary>
public partial class PredictiveScalingCustomizedCapacityMetric
{
private List<MetricDataQuery> _metricDataQueries = new List<MetricDataQuery>();
/// <summary>
/// Gets and sets the property MetricDataQueries.
/// <para>
/// One or more metric data queries to provide the data points for a capacity metric.
/// Use multiple metric data queries only if you are performing a math expression on returned
/// data.
/// </para>
/// </summary>
[AWSProperty(Required=true)]
public List<MetricDataQuery> MetricDataQueries
{
get { return this._metricDataQueries; }
set { this._metricDataQueries = value; }
}
// Check to see if MetricDataQueries property is set
internal bool IsSetMetricDataQueries()
{
return this._metricDataQueries != null && this._metricDataQueries.Count > 0;
}
}
}
| 60 |
aws-sdk-net
|
aws
|
C#
|
/*
* 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 autoscaling-2011-01-01.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.AutoScaling.Model
{
/// <summary>
/// Describes a custom load metric for a predictive scaling policy.
/// </summary>
public partial class PredictiveScalingCustomizedLoadMetric
{
private List<MetricDataQuery> _metricDataQueries = new List<MetricDataQuery>();
/// <summary>
/// Gets and sets the property MetricDataQueries.
/// <para>
/// One or more metric data queries to provide the data points for a load metric. Use
/// multiple metric data queries only if you are performing a math expression on returned
/// data.
/// </para>
/// </summary>
[AWSProperty(Required=true)]
public List<MetricDataQuery> MetricDataQueries
{
get { return this._metricDataQueries; }
set { this._metricDataQueries = value; }
}
// Check to see if MetricDataQueries property is set
internal bool IsSetMetricDataQueries()
{
return this._metricDataQueries != null && this._metricDataQueries.Count > 0;
}
}
}
| 60 |
aws-sdk-net
|
aws
|
C#
|
/*
* 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 autoscaling-2011-01-01.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.AutoScaling.Model
{
/// <summary>
/// Describes a custom scaling metric for a predictive scaling policy.
/// </summary>
public partial class PredictiveScalingCustomizedScalingMetric
{
private List<MetricDataQuery> _metricDataQueries = new List<MetricDataQuery>();
/// <summary>
/// Gets and sets the property MetricDataQueries.
/// <para>
/// One or more metric data queries to provide the data points for a scaling metric. Use
/// multiple metric data queries only if you are performing a math expression on returned
/// data.
/// </para>
/// </summary>
[AWSProperty(Required=true)]
public List<MetricDataQuery> MetricDataQueries
{
get { return this._metricDataQueries; }
set { this._metricDataQueries = value; }
}
// Check to see if MetricDataQueries property is set
internal bool IsSetMetricDataQueries()
{
return this._metricDataQueries != null && this._metricDataQueries.Count > 0;
}
}
}
| 60 |
aws-sdk-net
|
aws
|
C#
|
/*
* 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 autoscaling-2011-01-01.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.AutoScaling.Model
{
/// <summary>
/// This structure specifies the metrics and target utilization settings for a predictive
/// scaling policy.
///
///
/// <para>
/// You must specify either a metric pair, or a load metric and a scaling metric individually.
/// Specifying a metric pair instead of individual metrics provides a simpler way to configure
/// metrics for a scaling policy. You choose the metric pair, and the policy automatically
/// knows the correct sum and average statistics to use for the load metric and the scaling
/// metric.
/// </para>
///
/// <para>
/// Example
/// </para>
/// <ul> <li>
/// <para>
/// You create a predictive scaling policy and specify <code>ALBRequestCount</code> as
/// the value for the metric pair and <code>1000.0</code> as the target value. For this
/// type of metric, you must provide the metric dimension for the corresponding target
/// group, so you also provide a resource label for the Application Load Balancer target
/// group that is attached to your Auto Scaling group.
/// </para>
/// </li> <li>
/// <para>
/// The number of requests the target group receives per minute provides the load metric,
/// and the request count averaged between the members of the target group provides the
/// scaling metric. In CloudWatch, this refers to the <code>RequestCount</code> and <code>RequestCountPerTarget</code>
/// metrics, respectively.
/// </para>
/// </li> <li>
/// <para>
/// For optimal use of predictive scaling, you adhere to the best practice of using a
/// dynamic scaling policy to automatically scale between the minimum capacity and maximum
/// capacity in response to real-time changes in resource utilization.
/// </para>
/// </li> <li>
/// <para>
/// Amazon EC2 Auto Scaling consumes data points for the load metric over the last 14
/// days and creates an hourly load forecast for predictive scaling. (A minimum of 24
/// hours of data is required.)
/// </para>
/// </li> <li>
/// <para>
/// After creating the load forecast, Amazon EC2 Auto Scaling determines when to reduce
/// or increase the capacity of your Auto Scaling group in each hour of the forecast period
/// so that the average number of requests received by each instance is as close to 1000
/// requests per minute as possible at all times.
/// </para>
/// </li> </ul>
/// <para>
/// For information about using custom metrics with predictive scaling, see <a href="https://docs.aws.amazon.com/autoscaling/ec2/userguide/predictive-scaling-customized-metric-specification.html">Advanced
/// predictive scaling policy configurations using custom metrics</a> in the <i>Amazon
/// EC2 Auto Scaling User Guide</i>.
/// </para>
/// </summary>
public partial class PredictiveScalingMetricSpecification
{
private PredictiveScalingCustomizedCapacityMetric _customizedCapacityMetricSpecification;
private PredictiveScalingCustomizedLoadMetric _customizedLoadMetricSpecification;
private PredictiveScalingCustomizedScalingMetric _customizedScalingMetricSpecification;
private PredictiveScalingPredefinedLoadMetric _predefinedLoadMetricSpecification;
private PredictiveScalingPredefinedMetricPair _predefinedMetricPairSpecification;
private PredictiveScalingPredefinedScalingMetric _predefinedScalingMetricSpecification;
private double? _targetValue;
/// <summary>
/// Gets and sets the property CustomizedCapacityMetricSpecification.
/// <para>
/// The customized capacity metric specification.
/// </para>
/// </summary>
public PredictiveScalingCustomizedCapacityMetric CustomizedCapacityMetricSpecification
{
get { return this._customizedCapacityMetricSpecification; }
set { this._customizedCapacityMetricSpecification = value; }
}
// Check to see if CustomizedCapacityMetricSpecification property is set
internal bool IsSetCustomizedCapacityMetricSpecification()
{
return this._customizedCapacityMetricSpecification != null;
}
/// <summary>
/// Gets and sets the property CustomizedLoadMetricSpecification.
/// <para>
/// The customized load metric specification.
/// </para>
/// </summary>
public PredictiveScalingCustomizedLoadMetric CustomizedLoadMetricSpecification
{
get { return this._customizedLoadMetricSpecification; }
set { this._customizedLoadMetricSpecification = value; }
}
// Check to see if CustomizedLoadMetricSpecification property is set
internal bool IsSetCustomizedLoadMetricSpecification()
{
return this._customizedLoadMetricSpecification != null;
}
/// <summary>
/// Gets and sets the property CustomizedScalingMetricSpecification.
/// <para>
/// The customized scaling metric specification.
/// </para>
/// </summary>
public PredictiveScalingCustomizedScalingMetric CustomizedScalingMetricSpecification
{
get { return this._customizedScalingMetricSpecification; }
set { this._customizedScalingMetricSpecification = value; }
}
// Check to see if CustomizedScalingMetricSpecification property is set
internal bool IsSetCustomizedScalingMetricSpecification()
{
return this._customizedScalingMetricSpecification != null;
}
/// <summary>
/// Gets and sets the property PredefinedLoadMetricSpecification.
/// <para>
/// The predefined load metric specification.
/// </para>
/// </summary>
public PredictiveScalingPredefinedLoadMetric PredefinedLoadMetricSpecification
{
get { return this._predefinedLoadMetricSpecification; }
set { this._predefinedLoadMetricSpecification = value; }
}
// Check to see if PredefinedLoadMetricSpecification property is set
internal bool IsSetPredefinedLoadMetricSpecification()
{
return this._predefinedLoadMetricSpecification != null;
}
/// <summary>
/// Gets and sets the property PredefinedMetricPairSpecification.
/// <para>
/// The predefined metric pair specification from which Amazon EC2 Auto Scaling determines
/// the appropriate scaling metric and load metric to use.
/// </para>
/// </summary>
public PredictiveScalingPredefinedMetricPair PredefinedMetricPairSpecification
{
get { return this._predefinedMetricPairSpecification; }
set { this._predefinedMetricPairSpecification = value; }
}
// Check to see if PredefinedMetricPairSpecification property is set
internal bool IsSetPredefinedMetricPairSpecification()
{
return this._predefinedMetricPairSpecification != null;
}
/// <summary>
/// Gets and sets the property PredefinedScalingMetricSpecification.
/// <para>
/// The predefined scaling metric specification.
/// </para>
/// </summary>
public PredictiveScalingPredefinedScalingMetric PredefinedScalingMetricSpecification
{
get { return this._predefinedScalingMetricSpecification; }
set { this._predefinedScalingMetricSpecification = value; }
}
// Check to see if PredefinedScalingMetricSpecification property is set
internal bool IsSetPredefinedScalingMetricSpecification()
{
return this._predefinedScalingMetricSpecification != null;
}
/// <summary>
/// Gets and sets the property TargetValue.
/// <para>
/// Specifies the target utilization.
/// </para>
/// <note>
/// <para>
/// Some metrics are based on a count instead of a percentage, such as the request count
/// for an Application Load Balancer or the number of messages in an SQS queue. If the
/// scaling policy specifies one of these metrics, specify the target utilization as the
/// optimal average request or message count per instance during any one-minute interval.
///
/// </para>
/// </note>
/// </summary>
[AWSProperty(Required=true)]
public double TargetValue
{
get { return this._targetValue.GetValueOrDefault(); }
set { this._targetValue = value; }
}
// Check to see if TargetValue property is set
internal bool IsSetTargetValue()
{
return this._targetValue.HasValue;
}
}
}
| 236 |
aws-sdk-net
|
aws
|
C#
|
/*
* 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 autoscaling-2011-01-01.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.AutoScaling.Model
{
/// <summary>
/// Describes a load metric for a predictive scaling policy.
///
///
/// <para>
/// When returned in the output of <code>DescribePolicies</code>, it indicates that a
/// predictive scaling policy uses individually specified load and scaling metrics instead
/// of a metric pair.
/// </para>
/// </summary>
public partial class PredictiveScalingPredefinedLoadMetric
{
private PredefinedLoadMetricType _predefinedMetricType;
private string _resourceLabel;
/// <summary>
/// Gets and sets the property PredefinedMetricType.
/// <para>
/// The metric type.
/// </para>
/// </summary>
[AWSProperty(Required=true)]
public PredefinedLoadMetricType PredefinedMetricType
{
get { return this._predefinedMetricType; }
set { this._predefinedMetricType = value; }
}
// Check to see if PredefinedMetricType property is set
internal bool IsSetPredefinedMetricType()
{
return this._predefinedMetricType != null;
}
/// <summary>
/// Gets and sets the property ResourceLabel.
/// <para>
/// A label that uniquely identifies a specific Application Load Balancer target group
/// from which to determine the request count served by your Auto Scaling group. You can't
/// specify a resource label unless the target group is attached to the Auto Scaling group.
/// </para>
///
/// <para>
/// You create the resource label by appending the final portion of the load balancer
/// ARN and the final portion of the target group ARN into a single value, separated by
/// a forward slash (/). The format of the resource label is:
/// </para>
///
/// <para>
/// <code>app/my-alb/778d41231b141a0f/targetgroup/my-alb-target-group/943f017f100becff</code>.
/// </para>
///
/// <para>
/// Where:
/// </para>
/// <ul> <li>
/// <para>
/// app/<load-balancer-name>/<load-balancer-id> is the final portion of the
/// load balancer ARN
/// </para>
/// </li> <li>
/// <para>
/// targetgroup/<target-group-name>/<target-group-id> is the final portion
/// of the target group ARN.
/// </para>
/// </li> </ul>
/// <para>
/// To find the ARN for an Application Load Balancer, use the <a href="https://docs.aws.amazon.com/elasticloadbalancing/latest/APIReference/API_DescribeLoadBalancers.html">DescribeLoadBalancers</a>
/// API operation. To find the ARN for the target group, use the <a href="https://docs.aws.amazon.com/elasticloadbalancing/latest/APIReference/API_DescribeTargetGroups.html">DescribeTargetGroups</a>
/// API operation.
/// </para>
/// </summary>
[AWSProperty(Min=1, Max=1023)]
public string ResourceLabel
{
get { return this._resourceLabel; }
set { this._resourceLabel = value; }
}
// Check to see if ResourceLabel property is set
internal bool IsSetResourceLabel()
{
return this._resourceLabel != null;
}
}
}
| 117 |
aws-sdk-net
|
aws
|
C#
|
/*
* 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 autoscaling-2011-01-01.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.AutoScaling.Model
{
/// <summary>
/// Represents a metric pair for a predictive scaling policy.
/// </summary>
public partial class PredictiveScalingPredefinedMetricPair
{
private PredefinedMetricPairType _predefinedMetricType;
private string _resourceLabel;
/// <summary>
/// Gets and sets the property PredefinedMetricType.
/// <para>
/// Indicates which metrics to use. There are two different types of metrics for each
/// metric type: one is a load metric and one is a scaling metric. For example, if the
/// metric type is <code>ASGCPUUtilization</code>, the Auto Scaling group's total CPU
/// metric is used as the load metric, and the average CPU metric is used for the scaling
/// metric.
/// </para>
/// </summary>
[AWSProperty(Required=true)]
public PredefinedMetricPairType PredefinedMetricType
{
get { return this._predefinedMetricType; }
set { this._predefinedMetricType = value; }
}
// Check to see if PredefinedMetricType property is set
internal bool IsSetPredefinedMetricType()
{
return this._predefinedMetricType != null;
}
/// <summary>
/// Gets and sets the property ResourceLabel.
/// <para>
/// A label that uniquely identifies a specific Application Load Balancer target group
/// from which to determine the total and average request count served by your Auto Scaling
/// group. You can't specify a resource label unless the target group is attached to the
/// Auto Scaling group.
/// </para>
///
/// <para>
/// You create the resource label by appending the final portion of the load balancer
/// ARN and the final portion of the target group ARN into a single value, separated by
/// a forward slash (/). The format of the resource label is:
/// </para>
///
/// <para>
/// <code>app/my-alb/778d41231b141a0f/targetgroup/my-alb-target-group/943f017f100becff</code>.
/// </para>
///
/// <para>
/// Where:
/// </para>
/// <ul> <li>
/// <para>
/// app/<load-balancer-name>/<load-balancer-id> is the final portion of the
/// load balancer ARN
/// </para>
/// </li> <li>
/// <para>
/// targetgroup/<target-group-name>/<target-group-id> is the final portion
/// of the target group ARN.
/// </para>
/// </li> </ul>
/// <para>
/// To find the ARN for an Application Load Balancer, use the <a href="https://docs.aws.amazon.com/elasticloadbalancing/latest/APIReference/API_DescribeLoadBalancers.html">DescribeLoadBalancers</a>
/// API operation. To find the ARN for the target group, use the <a href="https://docs.aws.amazon.com/elasticloadbalancing/latest/APIReference/API_DescribeTargetGroups.html">DescribeTargetGroups</a>
/// API operation.
/// </para>
/// </summary>
[AWSProperty(Min=1, Max=1023)]
public string ResourceLabel
{
get { return this._resourceLabel; }
set { this._resourceLabel = value; }
}
// Check to see if ResourceLabel property is set
internal bool IsSetResourceLabel()
{
return this._resourceLabel != null;
}
}
}
| 115 |
aws-sdk-net
|
aws
|
C#
|
/*
* 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 autoscaling-2011-01-01.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.AutoScaling.Model
{
/// <summary>
/// Describes a scaling metric for a predictive scaling policy.
///
///
/// <para>
/// When returned in the output of <code>DescribePolicies</code>, it indicates that a
/// predictive scaling policy uses individually specified load and scaling metrics instead
/// of a metric pair.
/// </para>
/// </summary>
public partial class PredictiveScalingPredefinedScalingMetric
{
private PredefinedScalingMetricType _predefinedMetricType;
private string _resourceLabel;
/// <summary>
/// Gets and sets the property PredefinedMetricType.
/// <para>
/// The metric type.
/// </para>
/// </summary>
[AWSProperty(Required=true)]
public PredefinedScalingMetricType PredefinedMetricType
{
get { return this._predefinedMetricType; }
set { this._predefinedMetricType = value; }
}
// Check to see if PredefinedMetricType property is set
internal bool IsSetPredefinedMetricType()
{
return this._predefinedMetricType != null;
}
/// <summary>
/// Gets and sets the property ResourceLabel.
/// <para>
/// A label that uniquely identifies a specific Application Load Balancer target group
/// from which to determine the average request count served by your Auto Scaling group.
/// You can't specify a resource label unless the target group is attached to the Auto
/// Scaling group.
/// </para>
///
/// <para>
/// You create the resource label by appending the final portion of the load balancer
/// ARN and the final portion of the target group ARN into a single value, separated by
/// a forward slash (/). The format of the resource label is:
/// </para>
///
/// <para>
/// <code>app/my-alb/778d41231b141a0f/targetgroup/my-alb-target-group/943f017f100becff</code>.
/// </para>
///
/// <para>
/// Where:
/// </para>
/// <ul> <li>
/// <para>
/// app/<load-balancer-name>/<load-balancer-id> is the final portion of the
/// load balancer ARN
/// </para>
/// </li> <li>
/// <para>
/// targetgroup/<target-group-name>/<target-group-id> is the final portion
/// of the target group ARN.
/// </para>
/// </li> </ul>
/// <para>
/// To find the ARN for an Application Load Balancer, use the <a href="https://docs.aws.amazon.com/elasticloadbalancing/latest/APIReference/API_DescribeLoadBalancers.html">DescribeLoadBalancers</a>
/// API operation. To find the ARN for the target group, use the <a href="https://docs.aws.amazon.com/elasticloadbalancing/latest/APIReference/API_DescribeTargetGroups.html">DescribeTargetGroups</a>
/// API operation.
/// </para>
/// </summary>
[AWSProperty(Min=1, Max=1023)]
public string ResourceLabel
{
get { return this._resourceLabel; }
set { this._resourceLabel = value; }
}
// Check to see if ResourceLabel property is set
internal bool IsSetResourceLabel()
{
return this._resourceLabel != null;
}
}
}
| 118 |
aws-sdk-net
|
aws
|
C#
|
/*
* 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 autoscaling-2011-01-01.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.AutoScaling.Model
{
/// <summary>
/// Describes a process type.
///
///
/// <para>
/// For more information, see <a href="https://docs.aws.amazon.com/autoscaling/ec2/userguide/as-suspend-resume-processes.html#process-types">Scaling
/// processes</a> in the <i>Amazon EC2 Auto Scaling User Guide</i>.
/// </para>
/// </summary>
public partial class ProcessType
{
private string _processName;
/// <summary>
/// Gets and sets the property ProcessName.
/// <para>
/// One of the following processes:
/// </para>
/// <ul> <li>
/// <para>
/// <code>Launch</code>
/// </para>
/// </li> <li>
/// <para>
/// <code>Terminate</code>
/// </para>
/// </li> <li>
/// <para>
/// <code>AddToLoadBalancer</code>
/// </para>
/// </li> <li>
/// <para>
/// <code>AlarmNotification</code>
/// </para>
/// </li> <li>
/// <para>
/// <code>AZRebalance</code>
/// </para>
/// </li> <li>
/// <para>
/// <code>HealthCheck</code>
/// </para>
/// </li> <li>
/// <para>
/// <code>InstanceRefresh</code>
/// </para>
/// </li> <li>
/// <para>
/// <code>ReplaceUnhealthy</code>
/// </para>
/// </li> <li>
/// <para>
/// <code>ScheduledActions</code>
/// </para>
/// </li> </ul>
/// </summary>
[AWSProperty(Required=true, Min=1, Max=255)]
public string ProcessName
{
get { return this._processName; }
set { this._processName = value; }
}
// Check to see if ProcessName property is set
internal bool IsSetProcessName()
{
return this._processName != null;
}
}
}
| 101 |
aws-sdk-net
|
aws
|
C#
|
/*
* 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 autoscaling-2011-01-01.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.AutoScaling.Model
{
/// <summary>
/// Container for the parameters to the PutLifecycleHook operation.
/// Creates or updates a lifecycle hook for the specified Auto Scaling group.
///
///
/// <para>
/// Lifecycle hooks let you create solutions that are aware of events in the Auto Scaling
/// instance lifecycle, and then perform a custom action on instances when the corresponding
/// lifecycle event occurs.
/// </para>
///
/// <para>
/// This step is a part of the procedure for adding a lifecycle hook to an Auto Scaling
/// group:
/// </para>
/// <ol> <li>
/// <para>
/// (Optional) Create a launch template or launch configuration with a user data script
/// that runs while an instance is in a wait state due to a lifecycle hook.
/// </para>
/// </li> <li>
/// <para>
/// (Optional) Create a Lambda function and a rule that allows Amazon EventBridge to invoke
/// your Lambda function when an instance is put into a wait state due to a lifecycle
/// hook.
/// </para>
/// </li> <li>
/// <para>
/// (Optional) Create a notification target and an IAM role. The target can be either
/// an Amazon SQS queue or an Amazon SNS topic. The role allows Amazon EC2 Auto Scaling
/// to publish lifecycle notifications to the target.
/// </para>
/// </li> <li>
/// <para>
/// <b>Create the lifecycle hook. Specify whether the hook is used when the instances
/// launch or terminate.</b>
/// </para>
/// </li> <li>
/// <para>
/// If you need more time, record the lifecycle action heartbeat to keep the instance
/// in a wait state using the <a>RecordLifecycleActionHeartbeat</a> API call.
/// </para>
/// </li> <li>
/// <para>
/// If you finish before the timeout period ends, send a callback by using the <a>CompleteLifecycleAction</a>
/// API call.
/// </para>
/// </li> </ol>
/// <para>
/// For more information, see <a href="https://docs.aws.amazon.com/autoscaling/ec2/userguide/lifecycle-hooks.html">Amazon
/// EC2 Auto Scaling lifecycle hooks</a> in the <i>Amazon EC2 Auto Scaling User Guide</i>.
/// </para>
///
/// <para>
/// If you exceed your maximum limit of lifecycle hooks, which by default is 50 per Auto
/// Scaling group, the call fails.
/// </para>
///
/// <para>
/// You can view the lifecycle hooks for an Auto Scaling group using the <a>DescribeLifecycleHooks</a>
/// API call. If you are no longer using a lifecycle hook, you can delete it by calling
/// the <a>DeleteLifecycleHook</a> API.
/// </para>
/// </summary>
public partial class PutLifecycleHookRequest : AmazonAutoScalingRequest
{
private string _autoScalingGroupName;
private string _defaultResult;
private int? _heartbeatTimeout;
private string _lifecycleHookName;
private string _lifecycleTransition;
private string _notificationMetadata;
private string _notificationTargetARN;
private string _roleARN;
/// <summary>
/// Gets and sets the property AutoScalingGroupName.
/// <para>
/// The name of the Auto Scaling group.
/// </para>
/// </summary>
[AWSProperty(Required=true, Min=1, Max=255)]
public string AutoScalingGroupName
{
get { return this._autoScalingGroupName; }
set { this._autoScalingGroupName = value; }
}
// Check to see if AutoScalingGroupName property is set
internal bool IsSetAutoScalingGroupName()
{
return this._autoScalingGroupName != null;
}
/// <summary>
/// Gets and sets the property DefaultResult.
/// <para>
/// The action the Auto Scaling group takes when the lifecycle hook timeout elapses or
/// if an unexpected failure occurs. The default value is <code>ABANDON</code>.
/// </para>
///
/// <para>
/// Valid values: <code>CONTINUE</code> | <code>ABANDON</code>
/// </para>
/// </summary>
public string DefaultResult
{
get { return this._defaultResult; }
set { this._defaultResult = value; }
}
// Check to see if DefaultResult property is set
internal bool IsSetDefaultResult()
{
return this._defaultResult != null;
}
/// <summary>
/// Gets and sets the property HeartbeatTimeout.
/// <para>
/// The maximum time, in seconds, that can elapse before the lifecycle hook times out.
/// The range is from <code>30</code> to <code>7200</code> seconds. The default value
/// is <code>3600</code> seconds (1 hour).
/// </para>
/// </summary>
public int HeartbeatTimeout
{
get { return this._heartbeatTimeout.GetValueOrDefault(); }
set { this._heartbeatTimeout = value; }
}
// Check to see if HeartbeatTimeout property is set
internal bool IsSetHeartbeatTimeout()
{
return this._heartbeatTimeout.HasValue;
}
/// <summary>
/// Gets and sets the property LifecycleHookName.
/// <para>
/// The name of the lifecycle hook.
/// </para>
/// </summary>
[AWSProperty(Required=true, Min=1, Max=255)]
public string LifecycleHookName
{
get { return this._lifecycleHookName; }
set { this._lifecycleHookName = value; }
}
// Check to see if LifecycleHookName property is set
internal bool IsSetLifecycleHookName()
{
return this._lifecycleHookName != null;
}
/// <summary>
/// Gets and sets the property LifecycleTransition.
/// <para>
/// The lifecycle transition. For Auto Scaling groups, there are two major lifecycle transitions.
/// </para>
/// <ul> <li>
/// <para>
/// To create a lifecycle hook for scale-out events, specify <code>autoscaling:EC2_INSTANCE_LAUNCHING</code>.
/// </para>
/// </li> <li>
/// <para>
/// To create a lifecycle hook for scale-in events, specify <code>autoscaling:EC2_INSTANCE_TERMINATING</code>.
/// </para>
/// </li> </ul>
/// <para>
/// Required for new lifecycle hooks, but optional when updating existing hooks.
/// </para>
/// </summary>
public string LifecycleTransition
{
get { return this._lifecycleTransition; }
set { this._lifecycleTransition = value; }
}
// Check to see if LifecycleTransition property is set
internal bool IsSetLifecycleTransition()
{
return this._lifecycleTransition != null;
}
/// <summary>
/// Gets and sets the property NotificationMetadata.
/// <para>
/// Additional information that you want to include any time Amazon EC2 Auto Scaling sends
/// a message to the notification target.
/// </para>
/// </summary>
[AWSProperty(Min=1, Max=1023)]
public string NotificationMetadata
{
get { return this._notificationMetadata; }
set { this._notificationMetadata = value; }
}
// Check to see if NotificationMetadata property is set
internal bool IsSetNotificationMetadata()
{
return this._notificationMetadata != null;
}
/// <summary>
/// Gets and sets the property NotificationTargetARN.
/// <para>
/// The Amazon Resource Name (ARN) of the notification target that Amazon EC2 Auto Scaling
/// uses to notify you when an instance is in a wait state for the lifecycle hook. You
/// can specify either an Amazon SNS topic or an Amazon SQS queue.
/// </para>
///
/// <para>
/// If you specify an empty string, this overrides the current ARN.
/// </para>
///
/// <para>
/// This operation uses the JSON format when sending notifications to an Amazon SQS queue,
/// and an email key-value pair format when sending notifications to an Amazon SNS topic.
/// </para>
///
/// <para>
/// When you specify a notification target, Amazon EC2 Auto Scaling sends it a test message.
/// Test messages contain the following additional key-value pair: <code>"Event": "autoscaling:TEST_NOTIFICATION"</code>.
/// </para>
/// </summary>
[AWSProperty(Min=0, Max=255)]
public string NotificationTargetARN
{
get { return this._notificationTargetARN; }
set { this._notificationTargetARN = value; }
}
// Check to see if NotificationTargetARN property is set
internal bool IsSetNotificationTargetARN()
{
return this._notificationTargetARN != null;
}
/// <summary>
/// Gets and sets the property RoleARN.
/// <para>
/// The ARN of the IAM role that allows the Auto Scaling group to publish to the specified
/// notification target.
/// </para>
///
/// <para>
/// Valid only if the notification target is an Amazon SNS topic or an Amazon SQS queue.
/// Required for new lifecycle hooks, but optional when updating existing hooks.
/// </para>
/// </summary>
[AWSProperty(Min=1, Max=255)]
public string RoleARN
{
get { return this._roleARN; }
set { this._roleARN = value; }
}
// Check to see if RoleARN property is set
internal bool IsSetRoleARN()
{
return this._roleARN != null;
}
}
}
| 298 |
aws-sdk-net
|
aws
|
C#
|
/*
* 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 autoscaling-2011-01-01.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.AutoScaling.Model
{
/// <summary>
/// This is the response object from the PutLifecycleHook operation.
/// </summary>
public partial class PutLifecycleHookResponse : AmazonWebServiceResponse
{
}
}
| 38 |
aws-sdk-net
|
aws
|
C#
|
/*
* 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 autoscaling-2011-01-01.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.AutoScaling.Model
{
/// <summary>
/// Container for the parameters to the PutNotificationConfiguration operation.
/// Configures an Auto Scaling group to send notifications when specified events take
/// place. Subscribers to the specified topic can have messages delivered to an endpoint
/// such as a web server or an email address.
///
///
/// <para>
/// This configuration overwrites any existing configuration.
/// </para>
///
/// <para>
/// For more information, see <a href="https://docs.aws.amazon.com/autoscaling/ec2/userguide/ASGettingNotifications.html">Getting
/// Amazon SNS notifications when your Auto Scaling group scales</a> in the <i>Amazon
/// EC2 Auto Scaling User Guide</i>.
/// </para>
///
/// <para>
/// If you exceed your maximum limit of SNS topics, which is 10 per Auto Scaling group,
/// the call fails.
/// </para>
/// </summary>
public partial class PutNotificationConfigurationRequest : AmazonAutoScalingRequest
{
private string _autoScalingGroupName;
private List<string> _notificationTypes = new List<string>();
private string _topicARN;
/// <summary>
/// Gets and sets the property AutoScalingGroupName.
/// <para>
/// The name of the Auto Scaling group.
/// </para>
/// </summary>
[AWSProperty(Required=true, Min=1, Max=255)]
public string AutoScalingGroupName
{
get { return this._autoScalingGroupName; }
set { this._autoScalingGroupName = value; }
}
// Check to see if AutoScalingGroupName property is set
internal bool IsSetAutoScalingGroupName()
{
return this._autoScalingGroupName != null;
}
/// <summary>
/// Gets and sets the property NotificationTypes.
/// <para>
/// The type of event that causes the notification to be sent. To query the notification
/// types supported by Amazon EC2 Auto Scaling, call the <a>DescribeAutoScalingNotificationTypes</a>
/// API.
/// </para>
/// </summary>
[AWSProperty(Required=true)]
public List<string> NotificationTypes
{
get { return this._notificationTypes; }
set { this._notificationTypes = value; }
}
// Check to see if NotificationTypes property is set
internal bool IsSetNotificationTypes()
{
return this._notificationTypes != null && this._notificationTypes.Count > 0;
}
/// <summary>
/// Gets and sets the property TopicARN.
/// <para>
/// The Amazon Resource Name (ARN) of the Amazon SNS topic.
/// </para>
/// </summary>
[AWSProperty(Required=true, Min=1, Max=255)]
public string TopicARN
{
get { return this._topicARN; }
set { this._topicARN = value; }
}
// Check to see if TopicARN property is set
internal bool IsSetTopicARN()
{
return this._topicARN != null;
}
}
}
| 119 |
aws-sdk-net
|
aws
|
C#
|
/*
* 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 autoscaling-2011-01-01.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.AutoScaling.Model
{
/// <summary>
/// This is the response object from the PutNotificationConfiguration operation.
/// </summary>
public partial class PutNotificationConfigurationResponse : AmazonWebServiceResponse
{
}
}
| 38 |
aws-sdk-net
|
aws
|
C#
|
/*
* 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 autoscaling-2011-01-01.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.AutoScaling.Model
{
/// <summary>
/// Container for the parameters to the PutScalingPolicy operation.
/// Creates or updates a scaling policy for an Auto Scaling group. Scaling policies are
/// used to scale an Auto Scaling group based on configurable metrics. If no policies
/// are defined, the dynamic scaling and predictive scaling features are not used.
///
///
/// <para>
/// For more information about using dynamic scaling, see <a href="https://docs.aws.amazon.com/autoscaling/ec2/userguide/as-scaling-target-tracking.html">Target
/// tracking scaling policies</a> and <a href="https://docs.aws.amazon.com/autoscaling/ec2/userguide/as-scaling-simple-step.html">Step
/// and simple scaling policies</a> in the <i>Amazon EC2 Auto Scaling User Guide</i>.
/// </para>
///
/// <para>
/// For more information about using predictive scaling, see <a href="https://docs.aws.amazon.com/autoscaling/ec2/userguide/ec2-auto-scaling-predictive-scaling.html">Predictive
/// scaling for Amazon EC2 Auto Scaling</a> in the <i>Amazon EC2 Auto Scaling User Guide</i>.
/// </para>
///
/// <para>
/// You can view the scaling policies for an Auto Scaling group using the <a>DescribePolicies</a>
/// API call. If you are no longer using a scaling policy, you can delete it by calling
/// the <a>DeletePolicy</a> API.
/// </para>
/// </summary>
public partial class PutScalingPolicyRequest : AmazonAutoScalingRequest
{
private string _adjustmentType;
private string _autoScalingGroupName;
private int? _cooldown;
private bool? _enabled;
private int? _estimatedInstanceWarmup;
private string _metricAggregationType;
private int? _minAdjustmentMagnitude;
private int? _minAdjustmentStep;
private string _policyName;
private string _policyType;
private PredictiveScalingConfiguration _predictiveScalingConfiguration;
private int? _scalingAdjustment;
private List<StepAdjustment> _stepAdjustments = new List<StepAdjustment>();
private TargetTrackingConfiguration _targetTrackingConfiguration;
/// <summary>
/// Gets and sets the property AdjustmentType.
/// <para>
/// Specifies how the scaling adjustment is interpreted (for example, an absolute number
/// or a percentage). The valid values are <code>ChangeInCapacity</code>, <code>ExactCapacity</code>,
/// and <code>PercentChangeInCapacity</code>.
/// </para>
///
/// <para>
/// Required if the policy type is <code>StepScaling</code> or <code>SimpleScaling</code>.
/// For more information, see <a href="https://docs.aws.amazon.com/autoscaling/ec2/userguide/as-scaling-simple-step.html#as-scaling-adjustment">Scaling
/// adjustment types</a> in the <i>Amazon EC2 Auto Scaling User Guide</i>.
/// </para>
/// </summary>
[AWSProperty(Min=1, Max=255)]
public string AdjustmentType
{
get { return this._adjustmentType; }
set { this._adjustmentType = value; }
}
// Check to see if AdjustmentType property is set
internal bool IsSetAdjustmentType()
{
return this._adjustmentType != null;
}
/// <summary>
/// Gets and sets the property AutoScalingGroupName.
/// <para>
/// The name of the Auto Scaling group.
/// </para>
/// </summary>
[AWSProperty(Required=true, Min=1, Max=255)]
public string AutoScalingGroupName
{
get { return this._autoScalingGroupName; }
set { this._autoScalingGroupName = value; }
}
// Check to see if AutoScalingGroupName property is set
internal bool IsSetAutoScalingGroupName()
{
return this._autoScalingGroupName != null;
}
/// <summary>
/// Gets and sets the property Cooldown.
/// <para>
/// A cooldown period, in seconds, that applies to a specific simple scaling policy. When
/// a cooldown period is specified here, it overrides the default cooldown.
/// </para>
///
/// <para>
/// Valid only if the policy type is <code>SimpleScaling</code>. For more information,
/// see <a href="https://docs.aws.amazon.com/autoscaling/ec2/userguide/Cooldown.html">Scaling
/// cooldowns for Amazon EC2 Auto Scaling</a> in the <i>Amazon EC2 Auto Scaling User Guide</i>.
/// </para>
///
/// <para>
/// Default: None
/// </para>
/// </summary>
public int Cooldown
{
get { return this._cooldown.GetValueOrDefault(); }
set { this._cooldown = value; }
}
// Check to see if Cooldown property is set
internal bool IsSetCooldown()
{
return this._cooldown.HasValue;
}
/// <summary>
/// Gets and sets the property Enabled.
/// <para>
/// Indicates whether the scaling policy is enabled or disabled. The default is enabled.
/// For more information, see <a href="https://docs.aws.amazon.com/autoscaling/ec2/userguide/as-enable-disable-scaling-policy.html">Disabling
/// a scaling policy for an Auto Scaling group</a> in the <i>Amazon EC2 Auto Scaling User
/// Guide</i>.
/// </para>
/// </summary>
public bool Enabled
{
get { return this._enabled.GetValueOrDefault(); }
set { this._enabled = value; }
}
// Check to see if Enabled property is set
internal bool IsSetEnabled()
{
return this._enabled.HasValue;
}
/// <summary>
/// Gets and sets the property EstimatedInstanceWarmup.
/// <para>
/// <i>Not needed if the default instance warmup is defined for the group.</i>
/// </para>
///
/// <para>
/// The estimated time, in seconds, until a newly launched instance can contribute to
/// the CloudWatch metrics. This warm-up period applies to instances launched due to a
/// specific target tracking or step scaling policy. When a warm-up period is specified
/// here, it overrides the default instance warmup.
/// </para>
///
/// <para>
/// Valid only if the policy type is <code>TargetTrackingScaling</code> or <code>StepScaling</code>.
/// </para>
/// <note>
/// <para>
/// The default is to use the value for the default instance warmup defined for the group.
/// If default instance warmup is null, then <code>EstimatedInstanceWarmup</code> falls
/// back to the value of default cooldown.
/// </para>
/// </note>
/// </summary>
public int EstimatedInstanceWarmup
{
get { return this._estimatedInstanceWarmup.GetValueOrDefault(); }
set { this._estimatedInstanceWarmup = value; }
}
// Check to see if EstimatedInstanceWarmup property is set
internal bool IsSetEstimatedInstanceWarmup()
{
return this._estimatedInstanceWarmup.HasValue;
}
/// <summary>
/// Gets and sets the property MetricAggregationType.
/// <para>
/// The aggregation type for the CloudWatch metrics. The valid values are <code>Minimum</code>,
/// <code>Maximum</code>, and <code>Average</code>. If the aggregation type is null, the
/// value is treated as <code>Average</code>.
/// </para>
///
/// <para>
/// Valid only if the policy type is <code>StepScaling</code>.
/// </para>
/// </summary>
[AWSProperty(Min=1, Max=32)]
public string MetricAggregationType
{
get { return this._metricAggregationType; }
set { this._metricAggregationType = value; }
}
// Check to see if MetricAggregationType property is set
internal bool IsSetMetricAggregationType()
{
return this._metricAggregationType != null;
}
/// <summary>
/// Gets and sets the property MinAdjustmentMagnitude.
/// <para>
/// The minimum value to scale by when the adjustment type is <code>PercentChangeInCapacity</code>.
/// For example, suppose that you create a step scaling policy to scale out an Auto Scaling
/// group by 25 percent and you specify a <code>MinAdjustmentMagnitude</code> of 2. If
/// the group has 4 instances and the scaling policy is performed, 25 percent of 4 is
/// 1. However, because you specified a <code>MinAdjustmentMagnitude</code> of 2, Amazon
/// EC2 Auto Scaling scales out the group by 2 instances.
/// </para>
///
/// <para>
/// Valid only if the policy type is <code>StepScaling</code> or <code>SimpleScaling</code>.
/// For more information, see <a href="https://docs.aws.amazon.com/autoscaling/ec2/userguide/as-scaling-simple-step.html#as-scaling-adjustment">Scaling
/// adjustment types</a> in the <i>Amazon EC2 Auto Scaling User Guide</i>.
/// </para>
/// <note>
/// <para>
/// Some Auto Scaling groups use instance weights. In this case, set the <code>MinAdjustmentMagnitude</code>
/// to a value that is at least as large as your largest instance weight.
/// </para>
/// </note>
/// </summary>
public int MinAdjustmentMagnitude
{
get { return this._minAdjustmentMagnitude.GetValueOrDefault(); }
set { this._minAdjustmentMagnitude = value; }
}
// Check to see if MinAdjustmentMagnitude property is set
internal bool IsSetMinAdjustmentMagnitude()
{
return this._minAdjustmentMagnitude.HasValue;
}
/// <summary>
/// Gets and sets the property MinAdjustmentStep.
/// <para>
/// Available for backward compatibility. Use <code>MinAdjustmentMagnitude</code> instead.
/// </para>
/// </summary>
public int MinAdjustmentStep
{
get { return this._minAdjustmentStep.GetValueOrDefault(); }
set { this._minAdjustmentStep = value; }
}
// Check to see if MinAdjustmentStep property is set
internal bool IsSetMinAdjustmentStep()
{
return this._minAdjustmentStep.HasValue;
}
/// <summary>
/// Gets and sets the property PolicyName.
/// <para>
/// The name of the policy.
/// </para>
/// </summary>
[AWSProperty(Required=true, Min=1, Max=255)]
public string PolicyName
{
get { return this._policyName; }
set { this._policyName = value; }
}
// Check to see if PolicyName property is set
internal bool IsSetPolicyName()
{
return this._policyName != null;
}
/// <summary>
/// Gets and sets the property PolicyType.
/// <para>
/// One of the following policy types:
/// </para>
/// <ul> <li>
/// <para>
/// <code>TargetTrackingScaling</code>
/// </para>
/// </li> <li>
/// <para>
/// <code>StepScaling</code>
/// </para>
/// </li> <li>
/// <para>
/// <code>SimpleScaling</code> (default)
/// </para>
/// </li> <li>
/// <para>
/// <code>PredictiveScaling</code>
/// </para>
/// </li> </ul>
/// </summary>
[AWSProperty(Min=1, Max=64)]
public string PolicyType
{
get { return this._policyType; }
set { this._policyType = value; }
}
// Check to see if PolicyType property is set
internal bool IsSetPolicyType()
{
return this._policyType != null;
}
/// <summary>
/// Gets and sets the property PredictiveScalingConfiguration.
/// <para>
/// A predictive scaling policy. Provides support for predefined and custom metrics.
/// </para>
///
/// <para>
/// Predefined metrics include CPU utilization, network in/out, and the Application Load
/// Balancer request count.
/// </para>
///
/// <para>
/// For more information, see <a href="https://docs.aws.amazon.com/autoscaling/ec2/APIReference/API_PredictiveScalingConfiguration.html">PredictiveScalingConfiguration</a>
/// in the <i>Amazon EC2 Auto Scaling API Reference</i>.
/// </para>
///
/// <para>
/// Required if the policy type is <code>PredictiveScaling</code>.
/// </para>
/// </summary>
public PredictiveScalingConfiguration PredictiveScalingConfiguration
{
get { return this._predictiveScalingConfiguration; }
set { this._predictiveScalingConfiguration = value; }
}
// Check to see if PredictiveScalingConfiguration property is set
internal bool IsSetPredictiveScalingConfiguration()
{
return this._predictiveScalingConfiguration != null;
}
/// <summary>
/// Gets and sets the property ScalingAdjustment.
/// <para>
/// The amount by which to scale, based on the specified adjustment type. A positive value
/// adds to the current capacity while a negative number removes from the current capacity.
/// For exact capacity, you must specify a positive value.
/// </para>
///
/// <para>
/// Required if the policy type is <code>SimpleScaling</code>. (Not used with any other
/// policy type.)
/// </para>
/// </summary>
public int ScalingAdjustment
{
get { return this._scalingAdjustment.GetValueOrDefault(); }
set { this._scalingAdjustment = value; }
}
// Check to see if ScalingAdjustment property is set
internal bool IsSetScalingAdjustment()
{
return this._scalingAdjustment.HasValue;
}
/// <summary>
/// Gets and sets the property StepAdjustments.
/// <para>
/// A set of adjustments that enable you to scale based on the size of the alarm breach.
/// </para>
///
/// <para>
/// Required if the policy type is <code>StepScaling</code>. (Not used with any other
/// policy type.)
/// </para>
/// </summary>
public List<StepAdjustment> StepAdjustments
{
get { return this._stepAdjustments; }
set { this._stepAdjustments = value; }
}
// Check to see if StepAdjustments property is set
internal bool IsSetStepAdjustments()
{
return this._stepAdjustments != null && this._stepAdjustments.Count > 0;
}
/// <summary>
/// Gets and sets the property TargetTrackingConfiguration.
/// <para>
/// A target tracking scaling policy. Provides support for predefined or custom metrics.
/// </para>
///
/// <para>
/// The following predefined metrics are available:
/// </para>
/// <ul> <li>
/// <para>
/// <code>ASGAverageCPUUtilization</code>
/// </para>
/// </li> <li>
/// <para>
/// <code>ASGAverageNetworkIn</code>
/// </para>
/// </li> <li>
/// <para>
/// <code>ASGAverageNetworkOut</code>
/// </para>
/// </li> <li>
/// <para>
/// <code>ALBRequestCountPerTarget</code>
/// </para>
/// </li> </ul>
/// <para>
/// If you specify <code>ALBRequestCountPerTarget</code> for the metric, you must specify
/// the <code>ResourceLabel</code> property with the <code>PredefinedMetricSpecification</code>.
/// </para>
///
/// <para>
/// For more information, see <a href="https://docs.aws.amazon.com/autoscaling/ec2/APIReference/API_TargetTrackingConfiguration.html">TargetTrackingConfiguration</a>
/// in the <i>Amazon EC2 Auto Scaling API Reference</i>.
/// </para>
///
/// <para>
/// Required if the policy type is <code>TargetTrackingScaling</code>.
/// </para>
/// </summary>
public TargetTrackingConfiguration TargetTrackingConfiguration
{
get { return this._targetTrackingConfiguration; }
set { this._targetTrackingConfiguration = value; }
}
// Check to see if TargetTrackingConfiguration property is set
internal bool IsSetTargetTrackingConfiguration()
{
return this._targetTrackingConfiguration != null;
}
}
}
| 470 |
aws-sdk-net
|
aws
|
C#
|
/*
* 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 autoscaling-2011-01-01.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.AutoScaling.Model
{
/// <summary>
/// Contains the output of PutScalingPolicy.
/// </summary>
public partial class PutScalingPolicyResponse : AmazonWebServiceResponse
{
private List<Alarm> _alarms = new List<Alarm>();
private string _policyARN;
/// <summary>
/// Gets and sets the property Alarms.
/// <para>
/// The CloudWatch alarms created for the target tracking scaling policy.
/// </para>
/// </summary>
public List<Alarm> Alarms
{
get { return this._alarms; }
set { this._alarms = value; }
}
// Check to see if Alarms property is set
internal bool IsSetAlarms()
{
return this._alarms != null && this._alarms.Count > 0;
}
/// <summary>
/// Gets and sets the property PolicyARN.
/// <para>
/// The Amazon Resource Name (ARN) of the policy.
/// </para>
/// </summary>
[AWSProperty(Min=1, Max=1600)]
public string PolicyARN
{
get { return this._policyARN; }
set { this._policyARN = value; }
}
// Check to see if PolicyARN property is set
internal bool IsSetPolicyARN()
{
return this._policyARN != null;
}
}
}
| 77 |
aws-sdk-net
|
aws
|
C#
|
/*
* 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 autoscaling-2011-01-01.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.AutoScaling.Model
{
/// <summary>
/// Container for the parameters to the PutScheduledUpdateGroupAction operation.
/// Creates or updates a scheduled scaling action for an Auto Scaling group.
///
///
/// <para>
/// For more information, see <a href="https://docs.aws.amazon.com/autoscaling/ec2/userguide/schedule_time.html">Scheduled
/// scaling</a> in the <i>Amazon EC2 Auto Scaling User Guide</i>.
/// </para>
///
/// <para>
/// You can view the scheduled actions for an Auto Scaling group using the <a>DescribeScheduledActions</a>
/// API call. If you are no longer using a scheduled action, you can delete it by calling
/// the <a>DeleteScheduledAction</a> API.
/// </para>
///
/// <para>
/// If you try to schedule your action in the past, Amazon EC2 Auto Scaling returns an
/// error message.
/// </para>
/// </summary>
public partial class PutScheduledUpdateGroupActionRequest : AmazonAutoScalingRequest
{
private string _autoScalingGroupName;
private int? _desiredCapacity;
private DateTime? _endTimeUtc;
private int? _maxSize;
private int? _minSize;
private string _recurrence;
private string _scheduledActionName;
private DateTime? _startTimeUtc;
private DateTime? _timeUtc;
private string _timeZone;
/// <summary>
/// Gets and sets the property AutoScalingGroupName.
/// <para>
/// The name of the Auto Scaling group.
/// </para>
/// </summary>
[AWSProperty(Required=true, Min=1, Max=255)]
public string AutoScalingGroupName
{
get { return this._autoScalingGroupName; }
set { this._autoScalingGroupName = value; }
}
// Check to see if AutoScalingGroupName property is set
internal bool IsSetAutoScalingGroupName()
{
return this._autoScalingGroupName != null;
}
/// <summary>
/// Gets and sets the property DesiredCapacity.
/// <para>
/// The desired capacity is the initial capacity of the Auto Scaling group after the scheduled
/// action runs and the capacity it attempts to maintain. It can scale beyond this capacity
/// if you add more scaling conditions.
/// </para>
/// <note>
/// <para>
/// You must specify at least one of the following properties: <code>MaxSize</code>, <code>MinSize</code>,
/// or <code>DesiredCapacity</code>.
/// </para>
/// </note>
/// </summary>
public int DesiredCapacity
{
get { return this._desiredCapacity.GetValueOrDefault(); }
set { this._desiredCapacity = value; }
}
// Check to see if DesiredCapacity property is set
internal bool IsSetDesiredCapacity()
{
return this._desiredCapacity.HasValue;
}
/// <summary>
/// Gets and sets the property EndTimeUtc.
/// <para>
/// The date and time for the recurring schedule to end, in UTC. For example, <code>"2021-06-01T00:00:00Z"</code>.
/// </para>
/// </summary>
public DateTime EndTimeUtc
{
get { return this._endTimeUtc.GetValueOrDefault(); }
set { this._endTime = this._endTimeUtc = value; }
}
// Check to see if EndTimeUtc property is set
internal bool IsSetEndTimeUtc()
{
return this._endTimeUtc.HasValue;
}
/// <summary>
/// Gets and sets the property MaxSize.
/// <para>
/// The maximum size of the Auto Scaling group.
/// </para>
/// </summary>
public int MaxSize
{
get { return this._maxSize.GetValueOrDefault(); }
set { this._maxSize = value; }
}
// Check to see if MaxSize property is set
internal bool IsSetMaxSize()
{
return this._maxSize.HasValue;
}
/// <summary>
/// Gets and sets the property MinSize.
/// <para>
/// The minimum size of the Auto Scaling group.
/// </para>
/// </summary>
public int MinSize
{
get { return this._minSize.GetValueOrDefault(); }
set { this._minSize = value; }
}
// Check to see if MinSize property is set
internal bool IsSetMinSize()
{
return this._minSize.HasValue;
}
/// <summary>
/// Gets and sets the property Recurrence.
/// <para>
/// The recurring schedule for this action. This format consists of five fields separated
/// by white spaces: [Minute] [Hour] [Day_of_Month] [Month_of_Year] [Day_of_Week]. The
/// value must be in quotes (for example, <code>"30 0 1 1,6,12 *"</code>). For more information
/// about this format, see <a href="http://crontab.org">Crontab</a>.
/// </para>
///
/// <para>
/// When <code>StartTime</code> and <code>EndTime</code> are specified with <code>Recurrence</code>,
/// they form the boundaries of when the recurring action starts and stops.
/// </para>
///
/// <para>
/// Cron expressions use Universal Coordinated Time (UTC) by default.
/// </para>
/// </summary>
[AWSProperty(Min=1, Max=255)]
public string Recurrence
{
get { return this._recurrence; }
set { this._recurrence = value; }
}
// Check to see if Recurrence property is set
internal bool IsSetRecurrence()
{
return this._recurrence != null;
}
/// <summary>
/// Gets and sets the property ScheduledActionName.
/// <para>
/// The name of this scaling action.
/// </para>
/// </summary>
[AWSProperty(Required=true, Min=1, Max=255)]
public string ScheduledActionName
{
get { return this._scheduledActionName; }
set { this._scheduledActionName = value; }
}
// Check to see if ScheduledActionName property is set
internal bool IsSetScheduledActionName()
{
return this._scheduledActionName != null;
}
/// <summary>
/// Gets and sets the property StartTimeUtc.
/// <para>
/// The date and time for this action to start, in YYYY-MM-DDThh:mm:ssZ format in UTC/GMT
/// only and in quotes (for example, <code>"2021-06-01T00:00:00Z"</code>).
/// </para>
///
/// <para>
/// If you specify <code>Recurrence</code> and <code>StartTime</code>, Amazon EC2 Auto
/// Scaling performs the action at this time, and then performs the action based on the
/// specified recurrence.
/// </para>
/// </summary>
public DateTime StartTimeUtc
{
get { return this._startTimeUtc.GetValueOrDefault(); }
set { this._startTime = this._startTimeUtc = value; }
}
// Check to see if StartTimeUtc property is set
internal bool IsSetStartTimeUtc()
{
return this._startTimeUtc.HasValue;
}
/// <summary>
/// Gets and sets the property TimeUtc.
/// <para>
/// This property is no longer used.
/// </para>
/// </summary>
public DateTime TimeUtc
{
get { return this._timeUtc.GetValueOrDefault(); }
set { this._time = this._timeUtc = value; }
}
// Check to see if TimeUtc property is set
internal bool IsSetTimeUtc()
{
return this._timeUtc.HasValue;
}
/// <summary>
/// Gets and sets the property TimeZone.
/// <para>
/// Specifies the time zone for a cron expression. If a time zone is not provided, UTC
/// is used by default.
/// </para>
///
/// <para>
/// Valid values are the canonical names of the IANA time zones, derived from the IANA
/// Time Zone Database (such as <code>Etc/GMT+9</code> or <code>Pacific/Tahiti</code>).
/// For more information, see <a href="https://en.wikipedia.org/wiki/List_of_tz_database_time_zones">https://en.wikipedia.org/wiki/List_of_tz_database_time_zones</a>.
/// </para>
/// </summary>
[AWSProperty(Min=1, Max=255)]
public string TimeZone
{
get { return this._timeZone; }
set { this._timeZone = value; }
}
// Check to see if TimeZone property is set
internal bool IsSetTimeZone()
{
return this._timeZone != null;
}
#region Backwards compatible properties
private DateTime? _endTime;
private DateTime? _startTime;
private DateTime? _time;
/// <summary>
/// Gets and sets the property EndTimeUtc.
/// <para>
/// This property is deprecated. Setting this property results in non-UTC DateTimes not
/// being marshalled correctly. Use EndTimeUtc instead. Setting either EndTime or EndTimeUtc
/// results in both EndTime and EndTimeUtc being assigned, the latest assignment to either
/// one of the two property is reflected in the value of both. EndTime is provided for
/// backwards compatibility only and assigning a non-Utc DateTime to it results in the
/// wrong timestamp being passed to the service.
/// </para>
///
/// <para>
/// The date and time for the recurring schedule to end, in UTC. For example, <code>"2021-06-01T00:00:00Z"</code>.
/// </para>
/// </summary>
[Obsolete("Setting this property results in non-UTC DateTimes not being marshalled correctly. " +
"Use EndTimeUtc instead. Setting either EndTime or EndTimeUtc results in both EndTime and " +
"EndTimeUtc being assigned, the latest assignment to either one of the two property is " +
"reflected in the value of both. EndTime is provided for backwards compatibility only and " +
"assigning a non-Utc DateTime to it results in the wrong timestamp being passed to the service.", false)]
public DateTime EndTime
{
get { return this._endTime.GetValueOrDefault(); }
set
{
this._endTime = value;
this._endTimeUtc = new DateTime(value.Ticks, DateTimeKind.Utc);
}
}
/// <summary>
/// Gets and sets the property StartTimeUtc.
/// <para>
/// This property is deprecated. Setting this property results in non-UTC DateTimes not
/// being marshalled correctly. Use StartTimeUtc instead. Setting either StartTime or
/// StartTimeUtc results in both StartTime and StartTimeUtc being assigned, the latest
/// assignment to either one of the two property is reflected in the value of both. StartTime
/// is provided for backwards compatibility only and assigning a non-Utc DateTime to it
/// results in the wrong timestamp being passed to the service.
/// </para>
///
/// <para>
/// The date and time for this action to start, in YYYY-MM-DDThh:mm:ssZ format in UTC/GMT
/// only and in quotes (for example, <code>"2021-06-01T00:00:00Z"</code>).
/// </para>
///
/// <para>
/// If you specify <code>Recurrence</code> and <code>StartTime</code>, Amazon EC2 Auto
/// Scaling performs the action at this time, and then performs the action based on the
/// specified recurrence.
/// </para>
/// </summary>
[Obsolete("Setting this property results in non-UTC DateTimes not being marshalled correctly. " +
"Use StartTimeUtc instead. Setting either StartTime or StartTimeUtc results in both StartTime and " +
"StartTimeUtc being assigned, the latest assignment to either one of the two property is " +
"reflected in the value of both. StartTime is provided for backwards compatibility only and " +
"assigning a non-Utc DateTime to it results in the wrong timestamp being passed to the service.", false)]
public DateTime StartTime
{
get { return this._startTime.GetValueOrDefault(); }
set
{
this._startTime = value;
this._startTimeUtc = new DateTime(value.Ticks, DateTimeKind.Utc);
}
}
/// <summary>
/// Gets and sets the property TimeUtc.
/// <para>
/// This property is deprecated. Setting this property results in non-UTC DateTimes not
/// being marshalled correctly. Use TimeUtc instead. Setting either Time or TimeUtc results
/// in both Time and TimeUtc being assigned, the latest assignment to either one of the
/// two property is reflected in the value of both. Time is provided for backwards compatibility
/// only and assigning a non-Utc DateTime to it results in the wrong timestamp being passed
/// to the service.
/// </para>
///
/// <para>
/// This property is no longer used.
/// </para>
/// </summary>
[Obsolete("Setting this property results in non-UTC DateTimes not being marshalled correctly. " +
"Use TimeUtc instead. Setting either Time or TimeUtc results in both Time and " +
"TimeUtc being assigned, the latest assignment to either one of the two property is " +
"reflected in the value of both. Time is provided for backwards compatibility only and " +
"assigning a non-Utc DateTime to it results in the wrong timestamp being passed to the service.", false)]
public DateTime Time
{
get { return this._time.GetValueOrDefault(); }
set
{
this._time = value;
this._timeUtc = new DateTime(value.Ticks, DateTimeKind.Utc);
}
}
#endregion
}
}
| 384 |
aws-sdk-net
|
aws
|
C#
|
/*
* 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 autoscaling-2011-01-01.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.AutoScaling.Model
{
/// <summary>
/// This is the response object from the PutScheduledUpdateGroupAction operation.
/// </summary>
public partial class PutScheduledUpdateGroupActionResponse : AmazonWebServiceResponse
{
}
}
| 38 |
aws-sdk-net
|
aws
|
C#
|
/*
* 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 autoscaling-2011-01-01.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.AutoScaling.Model
{
/// <summary>
/// Container for the parameters to the PutWarmPool operation.
/// Creates or updates a warm pool for the specified Auto Scaling group. A warm pool is
/// a pool of pre-initialized EC2 instances that sits alongside the Auto Scaling group.
/// Whenever your application needs to scale out, the Auto Scaling group can draw on the
/// warm pool to meet its new desired capacity. For more information and example configurations,
/// see <a href="https://docs.aws.amazon.com/autoscaling/ec2/userguide/ec2-auto-scaling-warm-pools.html">Warm
/// pools for Amazon EC2 Auto Scaling</a> in the <i>Amazon EC2 Auto Scaling User Guide</i>.
///
///
/// <para>
/// This operation must be called from the Region in which the Auto Scaling group was
/// created. This operation cannot be called on an Auto Scaling group that has a mixed
/// instances policy or a launch template or launch configuration that requests Spot Instances.
/// </para>
///
/// <para>
/// You can view the instances in the warm pool using the <a>DescribeWarmPool</a> API
/// call. If you are no longer using a warm pool, you can delete it by calling the <a>DeleteWarmPool</a>
/// API.
/// </para>
/// </summary>
public partial class PutWarmPoolRequest : AmazonAutoScalingRequest
{
private string _autoScalingGroupName;
private InstanceReusePolicy _instanceReusePolicy;
private int? _maxGroupPreparedCapacity;
private int? _minSize;
private WarmPoolState _poolState;
/// <summary>
/// Gets and sets the property AutoScalingGroupName.
/// <para>
/// The name of the Auto Scaling group.
/// </para>
/// </summary>
[AWSProperty(Required=true, Min=1, Max=255)]
public string AutoScalingGroupName
{
get { return this._autoScalingGroupName; }
set { this._autoScalingGroupName = value; }
}
// Check to see if AutoScalingGroupName property is set
internal bool IsSetAutoScalingGroupName()
{
return this._autoScalingGroupName != null;
}
/// <summary>
/// Gets and sets the property InstanceReusePolicy.
/// <para>
/// Indicates whether instances in the Auto Scaling group can be returned to the warm
/// pool on scale in. The default is to terminate instances in the Auto Scaling group
/// when the group scales in.
/// </para>
/// </summary>
public InstanceReusePolicy InstanceReusePolicy
{
get { return this._instanceReusePolicy; }
set { this._instanceReusePolicy = value; }
}
// Check to see if InstanceReusePolicy property is set
internal bool IsSetInstanceReusePolicy()
{
return this._instanceReusePolicy != null;
}
/// <summary>
/// Gets and sets the property MaxGroupPreparedCapacity.
/// <para>
/// Specifies the maximum number of instances that are allowed to be in the warm pool
/// or in any state except <code>Terminated</code> for the Auto Scaling group. This is
/// an optional property. Specify it only if you do not want the warm pool size to be
/// determined by the difference between the group's maximum capacity and its desired
/// capacity.
/// </para>
/// <important>
/// <para>
/// If a value for <code>MaxGroupPreparedCapacity</code> is not specified, Amazon EC2
/// Auto Scaling launches and maintains the difference between the group's maximum capacity
/// and its desired capacity. If you specify a value for <code>MaxGroupPreparedCapacity</code>,
/// Amazon EC2 Auto Scaling uses the difference between the <code>MaxGroupPreparedCapacity</code>
/// and the desired capacity instead.
/// </para>
///
/// <para>
/// The size of the warm pool is dynamic. Only when <code>MaxGroupPreparedCapacity</code>
/// and <code>MinSize</code> are set to the same value does the warm pool have an absolute
/// size.
/// </para>
/// </important>
/// <para>
/// If the desired capacity of the Auto Scaling group is higher than the <code>MaxGroupPreparedCapacity</code>,
/// the capacity of the warm pool is 0, unless you specify a value for <code>MinSize</code>.
/// To remove a value that you previously set, include the property but specify -1 for
/// the value.
/// </para>
/// </summary>
[AWSProperty(Min=-1)]
public int MaxGroupPreparedCapacity
{
get { return this._maxGroupPreparedCapacity.GetValueOrDefault(); }
set { this._maxGroupPreparedCapacity = value; }
}
// Check to see if MaxGroupPreparedCapacity property is set
internal bool IsSetMaxGroupPreparedCapacity()
{
return this._maxGroupPreparedCapacity.HasValue;
}
/// <summary>
/// Gets and sets the property MinSize.
/// <para>
/// Specifies the minimum number of instances to maintain in the warm pool. This helps
/// you to ensure that there is always a certain number of warmed instances available
/// to handle traffic spikes. Defaults to 0 if not specified.
/// </para>
/// </summary>
[AWSProperty(Min=0)]
public int MinSize
{
get { return this._minSize.GetValueOrDefault(); }
set { this._minSize = value; }
}
// Check to see if MinSize property is set
internal bool IsSetMinSize()
{
return this._minSize.HasValue;
}
/// <summary>
/// Gets and sets the property PoolState.
/// <para>
/// Sets the instance state to transition to after the lifecycle actions are complete.
/// Default is <code>Stopped</code>.
/// </para>
/// </summary>
public WarmPoolState PoolState
{
get { return this._poolState; }
set { this._poolState = value; }
}
// Check to see if PoolState property is set
internal bool IsSetPoolState()
{
return this._poolState != null;
}
}
}
| 185 |
aws-sdk-net
|
aws
|
C#
|
/*
* 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 autoscaling-2011-01-01.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.AutoScaling.Model
{
/// <summary>
/// This is the response object from the PutWarmPool operation.
/// </summary>
public partial class PutWarmPoolResponse : AmazonWebServiceResponse
{
}
}
| 38 |
aws-sdk-net
|
aws
|
C#
|
/*
* 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 autoscaling-2011-01-01.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.AutoScaling.Model
{
/// <summary>
/// Container for the parameters to the RecordLifecycleActionHeartbeat operation.
/// Records a heartbeat for the lifecycle action associated with the specified token or
/// instance. This extends the timeout by the length of time defined using the <a>PutLifecycleHook</a>
/// API call.
///
///
/// <para>
/// This step is a part of the procedure for adding a lifecycle hook to an Auto Scaling
/// group:
/// </para>
/// <ol> <li>
/// <para>
/// (Optional) Create a launch template or launch configuration with a user data script
/// that runs while an instance is in a wait state due to a lifecycle hook.
/// </para>
/// </li> <li>
/// <para>
/// (Optional) Create a Lambda function and a rule that allows Amazon EventBridge to invoke
/// your Lambda function when an instance is put into a wait state due to a lifecycle
/// hook.
/// </para>
/// </li> <li>
/// <para>
/// (Optional) Create a notification target and an IAM role. The target can be either
/// an Amazon SQS queue or an Amazon SNS topic. The role allows Amazon EC2 Auto Scaling
/// to publish lifecycle notifications to the target.
/// </para>
/// </li> <li>
/// <para>
/// Create the lifecycle hook. Specify whether the hook is used when the instances launch
/// or terminate.
/// </para>
/// </li> <li>
/// <para>
/// <b>If you need more time, record the lifecycle action heartbeat to keep the instance
/// in a wait state.</b>
/// </para>
/// </li> <li>
/// <para>
/// If you finish before the timeout period ends, send a callback by using the <a>CompleteLifecycleAction</a>
/// API call.
/// </para>
/// </li> </ol>
/// <para>
/// For more information, see <a href="https://docs.aws.amazon.com/autoscaling/ec2/userguide/lifecycle-hooks.html">Amazon
/// EC2 Auto Scaling lifecycle hooks</a> in the <i>Amazon EC2 Auto Scaling User Guide</i>.
/// </para>
/// </summary>
public partial class RecordLifecycleActionHeartbeatRequest : AmazonAutoScalingRequest
{
private string _autoScalingGroupName;
private string _instanceId;
private string _lifecycleActionToken;
private string _lifecycleHookName;
/// <summary>
/// Gets and sets the property AutoScalingGroupName.
/// <para>
/// The name of the Auto Scaling group.
/// </para>
/// </summary>
[AWSProperty(Required=true, Min=1, Max=1600)]
public string AutoScalingGroupName
{
get { return this._autoScalingGroupName; }
set { this._autoScalingGroupName = value; }
}
// Check to see if AutoScalingGroupName property is set
internal bool IsSetAutoScalingGroupName()
{
return this._autoScalingGroupName != null;
}
/// <summary>
/// Gets and sets the property InstanceId.
/// <para>
/// The ID of the instance.
/// </para>
/// </summary>
[AWSProperty(Min=1, Max=19)]
public string InstanceId
{
get { return this._instanceId; }
set { this._instanceId = value; }
}
// Check to see if InstanceId property is set
internal bool IsSetInstanceId()
{
return this._instanceId != null;
}
/// <summary>
/// Gets and sets the property LifecycleActionToken.
/// <para>
/// A token that uniquely identifies a specific lifecycle action associated with an instance.
/// Amazon EC2 Auto Scaling sends this token to the notification target that you specified
/// when you created the lifecycle hook.
/// </para>
/// </summary>
[AWSProperty(Min=36, Max=36)]
public string LifecycleActionToken
{
get { return this._lifecycleActionToken; }
set { this._lifecycleActionToken = value; }
}
// Check to see if LifecycleActionToken property is set
internal bool IsSetLifecycleActionToken()
{
return this._lifecycleActionToken != null;
}
/// <summary>
/// Gets and sets the property LifecycleHookName.
/// <para>
/// The name of the lifecycle hook.
/// </para>
/// </summary>
[AWSProperty(Required=true, Min=1, Max=255)]
public string LifecycleHookName
{
get { return this._lifecycleHookName; }
set { this._lifecycleHookName = value; }
}
// Check to see if LifecycleHookName property is set
internal bool IsSetLifecycleHookName()
{
return this._lifecycleHookName != null;
}
}
}
| 166 |
aws-sdk-net
|
aws
|
C#
|
/*
* 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 autoscaling-2011-01-01.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.AutoScaling.Model
{
/// <summary>
/// This is the response object from the RecordLifecycleActionHeartbeat operation.
/// </summary>
public partial class RecordLifecycleActionHeartbeatResponse : AmazonWebServiceResponse
{
}
}
| 38 |
aws-sdk-net
|
aws
|
C#
|
/*
* 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 autoscaling-2011-01-01.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.AutoScaling.Model
{
/// <summary>
/// Describes the preferences for an instance refresh.
/// </summary>
public partial class RefreshPreferences
{
private bool? _autoRollback;
private int? _checkpointDelay;
private List<int> _checkpointPercentages = new List<int>();
private int? _instanceWarmup;
private int? _minHealthyPercentage;
private ScaleInProtectedInstances _scaleInProtectedInstances;
private bool? _skipMatching;
private StandbyInstances _standbyInstances;
/// <summary>
/// Gets and sets the property AutoRollback.
/// <para>
/// (Optional) Indicates whether to roll back the Auto Scaling group to its previous configuration
/// if the instance refresh fails. The default is <code>false</code>.
/// </para>
///
/// <para>
/// A rollback is not supported in the following situations:
/// </para>
/// <ul> <li>
/// <para>
/// There is no desired configuration specified for the instance refresh.
/// </para>
/// </li> <li>
/// <para>
/// The Auto Scaling group has a launch template that uses an Amazon Web Services Systems
/// Manager parameter instead of an AMI ID for the <code>ImageId</code> property.
/// </para>
/// </li> <li>
/// <para>
/// The Auto Scaling group uses the launch template's <code>$Latest</code> or <code>$Default</code>
/// version.
/// </para>
/// </li> </ul>
/// </summary>
public bool AutoRollback
{
get { return this._autoRollback.GetValueOrDefault(); }
set { this._autoRollback = value; }
}
// Check to see if AutoRollback property is set
internal bool IsSetAutoRollback()
{
return this._autoRollback.HasValue;
}
/// <summary>
/// Gets and sets the property CheckpointDelay.
/// <para>
/// (Optional) The amount of time, in seconds, to wait after a checkpoint before continuing.
/// This property is optional, but if you specify a value for it, you must also specify
/// a value for <code>CheckpointPercentages</code>. If you specify a value for <code>CheckpointPercentages</code>
/// and not for <code>CheckpointDelay</code>, the <code>CheckpointDelay</code> defaults
/// to <code>3600</code> (1 hour).
/// </para>
/// </summary>
[AWSProperty(Min=0, Max=172800)]
public int CheckpointDelay
{
get { return this._checkpointDelay.GetValueOrDefault(); }
set { this._checkpointDelay = value; }
}
// Check to see if CheckpointDelay property is set
internal bool IsSetCheckpointDelay()
{
return this._checkpointDelay.HasValue;
}
/// <summary>
/// Gets and sets the property CheckpointPercentages.
/// <para>
/// (Optional) Threshold values for each checkpoint in ascending order. Each number must
/// be unique. To replace all instances in the Auto Scaling group, the last number in
/// the array must be <code>100</code>.
/// </para>
///
/// <para>
/// For usage examples, see <a href="https://docs.aws.amazon.com/autoscaling/ec2/userguide/asg-adding-checkpoints-instance-refresh.html">Adding
/// checkpoints to an instance refresh</a> in the <i>Amazon EC2 Auto Scaling User Guide</i>.
/// </para>
/// </summary>
public List<int> CheckpointPercentages
{
get { return this._checkpointPercentages; }
set { this._checkpointPercentages = value; }
}
// Check to see if CheckpointPercentages property is set
internal bool IsSetCheckpointPercentages()
{
return this._checkpointPercentages != null && this._checkpointPercentages.Count > 0;
}
/// <summary>
/// Gets and sets the property InstanceWarmup.
/// <para>
/// A time period, in seconds, during which an instance refresh waits before moving on
/// to replacing the next instance after a new instance enters the <code>InService</code>
/// state.
/// </para>
///
/// <para>
/// This property is not required for normal usage. Instead, use the <code>DefaultInstanceWarmup</code>
/// property of the Auto Scaling group. The <code>InstanceWarmup</code> and <code>DefaultInstanceWarmup</code>
/// properties work the same way. Only specify this property if you must override the
/// <code>DefaultInstanceWarmup</code> property.
/// </para>
///
/// <para>
/// If you do not specify this property, the instance warmup by default is the value
/// of the <code>DefaultInstanceWarmup</code> property, if defined (which is recommended
/// in all cases), or the <code>HealthCheckGracePeriod</code> property otherwise.
/// </para>
/// </summary>
[AWSProperty(Min=0)]
public int InstanceWarmup
{
get { return this._instanceWarmup.GetValueOrDefault(); }
set { this._instanceWarmup = value; }
}
// Check to see if InstanceWarmup property is set
internal bool IsSetInstanceWarmup()
{
return this._instanceWarmup.HasValue;
}
/// <summary>
/// Gets and sets the property MinHealthyPercentage.
/// <para>
/// The amount of capacity in the Auto Scaling group that must pass your group's health
/// checks to allow the operation to continue. The value is expressed as a percentage
/// of the desired capacity of the Auto Scaling group (rounded up to the nearest integer).
/// The default is <code>90</code>.
/// </para>
///
/// <para>
/// Setting the minimum healthy percentage to 100 percent limits the rate of replacement
/// to one instance at a time. In contrast, setting it to 0 percent has the effect of
/// replacing all instances at the same time.
/// </para>
/// </summary>
[AWSProperty(Min=0, Max=100)]
public int MinHealthyPercentage
{
get { return this._minHealthyPercentage.GetValueOrDefault(); }
set { this._minHealthyPercentage = value; }
}
// Check to see if MinHealthyPercentage property is set
internal bool IsSetMinHealthyPercentage()
{
return this._minHealthyPercentage.HasValue;
}
/// <summary>
/// Gets and sets the property ScaleInProtectedInstances.
/// <para>
/// Choose the behavior that you want Amazon EC2 Auto Scaling to use if instances protected
/// from scale in are found.
/// </para>
///
/// <para>
/// The following lists the valid values:
/// </para>
/// <dl> <dt>Refresh</dt> <dd>
/// <para>
/// Amazon EC2 Auto Scaling replaces instances that are protected from scale in.
/// </para>
/// </dd> <dt>Ignore</dt> <dd>
/// <para>
/// Amazon EC2 Auto Scaling ignores instances that are protected from scale in and continues
/// to replace instances that are not protected.
/// </para>
/// </dd> <dt>Wait (default)</dt> <dd>
/// <para>
/// Amazon EC2 Auto Scaling waits one hour for you to remove scale-in protection. Otherwise,
/// the instance refresh will fail.
/// </para>
/// </dd> </dl>
/// </summary>
public ScaleInProtectedInstances ScaleInProtectedInstances
{
get { return this._scaleInProtectedInstances; }
set { this._scaleInProtectedInstances = value; }
}
// Check to see if ScaleInProtectedInstances property is set
internal bool IsSetScaleInProtectedInstances()
{
return this._scaleInProtectedInstances != null;
}
/// <summary>
/// Gets and sets the property SkipMatching.
/// <para>
/// (Optional) Indicates whether skip matching is enabled. If enabled (<code>true</code>),
/// then Amazon EC2 Auto Scaling skips replacing instances that match the desired configuration.
/// If no desired configuration is specified, then it skips replacing instances that have
/// the same launch template and instance types that the Auto Scaling group was using
/// before the start of the instance refresh. The default is <code>false</code>.
/// </para>
///
/// <para>
/// For more information, see <a href="https://docs.aws.amazon.com/autoscaling/ec2/userguide/asg-instance-refresh-skip-matching.html">Use
/// an instance refresh with skip matching</a> in the <i>Amazon EC2 Auto Scaling User
/// Guide</i>.
/// </para>
/// </summary>
public bool SkipMatching
{
get { return this._skipMatching.GetValueOrDefault(); }
set { this._skipMatching = value; }
}
// Check to see if SkipMatching property is set
internal bool IsSetSkipMatching()
{
return this._skipMatching.HasValue;
}
/// <summary>
/// Gets and sets the property StandbyInstances.
/// <para>
/// Choose the behavior that you want Amazon EC2 Auto Scaling to use if instances in <code>Standby</code>
/// state are found.
/// </para>
///
/// <para>
/// The following lists the valid values:
/// </para>
/// <dl> <dt>Terminate</dt> <dd>
/// <para>
/// Amazon EC2 Auto Scaling terminates instances that are in <code>Standby</code>.
/// </para>
/// </dd> <dt>Ignore</dt> <dd>
/// <para>
/// Amazon EC2 Auto Scaling ignores instances that are in <code>Standby</code> and continues
/// to replace instances that are in the <code>InService</code> state.
/// </para>
/// </dd> <dt>Wait (default)</dt> <dd>
/// <para>
/// Amazon EC2 Auto Scaling waits one hour for you to return the instances to service.
/// Otherwise, the instance refresh will fail.
/// </para>
/// </dd> </dl>
/// </summary>
public StandbyInstances StandbyInstances
{
get { return this._standbyInstances; }
set { this._standbyInstances = value; }
}
// Check to see if StandbyInstances property is set
internal bool IsSetStandbyInstances()
{
return this._standbyInstances != null;
}
}
}
| 298 |
aws-sdk-net
|
aws
|
C#
|
/*
* 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 autoscaling-2011-01-01.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.AutoScaling.Model
{
/// <summary>
/// You already have a pending update to an Amazon EC2 Auto Scaling resource (for example,
/// an Auto Scaling group, instance, or load balancer).
/// </summary>
#if !NETSTANDARD
[Serializable]
#endif
public partial class ResourceContentionException : AmazonAutoScalingException
{
/// <summary>
/// Constructs a new ResourceContentionException with the specified error
/// message.
/// </summary>
/// <param name="message">
/// Describes the error encountered.
/// </param>
public ResourceContentionException(string message)
: base(message) {}
/// <summary>
/// Construct instance of ResourceContentionException
/// </summary>
/// <param name="message"></param>
/// <param name="innerException"></param>
public ResourceContentionException(string message, Exception innerException)
: base(message, innerException) {}
/// <summary>
/// Construct instance of ResourceContentionException
/// </summary>
/// <param name="innerException"></param>
public ResourceContentionException(Exception innerException)
: base(innerException) {}
/// <summary>
/// Construct instance of ResourceContentionException
/// </summary>
/// <param name="message"></param>
/// <param name="innerException"></param>
/// <param name="errorType"></param>
/// <param name="errorCode"></param>
/// <param name="requestId"></param>
/// <param name="statusCode"></param>
public ResourceContentionException(string message, Exception innerException, ErrorType errorType, string errorCode, string requestId, HttpStatusCode statusCode)
: base(message, innerException, errorType, errorCode, requestId, statusCode) {}
/// <summary>
/// Construct instance of ResourceContentionException
/// </summary>
/// <param name="message"></param>
/// <param name="errorType"></param>
/// <param name="errorCode"></param>
/// <param name="requestId"></param>
/// <param name="statusCode"></param>
public ResourceContentionException(string message, ErrorType errorType, string errorCode, string requestId, HttpStatusCode statusCode)
: base(message, errorType, errorCode, requestId, statusCode) {}
#if !NETSTANDARD
/// <summary>
/// Constructs a new instance of the ResourceContentionException class with serialized data.
/// </summary>
/// <param name="info">The <see cref="T:System.Runtime.Serialization.SerializationInfo" /> that holds the serialized object data about the exception being thrown.</param>
/// <param name="context">The <see cref="T:System.Runtime.Serialization.StreamingContext" /> that contains contextual information about the source or destination.</param>
/// <exception cref="T:System.ArgumentNullException">The <paramref name="info" /> parameter is null. </exception>
/// <exception cref="T:System.Runtime.Serialization.SerializationException">The class name is null or <see cref="P:System.Exception.HResult" /> is zero (0). </exception>
protected ResourceContentionException(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context)
: base(info, context)
{
}
/// <summary>
/// Sets the <see cref="T:System.Runtime.Serialization.SerializationInfo" /> with information about the exception.
/// </summary>
/// <param name="info">The <see cref="T:System.Runtime.Serialization.SerializationInfo" /> that holds the serialized object data about the exception being thrown.</param>
/// <param name="context">The <see cref="T:System.Runtime.Serialization.StreamingContext" /> that contains contextual information about the source or destination.</param>
/// <exception cref="T:System.ArgumentNullException">The <paramref name="info" /> parameter is a null reference (Nothing in Visual Basic). </exception>
#if BCL35
[System.Security.Permissions.SecurityPermission(
System.Security.Permissions.SecurityAction.LinkDemand,
Flags = System.Security.Permissions.SecurityPermissionFlag.SerializationFormatter)]
#endif
[System.Security.SecurityCritical]
// These FxCop rules are giving false-positives for this method
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Security", "CA2123:OverrideLinkDemandsShouldBeIdenticalToBase")]
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Security", "CA2134:MethodsMustOverrideWithConsistentTransparencyFxCopRule")]
public override void GetObjectData(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context)
{
base.GetObjectData(info, context);
}
#endif
}
}
| 125 |
aws-sdk-net
|
aws
|
C#
|
/*
* 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 autoscaling-2011-01-01.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.AutoScaling.Model
{
/// <summary>
/// The operation can't be performed because the resource is in use.
/// </summary>
#if !NETSTANDARD
[Serializable]
#endif
public partial class ResourceInUseException : AmazonAutoScalingException
{
/// <summary>
/// Constructs a new ResourceInUseException with the specified error
/// message.
/// </summary>
/// <param name="message">
/// Describes the error encountered.
/// </param>
public ResourceInUseException(string message)
: base(message) {}
/// <summary>
/// Construct instance of ResourceInUseException
/// </summary>
/// <param name="message"></param>
/// <param name="innerException"></param>
public ResourceInUseException(string message, Exception innerException)
: base(message, innerException) {}
/// <summary>
/// Construct instance of ResourceInUseException
/// </summary>
/// <param name="innerException"></param>
public ResourceInUseException(Exception innerException)
: base(innerException) {}
/// <summary>
/// Construct instance of ResourceInUseException
/// </summary>
/// <param name="message"></param>
/// <param name="innerException"></param>
/// <param name="errorType"></param>
/// <param name="errorCode"></param>
/// <param name="requestId"></param>
/// <param name="statusCode"></param>
public ResourceInUseException(string message, Exception innerException, ErrorType errorType, string errorCode, string requestId, HttpStatusCode statusCode)
: base(message, innerException, errorType, errorCode, requestId, statusCode) {}
/// <summary>
/// Construct instance of ResourceInUseException
/// </summary>
/// <param name="message"></param>
/// <param name="errorType"></param>
/// <param name="errorCode"></param>
/// <param name="requestId"></param>
/// <param name="statusCode"></param>
public ResourceInUseException(string message, ErrorType errorType, string errorCode, string requestId, HttpStatusCode statusCode)
: base(message, errorType, errorCode, requestId, statusCode) {}
#if !NETSTANDARD
/// <summary>
/// Constructs a new instance of the ResourceInUseException class with serialized data.
/// </summary>
/// <param name="info">The <see cref="T:System.Runtime.Serialization.SerializationInfo" /> that holds the serialized object data about the exception being thrown.</param>
/// <param name="context">The <see cref="T:System.Runtime.Serialization.StreamingContext" /> that contains contextual information about the source or destination.</param>
/// <exception cref="T:System.ArgumentNullException">The <paramref name="info" /> parameter is null. </exception>
/// <exception cref="T:System.Runtime.Serialization.SerializationException">The class name is null or <see cref="P:System.Exception.HResult" /> is zero (0). </exception>
protected ResourceInUseException(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context)
: base(info, context)
{
}
/// <summary>
/// Sets the <see cref="T:System.Runtime.Serialization.SerializationInfo" /> with information about the exception.
/// </summary>
/// <param name="info">The <see cref="T:System.Runtime.Serialization.SerializationInfo" /> that holds the serialized object data about the exception being thrown.</param>
/// <param name="context">The <see cref="T:System.Runtime.Serialization.StreamingContext" /> that contains contextual information about the source or destination.</param>
/// <exception cref="T:System.ArgumentNullException">The <paramref name="info" /> parameter is a null reference (Nothing in Visual Basic). </exception>
#if BCL35
[System.Security.Permissions.SecurityPermission(
System.Security.Permissions.SecurityAction.LinkDemand,
Flags = System.Security.Permissions.SecurityPermissionFlag.SerializationFormatter)]
#endif
[System.Security.SecurityCritical]
// These FxCop rules are giving false-positives for this method
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Security", "CA2123:OverrideLinkDemandsShouldBeIdenticalToBase")]
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Security", "CA2134:MethodsMustOverrideWithConsistentTransparencyFxCopRule")]
public override void GetObjectData(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context)
{
base.GetObjectData(info, context);
}
#endif
}
}
| 124 |
aws-sdk-net
|
aws
|
C#
|
/*
* 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 autoscaling-2011-01-01.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.AutoScaling.Model
{
/// <summary>
/// Container for the parameters to the ResumeProcesses operation.
/// Resumes the specified suspended auto scaling processes, or all suspended process,
/// for the specified Auto Scaling group.
///
///
/// <para>
/// For more information, see <a href="https://docs.aws.amazon.com/autoscaling/ec2/userguide/as-suspend-resume-processes.html">Suspending
/// and resuming scaling processes</a> in the <i>Amazon EC2 Auto Scaling User Guide</i>.
/// </para>
/// </summary>
public partial class ResumeProcessesRequest : AmazonAutoScalingRequest
{
private string _autoScalingGroupName;
private List<string> _scalingProcesses = new List<string>();
/// <summary>
/// Gets and sets the property AutoScalingGroupName.
/// <para>
/// The name of the Auto Scaling group.
/// </para>
/// </summary>
[AWSProperty(Required=true, Min=1, Max=255)]
public string AutoScalingGroupName
{
get { return this._autoScalingGroupName; }
set { this._autoScalingGroupName = value; }
}
// Check to see if AutoScalingGroupName property is set
internal bool IsSetAutoScalingGroupName()
{
return this._autoScalingGroupName != null;
}
/// <summary>
/// Gets and sets the property ScalingProcesses.
/// <para>
/// One or more of the following processes:
/// </para>
/// <ul> <li>
/// <para>
/// <code>Launch</code>
/// </para>
/// </li> <li>
/// <para>
/// <code>Terminate</code>
/// </para>
/// </li> <li>
/// <para>
/// <code>AddToLoadBalancer</code>
/// </para>
/// </li> <li>
/// <para>
/// <code>AlarmNotification</code>
/// </para>
/// </li> <li>
/// <para>
/// <code>AZRebalance</code>
/// </para>
/// </li> <li>
/// <para>
/// <code>HealthCheck</code>
/// </para>
/// </li> <li>
/// <para>
/// <code>InstanceRefresh</code>
/// </para>
/// </li> <li>
/// <para>
/// <code>ReplaceUnhealthy</code>
/// </para>
/// </li> <li>
/// <para>
/// <code>ScheduledActions</code>
/// </para>
/// </li> </ul>
/// <para>
/// If you omit this property, all processes are specified.
/// </para>
/// </summary>
public List<string> ScalingProcesses
{
get { return this._scalingProcesses; }
set { this._scalingProcesses = value; }
}
// Check to see if ScalingProcesses property is set
internal bool IsSetScalingProcesses()
{
return this._scalingProcesses != null && this._scalingProcesses.Count > 0;
}
}
}
| 125 |
aws-sdk-net
|
aws
|
C#
|
/*
* 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 autoscaling-2011-01-01.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.AutoScaling.Model
{
/// <summary>
/// This is the response object from the ResumeProcesses operation.
/// </summary>
public partial class ResumeProcessesResponse : AmazonWebServiceResponse
{
}
}
| 38 |
aws-sdk-net
|
aws
|
C#
|
/*
* 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 autoscaling-2011-01-01.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.AutoScaling.Model
{
/// <summary>
/// Details about an instance refresh rollback.
/// </summary>
public partial class RollbackDetails
{
private int? _instancesToUpdateOnRollback;
private int? _percentageCompleteOnRollback;
private InstanceRefreshProgressDetails _progressDetailsOnRollback;
private string _rollbackReason;
private DateTime? _rollbackStartTime;
/// <summary>
/// Gets and sets the property InstancesToUpdateOnRollback.
/// <para>
/// Indicates the value of <code>InstancesToUpdate</code> at the time the rollback started.
/// </para>
/// </summary>
[AWSProperty(Min=0)]
public int InstancesToUpdateOnRollback
{
get { return this._instancesToUpdateOnRollback.GetValueOrDefault(); }
set { this._instancesToUpdateOnRollback = value; }
}
// Check to see if InstancesToUpdateOnRollback property is set
internal bool IsSetInstancesToUpdateOnRollback()
{
return this._instancesToUpdateOnRollback.HasValue;
}
/// <summary>
/// Gets and sets the property PercentageCompleteOnRollback.
/// <para>
/// Indicates the value of <code>PercentageComplete</code> at the time the rollback started.
/// </para>
/// </summary>
[AWSProperty(Min=0, Max=100)]
public int PercentageCompleteOnRollback
{
get { return this._percentageCompleteOnRollback.GetValueOrDefault(); }
set { this._percentageCompleteOnRollback = value; }
}
// Check to see if PercentageCompleteOnRollback property is set
internal bool IsSetPercentageCompleteOnRollback()
{
return this._percentageCompleteOnRollback.HasValue;
}
/// <summary>
/// Gets and sets the property ProgressDetailsOnRollback.
/// <para>
/// Reports progress on replacing instances in an Auto Scaling group that has a warm pool.
/// This includes separate details for instances in the warm pool and instances in the
/// Auto Scaling group (the live pool).
/// </para>
/// </summary>
public InstanceRefreshProgressDetails ProgressDetailsOnRollback
{
get { return this._progressDetailsOnRollback; }
set { this._progressDetailsOnRollback = value; }
}
// Check to see if ProgressDetailsOnRollback property is set
internal bool IsSetProgressDetailsOnRollback()
{
return this._progressDetailsOnRollback != null;
}
/// <summary>
/// Gets and sets the property RollbackReason.
/// <para>
/// The reason for this instance refresh rollback (for example, whether a manual or automatic
/// rollback was initiated).
/// </para>
/// </summary>
[AWSProperty(Min=1, Max=1023)]
public string RollbackReason
{
get { return this._rollbackReason; }
set { this._rollbackReason = value; }
}
// Check to see if RollbackReason property is set
internal bool IsSetRollbackReason()
{
return this._rollbackReason != null;
}
/// <summary>
/// Gets and sets the property RollbackStartTime.
/// <para>
/// The date and time at which the rollback began.
/// </para>
/// </summary>
public DateTime RollbackStartTime
{
get { return this._rollbackStartTime.GetValueOrDefault(); }
set { this._rollbackStartTime = value; }
}
// Check to see if RollbackStartTime property is set
internal bool IsSetRollbackStartTime()
{
return this._rollbackStartTime.HasValue;
}
}
}
| 139 |
aws-sdk-net
|
aws
|
C#
|
/*
* 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 autoscaling-2011-01-01.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.AutoScaling.Model
{
/// <summary>
/// Container for the parameters to the RollbackInstanceRefresh operation.
/// Cancels an instance refresh that is in progress and rolls back any changes that it
/// made. Amazon EC2 Auto Scaling replaces any instances that were replaced during the
/// instance refresh. This restores your Auto Scaling group to the configuration that
/// it was using before the start of the instance refresh.
///
///
/// <para>
/// This operation is part of the <a href="https://docs.aws.amazon.com/autoscaling/ec2/userguide/asg-instance-refresh.html">instance
/// refresh feature</a> in Amazon EC2 Auto Scaling, which helps you update instances in
/// your Auto Scaling group after you make configuration changes.
/// </para>
///
/// <para>
/// A rollback is not supported in the following situations:
/// </para>
/// <ul> <li>
/// <para>
/// There is no desired configuration specified for the instance refresh.
/// </para>
/// </li> <li>
/// <para>
/// The Auto Scaling group has a launch template that uses an Amazon Web Services Systems
/// Manager parameter instead of an AMI ID for the <code>ImageId</code> property.
/// </para>
/// </li> <li>
/// <para>
/// The Auto Scaling group uses the launch template's <code>$Latest</code> or <code>$Default</code>
/// version.
/// </para>
/// </li> </ul>
/// <para>
/// When you receive a successful response from this operation, Amazon EC2 Auto Scaling
/// immediately begins replacing instances. You can check the status of this operation
/// through the <a>DescribeInstanceRefreshes</a> API operation.
/// </para>
/// </summary>
public partial class RollbackInstanceRefreshRequest : AmazonAutoScalingRequest
{
private string _autoScalingGroupName;
/// <summary>
/// Gets and sets the property AutoScalingGroupName.
/// <para>
/// The name of the Auto Scaling group.
/// </para>
/// </summary>
[AWSProperty(Min=1, Max=255)]
public string AutoScalingGroupName
{
get { return this._autoScalingGroupName; }
set { this._autoScalingGroupName = value; }
}
// Check to see if AutoScalingGroupName property is set
internal bool IsSetAutoScalingGroupName()
{
return this._autoScalingGroupName != null;
}
}
}
| 93 |
aws-sdk-net
|
aws
|
C#
|
/*
* 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 autoscaling-2011-01-01.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.AutoScaling.Model
{
/// <summary>
/// This is the response object from the RollbackInstanceRefresh operation.
/// </summary>
public partial class RollbackInstanceRefreshResponse : AmazonWebServiceResponse
{
private string _instanceRefreshId;
/// <summary>
/// Gets and sets the property InstanceRefreshId.
/// <para>
/// The instance refresh ID associated with the request. This is the unique ID assigned
/// to the instance refresh when it was started.
/// </para>
/// </summary>
[AWSProperty(Min=1, Max=255)]
public string InstanceRefreshId
{
get { return this._instanceRefreshId; }
set { this._instanceRefreshId = value; }
}
// Check to see if InstanceRefreshId property is set
internal bool IsSetInstanceRefreshId()
{
return this._instanceRefreshId != null;
}
}
}
| 59 |
aws-sdk-net
|
aws
|
C#
|
/*
* 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 autoscaling-2011-01-01.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.AutoScaling.Model
{
/// <summary>
/// The operation can't be performed because there are scaling activities in progress.
/// </summary>
#if !NETSTANDARD
[Serializable]
#endif
public partial class ScalingActivityInProgressException : AmazonAutoScalingException
{
/// <summary>
/// Constructs a new ScalingActivityInProgressException with the specified error
/// message.
/// </summary>
/// <param name="message">
/// Describes the error encountered.
/// </param>
public ScalingActivityInProgressException(string message)
: base(message) {}
/// <summary>
/// Construct instance of ScalingActivityInProgressException
/// </summary>
/// <param name="message"></param>
/// <param name="innerException"></param>
public ScalingActivityInProgressException(string message, Exception innerException)
: base(message, innerException) {}
/// <summary>
/// Construct instance of ScalingActivityInProgressException
/// </summary>
/// <param name="innerException"></param>
public ScalingActivityInProgressException(Exception innerException)
: base(innerException) {}
/// <summary>
/// Construct instance of ScalingActivityInProgressException
/// </summary>
/// <param name="message"></param>
/// <param name="innerException"></param>
/// <param name="errorType"></param>
/// <param name="errorCode"></param>
/// <param name="requestId"></param>
/// <param name="statusCode"></param>
public ScalingActivityInProgressException(string message, Exception innerException, ErrorType errorType, string errorCode, string requestId, HttpStatusCode statusCode)
: base(message, innerException, errorType, errorCode, requestId, statusCode) {}
/// <summary>
/// Construct instance of ScalingActivityInProgressException
/// </summary>
/// <param name="message"></param>
/// <param name="errorType"></param>
/// <param name="errorCode"></param>
/// <param name="requestId"></param>
/// <param name="statusCode"></param>
public ScalingActivityInProgressException(string message, ErrorType errorType, string errorCode, string requestId, HttpStatusCode statusCode)
: base(message, errorType, errorCode, requestId, statusCode) {}
#if !NETSTANDARD
/// <summary>
/// Constructs a new instance of the ScalingActivityInProgressException class with serialized data.
/// </summary>
/// <param name="info">The <see cref="T:System.Runtime.Serialization.SerializationInfo" /> that holds the serialized object data about the exception being thrown.</param>
/// <param name="context">The <see cref="T:System.Runtime.Serialization.StreamingContext" /> that contains contextual information about the source or destination.</param>
/// <exception cref="T:System.ArgumentNullException">The <paramref name="info" /> parameter is null. </exception>
/// <exception cref="T:System.Runtime.Serialization.SerializationException">The class name is null or <see cref="P:System.Exception.HResult" /> is zero (0). </exception>
protected ScalingActivityInProgressException(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context)
: base(info, context)
{
}
/// <summary>
/// Sets the <see cref="T:System.Runtime.Serialization.SerializationInfo" /> with information about the exception.
/// </summary>
/// <param name="info">The <see cref="T:System.Runtime.Serialization.SerializationInfo" /> that holds the serialized object data about the exception being thrown.</param>
/// <param name="context">The <see cref="T:System.Runtime.Serialization.StreamingContext" /> that contains contextual information about the source or destination.</param>
/// <exception cref="T:System.ArgumentNullException">The <paramref name="info" /> parameter is a null reference (Nothing in Visual Basic). </exception>
#if BCL35
[System.Security.Permissions.SecurityPermission(
System.Security.Permissions.SecurityAction.LinkDemand,
Flags = System.Security.Permissions.SecurityPermissionFlag.SerializationFormatter)]
#endif
[System.Security.SecurityCritical]
// These FxCop rules are giving false-positives for this method
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Security", "CA2123:OverrideLinkDemandsShouldBeIdenticalToBase")]
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Security", "CA2134:MethodsMustOverrideWithConsistentTransparencyFxCopRule")]
public override void GetObjectData(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context)
{
base.GetObjectData(info, context);
}
#endif
}
}
| 124 |
aws-sdk-net
|
aws
|
C#
|
/*
* 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 autoscaling-2011-01-01.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.AutoScaling.Model
{
/// <summary>
/// Describes a scaling policy.
/// </summary>
public partial class ScalingPolicy
{
private string _adjustmentType;
private List<Alarm> _alarms = new List<Alarm>();
private string _autoScalingGroupName;
private int? _cooldown;
private bool? _enabled;
private int? _estimatedInstanceWarmup;
private string _metricAggregationType;
private int? _minAdjustmentMagnitude;
private int? _minAdjustmentStep;
private string _policyARN;
private string _policyName;
private string _policyType;
private PredictiveScalingConfiguration _predictiveScalingConfiguration;
private int? _scalingAdjustment;
private List<StepAdjustment> _stepAdjustments = new List<StepAdjustment>();
private TargetTrackingConfiguration _targetTrackingConfiguration;
/// <summary>
/// Gets and sets the property AdjustmentType.
/// <para>
/// Specifies how the scaling adjustment is interpreted (for example, an absolute number
/// or a percentage). The valid values are <code>ChangeInCapacity</code>, <code>ExactCapacity</code>,
/// and <code>PercentChangeInCapacity</code>.
/// </para>
/// </summary>
[AWSProperty(Min=1, Max=255)]
public string AdjustmentType
{
get { return this._adjustmentType; }
set { this._adjustmentType = value; }
}
// Check to see if AdjustmentType property is set
internal bool IsSetAdjustmentType()
{
return this._adjustmentType != null;
}
/// <summary>
/// Gets and sets the property Alarms.
/// <para>
/// The CloudWatch alarms related to the policy.
/// </para>
/// </summary>
public List<Alarm> Alarms
{
get { return this._alarms; }
set { this._alarms = value; }
}
// Check to see if Alarms property is set
internal bool IsSetAlarms()
{
return this._alarms != null && this._alarms.Count > 0;
}
/// <summary>
/// Gets and sets the property AutoScalingGroupName.
/// <para>
/// The name of the Auto Scaling group.
/// </para>
/// </summary>
[AWSProperty(Min=1, Max=255)]
public string AutoScalingGroupName
{
get { return this._autoScalingGroupName; }
set { this._autoScalingGroupName = value; }
}
// Check to see if AutoScalingGroupName property is set
internal bool IsSetAutoScalingGroupName()
{
return this._autoScalingGroupName != null;
}
/// <summary>
/// Gets and sets the property Cooldown.
/// <para>
/// The duration of the policy's cooldown period, in seconds.
/// </para>
/// </summary>
public int Cooldown
{
get { return this._cooldown.GetValueOrDefault(); }
set { this._cooldown = value; }
}
// Check to see if Cooldown property is set
internal bool IsSetCooldown()
{
return this._cooldown.HasValue;
}
/// <summary>
/// Gets and sets the property Enabled.
/// <para>
/// Indicates whether the policy is enabled (<code>true</code>) or disabled (<code>false</code>).
/// </para>
/// </summary>
public bool Enabled
{
get { return this._enabled.GetValueOrDefault(); }
set { this._enabled = value; }
}
// Check to see if Enabled property is set
internal bool IsSetEnabled()
{
return this._enabled.HasValue;
}
/// <summary>
/// Gets and sets the property EstimatedInstanceWarmup.
/// <para>
/// The estimated time, in seconds, until a newly launched instance can contribute to
/// the CloudWatch metrics.
/// </para>
/// </summary>
public int EstimatedInstanceWarmup
{
get { return this._estimatedInstanceWarmup.GetValueOrDefault(); }
set { this._estimatedInstanceWarmup = value; }
}
// Check to see if EstimatedInstanceWarmup property is set
internal bool IsSetEstimatedInstanceWarmup()
{
return this._estimatedInstanceWarmup.HasValue;
}
/// <summary>
/// Gets and sets the property MetricAggregationType.
/// <para>
/// The aggregation type for the CloudWatch metrics. The valid values are <code>Minimum</code>,
/// <code>Maximum</code>, and <code>Average</code>.
/// </para>
/// </summary>
[AWSProperty(Min=1, Max=32)]
public string MetricAggregationType
{
get { return this._metricAggregationType; }
set { this._metricAggregationType = value; }
}
// Check to see if MetricAggregationType property is set
internal bool IsSetMetricAggregationType()
{
return this._metricAggregationType != null;
}
/// <summary>
/// Gets and sets the property MinAdjustmentMagnitude.
/// <para>
/// The minimum value to scale by when the adjustment type is <code>PercentChangeInCapacity</code>.
///
/// </para>
/// </summary>
public int MinAdjustmentMagnitude
{
get { return this._minAdjustmentMagnitude.GetValueOrDefault(); }
set { this._minAdjustmentMagnitude = value; }
}
// Check to see if MinAdjustmentMagnitude property is set
internal bool IsSetMinAdjustmentMagnitude()
{
return this._minAdjustmentMagnitude.HasValue;
}
/// <summary>
/// Gets and sets the property MinAdjustmentStep.
/// <para>
/// Available for backward compatibility. Use <code>MinAdjustmentMagnitude</code> instead.
/// </para>
/// </summary>
public int MinAdjustmentStep
{
get { return this._minAdjustmentStep.GetValueOrDefault(); }
set { this._minAdjustmentStep = value; }
}
// Check to see if MinAdjustmentStep property is set
internal bool IsSetMinAdjustmentStep()
{
return this._minAdjustmentStep.HasValue;
}
/// <summary>
/// Gets and sets the property PolicyARN.
/// <para>
/// The Amazon Resource Name (ARN) of the policy.
/// </para>
/// </summary>
[AWSProperty(Min=1, Max=1600)]
public string PolicyARN
{
get { return this._policyARN; }
set { this._policyARN = value; }
}
// Check to see if PolicyARN property is set
internal bool IsSetPolicyARN()
{
return this._policyARN != null;
}
/// <summary>
/// Gets and sets the property PolicyName.
/// <para>
/// The name of the scaling policy.
/// </para>
/// </summary>
[AWSProperty(Min=1, Max=255)]
public string PolicyName
{
get { return this._policyName; }
set { this._policyName = value; }
}
// Check to see if PolicyName property is set
internal bool IsSetPolicyName()
{
return this._policyName != null;
}
/// <summary>
/// Gets and sets the property PolicyType.
/// <para>
/// One of the following policy types:
/// </para>
/// <ul> <li>
/// <para>
/// <code>TargetTrackingScaling</code>
/// </para>
/// </li> <li>
/// <para>
/// <code>StepScaling</code>
/// </para>
/// </li> <li>
/// <para>
/// <code>SimpleScaling</code> (default)
/// </para>
/// </li> <li>
/// <para>
/// <code>PredictiveScaling</code>
/// </para>
/// </li> </ul>
/// <para>
/// For more information, see <a href="https://docs.aws.amazon.com/autoscaling/ec2/userguide/as-scaling-target-tracking.html">Target
/// tracking scaling policies</a> and <a href="https://docs.aws.amazon.com/autoscaling/ec2/userguide/as-scaling-simple-step.html">Step
/// and simple scaling policies</a> in the <i>Amazon EC2 Auto Scaling User Guide</i>.
/// </para>
/// </summary>
[AWSProperty(Min=1, Max=64)]
public string PolicyType
{
get { return this._policyType; }
set { this._policyType = value; }
}
// Check to see if PolicyType property is set
internal bool IsSetPolicyType()
{
return this._policyType != null;
}
/// <summary>
/// Gets and sets the property PredictiveScalingConfiguration.
/// <para>
/// A predictive scaling policy.
/// </para>
/// </summary>
public PredictiveScalingConfiguration PredictiveScalingConfiguration
{
get { return this._predictiveScalingConfiguration; }
set { this._predictiveScalingConfiguration = value; }
}
// Check to see if PredictiveScalingConfiguration property is set
internal bool IsSetPredictiveScalingConfiguration()
{
return this._predictiveScalingConfiguration != null;
}
/// <summary>
/// Gets and sets the property ScalingAdjustment.
/// <para>
/// The amount by which to scale, based on the specified adjustment type. A positive value
/// adds to the current capacity while a negative number removes from the current capacity.
/// </para>
/// </summary>
public int ScalingAdjustment
{
get { return this._scalingAdjustment.GetValueOrDefault(); }
set { this._scalingAdjustment = value; }
}
// Check to see if ScalingAdjustment property is set
internal bool IsSetScalingAdjustment()
{
return this._scalingAdjustment.HasValue;
}
/// <summary>
/// Gets and sets the property StepAdjustments.
/// <para>
/// A set of adjustments that enable you to scale based on the size of the alarm breach.
/// </para>
/// </summary>
public List<StepAdjustment> StepAdjustments
{
get { return this._stepAdjustments; }
set { this._stepAdjustments = value; }
}
// Check to see if StepAdjustments property is set
internal bool IsSetStepAdjustments()
{
return this._stepAdjustments != null && this._stepAdjustments.Count > 0;
}
/// <summary>
/// Gets and sets the property TargetTrackingConfiguration.
/// <para>
/// A target tracking scaling policy.
/// </para>
/// </summary>
public TargetTrackingConfiguration TargetTrackingConfiguration
{
get { return this._targetTrackingConfiguration; }
set { this._targetTrackingConfiguration = value; }
}
// Check to see if TargetTrackingConfiguration property is set
internal bool IsSetTargetTrackingConfiguration()
{
return this._targetTrackingConfiguration != null;
}
}
}
| 376 |
aws-sdk-net
|
aws
|
C#
|
/*
* 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 autoscaling-2011-01-01.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.AutoScaling.Model
{
/// <summary>
/// Describes a scheduled scaling action.
/// </summary>
public partial class ScheduledUpdateGroupAction
{
private string _autoScalingGroupName;
private int? _desiredCapacity;
private DateTime? _endTime;
private int? _maxSize;
private int? _minSize;
private string _recurrence;
private string _scheduledActionARN;
private string _scheduledActionName;
private DateTime? _startTime;
private DateTime? _time;
private string _timeZone;
/// <summary>
/// Gets and sets the property AutoScalingGroupName.
/// <para>
/// The name of the Auto Scaling group.
/// </para>
/// </summary>
[AWSProperty(Min=1, Max=255)]
public string AutoScalingGroupName
{
get { return this._autoScalingGroupName; }
set { this._autoScalingGroupName = value; }
}
// Check to see if AutoScalingGroupName property is set
internal bool IsSetAutoScalingGroupName()
{
return this._autoScalingGroupName != null;
}
/// <summary>
/// Gets and sets the property DesiredCapacity.
/// <para>
/// The desired capacity is the initial capacity of the Auto Scaling group after the scheduled
/// action runs and the capacity it attempts to maintain.
/// </para>
/// </summary>
public int DesiredCapacity
{
get { return this._desiredCapacity.GetValueOrDefault(); }
set { this._desiredCapacity = value; }
}
// Check to see if DesiredCapacity property is set
internal bool IsSetDesiredCapacity()
{
return this._desiredCapacity.HasValue;
}
/// <summary>
/// Gets and sets the property EndTime.
/// <para>
/// The date and time in UTC for the recurring schedule to end. For example, <code>"2019-06-01T00:00:00Z"</code>.
///
/// </para>
/// </summary>
public DateTime EndTime
{
get { return this._endTime.GetValueOrDefault(); }
set { this._endTime = value; }
}
// Check to see if EndTime property is set
internal bool IsSetEndTime()
{
return this._endTime.HasValue;
}
/// <summary>
/// Gets and sets the property MaxSize.
/// <para>
/// The maximum size of the Auto Scaling group.
/// </para>
/// </summary>
public int MaxSize
{
get { return this._maxSize.GetValueOrDefault(); }
set { this._maxSize = value; }
}
// Check to see if MaxSize property is set
internal bool IsSetMaxSize()
{
return this._maxSize.HasValue;
}
/// <summary>
/// Gets and sets the property MinSize.
/// <para>
/// The minimum size of the Auto Scaling group.
/// </para>
/// </summary>
public int MinSize
{
get { return this._minSize.GetValueOrDefault(); }
set { this._minSize = value; }
}
// Check to see if MinSize property is set
internal bool IsSetMinSize()
{
return this._minSize.HasValue;
}
/// <summary>
/// Gets and sets the property Recurrence.
/// <para>
/// The recurring schedule for the action, in Unix cron syntax format.
/// </para>
///
/// <para>
/// When <code>StartTime</code> and <code>EndTime</code> are specified with <code>Recurrence</code>,
/// they form the boundaries of when the recurring action starts and stops.
/// </para>
/// </summary>
[AWSProperty(Min=1, Max=255)]
public string Recurrence
{
get { return this._recurrence; }
set { this._recurrence = value; }
}
// Check to see if Recurrence property is set
internal bool IsSetRecurrence()
{
return this._recurrence != null;
}
/// <summary>
/// Gets and sets the property ScheduledActionARN.
/// <para>
/// The Amazon Resource Name (ARN) of the scheduled action.
/// </para>
/// </summary>
[AWSProperty(Min=1, Max=1600)]
public string ScheduledActionARN
{
get { return this._scheduledActionARN; }
set { this._scheduledActionARN = value; }
}
// Check to see if ScheduledActionARN property is set
internal bool IsSetScheduledActionARN()
{
return this._scheduledActionARN != null;
}
/// <summary>
/// Gets and sets the property ScheduledActionName.
/// <para>
/// The name of the scheduled action.
/// </para>
/// </summary>
[AWSProperty(Min=1, Max=255)]
public string ScheduledActionName
{
get { return this._scheduledActionName; }
set { this._scheduledActionName = value; }
}
// Check to see if ScheduledActionName property is set
internal bool IsSetScheduledActionName()
{
return this._scheduledActionName != null;
}
/// <summary>
/// Gets and sets the property StartTime.
/// <para>
/// The date and time in UTC for this action to start. For example, <code>"2019-06-01T00:00:00Z"</code>.
///
/// </para>
/// </summary>
public DateTime StartTime
{
get { return this._startTime.GetValueOrDefault(); }
set { this._startTime = value; }
}
// Check to see if StartTime property is set
internal bool IsSetStartTime()
{
return this._startTime.HasValue;
}
/// <summary>
/// Gets and sets the property Time.
/// <para>
/// This property is no longer used.
/// </para>
/// </summary>
public DateTime Time
{
get { return this._time.GetValueOrDefault(); }
set { this._time = value; }
}
// Check to see if Time property is set
internal bool IsSetTime()
{
return this._time.HasValue;
}
/// <summary>
/// Gets and sets the property TimeZone.
/// <para>
/// The time zone for the cron expression.
/// </para>
/// </summary>
[AWSProperty(Min=1, Max=255)]
public string TimeZone
{
get { return this._timeZone; }
set { this._timeZone = value; }
}
// Check to see if TimeZone property is set
internal bool IsSetTimeZone()
{
return this._timeZone != null;
}
}
}
| 260 |
aws-sdk-net
|
aws
|
C#
|
/*
* 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 autoscaling-2011-01-01.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.AutoScaling.Model
{
/// <summary>
/// Describes information used for one or more scheduled scaling action updates in a <a>BatchPutScheduledUpdateGroupAction</a>
/// operation.
/// </summary>
public partial class ScheduledUpdateGroupActionRequest
{
private int? _desiredCapacity;
private DateTime? _endTimeUtc;
private int? _maxSize;
private int? _minSize;
private string _recurrence;
private string _scheduledActionName;
private DateTime? _startTimeUtc;
private string _timeZone;
/// <summary>
/// Gets and sets the property DesiredCapacity.
/// <para>
/// The desired capacity is the initial capacity of the Auto Scaling group after the scheduled
/// action runs and the capacity it attempts to maintain.
/// </para>
/// </summary>
public int DesiredCapacity
{
get { return this._desiredCapacity.GetValueOrDefault(); }
set { this._desiredCapacity = value; }
}
// Check to see if DesiredCapacity property is set
internal bool IsSetDesiredCapacity()
{
return this._desiredCapacity.HasValue;
}
/// <summary>
/// Gets and sets the property EndTimeUtc.
/// <para>
/// The date and time for the recurring schedule to end, in UTC.
/// </para>
/// </summary>
public DateTime EndTimeUtc
{
get { return this._endTimeUtc.GetValueOrDefault(); }
set { this._endTime = this._endTimeUtc = value; }
}
// Check to see if EndTimeUtc property is set
internal bool IsSetEndTimeUtc()
{
return this._endTimeUtc.HasValue;
}
/// <summary>
/// Gets and sets the property MaxSize.
/// <para>
/// The maximum size of the Auto Scaling group.
/// </para>
/// </summary>
public int MaxSize
{
get { return this._maxSize.GetValueOrDefault(); }
set { this._maxSize = value; }
}
// Check to see if MaxSize property is set
internal bool IsSetMaxSize()
{
return this._maxSize.HasValue;
}
/// <summary>
/// Gets and sets the property MinSize.
/// <para>
/// The minimum size of the Auto Scaling group.
/// </para>
/// </summary>
public int MinSize
{
get { return this._minSize.GetValueOrDefault(); }
set { this._minSize = value; }
}
// Check to see if MinSize property is set
internal bool IsSetMinSize()
{
return this._minSize.HasValue;
}
/// <summary>
/// Gets and sets the property Recurrence.
/// <para>
/// The recurring schedule for the action, in Unix cron syntax format. This format consists
/// of five fields separated by white spaces: [Minute] [Hour] [Day_of_Month] [Month_of_Year]
/// [Day_of_Week]. The value must be in quotes (for example, <code>"30 0 1 1,6,12 *"</code>).
/// For more information about this format, see <a href="http://crontab.org">Crontab</a>.
/// </para>
///
/// <para>
/// When <code>StartTime</code> and <code>EndTime</code> are specified with <code>Recurrence</code>,
/// they form the boundaries of when the recurring action starts and stops.
/// </para>
///
/// <para>
/// Cron expressions use Universal Coordinated Time (UTC) by default.
/// </para>
/// </summary>
[AWSProperty(Min=1, Max=255)]
public string Recurrence
{
get { return this._recurrence; }
set { this._recurrence = value; }
}
// Check to see if Recurrence property is set
internal bool IsSetRecurrence()
{
return this._recurrence != null;
}
/// <summary>
/// Gets and sets the property ScheduledActionName.
/// <para>
/// The name of the scaling action.
/// </para>
/// </summary>
[AWSProperty(Required=true, Min=1, Max=255)]
public string ScheduledActionName
{
get { return this._scheduledActionName; }
set { this._scheduledActionName = value; }
}
// Check to see if ScheduledActionName property is set
internal bool IsSetScheduledActionName()
{
return this._scheduledActionName != null;
}
/// <summary>
/// Gets and sets the property StartTimeUtc.
/// <para>
/// The date and time for the action to start, in YYYY-MM-DDThh:mm:ssZ format in UTC/GMT
/// only and in quotes (for example, <code>"2019-06-01T00:00:00Z"</code>).
/// </para>
///
/// <para>
/// If you specify <code>Recurrence</code> and <code>StartTime</code>, Amazon EC2 Auto
/// Scaling performs the action at this time, and then performs the action based on the
/// specified recurrence.
/// </para>
///
/// <para>
/// If you try to schedule the action in the past, Amazon EC2 Auto Scaling returns an
/// error message.
/// </para>
/// </summary>
public DateTime StartTimeUtc
{
get { return this._startTimeUtc.GetValueOrDefault(); }
set { this._startTime = this._startTimeUtc = value; }
}
// Check to see if StartTimeUtc property is set
internal bool IsSetStartTimeUtc()
{
return this._startTimeUtc.HasValue;
}
/// <summary>
/// Gets and sets the property TimeZone.
/// <para>
/// Specifies the time zone for a cron expression. If a time zone is not provided, UTC
/// is used by default.
/// </para>
///
/// <para>
/// Valid values are the canonical names of the IANA time zones, derived from the IANA
/// Time Zone Database (such as <code>Etc/GMT+9</code> or <code>Pacific/Tahiti</code>).
/// For more information, see <a href="https://en.wikipedia.org/wiki/List_of_tz_database_time_zones">https://en.wikipedia.org/wiki/List_of_tz_database_time_zones</a>.
/// </para>
/// </summary>
[AWSProperty(Min=1, Max=255)]
public string TimeZone
{
get { return this._timeZone; }
set { this._timeZone = value; }
}
// Check to see if TimeZone property is set
internal bool IsSetTimeZone()
{
return this._timeZone != null;
}
#region Backwards compatible properties
private DateTime? _endTime;
private DateTime? _startTime;
/// <summary>
/// Gets and sets the property EndTimeUtc.
/// <para>
/// This property is deprecated. Setting this property results in non-UTC DateTimes not
/// being marshalled correctly. Use EndTimeUtc instead. Setting either EndTime or EndTimeUtc
/// results in both EndTime and EndTimeUtc being assigned, the latest assignment to either
/// one of the two property is reflected in the value of both. EndTime is provided for
/// backwards compatibility only and assigning a non-Utc DateTime to it results in the
/// wrong timestamp being passed to the service.
/// </para>
///
/// <para>
/// The date and time for the recurring schedule to end, in UTC.
/// </para>
/// </summary>
[Obsolete("Setting this property results in non-UTC DateTimes not being marshalled correctly. " +
"Use EndTimeUtc instead. Setting either EndTime or EndTimeUtc results in both EndTime and " +
"EndTimeUtc being assigned, the latest assignment to either one of the two property is " +
"reflected in the value of both. EndTime is provided for backwards compatibility only and " +
"assigning a non-Utc DateTime to it results in the wrong timestamp being passed to the service.", false)]
public DateTime EndTime
{
get { return this._endTime.GetValueOrDefault(); }
set
{
this._endTime = value;
this._endTimeUtc = new DateTime(value.Ticks, DateTimeKind.Utc);
}
}
/// <summary>
/// Gets and sets the property StartTimeUtc.
/// <para>
/// This property is deprecated. Setting this property results in non-UTC DateTimes not
/// being marshalled correctly. Use StartTimeUtc instead. Setting either StartTime or
/// StartTimeUtc results in both StartTime and StartTimeUtc being assigned, the latest
/// assignment to either one of the two property is reflected in the value of both. StartTime
/// is provided for backwards compatibility only and assigning a non-Utc DateTime to it
/// results in the wrong timestamp being passed to the service.
/// </para>
///
/// <para>
/// The date and time for the action to start, in YYYY-MM-DDThh:mm:ssZ format in UTC/GMT
/// only and in quotes (for example, <code>"2019-06-01T00:00:00Z"</code>).
/// </para>
///
/// <para>
/// If you specify <code>Recurrence</code> and <code>StartTime</code>, Amazon EC2 Auto
/// Scaling performs the action at this time, and then performs the action based on the
/// specified recurrence.
/// </para>
///
/// <para>
/// If you try to schedule the action in the past, Amazon EC2 Auto Scaling returns an
/// error message.
/// </para>
/// </summary>
[Obsolete("Setting this property results in non-UTC DateTimes not being marshalled correctly. " +
"Use StartTimeUtc instead. Setting either StartTime or StartTimeUtc results in both StartTime and " +
"StartTimeUtc being assigned, the latest assignment to either one of the two property is " +
"reflected in the value of both. StartTime is provided for backwards compatibility only and " +
"assigning a non-Utc DateTime to it results in the wrong timestamp being passed to the service.", false)]
public DateTime StartTime
{
get { return this._startTime.GetValueOrDefault(); }
set
{
this._startTime = value;
this._startTimeUtc = new DateTime(value.Ticks, DateTimeKind.Utc);
}
}
#endregion
}
}
| 301 |
aws-sdk-net
|
aws
|
C#
|
/*
* 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 autoscaling-2011-01-01.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.AutoScaling.Model
{
/// <summary>
/// The service-linked role is not yet ready for use.
/// </summary>
#if !NETSTANDARD
[Serializable]
#endif
public partial class ServiceLinkedRoleFailureException : AmazonAutoScalingException
{
/// <summary>
/// Constructs a new ServiceLinkedRoleFailureException with the specified error
/// message.
/// </summary>
/// <param name="message">
/// Describes the error encountered.
/// </param>
public ServiceLinkedRoleFailureException(string message)
: base(message) {}
/// <summary>
/// Construct instance of ServiceLinkedRoleFailureException
/// </summary>
/// <param name="message"></param>
/// <param name="innerException"></param>
public ServiceLinkedRoleFailureException(string message, Exception innerException)
: base(message, innerException) {}
/// <summary>
/// Construct instance of ServiceLinkedRoleFailureException
/// </summary>
/// <param name="innerException"></param>
public ServiceLinkedRoleFailureException(Exception innerException)
: base(innerException) {}
/// <summary>
/// Construct instance of ServiceLinkedRoleFailureException
/// </summary>
/// <param name="message"></param>
/// <param name="innerException"></param>
/// <param name="errorType"></param>
/// <param name="errorCode"></param>
/// <param name="requestId"></param>
/// <param name="statusCode"></param>
public ServiceLinkedRoleFailureException(string message, Exception innerException, ErrorType errorType, string errorCode, string requestId, HttpStatusCode statusCode)
: base(message, innerException, errorType, errorCode, requestId, statusCode) {}
/// <summary>
/// Construct instance of ServiceLinkedRoleFailureException
/// </summary>
/// <param name="message"></param>
/// <param name="errorType"></param>
/// <param name="errorCode"></param>
/// <param name="requestId"></param>
/// <param name="statusCode"></param>
public ServiceLinkedRoleFailureException(string message, ErrorType errorType, string errorCode, string requestId, HttpStatusCode statusCode)
: base(message, errorType, errorCode, requestId, statusCode) {}
#if !NETSTANDARD
/// <summary>
/// Constructs a new instance of the ServiceLinkedRoleFailureException class with serialized data.
/// </summary>
/// <param name="info">The <see cref="T:System.Runtime.Serialization.SerializationInfo" /> that holds the serialized object data about the exception being thrown.</param>
/// <param name="context">The <see cref="T:System.Runtime.Serialization.StreamingContext" /> that contains contextual information about the source or destination.</param>
/// <exception cref="T:System.ArgumentNullException">The <paramref name="info" /> parameter is null. </exception>
/// <exception cref="T:System.Runtime.Serialization.SerializationException">The class name is null or <see cref="P:System.Exception.HResult" /> is zero (0). </exception>
protected ServiceLinkedRoleFailureException(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context)
: base(info, context)
{
}
/// <summary>
/// Sets the <see cref="T:System.Runtime.Serialization.SerializationInfo" /> with information about the exception.
/// </summary>
/// <param name="info">The <see cref="T:System.Runtime.Serialization.SerializationInfo" /> that holds the serialized object data about the exception being thrown.</param>
/// <param name="context">The <see cref="T:System.Runtime.Serialization.StreamingContext" /> that contains contextual information about the source or destination.</param>
/// <exception cref="T:System.ArgumentNullException">The <paramref name="info" /> parameter is a null reference (Nothing in Visual Basic). </exception>
#if BCL35
[System.Security.Permissions.SecurityPermission(
System.Security.Permissions.SecurityAction.LinkDemand,
Flags = System.Security.Permissions.SecurityPermissionFlag.SerializationFormatter)]
#endif
[System.Security.SecurityCritical]
// These FxCop rules are giving false-positives for this method
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Security", "CA2123:OverrideLinkDemandsShouldBeIdenticalToBase")]
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Security", "CA2134:MethodsMustOverrideWithConsistentTransparencyFxCopRule")]
public override void GetObjectData(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context)
{
base.GetObjectData(info, context);
}
#endif
}
}
| 124 |
aws-sdk-net
|
aws
|
C#
|
/*
* 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 autoscaling-2011-01-01.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.AutoScaling.Model
{
/// <summary>
/// Container for the parameters to the SetDesiredCapacity operation.
/// Sets the size of the specified Auto Scaling group.
///
///
/// <para>
/// If a scale-in activity occurs as a result of a new <code>DesiredCapacity</code> value
/// that is lower than the current size of the group, the Auto Scaling group uses its
/// termination policy to determine which instances to terminate.
/// </para>
///
/// <para>
/// For more information, see <a href="https://docs.aws.amazon.com/autoscaling/ec2/userguide/as-manual-scaling.html">Manual
/// scaling</a> in the <i>Amazon EC2 Auto Scaling User Guide</i>.
/// </para>
/// </summary>
public partial class SetDesiredCapacityRequest : AmazonAutoScalingRequest
{
private string _autoScalingGroupName;
private int? _desiredCapacity;
private bool? _honorCooldown;
/// <summary>
/// Gets and sets the property AutoScalingGroupName.
/// <para>
/// The name of the Auto Scaling group.
/// </para>
/// </summary>
[AWSProperty(Required=true, Min=1, Max=255)]
public string AutoScalingGroupName
{
get { return this._autoScalingGroupName; }
set { this._autoScalingGroupName = value; }
}
// Check to see if AutoScalingGroupName property is set
internal bool IsSetAutoScalingGroupName()
{
return this._autoScalingGroupName != null;
}
/// <summary>
/// Gets and sets the property DesiredCapacity.
/// <para>
/// The desired capacity is the initial capacity of the Auto Scaling group after this
/// operation completes and the capacity it attempts to maintain.
/// </para>
/// </summary>
[AWSProperty(Required=true)]
public int DesiredCapacity
{
get { return this._desiredCapacity.GetValueOrDefault(); }
set { this._desiredCapacity = value; }
}
// Check to see if DesiredCapacity property is set
internal bool IsSetDesiredCapacity()
{
return this._desiredCapacity.HasValue;
}
/// <summary>
/// Gets and sets the property HonorCooldown.
/// <para>
/// Indicates whether Amazon EC2 Auto Scaling waits for the cooldown period to complete
/// before initiating a scaling activity to set your Auto Scaling group to its new capacity.
/// By default, Amazon EC2 Auto Scaling does not honor the cooldown period during manual
/// scaling activities.
/// </para>
/// </summary>
public bool HonorCooldown
{
get { return this._honorCooldown.GetValueOrDefault(); }
set { this._honorCooldown = value; }
}
// Check to see if HonorCooldown property is set
internal bool IsSetHonorCooldown()
{
return this._honorCooldown.HasValue;
}
}
}
| 114 |
aws-sdk-net
|
aws
|
C#
|
/*
* 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 autoscaling-2011-01-01.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.AutoScaling.Model
{
/// <summary>
/// This is the response object from the SetDesiredCapacity operation.
/// </summary>
public partial class SetDesiredCapacityResponse : AmazonWebServiceResponse
{
}
}
| 38 |
aws-sdk-net
|
aws
|
C#
|
/*
* 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 autoscaling-2011-01-01.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.AutoScaling.Model
{
/// <summary>
/// Container for the parameters to the SetInstanceHealth operation.
/// Sets the health status of the specified instance.
///
///
/// <para>
/// For more information, see <a href="https://docs.aws.amazon.com/autoscaling/ec2/userguide/healthcheck.html">Health
/// checks for Auto Scaling instances</a> in the <i>Amazon EC2 Auto Scaling User Guide</i>.
/// </para>
/// </summary>
public partial class SetInstanceHealthRequest : AmazonAutoScalingRequest
{
private string _healthStatus;
private string _instanceId;
private bool? _shouldRespectGracePeriod;
/// <summary>
/// Gets and sets the property HealthStatus.
/// <para>
/// The health status of the instance. Set to <code>Healthy</code> to have the instance
/// remain in service. Set to <code>Unhealthy</code> to have the instance be out of service.
/// Amazon EC2 Auto Scaling terminates and replaces the unhealthy instance.
/// </para>
/// </summary>
[AWSProperty(Required=true, Min=1, Max=32)]
public string HealthStatus
{
get { return this._healthStatus; }
set { this._healthStatus = value; }
}
// Check to see if HealthStatus property is set
internal bool IsSetHealthStatus()
{
return this._healthStatus != null;
}
/// <summary>
/// Gets and sets the property InstanceId.
/// <para>
/// The ID of the instance.
/// </para>
/// </summary>
[AWSProperty(Required=true, Min=1, Max=19)]
public string InstanceId
{
get { return this._instanceId; }
set { this._instanceId = value; }
}
// Check to see if InstanceId property is set
internal bool IsSetInstanceId()
{
return this._instanceId != null;
}
/// <summary>
/// Gets and sets the property ShouldRespectGracePeriod.
/// <para>
/// If the Auto Scaling group of the specified instance has a <code>HealthCheckGracePeriod</code>
/// specified for the group, by default, this call respects the grace period. Set this
/// to <code>False</code>, to have the call not respect the grace period associated with
/// the group.
/// </para>
///
/// <para>
/// For more information about the health check grace period, see <a href="https://docs.aws.amazon.com/autoscaling/ec2/APIReference/API_CreateAutoScalingGroup.html">CreateAutoScalingGroup</a>
/// in the <i>Amazon EC2 Auto Scaling API Reference</i>.
/// </para>
/// </summary>
public bool ShouldRespectGracePeriod
{
get { return this._shouldRespectGracePeriod.GetValueOrDefault(); }
set { this._shouldRespectGracePeriod = value; }
}
// Check to see if ShouldRespectGracePeriod property is set
internal bool IsSetShouldRespectGracePeriod()
{
return this._shouldRespectGracePeriod.HasValue;
}
}
}
| 114 |
aws-sdk-net
|
aws
|
C#
|
/*
* 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 autoscaling-2011-01-01.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.AutoScaling.Model
{
/// <summary>
/// This is the response object from the SetInstanceHealth operation.
/// </summary>
public partial class SetInstanceHealthResponse : AmazonWebServiceResponse
{
}
}
| 38 |
aws-sdk-net
|
aws
|
C#
|
/*
* 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 autoscaling-2011-01-01.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.AutoScaling.Model
{
/// <summary>
/// Container for the parameters to the SetInstanceProtection operation.
/// Updates the instance protection settings of the specified instances. This operation
/// cannot be called on instances in a warm pool.
///
///
/// <para>
/// For more information about preventing instances that are part of an Auto Scaling group
/// from terminating on scale in, see <a href="https://docs.aws.amazon.com/autoscaling/ec2/userguide/ec2-auto-scaling-instance-protection.html">Using
/// instance scale-in protection</a> in the <i>Amazon EC2 Auto Scaling User Guide</i>.
/// </para>
///
/// <para>
/// If you exceed your maximum limit of instance IDs, which is 50 per Auto Scaling group,
/// the call fails.
/// </para>
/// </summary>
public partial class SetInstanceProtectionRequest : AmazonAutoScalingRequest
{
private string _autoScalingGroupName;
private List<string> _instanceIds = new List<string>();
private bool? _protectedFromScaleIn;
/// <summary>
/// Gets and sets the property AutoScalingGroupName.
/// <para>
/// The name of the Auto Scaling group.
/// </para>
/// </summary>
[AWSProperty(Required=true, Min=1, Max=255)]
public string AutoScalingGroupName
{
get { return this._autoScalingGroupName; }
set { this._autoScalingGroupName = value; }
}
// Check to see if AutoScalingGroupName property is set
internal bool IsSetAutoScalingGroupName()
{
return this._autoScalingGroupName != null;
}
/// <summary>
/// Gets and sets the property InstanceIds.
/// <para>
/// One or more instance IDs. You can specify up to 50 instances.
/// </para>
/// </summary>
[AWSProperty(Required=true)]
public List<string> InstanceIds
{
get { return this._instanceIds; }
set { this._instanceIds = value; }
}
// Check to see if InstanceIds property is set
internal bool IsSetInstanceIds()
{
return this._instanceIds != null && this._instanceIds.Count > 0;
}
/// <summary>
/// Gets and sets the property ProtectedFromScaleIn.
/// <para>
/// Indicates whether the instance is protected from termination by Amazon EC2 Auto Scaling
/// when scaling in.
/// </para>
/// </summary>
[AWSProperty(Required=true)]
public bool ProtectedFromScaleIn
{
get { return this._protectedFromScaleIn.GetValueOrDefault(); }
set { this._protectedFromScaleIn = value; }
}
// Check to see if ProtectedFromScaleIn property is set
internal bool IsSetProtectedFromScaleIn()
{
return this._protectedFromScaleIn.HasValue;
}
}
}
| 113 |
aws-sdk-net
|
aws
|
C#
|
/*
* 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 autoscaling-2011-01-01.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.AutoScaling.Model
{
/// <summary>
/// This is the response object from the SetInstanceProtection operation.
/// </summary>
public partial class SetInstanceProtectionResponse : AmazonWebServiceResponse
{
}
}
| 38 |
aws-sdk-net
|
aws
|
C#
|
/*
* 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 autoscaling-2011-01-01.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.AutoScaling.Model
{
/// <summary>
/// Container for the parameters to the StartInstanceRefresh operation.
/// Starts an instance refresh. During an instance refresh, Amazon EC2 Auto Scaling performs
/// a rolling update of instances in an Auto Scaling group. Instances are terminated first
/// and then replaced, which temporarily reduces the capacity available within your Auto
/// Scaling group.
///
///
/// <para>
/// This operation is part of the <a href="https://docs.aws.amazon.com/autoscaling/ec2/userguide/asg-instance-refresh.html">instance
/// refresh feature</a> in Amazon EC2 Auto Scaling, which helps you update instances in
/// your Auto Scaling group. This feature is helpful, for example, when you have a new
/// AMI or a new user data script. You just need to create a new launch template that
/// specifies the new AMI or user data script. Then start an instance refresh to immediately
/// begin the process of updating instances in the group.
/// </para>
///
/// <para>
/// If successful, the request's response contains a unique ID that you can use to track
/// the progress of the instance refresh. To query its status, call the <a>DescribeInstanceRefreshes</a>
/// API. To describe the instance refreshes that have already run, call the <a>DescribeInstanceRefreshes</a>
/// API. To cancel an instance refresh that is in progress, use the <a>CancelInstanceRefresh</a>
/// API.
/// </para>
///
/// <para>
/// An instance refresh might fail for several reasons, such as EC2 launch failures, misconfigured
/// health checks, or not ignoring or allowing the termination of instances that are in
/// <code>Standby</code> state or protected from scale in. You can monitor for failed
/// EC2 launches using the scaling activities. To find the scaling activities, call the
/// <a>DescribeScalingActivities</a> API.
/// </para>
///
/// <para>
/// If you enable auto rollback, your Auto Scaling group will be rolled back automatically
/// when the instance refresh fails. You can enable this feature before starting an instance
/// refresh by specifying the <code>AutoRollback</code> property in the instance refresh
/// preferences. Otherwise, to roll back an instance refresh before it finishes, use the
/// <a>RollbackInstanceRefresh</a> API.
/// </para>
/// </summary>
public partial class StartInstanceRefreshRequest : AmazonAutoScalingRequest
{
private string _autoScalingGroupName;
private DesiredConfiguration _desiredConfiguration;
private RefreshPreferences _preferences;
private RefreshStrategy _strategy;
/// <summary>
/// Gets and sets the property AutoScalingGroupName.
/// <para>
/// The name of the Auto Scaling group.
/// </para>
/// </summary>
[AWSProperty(Required=true, Min=1, Max=255)]
public string AutoScalingGroupName
{
get { return this._autoScalingGroupName; }
set { this._autoScalingGroupName = value; }
}
// Check to see if AutoScalingGroupName property is set
internal bool IsSetAutoScalingGroupName()
{
return this._autoScalingGroupName != null;
}
/// <summary>
/// Gets and sets the property DesiredConfiguration.
/// <para>
/// The desired configuration. For example, the desired configuration can specify a new
/// launch template or a new version of the current launch template.
/// </para>
///
/// <para>
/// Once the instance refresh succeeds, Amazon EC2 Auto Scaling updates the settings of
/// the Auto Scaling group to reflect the new desired configuration.
/// </para>
/// <note>
/// <para>
/// When you specify a new launch template or a new version of the current launch template
/// for your desired configuration, consider enabling the <code>SkipMatching</code> property
/// in preferences. If it's enabled, Amazon EC2 Auto Scaling skips replacing instances
/// that already use the specified launch template and instance types. This can help you
/// reduce the number of replacements that are required to apply updates.
/// </para>
/// </note>
/// </summary>
public DesiredConfiguration DesiredConfiguration
{
get { return this._desiredConfiguration; }
set { this._desiredConfiguration = value; }
}
// Check to see if DesiredConfiguration property is set
internal bool IsSetDesiredConfiguration()
{
return this._desiredConfiguration != null;
}
/// <summary>
/// Gets and sets the property Preferences.
/// <para>
/// Sets your preferences for the instance refresh so that it performs as expected when
/// you start it. Includes the instance warmup time, the minimum healthy percentage, and
/// the behaviors that you want Amazon EC2 Auto Scaling to use if instances that are in
/// <code>Standby</code> state or protected from scale in are found. You can also choose
/// to enable additional features, such as the following:
/// </para>
/// <ul> <li>
/// <para>
/// Auto rollback
/// </para>
/// </li> <li>
/// <para>
/// Checkpoints
/// </para>
/// </li> <li>
/// <para>
/// Skip matching
/// </para>
/// </li> </ul>
/// </summary>
public RefreshPreferences Preferences
{
get { return this._preferences; }
set { this._preferences = value; }
}
// Check to see if Preferences property is set
internal bool IsSetPreferences()
{
return this._preferences != null;
}
/// <summary>
/// Gets and sets the property Strategy.
/// <para>
/// The strategy to use for the instance refresh. The only valid value is <code>Rolling</code>.
/// </para>
/// </summary>
public RefreshStrategy Strategy
{
get { return this._strategy; }
set { this._strategy = value; }
}
// Check to see if Strategy property is set
internal bool IsSetStrategy()
{
return this._strategy != null;
}
}
}
| 185 |
aws-sdk-net
|
aws
|
C#
|
/*
* 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 autoscaling-2011-01-01.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.AutoScaling.Model
{
/// <summary>
/// This is the response object from the StartInstanceRefresh operation.
/// </summary>
public partial class StartInstanceRefreshResponse : AmazonWebServiceResponse
{
private string _instanceRefreshId;
/// <summary>
/// Gets and sets the property InstanceRefreshId.
/// <para>
/// A unique ID for tracking the progress of the instance refresh.
/// </para>
/// </summary>
[AWSProperty(Min=1, Max=255)]
public string InstanceRefreshId
{
get { return this._instanceRefreshId; }
set { this._instanceRefreshId = value; }
}
// Check to see if InstanceRefreshId property is set
internal bool IsSetInstanceRefreshId()
{
return this._instanceRefreshId != null;
}
}
}
| 58 |
aws-sdk-net
|
aws
|
C#
|
/*
* 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 autoscaling-2011-01-01.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.AutoScaling.Model
{
/// <summary>
/// Describes information used to create a step adjustment for a step scaling policy.
///
///
/// <para>
/// For the following examples, suppose that you have an alarm with a breach threshold
/// of 50:
/// </para>
/// <ul> <li>
/// <para>
/// To trigger the adjustment when the metric is greater than or equal to 50 and less
/// than 60, specify a lower bound of 0 and an upper bound of 10.
/// </para>
/// </li> <li>
/// <para>
/// To trigger the adjustment when the metric is greater than 40 and less than or equal
/// to 50, specify a lower bound of -10 and an upper bound of 0.
/// </para>
/// </li> </ul>
/// <para>
/// There are a few rules for the step adjustments for your step policy:
/// </para>
/// <ul> <li>
/// <para>
/// The ranges of your step adjustments can't overlap or have a gap.
/// </para>
/// </li> <li>
/// <para>
/// At most, one step adjustment can have a null lower bound. If one step adjustment has
/// a negative lower bound, then there must be a step adjustment with a null lower bound.
/// </para>
/// </li> <li>
/// <para>
/// At most, one step adjustment can have a null upper bound. If one step adjustment has
/// a positive upper bound, then there must be a step adjustment with a null upper bound.
/// </para>
/// </li> <li>
/// <para>
/// The upper and lower bound can't be null in the same step adjustment.
/// </para>
/// </li> </ul>
/// <para>
/// For more information, see <a href="https://docs.aws.amazon.com/autoscaling/ec2/userguide/as-scaling-simple-step.html#as-scaling-steps">Step
/// adjustments</a> in the <i>Amazon EC2 Auto Scaling User Guide</i>.
/// </para>
/// </summary>
public partial class StepAdjustment
{
private double? _metricIntervalLowerBound;
private double? _metricIntervalUpperBound;
private int? _scalingAdjustment;
/// <summary>
/// Gets and sets the property MetricIntervalLowerBound.
/// <para>
/// The lower bound for the difference between the alarm threshold and the CloudWatch
/// metric. If the metric value is above the breach threshold, the lower bound is inclusive
/// (the metric must be greater than or equal to the threshold plus the lower bound).
/// Otherwise, it is exclusive (the metric must be greater than the threshold plus the
/// lower bound). A null value indicates negative infinity.
/// </para>
/// </summary>
public double MetricIntervalLowerBound
{
get { return this._metricIntervalLowerBound.GetValueOrDefault(); }
set { this._metricIntervalLowerBound = value; }
}
// Check to see if MetricIntervalLowerBound property is set
internal bool IsSetMetricIntervalLowerBound()
{
return this._metricIntervalLowerBound.HasValue;
}
/// <summary>
/// Gets and sets the property MetricIntervalUpperBound.
/// <para>
/// The upper bound for the difference between the alarm threshold and the CloudWatch
/// metric. If the metric value is above the breach threshold, the upper bound is exclusive
/// (the metric must be less than the threshold plus the upper bound). Otherwise, it is
/// inclusive (the metric must be less than or equal to the threshold plus the upper bound).
/// A null value indicates positive infinity.
/// </para>
///
/// <para>
/// The upper bound must be greater than the lower bound.
/// </para>
/// </summary>
public double MetricIntervalUpperBound
{
get { return this._metricIntervalUpperBound.GetValueOrDefault(); }
set { this._metricIntervalUpperBound = value; }
}
// Check to see if MetricIntervalUpperBound property is set
internal bool IsSetMetricIntervalUpperBound()
{
return this._metricIntervalUpperBound.HasValue;
}
/// <summary>
/// Gets and sets the property ScalingAdjustment.
/// <para>
/// The amount by which to scale, based on the specified adjustment type. A positive value
/// adds to the current capacity while a negative number removes from the current capacity.
/// </para>
///
/// <para>
/// The amount by which to scale. The adjustment is based on the value that you specified
/// in the <code>AdjustmentType</code> property (either an absolute number or a percentage).
/// A positive value adds to the current capacity and a negative number subtracts from
/// the current capacity.
/// </para>
/// </summary>
[AWSProperty(Required=true)]
public int ScalingAdjustment
{
get { return this._scalingAdjustment.GetValueOrDefault(); }
set { this._scalingAdjustment = value; }
}
// Check to see if ScalingAdjustment property is set
internal bool IsSetScalingAdjustment()
{
return this._scalingAdjustment.HasValue;
}
}
}
| 159 |
aws-sdk-net
|
aws
|
C#
|
/*
* 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 autoscaling-2011-01-01.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.AutoScaling.Model
{
/// <summary>
/// Describes an auto scaling process that has been suspended.
///
///
/// <para>
/// For more information, see <a href="https://docs.aws.amazon.com/autoscaling/ec2/userguide/as-suspend-resume-processes.html#process-types">Scaling
/// processes</a> in the <i>Amazon EC2 Auto Scaling User Guide</i>.
/// </para>
/// </summary>
public partial class SuspendedProcess
{
private string _processName;
private string _suspensionReason;
/// <summary>
/// Gets and sets the property ProcessName.
/// <para>
/// The name of the suspended process.
/// </para>
/// </summary>
[AWSProperty(Min=1, Max=255)]
public string ProcessName
{
get { return this._processName; }
set { this._processName = value; }
}
// Check to see if ProcessName property is set
internal bool IsSetProcessName()
{
return this._processName != null;
}
/// <summary>
/// Gets and sets the property SuspensionReason.
/// <para>
/// The reason that the process was suspended.
/// </para>
/// </summary>
[AWSProperty(Min=1, Max=255)]
public string SuspensionReason
{
get { return this._suspensionReason; }
set { this._suspensionReason = value; }
}
// Check to see if SuspensionReason property is set
internal bool IsSetSuspensionReason()
{
return this._suspensionReason != null;
}
}
}
| 84 |
aws-sdk-net
|
aws
|
C#
|
/*
* 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 autoscaling-2011-01-01.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.AutoScaling.Model
{
/// <summary>
/// Container for the parameters to the SuspendProcesses operation.
/// Suspends the specified auto scaling processes, or all processes, for the specified
/// Auto Scaling group.
///
///
/// <para>
/// If you suspend either the <code>Launch</code> or <code>Terminate</code> process types,
/// it can prevent other process types from functioning properly. For more information,
/// see <a href="https://docs.aws.amazon.com/autoscaling/ec2/userguide/as-suspend-resume-processes.html">Suspending
/// and resuming scaling processes</a> in the <i>Amazon EC2 Auto Scaling User Guide</i>.
/// </para>
///
/// <para>
/// To resume processes that have been suspended, call the <a>ResumeProcesses</a> API.
/// </para>
/// </summary>
public partial class SuspendProcessesRequest : AmazonAutoScalingRequest
{
private string _autoScalingGroupName;
private List<string> _scalingProcesses = new List<string>();
/// <summary>
/// Gets and sets the property AutoScalingGroupName.
/// <para>
/// The name of the Auto Scaling group.
/// </para>
/// </summary>
[AWSProperty(Required=true, Min=1, Max=255)]
public string AutoScalingGroupName
{
get { return this._autoScalingGroupName; }
set { this._autoScalingGroupName = value; }
}
// Check to see if AutoScalingGroupName property is set
internal bool IsSetAutoScalingGroupName()
{
return this._autoScalingGroupName != null;
}
/// <summary>
/// Gets and sets the property ScalingProcesses.
/// <para>
/// One or more of the following processes:
/// </para>
/// <ul> <li>
/// <para>
/// <code>Launch</code>
/// </para>
/// </li> <li>
/// <para>
/// <code>Terminate</code>
/// </para>
/// </li> <li>
/// <para>
/// <code>AddToLoadBalancer</code>
/// </para>
/// </li> <li>
/// <para>
/// <code>AlarmNotification</code>
/// </para>
/// </li> <li>
/// <para>
/// <code>AZRebalance</code>
/// </para>
/// </li> <li>
/// <para>
/// <code>HealthCheck</code>
/// </para>
/// </li> <li>
/// <para>
/// <code>InstanceRefresh</code>
/// </para>
/// </li> <li>
/// <para>
/// <code>ReplaceUnhealthy</code>
/// </para>
/// </li> <li>
/// <para>
/// <code>ScheduledActions</code>
/// </para>
/// </li> </ul>
/// <para>
/// If you omit this property, all processes are specified.
/// </para>
/// </summary>
public List<string> ScalingProcesses
{
get { return this._scalingProcesses; }
set { this._scalingProcesses = value; }
}
// Check to see if ScalingProcesses property is set
internal bool IsSetScalingProcesses()
{
return this._scalingProcesses != null && this._scalingProcesses.Count > 0;
}
}
}
| 131 |
aws-sdk-net
|
aws
|
C#
|
/*
* 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 autoscaling-2011-01-01.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.AutoScaling.Model
{
/// <summary>
/// This is the response object from the SuspendProcesses operation.
/// </summary>
public partial class SuspendProcessesResponse : AmazonWebServiceResponse
{
}
}
| 38 |
aws-sdk-net
|
aws
|
C#
|
/*
* 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 autoscaling-2011-01-01.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.AutoScaling.Model
{
/// <summary>
/// Describes a tag for an Auto Scaling group.
/// </summary>
public partial class Tag
{
private string _key;
private bool? _propagateAtLaunch;
private string _resourceId;
private string _resourceType;
private string _value;
/// <summary>
/// Gets and sets the property Key.
/// <para>
/// The tag key.
/// </para>
/// </summary>
[AWSProperty(Required=true, Min=1, Max=128)]
public string Key
{
get { return this._key; }
set { this._key = value; }
}
// Check to see if Key property is set
internal bool IsSetKey()
{
return this._key != null;
}
/// <summary>
/// Gets and sets the property PropagateAtLaunch.
/// <para>
/// Determines whether the tag is added to new instances as they are launched in the group.
/// </para>
/// </summary>
public bool PropagateAtLaunch
{
get { return this._propagateAtLaunch.GetValueOrDefault(); }
set { this._propagateAtLaunch = value; }
}
// Check to see if PropagateAtLaunch property is set
internal bool IsSetPropagateAtLaunch()
{
return this._propagateAtLaunch.HasValue;
}
/// <summary>
/// Gets and sets the property ResourceId.
/// <para>
/// The name of the Auto Scaling group.
/// </para>
/// </summary>
public string ResourceId
{
get { return this._resourceId; }
set { this._resourceId = value; }
}
// Check to see if ResourceId property is set
internal bool IsSetResourceId()
{
return this._resourceId != null;
}
/// <summary>
/// Gets and sets the property ResourceType.
/// <para>
/// The type of resource. The only supported value is <code>auto-scaling-group</code>.
/// </para>
/// </summary>
public string ResourceType
{
get { return this._resourceType; }
set { this._resourceType = value; }
}
// Check to see if ResourceType property is set
internal bool IsSetResourceType()
{
return this._resourceType != null;
}
/// <summary>
/// Gets and sets the property Value.
/// <para>
/// The tag value.
/// </para>
/// </summary>
[AWSProperty(Min=0, Max=256)]
public string Value
{
get { return this._value; }
set { this._value = value; }
}
// Check to see if Value property is set
internal bool IsSetValue()
{
return this._value != null;
}
}
}
| 135 |
aws-sdk-net
|
aws
|
C#
|
/*
* 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 autoscaling-2011-01-01.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.AutoScaling.Model
{
/// <summary>
/// Describes a tag for an Auto Scaling group.
/// </summary>
public partial class TagDescription
{
private string _key;
private bool? _propagateAtLaunch;
private string _resourceId;
private string _resourceType;
private string _value;
/// <summary>
/// Gets and sets the property Key.
/// <para>
/// The tag key.
/// </para>
/// </summary>
[AWSProperty(Min=1, Max=128)]
public string Key
{
get { return this._key; }
set { this._key = value; }
}
// Check to see if Key property is set
internal bool IsSetKey()
{
return this._key != null;
}
/// <summary>
/// Gets and sets the property PropagateAtLaunch.
/// <para>
/// Determines whether the tag is added to new instances as they are launched in the group.
/// </para>
/// </summary>
public bool PropagateAtLaunch
{
get { return this._propagateAtLaunch.GetValueOrDefault(); }
set { this._propagateAtLaunch = value; }
}
// Check to see if PropagateAtLaunch property is set
internal bool IsSetPropagateAtLaunch()
{
return this._propagateAtLaunch.HasValue;
}
/// <summary>
/// Gets and sets the property ResourceId.
/// <para>
/// The name of the group.
/// </para>
/// </summary>
public string ResourceId
{
get { return this._resourceId; }
set { this._resourceId = value; }
}
// Check to see if ResourceId property is set
internal bool IsSetResourceId()
{
return this._resourceId != null;
}
/// <summary>
/// Gets and sets the property ResourceType.
/// <para>
/// The type of resource. The only supported value is <code>auto-scaling-group</code>.
/// </para>
/// </summary>
public string ResourceType
{
get { return this._resourceType; }
set { this._resourceType = value; }
}
// Check to see if ResourceType property is set
internal bool IsSetResourceType()
{
return this._resourceType != null;
}
/// <summary>
/// Gets and sets the property Value.
/// <para>
/// The tag value.
/// </para>
/// </summary>
[AWSProperty(Min=0, Max=256)]
public string Value
{
get { return this._value; }
set { this._value = value; }
}
// Check to see if Value property is set
internal bool IsSetValue()
{
return this._value != null;
}
}
}
| 135 |
aws-sdk-net
|
aws
|
C#
|
/*
* 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 autoscaling-2011-01-01.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.AutoScaling.Model
{
/// <summary>
/// Represents a target tracking scaling policy configuration to use with Amazon EC2 Auto
/// Scaling.
/// </summary>
public partial class TargetTrackingConfiguration
{
private CustomizedMetricSpecification _customizedMetricSpecification;
private bool? _disableScaleIn;
private PredefinedMetricSpecification _predefinedMetricSpecification;
private double? _targetValue;
/// <summary>
/// Gets and sets the property CustomizedMetricSpecification.
/// <para>
/// A customized metric. You must specify either a predefined metric or a customized metric.
/// </para>
/// </summary>
public CustomizedMetricSpecification CustomizedMetricSpecification
{
get { return this._customizedMetricSpecification; }
set { this._customizedMetricSpecification = value; }
}
// Check to see if CustomizedMetricSpecification property is set
internal bool IsSetCustomizedMetricSpecification()
{
return this._customizedMetricSpecification != null;
}
/// <summary>
/// Gets and sets the property DisableScaleIn.
/// <para>
/// Indicates whether scaling in by the target tracking scaling policy is disabled. If
/// scaling in is disabled, the target tracking scaling policy doesn't remove instances
/// from the Auto Scaling group. Otherwise, the target tracking scaling policy can remove
/// instances from the Auto Scaling group. The default is <code>false</code>.
/// </para>
/// </summary>
public bool DisableScaleIn
{
get { return this._disableScaleIn.GetValueOrDefault(); }
set { this._disableScaleIn = value; }
}
// Check to see if DisableScaleIn property is set
internal bool IsSetDisableScaleIn()
{
return this._disableScaleIn.HasValue;
}
/// <summary>
/// Gets and sets the property PredefinedMetricSpecification.
/// <para>
/// A predefined metric. You must specify either a predefined metric or a customized metric.
/// </para>
/// </summary>
public PredefinedMetricSpecification PredefinedMetricSpecification
{
get { return this._predefinedMetricSpecification; }
set { this._predefinedMetricSpecification = value; }
}
// Check to see if PredefinedMetricSpecification property is set
internal bool IsSetPredefinedMetricSpecification()
{
return this._predefinedMetricSpecification != null;
}
/// <summary>
/// Gets and sets the property TargetValue.
/// <para>
/// The target value for the metric.
/// </para>
/// <note>
/// <para>
/// Some metrics are based on a count instead of a percentage, such as the request count
/// for an Application Load Balancer or the number of messages in an SQS queue. If the
/// scaling policy specifies one of these metrics, specify the target utilization as the
/// optimal average request or message count per instance during any one-minute interval.
///
/// </para>
/// </note>
/// </summary>
[AWSProperty(Required=true)]
public double TargetValue
{
get { return this._targetValue.GetValueOrDefault(); }
set { this._targetValue = value; }
}
// Check to see if TargetValue property is set
internal bool IsSetTargetValue()
{
return this._targetValue.HasValue;
}
}
}
| 128 |
aws-sdk-net
|
aws
|
C#
|
/*
* 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 autoscaling-2011-01-01.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.AutoScaling.Model
{
/// <summary>
/// The metric data to return. Also defines whether this call is returning data for one
/// metric only, or whether it is performing a math expression on the values of returned
/// metric statistics to create a new time series. A time series is a series of data points,
/// each of which is associated with a timestamp.
/// </summary>
public partial class TargetTrackingMetricDataQuery
{
private string _expression;
private string _id;
private string _label;
private TargetTrackingMetricStat _metricStat;
private bool? _returnData;
/// <summary>
/// Gets and sets the property Expression.
/// <para>
/// The math expression to perform on the returned data, if this object is performing
/// a math expression. This expression can use the <code>Id</code> of the other metrics
/// to refer to those metrics, and can also use the <code>Id</code> of other expressions
/// to use the result of those expressions.
/// </para>
///
/// <para>
/// Conditional: Within each <code>TargetTrackingMetricDataQuery</code> object, you must
/// specify either <code>Expression</code> or <code>MetricStat</code>, but not both.
/// </para>
/// </summary>
[AWSProperty(Min=1, Max=2047)]
public string Expression
{
get { return this._expression; }
set { this._expression = value; }
}
// Check to see if Expression property is set
internal bool IsSetExpression()
{
return this._expression != null;
}
/// <summary>
/// Gets and sets the property Id.
/// <para>
/// A short name that identifies the object's results in the response. This name must
/// be unique among all <code>TargetTrackingMetricDataQuery</code> objects specified for
/// a single scaling policy. If you are performing math expressions on this set of data,
/// this name represents that data and can serve as a variable in the mathematical expression.
/// The valid characters are letters, numbers, and underscores. The first character must
/// be a lowercase letter.
/// </para>
/// </summary>
[AWSProperty(Required=true, Min=1, Max=255)]
public string Id
{
get { return this._id; }
set { this._id = value; }
}
// Check to see if Id property is set
internal bool IsSetId()
{
return this._id != null;
}
/// <summary>
/// Gets and sets the property Label.
/// <para>
/// A human-readable label for this metric or expression. This is especially useful if
/// this is a math expression, so that you know what the value represents.
/// </para>
/// </summary>
[AWSProperty(Max=2047)]
public string Label
{
get { return this._label; }
set { this._label = value; }
}
// Check to see if Label property is set
internal bool IsSetLabel()
{
return this._label != null;
}
/// <summary>
/// Gets and sets the property MetricStat.
/// <para>
/// Information about the metric data to return.
/// </para>
///
/// <para>
/// Conditional: Within each <code>TargetTrackingMetricDataQuery</code> object, you must
/// specify either <code>Expression</code> or <code>MetricStat</code>, but not both.
/// </para>
/// </summary>
public TargetTrackingMetricStat MetricStat
{
get { return this._metricStat; }
set { this._metricStat = value; }
}
// Check to see if MetricStat property is set
internal bool IsSetMetricStat()
{
return this._metricStat != null;
}
/// <summary>
/// Gets and sets the property ReturnData.
/// <para>
/// Indicates whether to return the timestamps and raw data values of this metric.
/// </para>
///
/// <para>
/// If you use any math expressions, specify <code>true</code> for this value for only
/// the final math expression that the metric specification is based on. You must specify
/// <code>false</code> for <code>ReturnData</code> for all the other metrics and expressions
/// used in the metric specification.
/// </para>
///
/// <para>
/// If you are only retrieving metrics and not performing any math expressions, do not
/// specify anything for <code>ReturnData</code>. This sets it to its default (<code>true</code>).
/// </para>
/// </summary>
public bool ReturnData
{
get { return this._returnData.GetValueOrDefault(); }
set { this._returnData = value; }
}
// Check to see if ReturnData property is set
internal bool IsSetReturnData()
{
return this._returnData.HasValue;
}
}
}
| 170 |
aws-sdk-net
|
aws
|
C#
|
/*
* 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 autoscaling-2011-01-01.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.AutoScaling.Model
{
/// <summary>
/// This structure defines the CloudWatch metric to return, along with the statistic and
/// unit.
///
///
/// <para>
/// For more information about the CloudWatch terminology below, see <a href="https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/cloudwatch_concepts.html">Amazon
/// CloudWatch concepts</a> in the <i>Amazon CloudWatch User Guide</i>.
/// </para>
/// </summary>
public partial class TargetTrackingMetricStat
{
private Metric _metric;
private string _stat;
private string _unit;
/// <summary>
/// Gets and sets the property Metric.
/// <para>
/// The metric to use.
/// </para>
/// </summary>
[AWSProperty(Required=true)]
public Metric Metric
{
get { return this._metric; }
set { this._metric = value; }
}
// Check to see if Metric property is set
internal bool IsSetMetric()
{
return this._metric != null;
}
/// <summary>
/// Gets and sets the property Stat.
/// <para>
/// The statistic to return. It can include any CloudWatch statistic or extended statistic.
/// For a list of valid values, see the table in <a href="https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/cloudwatch_concepts.html#Statistic">Statistics</a>
/// in the <i>Amazon CloudWatch User Guide</i>.
/// </para>
///
/// <para>
/// The most commonly used metric for scaling is <code>Average</code>.
/// </para>
/// </summary>
[AWSProperty(Required=true, Min=1, Max=100)]
public string Stat
{
get { return this._stat; }
set { this._stat = value; }
}
// Check to see if Stat property is set
internal bool IsSetStat()
{
return this._stat != null;
}
/// <summary>
/// Gets and sets the property Unit.
/// <para>
/// The unit to use for the returned data points. For a complete list of the units that
/// CloudWatch supports, see the <a href="https://docs.aws.amazon.com/AmazonCloudWatch/latest/APIReference/API_MetricDatum.html">MetricDatum</a>
/// data type in the <i>Amazon CloudWatch API Reference</i>.
/// </para>
/// </summary>
public string Unit
{
get { return this._unit; }
set { this._unit = value; }
}
// Check to see if Unit property is set
internal bool IsSetUnit()
{
return this._unit != null;
}
}
}
| 112 |
aws-sdk-net
|
aws
|
C#
|
/*
* 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 autoscaling-2011-01-01.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.AutoScaling.Model
{
/// <summary>
/// Container for the parameters to the TerminateInstanceInAutoScalingGroup operation.
/// Terminates the specified instance and optionally adjusts the desired group size. This
/// operation cannot be called on instances in a warm pool.
///
///
/// <para>
/// This call simply makes a termination request. The instance is not terminated immediately.
/// When an instance is terminated, the instance status changes to <code>terminated</code>.
/// You can't connect to or start an instance after you've terminated it.
/// </para>
///
/// <para>
/// If you do not specify the option to decrement the desired capacity, Amazon EC2 Auto
/// Scaling launches instances to replace the ones that are terminated.
/// </para>
///
/// <para>
/// By default, Amazon EC2 Auto Scaling balances instances across all Availability Zones.
/// If you decrement the desired capacity, your Auto Scaling group can become unbalanced
/// between Availability Zones. Amazon EC2 Auto Scaling tries to rebalance the group,
/// and rebalancing might terminate instances in other zones. For more information, see
/// <a href="https://docs.aws.amazon.com/autoscaling/ec2/userguide/auto-scaling-benefits.html#AutoScalingBehavior.InstanceUsage">Rebalancing
/// activities</a> in the <i>Amazon EC2 Auto Scaling User Guide</i>.
/// </para>
/// </summary>
public partial class TerminateInstanceInAutoScalingGroupRequest : AmazonAutoScalingRequest
{
private string _instanceId;
private bool? _shouldDecrementDesiredCapacity;
/// <summary>
/// Gets and sets the property InstanceId.
/// <para>
/// The ID of the instance.
/// </para>
/// </summary>
[AWSProperty(Required=true, Min=1, Max=19)]
public string InstanceId
{
get { return this._instanceId; }
set { this._instanceId = value; }
}
// Check to see if InstanceId property is set
internal bool IsSetInstanceId()
{
return this._instanceId != null;
}
/// <summary>
/// Gets and sets the property ShouldDecrementDesiredCapacity.
/// <para>
/// Indicates whether terminating the instance also decrements the size of the Auto Scaling
/// group.
/// </para>
/// </summary>
[AWSProperty(Required=true)]
public bool ShouldDecrementDesiredCapacity
{
get { return this._shouldDecrementDesiredCapacity.GetValueOrDefault(); }
set { this._shouldDecrementDesiredCapacity = value; }
}
// Check to see if ShouldDecrementDesiredCapacity property is set
internal bool IsSetShouldDecrementDesiredCapacity()
{
return this._shouldDecrementDesiredCapacity.HasValue;
}
}
}
| 102 |
aws-sdk-net
|
aws
|
C#
|
/*
* 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 autoscaling-2011-01-01.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.AutoScaling.Model
{
/// <summary>
/// This is the response object from the TerminateInstanceInAutoScalingGroup operation.
/// </summary>
public partial class TerminateInstanceInAutoScalingGroupResponse : AmazonWebServiceResponse
{
private Activity _activity;
/// <summary>
/// Gets and sets the property Activity.
/// <para>
/// A scaling activity.
/// </para>
/// </summary>
public Activity Activity
{
get { return this._activity; }
set { this._activity = value; }
}
// Check to see if Activity property is set
internal bool IsSetActivity()
{
return this._activity != null;
}
}
}
| 57 |
aws-sdk-net
|
aws
|
C#
|
/*
* 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 autoscaling-2011-01-01.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.AutoScaling.Model
{
/// <summary>
/// Specifies the minimum and maximum for the <code>TotalLocalStorageGB</code> object
/// when you specify <a>InstanceRequirements</a> for an Auto Scaling group.
/// </summary>
public partial class TotalLocalStorageGBRequest
{
private double? _max;
private double? _min;
/// <summary>
/// Gets and sets the property Max.
/// <para>
/// The storage maximum in GB.
/// </para>
/// </summary>
[AWSProperty(Min=0)]
public double Max
{
get { return this._max.GetValueOrDefault(); }
set { this._max = value; }
}
// Check to see if Max property is set
internal bool IsSetMax()
{
return this._max.HasValue;
}
/// <summary>
/// Gets and sets the property Min.
/// <para>
/// The storage minimum in GB.
/// </para>
/// </summary>
[AWSProperty(Min=0)]
public double Min
{
get { return this._min.GetValueOrDefault(); }
set { this._min = value; }
}
// Check to see if Min property is set
internal bool IsSetMin()
{
return this._min.HasValue;
}
}
}
| 79 |
aws-sdk-net
|
aws
|
C#
|
/*
* 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 autoscaling-2011-01-01.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.AutoScaling.Model
{
/// <summary>
/// Identifying information for a traffic source.
/// </summary>
public partial class TrafficSourceIdentifier
{
private string _identifier;
private string _type;
/// <summary>
/// Gets and sets the property Identifier.
/// <para>
/// Identifies the traffic source.
/// </para>
///
/// <para>
/// For Application Load Balancers, Gateway Load Balancers, Network Load Balancers, and
/// VPC Lattice, this will be the Amazon Resource Name (ARN) for a target group in this
/// account and Region. For Classic Load Balancers, this will be the name of the Classic
/// Load Balancer in this account and Region.
/// </para>
///
/// <para>
/// For example:
/// </para>
/// <ul> <li>
/// <para>
/// Application Load Balancer ARN: <code>arn:aws:elasticloadbalancing:us-west-2:123456789012:targetgroup/my-targets/1234567890123456</code>
///
/// </para>
/// </li> <li>
/// <para>
/// Classic Load Balancer name: <code>my-classic-load-balancer</code>
/// </para>
/// </li> <li>
/// <para>
/// VPC Lattice ARN: <code>arn:aws:vpc-lattice:us-west-2:123456789012:targetgroup/tg-1234567890123456</code>
///
/// </para>
/// </li> </ul>
/// <para>
/// To get the ARN of a target group for a Application Load Balancer, Gateway Load Balancer,
/// or Network Load Balancer, or the name of a Classic Load Balancer, use the Elastic
/// Load Balancing <a href="https://docs.aws.amazon.com/elasticloadbalancing/latest/APIReference/API_DescribeTargetGroups.html">DescribeTargetGroups</a>
/// and <a href="https://docs.aws.amazon.com/elasticloadbalancing/latest/APIReference/API_DescribeLoadBalancers.html">DescribeLoadBalancers</a>
/// API operations.
/// </para>
///
/// <para>
/// To get the ARN of a target group for VPC Lattice, use the VPC Lattice <a href="https://docs.aws.amazon.com/vpc-lattice/latest/APIReference/API_GetTargetGroup.html">GetTargetGroup</a>
/// API operation.
/// </para>
/// </summary>
[AWSProperty(Required=true, Min=1, Max=511)]
public string Identifier
{
get { return this._identifier; }
set { this._identifier = value; }
}
// Check to see if Identifier property is set
internal bool IsSetIdentifier()
{
return this._identifier != null;
}
/// <summary>
/// Gets and sets the property Type.
/// <para>
/// Provides additional context for the value of <code>Identifier</code>.
/// </para>
///
/// <para>
/// The following lists the valid values:
/// </para>
/// <ul> <li>
/// <para>
/// <code>elb</code> if <code>Identifier</code> is the name of a Classic Load Balancer.
/// </para>
/// </li> <li>
/// <para>
/// <code>elbv2</code> if <code>Identifier</code> is the ARN of an Application Load Balancer,
/// Gateway Load Balancer, or Network Load Balancer target group.
/// </para>
/// </li> <li>
/// <para>
/// <code>vpc-lattice</code> if <code>Identifier</code> is the ARN of a VPC Lattice target
/// group.
/// </para>
/// </li> </ul>
/// <para>
/// Required if the identifier is the name of a Classic Load Balancer.
/// </para>
/// </summary>
[AWSProperty(Min=1, Max=511)]
public string Type
{
get { return this._type; }
set { this._type = value; }
}
// Check to see if Type property is set
internal bool IsSetType()
{
return this._type != null;
}
}
}
| 138 |
aws-sdk-net
|
aws
|
C#
|
/*
* 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 autoscaling-2011-01-01.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.AutoScaling.Model
{
/// <summary>
/// Describes the state of a traffic source.
/// </summary>
public partial class TrafficSourceState
{
private string _identifier;
private string _state;
private string _trafficSource;
private string _type;
/// <summary>
/// Gets and sets the property Identifier.
/// <para>
/// The unique identifier of the traffic source.
/// </para>
/// </summary>
[AWSProperty(Min=1, Max=511)]
public string Identifier
{
get { return this._identifier; }
set { this._identifier = value; }
}
// Check to see if Identifier property is set
internal bool IsSetIdentifier()
{
return this._identifier != null;
}
/// <summary>
/// Gets and sets the property State.
/// <para>
/// Describes the current state of a traffic source.
/// </para>
///
/// <para>
/// The state values are as follows:
/// </para>
/// <ul> <li>
/// <para>
/// <code>Adding</code> - The Auto Scaling instances are being registered with the load
/// balancer or target group.
/// </para>
/// </li> <li>
/// <para>
/// <code>Added</code> - All Auto Scaling instances are registered with the load balancer
/// or target group.
/// </para>
/// </li> <li>
/// <para>
/// <code>InService</code> - For an Elastic Load Balancing load balancer or target group,
/// at least one Auto Scaling instance passed an <code>ELB</code> health check. For VPC
/// Lattice, at least one Auto Scaling instance passed an <code>VPC_LATTICE</code> health
/// check.
/// </para>
/// </li> <li>
/// <para>
/// <code>Removing</code> - The Auto Scaling instances are being deregistered from the
/// load balancer or target group. If connection draining (deregistration delay) is enabled,
/// Elastic Load Balancing or VPC Lattice waits for in-flight requests to complete before
/// deregistering the instances.
/// </para>
/// </li> <li>
/// <para>
/// <code>Removed</code> - All Auto Scaling instances are deregistered from the load
/// balancer or target group.
/// </para>
/// </li> </ul>
/// </summary>
[AWSProperty(Min=1, Max=255)]
public string State
{
get { return this._state; }
set { this._state = value; }
}
// Check to see if State property is set
internal bool IsSetState()
{
return this._state != null;
}
/// <summary>
/// Gets and sets the property TrafficSource.
/// <para>
/// This is replaced by <code>Identifier</code>.
/// </para>
/// </summary>
[Obsolete("TrafficSource has been replaced by Identifier")]
[AWSProperty(Min=1, Max=511)]
public string TrafficSource
{
get { return this._trafficSource; }
set { this._trafficSource = value; }
}
// Check to see if TrafficSource property is set
internal bool IsSetTrafficSource()
{
return this._trafficSource != null;
}
/// <summary>
/// Gets and sets the property Type.
/// <para>
/// Provides additional context for the value of <code>Identifier</code>.
/// </para>
///
/// <para>
/// The following lists the valid values:
/// </para>
/// <ul> <li>
/// <para>
/// <code>elb</code> if <code>Identifier</code> is the name of a Classic Load Balancer.
/// </para>
/// </li> <li>
/// <para>
/// <code>elbv2</code> if <code>Identifier</code> is the ARN of an Application Load Balancer,
/// Gateway Load Balancer, or Network Load Balancer target group.
/// </para>
/// </li> <li>
/// <para>
/// <code>vpc-lattice</code> if <code>Identifier</code> is the ARN of a VPC Lattice target
/// group.
/// </para>
/// </li> </ul>
/// <para>
/// Required if the identifier is the name of a Classic Load Balancer.
/// </para>
/// </summary>
[AWSProperty(Min=1, Max=511)]
public string Type
{
get { return this._type; }
set { this._type = value; }
}
// Check to see if Type property is set
internal bool IsSetType()
{
return this._type != null;
}
}
}
| 175 |
aws-sdk-net
|
aws
|
C#
|
/*
* 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 autoscaling-2011-01-01.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.AutoScaling.Model
{
/// <summary>
/// Container for the parameters to the UpdateAutoScalingGroup operation.
/// <b>We strongly recommend that all Auto Scaling groups use launch templates to ensure
/// full functionality for Amazon EC2 Auto Scaling and Amazon EC2.</b>
///
///
/// <para>
/// Updates the configuration for the specified Auto Scaling group.
/// </para>
///
/// <para>
/// To update an Auto Scaling group, specify the name of the group and the property that
/// you want to change. Any properties that you don't specify are not changed by this
/// update request. The new settings take effect on any scaling activities after this
/// call returns.
/// </para>
///
/// <para>
/// If you associate a new launch configuration or template with an Auto Scaling group,
/// all new instances will get the updated configuration. Existing instances continue
/// to run with the configuration that they were originally launched with. When you update
/// a group to specify a mixed instances policy instead of a launch configuration or template,
/// existing instances may be replaced to match the new purchasing options that you specified
/// in the policy. For example, if the group currently has 100% On-Demand capacity and
/// the policy specifies 50% Spot capacity, this means that half of your instances will
/// be gradually terminated and relaunched as Spot Instances. When replacing instances,
/// Amazon EC2 Auto Scaling launches new instances before terminating the old ones, so
/// that updating your group does not compromise the performance or availability of your
/// application.
/// </para>
///
/// <para>
/// Note the following about changing <code>DesiredCapacity</code>, <code>MaxSize</code>,
/// or <code>MinSize</code>:
/// </para>
/// <ul> <li>
/// <para>
/// If a scale-in activity occurs as a result of a new <code>DesiredCapacity</code> value
/// that is lower than the current size of the group, the Auto Scaling group uses its
/// termination policy to determine which instances to terminate.
/// </para>
/// </li> <li>
/// <para>
/// If you specify a new value for <code>MinSize</code> without specifying a value for
/// <code>DesiredCapacity</code>, and the new <code>MinSize</code> is larger than the
/// current size of the group, this sets the group's <code>DesiredCapacity</code> to the
/// new <code>MinSize</code> value.
/// </para>
/// </li> <li>
/// <para>
/// If you specify a new value for <code>MaxSize</code> without specifying a value for
/// <code>DesiredCapacity</code>, and the new <code>MaxSize</code> is smaller than the
/// current size of the group, this sets the group's <code>DesiredCapacity</code> to the
/// new <code>MaxSize</code> value.
/// </para>
/// </li> </ul>
/// <para>
/// To see which properties have been set, call the <a>DescribeAutoScalingGroups</a> API.
/// To view the scaling policies for an Auto Scaling group, call the <a>DescribePolicies</a>
/// API. If the group has scaling policies, you can update them by calling the <a>PutScalingPolicy</a>
/// API.
/// </para>
/// </summary>
public partial class UpdateAutoScalingGroupRequest : AmazonAutoScalingRequest
{
private string _autoScalingGroupName;
private List<string> _availabilityZones = new List<string>();
private bool? _capacityRebalance;
private string _context;
private int? _defaultCooldown;
private int? _defaultInstanceWarmup;
private int? _desiredCapacity;
private string _desiredCapacityType;
private int? _healthCheckGracePeriod;
private string _healthCheckType;
private string _launchConfigurationName;
private LaunchTemplateSpecification _launchTemplate;
private int? _maxInstanceLifetime;
private int? _maxSize;
private int? _minSize;
private MixedInstancesPolicy _mixedInstancesPolicy;
private bool? _newInstancesProtectedFromScaleIn;
private string _placementGroup;
private string _serviceLinkedRoleARN;
private List<string> _terminationPolicies = new List<string>();
private string _vpcZoneIdentifier;
/// <summary>
/// Gets and sets the property AutoScalingGroupName.
/// <para>
/// The name of the Auto Scaling group.
/// </para>
/// </summary>
[AWSProperty(Required=true, Min=1, Max=255)]
public string AutoScalingGroupName
{
get { return this._autoScalingGroupName; }
set { this._autoScalingGroupName = value; }
}
// Check to see if AutoScalingGroupName property is set
internal bool IsSetAutoScalingGroupName()
{
return this._autoScalingGroupName != null;
}
/// <summary>
/// Gets and sets the property AvailabilityZones.
/// <para>
/// One or more Availability Zones for the group.
/// </para>
/// </summary>
public List<string> AvailabilityZones
{
get { return this._availabilityZones; }
set { this._availabilityZones = value; }
}
// Check to see if AvailabilityZones property is set
internal bool IsSetAvailabilityZones()
{
return this._availabilityZones != null && this._availabilityZones.Count > 0;
}
/// <summary>
/// Gets and sets the property CapacityRebalance.
/// <para>
/// Enables or disables Capacity Rebalancing. For more information, see <a href="https://docs.aws.amazon.com/autoscaling/ec2/userguide/ec2-auto-scaling-capacity-rebalancing.html">Use
/// Capacity Rebalancing to handle Amazon EC2 Spot Interruptions</a> in the <i>Amazon
/// EC2 Auto Scaling User Guide</i>.
/// </para>
/// </summary>
public bool CapacityRebalance
{
get { return this._capacityRebalance.GetValueOrDefault(); }
set { this._capacityRebalance = value; }
}
// Check to see if CapacityRebalance property is set
internal bool IsSetCapacityRebalance()
{
return this._capacityRebalance.HasValue;
}
/// <summary>
/// Gets and sets the property Context.
/// <para>
/// Reserved.
/// </para>
/// </summary>
public string Context
{
get { return this._context; }
set { this._context = value; }
}
// Check to see if Context property is set
internal bool IsSetContext()
{
return this._context != null;
}
/// <summary>
/// Gets and sets the property DefaultCooldown.
/// <para>
/// <i>Only needed if you use simple scaling policies.</i>
/// </para>
///
/// <para>
/// The amount of time, in seconds, between one scaling activity ending and another one
/// starting due to simple scaling policies. For more information, see <a href="https://docs.aws.amazon.com/autoscaling/ec2/userguide/Cooldown.html">Scaling
/// cooldowns for Amazon EC2 Auto Scaling</a> in the <i>Amazon EC2 Auto Scaling User Guide</i>.
/// </para>
/// </summary>
public int DefaultCooldown
{
get { return this._defaultCooldown.GetValueOrDefault(); }
set { this._defaultCooldown = value; }
}
// Check to see if DefaultCooldown property is set
internal bool IsSetDefaultCooldown()
{
return this._defaultCooldown.HasValue;
}
/// <summary>
/// Gets and sets the property DefaultInstanceWarmup.
/// <para>
/// The amount of time, in seconds, until a new instance is considered to have finished
/// initializing and resource consumption to become stable after it enters the <code>InService</code>
/// state.
/// </para>
///
/// <para>
/// During an instance refresh, Amazon EC2 Auto Scaling waits for the warm-up period after
/// it replaces an instance before it moves on to replacing the next instance. Amazon
/// EC2 Auto Scaling also waits for the warm-up period before aggregating the metrics
/// for new instances with existing instances in the Amazon CloudWatch metrics that are
/// used for scaling, resulting in more reliable usage data. For more information, see
/// <a href="https://docs.aws.amazon.com/autoscaling/ec2/userguide/ec2-auto-scaling-default-instance-warmup.html">Set
/// the default instance warmup for an Auto Scaling group</a> in the <i>Amazon EC2 Auto
/// Scaling User Guide</i>.
/// </para>
/// <important>
/// <para>
/// To manage various warm-up settings at the group level, we recommend that you set the
/// default instance warmup, <i>even if it is set to 0 seconds</i>. To remove a value
/// that you previously set, include the property but specify <code>-1</code> for the
/// value. However, we strongly recommend keeping the default instance warmup enabled
/// by specifying a value of <code>0</code> or other nominal value.
/// </para>
/// </important>
/// </summary>
public int DefaultInstanceWarmup
{
get { return this._defaultInstanceWarmup.GetValueOrDefault(); }
set { this._defaultInstanceWarmup = value; }
}
// Check to see if DefaultInstanceWarmup property is set
internal bool IsSetDefaultInstanceWarmup()
{
return this._defaultInstanceWarmup.HasValue;
}
/// <summary>
/// Gets and sets the property DesiredCapacity.
/// <para>
/// The desired capacity is the initial capacity of the Auto Scaling group after this
/// operation completes and the capacity it attempts to maintain. This number must be
/// greater than or equal to the minimum size of the group and less than or equal to the
/// maximum size of the group.
/// </para>
/// </summary>
public int DesiredCapacity
{
get { return this._desiredCapacity.GetValueOrDefault(); }
set { this._desiredCapacity = value; }
}
// Check to see if DesiredCapacity property is set
internal bool IsSetDesiredCapacity()
{
return this._desiredCapacity.HasValue;
}
/// <summary>
/// Gets and sets the property DesiredCapacityType.
/// <para>
/// The unit of measurement for the value specified for desired capacity. Amazon EC2 Auto
/// Scaling supports <code>DesiredCapacityType</code> for attribute-based instance type
/// selection only. For more information, see <a href="https://docs.aws.amazon.com/autoscaling/ec2/userguide/create-asg-instance-type-requirements.html">Creating
/// an Auto Scaling group using attribute-based instance type selection</a> in the <i>Amazon
/// EC2 Auto Scaling User Guide</i>.
/// </para>
///
/// <para>
/// By default, Amazon EC2 Auto Scaling specifies <code>units</code>, which translates
/// into number of instances.
/// </para>
///
/// <para>
/// Valid values: <code>units</code> | <code>vcpu</code> | <code>memory-mib</code>
/// </para>
/// </summary>
[AWSProperty(Min=1, Max=255)]
public string DesiredCapacityType
{
get { return this._desiredCapacityType; }
set { this._desiredCapacityType = value; }
}
// Check to see if DesiredCapacityType property is set
internal bool IsSetDesiredCapacityType()
{
return this._desiredCapacityType != null;
}
/// <summary>
/// Gets and sets the property HealthCheckGracePeriod.
/// <para>
/// The amount of time, in seconds, that Amazon EC2 Auto Scaling waits before checking
/// the health status of an EC2 instance that has come into service and marking it unhealthy
/// due to a failed health check. This is useful if your instances do not immediately
/// pass their health checks after they enter the <code>InService</code> state. For more
/// information, see <a href="https://docs.aws.amazon.com/autoscaling/ec2/userguide/health-check-grace-period.html">Set
/// the health check grace period for an Auto Scaling group</a> in the <i>Amazon EC2 Auto
/// Scaling User Guide</i>.
/// </para>
/// </summary>
public int HealthCheckGracePeriod
{
get { return this._healthCheckGracePeriod.GetValueOrDefault(); }
set { this._healthCheckGracePeriod = value; }
}
// Check to see if HealthCheckGracePeriod property is set
internal bool IsSetHealthCheckGracePeriod()
{
return this._healthCheckGracePeriod.HasValue;
}
/// <summary>
/// Gets and sets the property HealthCheckType.
/// <para>
/// A comma-separated value string of one or more health check types.
/// </para>
///
/// <para>
/// The valid values are <code>EC2</code>, <code>ELB</code>, and <code>VPC_LATTICE</code>.
/// <code>EC2</code> is the default health check and cannot be disabled. For more information,
/// see <a href="https://docs.aws.amazon.com/autoscaling/ec2/userguide/healthcheck.html">Health
/// checks for Auto Scaling instances</a> in the <i>Amazon EC2 Auto Scaling User Guide</i>.
/// </para>
///
/// <para>
/// Only specify <code>EC2</code> if you must clear a value that was previously set.
/// </para>
/// </summary>
[AWSProperty(Min=1, Max=32)]
public string HealthCheckType
{
get { return this._healthCheckType; }
set { this._healthCheckType = value; }
}
// Check to see if HealthCheckType property is set
internal bool IsSetHealthCheckType()
{
return this._healthCheckType != null;
}
/// <summary>
/// Gets and sets the property LaunchConfigurationName.
/// <para>
/// The name of the launch configuration. If you specify <code>LaunchConfigurationName</code>
/// in your update request, you can't specify <code>LaunchTemplate</code> or <code>MixedInstancesPolicy</code>.
/// </para>
/// </summary>
[AWSProperty(Min=1, Max=255)]
public string LaunchConfigurationName
{
get { return this._launchConfigurationName; }
set { this._launchConfigurationName = value; }
}
// Check to see if LaunchConfigurationName property is set
internal bool IsSetLaunchConfigurationName()
{
return this._launchConfigurationName != null;
}
/// <summary>
/// Gets and sets the property LaunchTemplate.
/// <para>
/// The launch template and version to use to specify the updates. If you specify <code>LaunchTemplate</code>
/// in your update request, you can't specify <code>LaunchConfigurationName</code> or
/// <code>MixedInstancesPolicy</code>.
/// </para>
/// </summary>
public LaunchTemplateSpecification LaunchTemplate
{
get { return this._launchTemplate; }
set { this._launchTemplate = value; }
}
// Check to see if LaunchTemplate property is set
internal bool IsSetLaunchTemplate()
{
return this._launchTemplate != null;
}
/// <summary>
/// Gets and sets the property MaxInstanceLifetime.
/// <para>
/// The maximum amount of time, in seconds, that an instance can be in service. The default
/// is null. If specified, the value must be either 0 or a number equal to or greater
/// than 86,400 seconds (1 day). To clear a previously set value, specify a new value
/// of 0. For more information, see <a href="https://docs.aws.amazon.com/autoscaling/ec2/userguide/asg-max-instance-lifetime.html">Replacing
/// Auto Scaling instances based on maximum instance lifetime</a> in the <i>Amazon EC2
/// Auto Scaling User Guide</i>.
/// </para>
/// </summary>
public int MaxInstanceLifetime
{
get { return this._maxInstanceLifetime.GetValueOrDefault(); }
set { this._maxInstanceLifetime = value; }
}
// Check to see if MaxInstanceLifetime property is set
internal bool IsSetMaxInstanceLifetime()
{
return this._maxInstanceLifetime.HasValue;
}
/// <summary>
/// Gets and sets the property MaxSize.
/// <para>
/// The maximum size of the Auto Scaling group.
/// </para>
/// <note>
/// <para>
/// With a mixed instances policy that uses instance weighting, Amazon EC2 Auto Scaling
/// may need to go above <code>MaxSize</code> to meet your capacity requirements. In this
/// event, Amazon EC2 Auto Scaling will never go above <code>MaxSize</code> by more than
/// your largest instance weight (weights that define how many units each instance contributes
/// to the desired capacity of the group).
/// </para>
/// </note>
/// </summary>
public int MaxSize
{
get { return this._maxSize.GetValueOrDefault(); }
set { this._maxSize = value; }
}
// Check to see if MaxSize property is set
internal bool IsSetMaxSize()
{
return this._maxSize.HasValue;
}
/// <summary>
/// Gets and sets the property MinSize.
/// <para>
/// The minimum size of the Auto Scaling group.
/// </para>
/// </summary>
public int MinSize
{
get { return this._minSize.GetValueOrDefault(); }
set { this._minSize = value; }
}
// Check to see if MinSize property is set
internal bool IsSetMinSize()
{
return this._minSize.HasValue;
}
/// <summary>
/// Gets and sets the property MixedInstancesPolicy.
/// <para>
/// The mixed instances policy. For more information, see <a href="https://docs.aws.amazon.com/autoscaling/ec2/userguide/ec2-auto-scaling-mixed-instances-groups.html">Auto
/// Scaling groups with multiple instance types and purchase options</a> in the <i>Amazon
/// EC2 Auto Scaling User Guide</i>.
/// </para>
/// </summary>
public MixedInstancesPolicy MixedInstancesPolicy
{
get { return this._mixedInstancesPolicy; }
set { this._mixedInstancesPolicy = value; }
}
// Check to see if MixedInstancesPolicy property is set
internal bool IsSetMixedInstancesPolicy()
{
return this._mixedInstancesPolicy != null;
}
/// <summary>
/// Gets and sets the property NewInstancesProtectedFromScaleIn.
/// <para>
/// Indicates whether newly launched instances are protected from termination by Amazon
/// EC2 Auto Scaling when scaling in. For more information about preventing instances
/// from terminating on scale in, see <a href="https://docs.aws.amazon.com/autoscaling/ec2/userguide/ec2-auto-scaling-instance-protection.html">Using
/// instance scale-in protection</a> in the <i>Amazon EC2 Auto Scaling User Guide</i>.
/// </para>
/// </summary>
public bool NewInstancesProtectedFromScaleIn
{
get { return this._newInstancesProtectedFromScaleIn.GetValueOrDefault(); }
set { this._newInstancesProtectedFromScaleIn = value; }
}
// Check to see if NewInstancesProtectedFromScaleIn property is set
internal bool IsSetNewInstancesProtectedFromScaleIn()
{
return this._newInstancesProtectedFromScaleIn.HasValue;
}
/// <summary>
/// Gets and sets the property PlacementGroup.
/// <para>
/// The name of an existing placement group into which to launch your instances. For more
/// information, see <a href="https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/placement-groups.html">Placement
/// groups</a> in the <i>Amazon EC2 User Guide for Linux Instances</i>.
/// </para>
/// <note>
/// <para>
/// A <i>cluster</i> placement group is a logical grouping of instances within a single
/// Availability Zone. You cannot specify multiple Availability Zones and a cluster placement
/// group.
/// </para>
/// </note>
/// </summary>
[AWSProperty(Min=1, Max=255)]
public string PlacementGroup
{
get { return this._placementGroup; }
set { this._placementGroup = value; }
}
// Check to see if PlacementGroup property is set
internal bool IsSetPlacementGroup()
{
return this._placementGroup != null;
}
/// <summary>
/// Gets and sets the property ServiceLinkedRoleARN.
/// <para>
/// The Amazon Resource Name (ARN) of the service-linked role that the Auto Scaling group
/// uses to call other Amazon Web Services on your behalf. For more information, see <a
/// href="https://docs.aws.amazon.com/autoscaling/ec2/userguide/autoscaling-service-linked-role.html">Service-linked
/// roles</a> in the <i>Amazon EC2 Auto Scaling User Guide</i>.
/// </para>
/// </summary>
[AWSProperty(Min=1, Max=1600)]
public string ServiceLinkedRoleARN
{
get { return this._serviceLinkedRoleARN; }
set { this._serviceLinkedRoleARN = value; }
}
// Check to see if ServiceLinkedRoleARN property is set
internal bool IsSetServiceLinkedRoleARN()
{
return this._serviceLinkedRoleARN != null;
}
/// <summary>
/// Gets and sets the property TerminationPolicies.
/// <para>
/// A policy or a list of policies that are used to select the instances to terminate.
/// The policies are executed in the order that you list them. For more information, see
/// <a href="https://docs.aws.amazon.com/autoscaling/ec2/userguide/ec2-auto-scaling-termination-policies.html">Work
/// with Amazon EC2 Auto Scaling termination policies</a> in the <i>Amazon EC2 Auto Scaling
/// User Guide</i>.
/// </para>
///
/// <para>
/// Valid values: <code>Default</code> | <code>AllocationStrategy</code> | <code>ClosestToNextInstanceHour</code>
/// | <code>NewestInstance</code> | <code>OldestInstance</code> | <code>OldestLaunchConfiguration</code>
/// | <code>OldestLaunchTemplate</code> | <code>arn:aws:lambda:region:account-id:function:my-function:my-alias</code>
///
/// </para>
/// </summary>
public List<string> TerminationPolicies
{
get { return this._terminationPolicies; }
set { this._terminationPolicies = value; }
}
// Check to see if TerminationPolicies property is set
internal bool IsSetTerminationPolicies()
{
return this._terminationPolicies != null && this._terminationPolicies.Count > 0;
}
/// <summary>
/// Gets and sets the property VPCZoneIdentifier.
/// <para>
/// A comma-separated list of subnet IDs for a virtual private cloud (VPC). If you specify
/// <code>VPCZoneIdentifier</code> with <code>AvailabilityZones</code>, the subnets that
/// you specify must reside in those Availability Zones.
/// </para>
/// </summary>
[AWSProperty(Min=1, Max=2047)]
public string VPCZoneIdentifier
{
get { return this._vpcZoneIdentifier; }
set { this._vpcZoneIdentifier = value; }
}
// Check to see if VPCZoneIdentifier property is set
internal bool IsSetVPCZoneIdentifier()
{
return this._vpcZoneIdentifier != null;
}
}
}
| 614 |
aws-sdk-net
|
aws
|
C#
|
/*
* 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 autoscaling-2011-01-01.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.AutoScaling.Model
{
/// <summary>
/// This is the response object from the UpdateAutoScalingGroup operation.
/// </summary>
public partial class UpdateAutoScalingGroupResponse : AmazonWebServiceResponse
{
}
}
| 38 |
aws-sdk-net
|
aws
|
C#
|
/*
* 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 autoscaling-2011-01-01.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.AutoScaling.Model
{
/// <summary>
/// Specifies the minimum and maximum for the <code>VCpuCount</code> object when you specify
/// <a>InstanceRequirements</a> for an Auto Scaling group.
/// </summary>
public partial class VCpuCountRequest
{
private int? _max;
private int? _min;
/// <summary>
/// Gets and sets the property Max.
/// <para>
/// The maximum number of vCPUs.
/// </para>
/// </summary>
[AWSProperty(Min=0)]
public int Max
{
get { return this._max.GetValueOrDefault(); }
set { this._max = value; }
}
// Check to see if Max property is set
internal bool IsSetMax()
{
return this._max.HasValue;
}
/// <summary>
/// Gets and sets the property Min.
/// <para>
/// The minimum number of vCPUs.
/// </para>
/// </summary>
[AWSProperty(Required=true, Min=0)]
public int Min
{
get { return this._min.GetValueOrDefault(); }
set { this._min = value; }
}
// Check to see if Min property is set
internal bool IsSetMin()
{
return this._min.HasValue;
}
}
}
| 79 |
aws-sdk-net
|
aws
|
C#
|
/*
* 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 autoscaling-2011-01-01.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.AutoScaling.Model
{
/// <summary>
/// Describes a warm pool configuration.
/// </summary>
public partial class WarmPoolConfiguration
{
private InstanceReusePolicy _instanceReusePolicy;
private int? _maxGroupPreparedCapacity;
private int? _minSize;
private WarmPoolState _poolState;
private WarmPoolStatus _status;
/// <summary>
/// Gets and sets the property InstanceReusePolicy.
/// <para>
/// The instance reuse policy.
/// </para>
/// </summary>
public InstanceReusePolicy InstanceReusePolicy
{
get { return this._instanceReusePolicy; }
set { this._instanceReusePolicy = value; }
}
// Check to see if InstanceReusePolicy property is set
internal bool IsSetInstanceReusePolicy()
{
return this._instanceReusePolicy != null;
}
/// <summary>
/// Gets and sets the property MaxGroupPreparedCapacity.
/// <para>
/// The maximum number of instances that are allowed to be in the warm pool or in any
/// state except <code>Terminated</code> for the Auto Scaling group.
/// </para>
/// </summary>
[AWSProperty(Min=-1)]
public int MaxGroupPreparedCapacity
{
get { return this._maxGroupPreparedCapacity.GetValueOrDefault(); }
set { this._maxGroupPreparedCapacity = value; }
}
// Check to see if MaxGroupPreparedCapacity property is set
internal bool IsSetMaxGroupPreparedCapacity()
{
return this._maxGroupPreparedCapacity.HasValue;
}
/// <summary>
/// Gets and sets the property MinSize.
/// <para>
/// The minimum number of instances to maintain in the warm pool.
/// </para>
/// </summary>
[AWSProperty(Min=0)]
public int MinSize
{
get { return this._minSize.GetValueOrDefault(); }
set { this._minSize = value; }
}
// Check to see if MinSize property is set
internal bool IsSetMinSize()
{
return this._minSize.HasValue;
}
/// <summary>
/// Gets and sets the property PoolState.
/// <para>
/// The instance state to transition to after the lifecycle actions are complete.
/// </para>
/// </summary>
public WarmPoolState PoolState
{
get { return this._poolState; }
set { this._poolState = value; }
}
// Check to see if PoolState property is set
internal bool IsSetPoolState()
{
return this._poolState != null;
}
/// <summary>
/// Gets and sets the property Status.
/// <para>
/// The status of a warm pool that is marked for deletion.
/// </para>
/// </summary>
public WarmPoolStatus Status
{
get { return this._status; }
set { this._status = value; }
}
// Check to see if Status property is set
internal bool IsSetStatus()
{
return this._status != null;
}
}
}
| 136 |
aws-sdk-net
|
aws
|
C#
|
/*
* 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 autoscaling-2011-01-01.normal.json service model.
*/
using System;
using System.Collections.Generic;
using System.Globalization;
using System.IO;
using System.Net;
using System.Text;
using System.Xml.Serialization;
using Amazon.AutoScaling.Model;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Transform;
using Amazon.Runtime.Internal.Util;
namespace Amazon.AutoScaling.Model.Internal.MarshallTransformations
{
/// <summary>
/// Response Unmarshaller for AcceleratorCountRequest Object
/// </summary>
public class AcceleratorCountRequestUnmarshaller : IUnmarshaller<AcceleratorCountRequest, XmlUnmarshallerContext>, IUnmarshaller<AcceleratorCountRequest, JsonUnmarshallerContext>
{
/// <summary>
/// Unmarshaller the response from the service to the response class.
/// </summary>
/// <param name="context"></param>
/// <returns></returns>
public AcceleratorCountRequest Unmarshall(XmlUnmarshallerContext context)
{
AcceleratorCountRequest unmarshalledObject = new AcceleratorCountRequest();
int originalDepth = context.CurrentDepth;
int targetDepth = originalDepth + 1;
if (context.IsStartOfDocument)
targetDepth += 2;
while (context.ReadAtDepth(originalDepth))
{
if (context.IsStartElement || context.IsAttribute)
{
if (context.TestExpression("Max", targetDepth))
{
var unmarshaller = IntUnmarshaller.Instance;
unmarshalledObject.Max = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("Min", targetDepth))
{
var unmarshaller = IntUnmarshaller.Instance;
unmarshalledObject.Min = unmarshaller.Unmarshall(context);
continue;
}
}
else if (context.IsEndElement && context.CurrentDepth < originalDepth)
{
return unmarshalledObject;
}
}
return unmarshalledObject;
}
/// <summary>
/// Unmarshaller error response to exception.
/// </summary>
/// <param name="context"></param>
/// <returns></returns>
public AcceleratorCountRequest Unmarshall(JsonUnmarshallerContext context)
{
return null;
}
private static AcceleratorCountRequestUnmarshaller _instance = new AcceleratorCountRequestUnmarshaller();
/// <summary>
/// Gets the singleton.
/// </summary>
public static AcceleratorCountRequestUnmarshaller Instance
{
get
{
return _instance;
}
}
}
}
| 103 |
aws-sdk-net
|
aws
|
C#
|
/*
* 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 autoscaling-2011-01-01.normal.json service model.
*/
using System;
using System.Collections.Generic;
using System.Globalization;
using System.IO;
using System.Net;
using System.Text;
using System.Xml.Serialization;
using Amazon.AutoScaling.Model;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Transform;
using Amazon.Runtime.Internal.Util;
namespace Amazon.AutoScaling.Model.Internal.MarshallTransformations
{
/// <summary>
/// Response Unmarshaller for AcceleratorTotalMemoryMiBRequest Object
/// </summary>
public class AcceleratorTotalMemoryMiBRequestUnmarshaller : IUnmarshaller<AcceleratorTotalMemoryMiBRequest, XmlUnmarshallerContext>, IUnmarshaller<AcceleratorTotalMemoryMiBRequest, JsonUnmarshallerContext>
{
/// <summary>
/// Unmarshaller the response from the service to the response class.
/// </summary>
/// <param name="context"></param>
/// <returns></returns>
public AcceleratorTotalMemoryMiBRequest Unmarshall(XmlUnmarshallerContext context)
{
AcceleratorTotalMemoryMiBRequest unmarshalledObject = new AcceleratorTotalMemoryMiBRequest();
int originalDepth = context.CurrentDepth;
int targetDepth = originalDepth + 1;
if (context.IsStartOfDocument)
targetDepth += 2;
while (context.ReadAtDepth(originalDepth))
{
if (context.IsStartElement || context.IsAttribute)
{
if (context.TestExpression("Max", targetDepth))
{
var unmarshaller = IntUnmarshaller.Instance;
unmarshalledObject.Max = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("Min", targetDepth))
{
var unmarshaller = IntUnmarshaller.Instance;
unmarshalledObject.Min = unmarshaller.Unmarshall(context);
continue;
}
}
else if (context.IsEndElement && context.CurrentDepth < originalDepth)
{
return unmarshalledObject;
}
}
return unmarshalledObject;
}
/// <summary>
/// Unmarshaller error response to exception.
/// </summary>
/// <param name="context"></param>
/// <returns></returns>
public AcceleratorTotalMemoryMiBRequest Unmarshall(JsonUnmarshallerContext context)
{
return null;
}
private static AcceleratorTotalMemoryMiBRequestUnmarshaller _instance = new AcceleratorTotalMemoryMiBRequestUnmarshaller();
/// <summary>
/// Gets the singleton.
/// </summary>
public static AcceleratorTotalMemoryMiBRequestUnmarshaller Instance
{
get
{
return _instance;
}
}
}
}
| 103 |
aws-sdk-net
|
aws
|
C#
|
/*
* 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 autoscaling-2011-01-01.normal.json service model.
*/
using System;
using System.Collections.Generic;
using System.Globalization;
using System.IO;
using System.Net;
using System.Text;
using System.Xml.Serialization;
using Amazon.AutoScaling.Model;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Transform;
using Amazon.Runtime.Internal.Util;
namespace Amazon.AutoScaling.Model.Internal.MarshallTransformations
{
/// <summary>
/// Response Unmarshaller for ActiveInstanceRefreshNotFoundException operation
/// </summary>
public class ActiveInstanceRefreshNotFoundExceptionUnmarshaller : IErrorResponseUnmarshaller<ActiveInstanceRefreshNotFoundException, XmlUnmarshallerContext>
{
/// <summary>
/// Unmarshaller the response from the service to the response class.
/// </summary>
/// <param name="context"></param>
/// <returns></returns>
public ActiveInstanceRefreshNotFoundException Unmarshall(XmlUnmarshallerContext context)
{
return this.Unmarshall(context, new Amazon.Runtime.Internal.ErrorResponse());
}
/// <summary>
/// Unmarshaller error response to exception.
/// </summary>
/// <param name="context"></param>
/// <param name="errorResponse"></param>
/// <returns></returns>
public ActiveInstanceRefreshNotFoundException Unmarshall(XmlUnmarshallerContext context, Amazon.Runtime.Internal.ErrorResponse errorResponse)
{
ActiveInstanceRefreshNotFoundException response = new ActiveInstanceRefreshNotFoundException(errorResponse.Message, errorResponse.InnerException,
errorResponse.Type, errorResponse.Code, errorResponse.RequestId, errorResponse.StatusCode);
int originalDepth = context.CurrentDepth;
int targetDepth = originalDepth + 1;
if (context.IsStartOfDocument)
targetDepth += 2;
while (context.ReadAtDepth(originalDepth))
{
if (context.IsStartElement || context.IsAttribute)
{
}
}
return response;
}
private static ActiveInstanceRefreshNotFoundExceptionUnmarshaller _instance = new ActiveInstanceRefreshNotFoundExceptionUnmarshaller();
/// <summary>
/// Gets the singleton.
/// </summary>
public static ActiveInstanceRefreshNotFoundExceptionUnmarshaller Instance
{
get
{
return _instance;
}
}
}
}
| 88 |
aws-sdk-net
|
aws
|
C#
|
/*
* 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 autoscaling-2011-01-01.normal.json service model.
*/
using System;
using System.Collections.Generic;
using System.Globalization;
using System.IO;
using System.Net;
using System.Text;
using System.Xml.Serialization;
using Amazon.AutoScaling.Model;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Transform;
using Amazon.Runtime.Internal.Util;
namespace Amazon.AutoScaling.Model.Internal.MarshallTransformations
{
/// <summary>
/// Response Unmarshaller for Activity Object
/// </summary>
public class ActivityUnmarshaller : IUnmarshaller<Activity, XmlUnmarshallerContext>, IUnmarshaller<Activity, JsonUnmarshallerContext>
{
/// <summary>
/// Unmarshaller the response from the service to the response class.
/// </summary>
/// <param name="context"></param>
/// <returns></returns>
public Activity Unmarshall(XmlUnmarshallerContext context)
{
Activity unmarshalledObject = new Activity();
int originalDepth = context.CurrentDepth;
int targetDepth = originalDepth + 1;
if (context.IsStartOfDocument)
targetDepth += 2;
while (context.ReadAtDepth(originalDepth))
{
if (context.IsStartElement || context.IsAttribute)
{
if (context.TestExpression("ActivityId", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
unmarshalledObject.ActivityId = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("AutoScalingGroupARN", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
unmarshalledObject.AutoScalingGroupARN = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("AutoScalingGroupName", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
unmarshalledObject.AutoScalingGroupName = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("AutoScalingGroupState", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
unmarshalledObject.AutoScalingGroupState = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("Cause", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
unmarshalledObject.Cause = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("Description", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
unmarshalledObject.Description = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("Details", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
unmarshalledObject.Details = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("EndTime", targetDepth))
{
var unmarshaller = DateTimeUnmarshaller.Instance;
unmarshalledObject.EndTime = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("Progress", targetDepth))
{
var unmarshaller = IntUnmarshaller.Instance;
unmarshalledObject.Progress = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("StartTime", targetDepth))
{
var unmarshaller = DateTimeUnmarshaller.Instance;
unmarshalledObject.StartTime = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("StatusCode", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
unmarshalledObject.StatusCode = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("StatusMessage", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
unmarshalledObject.StatusMessage = unmarshaller.Unmarshall(context);
continue;
}
}
else if (context.IsEndElement && context.CurrentDepth < originalDepth)
{
return unmarshalledObject;
}
}
return unmarshalledObject;
}
/// <summary>
/// Unmarshaller error response to exception.
/// </summary>
/// <param name="context"></param>
/// <returns></returns>
public Activity Unmarshall(JsonUnmarshallerContext context)
{
return null;
}
private static ActivityUnmarshaller _instance = new ActivityUnmarshaller();
/// <summary>
/// Gets the singleton.
/// </summary>
public static ActivityUnmarshaller Instance
{
get
{
return _instance;
}
}
}
}
| 163 |
aws-sdk-net
|
aws
|
C#
|
/*
* 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 autoscaling-2011-01-01.normal.json service model.
*/
using System;
using System.Collections.Generic;
using System.Globalization;
using System.IO;
using System.Net;
using System.Text;
using System.Xml.Serialization;
using Amazon.AutoScaling.Model;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Transform;
using Amazon.Runtime.Internal.Util;
namespace Amazon.AutoScaling.Model.Internal.MarshallTransformations
{
/// <summary>
/// Response Unmarshaller for AdjustmentType Object
/// </summary>
public class AdjustmentTypeUnmarshaller : IUnmarshaller<AdjustmentType, XmlUnmarshallerContext>, IUnmarshaller<AdjustmentType, JsonUnmarshallerContext>
{
/// <summary>
/// Unmarshaller the response from the service to the response class.
/// </summary>
/// <param name="context"></param>
/// <returns></returns>
public AdjustmentType Unmarshall(XmlUnmarshallerContext context)
{
AdjustmentType unmarshalledObject = new AdjustmentType();
int originalDepth = context.CurrentDepth;
int targetDepth = originalDepth + 1;
if (context.IsStartOfDocument)
targetDepth += 2;
while (context.ReadAtDepth(originalDepth))
{
if (context.IsStartElement || context.IsAttribute)
{
if (context.TestExpression("AdjustmentType", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
unmarshalledObject.Type = unmarshaller.Unmarshall(context);
continue;
}
}
else if (context.IsEndElement && context.CurrentDepth < originalDepth)
{
return unmarshalledObject;
}
}
return unmarshalledObject;
}
/// <summary>
/// Unmarshaller error response to exception.
/// </summary>
/// <param name="context"></param>
/// <returns></returns>
public AdjustmentType Unmarshall(JsonUnmarshallerContext context)
{
return null;
}
private static AdjustmentTypeUnmarshaller _instance = new AdjustmentTypeUnmarshaller();
/// <summary>
/// Gets the singleton.
/// </summary>
public static AdjustmentTypeUnmarshaller Instance
{
get
{
return _instance;
}
}
}
}
| 97 |
aws-sdk-net
|
aws
|
C#
|
/*
* 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 autoscaling-2011-01-01.normal.json service model.
*/
using System;
using System.Collections.Generic;
using System.Globalization;
using System.IO;
using System.Net;
using System.Text;
using System.Xml.Serialization;
using Amazon.AutoScaling.Model;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Transform;
using Amazon.Runtime.Internal.Util;
namespace Amazon.AutoScaling.Model.Internal.MarshallTransformations
{
/// <summary>
/// Response Unmarshaller for Alarm Object
/// </summary>
public class AlarmUnmarshaller : IUnmarshaller<Alarm, XmlUnmarshallerContext>, IUnmarshaller<Alarm, JsonUnmarshallerContext>
{
/// <summary>
/// Unmarshaller the response from the service to the response class.
/// </summary>
/// <param name="context"></param>
/// <returns></returns>
public Alarm Unmarshall(XmlUnmarshallerContext context)
{
Alarm unmarshalledObject = new Alarm();
int originalDepth = context.CurrentDepth;
int targetDepth = originalDepth + 1;
if (context.IsStartOfDocument)
targetDepth += 2;
while (context.ReadAtDepth(originalDepth))
{
if (context.IsStartElement || context.IsAttribute)
{
if (context.TestExpression("AlarmARN", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
unmarshalledObject.AlarmARN = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("AlarmName", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
unmarshalledObject.AlarmName = unmarshaller.Unmarshall(context);
continue;
}
}
else if (context.IsEndElement && context.CurrentDepth < originalDepth)
{
return unmarshalledObject;
}
}
return unmarshalledObject;
}
/// <summary>
/// Unmarshaller error response to exception.
/// </summary>
/// <param name="context"></param>
/// <returns></returns>
public Alarm Unmarshall(JsonUnmarshallerContext context)
{
return null;
}
private static AlarmUnmarshaller _instance = new AlarmUnmarshaller();
/// <summary>
/// Gets the singleton.
/// </summary>
public static AlarmUnmarshaller Instance
{
get
{
return _instance;
}
}
}
}
| 103 |
aws-sdk-net
|
aws
|
C#
|
/*
* 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 autoscaling-2011-01-01.normal.json service model.
*/
using System;
using System.Collections.Generic;
using System.Globalization;
using System.IO;
using System.Net;
using System.Text;
using System.Xml.Serialization;
using Amazon.AutoScaling.Model;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Transform;
using Amazon.Runtime.Internal.Util;
namespace Amazon.AutoScaling.Model.Internal.MarshallTransformations
{
/// <summary>
/// Response Unmarshaller for AlreadyExistsException operation
/// </summary>
public class AlreadyExistsExceptionUnmarshaller : IErrorResponseUnmarshaller<AlreadyExistsException, XmlUnmarshallerContext>
{
/// <summary>
/// Unmarshaller the response from the service to the response class.
/// </summary>
/// <param name="context"></param>
/// <returns></returns>
public AlreadyExistsException Unmarshall(XmlUnmarshallerContext context)
{
return this.Unmarshall(context, new Amazon.Runtime.Internal.ErrorResponse());
}
/// <summary>
/// Unmarshaller error response to exception.
/// </summary>
/// <param name="context"></param>
/// <param name="errorResponse"></param>
/// <returns></returns>
public AlreadyExistsException Unmarshall(XmlUnmarshallerContext context, Amazon.Runtime.Internal.ErrorResponse errorResponse)
{
AlreadyExistsException response = new AlreadyExistsException(errorResponse.Message, errorResponse.InnerException,
errorResponse.Type, errorResponse.Code, errorResponse.RequestId, errorResponse.StatusCode);
int originalDepth = context.CurrentDepth;
int targetDepth = originalDepth + 1;
if (context.IsStartOfDocument)
targetDepth += 2;
while (context.ReadAtDepth(originalDepth))
{
if (context.IsStartElement || context.IsAttribute)
{
}
}
return response;
}
private static AlreadyExistsExceptionUnmarshaller _instance = new AlreadyExistsExceptionUnmarshaller();
/// <summary>
/// Gets the singleton.
/// </summary>
public static AlreadyExistsExceptionUnmarshaller Instance
{
get
{
return _instance;
}
}
}
}
| 88 |
aws-sdk-net
|
aws
|
C#
|
/*
* 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 autoscaling-2011-01-01.normal.json service model.
*/
using System;
using System.Collections.Generic;
using System.Globalization;
using System.IO;
using System.Text;
using System.Xml.Serialization;
using Amazon.AutoScaling.Model;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Transform;
using Amazon.Runtime.Internal.Util;
namespace Amazon.AutoScaling.Model.Internal.MarshallTransformations
{
/// <summary>
/// AttachInstances Request Marshaller
/// </summary>
public class AttachInstancesRequestMarshaller : IMarshaller<IRequest, AttachInstancesRequest> , IMarshaller<IRequest,AmazonWebServiceRequest>
{
/// <summary>
/// Marshaller the request object to the HTTP request.
/// </summary>
/// <param name="input"></param>
/// <returns></returns>
public IRequest Marshall(AmazonWebServiceRequest input)
{
return this.Marshall((AttachInstancesRequest)input);
}
/// <summary>
/// Marshaller the request object to the HTTP request.
/// </summary>
/// <param name="publicRequest"></param>
/// <returns></returns>
public IRequest Marshall(AttachInstancesRequest publicRequest)
{
IRequest request = new DefaultRequest(publicRequest, "Amazon.AutoScaling");
request.Parameters.Add("Action", "AttachInstances");
request.Parameters.Add("Version", "2011-01-01");
if(publicRequest != null)
{
if(publicRequest.IsSetAutoScalingGroupName())
{
request.Parameters.Add("AutoScalingGroupName", StringUtils.FromString(publicRequest.AutoScalingGroupName));
}
if(publicRequest.IsSetInstanceIds())
{
int publicRequestlistValueIndex = 1;
foreach(var publicRequestlistValue in publicRequest.InstanceIds)
{
request.Parameters.Add("InstanceIds" + "." + "member" + "." + publicRequestlistValueIndex, StringUtils.FromString(publicRequestlistValue));
publicRequestlistValueIndex++;
}
}
}
return request;
}
private static AttachInstancesRequestMarshaller _instance = new AttachInstancesRequestMarshaller();
internal static AttachInstancesRequestMarshaller GetInstance()
{
return _instance;
}
/// <summary>
/// Gets the singleton.
/// </summary>
public static AttachInstancesRequestMarshaller Instance
{
get
{
return _instance;
}
}
}
}
| 96 |
aws-sdk-net
|
aws
|
C#
|
/*
* 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 autoscaling-2011-01-01.normal.json service model.
*/
using System;
using System.Collections.Generic;
using System.Globalization;
using System.IO;
using System.Net;
using System.Text;
using System.Xml.Serialization;
using Amazon.AutoScaling.Model;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Transform;
using Amazon.Runtime.Internal.Util;
namespace Amazon.AutoScaling.Model.Internal.MarshallTransformations
{
/// <summary>
/// Response Unmarshaller for AttachInstances operation
/// </summary>
public class AttachInstancesResponseUnmarshaller : XmlResponseUnmarshaller
{
/// <summary>
/// Unmarshaller the response from the service to the response class.
/// </summary>
/// <param name="context"></param>
/// <returns></returns>
public override AmazonWebServiceResponse Unmarshall(XmlUnmarshallerContext context)
{
AttachInstancesResponse response = new AttachInstancesResponse();
context.Read();
int targetDepth = context.CurrentDepth;
while (context.ReadAtDepth(targetDepth))
{
if (context.IsStartElement)
{
if(context.TestExpression("AttachInstancesResult", 2))
{
UnmarshallResult(context, response);
continue;
}
if (context.TestExpression("ResponseMetadata", 2))
{
response.ResponseMetadata = ResponseMetadataUnmarshaller.Instance.Unmarshall(context);
}
}
}
return response;
}
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA1801:ReviewUnusedParameters", MessageId="response")]
private static void UnmarshallResult(XmlUnmarshallerContext context, AttachInstancesResponse response)
{
int originalDepth = context.CurrentDepth;
int targetDepth = originalDepth + 1;
if (context.IsStartOfDocument)
targetDepth += 2;
while (context.ReadAtDepth(originalDepth))
{
if (context.IsStartElement || context.IsAttribute)
{
}
}
return;
}
/// <summary>
/// Unmarshaller error response to exception.
/// </summary>
/// <param name="context"></param>
/// <param name="innerException"></param>
/// <param name="statusCode"></param>
/// <returns></returns>
public override AmazonServiceException UnmarshallException(XmlUnmarshallerContext context, Exception innerException, HttpStatusCode statusCode)
{
ErrorResponse errorResponse = ErrorResponseUnmarshaller.GetInstance().Unmarshall(context);
errorResponse.InnerException = innerException;
errorResponse.StatusCode = statusCode;
var responseBodyBytes = context.GetResponseBodyBytes();
using (var streamCopy = new MemoryStream(responseBodyBytes))
using (var contextCopy = new XmlUnmarshallerContext(streamCopy, false, null))
{
if (errorResponse.Code != null && errorResponse.Code.Equals("ResourceContention"))
{
return ResourceContentionExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse);
}
if (errorResponse.Code != null && errorResponse.Code.Equals("ServiceLinkedRoleFailure"))
{
return ServiceLinkedRoleFailureExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse);
}
}
return new AmazonAutoScalingException(errorResponse.Message, innerException, errorResponse.Type, errorResponse.Code, errorResponse.RequestId, statusCode);
}
private static AttachInstancesResponseUnmarshaller _instance = new AttachInstancesResponseUnmarshaller();
internal static AttachInstancesResponseUnmarshaller GetInstance()
{
return _instance;
}
/// <summary>
/// Gets the singleton.
/// </summary>
public static AttachInstancesResponseUnmarshaller Instance
{
get
{
return _instance;
}
}
}
}
| 140 |
aws-sdk-net
|
aws
|
C#
|
/*
* 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 autoscaling-2011-01-01.normal.json service model.
*/
using System;
using System.Collections.Generic;
using System.Globalization;
using System.IO;
using System.Text;
using System.Xml.Serialization;
using Amazon.AutoScaling.Model;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Transform;
using Amazon.Runtime.Internal.Util;
namespace Amazon.AutoScaling.Model.Internal.MarshallTransformations
{
/// <summary>
/// AttachLoadBalancers Request Marshaller
/// </summary>
public class AttachLoadBalancersRequestMarshaller : IMarshaller<IRequest, AttachLoadBalancersRequest> , IMarshaller<IRequest,AmazonWebServiceRequest>
{
/// <summary>
/// Marshaller the request object to the HTTP request.
/// </summary>
/// <param name="input"></param>
/// <returns></returns>
public IRequest Marshall(AmazonWebServiceRequest input)
{
return this.Marshall((AttachLoadBalancersRequest)input);
}
/// <summary>
/// Marshaller the request object to the HTTP request.
/// </summary>
/// <param name="publicRequest"></param>
/// <returns></returns>
public IRequest Marshall(AttachLoadBalancersRequest publicRequest)
{
IRequest request = new DefaultRequest(publicRequest, "Amazon.AutoScaling");
request.Parameters.Add("Action", "AttachLoadBalancers");
request.Parameters.Add("Version", "2011-01-01");
if(publicRequest != null)
{
if(publicRequest.IsSetAutoScalingGroupName())
{
request.Parameters.Add("AutoScalingGroupName", StringUtils.FromString(publicRequest.AutoScalingGroupName));
}
if(publicRequest.IsSetLoadBalancerNames())
{
int publicRequestlistValueIndex = 1;
foreach(var publicRequestlistValue in publicRequest.LoadBalancerNames)
{
request.Parameters.Add("LoadBalancerNames" + "." + "member" + "." + publicRequestlistValueIndex, StringUtils.FromString(publicRequestlistValue));
publicRequestlistValueIndex++;
}
}
}
return request;
}
private static AttachLoadBalancersRequestMarshaller _instance = new AttachLoadBalancersRequestMarshaller();
internal static AttachLoadBalancersRequestMarshaller GetInstance()
{
return _instance;
}
/// <summary>
/// Gets the singleton.
/// </summary>
public static AttachLoadBalancersRequestMarshaller Instance
{
get
{
return _instance;
}
}
}
}
| 96 |
aws-sdk-net
|
aws
|
C#
|
/*
* 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 autoscaling-2011-01-01.normal.json service model.
*/
using System;
using System.Collections.Generic;
using System.Globalization;
using System.IO;
using System.Net;
using System.Text;
using System.Xml.Serialization;
using Amazon.AutoScaling.Model;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Transform;
using Amazon.Runtime.Internal.Util;
namespace Amazon.AutoScaling.Model.Internal.MarshallTransformations
{
/// <summary>
/// Response Unmarshaller for AttachLoadBalancers operation
/// </summary>
public class AttachLoadBalancersResponseUnmarshaller : XmlResponseUnmarshaller
{
/// <summary>
/// Unmarshaller the response from the service to the response class.
/// </summary>
/// <param name="context"></param>
/// <returns></returns>
public override AmazonWebServiceResponse Unmarshall(XmlUnmarshallerContext context)
{
AttachLoadBalancersResponse response = new AttachLoadBalancersResponse();
context.Read();
int targetDepth = context.CurrentDepth;
while (context.ReadAtDepth(targetDepth))
{
if (context.IsStartElement)
{
if(context.TestExpression("AttachLoadBalancersResult", 2))
{
UnmarshallResult(context, response);
continue;
}
if (context.TestExpression("ResponseMetadata", 2))
{
response.ResponseMetadata = ResponseMetadataUnmarshaller.Instance.Unmarshall(context);
}
}
}
return response;
}
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA1801:ReviewUnusedParameters", MessageId="response")]
private static void UnmarshallResult(XmlUnmarshallerContext context, AttachLoadBalancersResponse response)
{
int originalDepth = context.CurrentDepth;
int targetDepth = originalDepth + 1;
if (context.IsStartOfDocument)
targetDepth += 2;
while (context.ReadAtDepth(originalDepth))
{
if (context.IsStartElement || context.IsAttribute)
{
}
}
return;
}
/// <summary>
/// Unmarshaller error response to exception.
/// </summary>
/// <param name="context"></param>
/// <param name="innerException"></param>
/// <param name="statusCode"></param>
/// <returns></returns>
public override AmazonServiceException UnmarshallException(XmlUnmarshallerContext context, Exception innerException, HttpStatusCode statusCode)
{
ErrorResponse errorResponse = ErrorResponseUnmarshaller.GetInstance().Unmarshall(context);
errorResponse.InnerException = innerException;
errorResponse.StatusCode = statusCode;
var responseBodyBytes = context.GetResponseBodyBytes();
using (var streamCopy = new MemoryStream(responseBodyBytes))
using (var contextCopy = new XmlUnmarshallerContext(streamCopy, false, null))
{
if (errorResponse.Code != null && errorResponse.Code.Equals("ResourceContention"))
{
return ResourceContentionExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse);
}
if (errorResponse.Code != null && errorResponse.Code.Equals("ServiceLinkedRoleFailure"))
{
return ServiceLinkedRoleFailureExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse);
}
}
return new AmazonAutoScalingException(errorResponse.Message, innerException, errorResponse.Type, errorResponse.Code, errorResponse.RequestId, statusCode);
}
private static AttachLoadBalancersResponseUnmarshaller _instance = new AttachLoadBalancersResponseUnmarshaller();
internal static AttachLoadBalancersResponseUnmarshaller GetInstance()
{
return _instance;
}
/// <summary>
/// Gets the singleton.
/// </summary>
public static AttachLoadBalancersResponseUnmarshaller Instance
{
get
{
return _instance;
}
}
}
}
| 140 |
aws-sdk-net
|
aws
|
C#
|
/*
* 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 autoscaling-2011-01-01.normal.json service model.
*/
using System;
using System.Collections.Generic;
using System.Globalization;
using System.IO;
using System.Text;
using System.Xml.Serialization;
using Amazon.AutoScaling.Model;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Transform;
using Amazon.Runtime.Internal.Util;
namespace Amazon.AutoScaling.Model.Internal.MarshallTransformations
{
/// <summary>
/// AttachLoadBalancerTargetGroups Request Marshaller
/// </summary>
public class AttachLoadBalancerTargetGroupsRequestMarshaller : IMarshaller<IRequest, AttachLoadBalancerTargetGroupsRequest> , IMarshaller<IRequest,AmazonWebServiceRequest>
{
/// <summary>
/// Marshaller the request object to the HTTP request.
/// </summary>
/// <param name="input"></param>
/// <returns></returns>
public IRequest Marshall(AmazonWebServiceRequest input)
{
return this.Marshall((AttachLoadBalancerTargetGroupsRequest)input);
}
/// <summary>
/// Marshaller the request object to the HTTP request.
/// </summary>
/// <param name="publicRequest"></param>
/// <returns></returns>
public IRequest Marshall(AttachLoadBalancerTargetGroupsRequest publicRequest)
{
IRequest request = new DefaultRequest(publicRequest, "Amazon.AutoScaling");
request.Parameters.Add("Action", "AttachLoadBalancerTargetGroups");
request.Parameters.Add("Version", "2011-01-01");
if(publicRequest != null)
{
if(publicRequest.IsSetAutoScalingGroupName())
{
request.Parameters.Add("AutoScalingGroupName", StringUtils.FromString(publicRequest.AutoScalingGroupName));
}
if(publicRequest.IsSetTargetGroupARNs())
{
int publicRequestlistValueIndex = 1;
foreach(var publicRequestlistValue in publicRequest.TargetGroupARNs)
{
request.Parameters.Add("TargetGroupARNs" + "." + "member" + "." + publicRequestlistValueIndex, StringUtils.FromString(publicRequestlistValue));
publicRequestlistValueIndex++;
}
}
}
return request;
}
private static AttachLoadBalancerTargetGroupsRequestMarshaller _instance = new AttachLoadBalancerTargetGroupsRequestMarshaller();
internal static AttachLoadBalancerTargetGroupsRequestMarshaller GetInstance()
{
return _instance;
}
/// <summary>
/// Gets the singleton.
/// </summary>
public static AttachLoadBalancerTargetGroupsRequestMarshaller Instance
{
get
{
return _instance;
}
}
}
}
| 96 |
aws-sdk-net
|
aws
|
C#
|
/*
* 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 autoscaling-2011-01-01.normal.json service model.
*/
using System;
using System.Collections.Generic;
using System.Globalization;
using System.IO;
using System.Net;
using System.Text;
using System.Xml.Serialization;
using Amazon.AutoScaling.Model;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Transform;
using Amazon.Runtime.Internal.Util;
namespace Amazon.AutoScaling.Model.Internal.MarshallTransformations
{
/// <summary>
/// Response Unmarshaller for AttachLoadBalancerTargetGroups operation
/// </summary>
public class AttachLoadBalancerTargetGroupsResponseUnmarshaller : XmlResponseUnmarshaller
{
/// <summary>
/// Unmarshaller the response from the service to the response class.
/// </summary>
/// <param name="context"></param>
/// <returns></returns>
public override AmazonWebServiceResponse Unmarshall(XmlUnmarshallerContext context)
{
AttachLoadBalancerTargetGroupsResponse response = new AttachLoadBalancerTargetGroupsResponse();
context.Read();
int targetDepth = context.CurrentDepth;
while (context.ReadAtDepth(targetDepth))
{
if (context.IsStartElement)
{
if(context.TestExpression("AttachLoadBalancerTargetGroupsResult", 2))
{
UnmarshallResult(context, response);
continue;
}
if (context.TestExpression("ResponseMetadata", 2))
{
response.ResponseMetadata = ResponseMetadataUnmarshaller.Instance.Unmarshall(context);
}
}
}
return response;
}
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA1801:ReviewUnusedParameters", MessageId="response")]
private static void UnmarshallResult(XmlUnmarshallerContext context, AttachLoadBalancerTargetGroupsResponse response)
{
int originalDepth = context.CurrentDepth;
int targetDepth = originalDepth + 1;
if (context.IsStartOfDocument)
targetDepth += 2;
while (context.ReadAtDepth(originalDepth))
{
if (context.IsStartElement || context.IsAttribute)
{
}
}
return;
}
/// <summary>
/// Unmarshaller error response to exception.
/// </summary>
/// <param name="context"></param>
/// <param name="innerException"></param>
/// <param name="statusCode"></param>
/// <returns></returns>
public override AmazonServiceException UnmarshallException(XmlUnmarshallerContext context, Exception innerException, HttpStatusCode statusCode)
{
ErrorResponse errorResponse = ErrorResponseUnmarshaller.GetInstance().Unmarshall(context);
errorResponse.InnerException = innerException;
errorResponse.StatusCode = statusCode;
var responseBodyBytes = context.GetResponseBodyBytes();
using (var streamCopy = new MemoryStream(responseBodyBytes))
using (var contextCopy = new XmlUnmarshallerContext(streamCopy, false, null))
{
if (errorResponse.Code != null && errorResponse.Code.Equals("ResourceContention"))
{
return ResourceContentionExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse);
}
if (errorResponse.Code != null && errorResponse.Code.Equals("ServiceLinkedRoleFailure"))
{
return ServiceLinkedRoleFailureExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse);
}
}
return new AmazonAutoScalingException(errorResponse.Message, innerException, errorResponse.Type, errorResponse.Code, errorResponse.RequestId, statusCode);
}
private static AttachLoadBalancerTargetGroupsResponseUnmarshaller _instance = new AttachLoadBalancerTargetGroupsResponseUnmarshaller();
internal static AttachLoadBalancerTargetGroupsResponseUnmarshaller GetInstance()
{
return _instance;
}
/// <summary>
/// Gets the singleton.
/// </summary>
public static AttachLoadBalancerTargetGroupsResponseUnmarshaller Instance
{
get
{
return _instance;
}
}
}
}
| 140 |
aws-sdk-net
|
aws
|
C#
|
/*
* 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 autoscaling-2011-01-01.normal.json service model.
*/
using System;
using System.Collections.Generic;
using System.Globalization;
using System.IO;
using System.Text;
using System.Xml.Serialization;
using Amazon.AutoScaling.Model;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Transform;
using Amazon.Runtime.Internal.Util;
namespace Amazon.AutoScaling.Model.Internal.MarshallTransformations
{
/// <summary>
/// AttachTrafficSources Request Marshaller
/// </summary>
public class AttachTrafficSourcesRequestMarshaller : IMarshaller<IRequest, AttachTrafficSourcesRequest> , IMarshaller<IRequest,AmazonWebServiceRequest>
{
/// <summary>
/// Marshaller the request object to the HTTP request.
/// </summary>
/// <param name="input"></param>
/// <returns></returns>
public IRequest Marshall(AmazonWebServiceRequest input)
{
return this.Marshall((AttachTrafficSourcesRequest)input);
}
/// <summary>
/// Marshaller the request object to the HTTP request.
/// </summary>
/// <param name="publicRequest"></param>
/// <returns></returns>
public IRequest Marshall(AttachTrafficSourcesRequest publicRequest)
{
IRequest request = new DefaultRequest(publicRequest, "Amazon.AutoScaling");
request.Parameters.Add("Action", "AttachTrafficSources");
request.Parameters.Add("Version", "2011-01-01");
if(publicRequest != null)
{
if(publicRequest.IsSetAutoScalingGroupName())
{
request.Parameters.Add("AutoScalingGroupName", StringUtils.FromString(publicRequest.AutoScalingGroupName));
}
if(publicRequest.IsSetTrafficSources())
{
int publicRequestlistValueIndex = 1;
foreach(var publicRequestlistValue in publicRequest.TrafficSources)
{
if(publicRequestlistValue.IsSetIdentifier())
{
request.Parameters.Add("TrafficSources" + "." + "member" + "." + publicRequestlistValueIndex + "." + "Identifier", StringUtils.FromString(publicRequestlistValue.Identifier));
}
if(publicRequestlistValue.IsSetType())
{
request.Parameters.Add("TrafficSources" + "." + "member" + "." + publicRequestlistValueIndex + "." + "Type", StringUtils.FromString(publicRequestlistValue.Type));
}
publicRequestlistValueIndex++;
}
}
}
return request;
}
private static AttachTrafficSourcesRequestMarshaller _instance = new AttachTrafficSourcesRequestMarshaller();
internal static AttachTrafficSourcesRequestMarshaller GetInstance()
{
return _instance;
}
/// <summary>
/// Gets the singleton.
/// </summary>
public static AttachTrafficSourcesRequestMarshaller Instance
{
get
{
return _instance;
}
}
}
}
| 103 |
aws-sdk-net
|
aws
|
C#
|
/*
* 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 autoscaling-2011-01-01.normal.json service model.
*/
using System;
using System.Collections.Generic;
using System.Globalization;
using System.IO;
using System.Net;
using System.Text;
using System.Xml.Serialization;
using Amazon.AutoScaling.Model;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Transform;
using Amazon.Runtime.Internal.Util;
namespace Amazon.AutoScaling.Model.Internal.MarshallTransformations
{
/// <summary>
/// Response Unmarshaller for AttachTrafficSources operation
/// </summary>
public class AttachTrafficSourcesResponseUnmarshaller : XmlResponseUnmarshaller
{
/// <summary>
/// Unmarshaller the response from the service to the response class.
/// </summary>
/// <param name="context"></param>
/// <returns></returns>
public override AmazonWebServiceResponse Unmarshall(XmlUnmarshallerContext context)
{
AttachTrafficSourcesResponse response = new AttachTrafficSourcesResponse();
context.Read();
int targetDepth = context.CurrentDepth;
while (context.ReadAtDepth(targetDepth))
{
if (context.IsStartElement)
{
if(context.TestExpression("AttachTrafficSourcesResult", 2))
{
UnmarshallResult(context, response);
continue;
}
if (context.TestExpression("ResponseMetadata", 2))
{
response.ResponseMetadata = ResponseMetadataUnmarshaller.Instance.Unmarshall(context);
}
}
}
return response;
}
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA1801:ReviewUnusedParameters", MessageId="response")]
private static void UnmarshallResult(XmlUnmarshallerContext context, AttachTrafficSourcesResponse response)
{
int originalDepth = context.CurrentDepth;
int targetDepth = originalDepth + 1;
if (context.IsStartOfDocument)
targetDepth += 2;
while (context.ReadAtDepth(originalDepth))
{
if (context.IsStartElement || context.IsAttribute)
{
}
}
return;
}
/// <summary>
/// Unmarshaller error response to exception.
/// </summary>
/// <param name="context"></param>
/// <param name="innerException"></param>
/// <param name="statusCode"></param>
/// <returns></returns>
public override AmazonServiceException UnmarshallException(XmlUnmarshallerContext context, Exception innerException, HttpStatusCode statusCode)
{
ErrorResponse errorResponse = ErrorResponseUnmarshaller.GetInstance().Unmarshall(context);
errorResponse.InnerException = innerException;
errorResponse.StatusCode = statusCode;
var responseBodyBytes = context.GetResponseBodyBytes();
using (var streamCopy = new MemoryStream(responseBodyBytes))
using (var contextCopy = new XmlUnmarshallerContext(streamCopy, false, null))
{
if (errorResponse.Code != null && errorResponse.Code.Equals("ResourceContention"))
{
return ResourceContentionExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse);
}
if (errorResponse.Code != null && errorResponse.Code.Equals("ServiceLinkedRoleFailure"))
{
return ServiceLinkedRoleFailureExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse);
}
}
return new AmazonAutoScalingException(errorResponse.Message, innerException, errorResponse.Type, errorResponse.Code, errorResponse.RequestId, statusCode);
}
private static AttachTrafficSourcesResponseUnmarshaller _instance = new AttachTrafficSourcesResponseUnmarshaller();
internal static AttachTrafficSourcesResponseUnmarshaller GetInstance()
{
return _instance;
}
/// <summary>
/// Gets the singleton.
/// </summary>
public static AttachTrafficSourcesResponseUnmarshaller Instance
{
get
{
return _instance;
}
}
}
}
| 140 |
aws-sdk-net
|
aws
|
C#
|
/*
* 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 autoscaling-2011-01-01.normal.json service model.
*/
using System;
using System.Collections.Generic;
using System.Globalization;
using System.IO;
using System.Net;
using System.Text;
using System.Xml.Serialization;
using Amazon.AutoScaling.Model;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Transform;
using Amazon.Runtime.Internal.Util;
namespace Amazon.AutoScaling.Model.Internal.MarshallTransformations
{
/// <summary>
/// Response Unmarshaller for AutoScalingGroup Object
/// </summary>
public class AutoScalingGroupUnmarshaller : IUnmarshaller<AutoScalingGroup, XmlUnmarshallerContext>, IUnmarshaller<AutoScalingGroup, JsonUnmarshallerContext>
{
/// <summary>
/// Unmarshaller the response from the service to the response class.
/// </summary>
/// <param name="context"></param>
/// <returns></returns>
public AutoScalingGroup Unmarshall(XmlUnmarshallerContext context)
{
AutoScalingGroup unmarshalledObject = new AutoScalingGroup();
int originalDepth = context.CurrentDepth;
int targetDepth = originalDepth + 1;
if (context.IsStartOfDocument)
targetDepth += 2;
while (context.ReadAtDepth(originalDepth))
{
if (context.IsStartElement || context.IsAttribute)
{
if (context.TestExpression("AutoScalingGroupARN", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
unmarshalledObject.AutoScalingGroupARN = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("AutoScalingGroupName", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
unmarshalledObject.AutoScalingGroupName = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("AvailabilityZones/member", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
var item = unmarshaller.Unmarshall(context);
unmarshalledObject.AvailabilityZones.Add(item);
continue;
}
if (context.TestExpression("CapacityRebalance", targetDepth))
{
var unmarshaller = BoolUnmarshaller.Instance;
unmarshalledObject.CapacityRebalance = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("Context", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
unmarshalledObject.Context = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("CreatedTime", targetDepth))
{
var unmarshaller = DateTimeUnmarshaller.Instance;
unmarshalledObject.CreatedTime = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("DefaultCooldown", targetDepth))
{
var unmarshaller = IntUnmarshaller.Instance;
unmarshalledObject.DefaultCooldown = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("DefaultInstanceWarmup", targetDepth))
{
var unmarshaller = IntUnmarshaller.Instance;
unmarshalledObject.DefaultInstanceWarmup = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("DesiredCapacity", targetDepth))
{
var unmarshaller = IntUnmarshaller.Instance;
unmarshalledObject.DesiredCapacity = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("DesiredCapacityType", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
unmarshalledObject.DesiredCapacityType = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("EnabledMetrics/member", targetDepth))
{
var unmarshaller = EnabledMetricUnmarshaller.Instance;
var item = unmarshaller.Unmarshall(context);
unmarshalledObject.EnabledMetrics.Add(item);
continue;
}
if (context.TestExpression("HealthCheckGracePeriod", targetDepth))
{
var unmarshaller = IntUnmarshaller.Instance;
unmarshalledObject.HealthCheckGracePeriod = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("HealthCheckType", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
unmarshalledObject.HealthCheckType = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("Instances/member", targetDepth))
{
var unmarshaller = InstanceUnmarshaller.Instance;
var item = unmarshaller.Unmarshall(context);
unmarshalledObject.Instances.Add(item);
continue;
}
if (context.TestExpression("LaunchConfigurationName", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
unmarshalledObject.LaunchConfigurationName = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("LaunchTemplate", targetDepth))
{
var unmarshaller = LaunchTemplateSpecificationUnmarshaller.Instance;
unmarshalledObject.LaunchTemplate = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("LoadBalancerNames/member", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
var item = unmarshaller.Unmarshall(context);
unmarshalledObject.LoadBalancerNames.Add(item);
continue;
}
if (context.TestExpression("MaxInstanceLifetime", targetDepth))
{
var unmarshaller = IntUnmarshaller.Instance;
unmarshalledObject.MaxInstanceLifetime = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("MaxSize", targetDepth))
{
var unmarshaller = IntUnmarshaller.Instance;
unmarshalledObject.MaxSize = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("MinSize", targetDepth))
{
var unmarshaller = IntUnmarshaller.Instance;
unmarshalledObject.MinSize = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("MixedInstancesPolicy", targetDepth))
{
var unmarshaller = MixedInstancesPolicyUnmarshaller.Instance;
unmarshalledObject.MixedInstancesPolicy = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("NewInstancesProtectedFromScaleIn", targetDepth))
{
var unmarshaller = BoolUnmarshaller.Instance;
unmarshalledObject.NewInstancesProtectedFromScaleIn = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("PlacementGroup", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
unmarshalledObject.PlacementGroup = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("PredictedCapacity", targetDepth))
{
var unmarshaller = IntUnmarshaller.Instance;
unmarshalledObject.PredictedCapacity = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("ServiceLinkedRoleARN", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
unmarshalledObject.ServiceLinkedRoleARN = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("Status", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
unmarshalledObject.Status = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("SuspendedProcesses/member", targetDepth))
{
var unmarshaller = SuspendedProcessUnmarshaller.Instance;
var item = unmarshaller.Unmarshall(context);
unmarshalledObject.SuspendedProcesses.Add(item);
continue;
}
if (context.TestExpression("Tags/member", targetDepth))
{
var unmarshaller = TagDescriptionUnmarshaller.Instance;
var item = unmarshaller.Unmarshall(context);
unmarshalledObject.Tags.Add(item);
continue;
}
if (context.TestExpression("TargetGroupARNs/member", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
var item = unmarshaller.Unmarshall(context);
unmarshalledObject.TargetGroupARNs.Add(item);
continue;
}
if (context.TestExpression("TerminationPolicies/member", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
var item = unmarshaller.Unmarshall(context);
unmarshalledObject.TerminationPolicies.Add(item);
continue;
}
if (context.TestExpression("TrafficSources/member", targetDepth))
{
var unmarshaller = TrafficSourceIdentifierUnmarshaller.Instance;
var item = unmarshaller.Unmarshall(context);
unmarshalledObject.TrafficSources.Add(item);
continue;
}
if (context.TestExpression("VPCZoneIdentifier", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
unmarshalledObject.VPCZoneIdentifier = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("WarmPoolConfiguration", targetDepth))
{
var unmarshaller = WarmPoolConfigurationUnmarshaller.Instance;
unmarshalledObject.WarmPoolConfiguration = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("WarmPoolSize", targetDepth))
{
var unmarshaller = IntUnmarshaller.Instance;
unmarshalledObject.WarmPoolSize = unmarshaller.Unmarshall(context);
continue;
}
}
else if (context.IsEndElement && context.CurrentDepth < originalDepth)
{
return unmarshalledObject;
}
}
return unmarshalledObject;
}
/// <summary>
/// Unmarshaller error response to exception.
/// </summary>
/// <param name="context"></param>
/// <returns></returns>
public AutoScalingGroup Unmarshall(JsonUnmarshallerContext context)
{
return null;
}
private static AutoScalingGroupUnmarshaller _instance = new AutoScalingGroupUnmarshaller();
/// <summary>
/// Gets the singleton.
/// </summary>
public static AutoScalingGroupUnmarshaller Instance
{
get
{
return _instance;
}
}
}
}
| 304 |
aws-sdk-net
|
aws
|
C#
|
/*
* 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 autoscaling-2011-01-01.normal.json service model.
*/
using System;
using System.Collections.Generic;
using System.Globalization;
using System.IO;
using System.Net;
using System.Text;
using System.Xml.Serialization;
using Amazon.AutoScaling.Model;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Transform;
using Amazon.Runtime.Internal.Util;
namespace Amazon.AutoScaling.Model.Internal.MarshallTransformations
{
/// <summary>
/// Response Unmarshaller for AutoScalingInstanceDetails Object
/// </summary>
public class AutoScalingInstanceDetailsUnmarshaller : IUnmarshaller<AutoScalingInstanceDetails, XmlUnmarshallerContext>, IUnmarshaller<AutoScalingInstanceDetails, JsonUnmarshallerContext>
{
/// <summary>
/// Unmarshaller the response from the service to the response class.
/// </summary>
/// <param name="context"></param>
/// <returns></returns>
public AutoScalingInstanceDetails Unmarshall(XmlUnmarshallerContext context)
{
AutoScalingInstanceDetails unmarshalledObject = new AutoScalingInstanceDetails();
int originalDepth = context.CurrentDepth;
int targetDepth = originalDepth + 1;
if (context.IsStartOfDocument)
targetDepth += 2;
while (context.ReadAtDepth(originalDepth))
{
if (context.IsStartElement || context.IsAttribute)
{
if (context.TestExpression("AutoScalingGroupName", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
unmarshalledObject.AutoScalingGroupName = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("AvailabilityZone", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
unmarshalledObject.AvailabilityZone = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("HealthStatus", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
unmarshalledObject.HealthStatus = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("InstanceId", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
unmarshalledObject.InstanceId = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("InstanceType", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
unmarshalledObject.InstanceType = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("LaunchConfigurationName", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
unmarshalledObject.LaunchConfigurationName = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("LaunchTemplate", targetDepth))
{
var unmarshaller = LaunchTemplateSpecificationUnmarshaller.Instance;
unmarshalledObject.LaunchTemplate = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("LifecycleState", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
unmarshalledObject.LifecycleState = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("ProtectedFromScaleIn", targetDepth))
{
var unmarshaller = BoolUnmarshaller.Instance;
unmarshalledObject.ProtectedFromScaleIn = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("WeightedCapacity", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
unmarshalledObject.WeightedCapacity = unmarshaller.Unmarshall(context);
continue;
}
}
else if (context.IsEndElement && context.CurrentDepth < originalDepth)
{
return unmarshalledObject;
}
}
return unmarshalledObject;
}
/// <summary>
/// Unmarshaller error response to exception.
/// </summary>
/// <param name="context"></param>
/// <returns></returns>
public AutoScalingInstanceDetails Unmarshall(JsonUnmarshallerContext context)
{
return null;
}
private static AutoScalingInstanceDetailsUnmarshaller _instance = new AutoScalingInstanceDetailsUnmarshaller();
/// <summary>
/// Gets the singleton.
/// </summary>
public static AutoScalingInstanceDetailsUnmarshaller Instance
{
get
{
return _instance;
}
}
}
}
| 151 |
aws-sdk-net
|
aws
|
C#
|
/*
* 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 autoscaling-2011-01-01.normal.json service model.
*/
using System;
using System.Collections.Generic;
using System.Globalization;
using System.IO;
using System.Net;
using System.Text;
using System.Xml.Serialization;
using Amazon.AutoScaling.Model;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Transform;
using Amazon.Runtime.Internal.Util;
namespace Amazon.AutoScaling.Model.Internal.MarshallTransformations
{
/// <summary>
/// Response Unmarshaller for BaselineEbsBandwidthMbpsRequest Object
/// </summary>
public class BaselineEbsBandwidthMbpsRequestUnmarshaller : IUnmarshaller<BaselineEbsBandwidthMbpsRequest, XmlUnmarshallerContext>, IUnmarshaller<BaselineEbsBandwidthMbpsRequest, JsonUnmarshallerContext>
{
/// <summary>
/// Unmarshaller the response from the service to the response class.
/// </summary>
/// <param name="context"></param>
/// <returns></returns>
public BaselineEbsBandwidthMbpsRequest Unmarshall(XmlUnmarshallerContext context)
{
BaselineEbsBandwidthMbpsRequest unmarshalledObject = new BaselineEbsBandwidthMbpsRequest();
int originalDepth = context.CurrentDepth;
int targetDepth = originalDepth + 1;
if (context.IsStartOfDocument)
targetDepth += 2;
while (context.ReadAtDepth(originalDepth))
{
if (context.IsStartElement || context.IsAttribute)
{
if (context.TestExpression("Max", targetDepth))
{
var unmarshaller = IntUnmarshaller.Instance;
unmarshalledObject.Max = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("Min", targetDepth))
{
var unmarshaller = IntUnmarshaller.Instance;
unmarshalledObject.Min = unmarshaller.Unmarshall(context);
continue;
}
}
else if (context.IsEndElement && context.CurrentDepth < originalDepth)
{
return unmarshalledObject;
}
}
return unmarshalledObject;
}
/// <summary>
/// Unmarshaller error response to exception.
/// </summary>
/// <param name="context"></param>
/// <returns></returns>
public BaselineEbsBandwidthMbpsRequest Unmarshall(JsonUnmarshallerContext context)
{
return null;
}
private static BaselineEbsBandwidthMbpsRequestUnmarshaller _instance = new BaselineEbsBandwidthMbpsRequestUnmarshaller();
/// <summary>
/// Gets the singleton.
/// </summary>
public static BaselineEbsBandwidthMbpsRequestUnmarshaller Instance
{
get
{
return _instance;
}
}
}
}
| 103 |
aws-sdk-net
|
aws
|
C#
|
/*
* 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 autoscaling-2011-01-01.normal.json service model.
*/
using System;
using System.Collections.Generic;
using System.Globalization;
using System.IO;
using System.Text;
using System.Xml.Serialization;
using Amazon.AutoScaling.Model;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Transform;
using Amazon.Runtime.Internal.Util;
namespace Amazon.AutoScaling.Model.Internal.MarshallTransformations
{
/// <summary>
/// BatchDeleteScheduledAction Request Marshaller
/// </summary>
public class BatchDeleteScheduledActionRequestMarshaller : IMarshaller<IRequest, BatchDeleteScheduledActionRequest> , IMarshaller<IRequest,AmazonWebServiceRequest>
{
/// <summary>
/// Marshaller the request object to the HTTP request.
/// </summary>
/// <param name="input"></param>
/// <returns></returns>
public IRequest Marshall(AmazonWebServiceRequest input)
{
return this.Marshall((BatchDeleteScheduledActionRequest)input);
}
/// <summary>
/// Marshaller the request object to the HTTP request.
/// </summary>
/// <param name="publicRequest"></param>
/// <returns></returns>
public IRequest Marshall(BatchDeleteScheduledActionRequest publicRequest)
{
IRequest request = new DefaultRequest(publicRequest, "Amazon.AutoScaling");
request.Parameters.Add("Action", "BatchDeleteScheduledAction");
request.Parameters.Add("Version", "2011-01-01");
if(publicRequest != null)
{
if(publicRequest.IsSetAutoScalingGroupName())
{
request.Parameters.Add("AutoScalingGroupName", StringUtils.FromString(publicRequest.AutoScalingGroupName));
}
if(publicRequest.IsSetScheduledActionNames())
{
int publicRequestlistValueIndex = 1;
foreach(var publicRequestlistValue in publicRequest.ScheduledActionNames)
{
request.Parameters.Add("ScheduledActionNames" + "." + "member" + "." + publicRequestlistValueIndex, StringUtils.FromString(publicRequestlistValue));
publicRequestlistValueIndex++;
}
}
}
return request;
}
private static BatchDeleteScheduledActionRequestMarshaller _instance = new BatchDeleteScheduledActionRequestMarshaller();
internal static BatchDeleteScheduledActionRequestMarshaller GetInstance()
{
return _instance;
}
/// <summary>
/// Gets the singleton.
/// </summary>
public static BatchDeleteScheduledActionRequestMarshaller Instance
{
get
{
return _instance;
}
}
}
}
| 96 |
aws-sdk-net
|
aws
|
C#
|
/*
* 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 autoscaling-2011-01-01.normal.json service model.
*/
using System;
using System.Collections.Generic;
using System.Globalization;
using System.IO;
using System.Net;
using System.Text;
using System.Xml.Serialization;
using Amazon.AutoScaling.Model;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Transform;
using Amazon.Runtime.Internal.Util;
namespace Amazon.AutoScaling.Model.Internal.MarshallTransformations
{
/// <summary>
/// Response Unmarshaller for BatchDeleteScheduledAction operation
/// </summary>
public class BatchDeleteScheduledActionResponseUnmarshaller : XmlResponseUnmarshaller
{
/// <summary>
/// Unmarshaller the response from the service to the response class.
/// </summary>
/// <param name="context"></param>
/// <returns></returns>
public override AmazonWebServiceResponse Unmarshall(XmlUnmarshallerContext context)
{
BatchDeleteScheduledActionResponse response = new BatchDeleteScheduledActionResponse();
context.Read();
int targetDepth = context.CurrentDepth;
while (context.ReadAtDepth(targetDepth))
{
if (context.IsStartElement)
{
if(context.TestExpression("BatchDeleteScheduledActionResult", 2))
{
UnmarshallResult(context, response);
continue;
}
if (context.TestExpression("ResponseMetadata", 2))
{
response.ResponseMetadata = ResponseMetadataUnmarshaller.Instance.Unmarshall(context);
}
}
}
return response;
}
private static void UnmarshallResult(XmlUnmarshallerContext context, BatchDeleteScheduledActionResponse response)
{
int originalDepth = context.CurrentDepth;
int targetDepth = originalDepth + 1;
if (context.IsStartOfDocument)
targetDepth += 2;
while (context.ReadAtDepth(originalDepth))
{
if (context.IsStartElement || context.IsAttribute)
{
if (context.TestExpression("FailedScheduledActions/member", targetDepth))
{
var unmarshaller = FailedScheduledUpdateGroupActionRequestUnmarshaller.Instance;
var item = unmarshaller.Unmarshall(context);
response.FailedScheduledActions.Add(item);
continue;
}
}
}
return;
}
/// <summary>
/// Unmarshaller error response to exception.
/// </summary>
/// <param name="context"></param>
/// <param name="innerException"></param>
/// <param name="statusCode"></param>
/// <returns></returns>
public override AmazonServiceException UnmarshallException(XmlUnmarshallerContext context, Exception innerException, HttpStatusCode statusCode)
{
ErrorResponse errorResponse = ErrorResponseUnmarshaller.GetInstance().Unmarshall(context);
errorResponse.InnerException = innerException;
errorResponse.StatusCode = statusCode;
var responseBodyBytes = context.GetResponseBodyBytes();
using (var streamCopy = new MemoryStream(responseBodyBytes))
using (var contextCopy = new XmlUnmarshallerContext(streamCopy, false, null))
{
if (errorResponse.Code != null && errorResponse.Code.Equals("ResourceContention"))
{
return ResourceContentionExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse);
}
}
return new AmazonAutoScalingException(errorResponse.Message, innerException, errorResponse.Type, errorResponse.Code, errorResponse.RequestId, statusCode);
}
private static BatchDeleteScheduledActionResponseUnmarshaller _instance = new BatchDeleteScheduledActionResponseUnmarshaller();
internal static BatchDeleteScheduledActionResponseUnmarshaller GetInstance()
{
return _instance;
}
/// <summary>
/// Gets the singleton.
/// </summary>
public static BatchDeleteScheduledActionResponseUnmarshaller Instance
{
get
{
return _instance;
}
}
}
}
| 142 |
aws-sdk-net
|
aws
|
C#
|
/*
* 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 autoscaling-2011-01-01.normal.json service model.
*/
using System;
using System.Collections.Generic;
using System.Globalization;
using System.IO;
using System.Text;
using System.Xml.Serialization;
using Amazon.AutoScaling.Model;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Transform;
using Amazon.Runtime.Internal.Util;
namespace Amazon.AutoScaling.Model.Internal.MarshallTransformations
{
/// <summary>
/// BatchPutScheduledUpdateGroupAction Request Marshaller
/// </summary>
public class BatchPutScheduledUpdateGroupActionRequestMarshaller : IMarshaller<IRequest, BatchPutScheduledUpdateGroupActionRequest> , IMarshaller<IRequest,AmazonWebServiceRequest>
{
/// <summary>
/// Marshaller the request object to the HTTP request.
/// </summary>
/// <param name="input"></param>
/// <returns></returns>
public IRequest Marshall(AmazonWebServiceRequest input)
{
return this.Marshall((BatchPutScheduledUpdateGroupActionRequest)input);
}
/// <summary>
/// Marshaller the request object to the HTTP request.
/// </summary>
/// <param name="publicRequest"></param>
/// <returns></returns>
public IRequest Marshall(BatchPutScheduledUpdateGroupActionRequest publicRequest)
{
IRequest request = new DefaultRequest(publicRequest, "Amazon.AutoScaling");
request.Parameters.Add("Action", "BatchPutScheduledUpdateGroupAction");
request.Parameters.Add("Version", "2011-01-01");
if(publicRequest != null)
{
if(publicRequest.IsSetAutoScalingGroupName())
{
request.Parameters.Add("AutoScalingGroupName", StringUtils.FromString(publicRequest.AutoScalingGroupName));
}
if(publicRequest.IsSetScheduledUpdateGroupActions())
{
int publicRequestlistValueIndex = 1;
foreach(var publicRequestlistValue in publicRequest.ScheduledUpdateGroupActions)
{
if(publicRequestlistValue.IsSetDesiredCapacity())
{
request.Parameters.Add("ScheduledUpdateGroupActions" + "." + "member" + "." + publicRequestlistValueIndex + "." + "DesiredCapacity", StringUtils.FromInt(publicRequestlistValue.DesiredCapacity));
}
if(publicRequestlistValue.IsSetEndTimeUtc())
{
request.Parameters.Add("ScheduledUpdateGroupActions" + "." + "member" + "." + publicRequestlistValueIndex + "." + "EndTime", StringUtils.FromDateTimeToISO8601(publicRequestlistValue.EndTimeUtc));
}
if(publicRequestlistValue.IsSetMaxSize())
{
request.Parameters.Add("ScheduledUpdateGroupActions" + "." + "member" + "." + publicRequestlistValueIndex + "." + "MaxSize", StringUtils.FromInt(publicRequestlistValue.MaxSize));
}
if(publicRequestlistValue.IsSetMinSize())
{
request.Parameters.Add("ScheduledUpdateGroupActions" + "." + "member" + "." + publicRequestlistValueIndex + "." + "MinSize", StringUtils.FromInt(publicRequestlistValue.MinSize));
}
if(publicRequestlistValue.IsSetRecurrence())
{
request.Parameters.Add("ScheduledUpdateGroupActions" + "." + "member" + "." + publicRequestlistValueIndex + "." + "Recurrence", StringUtils.FromString(publicRequestlistValue.Recurrence));
}
if(publicRequestlistValue.IsSetScheduledActionName())
{
request.Parameters.Add("ScheduledUpdateGroupActions" + "." + "member" + "." + publicRequestlistValueIndex + "." + "ScheduledActionName", StringUtils.FromString(publicRequestlistValue.ScheduledActionName));
}
if(publicRequestlistValue.IsSetStartTimeUtc())
{
request.Parameters.Add("ScheduledUpdateGroupActions" + "." + "member" + "." + publicRequestlistValueIndex + "." + "StartTime", StringUtils.FromDateTimeToISO8601(publicRequestlistValue.StartTimeUtc));
}
if(publicRequestlistValue.IsSetTimeZone())
{
request.Parameters.Add("ScheduledUpdateGroupActions" + "." + "member" + "." + publicRequestlistValueIndex + "." + "TimeZone", StringUtils.FromString(publicRequestlistValue.TimeZone));
}
publicRequestlistValueIndex++;
}
}
}
return request;
}
private static BatchPutScheduledUpdateGroupActionRequestMarshaller _instance = new BatchPutScheduledUpdateGroupActionRequestMarshaller();
internal static BatchPutScheduledUpdateGroupActionRequestMarshaller GetInstance()
{
return _instance;
}
/// <summary>
/// Gets the singleton.
/// </summary>
public static BatchPutScheduledUpdateGroupActionRequestMarshaller Instance
{
get
{
return _instance;
}
}
}
}
| 127 |
aws-sdk-net
|
aws
|
C#
|
/*
* 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 autoscaling-2011-01-01.normal.json service model.
*/
using System;
using System.Collections.Generic;
using System.Globalization;
using System.IO;
using System.Net;
using System.Text;
using System.Xml.Serialization;
using Amazon.AutoScaling.Model;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Transform;
using Amazon.Runtime.Internal.Util;
namespace Amazon.AutoScaling.Model.Internal.MarshallTransformations
{
/// <summary>
/// Response Unmarshaller for BatchPutScheduledUpdateGroupAction operation
/// </summary>
public class BatchPutScheduledUpdateGroupActionResponseUnmarshaller : XmlResponseUnmarshaller
{
/// <summary>
/// Unmarshaller the response from the service to the response class.
/// </summary>
/// <param name="context"></param>
/// <returns></returns>
public override AmazonWebServiceResponse Unmarshall(XmlUnmarshallerContext context)
{
BatchPutScheduledUpdateGroupActionResponse response = new BatchPutScheduledUpdateGroupActionResponse();
context.Read();
int targetDepth = context.CurrentDepth;
while (context.ReadAtDepth(targetDepth))
{
if (context.IsStartElement)
{
if(context.TestExpression("BatchPutScheduledUpdateGroupActionResult", 2))
{
UnmarshallResult(context, response);
continue;
}
if (context.TestExpression("ResponseMetadata", 2))
{
response.ResponseMetadata = ResponseMetadataUnmarshaller.Instance.Unmarshall(context);
}
}
}
return response;
}
private static void UnmarshallResult(XmlUnmarshallerContext context, BatchPutScheduledUpdateGroupActionResponse response)
{
int originalDepth = context.CurrentDepth;
int targetDepth = originalDepth + 1;
if (context.IsStartOfDocument)
targetDepth += 2;
while (context.ReadAtDepth(originalDepth))
{
if (context.IsStartElement || context.IsAttribute)
{
if (context.TestExpression("FailedScheduledUpdateGroupActions/member", targetDepth))
{
var unmarshaller = FailedScheduledUpdateGroupActionRequestUnmarshaller.Instance;
var item = unmarshaller.Unmarshall(context);
response.FailedScheduledUpdateGroupActions.Add(item);
continue;
}
}
}
return;
}
/// <summary>
/// Unmarshaller error response to exception.
/// </summary>
/// <param name="context"></param>
/// <param name="innerException"></param>
/// <param name="statusCode"></param>
/// <returns></returns>
public override AmazonServiceException UnmarshallException(XmlUnmarshallerContext context, Exception innerException, HttpStatusCode statusCode)
{
ErrorResponse errorResponse = ErrorResponseUnmarshaller.GetInstance().Unmarshall(context);
errorResponse.InnerException = innerException;
errorResponse.StatusCode = statusCode;
var responseBodyBytes = context.GetResponseBodyBytes();
using (var streamCopy = new MemoryStream(responseBodyBytes))
using (var contextCopy = new XmlUnmarshallerContext(streamCopy, false, null))
{
if (errorResponse.Code != null && errorResponse.Code.Equals("AlreadyExists"))
{
return AlreadyExistsExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse);
}
if (errorResponse.Code != null && errorResponse.Code.Equals("LimitExceeded"))
{
return LimitExceededExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse);
}
if (errorResponse.Code != null && errorResponse.Code.Equals("ResourceContention"))
{
return ResourceContentionExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse);
}
}
return new AmazonAutoScalingException(errorResponse.Message, innerException, errorResponse.Type, errorResponse.Code, errorResponse.RequestId, statusCode);
}
private static BatchPutScheduledUpdateGroupActionResponseUnmarshaller _instance = new BatchPutScheduledUpdateGroupActionResponseUnmarshaller();
internal static BatchPutScheduledUpdateGroupActionResponseUnmarshaller GetInstance()
{
return _instance;
}
/// <summary>
/// Gets the singleton.
/// </summary>
public static BatchPutScheduledUpdateGroupActionResponseUnmarshaller Instance
{
get
{
return _instance;
}
}
}
}
| 150 |
aws-sdk-net
|
aws
|
C#
|
/*
* 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 autoscaling-2011-01-01.normal.json service model.
*/
using System;
using System.Collections.Generic;
using System.Globalization;
using System.IO;
using System.Net;
using System.Text;
using System.Xml.Serialization;
using Amazon.AutoScaling.Model;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Transform;
using Amazon.Runtime.Internal.Util;
namespace Amazon.AutoScaling.Model.Internal.MarshallTransformations
{
/// <summary>
/// Response Unmarshaller for BlockDeviceMapping Object
/// </summary>
public class BlockDeviceMappingUnmarshaller : IUnmarshaller<BlockDeviceMapping, XmlUnmarshallerContext>, IUnmarshaller<BlockDeviceMapping, JsonUnmarshallerContext>
{
/// <summary>
/// Unmarshaller the response from the service to the response class.
/// </summary>
/// <param name="context"></param>
/// <returns></returns>
public BlockDeviceMapping Unmarshall(XmlUnmarshallerContext context)
{
BlockDeviceMapping unmarshalledObject = new BlockDeviceMapping();
int originalDepth = context.CurrentDepth;
int targetDepth = originalDepth + 1;
if (context.IsStartOfDocument)
targetDepth += 2;
while (context.ReadAtDepth(originalDepth))
{
if (context.IsStartElement || context.IsAttribute)
{
if (context.TestExpression("DeviceName", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
unmarshalledObject.DeviceName = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("Ebs", targetDepth))
{
var unmarshaller = EbsUnmarshaller.Instance;
unmarshalledObject.Ebs = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("NoDevice", targetDepth))
{
var unmarshaller = BoolUnmarshaller.Instance;
unmarshalledObject.NoDevice = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("VirtualName", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
unmarshalledObject.VirtualName = unmarshaller.Unmarshall(context);
continue;
}
}
else if (context.IsEndElement && context.CurrentDepth < originalDepth)
{
return unmarshalledObject;
}
}
return unmarshalledObject;
}
/// <summary>
/// Unmarshaller error response to exception.
/// </summary>
/// <param name="context"></param>
/// <returns></returns>
public BlockDeviceMapping Unmarshall(JsonUnmarshallerContext context)
{
return null;
}
private static BlockDeviceMappingUnmarshaller _instance = new BlockDeviceMappingUnmarshaller();
/// <summary>
/// Gets the singleton.
/// </summary>
public static BlockDeviceMappingUnmarshaller Instance
{
get
{
return _instance;
}
}
}
}
| 115 |
aws-sdk-net
|
aws
|
C#
|
/*
* 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 autoscaling-2011-01-01.normal.json service model.
*/
using System;
using System.Collections.Generic;
using System.Globalization;
using System.IO;
using System.Text;
using System.Xml.Serialization;
using Amazon.AutoScaling.Model;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Transform;
using Amazon.Runtime.Internal.Util;
namespace Amazon.AutoScaling.Model.Internal.MarshallTransformations
{
/// <summary>
/// CancelInstanceRefresh Request Marshaller
/// </summary>
public class CancelInstanceRefreshRequestMarshaller : IMarshaller<IRequest, CancelInstanceRefreshRequest> , IMarshaller<IRequest,AmazonWebServiceRequest>
{
/// <summary>
/// Marshaller the request object to the HTTP request.
/// </summary>
/// <param name="input"></param>
/// <returns></returns>
public IRequest Marshall(AmazonWebServiceRequest input)
{
return this.Marshall((CancelInstanceRefreshRequest)input);
}
/// <summary>
/// Marshaller the request object to the HTTP request.
/// </summary>
/// <param name="publicRequest"></param>
/// <returns></returns>
public IRequest Marshall(CancelInstanceRefreshRequest publicRequest)
{
IRequest request = new DefaultRequest(publicRequest, "Amazon.AutoScaling");
request.Parameters.Add("Action", "CancelInstanceRefresh");
request.Parameters.Add("Version", "2011-01-01");
if(publicRequest != null)
{
if(publicRequest.IsSetAutoScalingGroupName())
{
request.Parameters.Add("AutoScalingGroupName", StringUtils.FromString(publicRequest.AutoScalingGroupName));
}
}
return request;
}
private static CancelInstanceRefreshRequestMarshaller _instance = new CancelInstanceRefreshRequestMarshaller();
internal static CancelInstanceRefreshRequestMarshaller GetInstance()
{
return _instance;
}
/// <summary>
/// Gets the singleton.
/// </summary>
public static CancelInstanceRefreshRequestMarshaller Instance
{
get
{
return _instance;
}
}
}
}
| 87 |
aws-sdk-net
|
aws
|
C#
|
/*
* 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 autoscaling-2011-01-01.normal.json service model.
*/
using System;
using System.Collections.Generic;
using System.Globalization;
using System.IO;
using System.Net;
using System.Text;
using System.Xml.Serialization;
using Amazon.AutoScaling.Model;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Transform;
using Amazon.Runtime.Internal.Util;
namespace Amazon.AutoScaling.Model.Internal.MarshallTransformations
{
/// <summary>
/// Response Unmarshaller for CancelInstanceRefresh operation
/// </summary>
public class CancelInstanceRefreshResponseUnmarshaller : XmlResponseUnmarshaller
{
/// <summary>
/// Unmarshaller the response from the service to the response class.
/// </summary>
/// <param name="context"></param>
/// <returns></returns>
public override AmazonWebServiceResponse Unmarshall(XmlUnmarshallerContext context)
{
CancelInstanceRefreshResponse response = new CancelInstanceRefreshResponse();
context.Read();
int targetDepth = context.CurrentDepth;
while (context.ReadAtDepth(targetDepth))
{
if (context.IsStartElement)
{
if(context.TestExpression("CancelInstanceRefreshResult", 2))
{
UnmarshallResult(context, response);
continue;
}
if (context.TestExpression("ResponseMetadata", 2))
{
response.ResponseMetadata = ResponseMetadataUnmarshaller.Instance.Unmarshall(context);
}
}
}
return response;
}
private static void UnmarshallResult(XmlUnmarshallerContext context, CancelInstanceRefreshResponse response)
{
int originalDepth = context.CurrentDepth;
int targetDepth = originalDepth + 1;
if (context.IsStartOfDocument)
targetDepth += 2;
while (context.ReadAtDepth(originalDepth))
{
if (context.IsStartElement || context.IsAttribute)
{
if (context.TestExpression("InstanceRefreshId", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
response.InstanceRefreshId = unmarshaller.Unmarshall(context);
continue;
}
}
}
return;
}
/// <summary>
/// Unmarshaller error response to exception.
/// </summary>
/// <param name="context"></param>
/// <param name="innerException"></param>
/// <param name="statusCode"></param>
/// <returns></returns>
public override AmazonServiceException UnmarshallException(XmlUnmarshallerContext context, Exception innerException, HttpStatusCode statusCode)
{
ErrorResponse errorResponse = ErrorResponseUnmarshaller.GetInstance().Unmarshall(context);
errorResponse.InnerException = innerException;
errorResponse.StatusCode = statusCode;
var responseBodyBytes = context.GetResponseBodyBytes();
using (var streamCopy = new MemoryStream(responseBodyBytes))
using (var contextCopy = new XmlUnmarshallerContext(streamCopy, false, null))
{
if (errorResponse.Code != null && errorResponse.Code.Equals("ActiveInstanceRefreshNotFound"))
{
return ActiveInstanceRefreshNotFoundExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse);
}
if (errorResponse.Code != null && errorResponse.Code.Equals("LimitExceeded"))
{
return LimitExceededExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse);
}
if (errorResponse.Code != null && errorResponse.Code.Equals("ResourceContention"))
{
return ResourceContentionExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse);
}
}
return new AmazonAutoScalingException(errorResponse.Message, innerException, errorResponse.Type, errorResponse.Code, errorResponse.RequestId, statusCode);
}
private static CancelInstanceRefreshResponseUnmarshaller _instance = new CancelInstanceRefreshResponseUnmarshaller();
internal static CancelInstanceRefreshResponseUnmarshaller GetInstance()
{
return _instance;
}
/// <summary>
/// Gets the singleton.
/// </summary>
public static CancelInstanceRefreshResponseUnmarshaller Instance
{
get
{
return _instance;
}
}
}
}
| 149 |
aws-sdk-net
|
aws
|
C#
|
/*
* 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 autoscaling-2011-01-01.normal.json service model.
*/
using System;
using System.Collections.Generic;
using System.Globalization;
using System.IO;
using System.Net;
using System.Text;
using System.Xml.Serialization;
using Amazon.AutoScaling.Model;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Transform;
using Amazon.Runtime.Internal.Util;
namespace Amazon.AutoScaling.Model.Internal.MarshallTransformations
{
/// <summary>
/// Response Unmarshaller for CapacityForecast Object
/// </summary>
public class CapacityForecastUnmarshaller : IUnmarshaller<CapacityForecast, XmlUnmarshallerContext>, IUnmarshaller<CapacityForecast, JsonUnmarshallerContext>
{
/// <summary>
/// Unmarshaller the response from the service to the response class.
/// </summary>
/// <param name="context"></param>
/// <returns></returns>
public CapacityForecast Unmarshall(XmlUnmarshallerContext context)
{
CapacityForecast unmarshalledObject = new CapacityForecast();
int originalDepth = context.CurrentDepth;
int targetDepth = originalDepth + 1;
if (context.IsStartOfDocument)
targetDepth += 2;
while (context.ReadAtDepth(originalDepth))
{
if (context.IsStartElement || context.IsAttribute)
{
if (context.TestExpression("Timestamps/member", targetDepth))
{
var unmarshaller = DateTimeUnmarshaller.Instance;
var item = unmarshaller.Unmarshall(context);
unmarshalledObject.Timestamps.Add(item);
continue;
}
if (context.TestExpression("Values/member", targetDepth))
{
var unmarshaller = DoubleUnmarshaller.Instance;
var item = unmarshaller.Unmarshall(context);
unmarshalledObject.Values.Add(item);
continue;
}
}
else if (context.IsEndElement && context.CurrentDepth < originalDepth)
{
return unmarshalledObject;
}
}
return unmarshalledObject;
}
/// <summary>
/// Unmarshaller error response to exception.
/// </summary>
/// <param name="context"></param>
/// <returns></returns>
public CapacityForecast Unmarshall(JsonUnmarshallerContext context)
{
return null;
}
private static CapacityForecastUnmarshaller _instance = new CapacityForecastUnmarshaller();
/// <summary>
/// Gets the singleton.
/// </summary>
public static CapacityForecastUnmarshaller Instance
{
get
{
return _instance;
}
}
}
}
| 105 |
aws-sdk-net
|
aws
|
C#
|
/*
* 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 autoscaling-2011-01-01.normal.json service model.
*/
using System;
using System.Collections.Generic;
using System.Globalization;
using System.IO;
using System.Text;
using System.Xml.Serialization;
using Amazon.AutoScaling.Model;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Transform;
using Amazon.Runtime.Internal.Util;
namespace Amazon.AutoScaling.Model.Internal.MarshallTransformations
{
/// <summary>
/// CompleteLifecycleAction Request Marshaller
/// </summary>
public class CompleteLifecycleActionRequestMarshaller : IMarshaller<IRequest, CompleteLifecycleActionRequest> , IMarshaller<IRequest,AmazonWebServiceRequest>
{
/// <summary>
/// Marshaller the request object to the HTTP request.
/// </summary>
/// <param name="input"></param>
/// <returns></returns>
public IRequest Marshall(AmazonWebServiceRequest input)
{
return this.Marshall((CompleteLifecycleActionRequest)input);
}
/// <summary>
/// Marshaller the request object to the HTTP request.
/// </summary>
/// <param name="publicRequest"></param>
/// <returns></returns>
public IRequest Marshall(CompleteLifecycleActionRequest publicRequest)
{
IRequest request = new DefaultRequest(publicRequest, "Amazon.AutoScaling");
request.Parameters.Add("Action", "CompleteLifecycleAction");
request.Parameters.Add("Version", "2011-01-01");
if(publicRequest != null)
{
if(publicRequest.IsSetAutoScalingGroupName())
{
request.Parameters.Add("AutoScalingGroupName", StringUtils.FromString(publicRequest.AutoScalingGroupName));
}
if(publicRequest.IsSetInstanceId())
{
request.Parameters.Add("InstanceId", StringUtils.FromString(publicRequest.InstanceId));
}
if(publicRequest.IsSetLifecycleActionResult())
{
request.Parameters.Add("LifecycleActionResult", StringUtils.FromString(publicRequest.LifecycleActionResult));
}
if(publicRequest.IsSetLifecycleActionToken())
{
request.Parameters.Add("LifecycleActionToken", StringUtils.FromString(publicRequest.LifecycleActionToken));
}
if(publicRequest.IsSetLifecycleHookName())
{
request.Parameters.Add("LifecycleHookName", StringUtils.FromString(publicRequest.LifecycleHookName));
}
}
return request;
}
private static CompleteLifecycleActionRequestMarshaller _instance = new CompleteLifecycleActionRequestMarshaller();
internal static CompleteLifecycleActionRequestMarshaller GetInstance()
{
return _instance;
}
/// <summary>
/// Gets the singleton.
/// </summary>
public static CompleteLifecycleActionRequestMarshaller Instance
{
get
{
return _instance;
}
}
}
}
| 103 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.