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 Amazon.Runtime; namespace Amazon.AutoScaling.Model { /// <summary> /// Paginator for the DescribeScheduledActions operation ///</summary> public interface IDescribeScheduledActionsPaginator { /// <summary> /// Enumerable containing all full responses for the operation /// </summary> IPaginatedEnumerable<DescribeScheduledActionsResponse> Responses { get; } /// <summary> /// Enumerable containing all of the ScheduledUpdateGroupActions /// </summary> IPaginatedEnumerable<ScheduledUpdateGroupAction> ScheduledUpdateGroupActions { get; } } }
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 Amazon.Runtime; namespace Amazon.AutoScaling.Model { /// <summary> /// Paginator for the DescribeTags operation ///</summary> public interface IDescribeTagsPaginator { /// <summary> /// Enumerable containing all full responses for the operation /// </summary> IPaginatedEnumerable<DescribeTagsResponse> Responses { get; } /// <summary> /// Enumerable containing all of the Tags /// </summary> IPaginatedEnumerable<TagDescription> Tags { get; } } }
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 Amazon.Runtime; namespace Amazon.AutoScaling.Model { /// <summary> /// Paginator for the DescribeTrafficSources operation ///</summary> public interface IDescribeTrafficSourcesPaginator { /// <summary> /// Enumerable containing all full responses for the operation /// </summary> IPaginatedEnumerable<DescribeTrafficSourcesResponse> Responses { get; } } }
33
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.Net; using Amazon.AutoScaling.Model; using Amazon.AutoScaling.Model.Internal.MarshallTransformations; using Amazon.AutoScaling.Internal; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Auth; using Amazon.Runtime.Internal.Transform; namespace Amazon.AutoScaling { /// <summary> /// Implementation for accessing AutoScaling /// /// Amazon EC2 Auto Scaling /// <para> /// Amazon EC2 Auto Scaling is designed to automatically launch and terminate EC2 instances /// based on user-defined scaling policies, scheduled actions, and health checks. /// </para> /// /// <para> /// For more information, see the <a href="https://docs.aws.amazon.com/autoscaling/ec2/userguide/">Amazon /// EC2 Auto Scaling User Guide</a> and the <a href="https://docs.aws.amazon.com/autoscaling/ec2/APIReference/Welcome.html">Amazon /// EC2 Auto Scaling API Reference</a>. /// </para> /// </summary> public partial class AmazonAutoScalingClient : AmazonServiceClient, IAmazonAutoScaling { private static IServiceMetadata serviceMetadata = new AmazonAutoScalingMetadata(); #if BCL45 || AWS_ASYNC_ENUMERABLES_API private IAutoScalingPaginatorFactory _paginators; /// <summary> /// Paginators for the service /// </summary> public IAutoScalingPaginatorFactory Paginators { get { if (this._paginators == null) { this._paginators = new AutoScalingPaginatorFactory(this); } return this._paginators; } } #endif #region Constructors /// <summary> /// Constructs AmazonAutoScalingClient with the credentials loaded from the application's /// default configuration, and if unsuccessful from the Instance Profile service on an EC2 instance. /// /// Example App.config with credentials set. /// <code> /// &lt;?xml version="1.0" encoding="utf-8" ?&gt; /// &lt;configuration&gt; /// &lt;appSettings&gt; /// &lt;add key="AWSProfileName" value="AWS Default"/&gt; /// &lt;/appSettings&gt; /// &lt;/configuration&gt; /// </code> /// /// </summary> public AmazonAutoScalingClient() : base(FallbackCredentialsFactory.GetCredentials(), new AmazonAutoScalingConfig()) { } /// <summary> /// Constructs AmazonAutoScalingClient with the credentials loaded from the application's /// default configuration, and if unsuccessful from the Instance Profile service on an EC2 instance. /// /// Example App.config with credentials set. /// <code> /// &lt;?xml version="1.0" encoding="utf-8" ?&gt; /// &lt;configuration&gt; /// &lt;appSettings&gt; /// &lt;add key="AWSProfileName" value="AWS Default"/&gt; /// &lt;/appSettings&gt; /// &lt;/configuration&gt; /// </code> /// /// </summary> /// <param name="region">The region to connect.</param> public AmazonAutoScalingClient(RegionEndpoint region) : base(FallbackCredentialsFactory.GetCredentials(), new AmazonAutoScalingConfig{RegionEndpoint = region}) { } /// <summary> /// Constructs AmazonAutoScalingClient with the credentials loaded from the application's /// default configuration, and if unsuccessful from the Instance Profile service on an EC2 instance. /// /// Example App.config with credentials set. /// <code> /// &lt;?xml version="1.0" encoding="utf-8" ?&gt; /// &lt;configuration&gt; /// &lt;appSettings&gt; /// &lt;add key="AWSProfileName" value="AWS Default"/&gt; /// &lt;/appSettings&gt; /// &lt;/configuration&gt; /// </code> /// /// </summary> /// <param name="config">The AmazonAutoScalingClient Configuration Object</param> public AmazonAutoScalingClient(AmazonAutoScalingConfig config) : base(FallbackCredentialsFactory.GetCredentials(), config) { } /// <summary> /// Constructs AmazonAutoScalingClient with AWS Credentials /// </summary> /// <param name="credentials">AWS Credentials</param> public AmazonAutoScalingClient(AWSCredentials credentials) : this(credentials, new AmazonAutoScalingConfig()) { } /// <summary> /// Constructs AmazonAutoScalingClient with AWS Credentials /// </summary> /// <param name="credentials">AWS Credentials</param> /// <param name="region">The region to connect.</param> public AmazonAutoScalingClient(AWSCredentials credentials, RegionEndpoint region) : this(credentials, new AmazonAutoScalingConfig{RegionEndpoint = region}) { } /// <summary> /// Constructs AmazonAutoScalingClient with AWS Credentials and an /// AmazonAutoScalingClient Configuration object. /// </summary> /// <param name="credentials">AWS Credentials</param> /// <param name="clientConfig">The AmazonAutoScalingClient Configuration Object</param> public AmazonAutoScalingClient(AWSCredentials credentials, AmazonAutoScalingConfig clientConfig) : base(credentials, clientConfig) { } /// <summary> /// Constructs AmazonAutoScalingClient with AWS Access Key ID and AWS Secret Key /// </summary> /// <param name="awsAccessKeyId">AWS Access Key ID</param> /// <param name="awsSecretAccessKey">AWS Secret Access Key</param> public AmazonAutoScalingClient(string awsAccessKeyId, string awsSecretAccessKey) : this(awsAccessKeyId, awsSecretAccessKey, new AmazonAutoScalingConfig()) { } /// <summary> /// Constructs AmazonAutoScalingClient with AWS Access Key ID and AWS Secret Key /// </summary> /// <param name="awsAccessKeyId">AWS Access Key ID</param> /// <param name="awsSecretAccessKey">AWS Secret Access Key</param> /// <param name="region">The region to connect.</param> public AmazonAutoScalingClient(string awsAccessKeyId, string awsSecretAccessKey, RegionEndpoint region) : this(awsAccessKeyId, awsSecretAccessKey, new AmazonAutoScalingConfig() {RegionEndpoint=region}) { } /// <summary> /// Constructs AmazonAutoScalingClient with AWS Access Key ID, AWS Secret Key and an /// AmazonAutoScalingClient Configuration object. /// </summary> /// <param name="awsAccessKeyId">AWS Access Key ID</param> /// <param name="awsSecretAccessKey">AWS Secret Access Key</param> /// <param name="clientConfig">The AmazonAutoScalingClient Configuration Object</param> public AmazonAutoScalingClient(string awsAccessKeyId, string awsSecretAccessKey, AmazonAutoScalingConfig clientConfig) : base(awsAccessKeyId, awsSecretAccessKey, clientConfig) { } /// <summary> /// Constructs AmazonAutoScalingClient with AWS Access Key ID and AWS Secret Key /// </summary> /// <param name="awsAccessKeyId">AWS Access Key ID</param> /// <param name="awsSecretAccessKey">AWS Secret Access Key</param> /// <param name="awsSessionToken">AWS Session Token</param> public AmazonAutoScalingClient(string awsAccessKeyId, string awsSecretAccessKey, string awsSessionToken) : this(awsAccessKeyId, awsSecretAccessKey, awsSessionToken, new AmazonAutoScalingConfig()) { } /// <summary> /// Constructs AmazonAutoScalingClient with AWS Access Key ID and AWS Secret Key /// </summary> /// <param name="awsAccessKeyId">AWS Access Key ID</param> /// <param name="awsSecretAccessKey">AWS Secret Access Key</param> /// <param name="awsSessionToken">AWS Session Token</param> /// <param name="region">The region to connect.</param> public AmazonAutoScalingClient(string awsAccessKeyId, string awsSecretAccessKey, string awsSessionToken, RegionEndpoint region) : this(awsAccessKeyId, awsSecretAccessKey, awsSessionToken, new AmazonAutoScalingConfig{RegionEndpoint = region}) { } /// <summary> /// Constructs AmazonAutoScalingClient with AWS Access Key ID, AWS Secret Key and an /// AmazonAutoScalingClient Configuration object. /// </summary> /// <param name="awsAccessKeyId">AWS Access Key ID</param> /// <param name="awsSecretAccessKey">AWS Secret Access Key</param> /// <param name="awsSessionToken">AWS Session Token</param> /// <param name="clientConfig">The AmazonAutoScalingClient Configuration Object</param> public AmazonAutoScalingClient(string awsAccessKeyId, string awsSecretAccessKey, string awsSessionToken, AmazonAutoScalingConfig clientConfig) : base(awsAccessKeyId, awsSecretAccessKey, awsSessionToken, clientConfig) { } #endregion #region Overrides /// <summary> /// Creates the signer for the service. /// </summary> protected override AbstractAWSSigner CreateSigner() { return new AWS4Signer(); } /// <summary> /// Customize the pipeline /// </summary> /// <param name="pipeline"></param> protected override void CustomizeRuntimePipeline(RuntimePipeline pipeline) { pipeline.RemoveHandler<Amazon.Runtime.Internal.EndpointResolver>(); pipeline.AddHandlerAfter<Amazon.Runtime.Internal.Marshaller>(new AmazonAutoScalingEndpointResolver()); } /// <summary> /// Capture metadata for the service. /// </summary> protected override IServiceMetadata ServiceMetadata { get { return serviceMetadata; } } #endregion #region Dispose /// <summary> /// Disposes the service client. /// </summary> protected override void Dispose(bool disposing) { base.Dispose(disposing); } #endregion #region AttachInstances /// <summary> /// Attaches one or more EC2 instances to the specified Auto Scaling group. /// /// /// <para> /// When you attach instances, Amazon EC2 Auto Scaling increases the desired capacity /// of the group by the number of instances being attached. If the number of instances /// being attached plus the desired capacity of the group exceeds the maximum size of /// the group, the operation fails. /// </para> /// /// <para> /// If there is a Classic Load Balancer attached to your Auto Scaling group, the instances /// are also registered with the load balancer. If there are target groups attached to /// your Auto Scaling group, the instances are also registered with the target groups. /// </para> /// /// <para> /// For more information, see <a href="https://docs.aws.amazon.com/autoscaling/ec2/userguide/attach-instance-asg.html">Attach /// EC2 instances to your Auto Scaling group</a> in the <i>Amazon EC2 Auto Scaling User /// Guide</i>. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the AttachInstances service method.</param> /// /// <returns>The response from the AttachInstances service method, as returned by AutoScaling.</returns> /// <exception cref="Amazon.AutoScaling.Model.ResourceContentionException"> /// You already have a pending update to an Amazon EC2 Auto Scaling resource (for example, /// an Auto Scaling group, instance, or load balancer). /// </exception> /// <exception cref="Amazon.AutoScaling.Model.ServiceLinkedRoleFailureException"> /// The service-linked role is not yet ready for use. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/AttachInstances">REST API Reference for AttachInstances Operation</seealso> public virtual AttachInstancesResponse AttachInstances(AttachInstancesRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = AttachInstancesRequestMarshaller.Instance; options.ResponseUnmarshaller = AttachInstancesResponseUnmarshaller.Instance; return Invoke<AttachInstancesResponse>(request, options); } /// <summary> /// Initiates the asynchronous execution of the AttachInstances operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the AttachInstances operation on AmazonAutoScalingClient.</param> /// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param> /// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property.</param> /// /// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndAttachInstances /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/AttachInstances">REST API Reference for AttachInstances Operation</seealso> public virtual IAsyncResult BeginAttachInstances(AttachInstancesRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = AttachInstancesRequestMarshaller.Instance; options.ResponseUnmarshaller = AttachInstancesResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// <summary> /// Finishes the asynchronous execution of the AttachInstances operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginAttachInstances.</param> /// /// <returns>Returns a AttachInstancesResult from AutoScaling.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/AttachInstances">REST API Reference for AttachInstances Operation</seealso> public virtual AttachInstancesResponse EndAttachInstances(IAsyncResult asyncResult) { return EndInvoke<AttachInstancesResponse>(asyncResult); } #endregion #region AttachLoadBalancers /// <summary> /// <note> /// <para> /// This API operation is superseded by <a>AttachTrafficSources</a>, which can attach /// multiple traffic sources types. We recommend using <code>AttachTrafficSources</code> /// to simplify how you manage traffic sources. However, we continue to support <code>AttachLoadBalancers</code>. /// You can use both the original <code>AttachLoadBalancers</code> API operation and <code>AttachTrafficSources</code> /// on the same Auto Scaling group. /// </para> /// </note> /// <para> /// Attaches one or more Classic Load Balancers to the specified Auto Scaling group. Amazon /// EC2 Auto Scaling registers the running instances with these Classic Load Balancers. /// </para> /// /// <para> /// To describe the load balancers for an Auto Scaling group, call the <a>DescribeLoadBalancers</a> /// API. To detach a load balancer from the Auto Scaling group, call the <a>DetachLoadBalancers</a> /// API. /// </para> /// /// <para> /// This operation is additive and does not detach existing Classic Load Balancers or /// target groups from the Auto Scaling group. /// </para> /// /// <para> /// For more information, see <a href="https://docs.aws.amazon.com/autoscaling/ec2/userguide/autoscaling-load-balancer.html">Use /// Elastic Load Balancing to distribute traffic across the instances in your Auto Scaling /// group</a> in the <i>Amazon EC2 Auto Scaling User Guide</i>. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the AttachLoadBalancers service method.</param> /// /// <returns>The response from the AttachLoadBalancers service method, as returned by AutoScaling.</returns> /// <exception cref="Amazon.AutoScaling.Model.ResourceContentionException"> /// You already have a pending update to an Amazon EC2 Auto Scaling resource (for example, /// an Auto Scaling group, instance, or load balancer). /// </exception> /// <exception cref="Amazon.AutoScaling.Model.ServiceLinkedRoleFailureException"> /// The service-linked role is not yet ready for use. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/AttachLoadBalancers">REST API Reference for AttachLoadBalancers Operation</seealso> public virtual AttachLoadBalancersResponse AttachLoadBalancers(AttachLoadBalancersRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = AttachLoadBalancersRequestMarshaller.Instance; options.ResponseUnmarshaller = AttachLoadBalancersResponseUnmarshaller.Instance; return Invoke<AttachLoadBalancersResponse>(request, options); } /// <summary> /// Initiates the asynchronous execution of the AttachLoadBalancers operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the AttachLoadBalancers operation on AmazonAutoScalingClient.</param> /// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param> /// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property.</param> /// /// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndAttachLoadBalancers /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/AttachLoadBalancers">REST API Reference for AttachLoadBalancers Operation</seealso> public virtual IAsyncResult BeginAttachLoadBalancers(AttachLoadBalancersRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = AttachLoadBalancersRequestMarshaller.Instance; options.ResponseUnmarshaller = AttachLoadBalancersResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// <summary> /// Finishes the asynchronous execution of the AttachLoadBalancers operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginAttachLoadBalancers.</param> /// /// <returns>Returns a AttachLoadBalancersResult from AutoScaling.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/AttachLoadBalancers">REST API Reference for AttachLoadBalancers Operation</seealso> public virtual AttachLoadBalancersResponse EndAttachLoadBalancers(IAsyncResult asyncResult) { return EndInvoke<AttachLoadBalancersResponse>(asyncResult); } #endregion #region AttachLoadBalancerTargetGroups /// <summary> /// <note> /// <para> /// This API operation is superseded by <a>AttachTrafficSources</a>, which can attach /// multiple traffic sources types. We recommend using <code>AttachTrafficSources</code> /// to simplify how you manage traffic sources. However, we continue to support <code>AttachLoadBalancerTargetGroups</code>. /// You can use both the original <code>AttachLoadBalancerTargetGroups</code> API operation /// and <code>AttachTrafficSources</code> on the same Auto Scaling group. /// </para> /// </note> /// <para> /// Attaches one or more target groups to the specified Auto Scaling group. /// </para> /// /// <para> /// This operation is used with the following load balancer types: /// </para> /// <ul> <li> /// <para> /// Application Load Balancer - Operates at the application layer (layer 7) and supports /// HTTP and HTTPS. /// </para> /// </li> <li> /// <para> /// Network Load Balancer - Operates at the transport layer (layer 4) and supports TCP, /// TLS, and UDP. /// </para> /// </li> <li> /// <para> /// Gateway Load Balancer - Operates at the network layer (layer 3). /// </para> /// </li> </ul> /// <para> /// To describe the target groups for an Auto Scaling group, call the <a>DescribeLoadBalancerTargetGroups</a> /// API. To detach the target group from the Auto Scaling group, call the <a>DetachLoadBalancerTargetGroups</a> /// API. /// </para> /// /// <para> /// This operation is additive and does not detach existing target groups or Classic Load /// Balancers from the Auto Scaling group. /// </para> /// /// <para> /// For more information, see <a href="https://docs.aws.amazon.com/autoscaling/ec2/userguide/autoscaling-load-balancer.html">Use /// Elastic Load Balancing to distribute traffic across the instances in your Auto Scaling /// group</a> in the <i>Amazon EC2 Auto Scaling User Guide</i>. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the AttachLoadBalancerTargetGroups service method.</param> /// /// <returns>The response from the AttachLoadBalancerTargetGroups service method, as returned by AutoScaling.</returns> /// <exception cref="Amazon.AutoScaling.Model.ResourceContentionException"> /// You already have a pending update to an Amazon EC2 Auto Scaling resource (for example, /// an Auto Scaling group, instance, or load balancer). /// </exception> /// <exception cref="Amazon.AutoScaling.Model.ServiceLinkedRoleFailureException"> /// The service-linked role is not yet ready for use. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/AttachLoadBalancerTargetGroups">REST API Reference for AttachLoadBalancerTargetGroups Operation</seealso> public virtual AttachLoadBalancerTargetGroupsResponse AttachLoadBalancerTargetGroups(AttachLoadBalancerTargetGroupsRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = AttachLoadBalancerTargetGroupsRequestMarshaller.Instance; options.ResponseUnmarshaller = AttachLoadBalancerTargetGroupsResponseUnmarshaller.Instance; return Invoke<AttachLoadBalancerTargetGroupsResponse>(request, options); } /// <summary> /// Initiates the asynchronous execution of the AttachLoadBalancerTargetGroups operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the AttachLoadBalancerTargetGroups operation on AmazonAutoScalingClient.</param> /// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param> /// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property.</param> /// /// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndAttachLoadBalancerTargetGroups /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/AttachLoadBalancerTargetGroups">REST API Reference for AttachLoadBalancerTargetGroups Operation</seealso> public virtual IAsyncResult BeginAttachLoadBalancerTargetGroups(AttachLoadBalancerTargetGroupsRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = AttachLoadBalancerTargetGroupsRequestMarshaller.Instance; options.ResponseUnmarshaller = AttachLoadBalancerTargetGroupsResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// <summary> /// Finishes the asynchronous execution of the AttachLoadBalancerTargetGroups operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginAttachLoadBalancerTargetGroups.</param> /// /// <returns>Returns a AttachLoadBalancerTargetGroupsResult from AutoScaling.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/AttachLoadBalancerTargetGroups">REST API Reference for AttachLoadBalancerTargetGroups Operation</seealso> public virtual AttachLoadBalancerTargetGroupsResponse EndAttachLoadBalancerTargetGroups(IAsyncResult asyncResult) { return EndInvoke<AttachLoadBalancerTargetGroupsResponse>(asyncResult); } #endregion #region AttachTrafficSources /// <summary> /// Attaches one or more traffic sources to the specified Auto Scaling group. /// /// /// <para> /// You can use any of the following as traffic sources for an Auto Scaling group: /// </para> /// <ul> <li> /// <para> /// Application Load Balancer /// </para> /// </li> <li> /// <para> /// Classic Load Balancer /// </para> /// </li> <li> /// <para> /// Gateway Load Balancer /// </para> /// </li> <li> /// <para> /// Network Load Balancer /// </para> /// </li> <li> /// <para> /// VPC Lattice /// </para> /// </li> </ul> /// <para> /// This operation is additive and does not detach existing traffic sources from the Auto /// Scaling group. /// </para> /// /// <para> /// After the operation completes, use the <a>DescribeTrafficSources</a> API to return /// details about the state of the attachments between traffic sources and your Auto Scaling /// group. To detach a traffic source from the Auto Scaling group, call the <a>DetachTrafficSources</a> /// API. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the AttachTrafficSources service method.</param> /// /// <returns>The response from the AttachTrafficSources service method, as returned by AutoScaling.</returns> /// <exception cref="Amazon.AutoScaling.Model.ResourceContentionException"> /// You already have a pending update to an Amazon EC2 Auto Scaling resource (for example, /// an Auto Scaling group, instance, or load balancer). /// </exception> /// <exception cref="Amazon.AutoScaling.Model.ServiceLinkedRoleFailureException"> /// The service-linked role is not yet ready for use. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/AttachTrafficSources">REST API Reference for AttachTrafficSources Operation</seealso> public virtual AttachTrafficSourcesResponse AttachTrafficSources(AttachTrafficSourcesRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = AttachTrafficSourcesRequestMarshaller.Instance; options.ResponseUnmarshaller = AttachTrafficSourcesResponseUnmarshaller.Instance; return Invoke<AttachTrafficSourcesResponse>(request, options); } /// <summary> /// Initiates the asynchronous execution of the AttachTrafficSources operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the AttachTrafficSources operation on AmazonAutoScalingClient.</param> /// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param> /// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property.</param> /// /// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndAttachTrafficSources /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/AttachTrafficSources">REST API Reference for AttachTrafficSources Operation</seealso> public virtual IAsyncResult BeginAttachTrafficSources(AttachTrafficSourcesRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = AttachTrafficSourcesRequestMarshaller.Instance; options.ResponseUnmarshaller = AttachTrafficSourcesResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// <summary> /// Finishes the asynchronous execution of the AttachTrafficSources operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginAttachTrafficSources.</param> /// /// <returns>Returns a AttachTrafficSourcesResult from AutoScaling.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/AttachTrafficSources">REST API Reference for AttachTrafficSources Operation</seealso> public virtual AttachTrafficSourcesResponse EndAttachTrafficSources(IAsyncResult asyncResult) { return EndInvoke<AttachTrafficSourcesResponse>(asyncResult); } #endregion #region BatchDeleteScheduledAction /// <summary> /// Deletes one or more scheduled actions for the specified Auto Scaling group. /// </summary> /// <param name="request">Container for the necessary parameters to execute the BatchDeleteScheduledAction service method.</param> /// /// <returns>The response from the BatchDeleteScheduledAction service method, as returned by AutoScaling.</returns> /// <exception cref="Amazon.AutoScaling.Model.ResourceContentionException"> /// You already have a pending update to an Amazon EC2 Auto Scaling resource (for example, /// an Auto Scaling group, instance, or load balancer). /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/BatchDeleteScheduledAction">REST API Reference for BatchDeleteScheduledAction Operation</seealso> public virtual BatchDeleteScheduledActionResponse BatchDeleteScheduledAction(BatchDeleteScheduledActionRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = BatchDeleteScheduledActionRequestMarshaller.Instance; options.ResponseUnmarshaller = BatchDeleteScheduledActionResponseUnmarshaller.Instance; return Invoke<BatchDeleteScheduledActionResponse>(request, options); } /// <summary> /// Initiates the asynchronous execution of the BatchDeleteScheduledAction operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the BatchDeleteScheduledAction operation on AmazonAutoScalingClient.</param> /// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param> /// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property.</param> /// /// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndBatchDeleteScheduledAction /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/BatchDeleteScheduledAction">REST API Reference for BatchDeleteScheduledAction Operation</seealso> public virtual IAsyncResult BeginBatchDeleteScheduledAction(BatchDeleteScheduledActionRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = BatchDeleteScheduledActionRequestMarshaller.Instance; options.ResponseUnmarshaller = BatchDeleteScheduledActionResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// <summary> /// Finishes the asynchronous execution of the BatchDeleteScheduledAction operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginBatchDeleteScheduledAction.</param> /// /// <returns>Returns a BatchDeleteScheduledActionResult from AutoScaling.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/BatchDeleteScheduledAction">REST API Reference for BatchDeleteScheduledAction Operation</seealso> public virtual BatchDeleteScheduledActionResponse EndBatchDeleteScheduledAction(IAsyncResult asyncResult) { return EndInvoke<BatchDeleteScheduledActionResponse>(asyncResult); } #endregion #region BatchPutScheduledUpdateGroupAction /// <summary> /// Creates or updates one or more scheduled scaling actions for an Auto Scaling group. /// </summary> /// <param name="request">Container for the necessary parameters to execute the BatchPutScheduledUpdateGroupAction service method.</param> /// /// <returns>The response from the BatchPutScheduledUpdateGroupAction service method, as returned by AutoScaling.</returns> /// <exception cref="Amazon.AutoScaling.Model.AlreadyExistsException"> /// You already have an Auto Scaling group or launch configuration with this name. /// </exception> /// <exception cref="Amazon.AutoScaling.Model.LimitExceededException"> /// You have already reached a limit for your Amazon EC2 Auto Scaling resources (for example, /// Auto Scaling groups, launch configurations, or lifecycle hooks). For more information, /// see <a href="https://docs.aws.amazon.com/autoscaling/ec2/APIReference/API_DescribeAccountLimits.html">DescribeAccountLimits</a> /// in the <i>Amazon EC2 Auto Scaling API Reference</i>. /// </exception> /// <exception cref="Amazon.AutoScaling.Model.ResourceContentionException"> /// You already have a pending update to an Amazon EC2 Auto Scaling resource (for example, /// an Auto Scaling group, instance, or load balancer). /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/BatchPutScheduledUpdateGroupAction">REST API Reference for BatchPutScheduledUpdateGroupAction Operation</seealso> public virtual BatchPutScheduledUpdateGroupActionResponse BatchPutScheduledUpdateGroupAction(BatchPutScheduledUpdateGroupActionRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = BatchPutScheduledUpdateGroupActionRequestMarshaller.Instance; options.ResponseUnmarshaller = BatchPutScheduledUpdateGroupActionResponseUnmarshaller.Instance; return Invoke<BatchPutScheduledUpdateGroupActionResponse>(request, options); } /// <summary> /// Initiates the asynchronous execution of the BatchPutScheduledUpdateGroupAction operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the BatchPutScheduledUpdateGroupAction operation on AmazonAutoScalingClient.</param> /// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param> /// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property.</param> /// /// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndBatchPutScheduledUpdateGroupAction /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/BatchPutScheduledUpdateGroupAction">REST API Reference for BatchPutScheduledUpdateGroupAction Operation</seealso> public virtual IAsyncResult BeginBatchPutScheduledUpdateGroupAction(BatchPutScheduledUpdateGroupActionRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = BatchPutScheduledUpdateGroupActionRequestMarshaller.Instance; options.ResponseUnmarshaller = BatchPutScheduledUpdateGroupActionResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// <summary> /// Finishes the asynchronous execution of the BatchPutScheduledUpdateGroupAction operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginBatchPutScheduledUpdateGroupAction.</param> /// /// <returns>Returns a BatchPutScheduledUpdateGroupActionResult from AutoScaling.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/BatchPutScheduledUpdateGroupAction">REST API Reference for BatchPutScheduledUpdateGroupAction Operation</seealso> public virtual BatchPutScheduledUpdateGroupActionResponse EndBatchPutScheduledUpdateGroupAction(IAsyncResult asyncResult) { return EndInvoke<BatchPutScheduledUpdateGroupActionResponse>(asyncResult); } #endregion #region CancelInstanceRefresh /// <summary> /// Cancels an instance refresh or rollback that is in progress. If an instance refresh /// or rollback is not in progress, an <code>ActiveInstanceRefreshNotFound</code> error /// occurs. /// /// /// <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> /// When you cancel an instance refresh, this does not roll back any changes that it made. /// Use the <a>RollbackInstanceRefresh</a> API to roll back instead. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the CancelInstanceRefresh service method.</param> /// /// <returns>The response from the CancelInstanceRefresh service method, as returned by AutoScaling.</returns> /// <exception cref="Amazon.AutoScaling.Model.ActiveInstanceRefreshNotFoundException"> /// The request failed because an active instance refresh or rollback for the specified /// Auto Scaling group was not found. /// </exception> /// <exception cref="Amazon.AutoScaling.Model.LimitExceededException"> /// You have already reached a limit for your Amazon EC2 Auto Scaling resources (for example, /// Auto Scaling groups, launch configurations, or lifecycle hooks). For more information, /// see <a href="https://docs.aws.amazon.com/autoscaling/ec2/APIReference/API_DescribeAccountLimits.html">DescribeAccountLimits</a> /// in the <i>Amazon EC2 Auto Scaling API Reference</i>. /// </exception> /// <exception cref="Amazon.AutoScaling.Model.ResourceContentionException"> /// You already have a pending update to an Amazon EC2 Auto Scaling resource (for example, /// an Auto Scaling group, instance, or load balancer). /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/CancelInstanceRefresh">REST API Reference for CancelInstanceRefresh Operation</seealso> public virtual CancelInstanceRefreshResponse CancelInstanceRefresh(CancelInstanceRefreshRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = CancelInstanceRefreshRequestMarshaller.Instance; options.ResponseUnmarshaller = CancelInstanceRefreshResponseUnmarshaller.Instance; return Invoke<CancelInstanceRefreshResponse>(request, options); } /// <summary> /// Initiates the asynchronous execution of the CancelInstanceRefresh operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the CancelInstanceRefresh operation on AmazonAutoScalingClient.</param> /// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param> /// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property.</param> /// /// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndCancelInstanceRefresh /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/CancelInstanceRefresh">REST API Reference for CancelInstanceRefresh Operation</seealso> public virtual IAsyncResult BeginCancelInstanceRefresh(CancelInstanceRefreshRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = CancelInstanceRefreshRequestMarshaller.Instance; options.ResponseUnmarshaller = CancelInstanceRefreshResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// <summary> /// Finishes the asynchronous execution of the CancelInstanceRefresh operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginCancelInstanceRefresh.</param> /// /// <returns>Returns a CancelInstanceRefreshResult from AutoScaling.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/CancelInstanceRefresh">REST API Reference for CancelInstanceRefresh Operation</seealso> public virtual CancelInstanceRefreshResponse EndCancelInstanceRefresh(IAsyncResult asyncResult) { return EndInvoke<CancelInstanceRefreshResponse>(asyncResult); } #endregion #region CompleteLifecycleAction /// <summary> /// Completes the lifecycle action for the specified token or instance with the specified /// result. /// /// /// <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> /// If you need more time, record the lifecycle action heartbeat to keep the instance /// in a wait state. /// </para> /// </li> <li> /// <para> /// <b>If you finish before the timeout period ends, send a callback by using the <a>CompleteLifecycleAction</a> /// API call.</b> /// </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> /// <param name="request">Container for the necessary parameters to execute the CompleteLifecycleAction service method.</param> /// /// <returns>The response from the CompleteLifecycleAction service method, as returned by AutoScaling.</returns> /// <exception cref="Amazon.AutoScaling.Model.ResourceContentionException"> /// You already have a pending update to an Amazon EC2 Auto Scaling resource (for example, /// an Auto Scaling group, instance, or load balancer). /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/CompleteLifecycleAction">REST API Reference for CompleteLifecycleAction Operation</seealso> public virtual CompleteLifecycleActionResponse CompleteLifecycleAction(CompleteLifecycleActionRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = CompleteLifecycleActionRequestMarshaller.Instance; options.ResponseUnmarshaller = CompleteLifecycleActionResponseUnmarshaller.Instance; return Invoke<CompleteLifecycleActionResponse>(request, options); } /// <summary> /// Initiates the asynchronous execution of the CompleteLifecycleAction operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the CompleteLifecycleAction operation on AmazonAutoScalingClient.</param> /// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param> /// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property.</param> /// /// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndCompleteLifecycleAction /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/CompleteLifecycleAction">REST API Reference for CompleteLifecycleAction Operation</seealso> public virtual IAsyncResult BeginCompleteLifecycleAction(CompleteLifecycleActionRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = CompleteLifecycleActionRequestMarshaller.Instance; options.ResponseUnmarshaller = CompleteLifecycleActionResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// <summary> /// Finishes the asynchronous execution of the CompleteLifecycleAction operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginCompleteLifecycleAction.</param> /// /// <returns>Returns a CompleteLifecycleActionResult from AutoScaling.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/CompleteLifecycleAction">REST API Reference for CompleteLifecycleAction Operation</seealso> public virtual CompleteLifecycleActionResponse EndCompleteLifecycleAction(IAsyncResult asyncResult) { return EndInvoke<CompleteLifecycleActionResponse>(asyncResult); } #endregion #region CreateAutoScalingGroup /// <summary> /// <b>We strongly recommend using a launch template when calling this operation to ensure /// full functionality for Amazon EC2 Auto Scaling and Amazon EC2.</b> /// /// /// <para> /// Creates an Auto Scaling group with the specified name and attributes. /// </para> /// /// <para> /// If you exceed your maximum limit of Auto Scaling groups, the call fails. To query /// this limit, call the <a>DescribeAccountLimits</a> API. For information about updating /// this limit, see <a href="https://docs.aws.amazon.com/autoscaling/ec2/userguide/ec2-auto-scaling-quotas.html">Quotas /// for Amazon EC2 Auto Scaling</a> in the <i>Amazon EC2 Auto Scaling User Guide</i>. /// </para> /// /// <para> /// For introductory exercises for creating an Auto Scaling group, see <a href="https://docs.aws.amazon.com/autoscaling/ec2/userguide/GettingStartedTutorial.html">Getting /// started with Amazon EC2 Auto Scaling</a> and <a href="https://docs.aws.amazon.com/autoscaling/ec2/userguide/as-register-lbs-with-asg.html">Tutorial: /// Set up a scaled and load-balanced application</a> in the <i>Amazon EC2 Auto Scaling /// User Guide</i>. For more information, see <a href="https://docs.aws.amazon.com/autoscaling/ec2/userguide/AutoScalingGroup.html">Auto /// Scaling groups</a> in the <i>Amazon EC2 Auto Scaling User Guide</i>. /// </para> /// /// <para> /// Every Auto Scaling group has three size properties (<code>DesiredCapacity</code>, /// <code>MaxSize</code>, and <code>MinSize</code>). Usually, you set these sizes based /// on a specific number of instances. However, if you configure a mixed instances policy /// that defines weights for the instance types, you must specify these sizes with the /// same units that you use for weighting instances. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the CreateAutoScalingGroup service method.</param> /// /// <returns>The response from the CreateAutoScalingGroup service method, as returned by AutoScaling.</returns> /// <exception cref="Amazon.AutoScaling.Model.AlreadyExistsException"> /// You already have an Auto Scaling group or launch configuration with this name. /// </exception> /// <exception cref="Amazon.AutoScaling.Model.LimitExceededException"> /// You have already reached a limit for your Amazon EC2 Auto Scaling resources (for example, /// Auto Scaling groups, launch configurations, or lifecycle hooks). For more information, /// see <a href="https://docs.aws.amazon.com/autoscaling/ec2/APIReference/API_DescribeAccountLimits.html">DescribeAccountLimits</a> /// in the <i>Amazon EC2 Auto Scaling API Reference</i>. /// </exception> /// <exception cref="Amazon.AutoScaling.Model.ResourceContentionException"> /// You already have a pending update to an Amazon EC2 Auto Scaling resource (for example, /// an Auto Scaling group, instance, or load balancer). /// </exception> /// <exception cref="Amazon.AutoScaling.Model.ServiceLinkedRoleFailureException"> /// The service-linked role is not yet ready for use. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/CreateAutoScalingGroup">REST API Reference for CreateAutoScalingGroup Operation</seealso> public virtual CreateAutoScalingGroupResponse CreateAutoScalingGroup(CreateAutoScalingGroupRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = CreateAutoScalingGroupRequestMarshaller.Instance; options.ResponseUnmarshaller = CreateAutoScalingGroupResponseUnmarshaller.Instance; return Invoke<CreateAutoScalingGroupResponse>(request, options); } /// <summary> /// Initiates the asynchronous execution of the CreateAutoScalingGroup operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the CreateAutoScalingGroup operation on AmazonAutoScalingClient.</param> /// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param> /// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property.</param> /// /// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndCreateAutoScalingGroup /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/CreateAutoScalingGroup">REST API Reference for CreateAutoScalingGroup Operation</seealso> public virtual IAsyncResult BeginCreateAutoScalingGroup(CreateAutoScalingGroupRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = CreateAutoScalingGroupRequestMarshaller.Instance; options.ResponseUnmarshaller = CreateAutoScalingGroupResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// <summary> /// Finishes the asynchronous execution of the CreateAutoScalingGroup operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginCreateAutoScalingGroup.</param> /// /// <returns>Returns a CreateAutoScalingGroupResult from AutoScaling.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/CreateAutoScalingGroup">REST API Reference for CreateAutoScalingGroup Operation</seealso> public virtual CreateAutoScalingGroupResponse EndCreateAutoScalingGroup(IAsyncResult asyncResult) { return EndInvoke<CreateAutoScalingGroupResponse>(asyncResult); } #endregion #region CreateLaunchConfiguration /// <summary> /// Creates a launch configuration. /// /// /// <para> /// If you exceed your maximum limit of launch configurations, the call fails. To query /// this limit, call the <a>DescribeAccountLimits</a> API. For information about updating /// this limit, see <a href="https://docs.aws.amazon.com/autoscaling/ec2/userguide/ec2-auto-scaling-quotas.html">Quotas /// for Amazon EC2 Auto Scaling</a> in the <i>Amazon EC2 Auto Scaling User Guide</i>. /// </para> /// /// <para> /// For more information, see <a href="https://docs.aws.amazon.com/autoscaling/ec2/userguide/LaunchConfiguration.html">Launch /// configurations</a> in the <i>Amazon EC2 Auto Scaling User Guide</i>. /// </para> /// <note> /// <para> /// Amazon EC2 Auto Scaling configures instances launched as part of an Auto Scaling group /// using either a launch template or a launch configuration. We strongly recommend that /// you do not use launch configurations. They do not provide full functionality for Amazon /// EC2 Auto Scaling or Amazon EC2. For information about using launch templates, see /// <a href="https://docs.aws.amazon.com/autoscaling/ec2/userguide/launch-templates.html">Launch /// templates</a> in the <i>Amazon EC2 Auto Scaling User Guide</i>. /// </para> /// </note> /// </summary> /// <param name="request">Container for the necessary parameters to execute the CreateLaunchConfiguration service method.</param> /// /// <returns>The response from the CreateLaunchConfiguration service method, as returned by AutoScaling.</returns> /// <exception cref="Amazon.AutoScaling.Model.AlreadyExistsException"> /// You already have an Auto Scaling group or launch configuration with this name. /// </exception> /// <exception cref="Amazon.AutoScaling.Model.LimitExceededException"> /// You have already reached a limit for your Amazon EC2 Auto Scaling resources (for example, /// Auto Scaling groups, launch configurations, or lifecycle hooks). For more information, /// see <a href="https://docs.aws.amazon.com/autoscaling/ec2/APIReference/API_DescribeAccountLimits.html">DescribeAccountLimits</a> /// in the <i>Amazon EC2 Auto Scaling API Reference</i>. /// </exception> /// <exception cref="Amazon.AutoScaling.Model.ResourceContentionException"> /// You already have a pending update to an Amazon EC2 Auto Scaling resource (for example, /// an Auto Scaling group, instance, or load balancer). /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/CreateLaunchConfiguration">REST API Reference for CreateLaunchConfiguration Operation</seealso> public virtual CreateLaunchConfigurationResponse CreateLaunchConfiguration(CreateLaunchConfigurationRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = CreateLaunchConfigurationRequestMarshaller.Instance; options.ResponseUnmarshaller = CreateLaunchConfigurationResponseUnmarshaller.Instance; return Invoke<CreateLaunchConfigurationResponse>(request, options); } /// <summary> /// Initiates the asynchronous execution of the CreateLaunchConfiguration operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the CreateLaunchConfiguration operation on AmazonAutoScalingClient.</param> /// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param> /// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property.</param> /// /// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndCreateLaunchConfiguration /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/CreateLaunchConfiguration">REST API Reference for CreateLaunchConfiguration Operation</seealso> public virtual IAsyncResult BeginCreateLaunchConfiguration(CreateLaunchConfigurationRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = CreateLaunchConfigurationRequestMarshaller.Instance; options.ResponseUnmarshaller = CreateLaunchConfigurationResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// <summary> /// Finishes the asynchronous execution of the CreateLaunchConfiguration operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginCreateLaunchConfiguration.</param> /// /// <returns>Returns a CreateLaunchConfigurationResult from AutoScaling.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/CreateLaunchConfiguration">REST API Reference for CreateLaunchConfiguration Operation</seealso> public virtual CreateLaunchConfigurationResponse EndCreateLaunchConfiguration(IAsyncResult asyncResult) { return EndInvoke<CreateLaunchConfigurationResponse>(asyncResult); } #endregion #region CreateOrUpdateTags /// <summary> /// Creates or updates tags for the specified Auto Scaling group. /// /// /// <para> /// When you specify a tag with a key that already exists, the operation overwrites the /// previous tag definition, and you do not get an error message. /// </para> /// /// <para> /// For more information, see <a href="https://docs.aws.amazon.com/autoscaling/ec2/userguide/ec2-auto-scaling-tagging.html">Tag /// Auto Scaling groups and instances</a> in the <i>Amazon EC2 Auto Scaling User Guide</i>. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the CreateOrUpdateTags service method.</param> /// /// <returns>The response from the CreateOrUpdateTags service method, as returned by AutoScaling.</returns> /// <exception cref="Amazon.AutoScaling.Model.AlreadyExistsException"> /// You already have an Auto Scaling group or launch configuration with this name. /// </exception> /// <exception cref="Amazon.AutoScaling.Model.LimitExceededException"> /// You have already reached a limit for your Amazon EC2 Auto Scaling resources (for example, /// Auto Scaling groups, launch configurations, or lifecycle hooks). For more information, /// see <a href="https://docs.aws.amazon.com/autoscaling/ec2/APIReference/API_DescribeAccountLimits.html">DescribeAccountLimits</a> /// in the <i>Amazon EC2 Auto Scaling API Reference</i>. /// </exception> /// <exception cref="Amazon.AutoScaling.Model.ResourceContentionException"> /// You already have a pending update to an Amazon EC2 Auto Scaling resource (for example, /// an Auto Scaling group, instance, or load balancer). /// </exception> /// <exception cref="Amazon.AutoScaling.Model.ResourceInUseException"> /// The operation can't be performed because the resource is in use. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/CreateOrUpdateTags">REST API Reference for CreateOrUpdateTags Operation</seealso> public virtual CreateOrUpdateTagsResponse CreateOrUpdateTags(CreateOrUpdateTagsRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = CreateOrUpdateTagsRequestMarshaller.Instance; options.ResponseUnmarshaller = CreateOrUpdateTagsResponseUnmarshaller.Instance; return Invoke<CreateOrUpdateTagsResponse>(request, options); } /// <summary> /// Initiates the asynchronous execution of the CreateOrUpdateTags operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the CreateOrUpdateTags operation on AmazonAutoScalingClient.</param> /// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param> /// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property.</param> /// /// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndCreateOrUpdateTags /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/CreateOrUpdateTags">REST API Reference for CreateOrUpdateTags Operation</seealso> public virtual IAsyncResult BeginCreateOrUpdateTags(CreateOrUpdateTagsRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = CreateOrUpdateTagsRequestMarshaller.Instance; options.ResponseUnmarshaller = CreateOrUpdateTagsResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// <summary> /// Finishes the asynchronous execution of the CreateOrUpdateTags operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginCreateOrUpdateTags.</param> /// /// <returns>Returns a CreateOrUpdateTagsResult from AutoScaling.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/CreateOrUpdateTags">REST API Reference for CreateOrUpdateTags Operation</seealso> public virtual CreateOrUpdateTagsResponse EndCreateOrUpdateTags(IAsyncResult asyncResult) { return EndInvoke<CreateOrUpdateTagsResponse>(asyncResult); } #endregion #region DeleteAutoScalingGroup /// <summary> /// Deletes the specified Auto Scaling group. /// /// /// <para> /// If the group has instances or scaling activities in progress, you must specify the /// option to force the deletion in order for it to succeed. The force delete operation /// will also terminate the EC2 instances. If the group has a warm pool, the force delete /// option also deletes the warm pool. /// </para> /// /// <para> /// To remove instances from the Auto Scaling group before deleting it, call the <a>DetachInstances</a> /// API with the list of instances and the option to decrement the desired capacity. This /// ensures that Amazon EC2 Auto Scaling does not launch replacement instances. /// </para> /// /// <para> /// To terminate all instances before deleting the Auto Scaling group, call the <a>UpdateAutoScalingGroup</a> /// API and set the minimum size and desired capacity of the Auto Scaling group to zero. /// </para> /// /// <para> /// If the group has scaling policies, deleting the group deletes the policies, the underlying /// alarm actions, and any alarm that no longer has an associated action. /// </para> /// /// <para> /// For more information, see <a href="https://docs.aws.amazon.com/autoscaling/ec2/userguide/as-process-shutdown.html">Delete /// your Auto Scaling infrastructure</a> in the <i>Amazon EC2 Auto Scaling User Guide</i>. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the DeleteAutoScalingGroup service method.</param> /// /// <returns>The response from the DeleteAutoScalingGroup service method, as returned by AutoScaling.</returns> /// <exception cref="Amazon.AutoScaling.Model.ResourceContentionException"> /// You already have a pending update to an Amazon EC2 Auto Scaling resource (for example, /// an Auto Scaling group, instance, or load balancer). /// </exception> /// <exception cref="Amazon.AutoScaling.Model.ResourceInUseException"> /// The operation can't be performed because the resource is in use. /// </exception> /// <exception cref="Amazon.AutoScaling.Model.ScalingActivityInProgressException"> /// The operation can't be performed because there are scaling activities in progress. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/DeleteAutoScalingGroup">REST API Reference for DeleteAutoScalingGroup Operation</seealso> public virtual DeleteAutoScalingGroupResponse DeleteAutoScalingGroup(DeleteAutoScalingGroupRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DeleteAutoScalingGroupRequestMarshaller.Instance; options.ResponseUnmarshaller = DeleteAutoScalingGroupResponseUnmarshaller.Instance; return Invoke<DeleteAutoScalingGroupResponse>(request, options); } /// <summary> /// Initiates the asynchronous execution of the DeleteAutoScalingGroup operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the DeleteAutoScalingGroup operation on AmazonAutoScalingClient.</param> /// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param> /// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property.</param> /// /// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndDeleteAutoScalingGroup /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/DeleteAutoScalingGroup">REST API Reference for DeleteAutoScalingGroup Operation</seealso> public virtual IAsyncResult BeginDeleteAutoScalingGroup(DeleteAutoScalingGroupRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = DeleteAutoScalingGroupRequestMarshaller.Instance; options.ResponseUnmarshaller = DeleteAutoScalingGroupResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// <summary> /// Finishes the asynchronous execution of the DeleteAutoScalingGroup operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginDeleteAutoScalingGroup.</param> /// /// <returns>Returns a DeleteAutoScalingGroupResult from AutoScaling.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/DeleteAutoScalingGroup">REST API Reference for DeleteAutoScalingGroup Operation</seealso> public virtual DeleteAutoScalingGroupResponse EndDeleteAutoScalingGroup(IAsyncResult asyncResult) { return EndInvoke<DeleteAutoScalingGroupResponse>(asyncResult); } #endregion #region DeleteLaunchConfiguration /// <summary> /// Deletes the specified launch configuration. /// /// /// <para> /// The launch configuration must not be attached to an Auto Scaling group. When this /// call completes, the launch configuration is no longer available for use. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the DeleteLaunchConfiguration service method.</param> /// /// <returns>The response from the DeleteLaunchConfiguration service method, as returned by AutoScaling.</returns> /// <exception cref="Amazon.AutoScaling.Model.ResourceContentionException"> /// You already have a pending update to an Amazon EC2 Auto Scaling resource (for example, /// an Auto Scaling group, instance, or load balancer). /// </exception> /// <exception cref="Amazon.AutoScaling.Model.ResourceInUseException"> /// The operation can't be performed because the resource is in use. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/DeleteLaunchConfiguration">REST API Reference for DeleteLaunchConfiguration Operation</seealso> public virtual DeleteLaunchConfigurationResponse DeleteLaunchConfiguration(DeleteLaunchConfigurationRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DeleteLaunchConfigurationRequestMarshaller.Instance; options.ResponseUnmarshaller = DeleteLaunchConfigurationResponseUnmarshaller.Instance; return Invoke<DeleteLaunchConfigurationResponse>(request, options); } /// <summary> /// Initiates the asynchronous execution of the DeleteLaunchConfiguration operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the DeleteLaunchConfiguration operation on AmazonAutoScalingClient.</param> /// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param> /// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property.</param> /// /// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndDeleteLaunchConfiguration /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/DeleteLaunchConfiguration">REST API Reference for DeleteLaunchConfiguration Operation</seealso> public virtual IAsyncResult BeginDeleteLaunchConfiguration(DeleteLaunchConfigurationRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = DeleteLaunchConfigurationRequestMarshaller.Instance; options.ResponseUnmarshaller = DeleteLaunchConfigurationResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// <summary> /// Finishes the asynchronous execution of the DeleteLaunchConfiguration operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginDeleteLaunchConfiguration.</param> /// /// <returns>Returns a DeleteLaunchConfigurationResult from AutoScaling.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/DeleteLaunchConfiguration">REST API Reference for DeleteLaunchConfiguration Operation</seealso> public virtual DeleteLaunchConfigurationResponse EndDeleteLaunchConfiguration(IAsyncResult asyncResult) { return EndInvoke<DeleteLaunchConfigurationResponse>(asyncResult); } #endregion #region DeleteLifecycleHook /// <summary> /// Deletes the specified lifecycle hook. /// /// /// <para> /// If there are any outstanding lifecycle actions, they are completed first (<code>ABANDON</code> /// for launching instances, <code>CONTINUE</code> for terminating instances). /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the DeleteLifecycleHook service method.</param> /// /// <returns>The response from the DeleteLifecycleHook service method, as returned by AutoScaling.</returns> /// <exception cref="Amazon.AutoScaling.Model.ResourceContentionException"> /// You already have a pending update to an Amazon EC2 Auto Scaling resource (for example, /// an Auto Scaling group, instance, or load balancer). /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/DeleteLifecycleHook">REST API Reference for DeleteLifecycleHook Operation</seealso> public virtual DeleteLifecycleHookResponse DeleteLifecycleHook(DeleteLifecycleHookRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DeleteLifecycleHookRequestMarshaller.Instance; options.ResponseUnmarshaller = DeleteLifecycleHookResponseUnmarshaller.Instance; return Invoke<DeleteLifecycleHookResponse>(request, options); } /// <summary> /// Initiates the asynchronous execution of the DeleteLifecycleHook operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the DeleteLifecycleHook operation on AmazonAutoScalingClient.</param> /// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param> /// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property.</param> /// /// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndDeleteLifecycleHook /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/DeleteLifecycleHook">REST API Reference for DeleteLifecycleHook Operation</seealso> public virtual IAsyncResult BeginDeleteLifecycleHook(DeleteLifecycleHookRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = DeleteLifecycleHookRequestMarshaller.Instance; options.ResponseUnmarshaller = DeleteLifecycleHookResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// <summary> /// Finishes the asynchronous execution of the DeleteLifecycleHook operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginDeleteLifecycleHook.</param> /// /// <returns>Returns a DeleteLifecycleHookResult from AutoScaling.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/DeleteLifecycleHook">REST API Reference for DeleteLifecycleHook Operation</seealso> public virtual DeleteLifecycleHookResponse EndDeleteLifecycleHook(IAsyncResult asyncResult) { return EndInvoke<DeleteLifecycleHookResponse>(asyncResult); } #endregion #region DeleteNotificationConfiguration /// <summary> /// Deletes the specified notification. /// </summary> /// <param name="request">Container for the necessary parameters to execute the DeleteNotificationConfiguration service method.</param> /// /// <returns>The response from the DeleteNotificationConfiguration service method, as returned by AutoScaling.</returns> /// <exception cref="Amazon.AutoScaling.Model.ResourceContentionException"> /// You already have a pending update to an Amazon EC2 Auto Scaling resource (for example, /// an Auto Scaling group, instance, or load balancer). /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/DeleteNotificationConfiguration">REST API Reference for DeleteNotificationConfiguration Operation</seealso> public virtual DeleteNotificationConfigurationResponse DeleteNotificationConfiguration(DeleteNotificationConfigurationRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DeleteNotificationConfigurationRequestMarshaller.Instance; options.ResponseUnmarshaller = DeleteNotificationConfigurationResponseUnmarshaller.Instance; return Invoke<DeleteNotificationConfigurationResponse>(request, options); } /// <summary> /// Initiates the asynchronous execution of the DeleteNotificationConfiguration operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the DeleteNotificationConfiguration operation on AmazonAutoScalingClient.</param> /// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param> /// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property.</param> /// /// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndDeleteNotificationConfiguration /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/DeleteNotificationConfiguration">REST API Reference for DeleteNotificationConfiguration Operation</seealso> public virtual IAsyncResult BeginDeleteNotificationConfiguration(DeleteNotificationConfigurationRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = DeleteNotificationConfigurationRequestMarshaller.Instance; options.ResponseUnmarshaller = DeleteNotificationConfigurationResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// <summary> /// Finishes the asynchronous execution of the DeleteNotificationConfiguration operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginDeleteNotificationConfiguration.</param> /// /// <returns>Returns a DeleteNotificationConfigurationResult from AutoScaling.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/DeleteNotificationConfiguration">REST API Reference for DeleteNotificationConfiguration Operation</seealso> public virtual DeleteNotificationConfigurationResponse EndDeleteNotificationConfiguration(IAsyncResult asyncResult) { return EndInvoke<DeleteNotificationConfigurationResponse>(asyncResult); } #endregion #region DeletePolicy /// <summary> /// Deletes the specified scaling policy. /// /// /// <para> /// Deleting either a step scaling policy or a simple scaling policy deletes the underlying /// alarm action, but does not delete the alarm, even if it no longer has an associated /// action. /// </para> /// /// <para> /// For more information, see <a href="https://docs.aws.amazon.com/autoscaling/ec2/userguide/deleting-scaling-policy.html">Deleting /// a scaling policy</a> in the <i>Amazon EC2 Auto Scaling User Guide</i>. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the DeletePolicy service method.</param> /// /// <returns>The response from the DeletePolicy service method, as returned by AutoScaling.</returns> /// <exception cref="Amazon.AutoScaling.Model.ResourceContentionException"> /// You already have a pending update to an Amazon EC2 Auto Scaling resource (for example, /// an Auto Scaling group, instance, or load balancer). /// </exception> /// <exception cref="Amazon.AutoScaling.Model.ServiceLinkedRoleFailureException"> /// The service-linked role is not yet ready for use. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/DeletePolicy">REST API Reference for DeletePolicy Operation</seealso> public virtual DeletePolicyResponse DeletePolicy(DeletePolicyRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DeletePolicyRequestMarshaller.Instance; options.ResponseUnmarshaller = DeletePolicyResponseUnmarshaller.Instance; return Invoke<DeletePolicyResponse>(request, options); } /// <summary> /// Initiates the asynchronous execution of the DeletePolicy operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the DeletePolicy operation on AmazonAutoScalingClient.</param> /// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param> /// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property.</param> /// /// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndDeletePolicy /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/DeletePolicy">REST API Reference for DeletePolicy Operation</seealso> public virtual IAsyncResult BeginDeletePolicy(DeletePolicyRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = DeletePolicyRequestMarshaller.Instance; options.ResponseUnmarshaller = DeletePolicyResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// <summary> /// Finishes the asynchronous execution of the DeletePolicy operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginDeletePolicy.</param> /// /// <returns>Returns a DeletePolicyResult from AutoScaling.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/DeletePolicy">REST API Reference for DeletePolicy Operation</seealso> public virtual DeletePolicyResponse EndDeletePolicy(IAsyncResult asyncResult) { return EndInvoke<DeletePolicyResponse>(asyncResult); } #endregion #region DeleteScheduledAction /// <summary> /// Deletes the specified scheduled action. /// </summary> /// <param name="request">Container for the necessary parameters to execute the DeleteScheduledAction service method.</param> /// /// <returns>The response from the DeleteScheduledAction service method, as returned by AutoScaling.</returns> /// <exception cref="Amazon.AutoScaling.Model.ResourceContentionException"> /// You already have a pending update to an Amazon EC2 Auto Scaling resource (for example, /// an Auto Scaling group, instance, or load balancer). /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/DeleteScheduledAction">REST API Reference for DeleteScheduledAction Operation</seealso> public virtual DeleteScheduledActionResponse DeleteScheduledAction(DeleteScheduledActionRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DeleteScheduledActionRequestMarshaller.Instance; options.ResponseUnmarshaller = DeleteScheduledActionResponseUnmarshaller.Instance; return Invoke<DeleteScheduledActionResponse>(request, options); } /// <summary> /// Initiates the asynchronous execution of the DeleteScheduledAction operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the DeleteScheduledAction operation on AmazonAutoScalingClient.</param> /// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param> /// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property.</param> /// /// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndDeleteScheduledAction /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/DeleteScheduledAction">REST API Reference for DeleteScheduledAction Operation</seealso> public virtual IAsyncResult BeginDeleteScheduledAction(DeleteScheduledActionRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = DeleteScheduledActionRequestMarshaller.Instance; options.ResponseUnmarshaller = DeleteScheduledActionResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// <summary> /// Finishes the asynchronous execution of the DeleteScheduledAction operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginDeleteScheduledAction.</param> /// /// <returns>Returns a DeleteScheduledActionResult from AutoScaling.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/DeleteScheduledAction">REST API Reference for DeleteScheduledAction Operation</seealso> public virtual DeleteScheduledActionResponse EndDeleteScheduledAction(IAsyncResult asyncResult) { return EndInvoke<DeleteScheduledActionResponse>(asyncResult); } #endregion #region DeleteTags /// <summary> /// Deletes the specified tags. /// </summary> /// <param name="request">Container for the necessary parameters to execute the DeleteTags service method.</param> /// /// <returns>The response from the DeleteTags service method, as returned by AutoScaling.</returns> /// <exception cref="Amazon.AutoScaling.Model.ResourceContentionException"> /// You already have a pending update to an Amazon EC2 Auto Scaling resource (for example, /// an Auto Scaling group, instance, or load balancer). /// </exception> /// <exception cref="Amazon.AutoScaling.Model.ResourceInUseException"> /// The operation can't be performed because the resource is in use. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/DeleteTags">REST API Reference for DeleteTags Operation</seealso> public virtual DeleteTagsResponse DeleteTags(DeleteTagsRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DeleteTagsRequestMarshaller.Instance; options.ResponseUnmarshaller = DeleteTagsResponseUnmarshaller.Instance; return Invoke<DeleteTagsResponse>(request, options); } /// <summary> /// Initiates the asynchronous execution of the DeleteTags operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the DeleteTags operation on AmazonAutoScalingClient.</param> /// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param> /// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property.</param> /// /// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndDeleteTags /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/DeleteTags">REST API Reference for DeleteTags Operation</seealso> public virtual IAsyncResult BeginDeleteTags(DeleteTagsRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = DeleteTagsRequestMarshaller.Instance; options.ResponseUnmarshaller = DeleteTagsResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// <summary> /// Finishes the asynchronous execution of the DeleteTags operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginDeleteTags.</param> /// /// <returns>Returns a DeleteTagsResult from AutoScaling.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/DeleteTags">REST API Reference for DeleteTags Operation</seealso> public virtual DeleteTagsResponse EndDeleteTags(IAsyncResult asyncResult) { return EndInvoke<DeleteTagsResponse>(asyncResult); } #endregion #region DeleteWarmPool /// <summary> /// Deletes the warm pool for the specified Auto Scaling group. /// /// /// <para> /// For more information, 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> /// </summary> /// <param name="request">Container for the necessary parameters to execute the DeleteWarmPool service method.</param> /// /// <returns>The response from the DeleteWarmPool service method, as returned by AutoScaling.</returns> /// <exception cref="Amazon.AutoScaling.Model.LimitExceededException"> /// You have already reached a limit for your Amazon EC2 Auto Scaling resources (for example, /// Auto Scaling groups, launch configurations, or lifecycle hooks). For more information, /// see <a href="https://docs.aws.amazon.com/autoscaling/ec2/APIReference/API_DescribeAccountLimits.html">DescribeAccountLimits</a> /// in the <i>Amazon EC2 Auto Scaling API Reference</i>. /// </exception> /// <exception cref="Amazon.AutoScaling.Model.ResourceContentionException"> /// You already have a pending update to an Amazon EC2 Auto Scaling resource (for example, /// an Auto Scaling group, instance, or load balancer). /// </exception> /// <exception cref="Amazon.AutoScaling.Model.ResourceInUseException"> /// The operation can't be performed because the resource is in use. /// </exception> /// <exception cref="Amazon.AutoScaling.Model.ScalingActivityInProgressException"> /// The operation can't be performed because there are scaling activities in progress. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/DeleteWarmPool">REST API Reference for DeleteWarmPool Operation</seealso> public virtual DeleteWarmPoolResponse DeleteWarmPool(DeleteWarmPoolRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DeleteWarmPoolRequestMarshaller.Instance; options.ResponseUnmarshaller = DeleteWarmPoolResponseUnmarshaller.Instance; return Invoke<DeleteWarmPoolResponse>(request, options); } /// <summary> /// Initiates the asynchronous execution of the DeleteWarmPool operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the DeleteWarmPool operation on AmazonAutoScalingClient.</param> /// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param> /// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property.</param> /// /// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndDeleteWarmPool /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/DeleteWarmPool">REST API Reference for DeleteWarmPool Operation</seealso> public virtual IAsyncResult BeginDeleteWarmPool(DeleteWarmPoolRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = DeleteWarmPoolRequestMarshaller.Instance; options.ResponseUnmarshaller = DeleteWarmPoolResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// <summary> /// Finishes the asynchronous execution of the DeleteWarmPool operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginDeleteWarmPool.</param> /// /// <returns>Returns a DeleteWarmPoolResult from AutoScaling.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/DeleteWarmPool">REST API Reference for DeleteWarmPool Operation</seealso> public virtual DeleteWarmPoolResponse EndDeleteWarmPool(IAsyncResult asyncResult) { return EndInvoke<DeleteWarmPoolResponse>(asyncResult); } #endregion #region DescribeAccountLimits /// <summary> /// Describes the current Amazon EC2 Auto Scaling resource quotas for your account. /// /// /// <para> /// When you establish an Amazon Web Services account, the account has initial quotas /// on the maximum number of Auto Scaling groups and launch configurations that you can /// create in a given Region. For more information, see <a href="https://docs.aws.amazon.com/autoscaling/ec2/userguide/ec2-auto-scaling-quotas.html">Quotas /// for Amazon EC2 Auto Scaling</a> in the <i>Amazon EC2 Auto Scaling User Guide</i>. /// </para> /// </summary> /// /// <returns>The response from the DescribeAccountLimits service method, as returned by AutoScaling.</returns> /// <exception cref="Amazon.AutoScaling.Model.ResourceContentionException"> /// You already have a pending update to an Amazon EC2 Auto Scaling resource (for example, /// an Auto Scaling group, instance, or load balancer). /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/DescribeAccountLimits">REST API Reference for DescribeAccountLimits Operation</seealso> public virtual DescribeAccountLimitsResponse DescribeAccountLimits() { return DescribeAccountLimits(new DescribeAccountLimitsRequest()); } /// <summary> /// Describes the current Amazon EC2 Auto Scaling resource quotas for your account. /// /// /// <para> /// When you establish an Amazon Web Services account, the account has initial quotas /// on the maximum number of Auto Scaling groups and launch configurations that you can /// create in a given Region. For more information, see <a href="https://docs.aws.amazon.com/autoscaling/ec2/userguide/ec2-auto-scaling-quotas.html">Quotas /// for Amazon EC2 Auto Scaling</a> in the <i>Amazon EC2 Auto Scaling User Guide</i>. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the DescribeAccountLimits service method.</param> /// /// <returns>The response from the DescribeAccountLimits service method, as returned by AutoScaling.</returns> /// <exception cref="Amazon.AutoScaling.Model.ResourceContentionException"> /// You already have a pending update to an Amazon EC2 Auto Scaling resource (for example, /// an Auto Scaling group, instance, or load balancer). /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/DescribeAccountLimits">REST API Reference for DescribeAccountLimits Operation</seealso> public virtual DescribeAccountLimitsResponse DescribeAccountLimits(DescribeAccountLimitsRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DescribeAccountLimitsRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribeAccountLimitsResponseUnmarshaller.Instance; return Invoke<DescribeAccountLimitsResponse>(request, options); } /// <summary> /// Initiates the asynchronous execution of the DescribeAccountLimits operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the DescribeAccountLimits operation on AmazonAutoScalingClient.</param> /// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param> /// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property.</param> /// /// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndDescribeAccountLimits /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/DescribeAccountLimits">REST API Reference for DescribeAccountLimits Operation</seealso> public virtual IAsyncResult BeginDescribeAccountLimits(DescribeAccountLimitsRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = DescribeAccountLimitsRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribeAccountLimitsResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// <summary> /// Finishes the asynchronous execution of the DescribeAccountLimits operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginDescribeAccountLimits.</param> /// /// <returns>Returns a DescribeAccountLimitsResult from AutoScaling.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/DescribeAccountLimits">REST API Reference for DescribeAccountLimits Operation</seealso> public virtual DescribeAccountLimitsResponse EndDescribeAccountLimits(IAsyncResult asyncResult) { return EndInvoke<DescribeAccountLimitsResponse>(asyncResult); } #endregion #region DescribeAdjustmentTypes /// <summary> /// Describes the available adjustment types for step scaling and simple scaling policies. /// /// /// <para> /// The following adjustment types are supported: /// </para> /// <ul> <li> /// <para> /// <code>ChangeInCapacity</code> /// </para> /// </li> <li> /// <para> /// <code>ExactCapacity</code> /// </para> /// </li> <li> /// <para> /// <code>PercentChangeInCapacity</code> /// </para> /// </li> </ul> /// </summary> /// /// <returns>The response from the DescribeAdjustmentTypes service method, as returned by AutoScaling.</returns> /// <exception cref="Amazon.AutoScaling.Model.ResourceContentionException"> /// You already have a pending update to an Amazon EC2 Auto Scaling resource (for example, /// an Auto Scaling group, instance, or load balancer). /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/DescribeAdjustmentTypes">REST API Reference for DescribeAdjustmentTypes Operation</seealso> public virtual DescribeAdjustmentTypesResponse DescribeAdjustmentTypes() { return DescribeAdjustmentTypes(new DescribeAdjustmentTypesRequest()); } /// <summary> /// Describes the available adjustment types for step scaling and simple scaling policies. /// /// /// <para> /// The following adjustment types are supported: /// </para> /// <ul> <li> /// <para> /// <code>ChangeInCapacity</code> /// </para> /// </li> <li> /// <para> /// <code>ExactCapacity</code> /// </para> /// </li> <li> /// <para> /// <code>PercentChangeInCapacity</code> /// </para> /// </li> </ul> /// </summary> /// <param name="request">Container for the necessary parameters to execute the DescribeAdjustmentTypes service method.</param> /// /// <returns>The response from the DescribeAdjustmentTypes service method, as returned by AutoScaling.</returns> /// <exception cref="Amazon.AutoScaling.Model.ResourceContentionException"> /// You already have a pending update to an Amazon EC2 Auto Scaling resource (for example, /// an Auto Scaling group, instance, or load balancer). /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/DescribeAdjustmentTypes">REST API Reference for DescribeAdjustmentTypes Operation</seealso> public virtual DescribeAdjustmentTypesResponse DescribeAdjustmentTypes(DescribeAdjustmentTypesRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DescribeAdjustmentTypesRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribeAdjustmentTypesResponseUnmarshaller.Instance; return Invoke<DescribeAdjustmentTypesResponse>(request, options); } /// <summary> /// Initiates the asynchronous execution of the DescribeAdjustmentTypes operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the DescribeAdjustmentTypes operation on AmazonAutoScalingClient.</param> /// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param> /// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property.</param> /// /// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndDescribeAdjustmentTypes /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/DescribeAdjustmentTypes">REST API Reference for DescribeAdjustmentTypes Operation</seealso> public virtual IAsyncResult BeginDescribeAdjustmentTypes(DescribeAdjustmentTypesRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = DescribeAdjustmentTypesRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribeAdjustmentTypesResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// <summary> /// Finishes the asynchronous execution of the DescribeAdjustmentTypes operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginDescribeAdjustmentTypes.</param> /// /// <returns>Returns a DescribeAdjustmentTypesResult from AutoScaling.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/DescribeAdjustmentTypes">REST API Reference for DescribeAdjustmentTypes Operation</seealso> public virtual DescribeAdjustmentTypesResponse EndDescribeAdjustmentTypes(IAsyncResult asyncResult) { return EndInvoke<DescribeAdjustmentTypesResponse>(asyncResult); } #endregion #region DescribeAutoScalingGroups /// <summary> /// Gets information about the Auto Scaling groups in the account and Region. /// /// /// <para> /// If you specify Auto Scaling group names, the output includes information for only /// the specified Auto Scaling groups. If you specify filters, the output includes information /// for only those Auto Scaling groups that meet the filter criteria. If you do not specify /// group names or filters, the output includes information for all Auto Scaling groups. /// /// </para> /// /// <para> /// This operation also returns information about instances in Auto Scaling groups. To /// retrieve information about the instances in a warm pool, you must call the <a>DescribeWarmPool</a> /// API. /// </para> /// </summary> /// /// <returns>The response from the DescribeAutoScalingGroups service method, as returned by AutoScaling.</returns> /// <exception cref="Amazon.AutoScaling.Model.InvalidNextTokenException"> /// The <code>NextToken</code> value is not valid. /// </exception> /// <exception cref="Amazon.AutoScaling.Model.ResourceContentionException"> /// You already have a pending update to an Amazon EC2 Auto Scaling resource (for example, /// an Auto Scaling group, instance, or load balancer). /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/DescribeAutoScalingGroups">REST API Reference for DescribeAutoScalingGroups Operation</seealso> public virtual DescribeAutoScalingGroupsResponse DescribeAutoScalingGroups() { return DescribeAutoScalingGroups(new DescribeAutoScalingGroupsRequest()); } /// <summary> /// Gets information about the Auto Scaling groups in the account and Region. /// /// /// <para> /// If you specify Auto Scaling group names, the output includes information for only /// the specified Auto Scaling groups. If you specify filters, the output includes information /// for only those Auto Scaling groups that meet the filter criteria. If you do not specify /// group names or filters, the output includes information for all Auto Scaling groups. /// /// </para> /// /// <para> /// This operation also returns information about instances in Auto Scaling groups. To /// retrieve information about the instances in a warm pool, you must call the <a>DescribeWarmPool</a> /// API. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the DescribeAutoScalingGroups service method.</param> /// /// <returns>The response from the DescribeAutoScalingGroups service method, as returned by AutoScaling.</returns> /// <exception cref="Amazon.AutoScaling.Model.InvalidNextTokenException"> /// The <code>NextToken</code> value is not valid. /// </exception> /// <exception cref="Amazon.AutoScaling.Model.ResourceContentionException"> /// You already have a pending update to an Amazon EC2 Auto Scaling resource (for example, /// an Auto Scaling group, instance, or load balancer). /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/DescribeAutoScalingGroups">REST API Reference for DescribeAutoScalingGroups Operation</seealso> public virtual DescribeAutoScalingGroupsResponse DescribeAutoScalingGroups(DescribeAutoScalingGroupsRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DescribeAutoScalingGroupsRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribeAutoScalingGroupsResponseUnmarshaller.Instance; return Invoke<DescribeAutoScalingGroupsResponse>(request, options); } /// <summary> /// Initiates the asynchronous execution of the DescribeAutoScalingGroups operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the DescribeAutoScalingGroups operation on AmazonAutoScalingClient.</param> /// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param> /// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property.</param> /// /// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndDescribeAutoScalingGroups /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/DescribeAutoScalingGroups">REST API Reference for DescribeAutoScalingGroups Operation</seealso> public virtual IAsyncResult BeginDescribeAutoScalingGroups(DescribeAutoScalingGroupsRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = DescribeAutoScalingGroupsRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribeAutoScalingGroupsResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// <summary> /// Finishes the asynchronous execution of the DescribeAutoScalingGroups operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginDescribeAutoScalingGroups.</param> /// /// <returns>Returns a DescribeAutoScalingGroupsResult from AutoScaling.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/DescribeAutoScalingGroups">REST API Reference for DescribeAutoScalingGroups Operation</seealso> public virtual DescribeAutoScalingGroupsResponse EndDescribeAutoScalingGroups(IAsyncResult asyncResult) { return EndInvoke<DescribeAutoScalingGroupsResponse>(asyncResult); } #endregion #region DescribeAutoScalingInstances /// <summary> /// Gets information about the Auto Scaling instances in the account and Region. /// </summary> /// /// <returns>The response from the DescribeAutoScalingInstances service method, as returned by AutoScaling.</returns> /// <exception cref="Amazon.AutoScaling.Model.InvalidNextTokenException"> /// The <code>NextToken</code> value is not valid. /// </exception> /// <exception cref="Amazon.AutoScaling.Model.ResourceContentionException"> /// You already have a pending update to an Amazon EC2 Auto Scaling resource (for example, /// an Auto Scaling group, instance, or load balancer). /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/DescribeAutoScalingInstances">REST API Reference for DescribeAutoScalingInstances Operation</seealso> public virtual DescribeAutoScalingInstancesResponse DescribeAutoScalingInstances() { return DescribeAutoScalingInstances(new DescribeAutoScalingInstancesRequest()); } /// <summary> /// Gets information about the Auto Scaling instances in the account and Region. /// </summary> /// <param name="request">Container for the necessary parameters to execute the DescribeAutoScalingInstances service method.</param> /// /// <returns>The response from the DescribeAutoScalingInstances service method, as returned by AutoScaling.</returns> /// <exception cref="Amazon.AutoScaling.Model.InvalidNextTokenException"> /// The <code>NextToken</code> value is not valid. /// </exception> /// <exception cref="Amazon.AutoScaling.Model.ResourceContentionException"> /// You already have a pending update to an Amazon EC2 Auto Scaling resource (for example, /// an Auto Scaling group, instance, or load balancer). /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/DescribeAutoScalingInstances">REST API Reference for DescribeAutoScalingInstances Operation</seealso> public virtual DescribeAutoScalingInstancesResponse DescribeAutoScalingInstances(DescribeAutoScalingInstancesRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DescribeAutoScalingInstancesRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribeAutoScalingInstancesResponseUnmarshaller.Instance; return Invoke<DescribeAutoScalingInstancesResponse>(request, options); } /// <summary> /// Initiates the asynchronous execution of the DescribeAutoScalingInstances operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the DescribeAutoScalingInstances operation on AmazonAutoScalingClient.</param> /// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param> /// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property.</param> /// /// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndDescribeAutoScalingInstances /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/DescribeAutoScalingInstances">REST API Reference for DescribeAutoScalingInstances Operation</seealso> public virtual IAsyncResult BeginDescribeAutoScalingInstances(DescribeAutoScalingInstancesRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = DescribeAutoScalingInstancesRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribeAutoScalingInstancesResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// <summary> /// Finishes the asynchronous execution of the DescribeAutoScalingInstances operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginDescribeAutoScalingInstances.</param> /// /// <returns>Returns a DescribeAutoScalingInstancesResult from AutoScaling.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/DescribeAutoScalingInstances">REST API Reference for DescribeAutoScalingInstances Operation</seealso> public virtual DescribeAutoScalingInstancesResponse EndDescribeAutoScalingInstances(IAsyncResult asyncResult) { return EndInvoke<DescribeAutoScalingInstancesResponse>(asyncResult); } #endregion #region DescribeAutoScalingNotificationTypes /// <summary> /// Describes the notification types that are supported by Amazon EC2 Auto Scaling. /// </summary> /// /// <returns>The response from the DescribeAutoScalingNotificationTypes service method, as returned by AutoScaling.</returns> /// <exception cref="Amazon.AutoScaling.Model.ResourceContentionException"> /// You already have a pending update to an Amazon EC2 Auto Scaling resource (for example, /// an Auto Scaling group, instance, or load balancer). /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/DescribeAutoScalingNotificationTypes">REST API Reference for DescribeAutoScalingNotificationTypes Operation</seealso> public virtual DescribeAutoScalingNotificationTypesResponse DescribeAutoScalingNotificationTypes() { return DescribeAutoScalingNotificationTypes(new DescribeAutoScalingNotificationTypesRequest()); } /// <summary> /// Describes the notification types that are supported by Amazon EC2 Auto Scaling. /// </summary> /// <param name="request">Container for the necessary parameters to execute the DescribeAutoScalingNotificationTypes service method.</param> /// /// <returns>The response from the DescribeAutoScalingNotificationTypes service method, as returned by AutoScaling.</returns> /// <exception cref="Amazon.AutoScaling.Model.ResourceContentionException"> /// You already have a pending update to an Amazon EC2 Auto Scaling resource (for example, /// an Auto Scaling group, instance, or load balancer). /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/DescribeAutoScalingNotificationTypes">REST API Reference for DescribeAutoScalingNotificationTypes Operation</seealso> public virtual DescribeAutoScalingNotificationTypesResponse DescribeAutoScalingNotificationTypes(DescribeAutoScalingNotificationTypesRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DescribeAutoScalingNotificationTypesRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribeAutoScalingNotificationTypesResponseUnmarshaller.Instance; return Invoke<DescribeAutoScalingNotificationTypesResponse>(request, options); } /// <summary> /// Initiates the asynchronous execution of the DescribeAutoScalingNotificationTypes operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the DescribeAutoScalingNotificationTypes operation on AmazonAutoScalingClient.</param> /// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param> /// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property.</param> /// /// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndDescribeAutoScalingNotificationTypes /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/DescribeAutoScalingNotificationTypes">REST API Reference for DescribeAutoScalingNotificationTypes Operation</seealso> public virtual IAsyncResult BeginDescribeAutoScalingNotificationTypes(DescribeAutoScalingNotificationTypesRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = DescribeAutoScalingNotificationTypesRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribeAutoScalingNotificationTypesResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// <summary> /// Finishes the asynchronous execution of the DescribeAutoScalingNotificationTypes operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginDescribeAutoScalingNotificationTypes.</param> /// /// <returns>Returns a DescribeAutoScalingNotificationTypesResult from AutoScaling.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/DescribeAutoScalingNotificationTypes">REST API Reference for DescribeAutoScalingNotificationTypes Operation</seealso> public virtual DescribeAutoScalingNotificationTypesResponse EndDescribeAutoScalingNotificationTypes(IAsyncResult asyncResult) { return EndInvoke<DescribeAutoScalingNotificationTypesResponse>(asyncResult); } #endregion #region DescribeInstanceRefreshes /// <summary> /// Gets information about the instance refreshes for the specified 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 after you make configuration changes. /// </para> /// /// <para> /// To help you determine the status of an instance refresh, Amazon EC2 Auto Scaling returns /// information about the instance refreshes you previously initiated, including their /// status, start time, end time, the percentage of the instance refresh that is complete, /// and the number of instances remaining to update before the instance refresh is complete. /// If a rollback is initiated while an instance refresh is in progress, Amazon EC2 Auto /// Scaling also returns information about the rollback of the instance refresh. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the DescribeInstanceRefreshes service method.</param> /// /// <returns>The response from the DescribeInstanceRefreshes service method, as returned by AutoScaling.</returns> /// <exception cref="Amazon.AutoScaling.Model.InvalidNextTokenException"> /// The <code>NextToken</code> value is not valid. /// </exception> /// <exception cref="Amazon.AutoScaling.Model.ResourceContentionException"> /// You already have a pending update to an Amazon EC2 Auto Scaling resource (for example, /// an Auto Scaling group, instance, or load balancer). /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/DescribeInstanceRefreshes">REST API Reference for DescribeInstanceRefreshes Operation</seealso> public virtual DescribeInstanceRefreshesResponse DescribeInstanceRefreshes(DescribeInstanceRefreshesRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DescribeInstanceRefreshesRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribeInstanceRefreshesResponseUnmarshaller.Instance; return Invoke<DescribeInstanceRefreshesResponse>(request, options); } /// <summary> /// Initiates the asynchronous execution of the DescribeInstanceRefreshes operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the DescribeInstanceRefreshes operation on AmazonAutoScalingClient.</param> /// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param> /// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property.</param> /// /// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndDescribeInstanceRefreshes /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/DescribeInstanceRefreshes">REST API Reference for DescribeInstanceRefreshes Operation</seealso> public virtual IAsyncResult BeginDescribeInstanceRefreshes(DescribeInstanceRefreshesRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = DescribeInstanceRefreshesRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribeInstanceRefreshesResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// <summary> /// Finishes the asynchronous execution of the DescribeInstanceRefreshes operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginDescribeInstanceRefreshes.</param> /// /// <returns>Returns a DescribeInstanceRefreshesResult from AutoScaling.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/DescribeInstanceRefreshes">REST API Reference for DescribeInstanceRefreshes Operation</seealso> public virtual DescribeInstanceRefreshesResponse EndDescribeInstanceRefreshes(IAsyncResult asyncResult) { return EndInvoke<DescribeInstanceRefreshesResponse>(asyncResult); } #endregion #region DescribeLaunchConfigurations /// <summary> /// Gets information about the launch configurations in the account and Region. /// </summary> /// /// <returns>The response from the DescribeLaunchConfigurations service method, as returned by AutoScaling.</returns> /// <exception cref="Amazon.AutoScaling.Model.InvalidNextTokenException"> /// The <code>NextToken</code> value is not valid. /// </exception> /// <exception cref="Amazon.AutoScaling.Model.ResourceContentionException"> /// You already have a pending update to an Amazon EC2 Auto Scaling resource (for example, /// an Auto Scaling group, instance, or load balancer). /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/DescribeLaunchConfigurations">REST API Reference for DescribeLaunchConfigurations Operation</seealso> public virtual DescribeLaunchConfigurationsResponse DescribeLaunchConfigurations() { return DescribeLaunchConfigurations(new DescribeLaunchConfigurationsRequest()); } /// <summary> /// Gets information about the launch configurations in the account and Region. /// </summary> /// <param name="request">Container for the necessary parameters to execute the DescribeLaunchConfigurations service method.</param> /// /// <returns>The response from the DescribeLaunchConfigurations service method, as returned by AutoScaling.</returns> /// <exception cref="Amazon.AutoScaling.Model.InvalidNextTokenException"> /// The <code>NextToken</code> value is not valid. /// </exception> /// <exception cref="Amazon.AutoScaling.Model.ResourceContentionException"> /// You already have a pending update to an Amazon EC2 Auto Scaling resource (for example, /// an Auto Scaling group, instance, or load balancer). /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/DescribeLaunchConfigurations">REST API Reference for DescribeLaunchConfigurations Operation</seealso> public virtual DescribeLaunchConfigurationsResponse DescribeLaunchConfigurations(DescribeLaunchConfigurationsRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DescribeLaunchConfigurationsRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribeLaunchConfigurationsResponseUnmarshaller.Instance; return Invoke<DescribeLaunchConfigurationsResponse>(request, options); } /// <summary> /// Initiates the asynchronous execution of the DescribeLaunchConfigurations operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the DescribeLaunchConfigurations operation on AmazonAutoScalingClient.</param> /// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param> /// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property.</param> /// /// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndDescribeLaunchConfigurations /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/DescribeLaunchConfigurations">REST API Reference for DescribeLaunchConfigurations Operation</seealso> public virtual IAsyncResult BeginDescribeLaunchConfigurations(DescribeLaunchConfigurationsRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = DescribeLaunchConfigurationsRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribeLaunchConfigurationsResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// <summary> /// Finishes the asynchronous execution of the DescribeLaunchConfigurations operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginDescribeLaunchConfigurations.</param> /// /// <returns>Returns a DescribeLaunchConfigurationsResult from AutoScaling.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/DescribeLaunchConfigurations">REST API Reference for DescribeLaunchConfigurations Operation</seealso> public virtual DescribeLaunchConfigurationsResponse EndDescribeLaunchConfigurations(IAsyncResult asyncResult) { return EndInvoke<DescribeLaunchConfigurationsResponse>(asyncResult); } #endregion #region DescribeLifecycleHooks /// <summary> /// Gets information about the lifecycle hooks for the specified Auto Scaling group. /// </summary> /// <param name="request">Container for the necessary parameters to execute the DescribeLifecycleHooks service method.</param> /// /// <returns>The response from the DescribeLifecycleHooks service method, as returned by AutoScaling.</returns> /// <exception cref="Amazon.AutoScaling.Model.ResourceContentionException"> /// You already have a pending update to an Amazon EC2 Auto Scaling resource (for example, /// an Auto Scaling group, instance, or load balancer). /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/DescribeLifecycleHooks">REST API Reference for DescribeLifecycleHooks Operation</seealso> public virtual DescribeLifecycleHooksResponse DescribeLifecycleHooks(DescribeLifecycleHooksRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DescribeLifecycleHooksRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribeLifecycleHooksResponseUnmarshaller.Instance; return Invoke<DescribeLifecycleHooksResponse>(request, options); } /// <summary> /// Initiates the asynchronous execution of the DescribeLifecycleHooks operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the DescribeLifecycleHooks operation on AmazonAutoScalingClient.</param> /// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param> /// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property.</param> /// /// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndDescribeLifecycleHooks /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/DescribeLifecycleHooks">REST API Reference for DescribeLifecycleHooks Operation</seealso> public virtual IAsyncResult BeginDescribeLifecycleHooks(DescribeLifecycleHooksRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = DescribeLifecycleHooksRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribeLifecycleHooksResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// <summary> /// Finishes the asynchronous execution of the DescribeLifecycleHooks operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginDescribeLifecycleHooks.</param> /// /// <returns>Returns a DescribeLifecycleHooksResult from AutoScaling.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/DescribeLifecycleHooks">REST API Reference for DescribeLifecycleHooks Operation</seealso> public virtual DescribeLifecycleHooksResponse EndDescribeLifecycleHooks(IAsyncResult asyncResult) { return EndInvoke<DescribeLifecycleHooksResponse>(asyncResult); } #endregion #region DescribeLifecycleHookTypes /// <summary> /// Describes the available types of lifecycle hooks. /// /// /// <para> /// The following hook types are supported: /// </para> /// <ul> <li> /// <para> /// <code>autoscaling:EC2_INSTANCE_LAUNCHING</code> /// </para> /// </li> <li> /// <para> /// <code>autoscaling:EC2_INSTANCE_TERMINATING</code> /// </para> /// </li> </ul> /// </summary> /// <param name="request">Container for the necessary parameters to execute the DescribeLifecycleHookTypes service method.</param> /// /// <returns>The response from the DescribeLifecycleHookTypes service method, as returned by AutoScaling.</returns> /// <exception cref="Amazon.AutoScaling.Model.ResourceContentionException"> /// You already have a pending update to an Amazon EC2 Auto Scaling resource (for example, /// an Auto Scaling group, instance, or load balancer). /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/DescribeLifecycleHookTypes">REST API Reference for DescribeLifecycleHookTypes Operation</seealso> public virtual DescribeLifecycleHookTypesResponse DescribeLifecycleHookTypes(DescribeLifecycleHookTypesRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DescribeLifecycleHookTypesRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribeLifecycleHookTypesResponseUnmarshaller.Instance; return Invoke<DescribeLifecycleHookTypesResponse>(request, options); } /// <summary> /// Initiates the asynchronous execution of the DescribeLifecycleHookTypes operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the DescribeLifecycleHookTypes operation on AmazonAutoScalingClient.</param> /// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param> /// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property.</param> /// /// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndDescribeLifecycleHookTypes /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/DescribeLifecycleHookTypes">REST API Reference for DescribeLifecycleHookTypes Operation</seealso> public virtual IAsyncResult BeginDescribeLifecycleHookTypes(DescribeLifecycleHookTypesRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = DescribeLifecycleHookTypesRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribeLifecycleHookTypesResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// <summary> /// Finishes the asynchronous execution of the DescribeLifecycleHookTypes operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginDescribeLifecycleHookTypes.</param> /// /// <returns>Returns a DescribeLifecycleHookTypesResult from AutoScaling.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/DescribeLifecycleHookTypes">REST API Reference for DescribeLifecycleHookTypes Operation</seealso> public virtual DescribeLifecycleHookTypesResponse EndDescribeLifecycleHookTypes(IAsyncResult asyncResult) { return EndInvoke<DescribeLifecycleHookTypesResponse>(asyncResult); } #endregion #region DescribeLoadBalancers /// <summary> /// <note> /// <para> /// This API operation is superseded by <a>DescribeTrafficSources</a>, which can describe /// multiple traffic sources types. We recommend using <code>DescribeTrafficSources</code> /// to simplify how you manage traffic sources. However, we continue to support <code>DescribeLoadBalancers</code>. /// You can use both the original <code>DescribeLoadBalancers</code> API operation and /// <code>DescribeTrafficSources</code> on the same Auto Scaling group. /// </para> /// </note> /// <para> /// Gets information about the load balancers for the specified Auto Scaling group. /// </para> /// /// <para> /// This operation describes only Classic Load Balancers. If you have Application Load /// Balancers, Network Load Balancers, or Gateway Load Balancers, use the <a>DescribeLoadBalancerTargetGroups</a> /// API instead. /// </para> /// /// <para> /// To determine the attachment status of the load balancer, use the <code>State</code> /// element in the response. When you attach a load balancer to an Auto Scaling group, /// the initial <code>State</code> value is <code>Adding</code>. The state transitions /// to <code>Added</code> after all Auto Scaling instances are registered with the load /// balancer. If Elastic Load Balancing health checks are enabled for the Auto Scaling /// group, the state transitions to <code>InService</code> after at least one Auto Scaling /// instance passes the health check. When the load balancer is in the <code>InService</code> /// state, Amazon EC2 Auto Scaling can terminate and replace any instances that are reported /// as unhealthy. If no registered instances pass the health checks, the load balancer /// doesn't enter the <code>InService</code> state. /// </para> /// /// <para> /// Load balancers also have an <code>InService</code> state if you attach them in the /// <a>CreateAutoScalingGroup</a> API call. If your load balancer state is <code>InService</code>, /// but it is not working properly, check the scaling activities by calling <a>DescribeScalingActivities</a> /// and take any corrective actions necessary. /// </para> /// /// <para> /// For help with failed health checks, see <a href="https://docs.aws.amazon.com/autoscaling/ec2/userguide/ts-as-healthchecks.html">Troubleshooting /// Amazon EC2 Auto Scaling: Health checks</a> in the <i>Amazon EC2 Auto Scaling User /// Guide</i>. For more information, see <a href="https://docs.aws.amazon.com/autoscaling/ec2/userguide/autoscaling-load-balancer.html">Use /// Elastic Load Balancing to distribute traffic across the instances in your Auto Scaling /// group</a> in the <i>Amazon EC2 Auto Scaling User Guide</i>. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the DescribeLoadBalancers service method.</param> /// /// <returns>The response from the DescribeLoadBalancers service method, as returned by AutoScaling.</returns> /// <exception cref="Amazon.AutoScaling.Model.InvalidNextTokenException"> /// The <code>NextToken</code> value is not valid. /// </exception> /// <exception cref="Amazon.AutoScaling.Model.ResourceContentionException"> /// You already have a pending update to an Amazon EC2 Auto Scaling resource (for example, /// an Auto Scaling group, instance, or load balancer). /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/DescribeLoadBalancers">REST API Reference for DescribeLoadBalancers Operation</seealso> public virtual DescribeLoadBalancersResponse DescribeLoadBalancers(DescribeLoadBalancersRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DescribeLoadBalancersRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribeLoadBalancersResponseUnmarshaller.Instance; return Invoke<DescribeLoadBalancersResponse>(request, options); } /// <summary> /// Initiates the asynchronous execution of the DescribeLoadBalancers operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the DescribeLoadBalancers operation on AmazonAutoScalingClient.</param> /// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param> /// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property.</param> /// /// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndDescribeLoadBalancers /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/DescribeLoadBalancers">REST API Reference for DescribeLoadBalancers Operation</seealso> public virtual IAsyncResult BeginDescribeLoadBalancers(DescribeLoadBalancersRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = DescribeLoadBalancersRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribeLoadBalancersResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// <summary> /// Finishes the asynchronous execution of the DescribeLoadBalancers operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginDescribeLoadBalancers.</param> /// /// <returns>Returns a DescribeLoadBalancersResult from AutoScaling.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/DescribeLoadBalancers">REST API Reference for DescribeLoadBalancers Operation</seealso> public virtual DescribeLoadBalancersResponse EndDescribeLoadBalancers(IAsyncResult asyncResult) { return EndInvoke<DescribeLoadBalancersResponse>(asyncResult); } #endregion #region DescribeLoadBalancerTargetGroups /// <summary> /// <note> /// <para> /// This API operation is superseded by <a>DescribeTrafficSources</a>, which can describe /// multiple traffic sources types. We recommend using <code>DetachTrafficSources</code> /// to simplify how you manage traffic sources. However, we continue to support <code>DescribeLoadBalancerTargetGroups</code>. /// You can use both the original <code>DescribeLoadBalancerTargetGroups</code> API operation /// and <code>DescribeTrafficSources</code> on the same Auto Scaling group. /// </para> /// </note> /// <para> /// Gets information about the Elastic Load Balancing target groups for the specified /// Auto Scaling group. /// </para> /// /// <para> /// To determine the attachment status of the target group, use the <code>State</code> /// element in the response. When you attach a target group to an Auto Scaling group, /// the initial <code>State</code> value is <code>Adding</code>. The state transitions /// to <code>Added</code> after all Auto Scaling instances are registered with the target /// group. If Elastic Load Balancing health checks are enabled for the Auto Scaling group, /// the state transitions to <code>InService</code> after at least one Auto Scaling instance /// passes the health check. When the target group is in the <code>InService</code> state, /// Amazon EC2 Auto Scaling can terminate and replace any instances that are reported /// as unhealthy. If no registered instances pass the health checks, the target group /// doesn't enter the <code>InService</code> state. /// </para> /// /// <para> /// Target groups also have an <code>InService</code> state if you attach them in the /// <a>CreateAutoScalingGroup</a> API call. If your target group state is <code>InService</code>, /// but it is not working properly, check the scaling activities by calling <a>DescribeScalingActivities</a> /// and take any corrective actions necessary. /// </para> /// /// <para> /// For help with failed health checks, see <a href="https://docs.aws.amazon.com/autoscaling/ec2/userguide/ts-as-healthchecks.html">Troubleshooting /// Amazon EC2 Auto Scaling: Health checks</a> in the <i>Amazon EC2 Auto Scaling User /// Guide</i>. For more information, see <a href="https://docs.aws.amazon.com/autoscaling/ec2/userguide/autoscaling-load-balancer.html">Use /// Elastic Load Balancing to distribute traffic across the instances in your Auto Scaling /// group</a> in the <i>Amazon EC2 Auto Scaling User Guide</i>. /// </para> /// <note> /// <para> /// You can use this operation to describe target groups that were attached by using <a>AttachLoadBalancerTargetGroups</a>, /// but not for target groups that were attached by using <a>AttachTrafficSources</a>. /// </para> /// </note> /// </summary> /// <param name="request">Container for the necessary parameters to execute the DescribeLoadBalancerTargetGroups service method.</param> /// /// <returns>The response from the DescribeLoadBalancerTargetGroups service method, as returned by AutoScaling.</returns> /// <exception cref="Amazon.AutoScaling.Model.InvalidNextTokenException"> /// The <code>NextToken</code> value is not valid. /// </exception> /// <exception cref="Amazon.AutoScaling.Model.ResourceContentionException"> /// You already have a pending update to an Amazon EC2 Auto Scaling resource (for example, /// an Auto Scaling group, instance, or load balancer). /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/DescribeLoadBalancerTargetGroups">REST API Reference for DescribeLoadBalancerTargetGroups Operation</seealso> public virtual DescribeLoadBalancerTargetGroupsResponse DescribeLoadBalancerTargetGroups(DescribeLoadBalancerTargetGroupsRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DescribeLoadBalancerTargetGroupsRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribeLoadBalancerTargetGroupsResponseUnmarshaller.Instance; return Invoke<DescribeLoadBalancerTargetGroupsResponse>(request, options); } /// <summary> /// Initiates the asynchronous execution of the DescribeLoadBalancerTargetGroups operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the DescribeLoadBalancerTargetGroups operation on AmazonAutoScalingClient.</param> /// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param> /// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property.</param> /// /// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndDescribeLoadBalancerTargetGroups /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/DescribeLoadBalancerTargetGroups">REST API Reference for DescribeLoadBalancerTargetGroups Operation</seealso> public virtual IAsyncResult BeginDescribeLoadBalancerTargetGroups(DescribeLoadBalancerTargetGroupsRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = DescribeLoadBalancerTargetGroupsRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribeLoadBalancerTargetGroupsResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// <summary> /// Finishes the asynchronous execution of the DescribeLoadBalancerTargetGroups operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginDescribeLoadBalancerTargetGroups.</param> /// /// <returns>Returns a DescribeLoadBalancerTargetGroupsResult from AutoScaling.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/DescribeLoadBalancerTargetGroups">REST API Reference for DescribeLoadBalancerTargetGroups Operation</seealso> public virtual DescribeLoadBalancerTargetGroupsResponse EndDescribeLoadBalancerTargetGroups(IAsyncResult asyncResult) { return EndInvoke<DescribeLoadBalancerTargetGroupsResponse>(asyncResult); } #endregion #region DescribeMetricCollectionTypes /// <summary> /// Describes the available CloudWatch metrics for Amazon EC2 Auto Scaling. /// </summary> /// /// <returns>The response from the DescribeMetricCollectionTypes service method, as returned by AutoScaling.</returns> /// <exception cref="Amazon.AutoScaling.Model.ResourceContentionException"> /// You already have a pending update to an Amazon EC2 Auto Scaling resource (for example, /// an Auto Scaling group, instance, or load balancer). /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/DescribeMetricCollectionTypes">REST API Reference for DescribeMetricCollectionTypes Operation</seealso> public virtual DescribeMetricCollectionTypesResponse DescribeMetricCollectionTypes() { return DescribeMetricCollectionTypes(new DescribeMetricCollectionTypesRequest()); } /// <summary> /// Describes the available CloudWatch metrics for Amazon EC2 Auto Scaling. /// </summary> /// <param name="request">Container for the necessary parameters to execute the DescribeMetricCollectionTypes service method.</param> /// /// <returns>The response from the DescribeMetricCollectionTypes service method, as returned by AutoScaling.</returns> /// <exception cref="Amazon.AutoScaling.Model.ResourceContentionException"> /// You already have a pending update to an Amazon EC2 Auto Scaling resource (for example, /// an Auto Scaling group, instance, or load balancer). /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/DescribeMetricCollectionTypes">REST API Reference for DescribeMetricCollectionTypes Operation</seealso> public virtual DescribeMetricCollectionTypesResponse DescribeMetricCollectionTypes(DescribeMetricCollectionTypesRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DescribeMetricCollectionTypesRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribeMetricCollectionTypesResponseUnmarshaller.Instance; return Invoke<DescribeMetricCollectionTypesResponse>(request, options); } /// <summary> /// Initiates the asynchronous execution of the DescribeMetricCollectionTypes operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the DescribeMetricCollectionTypes operation on AmazonAutoScalingClient.</param> /// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param> /// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property.</param> /// /// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndDescribeMetricCollectionTypes /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/DescribeMetricCollectionTypes">REST API Reference for DescribeMetricCollectionTypes Operation</seealso> public virtual IAsyncResult BeginDescribeMetricCollectionTypes(DescribeMetricCollectionTypesRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = DescribeMetricCollectionTypesRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribeMetricCollectionTypesResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// <summary> /// Finishes the asynchronous execution of the DescribeMetricCollectionTypes operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginDescribeMetricCollectionTypes.</param> /// /// <returns>Returns a DescribeMetricCollectionTypesResult from AutoScaling.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/DescribeMetricCollectionTypes">REST API Reference for DescribeMetricCollectionTypes Operation</seealso> public virtual DescribeMetricCollectionTypesResponse EndDescribeMetricCollectionTypes(IAsyncResult asyncResult) { return EndInvoke<DescribeMetricCollectionTypesResponse>(asyncResult); } #endregion #region DescribeNotificationConfigurations /// <summary> /// Gets information about the Amazon SNS notifications that are configured for one or /// more Auto Scaling groups. /// </summary> /// /// <returns>The response from the DescribeNotificationConfigurations service method, as returned by AutoScaling.</returns> /// <exception cref="Amazon.AutoScaling.Model.InvalidNextTokenException"> /// The <code>NextToken</code> value is not valid. /// </exception> /// <exception cref="Amazon.AutoScaling.Model.ResourceContentionException"> /// You already have a pending update to an Amazon EC2 Auto Scaling resource (for example, /// an Auto Scaling group, instance, or load balancer). /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/DescribeNotificationConfigurations">REST API Reference for DescribeNotificationConfigurations Operation</seealso> public virtual DescribeNotificationConfigurationsResponse DescribeNotificationConfigurations() { return DescribeNotificationConfigurations(new DescribeNotificationConfigurationsRequest()); } /// <summary> /// Gets information about the Amazon SNS notifications that are configured for one or /// more Auto Scaling groups. /// </summary> /// <param name="request">Container for the necessary parameters to execute the DescribeNotificationConfigurations service method.</param> /// /// <returns>The response from the DescribeNotificationConfigurations service method, as returned by AutoScaling.</returns> /// <exception cref="Amazon.AutoScaling.Model.InvalidNextTokenException"> /// The <code>NextToken</code> value is not valid. /// </exception> /// <exception cref="Amazon.AutoScaling.Model.ResourceContentionException"> /// You already have a pending update to an Amazon EC2 Auto Scaling resource (for example, /// an Auto Scaling group, instance, or load balancer). /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/DescribeNotificationConfigurations">REST API Reference for DescribeNotificationConfigurations Operation</seealso> public virtual DescribeNotificationConfigurationsResponse DescribeNotificationConfigurations(DescribeNotificationConfigurationsRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DescribeNotificationConfigurationsRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribeNotificationConfigurationsResponseUnmarshaller.Instance; return Invoke<DescribeNotificationConfigurationsResponse>(request, options); } /// <summary> /// Initiates the asynchronous execution of the DescribeNotificationConfigurations operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the DescribeNotificationConfigurations operation on AmazonAutoScalingClient.</param> /// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param> /// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property.</param> /// /// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndDescribeNotificationConfigurations /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/DescribeNotificationConfigurations">REST API Reference for DescribeNotificationConfigurations Operation</seealso> public virtual IAsyncResult BeginDescribeNotificationConfigurations(DescribeNotificationConfigurationsRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = DescribeNotificationConfigurationsRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribeNotificationConfigurationsResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// <summary> /// Finishes the asynchronous execution of the DescribeNotificationConfigurations operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginDescribeNotificationConfigurations.</param> /// /// <returns>Returns a DescribeNotificationConfigurationsResult from AutoScaling.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/DescribeNotificationConfigurations">REST API Reference for DescribeNotificationConfigurations Operation</seealso> public virtual DescribeNotificationConfigurationsResponse EndDescribeNotificationConfigurations(IAsyncResult asyncResult) { return EndInvoke<DescribeNotificationConfigurationsResponse>(asyncResult); } #endregion #region DescribePolicies /// <summary> /// Gets information about the scaling policies in the account and Region. /// </summary> /// /// <returns>The response from the DescribePolicies service method, as returned by AutoScaling.</returns> /// <exception cref="Amazon.AutoScaling.Model.InvalidNextTokenException"> /// The <code>NextToken</code> value is not valid. /// </exception> /// <exception cref="Amazon.AutoScaling.Model.ResourceContentionException"> /// You already have a pending update to an Amazon EC2 Auto Scaling resource (for example, /// an Auto Scaling group, instance, or load balancer). /// </exception> /// <exception cref="Amazon.AutoScaling.Model.ServiceLinkedRoleFailureException"> /// The service-linked role is not yet ready for use. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/DescribePolicies">REST API Reference for DescribePolicies Operation</seealso> public virtual DescribePoliciesResponse DescribePolicies() { return DescribePolicies(new DescribePoliciesRequest()); } /// <summary> /// Gets information about the scaling policies in the account and Region. /// </summary> /// <param name="request">Container for the necessary parameters to execute the DescribePolicies service method.</param> /// /// <returns>The response from the DescribePolicies service method, as returned by AutoScaling.</returns> /// <exception cref="Amazon.AutoScaling.Model.InvalidNextTokenException"> /// The <code>NextToken</code> value is not valid. /// </exception> /// <exception cref="Amazon.AutoScaling.Model.ResourceContentionException"> /// You already have a pending update to an Amazon EC2 Auto Scaling resource (for example, /// an Auto Scaling group, instance, or load balancer). /// </exception> /// <exception cref="Amazon.AutoScaling.Model.ServiceLinkedRoleFailureException"> /// The service-linked role is not yet ready for use. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/DescribePolicies">REST API Reference for DescribePolicies Operation</seealso> public virtual DescribePoliciesResponse DescribePolicies(DescribePoliciesRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DescribePoliciesRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribePoliciesResponseUnmarshaller.Instance; return Invoke<DescribePoliciesResponse>(request, options); } /// <summary> /// Initiates the asynchronous execution of the DescribePolicies operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the DescribePolicies operation on AmazonAutoScalingClient.</param> /// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param> /// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property.</param> /// /// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndDescribePolicies /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/DescribePolicies">REST API Reference for DescribePolicies Operation</seealso> public virtual IAsyncResult BeginDescribePolicies(DescribePoliciesRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = DescribePoliciesRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribePoliciesResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// <summary> /// Finishes the asynchronous execution of the DescribePolicies operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginDescribePolicies.</param> /// /// <returns>Returns a DescribePoliciesResult from AutoScaling.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/DescribePolicies">REST API Reference for DescribePolicies Operation</seealso> public virtual DescribePoliciesResponse EndDescribePolicies(IAsyncResult asyncResult) { return EndInvoke<DescribePoliciesResponse>(asyncResult); } #endregion #region DescribeScalingActivities /// <summary> /// Gets information about the scaling activities in the account and Region. /// /// /// <para> /// When scaling events occur, you see a record of the scaling activity in the scaling /// activities. For more information, see <a href="https://docs.aws.amazon.com/autoscaling/ec2/userguide/as-verify-scaling-activity.html">Verifying /// a scaling activity for an Auto Scaling group</a> in the <i>Amazon EC2 Auto Scaling /// User Guide</i>. /// </para> /// /// <para> /// If the scaling event succeeds, the value of the <code>StatusCode</code> element in /// the response is <code>Successful</code>. If an attempt to launch instances failed, /// the <code>StatusCode</code> value is <code>Failed</code> or <code>Cancelled</code> /// and the <code>StatusMessage</code> element in the response indicates the cause of /// the failure. For help interpreting the <code>StatusMessage</code>, see <a href="https://docs.aws.amazon.com/autoscaling/ec2/userguide/CHAP_Troubleshooting.html">Troubleshooting /// Amazon EC2 Auto Scaling</a> in the <i>Amazon EC2 Auto Scaling User Guide</i>. /// </para> /// </summary> /// /// <returns>The response from the DescribeScalingActivities service method, as returned by AutoScaling.</returns> /// <exception cref="Amazon.AutoScaling.Model.InvalidNextTokenException"> /// The <code>NextToken</code> value is not valid. /// </exception> /// <exception cref="Amazon.AutoScaling.Model.ResourceContentionException"> /// You already have a pending update to an Amazon EC2 Auto Scaling resource (for example, /// an Auto Scaling group, instance, or load balancer). /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/DescribeScalingActivities">REST API Reference for DescribeScalingActivities Operation</seealso> public virtual DescribeScalingActivitiesResponse DescribeScalingActivities() { return DescribeScalingActivities(new DescribeScalingActivitiesRequest()); } /// <summary> /// Gets information about the scaling activities in the account and Region. /// /// /// <para> /// When scaling events occur, you see a record of the scaling activity in the scaling /// activities. For more information, see <a href="https://docs.aws.amazon.com/autoscaling/ec2/userguide/as-verify-scaling-activity.html">Verifying /// a scaling activity for an Auto Scaling group</a> in the <i>Amazon EC2 Auto Scaling /// User Guide</i>. /// </para> /// /// <para> /// If the scaling event succeeds, the value of the <code>StatusCode</code> element in /// the response is <code>Successful</code>. If an attempt to launch instances failed, /// the <code>StatusCode</code> value is <code>Failed</code> or <code>Cancelled</code> /// and the <code>StatusMessage</code> element in the response indicates the cause of /// the failure. For help interpreting the <code>StatusMessage</code>, see <a href="https://docs.aws.amazon.com/autoscaling/ec2/userguide/CHAP_Troubleshooting.html">Troubleshooting /// Amazon EC2 Auto Scaling</a> in the <i>Amazon EC2 Auto Scaling User Guide</i>. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the DescribeScalingActivities service method.</param> /// /// <returns>The response from the DescribeScalingActivities service method, as returned by AutoScaling.</returns> /// <exception cref="Amazon.AutoScaling.Model.InvalidNextTokenException"> /// The <code>NextToken</code> value is not valid. /// </exception> /// <exception cref="Amazon.AutoScaling.Model.ResourceContentionException"> /// You already have a pending update to an Amazon EC2 Auto Scaling resource (for example, /// an Auto Scaling group, instance, or load balancer). /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/DescribeScalingActivities">REST API Reference for DescribeScalingActivities Operation</seealso> public virtual DescribeScalingActivitiesResponse DescribeScalingActivities(DescribeScalingActivitiesRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DescribeScalingActivitiesRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribeScalingActivitiesResponseUnmarshaller.Instance; return Invoke<DescribeScalingActivitiesResponse>(request, options); } /// <summary> /// Initiates the asynchronous execution of the DescribeScalingActivities operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the DescribeScalingActivities operation on AmazonAutoScalingClient.</param> /// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param> /// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property.</param> /// /// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndDescribeScalingActivities /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/DescribeScalingActivities">REST API Reference for DescribeScalingActivities Operation</seealso> public virtual IAsyncResult BeginDescribeScalingActivities(DescribeScalingActivitiesRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = DescribeScalingActivitiesRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribeScalingActivitiesResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// <summary> /// Finishes the asynchronous execution of the DescribeScalingActivities operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginDescribeScalingActivities.</param> /// /// <returns>Returns a DescribeScalingActivitiesResult from AutoScaling.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/DescribeScalingActivities">REST API Reference for DescribeScalingActivities Operation</seealso> public virtual DescribeScalingActivitiesResponse EndDescribeScalingActivities(IAsyncResult asyncResult) { return EndInvoke<DescribeScalingActivitiesResponse>(asyncResult); } #endregion #region DescribeScalingProcessTypes /// <summary> /// Describes the scaling process types for use with the <a>ResumeProcesses</a> and <a>SuspendProcesses</a> /// APIs. /// </summary> /// /// <returns>The response from the DescribeScalingProcessTypes service method, as returned by AutoScaling.</returns> /// <exception cref="Amazon.AutoScaling.Model.ResourceContentionException"> /// You already have a pending update to an Amazon EC2 Auto Scaling resource (for example, /// an Auto Scaling group, instance, or load balancer). /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/DescribeScalingProcessTypes">REST API Reference for DescribeScalingProcessTypes Operation</seealso> public virtual DescribeScalingProcessTypesResponse DescribeScalingProcessTypes() { return DescribeScalingProcessTypes(new DescribeScalingProcessTypesRequest()); } /// <summary> /// Describes the scaling process types for use with the <a>ResumeProcesses</a> and <a>SuspendProcesses</a> /// APIs. /// </summary> /// <param name="request">Container for the necessary parameters to execute the DescribeScalingProcessTypes service method.</param> /// /// <returns>The response from the DescribeScalingProcessTypes service method, as returned by AutoScaling.</returns> /// <exception cref="Amazon.AutoScaling.Model.ResourceContentionException"> /// You already have a pending update to an Amazon EC2 Auto Scaling resource (for example, /// an Auto Scaling group, instance, or load balancer). /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/DescribeScalingProcessTypes">REST API Reference for DescribeScalingProcessTypes Operation</seealso> public virtual DescribeScalingProcessTypesResponse DescribeScalingProcessTypes(DescribeScalingProcessTypesRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DescribeScalingProcessTypesRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribeScalingProcessTypesResponseUnmarshaller.Instance; return Invoke<DescribeScalingProcessTypesResponse>(request, options); } /// <summary> /// Initiates the asynchronous execution of the DescribeScalingProcessTypes operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the DescribeScalingProcessTypes operation on AmazonAutoScalingClient.</param> /// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param> /// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property.</param> /// /// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndDescribeScalingProcessTypes /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/DescribeScalingProcessTypes">REST API Reference for DescribeScalingProcessTypes Operation</seealso> public virtual IAsyncResult BeginDescribeScalingProcessTypes(DescribeScalingProcessTypesRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = DescribeScalingProcessTypesRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribeScalingProcessTypesResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// <summary> /// Finishes the asynchronous execution of the DescribeScalingProcessTypes operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginDescribeScalingProcessTypes.</param> /// /// <returns>Returns a DescribeScalingProcessTypesResult from AutoScaling.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/DescribeScalingProcessTypes">REST API Reference for DescribeScalingProcessTypes Operation</seealso> public virtual DescribeScalingProcessTypesResponse EndDescribeScalingProcessTypes(IAsyncResult asyncResult) { return EndInvoke<DescribeScalingProcessTypesResponse>(asyncResult); } #endregion #region DescribeScheduledActions /// <summary> /// Gets information about the scheduled actions that haven't run or that have not reached /// their end time. /// /// /// <para> /// To describe the scaling activities for scheduled actions that have already run, call /// the <a>DescribeScalingActivities</a> API. /// </para> /// </summary> /// /// <returns>The response from the DescribeScheduledActions service method, as returned by AutoScaling.</returns> /// <exception cref="Amazon.AutoScaling.Model.InvalidNextTokenException"> /// The <code>NextToken</code> value is not valid. /// </exception> /// <exception cref="Amazon.AutoScaling.Model.ResourceContentionException"> /// You already have a pending update to an Amazon EC2 Auto Scaling resource (for example, /// an Auto Scaling group, instance, or load balancer). /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/DescribeScheduledActions">REST API Reference for DescribeScheduledActions Operation</seealso> public virtual DescribeScheduledActionsResponse DescribeScheduledActions() { return DescribeScheduledActions(new DescribeScheduledActionsRequest()); } /// <summary> /// Gets information about the scheduled actions that haven't run or that have not reached /// their end time. /// /// /// <para> /// To describe the scaling activities for scheduled actions that have already run, call /// the <a>DescribeScalingActivities</a> API. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the DescribeScheduledActions service method.</param> /// /// <returns>The response from the DescribeScheduledActions service method, as returned by AutoScaling.</returns> /// <exception cref="Amazon.AutoScaling.Model.InvalidNextTokenException"> /// The <code>NextToken</code> value is not valid. /// </exception> /// <exception cref="Amazon.AutoScaling.Model.ResourceContentionException"> /// You already have a pending update to an Amazon EC2 Auto Scaling resource (for example, /// an Auto Scaling group, instance, or load balancer). /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/DescribeScheduledActions">REST API Reference for DescribeScheduledActions Operation</seealso> public virtual DescribeScheduledActionsResponse DescribeScheduledActions(DescribeScheduledActionsRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DescribeScheduledActionsRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribeScheduledActionsResponseUnmarshaller.Instance; return Invoke<DescribeScheduledActionsResponse>(request, options); } /// <summary> /// Initiates the asynchronous execution of the DescribeScheduledActions operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the DescribeScheduledActions operation on AmazonAutoScalingClient.</param> /// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param> /// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property.</param> /// /// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndDescribeScheduledActions /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/DescribeScheduledActions">REST API Reference for DescribeScheduledActions Operation</seealso> public virtual IAsyncResult BeginDescribeScheduledActions(DescribeScheduledActionsRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = DescribeScheduledActionsRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribeScheduledActionsResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// <summary> /// Finishes the asynchronous execution of the DescribeScheduledActions operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginDescribeScheduledActions.</param> /// /// <returns>Returns a DescribeScheduledActionsResult from AutoScaling.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/DescribeScheduledActions">REST API Reference for DescribeScheduledActions Operation</seealso> public virtual DescribeScheduledActionsResponse EndDescribeScheduledActions(IAsyncResult asyncResult) { return EndInvoke<DescribeScheduledActionsResponse>(asyncResult); } #endregion #region DescribeTags /// <summary> /// Describes the specified tags. /// /// /// <para> /// You can use filters to limit the results. For example, you can query for the tags /// for a specific Auto Scaling group. You can specify multiple values for a filter. A /// tag must match at least one of the specified values for it to be included in the results. /// </para> /// /// <para> /// You can also specify multiple filters. The result includes information for a particular /// tag only if it matches all the filters. If there's no match, no special message is /// returned. /// </para> /// /// <para> /// For more information, see <a href="https://docs.aws.amazon.com/autoscaling/ec2/userguide/ec2-auto-scaling-tagging.html">Tag /// Auto Scaling groups and instances</a> in the <i>Amazon EC2 Auto Scaling User Guide</i>. /// </para> /// </summary> /// /// <returns>The response from the DescribeTags service method, as returned by AutoScaling.</returns> /// <exception cref="Amazon.AutoScaling.Model.InvalidNextTokenException"> /// The <code>NextToken</code> value is not valid. /// </exception> /// <exception cref="Amazon.AutoScaling.Model.ResourceContentionException"> /// You already have a pending update to an Amazon EC2 Auto Scaling resource (for example, /// an Auto Scaling group, instance, or load balancer). /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/DescribeTags">REST API Reference for DescribeTags Operation</seealso> public virtual DescribeTagsResponse DescribeTags() { return DescribeTags(new DescribeTagsRequest()); } /// <summary> /// Describes the specified tags. /// /// /// <para> /// You can use filters to limit the results. For example, you can query for the tags /// for a specific Auto Scaling group. You can specify multiple values for a filter. A /// tag must match at least one of the specified values for it to be included in the results. /// </para> /// /// <para> /// You can also specify multiple filters. The result includes information for a particular /// tag only if it matches all the filters. If there's no match, no special message is /// returned. /// </para> /// /// <para> /// For more information, see <a href="https://docs.aws.amazon.com/autoscaling/ec2/userguide/ec2-auto-scaling-tagging.html">Tag /// Auto Scaling groups and instances</a> in the <i>Amazon EC2 Auto Scaling User Guide</i>. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the DescribeTags service method.</param> /// /// <returns>The response from the DescribeTags service method, as returned by AutoScaling.</returns> /// <exception cref="Amazon.AutoScaling.Model.InvalidNextTokenException"> /// The <code>NextToken</code> value is not valid. /// </exception> /// <exception cref="Amazon.AutoScaling.Model.ResourceContentionException"> /// You already have a pending update to an Amazon EC2 Auto Scaling resource (for example, /// an Auto Scaling group, instance, or load balancer). /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/DescribeTags">REST API Reference for DescribeTags Operation</seealso> public virtual DescribeTagsResponse DescribeTags(DescribeTagsRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DescribeTagsRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribeTagsResponseUnmarshaller.Instance; return Invoke<DescribeTagsResponse>(request, options); } /// <summary> /// Initiates the asynchronous execution of the DescribeTags operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the DescribeTags operation on AmazonAutoScalingClient.</param> /// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param> /// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property.</param> /// /// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndDescribeTags /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/DescribeTags">REST API Reference for DescribeTags Operation</seealso> public virtual IAsyncResult BeginDescribeTags(DescribeTagsRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = DescribeTagsRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribeTagsResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// <summary> /// Finishes the asynchronous execution of the DescribeTags operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginDescribeTags.</param> /// /// <returns>Returns a DescribeTagsResult from AutoScaling.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/DescribeTags">REST API Reference for DescribeTags Operation</seealso> public virtual DescribeTagsResponse EndDescribeTags(IAsyncResult asyncResult) { return EndInvoke<DescribeTagsResponse>(asyncResult); } #endregion #region DescribeTerminationPolicyTypes /// <summary> /// Describes the termination policies supported by Amazon EC2 Auto Scaling. /// /// /// <para> /// 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> /// </summary> /// /// <returns>The response from the DescribeTerminationPolicyTypes service method, as returned by AutoScaling.</returns> /// <exception cref="Amazon.AutoScaling.Model.ResourceContentionException"> /// You already have a pending update to an Amazon EC2 Auto Scaling resource (for example, /// an Auto Scaling group, instance, or load balancer). /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/DescribeTerminationPolicyTypes">REST API Reference for DescribeTerminationPolicyTypes Operation</seealso> public virtual DescribeTerminationPolicyTypesResponse DescribeTerminationPolicyTypes() { return DescribeTerminationPolicyTypes(new DescribeTerminationPolicyTypesRequest()); } /// <summary> /// Describes the termination policies supported by Amazon EC2 Auto Scaling. /// /// /// <para> /// 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> /// </summary> /// <param name="request">Container for the necessary parameters to execute the DescribeTerminationPolicyTypes service method.</param> /// /// <returns>The response from the DescribeTerminationPolicyTypes service method, as returned by AutoScaling.</returns> /// <exception cref="Amazon.AutoScaling.Model.ResourceContentionException"> /// You already have a pending update to an Amazon EC2 Auto Scaling resource (for example, /// an Auto Scaling group, instance, or load balancer). /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/DescribeTerminationPolicyTypes">REST API Reference for DescribeTerminationPolicyTypes Operation</seealso> public virtual DescribeTerminationPolicyTypesResponse DescribeTerminationPolicyTypes(DescribeTerminationPolicyTypesRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DescribeTerminationPolicyTypesRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribeTerminationPolicyTypesResponseUnmarshaller.Instance; return Invoke<DescribeTerminationPolicyTypesResponse>(request, options); } /// <summary> /// Initiates the asynchronous execution of the DescribeTerminationPolicyTypes operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the DescribeTerminationPolicyTypes operation on AmazonAutoScalingClient.</param> /// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param> /// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property.</param> /// /// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndDescribeTerminationPolicyTypes /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/DescribeTerminationPolicyTypes">REST API Reference for DescribeTerminationPolicyTypes Operation</seealso> public virtual IAsyncResult BeginDescribeTerminationPolicyTypes(DescribeTerminationPolicyTypesRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = DescribeTerminationPolicyTypesRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribeTerminationPolicyTypesResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// <summary> /// Finishes the asynchronous execution of the DescribeTerminationPolicyTypes operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginDescribeTerminationPolicyTypes.</param> /// /// <returns>Returns a DescribeTerminationPolicyTypesResult from AutoScaling.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/DescribeTerminationPolicyTypes">REST API Reference for DescribeTerminationPolicyTypes Operation</seealso> public virtual DescribeTerminationPolicyTypesResponse EndDescribeTerminationPolicyTypes(IAsyncResult asyncResult) { return EndInvoke<DescribeTerminationPolicyTypesResponse>(asyncResult); } #endregion #region DescribeTrafficSources /// <summary> /// Gets information about the traffic sources for the specified Auto Scaling group. /// /// /// <para> /// You can optionally provide a traffic source type. If you provide a traffic source /// type, then the results only include that traffic source type. /// </para> /// /// <para> /// If you do not provide a traffic source type, then the results include all the traffic /// sources for the specified Auto Scaling group. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the DescribeTrafficSources service method.</param> /// /// <returns>The response from the DescribeTrafficSources service method, as returned by AutoScaling.</returns> /// <exception cref="Amazon.AutoScaling.Model.InvalidNextTokenException"> /// The <code>NextToken</code> value is not valid. /// </exception> /// <exception cref="Amazon.AutoScaling.Model.ResourceContentionException"> /// You already have a pending update to an Amazon EC2 Auto Scaling resource (for example, /// an Auto Scaling group, instance, or load balancer). /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/DescribeTrafficSources">REST API Reference for DescribeTrafficSources Operation</seealso> public virtual DescribeTrafficSourcesResponse DescribeTrafficSources(DescribeTrafficSourcesRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DescribeTrafficSourcesRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribeTrafficSourcesResponseUnmarshaller.Instance; return Invoke<DescribeTrafficSourcesResponse>(request, options); } /// <summary> /// Initiates the asynchronous execution of the DescribeTrafficSources operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the DescribeTrafficSources operation on AmazonAutoScalingClient.</param> /// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param> /// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property.</param> /// /// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndDescribeTrafficSources /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/DescribeTrafficSources">REST API Reference for DescribeTrafficSources Operation</seealso> public virtual IAsyncResult BeginDescribeTrafficSources(DescribeTrafficSourcesRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = DescribeTrafficSourcesRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribeTrafficSourcesResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// <summary> /// Finishes the asynchronous execution of the DescribeTrafficSources operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginDescribeTrafficSources.</param> /// /// <returns>Returns a DescribeTrafficSourcesResult from AutoScaling.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/DescribeTrafficSources">REST API Reference for DescribeTrafficSources Operation</seealso> public virtual DescribeTrafficSourcesResponse EndDescribeTrafficSources(IAsyncResult asyncResult) { return EndInvoke<DescribeTrafficSourcesResponse>(asyncResult); } #endregion #region DescribeWarmPool /// <summary> /// Gets information about a warm pool and its instances. /// /// /// <para> /// For more information, 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> /// </summary> /// <param name="request">Container for the necessary parameters to execute the DescribeWarmPool service method.</param> /// /// <returns>The response from the DescribeWarmPool service method, as returned by AutoScaling.</returns> /// <exception cref="Amazon.AutoScaling.Model.InvalidNextTokenException"> /// The <code>NextToken</code> value is not valid. /// </exception> /// <exception cref="Amazon.AutoScaling.Model.LimitExceededException"> /// You have already reached a limit for your Amazon EC2 Auto Scaling resources (for example, /// Auto Scaling groups, launch configurations, or lifecycle hooks). For more information, /// see <a href="https://docs.aws.amazon.com/autoscaling/ec2/APIReference/API_DescribeAccountLimits.html">DescribeAccountLimits</a> /// in the <i>Amazon EC2 Auto Scaling API Reference</i>. /// </exception> /// <exception cref="Amazon.AutoScaling.Model.ResourceContentionException"> /// You already have a pending update to an Amazon EC2 Auto Scaling resource (for example, /// an Auto Scaling group, instance, or load balancer). /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/DescribeWarmPool">REST API Reference for DescribeWarmPool Operation</seealso> public virtual DescribeWarmPoolResponse DescribeWarmPool(DescribeWarmPoolRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DescribeWarmPoolRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribeWarmPoolResponseUnmarshaller.Instance; return Invoke<DescribeWarmPoolResponse>(request, options); } /// <summary> /// Initiates the asynchronous execution of the DescribeWarmPool operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the DescribeWarmPool operation on AmazonAutoScalingClient.</param> /// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param> /// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property.</param> /// /// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndDescribeWarmPool /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/DescribeWarmPool">REST API Reference for DescribeWarmPool Operation</seealso> public virtual IAsyncResult BeginDescribeWarmPool(DescribeWarmPoolRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = DescribeWarmPoolRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribeWarmPoolResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// <summary> /// Finishes the asynchronous execution of the DescribeWarmPool operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginDescribeWarmPool.</param> /// /// <returns>Returns a DescribeWarmPoolResult from AutoScaling.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/DescribeWarmPool">REST API Reference for DescribeWarmPool Operation</seealso> public virtual DescribeWarmPoolResponse EndDescribeWarmPool(IAsyncResult asyncResult) { return EndInvoke<DescribeWarmPoolResponse>(asyncResult); } #endregion #region DetachInstances /// <summary> /// Removes one or more instances from the specified Auto Scaling group. /// /// /// <para> /// After the instances are detached, you can manage them independent of the Auto Scaling /// group. /// </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 detached. /// </para> /// /// <para> /// If there is a Classic Load Balancer attached to the Auto Scaling group, the instances /// are deregistered from the load balancer. If there are target groups attached to the /// Auto Scaling group, the instances are deregistered from the target groups. /// </para> /// /// <para> /// For more information, see <a href="https://docs.aws.amazon.com/autoscaling/ec2/userguide/detach-instance-asg.html">Detach /// EC2 instances from your Auto Scaling group</a> in the <i>Amazon EC2 Auto Scaling User /// Guide</i>. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the DetachInstances service method.</param> /// /// <returns>The response from the DetachInstances service method, as returned by AutoScaling.</returns> /// <exception cref="Amazon.AutoScaling.Model.ResourceContentionException"> /// You already have a pending update to an Amazon EC2 Auto Scaling resource (for example, /// an Auto Scaling group, instance, or load balancer). /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/DetachInstances">REST API Reference for DetachInstances Operation</seealso> public virtual DetachInstancesResponse DetachInstances(DetachInstancesRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DetachInstancesRequestMarshaller.Instance; options.ResponseUnmarshaller = DetachInstancesResponseUnmarshaller.Instance; return Invoke<DetachInstancesResponse>(request, options); } /// <summary> /// Initiates the asynchronous execution of the DetachInstances operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the DetachInstances operation on AmazonAutoScalingClient.</param> /// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param> /// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property.</param> /// /// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndDetachInstances /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/DetachInstances">REST API Reference for DetachInstances Operation</seealso> public virtual IAsyncResult BeginDetachInstances(DetachInstancesRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = DetachInstancesRequestMarshaller.Instance; options.ResponseUnmarshaller = DetachInstancesResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// <summary> /// Finishes the asynchronous execution of the DetachInstances operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginDetachInstances.</param> /// /// <returns>Returns a DetachInstancesResult from AutoScaling.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/DetachInstances">REST API Reference for DetachInstances Operation</seealso> public virtual DetachInstancesResponse EndDetachInstances(IAsyncResult asyncResult) { return EndInvoke<DetachInstancesResponse>(asyncResult); } #endregion #region DetachLoadBalancers /// <summary> /// <note> /// <para> /// This API operation is superseded by <a>DetachTrafficSources</a>, which can detach /// multiple traffic sources types. We recommend using <code>DetachTrafficSources</code> /// to simplify how you manage traffic sources. However, we continue to support <code>DetachLoadBalancers</code>. /// You can use both the original <code>DetachLoadBalancers</code> API operation and <code>DetachTrafficSources</code> /// on the same Auto Scaling group. /// </para> /// </note> /// <para> /// Detaches one or more Classic Load Balancers from the specified Auto Scaling group. /// </para> /// /// <para> /// This operation detaches only Classic Load Balancers. If you have Application Load /// Balancers, Network Load Balancers, or Gateway Load Balancers, use the <a>DetachLoadBalancerTargetGroups</a> /// API instead. /// </para> /// /// <para> /// When you detach a load balancer, it enters the <code>Removing</code> state while deregistering /// the instances in the group. When all instances are deregistered, then you can no longer /// describe the load balancer using the <a>DescribeLoadBalancers</a> API call. The instances /// remain running. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the DetachLoadBalancers service method.</param> /// /// <returns>The response from the DetachLoadBalancers service method, as returned by AutoScaling.</returns> /// <exception cref="Amazon.AutoScaling.Model.ResourceContentionException"> /// You already have a pending update to an Amazon EC2 Auto Scaling resource (for example, /// an Auto Scaling group, instance, or load balancer). /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/DetachLoadBalancers">REST API Reference for DetachLoadBalancers Operation</seealso> public virtual DetachLoadBalancersResponse DetachLoadBalancers(DetachLoadBalancersRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DetachLoadBalancersRequestMarshaller.Instance; options.ResponseUnmarshaller = DetachLoadBalancersResponseUnmarshaller.Instance; return Invoke<DetachLoadBalancersResponse>(request, options); } /// <summary> /// Initiates the asynchronous execution of the DetachLoadBalancers operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the DetachLoadBalancers operation on AmazonAutoScalingClient.</param> /// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param> /// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property.</param> /// /// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndDetachLoadBalancers /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/DetachLoadBalancers">REST API Reference for DetachLoadBalancers Operation</seealso> public virtual IAsyncResult BeginDetachLoadBalancers(DetachLoadBalancersRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = DetachLoadBalancersRequestMarshaller.Instance; options.ResponseUnmarshaller = DetachLoadBalancersResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// <summary> /// Finishes the asynchronous execution of the DetachLoadBalancers operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginDetachLoadBalancers.</param> /// /// <returns>Returns a DetachLoadBalancersResult from AutoScaling.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/DetachLoadBalancers">REST API Reference for DetachLoadBalancers Operation</seealso> public virtual DetachLoadBalancersResponse EndDetachLoadBalancers(IAsyncResult asyncResult) { return EndInvoke<DetachLoadBalancersResponse>(asyncResult); } #endregion #region DetachLoadBalancerTargetGroups /// <summary> /// <note> /// <para> /// This API operation is superseded by <a>DetachTrafficSources</a>, which can detach /// multiple traffic sources types. We recommend using <code>DetachTrafficSources</code> /// to simplify how you manage traffic sources. However, we continue to support <code>DetachLoadBalancerTargetGroups</code>. /// You can use both the original <code>DetachLoadBalancerTargetGroups</code> API operation /// and <code>DetachTrafficSources</code> on the same Auto Scaling group. /// </para> /// </note> /// <para> /// Detaches one or more target groups from the specified Auto Scaling group. /// </para> /// /// <para> /// When you detach a target group, it enters the <code>Removing</code> state while deregistering /// the instances in the group. When all instances are deregistered, then you can no longer /// describe the target group using the <a>DescribeLoadBalancerTargetGroups</a> API call. /// The instances remain running. /// </para> /// <note> /// <para> /// You can use this operation to detach target groups that were attached by using <a>AttachLoadBalancerTargetGroups</a>, /// but not for target groups that were attached by using <a>AttachTrafficSources</a>. /// </para> /// </note> /// </summary> /// <param name="request">Container for the necessary parameters to execute the DetachLoadBalancerTargetGroups service method.</param> /// /// <returns>The response from the DetachLoadBalancerTargetGroups service method, as returned by AutoScaling.</returns> /// <exception cref="Amazon.AutoScaling.Model.ResourceContentionException"> /// You already have a pending update to an Amazon EC2 Auto Scaling resource (for example, /// an Auto Scaling group, instance, or load balancer). /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/DetachLoadBalancerTargetGroups">REST API Reference for DetachLoadBalancerTargetGroups Operation</seealso> public virtual DetachLoadBalancerTargetGroupsResponse DetachLoadBalancerTargetGroups(DetachLoadBalancerTargetGroupsRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DetachLoadBalancerTargetGroupsRequestMarshaller.Instance; options.ResponseUnmarshaller = DetachLoadBalancerTargetGroupsResponseUnmarshaller.Instance; return Invoke<DetachLoadBalancerTargetGroupsResponse>(request, options); } /// <summary> /// Initiates the asynchronous execution of the DetachLoadBalancerTargetGroups operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the DetachLoadBalancerTargetGroups operation on AmazonAutoScalingClient.</param> /// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param> /// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property.</param> /// /// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndDetachLoadBalancerTargetGroups /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/DetachLoadBalancerTargetGroups">REST API Reference for DetachLoadBalancerTargetGroups Operation</seealso> public virtual IAsyncResult BeginDetachLoadBalancerTargetGroups(DetachLoadBalancerTargetGroupsRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = DetachLoadBalancerTargetGroupsRequestMarshaller.Instance; options.ResponseUnmarshaller = DetachLoadBalancerTargetGroupsResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// <summary> /// Finishes the asynchronous execution of the DetachLoadBalancerTargetGroups operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginDetachLoadBalancerTargetGroups.</param> /// /// <returns>Returns a DetachLoadBalancerTargetGroupsResult from AutoScaling.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/DetachLoadBalancerTargetGroups">REST API Reference for DetachLoadBalancerTargetGroups Operation</seealso> public virtual DetachLoadBalancerTargetGroupsResponse EndDetachLoadBalancerTargetGroups(IAsyncResult asyncResult) { return EndInvoke<DetachLoadBalancerTargetGroupsResponse>(asyncResult); } #endregion #region DetachTrafficSources /// <summary> /// Detaches one or more traffic sources from the specified Auto Scaling group. /// /// /// <para> /// When you detach a taffic, it enters the <code>Removing</code> state while deregistering /// the instances in the group. When all instances are deregistered, then you can no longer /// describe the traffic source using the <a>DescribeTrafficSources</a> API call. The /// instances continue to run. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the DetachTrafficSources service method.</param> /// /// <returns>The response from the DetachTrafficSources service method, as returned by AutoScaling.</returns> /// <exception cref="Amazon.AutoScaling.Model.ResourceContentionException"> /// You already have a pending update to an Amazon EC2 Auto Scaling resource (for example, /// an Auto Scaling group, instance, or load balancer). /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/DetachTrafficSources">REST API Reference for DetachTrafficSources Operation</seealso> public virtual DetachTrafficSourcesResponse DetachTrafficSources(DetachTrafficSourcesRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DetachTrafficSourcesRequestMarshaller.Instance; options.ResponseUnmarshaller = DetachTrafficSourcesResponseUnmarshaller.Instance; return Invoke<DetachTrafficSourcesResponse>(request, options); } /// <summary> /// Initiates the asynchronous execution of the DetachTrafficSources operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the DetachTrafficSources operation on AmazonAutoScalingClient.</param> /// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param> /// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property.</param> /// /// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndDetachTrafficSources /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/DetachTrafficSources">REST API Reference for DetachTrafficSources Operation</seealso> public virtual IAsyncResult BeginDetachTrafficSources(DetachTrafficSourcesRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = DetachTrafficSourcesRequestMarshaller.Instance; options.ResponseUnmarshaller = DetachTrafficSourcesResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// <summary> /// Finishes the asynchronous execution of the DetachTrafficSources operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginDetachTrafficSources.</param> /// /// <returns>Returns a DetachTrafficSourcesResult from AutoScaling.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/DetachTrafficSources">REST API Reference for DetachTrafficSources Operation</seealso> public virtual DetachTrafficSourcesResponse EndDetachTrafficSources(IAsyncResult asyncResult) { return EndInvoke<DetachTrafficSourcesResponse>(asyncResult); } #endregion #region DisableMetricsCollection /// <summary> /// Disables group metrics collection for the specified Auto Scaling group. /// </summary> /// <param name="request">Container for the necessary parameters to execute the DisableMetricsCollection service method.</param> /// /// <returns>The response from the DisableMetricsCollection service method, as returned by AutoScaling.</returns> /// <exception cref="Amazon.AutoScaling.Model.ResourceContentionException"> /// You already have a pending update to an Amazon EC2 Auto Scaling resource (for example, /// an Auto Scaling group, instance, or load balancer). /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/DisableMetricsCollection">REST API Reference for DisableMetricsCollection Operation</seealso> public virtual DisableMetricsCollectionResponse DisableMetricsCollection(DisableMetricsCollectionRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DisableMetricsCollectionRequestMarshaller.Instance; options.ResponseUnmarshaller = DisableMetricsCollectionResponseUnmarshaller.Instance; return Invoke<DisableMetricsCollectionResponse>(request, options); } /// <summary> /// Initiates the asynchronous execution of the DisableMetricsCollection operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the DisableMetricsCollection operation on AmazonAutoScalingClient.</param> /// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param> /// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property.</param> /// /// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndDisableMetricsCollection /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/DisableMetricsCollection">REST API Reference for DisableMetricsCollection Operation</seealso> public virtual IAsyncResult BeginDisableMetricsCollection(DisableMetricsCollectionRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = DisableMetricsCollectionRequestMarshaller.Instance; options.ResponseUnmarshaller = DisableMetricsCollectionResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// <summary> /// Finishes the asynchronous execution of the DisableMetricsCollection operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginDisableMetricsCollection.</param> /// /// <returns>Returns a DisableMetricsCollectionResult from AutoScaling.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/DisableMetricsCollection">REST API Reference for DisableMetricsCollection Operation</seealso> public virtual DisableMetricsCollectionResponse EndDisableMetricsCollection(IAsyncResult asyncResult) { return EndInvoke<DisableMetricsCollectionResponse>(asyncResult); } #endregion #region EnableMetricsCollection /// <summary> /// Enables group metrics collection for the specified Auto Scaling group. /// /// /// <para> /// You can use these metrics to track changes in an Auto Scaling group and to set alarms /// on threshold values. You can view group metrics using the Amazon EC2 Auto Scaling /// console or the CloudWatch console. For more information, see <a href="https://docs.aws.amazon.com/autoscaling/ec2/userguide/ec2-auto-scaling-cloudwatch-monitoring.html">Monitor /// CloudWatch metrics for your Auto Scaling groups and instances</a> in the <i>Amazon /// EC2 Auto Scaling User Guide</i>. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the EnableMetricsCollection service method.</param> /// /// <returns>The response from the EnableMetricsCollection service method, as returned by AutoScaling.</returns> /// <exception cref="Amazon.AutoScaling.Model.ResourceContentionException"> /// You already have a pending update to an Amazon EC2 Auto Scaling resource (for example, /// an Auto Scaling group, instance, or load balancer). /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/EnableMetricsCollection">REST API Reference for EnableMetricsCollection Operation</seealso> public virtual EnableMetricsCollectionResponse EnableMetricsCollection(EnableMetricsCollectionRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = EnableMetricsCollectionRequestMarshaller.Instance; options.ResponseUnmarshaller = EnableMetricsCollectionResponseUnmarshaller.Instance; return Invoke<EnableMetricsCollectionResponse>(request, options); } /// <summary> /// Initiates the asynchronous execution of the EnableMetricsCollection operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the EnableMetricsCollection operation on AmazonAutoScalingClient.</param> /// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param> /// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property.</param> /// /// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndEnableMetricsCollection /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/EnableMetricsCollection">REST API Reference for EnableMetricsCollection Operation</seealso> public virtual IAsyncResult BeginEnableMetricsCollection(EnableMetricsCollectionRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = EnableMetricsCollectionRequestMarshaller.Instance; options.ResponseUnmarshaller = EnableMetricsCollectionResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// <summary> /// Finishes the asynchronous execution of the EnableMetricsCollection operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginEnableMetricsCollection.</param> /// /// <returns>Returns a EnableMetricsCollectionResult from AutoScaling.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/EnableMetricsCollection">REST API Reference for EnableMetricsCollection Operation</seealso> public virtual EnableMetricsCollectionResponse EndEnableMetricsCollection(IAsyncResult asyncResult) { return EndInvoke<EnableMetricsCollectionResponse>(asyncResult); } #endregion #region EnterStandby /// <summary> /// Moves the specified instances into the standby state. /// /// /// <para> /// If you choose to decrement the desired capacity of the Auto Scaling group, the instances /// can enter standby as long as the desired capacity of the Auto Scaling group after /// the instances are placed into standby is equal to or greater than the minimum capacity /// of the group. /// </para> /// /// <para> /// If you choose not to decrement the desired capacity of the Auto Scaling group, the /// Auto Scaling group launches new instances to replace the instances on standby. /// </para> /// /// <para> /// For more information, see <a href="https://docs.aws.amazon.com/autoscaling/ec2/userguide/as-enter-exit-standby.html">Temporarily /// removing instances from your Auto Scaling group</a> in the <i>Amazon EC2 Auto Scaling /// User Guide</i>. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the EnterStandby service method.</param> /// /// <returns>The response from the EnterStandby service method, as returned by AutoScaling.</returns> /// <exception cref="Amazon.AutoScaling.Model.ResourceContentionException"> /// You already have a pending update to an Amazon EC2 Auto Scaling resource (for example, /// an Auto Scaling group, instance, or load balancer). /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/EnterStandby">REST API Reference for EnterStandby Operation</seealso> public virtual EnterStandbyResponse EnterStandby(EnterStandbyRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = EnterStandbyRequestMarshaller.Instance; options.ResponseUnmarshaller = EnterStandbyResponseUnmarshaller.Instance; return Invoke<EnterStandbyResponse>(request, options); } /// <summary> /// Initiates the asynchronous execution of the EnterStandby operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the EnterStandby operation on AmazonAutoScalingClient.</param> /// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param> /// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property.</param> /// /// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndEnterStandby /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/EnterStandby">REST API Reference for EnterStandby Operation</seealso> public virtual IAsyncResult BeginEnterStandby(EnterStandbyRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = EnterStandbyRequestMarshaller.Instance; options.ResponseUnmarshaller = EnterStandbyResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// <summary> /// Finishes the asynchronous execution of the EnterStandby operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginEnterStandby.</param> /// /// <returns>Returns a EnterStandbyResult from AutoScaling.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/EnterStandby">REST API Reference for EnterStandby Operation</seealso> public virtual EnterStandbyResponse EndEnterStandby(IAsyncResult asyncResult) { return EndInvoke<EnterStandbyResponse>(asyncResult); } #endregion #region ExecutePolicy /// <summary> /// Executes the specified policy. This can be useful for testing the design of your scaling /// policy. /// </summary> /// <param name="request">Container for the necessary parameters to execute the ExecutePolicy service method.</param> /// /// <returns>The response from the ExecutePolicy service method, as returned by AutoScaling.</returns> /// <exception cref="Amazon.AutoScaling.Model.ResourceContentionException"> /// You already have a pending update to an Amazon EC2 Auto Scaling resource (for example, /// an Auto Scaling group, instance, or load balancer). /// </exception> /// <exception cref="Amazon.AutoScaling.Model.ScalingActivityInProgressException"> /// The operation can't be performed because there are scaling activities in progress. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/ExecutePolicy">REST API Reference for ExecutePolicy Operation</seealso> public virtual ExecutePolicyResponse ExecutePolicy(ExecutePolicyRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = ExecutePolicyRequestMarshaller.Instance; options.ResponseUnmarshaller = ExecutePolicyResponseUnmarshaller.Instance; return Invoke<ExecutePolicyResponse>(request, options); } /// <summary> /// Initiates the asynchronous execution of the ExecutePolicy operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the ExecutePolicy operation on AmazonAutoScalingClient.</param> /// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param> /// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property.</param> /// /// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndExecutePolicy /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/ExecutePolicy">REST API Reference for ExecutePolicy Operation</seealso> public virtual IAsyncResult BeginExecutePolicy(ExecutePolicyRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = ExecutePolicyRequestMarshaller.Instance; options.ResponseUnmarshaller = ExecutePolicyResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// <summary> /// Finishes the asynchronous execution of the ExecutePolicy operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginExecutePolicy.</param> /// /// <returns>Returns a ExecutePolicyResult from AutoScaling.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/ExecutePolicy">REST API Reference for ExecutePolicy Operation</seealso> public virtual ExecutePolicyResponse EndExecutePolicy(IAsyncResult asyncResult) { return EndInvoke<ExecutePolicyResponse>(asyncResult); } #endregion #region ExitStandby /// <summary> /// Moves the specified instances out of the standby state. /// /// /// <para> /// After you put the instances back in service, the desired capacity is incremented. /// </para> /// /// <para> /// For more information, see <a href="https://docs.aws.amazon.com/autoscaling/ec2/userguide/as-enter-exit-standby.html">Temporarily /// removing instances from your Auto Scaling group</a> in the <i>Amazon EC2 Auto Scaling /// User Guide</i>. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the ExitStandby service method.</param> /// /// <returns>The response from the ExitStandby service method, as returned by AutoScaling.</returns> /// <exception cref="Amazon.AutoScaling.Model.ResourceContentionException"> /// You already have a pending update to an Amazon EC2 Auto Scaling resource (for example, /// an Auto Scaling group, instance, or load balancer). /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/ExitStandby">REST API Reference for ExitStandby Operation</seealso> public virtual ExitStandbyResponse ExitStandby(ExitStandbyRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = ExitStandbyRequestMarshaller.Instance; options.ResponseUnmarshaller = ExitStandbyResponseUnmarshaller.Instance; return Invoke<ExitStandbyResponse>(request, options); } /// <summary> /// Initiates the asynchronous execution of the ExitStandby operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the ExitStandby operation on AmazonAutoScalingClient.</param> /// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param> /// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property.</param> /// /// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndExitStandby /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/ExitStandby">REST API Reference for ExitStandby Operation</seealso> public virtual IAsyncResult BeginExitStandby(ExitStandbyRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = ExitStandbyRequestMarshaller.Instance; options.ResponseUnmarshaller = ExitStandbyResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// <summary> /// Finishes the asynchronous execution of the ExitStandby operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginExitStandby.</param> /// /// <returns>Returns a ExitStandbyResult from AutoScaling.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/ExitStandby">REST API Reference for ExitStandby Operation</seealso> public virtual ExitStandbyResponse EndExitStandby(IAsyncResult asyncResult) { return EndInvoke<ExitStandbyResponse>(asyncResult); } #endregion #region GetPredictiveScalingForecast /// <summary> /// Retrieves the forecast data for a predictive scaling policy. /// /// /// <para> /// Load forecasts are predictions of the hourly load values using historical load data /// from CloudWatch and an analysis of historical trends. Capacity forecasts are represented /// as predicted values for the minimum capacity that is needed on an hourly basis, based /// on the hourly load forecast. /// </para> /// /// <para> /// A minimum of 24 hours of data is required to create the initial forecasts. However, /// having a full 14 days of historical data results in more accurate forecasts. /// </para> /// /// <para> /// For more information, 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> /// </summary> /// <param name="request">Container for the necessary parameters to execute the GetPredictiveScalingForecast service method.</param> /// /// <returns>The response from the GetPredictiveScalingForecast service method, as returned by AutoScaling.</returns> /// <exception cref="Amazon.AutoScaling.Model.ResourceContentionException"> /// You already have a pending update to an Amazon EC2 Auto Scaling resource (for example, /// an Auto Scaling group, instance, or load balancer). /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/GetPredictiveScalingForecast">REST API Reference for GetPredictiveScalingForecast Operation</seealso> public virtual GetPredictiveScalingForecastResponse GetPredictiveScalingForecast(GetPredictiveScalingForecastRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = GetPredictiveScalingForecastRequestMarshaller.Instance; options.ResponseUnmarshaller = GetPredictiveScalingForecastResponseUnmarshaller.Instance; return Invoke<GetPredictiveScalingForecastResponse>(request, options); } /// <summary> /// Initiates the asynchronous execution of the GetPredictiveScalingForecast operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the GetPredictiveScalingForecast operation on AmazonAutoScalingClient.</param> /// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param> /// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property.</param> /// /// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndGetPredictiveScalingForecast /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/GetPredictiveScalingForecast">REST API Reference for GetPredictiveScalingForecast Operation</seealso> public virtual IAsyncResult BeginGetPredictiveScalingForecast(GetPredictiveScalingForecastRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = GetPredictiveScalingForecastRequestMarshaller.Instance; options.ResponseUnmarshaller = GetPredictiveScalingForecastResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// <summary> /// Finishes the asynchronous execution of the GetPredictiveScalingForecast operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginGetPredictiveScalingForecast.</param> /// /// <returns>Returns a GetPredictiveScalingForecastResult from AutoScaling.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/GetPredictiveScalingForecast">REST API Reference for GetPredictiveScalingForecast Operation</seealso> public virtual GetPredictiveScalingForecastResponse EndGetPredictiveScalingForecast(IAsyncResult asyncResult) { return EndInvoke<GetPredictiveScalingForecastResponse>(asyncResult); } #endregion #region PutLifecycleHook /// <summary> /// 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> /// <param name="request">Container for the necessary parameters to execute the PutLifecycleHook service method.</param> /// /// <returns>The response from the PutLifecycleHook service method, as returned by AutoScaling.</returns> /// <exception cref="Amazon.AutoScaling.Model.LimitExceededException"> /// You have already reached a limit for your Amazon EC2 Auto Scaling resources (for example, /// Auto Scaling groups, launch configurations, or lifecycle hooks). For more information, /// see <a href="https://docs.aws.amazon.com/autoscaling/ec2/APIReference/API_DescribeAccountLimits.html">DescribeAccountLimits</a> /// in the <i>Amazon EC2 Auto Scaling API Reference</i>. /// </exception> /// <exception cref="Amazon.AutoScaling.Model.ResourceContentionException"> /// You already have a pending update to an Amazon EC2 Auto Scaling resource (for example, /// an Auto Scaling group, instance, or load balancer). /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/PutLifecycleHook">REST API Reference for PutLifecycleHook Operation</seealso> public virtual PutLifecycleHookResponse PutLifecycleHook(PutLifecycleHookRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = PutLifecycleHookRequestMarshaller.Instance; options.ResponseUnmarshaller = PutLifecycleHookResponseUnmarshaller.Instance; return Invoke<PutLifecycleHookResponse>(request, options); } /// <summary> /// Initiates the asynchronous execution of the PutLifecycleHook operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the PutLifecycleHook operation on AmazonAutoScalingClient.</param> /// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param> /// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property.</param> /// /// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndPutLifecycleHook /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/PutLifecycleHook">REST API Reference for PutLifecycleHook Operation</seealso> public virtual IAsyncResult BeginPutLifecycleHook(PutLifecycleHookRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = PutLifecycleHookRequestMarshaller.Instance; options.ResponseUnmarshaller = PutLifecycleHookResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// <summary> /// Finishes the asynchronous execution of the PutLifecycleHook operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginPutLifecycleHook.</param> /// /// <returns>Returns a PutLifecycleHookResult from AutoScaling.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/PutLifecycleHook">REST API Reference for PutLifecycleHook Operation</seealso> public virtual PutLifecycleHookResponse EndPutLifecycleHook(IAsyncResult asyncResult) { return EndInvoke<PutLifecycleHookResponse>(asyncResult); } #endregion #region PutNotificationConfiguration /// <summary> /// 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> /// <param name="request">Container for the necessary parameters to execute the PutNotificationConfiguration service method.</param> /// /// <returns>The response from the PutNotificationConfiguration service method, as returned by AutoScaling.</returns> /// <exception cref="Amazon.AutoScaling.Model.LimitExceededException"> /// You have already reached a limit for your Amazon EC2 Auto Scaling resources (for example, /// Auto Scaling groups, launch configurations, or lifecycle hooks). For more information, /// see <a href="https://docs.aws.amazon.com/autoscaling/ec2/APIReference/API_DescribeAccountLimits.html">DescribeAccountLimits</a> /// in the <i>Amazon EC2 Auto Scaling API Reference</i>. /// </exception> /// <exception cref="Amazon.AutoScaling.Model.ResourceContentionException"> /// You already have a pending update to an Amazon EC2 Auto Scaling resource (for example, /// an Auto Scaling group, instance, or load balancer). /// </exception> /// <exception cref="Amazon.AutoScaling.Model.ServiceLinkedRoleFailureException"> /// The service-linked role is not yet ready for use. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/PutNotificationConfiguration">REST API Reference for PutNotificationConfiguration Operation</seealso> public virtual PutNotificationConfigurationResponse PutNotificationConfiguration(PutNotificationConfigurationRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = PutNotificationConfigurationRequestMarshaller.Instance; options.ResponseUnmarshaller = PutNotificationConfigurationResponseUnmarshaller.Instance; return Invoke<PutNotificationConfigurationResponse>(request, options); } /// <summary> /// Initiates the asynchronous execution of the PutNotificationConfiguration operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the PutNotificationConfiguration operation on AmazonAutoScalingClient.</param> /// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param> /// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property.</param> /// /// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndPutNotificationConfiguration /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/PutNotificationConfiguration">REST API Reference for PutNotificationConfiguration Operation</seealso> public virtual IAsyncResult BeginPutNotificationConfiguration(PutNotificationConfigurationRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = PutNotificationConfigurationRequestMarshaller.Instance; options.ResponseUnmarshaller = PutNotificationConfigurationResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// <summary> /// Finishes the asynchronous execution of the PutNotificationConfiguration operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginPutNotificationConfiguration.</param> /// /// <returns>Returns a PutNotificationConfigurationResult from AutoScaling.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/PutNotificationConfiguration">REST API Reference for PutNotificationConfiguration Operation</seealso> public virtual PutNotificationConfigurationResponse EndPutNotificationConfiguration(IAsyncResult asyncResult) { return EndInvoke<PutNotificationConfigurationResponse>(asyncResult); } #endregion #region PutScalingPolicy /// <summary> /// 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> /// <param name="request">Container for the necessary parameters to execute the PutScalingPolicy service method.</param> /// /// <returns>The response from the PutScalingPolicy service method, as returned by AutoScaling.</returns> /// <exception cref="Amazon.AutoScaling.Model.LimitExceededException"> /// You have already reached a limit for your Amazon EC2 Auto Scaling resources (for example, /// Auto Scaling groups, launch configurations, or lifecycle hooks). For more information, /// see <a href="https://docs.aws.amazon.com/autoscaling/ec2/APIReference/API_DescribeAccountLimits.html">DescribeAccountLimits</a> /// in the <i>Amazon EC2 Auto Scaling API Reference</i>. /// </exception> /// <exception cref="Amazon.AutoScaling.Model.ResourceContentionException"> /// You already have a pending update to an Amazon EC2 Auto Scaling resource (for example, /// an Auto Scaling group, instance, or load balancer). /// </exception> /// <exception cref="Amazon.AutoScaling.Model.ServiceLinkedRoleFailureException"> /// The service-linked role is not yet ready for use. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/PutScalingPolicy">REST API Reference for PutScalingPolicy Operation</seealso> public virtual PutScalingPolicyResponse PutScalingPolicy(PutScalingPolicyRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = PutScalingPolicyRequestMarshaller.Instance; options.ResponseUnmarshaller = PutScalingPolicyResponseUnmarshaller.Instance; return Invoke<PutScalingPolicyResponse>(request, options); } /// <summary> /// Initiates the asynchronous execution of the PutScalingPolicy operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the PutScalingPolicy operation on AmazonAutoScalingClient.</param> /// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param> /// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property.</param> /// /// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndPutScalingPolicy /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/PutScalingPolicy">REST API Reference for PutScalingPolicy Operation</seealso> public virtual IAsyncResult BeginPutScalingPolicy(PutScalingPolicyRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = PutScalingPolicyRequestMarshaller.Instance; options.ResponseUnmarshaller = PutScalingPolicyResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// <summary> /// Finishes the asynchronous execution of the PutScalingPolicy operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginPutScalingPolicy.</param> /// /// <returns>Returns a PutScalingPolicyResult from AutoScaling.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/PutScalingPolicy">REST API Reference for PutScalingPolicy Operation</seealso> public virtual PutScalingPolicyResponse EndPutScalingPolicy(IAsyncResult asyncResult) { return EndInvoke<PutScalingPolicyResponse>(asyncResult); } #endregion #region PutScheduledUpdateGroupAction /// <summary> /// 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> /// <param name="request">Container for the necessary parameters to execute the PutScheduledUpdateGroupAction service method.</param> /// /// <returns>The response from the PutScheduledUpdateGroupAction service method, as returned by AutoScaling.</returns> /// <exception cref="Amazon.AutoScaling.Model.AlreadyExistsException"> /// You already have an Auto Scaling group or launch configuration with this name. /// </exception> /// <exception cref="Amazon.AutoScaling.Model.LimitExceededException"> /// You have already reached a limit for your Amazon EC2 Auto Scaling resources (for example, /// Auto Scaling groups, launch configurations, or lifecycle hooks). For more information, /// see <a href="https://docs.aws.amazon.com/autoscaling/ec2/APIReference/API_DescribeAccountLimits.html">DescribeAccountLimits</a> /// in the <i>Amazon EC2 Auto Scaling API Reference</i>. /// </exception> /// <exception cref="Amazon.AutoScaling.Model.ResourceContentionException"> /// You already have a pending update to an Amazon EC2 Auto Scaling resource (for example, /// an Auto Scaling group, instance, or load balancer). /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/PutScheduledUpdateGroupAction">REST API Reference for PutScheduledUpdateGroupAction Operation</seealso> public virtual PutScheduledUpdateGroupActionResponse PutScheduledUpdateGroupAction(PutScheduledUpdateGroupActionRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = PutScheduledUpdateGroupActionRequestMarshaller.Instance; options.ResponseUnmarshaller = PutScheduledUpdateGroupActionResponseUnmarshaller.Instance; return Invoke<PutScheduledUpdateGroupActionResponse>(request, options); } /// <summary> /// Initiates the asynchronous execution of the PutScheduledUpdateGroupAction operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the PutScheduledUpdateGroupAction operation on AmazonAutoScalingClient.</param> /// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param> /// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property.</param> /// /// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndPutScheduledUpdateGroupAction /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/PutScheduledUpdateGroupAction">REST API Reference for PutScheduledUpdateGroupAction Operation</seealso> public virtual IAsyncResult BeginPutScheduledUpdateGroupAction(PutScheduledUpdateGroupActionRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = PutScheduledUpdateGroupActionRequestMarshaller.Instance; options.ResponseUnmarshaller = PutScheduledUpdateGroupActionResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// <summary> /// Finishes the asynchronous execution of the PutScheduledUpdateGroupAction operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginPutScheduledUpdateGroupAction.</param> /// /// <returns>Returns a PutScheduledUpdateGroupActionResult from AutoScaling.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/PutScheduledUpdateGroupAction">REST API Reference for PutScheduledUpdateGroupAction Operation</seealso> public virtual PutScheduledUpdateGroupActionResponse EndPutScheduledUpdateGroupAction(IAsyncResult asyncResult) { return EndInvoke<PutScheduledUpdateGroupActionResponse>(asyncResult); } #endregion #region PutWarmPool /// <summary> /// 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> /// <param name="request">Container for the necessary parameters to execute the PutWarmPool service method.</param> /// /// <returns>The response from the PutWarmPool service method, as returned by AutoScaling.</returns> /// <exception cref="Amazon.AutoScaling.Model.LimitExceededException"> /// You have already reached a limit for your Amazon EC2 Auto Scaling resources (for example, /// Auto Scaling groups, launch configurations, or lifecycle hooks). For more information, /// see <a href="https://docs.aws.amazon.com/autoscaling/ec2/APIReference/API_DescribeAccountLimits.html">DescribeAccountLimits</a> /// in the <i>Amazon EC2 Auto Scaling API Reference</i>. /// </exception> /// <exception cref="Amazon.AutoScaling.Model.ResourceContentionException"> /// You already have a pending update to an Amazon EC2 Auto Scaling resource (for example, /// an Auto Scaling group, instance, or load balancer). /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/PutWarmPool">REST API Reference for PutWarmPool Operation</seealso> public virtual PutWarmPoolResponse PutWarmPool(PutWarmPoolRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = PutWarmPoolRequestMarshaller.Instance; options.ResponseUnmarshaller = PutWarmPoolResponseUnmarshaller.Instance; return Invoke<PutWarmPoolResponse>(request, options); } /// <summary> /// Initiates the asynchronous execution of the PutWarmPool operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the PutWarmPool operation on AmazonAutoScalingClient.</param> /// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param> /// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property.</param> /// /// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndPutWarmPool /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/PutWarmPool">REST API Reference for PutWarmPool Operation</seealso> public virtual IAsyncResult BeginPutWarmPool(PutWarmPoolRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = PutWarmPoolRequestMarshaller.Instance; options.ResponseUnmarshaller = PutWarmPoolResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// <summary> /// Finishes the asynchronous execution of the PutWarmPool operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginPutWarmPool.</param> /// /// <returns>Returns a PutWarmPoolResult from AutoScaling.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/PutWarmPool">REST API Reference for PutWarmPool Operation</seealso> public virtual PutWarmPoolResponse EndPutWarmPool(IAsyncResult asyncResult) { return EndInvoke<PutWarmPoolResponse>(asyncResult); } #endregion #region RecordLifecycleActionHeartbeat /// <summary> /// 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> /// <param name="request">Container for the necessary parameters to execute the RecordLifecycleActionHeartbeat service method.</param> /// /// <returns>The response from the RecordLifecycleActionHeartbeat service method, as returned by AutoScaling.</returns> /// <exception cref="Amazon.AutoScaling.Model.ResourceContentionException"> /// You already have a pending update to an Amazon EC2 Auto Scaling resource (for example, /// an Auto Scaling group, instance, or load balancer). /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/RecordLifecycleActionHeartbeat">REST API Reference for RecordLifecycleActionHeartbeat Operation</seealso> public virtual RecordLifecycleActionHeartbeatResponse RecordLifecycleActionHeartbeat(RecordLifecycleActionHeartbeatRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = RecordLifecycleActionHeartbeatRequestMarshaller.Instance; options.ResponseUnmarshaller = RecordLifecycleActionHeartbeatResponseUnmarshaller.Instance; return Invoke<RecordLifecycleActionHeartbeatResponse>(request, options); } /// <summary> /// Initiates the asynchronous execution of the RecordLifecycleActionHeartbeat operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the RecordLifecycleActionHeartbeat operation on AmazonAutoScalingClient.</param> /// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param> /// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property.</param> /// /// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndRecordLifecycleActionHeartbeat /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/RecordLifecycleActionHeartbeat">REST API Reference for RecordLifecycleActionHeartbeat Operation</seealso> public virtual IAsyncResult BeginRecordLifecycleActionHeartbeat(RecordLifecycleActionHeartbeatRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = RecordLifecycleActionHeartbeatRequestMarshaller.Instance; options.ResponseUnmarshaller = RecordLifecycleActionHeartbeatResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// <summary> /// Finishes the asynchronous execution of the RecordLifecycleActionHeartbeat operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginRecordLifecycleActionHeartbeat.</param> /// /// <returns>Returns a RecordLifecycleActionHeartbeatResult from AutoScaling.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/RecordLifecycleActionHeartbeat">REST API Reference for RecordLifecycleActionHeartbeat Operation</seealso> public virtual RecordLifecycleActionHeartbeatResponse EndRecordLifecycleActionHeartbeat(IAsyncResult asyncResult) { return EndInvoke<RecordLifecycleActionHeartbeatResponse>(asyncResult); } #endregion #region ResumeProcesses /// <summary> /// 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> /// <param name="request">Container for the necessary parameters to execute the ResumeProcesses service method.</param> /// /// <returns>The response from the ResumeProcesses service method, as returned by AutoScaling.</returns> /// <exception cref="Amazon.AutoScaling.Model.ResourceContentionException"> /// You already have a pending update to an Amazon EC2 Auto Scaling resource (for example, /// an Auto Scaling group, instance, or load balancer). /// </exception> /// <exception cref="Amazon.AutoScaling.Model.ResourceInUseException"> /// The operation can't be performed because the resource is in use. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/ResumeProcesses">REST API Reference for ResumeProcesses Operation</seealso> public virtual ResumeProcessesResponse ResumeProcesses(ResumeProcessesRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = ResumeProcessesRequestMarshaller.Instance; options.ResponseUnmarshaller = ResumeProcessesResponseUnmarshaller.Instance; return Invoke<ResumeProcessesResponse>(request, options); } /// <summary> /// Initiates the asynchronous execution of the ResumeProcesses operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the ResumeProcesses operation on AmazonAutoScalingClient.</param> /// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param> /// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property.</param> /// /// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndResumeProcesses /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/ResumeProcesses">REST API Reference for ResumeProcesses Operation</seealso> public virtual IAsyncResult BeginResumeProcesses(ResumeProcessesRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = ResumeProcessesRequestMarshaller.Instance; options.ResponseUnmarshaller = ResumeProcessesResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// <summary> /// Finishes the asynchronous execution of the ResumeProcesses operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginResumeProcesses.</param> /// /// <returns>Returns a ResumeProcessesResult from AutoScaling.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/ResumeProcesses">REST API Reference for ResumeProcesses Operation</seealso> public virtual ResumeProcessesResponse EndResumeProcesses(IAsyncResult asyncResult) { return EndInvoke<ResumeProcessesResponse>(asyncResult); } #endregion #region RollbackInstanceRefresh /// <summary> /// 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> /// <param name="request">Container for the necessary parameters to execute the RollbackInstanceRefresh service method.</param> /// /// <returns>The response from the RollbackInstanceRefresh service method, as returned by AutoScaling.</returns> /// <exception cref="Amazon.AutoScaling.Model.ActiveInstanceRefreshNotFoundException"> /// The request failed because an active instance refresh or rollback for the specified /// Auto Scaling group was not found. /// </exception> /// <exception cref="Amazon.AutoScaling.Model.IrreversibleInstanceRefreshException"> /// The request failed because a desired configuration was not found or an incompatible /// launch template (uses a Systems Manager parameter instead of an AMI ID) or launch /// template version (<code>$Latest</code> or <code>$Default</code>) is present on the /// Auto Scaling group. /// </exception> /// <exception cref="Amazon.AutoScaling.Model.LimitExceededException"> /// You have already reached a limit for your Amazon EC2 Auto Scaling resources (for example, /// Auto Scaling groups, launch configurations, or lifecycle hooks). For more information, /// see <a href="https://docs.aws.amazon.com/autoscaling/ec2/APIReference/API_DescribeAccountLimits.html">DescribeAccountLimits</a> /// in the <i>Amazon EC2 Auto Scaling API Reference</i>. /// </exception> /// <exception cref="Amazon.AutoScaling.Model.ResourceContentionException"> /// You already have a pending update to an Amazon EC2 Auto Scaling resource (for example, /// an Auto Scaling group, instance, or load balancer). /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/RollbackInstanceRefresh">REST API Reference for RollbackInstanceRefresh Operation</seealso> public virtual RollbackInstanceRefreshResponse RollbackInstanceRefresh(RollbackInstanceRefreshRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = RollbackInstanceRefreshRequestMarshaller.Instance; options.ResponseUnmarshaller = RollbackInstanceRefreshResponseUnmarshaller.Instance; return Invoke<RollbackInstanceRefreshResponse>(request, options); } /// <summary> /// Initiates the asynchronous execution of the RollbackInstanceRefresh operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the RollbackInstanceRefresh operation on AmazonAutoScalingClient.</param> /// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param> /// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property.</param> /// /// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndRollbackInstanceRefresh /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/RollbackInstanceRefresh">REST API Reference for RollbackInstanceRefresh Operation</seealso> public virtual IAsyncResult BeginRollbackInstanceRefresh(RollbackInstanceRefreshRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = RollbackInstanceRefreshRequestMarshaller.Instance; options.ResponseUnmarshaller = RollbackInstanceRefreshResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// <summary> /// Finishes the asynchronous execution of the RollbackInstanceRefresh operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginRollbackInstanceRefresh.</param> /// /// <returns>Returns a RollbackInstanceRefreshResult from AutoScaling.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/RollbackInstanceRefresh">REST API Reference for RollbackInstanceRefresh Operation</seealso> public virtual RollbackInstanceRefreshResponse EndRollbackInstanceRefresh(IAsyncResult asyncResult) { return EndInvoke<RollbackInstanceRefreshResponse>(asyncResult); } #endregion #region SetDesiredCapacity /// <summary> /// 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> /// <param name="request">Container for the necessary parameters to execute the SetDesiredCapacity service method.</param> /// /// <returns>The response from the SetDesiredCapacity service method, as returned by AutoScaling.</returns> /// <exception cref="Amazon.AutoScaling.Model.ResourceContentionException"> /// You already have a pending update to an Amazon EC2 Auto Scaling resource (for example, /// an Auto Scaling group, instance, or load balancer). /// </exception> /// <exception cref="Amazon.AutoScaling.Model.ScalingActivityInProgressException"> /// The operation can't be performed because there are scaling activities in progress. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/SetDesiredCapacity">REST API Reference for SetDesiredCapacity Operation</seealso> public virtual SetDesiredCapacityResponse SetDesiredCapacity(SetDesiredCapacityRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = SetDesiredCapacityRequestMarshaller.Instance; options.ResponseUnmarshaller = SetDesiredCapacityResponseUnmarshaller.Instance; return Invoke<SetDesiredCapacityResponse>(request, options); } /// <summary> /// Initiates the asynchronous execution of the SetDesiredCapacity operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the SetDesiredCapacity operation on AmazonAutoScalingClient.</param> /// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param> /// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property.</param> /// /// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndSetDesiredCapacity /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/SetDesiredCapacity">REST API Reference for SetDesiredCapacity Operation</seealso> public virtual IAsyncResult BeginSetDesiredCapacity(SetDesiredCapacityRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = SetDesiredCapacityRequestMarshaller.Instance; options.ResponseUnmarshaller = SetDesiredCapacityResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// <summary> /// Finishes the asynchronous execution of the SetDesiredCapacity operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginSetDesiredCapacity.</param> /// /// <returns>Returns a SetDesiredCapacityResult from AutoScaling.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/SetDesiredCapacity">REST API Reference for SetDesiredCapacity Operation</seealso> public virtual SetDesiredCapacityResponse EndSetDesiredCapacity(IAsyncResult asyncResult) { return EndInvoke<SetDesiredCapacityResponse>(asyncResult); } #endregion #region SetInstanceHealth /// <summary> /// 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> /// <param name="request">Container for the necessary parameters to execute the SetInstanceHealth service method.</param> /// /// <returns>The response from the SetInstanceHealth service method, as returned by AutoScaling.</returns> /// <exception cref="Amazon.AutoScaling.Model.ResourceContentionException"> /// You already have a pending update to an Amazon EC2 Auto Scaling resource (for example, /// an Auto Scaling group, instance, or load balancer). /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/SetInstanceHealth">REST API Reference for SetInstanceHealth Operation</seealso> public virtual SetInstanceHealthResponse SetInstanceHealth(SetInstanceHealthRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = SetInstanceHealthRequestMarshaller.Instance; options.ResponseUnmarshaller = SetInstanceHealthResponseUnmarshaller.Instance; return Invoke<SetInstanceHealthResponse>(request, options); } /// <summary> /// Initiates the asynchronous execution of the SetInstanceHealth operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the SetInstanceHealth operation on AmazonAutoScalingClient.</param> /// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param> /// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property.</param> /// /// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndSetInstanceHealth /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/SetInstanceHealth">REST API Reference for SetInstanceHealth Operation</seealso> public virtual IAsyncResult BeginSetInstanceHealth(SetInstanceHealthRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = SetInstanceHealthRequestMarshaller.Instance; options.ResponseUnmarshaller = SetInstanceHealthResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// <summary> /// Finishes the asynchronous execution of the SetInstanceHealth operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginSetInstanceHealth.</param> /// /// <returns>Returns a SetInstanceHealthResult from AutoScaling.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/SetInstanceHealth">REST API Reference for SetInstanceHealth Operation</seealso> public virtual SetInstanceHealthResponse EndSetInstanceHealth(IAsyncResult asyncResult) { return EndInvoke<SetInstanceHealthResponse>(asyncResult); } #endregion #region SetInstanceProtection /// <summary> /// 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> /// <param name="request">Container for the necessary parameters to execute the SetInstanceProtection service method.</param> /// /// <returns>The response from the SetInstanceProtection service method, as returned by AutoScaling.</returns> /// <exception cref="Amazon.AutoScaling.Model.LimitExceededException"> /// You have already reached a limit for your Amazon EC2 Auto Scaling resources (for example, /// Auto Scaling groups, launch configurations, or lifecycle hooks). For more information, /// see <a href="https://docs.aws.amazon.com/autoscaling/ec2/APIReference/API_DescribeAccountLimits.html">DescribeAccountLimits</a> /// in the <i>Amazon EC2 Auto Scaling API Reference</i>. /// </exception> /// <exception cref="Amazon.AutoScaling.Model.ResourceContentionException"> /// You already have a pending update to an Amazon EC2 Auto Scaling resource (for example, /// an Auto Scaling group, instance, or load balancer). /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/SetInstanceProtection">REST API Reference for SetInstanceProtection Operation</seealso> public virtual SetInstanceProtectionResponse SetInstanceProtection(SetInstanceProtectionRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = SetInstanceProtectionRequestMarshaller.Instance; options.ResponseUnmarshaller = SetInstanceProtectionResponseUnmarshaller.Instance; return Invoke<SetInstanceProtectionResponse>(request, options); } /// <summary> /// Initiates the asynchronous execution of the SetInstanceProtection operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the SetInstanceProtection operation on AmazonAutoScalingClient.</param> /// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param> /// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property.</param> /// /// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndSetInstanceProtection /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/SetInstanceProtection">REST API Reference for SetInstanceProtection Operation</seealso> public virtual IAsyncResult BeginSetInstanceProtection(SetInstanceProtectionRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = SetInstanceProtectionRequestMarshaller.Instance; options.ResponseUnmarshaller = SetInstanceProtectionResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// <summary> /// Finishes the asynchronous execution of the SetInstanceProtection operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginSetInstanceProtection.</param> /// /// <returns>Returns a SetInstanceProtectionResult from AutoScaling.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/SetInstanceProtection">REST API Reference for SetInstanceProtection Operation</seealso> public virtual SetInstanceProtectionResponse EndSetInstanceProtection(IAsyncResult asyncResult) { return EndInvoke<SetInstanceProtectionResponse>(asyncResult); } #endregion #region StartInstanceRefresh /// <summary> /// 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> /// <param name="request">Container for the necessary parameters to execute the StartInstanceRefresh service method.</param> /// /// <returns>The response from the StartInstanceRefresh service method, as returned by AutoScaling.</returns> /// <exception cref="Amazon.AutoScaling.Model.InstanceRefreshInProgressException"> /// The request failed because an active instance refresh already exists for the specified /// Auto Scaling group. /// </exception> /// <exception cref="Amazon.AutoScaling.Model.LimitExceededException"> /// You have already reached a limit for your Amazon EC2 Auto Scaling resources (for example, /// Auto Scaling groups, launch configurations, or lifecycle hooks). For more information, /// see <a href="https://docs.aws.amazon.com/autoscaling/ec2/APIReference/API_DescribeAccountLimits.html">DescribeAccountLimits</a> /// in the <i>Amazon EC2 Auto Scaling API Reference</i>. /// </exception> /// <exception cref="Amazon.AutoScaling.Model.ResourceContentionException"> /// You already have a pending update to an Amazon EC2 Auto Scaling resource (for example, /// an Auto Scaling group, instance, or load balancer). /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/StartInstanceRefresh">REST API Reference for StartInstanceRefresh Operation</seealso> public virtual StartInstanceRefreshResponse StartInstanceRefresh(StartInstanceRefreshRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = StartInstanceRefreshRequestMarshaller.Instance; options.ResponseUnmarshaller = StartInstanceRefreshResponseUnmarshaller.Instance; return Invoke<StartInstanceRefreshResponse>(request, options); } /// <summary> /// Initiates the asynchronous execution of the StartInstanceRefresh operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the StartInstanceRefresh operation on AmazonAutoScalingClient.</param> /// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param> /// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property.</param> /// /// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndStartInstanceRefresh /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/StartInstanceRefresh">REST API Reference for StartInstanceRefresh Operation</seealso> public virtual IAsyncResult BeginStartInstanceRefresh(StartInstanceRefreshRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = StartInstanceRefreshRequestMarshaller.Instance; options.ResponseUnmarshaller = StartInstanceRefreshResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// <summary> /// Finishes the asynchronous execution of the StartInstanceRefresh operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginStartInstanceRefresh.</param> /// /// <returns>Returns a StartInstanceRefreshResult from AutoScaling.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/StartInstanceRefresh">REST API Reference for StartInstanceRefresh Operation</seealso> public virtual StartInstanceRefreshResponse EndStartInstanceRefresh(IAsyncResult asyncResult) { return EndInvoke<StartInstanceRefreshResponse>(asyncResult); } #endregion #region SuspendProcesses /// <summary> /// 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> /// <param name="request">Container for the necessary parameters to execute the SuspendProcesses service method.</param> /// /// <returns>The response from the SuspendProcesses service method, as returned by AutoScaling.</returns> /// <exception cref="Amazon.AutoScaling.Model.ResourceContentionException"> /// You already have a pending update to an Amazon EC2 Auto Scaling resource (for example, /// an Auto Scaling group, instance, or load balancer). /// </exception> /// <exception cref="Amazon.AutoScaling.Model.ResourceInUseException"> /// The operation can't be performed because the resource is in use. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/SuspendProcesses">REST API Reference for SuspendProcesses Operation</seealso> public virtual SuspendProcessesResponse SuspendProcesses(SuspendProcessesRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = SuspendProcessesRequestMarshaller.Instance; options.ResponseUnmarshaller = SuspendProcessesResponseUnmarshaller.Instance; return Invoke<SuspendProcessesResponse>(request, options); } /// <summary> /// Initiates the asynchronous execution of the SuspendProcesses operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the SuspendProcesses operation on AmazonAutoScalingClient.</param> /// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param> /// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property.</param> /// /// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndSuspendProcesses /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/SuspendProcesses">REST API Reference for SuspendProcesses Operation</seealso> public virtual IAsyncResult BeginSuspendProcesses(SuspendProcessesRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = SuspendProcessesRequestMarshaller.Instance; options.ResponseUnmarshaller = SuspendProcessesResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// <summary> /// Finishes the asynchronous execution of the SuspendProcesses operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginSuspendProcesses.</param> /// /// <returns>Returns a SuspendProcessesResult from AutoScaling.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/SuspendProcesses">REST API Reference for SuspendProcesses Operation</seealso> public virtual SuspendProcessesResponse EndSuspendProcesses(IAsyncResult asyncResult) { return EndInvoke<SuspendProcessesResponse>(asyncResult); } #endregion #region TerminateInstanceInAutoScalingGroup /// <summary> /// 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> /// <param name="request">Container for the necessary parameters to execute the TerminateInstanceInAutoScalingGroup service method.</param> /// /// <returns>The response from the TerminateInstanceInAutoScalingGroup service method, as returned by AutoScaling.</returns> /// <exception cref="Amazon.AutoScaling.Model.ResourceContentionException"> /// You already have a pending update to an Amazon EC2 Auto Scaling resource (for example, /// an Auto Scaling group, instance, or load balancer). /// </exception> /// <exception cref="Amazon.AutoScaling.Model.ScalingActivityInProgressException"> /// The operation can't be performed because there are scaling activities in progress. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/TerminateInstanceInAutoScalingGroup">REST API Reference for TerminateInstanceInAutoScalingGroup Operation</seealso> public virtual TerminateInstanceInAutoScalingGroupResponse TerminateInstanceInAutoScalingGroup(TerminateInstanceInAutoScalingGroupRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = TerminateInstanceInAutoScalingGroupRequestMarshaller.Instance; options.ResponseUnmarshaller = TerminateInstanceInAutoScalingGroupResponseUnmarshaller.Instance; return Invoke<TerminateInstanceInAutoScalingGroupResponse>(request, options); } /// <summary> /// Initiates the asynchronous execution of the TerminateInstanceInAutoScalingGroup operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the TerminateInstanceInAutoScalingGroup operation on AmazonAutoScalingClient.</param> /// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param> /// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property.</param> /// /// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndTerminateInstanceInAutoScalingGroup /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/TerminateInstanceInAutoScalingGroup">REST API Reference for TerminateInstanceInAutoScalingGroup Operation</seealso> public virtual IAsyncResult BeginTerminateInstanceInAutoScalingGroup(TerminateInstanceInAutoScalingGroupRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = TerminateInstanceInAutoScalingGroupRequestMarshaller.Instance; options.ResponseUnmarshaller = TerminateInstanceInAutoScalingGroupResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// <summary> /// Finishes the asynchronous execution of the TerminateInstanceInAutoScalingGroup operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginTerminateInstanceInAutoScalingGroup.</param> /// /// <returns>Returns a TerminateInstanceInAutoScalingGroupResult from AutoScaling.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/TerminateInstanceInAutoScalingGroup">REST API Reference for TerminateInstanceInAutoScalingGroup Operation</seealso> public virtual TerminateInstanceInAutoScalingGroupResponse EndTerminateInstanceInAutoScalingGroup(IAsyncResult asyncResult) { return EndInvoke<TerminateInstanceInAutoScalingGroupResponse>(asyncResult); } #endregion #region UpdateAutoScalingGroup /// <summary> /// <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> /// <param name="request">Container for the necessary parameters to execute the UpdateAutoScalingGroup service method.</param> /// /// <returns>The response from the UpdateAutoScalingGroup service method, as returned by AutoScaling.</returns> /// <exception cref="Amazon.AutoScaling.Model.ResourceContentionException"> /// You already have a pending update to an Amazon EC2 Auto Scaling resource (for example, /// an Auto Scaling group, instance, or load balancer). /// </exception> /// <exception cref="Amazon.AutoScaling.Model.ScalingActivityInProgressException"> /// The operation can't be performed because there are scaling activities in progress. /// </exception> /// <exception cref="Amazon.AutoScaling.Model.ServiceLinkedRoleFailureException"> /// The service-linked role is not yet ready for use. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/UpdateAutoScalingGroup">REST API Reference for UpdateAutoScalingGroup Operation</seealso> public virtual UpdateAutoScalingGroupResponse UpdateAutoScalingGroup(UpdateAutoScalingGroupRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = UpdateAutoScalingGroupRequestMarshaller.Instance; options.ResponseUnmarshaller = UpdateAutoScalingGroupResponseUnmarshaller.Instance; return Invoke<UpdateAutoScalingGroupResponse>(request, options); } /// <summary> /// Initiates the asynchronous execution of the UpdateAutoScalingGroup operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the UpdateAutoScalingGroup operation on AmazonAutoScalingClient.</param> /// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param> /// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property.</param> /// /// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndUpdateAutoScalingGroup /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/UpdateAutoScalingGroup">REST API Reference for UpdateAutoScalingGroup Operation</seealso> public virtual IAsyncResult BeginUpdateAutoScalingGroup(UpdateAutoScalingGroupRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = UpdateAutoScalingGroupRequestMarshaller.Instance; options.ResponseUnmarshaller = UpdateAutoScalingGroupResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// <summary> /// Finishes the asynchronous execution of the UpdateAutoScalingGroup operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginUpdateAutoScalingGroup.</param> /// /// <returns>Returns a UpdateAutoScalingGroupResult from AutoScaling.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/UpdateAutoScalingGroup">REST API Reference for UpdateAutoScalingGroup Operation</seealso> public virtual UpdateAutoScalingGroupResponse EndUpdateAutoScalingGroup(IAsyncResult asyncResult) { return EndInvoke<UpdateAutoScalingGroupResponse>(asyncResult); } #endregion } }
5,668
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 Amazon.Runtime; using Amazon.AutoScaling.Model; namespace Amazon.AutoScaling { /// <summary> /// Interface for accessing AutoScaling /// /// Amazon EC2 Auto Scaling /// <para> /// Amazon EC2 Auto Scaling is designed to automatically launch and terminate EC2 instances /// based on user-defined scaling policies, scheduled actions, and health checks. /// </para> /// /// <para> /// For more information, see the <a href="https://docs.aws.amazon.com/autoscaling/ec2/userguide/">Amazon /// EC2 Auto Scaling User Guide</a> and the <a href="https://docs.aws.amazon.com/autoscaling/ec2/APIReference/Welcome.html">Amazon /// EC2 Auto Scaling API Reference</a>. /// </para> /// </summary> public partial interface IAmazonAutoScaling : IAmazonService, IDisposable { #if BCL45 || AWS_ASYNC_ENUMERABLES_API /// <summary> /// Paginators for the service /// </summary> IAutoScalingPaginatorFactory Paginators { get; } #endif #region AttachInstances /// <summary> /// Attaches one or more EC2 instances to the specified Auto Scaling group. /// /// /// <para> /// When you attach instances, Amazon EC2 Auto Scaling increases the desired capacity /// of the group by the number of instances being attached. If the number of instances /// being attached plus the desired capacity of the group exceeds the maximum size of /// the group, the operation fails. /// </para> /// /// <para> /// If there is a Classic Load Balancer attached to your Auto Scaling group, the instances /// are also registered with the load balancer. If there are target groups attached to /// your Auto Scaling group, the instances are also registered with the target groups. /// </para> /// /// <para> /// For more information, see <a href="https://docs.aws.amazon.com/autoscaling/ec2/userguide/attach-instance-asg.html">Attach /// EC2 instances to your Auto Scaling group</a> in the <i>Amazon EC2 Auto Scaling User /// Guide</i>. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the AttachInstances service method.</param> /// /// <returns>The response from the AttachInstances service method, as returned by AutoScaling.</returns> /// <exception cref="Amazon.AutoScaling.Model.ResourceContentionException"> /// You already have a pending update to an Amazon EC2 Auto Scaling resource (for example, /// an Auto Scaling group, instance, or load balancer). /// </exception> /// <exception cref="Amazon.AutoScaling.Model.ServiceLinkedRoleFailureException"> /// The service-linked role is not yet ready for use. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/AttachInstances">REST API Reference for AttachInstances Operation</seealso> AttachInstancesResponse AttachInstances(AttachInstancesRequest request); /// <summary> /// Initiates the asynchronous execution of the AttachInstances operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the AttachInstances operation on AmazonAutoScalingClient.</param> /// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param> /// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property.</param> /// /// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndAttachInstances /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/AttachInstances">REST API Reference for AttachInstances Operation</seealso> IAsyncResult BeginAttachInstances(AttachInstancesRequest request, AsyncCallback callback, object state); /// <summary> /// Finishes the asynchronous execution of the AttachInstances operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginAttachInstances.</param> /// /// <returns>Returns a AttachInstancesResult from AutoScaling.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/AttachInstances">REST API Reference for AttachInstances Operation</seealso> AttachInstancesResponse EndAttachInstances(IAsyncResult asyncResult); #endregion #region AttachLoadBalancers /// <summary> /// <note> /// <para> /// This API operation is superseded by <a>AttachTrafficSources</a>, which can attach /// multiple traffic sources types. We recommend using <code>AttachTrafficSources</code> /// to simplify how you manage traffic sources. However, we continue to support <code>AttachLoadBalancers</code>. /// You can use both the original <code>AttachLoadBalancers</code> API operation and <code>AttachTrafficSources</code> /// on the same Auto Scaling group. /// </para> /// </note> /// <para> /// Attaches one or more Classic Load Balancers to the specified Auto Scaling group. Amazon /// EC2 Auto Scaling registers the running instances with these Classic Load Balancers. /// </para> /// /// <para> /// To describe the load balancers for an Auto Scaling group, call the <a>DescribeLoadBalancers</a> /// API. To detach a load balancer from the Auto Scaling group, call the <a>DetachLoadBalancers</a> /// API. /// </para> /// /// <para> /// This operation is additive and does not detach existing Classic Load Balancers or /// target groups from the Auto Scaling group. /// </para> /// /// <para> /// For more information, see <a href="https://docs.aws.amazon.com/autoscaling/ec2/userguide/autoscaling-load-balancer.html">Use /// Elastic Load Balancing to distribute traffic across the instances in your Auto Scaling /// group</a> in the <i>Amazon EC2 Auto Scaling User Guide</i>. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the AttachLoadBalancers service method.</param> /// /// <returns>The response from the AttachLoadBalancers service method, as returned by AutoScaling.</returns> /// <exception cref="Amazon.AutoScaling.Model.ResourceContentionException"> /// You already have a pending update to an Amazon EC2 Auto Scaling resource (for example, /// an Auto Scaling group, instance, or load balancer). /// </exception> /// <exception cref="Amazon.AutoScaling.Model.ServiceLinkedRoleFailureException"> /// The service-linked role is not yet ready for use. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/AttachLoadBalancers">REST API Reference for AttachLoadBalancers Operation</seealso> AttachLoadBalancersResponse AttachLoadBalancers(AttachLoadBalancersRequest request); /// <summary> /// Initiates the asynchronous execution of the AttachLoadBalancers operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the AttachLoadBalancers operation on AmazonAutoScalingClient.</param> /// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param> /// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property.</param> /// /// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndAttachLoadBalancers /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/AttachLoadBalancers">REST API Reference for AttachLoadBalancers Operation</seealso> IAsyncResult BeginAttachLoadBalancers(AttachLoadBalancersRequest request, AsyncCallback callback, object state); /// <summary> /// Finishes the asynchronous execution of the AttachLoadBalancers operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginAttachLoadBalancers.</param> /// /// <returns>Returns a AttachLoadBalancersResult from AutoScaling.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/AttachLoadBalancers">REST API Reference for AttachLoadBalancers Operation</seealso> AttachLoadBalancersResponse EndAttachLoadBalancers(IAsyncResult asyncResult); #endregion #region AttachLoadBalancerTargetGroups /// <summary> /// <note> /// <para> /// This API operation is superseded by <a>AttachTrafficSources</a>, which can attach /// multiple traffic sources types. We recommend using <code>AttachTrafficSources</code> /// to simplify how you manage traffic sources. However, we continue to support <code>AttachLoadBalancerTargetGroups</code>. /// You can use both the original <code>AttachLoadBalancerTargetGroups</code> API operation /// and <code>AttachTrafficSources</code> on the same Auto Scaling group. /// </para> /// </note> /// <para> /// Attaches one or more target groups to the specified Auto Scaling group. /// </para> /// /// <para> /// This operation is used with the following load balancer types: /// </para> /// <ul> <li> /// <para> /// Application Load Balancer - Operates at the application layer (layer 7) and supports /// HTTP and HTTPS. /// </para> /// </li> <li> /// <para> /// Network Load Balancer - Operates at the transport layer (layer 4) and supports TCP, /// TLS, and UDP. /// </para> /// </li> <li> /// <para> /// Gateway Load Balancer - Operates at the network layer (layer 3). /// </para> /// </li> </ul> /// <para> /// To describe the target groups for an Auto Scaling group, call the <a>DescribeLoadBalancerTargetGroups</a> /// API. To detach the target group from the Auto Scaling group, call the <a>DetachLoadBalancerTargetGroups</a> /// API. /// </para> /// /// <para> /// This operation is additive and does not detach existing target groups or Classic Load /// Balancers from the Auto Scaling group. /// </para> /// /// <para> /// For more information, see <a href="https://docs.aws.amazon.com/autoscaling/ec2/userguide/autoscaling-load-balancer.html">Use /// Elastic Load Balancing to distribute traffic across the instances in your Auto Scaling /// group</a> in the <i>Amazon EC2 Auto Scaling User Guide</i>. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the AttachLoadBalancerTargetGroups service method.</param> /// /// <returns>The response from the AttachLoadBalancerTargetGroups service method, as returned by AutoScaling.</returns> /// <exception cref="Amazon.AutoScaling.Model.ResourceContentionException"> /// You already have a pending update to an Amazon EC2 Auto Scaling resource (for example, /// an Auto Scaling group, instance, or load balancer). /// </exception> /// <exception cref="Amazon.AutoScaling.Model.ServiceLinkedRoleFailureException"> /// The service-linked role is not yet ready for use. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/AttachLoadBalancerTargetGroups">REST API Reference for AttachLoadBalancerTargetGroups Operation</seealso> AttachLoadBalancerTargetGroupsResponse AttachLoadBalancerTargetGroups(AttachLoadBalancerTargetGroupsRequest request); /// <summary> /// Initiates the asynchronous execution of the AttachLoadBalancerTargetGroups operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the AttachLoadBalancerTargetGroups operation on AmazonAutoScalingClient.</param> /// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param> /// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property.</param> /// /// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndAttachLoadBalancerTargetGroups /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/AttachLoadBalancerTargetGroups">REST API Reference for AttachLoadBalancerTargetGroups Operation</seealso> IAsyncResult BeginAttachLoadBalancerTargetGroups(AttachLoadBalancerTargetGroupsRequest request, AsyncCallback callback, object state); /// <summary> /// Finishes the asynchronous execution of the AttachLoadBalancerTargetGroups operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginAttachLoadBalancerTargetGroups.</param> /// /// <returns>Returns a AttachLoadBalancerTargetGroupsResult from AutoScaling.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/AttachLoadBalancerTargetGroups">REST API Reference for AttachLoadBalancerTargetGroups Operation</seealso> AttachLoadBalancerTargetGroupsResponse EndAttachLoadBalancerTargetGroups(IAsyncResult asyncResult); #endregion #region AttachTrafficSources /// <summary> /// Attaches one or more traffic sources to the specified Auto Scaling group. /// /// /// <para> /// You can use any of the following as traffic sources for an Auto Scaling group: /// </para> /// <ul> <li> /// <para> /// Application Load Balancer /// </para> /// </li> <li> /// <para> /// Classic Load Balancer /// </para> /// </li> <li> /// <para> /// Gateway Load Balancer /// </para> /// </li> <li> /// <para> /// Network Load Balancer /// </para> /// </li> <li> /// <para> /// VPC Lattice /// </para> /// </li> </ul> /// <para> /// This operation is additive and does not detach existing traffic sources from the Auto /// Scaling group. /// </para> /// /// <para> /// After the operation completes, use the <a>DescribeTrafficSources</a> API to return /// details about the state of the attachments between traffic sources and your Auto Scaling /// group. To detach a traffic source from the Auto Scaling group, call the <a>DetachTrafficSources</a> /// API. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the AttachTrafficSources service method.</param> /// /// <returns>The response from the AttachTrafficSources service method, as returned by AutoScaling.</returns> /// <exception cref="Amazon.AutoScaling.Model.ResourceContentionException"> /// You already have a pending update to an Amazon EC2 Auto Scaling resource (for example, /// an Auto Scaling group, instance, or load balancer). /// </exception> /// <exception cref="Amazon.AutoScaling.Model.ServiceLinkedRoleFailureException"> /// The service-linked role is not yet ready for use. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/AttachTrafficSources">REST API Reference for AttachTrafficSources Operation</seealso> AttachTrafficSourcesResponse AttachTrafficSources(AttachTrafficSourcesRequest request); /// <summary> /// Initiates the asynchronous execution of the AttachTrafficSources operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the AttachTrafficSources operation on AmazonAutoScalingClient.</param> /// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param> /// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property.</param> /// /// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndAttachTrafficSources /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/AttachTrafficSources">REST API Reference for AttachTrafficSources Operation</seealso> IAsyncResult BeginAttachTrafficSources(AttachTrafficSourcesRequest request, AsyncCallback callback, object state); /// <summary> /// Finishes the asynchronous execution of the AttachTrafficSources operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginAttachTrafficSources.</param> /// /// <returns>Returns a AttachTrafficSourcesResult from AutoScaling.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/AttachTrafficSources">REST API Reference for AttachTrafficSources Operation</seealso> AttachTrafficSourcesResponse EndAttachTrafficSources(IAsyncResult asyncResult); #endregion #region BatchDeleteScheduledAction /// <summary> /// Deletes one or more scheduled actions for the specified Auto Scaling group. /// </summary> /// <param name="request">Container for the necessary parameters to execute the BatchDeleteScheduledAction service method.</param> /// /// <returns>The response from the BatchDeleteScheduledAction service method, as returned by AutoScaling.</returns> /// <exception cref="Amazon.AutoScaling.Model.ResourceContentionException"> /// You already have a pending update to an Amazon EC2 Auto Scaling resource (for example, /// an Auto Scaling group, instance, or load balancer). /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/BatchDeleteScheduledAction">REST API Reference for BatchDeleteScheduledAction Operation</seealso> BatchDeleteScheduledActionResponse BatchDeleteScheduledAction(BatchDeleteScheduledActionRequest request); /// <summary> /// Initiates the asynchronous execution of the BatchDeleteScheduledAction operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the BatchDeleteScheduledAction operation on AmazonAutoScalingClient.</param> /// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param> /// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property.</param> /// /// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndBatchDeleteScheduledAction /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/BatchDeleteScheduledAction">REST API Reference for BatchDeleteScheduledAction Operation</seealso> IAsyncResult BeginBatchDeleteScheduledAction(BatchDeleteScheduledActionRequest request, AsyncCallback callback, object state); /// <summary> /// Finishes the asynchronous execution of the BatchDeleteScheduledAction operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginBatchDeleteScheduledAction.</param> /// /// <returns>Returns a BatchDeleteScheduledActionResult from AutoScaling.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/BatchDeleteScheduledAction">REST API Reference for BatchDeleteScheduledAction Operation</seealso> BatchDeleteScheduledActionResponse EndBatchDeleteScheduledAction(IAsyncResult asyncResult); #endregion #region BatchPutScheduledUpdateGroupAction /// <summary> /// Creates or updates one or more scheduled scaling actions for an Auto Scaling group. /// </summary> /// <param name="request">Container for the necessary parameters to execute the BatchPutScheduledUpdateGroupAction service method.</param> /// /// <returns>The response from the BatchPutScheduledUpdateGroupAction service method, as returned by AutoScaling.</returns> /// <exception cref="Amazon.AutoScaling.Model.AlreadyExistsException"> /// You already have an Auto Scaling group or launch configuration with this name. /// </exception> /// <exception cref="Amazon.AutoScaling.Model.LimitExceededException"> /// You have already reached a limit for your Amazon EC2 Auto Scaling resources (for example, /// Auto Scaling groups, launch configurations, or lifecycle hooks). For more information, /// see <a href="https://docs.aws.amazon.com/autoscaling/ec2/APIReference/API_DescribeAccountLimits.html">DescribeAccountLimits</a> /// in the <i>Amazon EC2 Auto Scaling API Reference</i>. /// </exception> /// <exception cref="Amazon.AutoScaling.Model.ResourceContentionException"> /// You already have a pending update to an Amazon EC2 Auto Scaling resource (for example, /// an Auto Scaling group, instance, or load balancer). /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/BatchPutScheduledUpdateGroupAction">REST API Reference for BatchPutScheduledUpdateGroupAction Operation</seealso> BatchPutScheduledUpdateGroupActionResponse BatchPutScheduledUpdateGroupAction(BatchPutScheduledUpdateGroupActionRequest request); /// <summary> /// Initiates the asynchronous execution of the BatchPutScheduledUpdateGroupAction operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the BatchPutScheduledUpdateGroupAction operation on AmazonAutoScalingClient.</param> /// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param> /// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property.</param> /// /// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndBatchPutScheduledUpdateGroupAction /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/BatchPutScheduledUpdateGroupAction">REST API Reference for BatchPutScheduledUpdateGroupAction Operation</seealso> IAsyncResult BeginBatchPutScheduledUpdateGroupAction(BatchPutScheduledUpdateGroupActionRequest request, AsyncCallback callback, object state); /// <summary> /// Finishes the asynchronous execution of the BatchPutScheduledUpdateGroupAction operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginBatchPutScheduledUpdateGroupAction.</param> /// /// <returns>Returns a BatchPutScheduledUpdateGroupActionResult from AutoScaling.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/BatchPutScheduledUpdateGroupAction">REST API Reference for BatchPutScheduledUpdateGroupAction Operation</seealso> BatchPutScheduledUpdateGroupActionResponse EndBatchPutScheduledUpdateGroupAction(IAsyncResult asyncResult); #endregion #region CancelInstanceRefresh /// <summary> /// Cancels an instance refresh or rollback that is in progress. If an instance refresh /// or rollback is not in progress, an <code>ActiveInstanceRefreshNotFound</code> error /// occurs. /// /// /// <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> /// When you cancel an instance refresh, this does not roll back any changes that it made. /// Use the <a>RollbackInstanceRefresh</a> API to roll back instead. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the CancelInstanceRefresh service method.</param> /// /// <returns>The response from the CancelInstanceRefresh service method, as returned by AutoScaling.</returns> /// <exception cref="Amazon.AutoScaling.Model.ActiveInstanceRefreshNotFoundException"> /// The request failed because an active instance refresh or rollback for the specified /// Auto Scaling group was not found. /// </exception> /// <exception cref="Amazon.AutoScaling.Model.LimitExceededException"> /// You have already reached a limit for your Amazon EC2 Auto Scaling resources (for example, /// Auto Scaling groups, launch configurations, or lifecycle hooks). For more information, /// see <a href="https://docs.aws.amazon.com/autoscaling/ec2/APIReference/API_DescribeAccountLimits.html">DescribeAccountLimits</a> /// in the <i>Amazon EC2 Auto Scaling API Reference</i>. /// </exception> /// <exception cref="Amazon.AutoScaling.Model.ResourceContentionException"> /// You already have a pending update to an Amazon EC2 Auto Scaling resource (for example, /// an Auto Scaling group, instance, or load balancer). /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/CancelInstanceRefresh">REST API Reference for CancelInstanceRefresh Operation</seealso> CancelInstanceRefreshResponse CancelInstanceRefresh(CancelInstanceRefreshRequest request); /// <summary> /// Initiates the asynchronous execution of the CancelInstanceRefresh operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the CancelInstanceRefresh operation on AmazonAutoScalingClient.</param> /// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param> /// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property.</param> /// /// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndCancelInstanceRefresh /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/CancelInstanceRefresh">REST API Reference for CancelInstanceRefresh Operation</seealso> IAsyncResult BeginCancelInstanceRefresh(CancelInstanceRefreshRequest request, AsyncCallback callback, object state); /// <summary> /// Finishes the asynchronous execution of the CancelInstanceRefresh operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginCancelInstanceRefresh.</param> /// /// <returns>Returns a CancelInstanceRefreshResult from AutoScaling.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/CancelInstanceRefresh">REST API Reference for CancelInstanceRefresh Operation</seealso> CancelInstanceRefreshResponse EndCancelInstanceRefresh(IAsyncResult asyncResult); #endregion #region CompleteLifecycleAction /// <summary> /// Completes the lifecycle action for the specified token or instance with the specified /// result. /// /// /// <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> /// If you need more time, record the lifecycle action heartbeat to keep the instance /// in a wait state. /// </para> /// </li> <li> /// <para> /// <b>If you finish before the timeout period ends, send a callback by using the <a>CompleteLifecycleAction</a> /// API call.</b> /// </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> /// <param name="request">Container for the necessary parameters to execute the CompleteLifecycleAction service method.</param> /// /// <returns>The response from the CompleteLifecycleAction service method, as returned by AutoScaling.</returns> /// <exception cref="Amazon.AutoScaling.Model.ResourceContentionException"> /// You already have a pending update to an Amazon EC2 Auto Scaling resource (for example, /// an Auto Scaling group, instance, or load balancer). /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/CompleteLifecycleAction">REST API Reference for CompleteLifecycleAction Operation</seealso> CompleteLifecycleActionResponse CompleteLifecycleAction(CompleteLifecycleActionRequest request); /// <summary> /// Initiates the asynchronous execution of the CompleteLifecycleAction operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the CompleteLifecycleAction operation on AmazonAutoScalingClient.</param> /// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param> /// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property.</param> /// /// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndCompleteLifecycleAction /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/CompleteLifecycleAction">REST API Reference for CompleteLifecycleAction Operation</seealso> IAsyncResult BeginCompleteLifecycleAction(CompleteLifecycleActionRequest request, AsyncCallback callback, object state); /// <summary> /// Finishes the asynchronous execution of the CompleteLifecycleAction operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginCompleteLifecycleAction.</param> /// /// <returns>Returns a CompleteLifecycleActionResult from AutoScaling.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/CompleteLifecycleAction">REST API Reference for CompleteLifecycleAction Operation</seealso> CompleteLifecycleActionResponse EndCompleteLifecycleAction(IAsyncResult asyncResult); #endregion #region CreateAutoScalingGroup /// <summary> /// <b>We strongly recommend using a launch template when calling this operation to ensure /// full functionality for Amazon EC2 Auto Scaling and Amazon EC2.</b> /// /// /// <para> /// Creates an Auto Scaling group with the specified name and attributes. /// </para> /// /// <para> /// If you exceed your maximum limit of Auto Scaling groups, the call fails. To query /// this limit, call the <a>DescribeAccountLimits</a> API. For information about updating /// this limit, see <a href="https://docs.aws.amazon.com/autoscaling/ec2/userguide/ec2-auto-scaling-quotas.html">Quotas /// for Amazon EC2 Auto Scaling</a> in the <i>Amazon EC2 Auto Scaling User Guide</i>. /// </para> /// /// <para> /// For introductory exercises for creating an Auto Scaling group, see <a href="https://docs.aws.amazon.com/autoscaling/ec2/userguide/GettingStartedTutorial.html">Getting /// started with Amazon EC2 Auto Scaling</a> and <a href="https://docs.aws.amazon.com/autoscaling/ec2/userguide/as-register-lbs-with-asg.html">Tutorial: /// Set up a scaled and load-balanced application</a> in the <i>Amazon EC2 Auto Scaling /// User Guide</i>. For more information, see <a href="https://docs.aws.amazon.com/autoscaling/ec2/userguide/AutoScalingGroup.html">Auto /// Scaling groups</a> in the <i>Amazon EC2 Auto Scaling User Guide</i>. /// </para> /// /// <para> /// Every Auto Scaling group has three size properties (<code>DesiredCapacity</code>, /// <code>MaxSize</code>, and <code>MinSize</code>). Usually, you set these sizes based /// on a specific number of instances. However, if you configure a mixed instances policy /// that defines weights for the instance types, you must specify these sizes with the /// same units that you use for weighting instances. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the CreateAutoScalingGroup service method.</param> /// /// <returns>The response from the CreateAutoScalingGroup service method, as returned by AutoScaling.</returns> /// <exception cref="Amazon.AutoScaling.Model.AlreadyExistsException"> /// You already have an Auto Scaling group or launch configuration with this name. /// </exception> /// <exception cref="Amazon.AutoScaling.Model.LimitExceededException"> /// You have already reached a limit for your Amazon EC2 Auto Scaling resources (for example, /// Auto Scaling groups, launch configurations, or lifecycle hooks). For more information, /// see <a href="https://docs.aws.amazon.com/autoscaling/ec2/APIReference/API_DescribeAccountLimits.html">DescribeAccountLimits</a> /// in the <i>Amazon EC2 Auto Scaling API Reference</i>. /// </exception> /// <exception cref="Amazon.AutoScaling.Model.ResourceContentionException"> /// You already have a pending update to an Amazon EC2 Auto Scaling resource (for example, /// an Auto Scaling group, instance, or load balancer). /// </exception> /// <exception cref="Amazon.AutoScaling.Model.ServiceLinkedRoleFailureException"> /// The service-linked role is not yet ready for use. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/CreateAutoScalingGroup">REST API Reference for CreateAutoScalingGroup Operation</seealso> CreateAutoScalingGroupResponse CreateAutoScalingGroup(CreateAutoScalingGroupRequest request); /// <summary> /// Initiates the asynchronous execution of the CreateAutoScalingGroup operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the CreateAutoScalingGroup operation on AmazonAutoScalingClient.</param> /// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param> /// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property.</param> /// /// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndCreateAutoScalingGroup /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/CreateAutoScalingGroup">REST API Reference for CreateAutoScalingGroup Operation</seealso> IAsyncResult BeginCreateAutoScalingGroup(CreateAutoScalingGroupRequest request, AsyncCallback callback, object state); /// <summary> /// Finishes the asynchronous execution of the CreateAutoScalingGroup operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginCreateAutoScalingGroup.</param> /// /// <returns>Returns a CreateAutoScalingGroupResult from AutoScaling.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/CreateAutoScalingGroup">REST API Reference for CreateAutoScalingGroup Operation</seealso> CreateAutoScalingGroupResponse EndCreateAutoScalingGroup(IAsyncResult asyncResult); #endregion #region CreateLaunchConfiguration /// <summary> /// Creates a launch configuration. /// /// /// <para> /// If you exceed your maximum limit of launch configurations, the call fails. To query /// this limit, call the <a>DescribeAccountLimits</a> API. For information about updating /// this limit, see <a href="https://docs.aws.amazon.com/autoscaling/ec2/userguide/ec2-auto-scaling-quotas.html">Quotas /// for Amazon EC2 Auto Scaling</a> in the <i>Amazon EC2 Auto Scaling User Guide</i>. /// </para> /// /// <para> /// For more information, see <a href="https://docs.aws.amazon.com/autoscaling/ec2/userguide/LaunchConfiguration.html">Launch /// configurations</a> in the <i>Amazon EC2 Auto Scaling User Guide</i>. /// </para> /// <note> /// <para> /// Amazon EC2 Auto Scaling configures instances launched as part of an Auto Scaling group /// using either a launch template or a launch configuration. We strongly recommend that /// you do not use launch configurations. They do not provide full functionality for Amazon /// EC2 Auto Scaling or Amazon EC2. For information about using launch templates, see /// <a href="https://docs.aws.amazon.com/autoscaling/ec2/userguide/launch-templates.html">Launch /// templates</a> in the <i>Amazon EC2 Auto Scaling User Guide</i>. /// </para> /// </note> /// </summary> /// <param name="request">Container for the necessary parameters to execute the CreateLaunchConfiguration service method.</param> /// /// <returns>The response from the CreateLaunchConfiguration service method, as returned by AutoScaling.</returns> /// <exception cref="Amazon.AutoScaling.Model.AlreadyExistsException"> /// You already have an Auto Scaling group or launch configuration with this name. /// </exception> /// <exception cref="Amazon.AutoScaling.Model.LimitExceededException"> /// You have already reached a limit for your Amazon EC2 Auto Scaling resources (for example, /// Auto Scaling groups, launch configurations, or lifecycle hooks). For more information, /// see <a href="https://docs.aws.amazon.com/autoscaling/ec2/APIReference/API_DescribeAccountLimits.html">DescribeAccountLimits</a> /// in the <i>Amazon EC2 Auto Scaling API Reference</i>. /// </exception> /// <exception cref="Amazon.AutoScaling.Model.ResourceContentionException"> /// You already have a pending update to an Amazon EC2 Auto Scaling resource (for example, /// an Auto Scaling group, instance, or load balancer). /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/CreateLaunchConfiguration">REST API Reference for CreateLaunchConfiguration Operation</seealso> CreateLaunchConfigurationResponse CreateLaunchConfiguration(CreateLaunchConfigurationRequest request); /// <summary> /// Initiates the asynchronous execution of the CreateLaunchConfiguration operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the CreateLaunchConfiguration operation on AmazonAutoScalingClient.</param> /// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param> /// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property.</param> /// /// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndCreateLaunchConfiguration /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/CreateLaunchConfiguration">REST API Reference for CreateLaunchConfiguration Operation</seealso> IAsyncResult BeginCreateLaunchConfiguration(CreateLaunchConfigurationRequest request, AsyncCallback callback, object state); /// <summary> /// Finishes the asynchronous execution of the CreateLaunchConfiguration operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginCreateLaunchConfiguration.</param> /// /// <returns>Returns a CreateLaunchConfigurationResult from AutoScaling.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/CreateLaunchConfiguration">REST API Reference for CreateLaunchConfiguration Operation</seealso> CreateLaunchConfigurationResponse EndCreateLaunchConfiguration(IAsyncResult asyncResult); #endregion #region CreateOrUpdateTags /// <summary> /// Creates or updates tags for the specified Auto Scaling group. /// /// /// <para> /// When you specify a tag with a key that already exists, the operation overwrites the /// previous tag definition, and you do not get an error message. /// </para> /// /// <para> /// For more information, see <a href="https://docs.aws.amazon.com/autoscaling/ec2/userguide/ec2-auto-scaling-tagging.html">Tag /// Auto Scaling groups and instances</a> in the <i>Amazon EC2 Auto Scaling User Guide</i>. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the CreateOrUpdateTags service method.</param> /// /// <returns>The response from the CreateOrUpdateTags service method, as returned by AutoScaling.</returns> /// <exception cref="Amazon.AutoScaling.Model.AlreadyExistsException"> /// You already have an Auto Scaling group or launch configuration with this name. /// </exception> /// <exception cref="Amazon.AutoScaling.Model.LimitExceededException"> /// You have already reached a limit for your Amazon EC2 Auto Scaling resources (for example, /// Auto Scaling groups, launch configurations, or lifecycle hooks). For more information, /// see <a href="https://docs.aws.amazon.com/autoscaling/ec2/APIReference/API_DescribeAccountLimits.html">DescribeAccountLimits</a> /// in the <i>Amazon EC2 Auto Scaling API Reference</i>. /// </exception> /// <exception cref="Amazon.AutoScaling.Model.ResourceContentionException"> /// You already have a pending update to an Amazon EC2 Auto Scaling resource (for example, /// an Auto Scaling group, instance, or load balancer). /// </exception> /// <exception cref="Amazon.AutoScaling.Model.ResourceInUseException"> /// The operation can't be performed because the resource is in use. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/CreateOrUpdateTags">REST API Reference for CreateOrUpdateTags Operation</seealso> CreateOrUpdateTagsResponse CreateOrUpdateTags(CreateOrUpdateTagsRequest request); /// <summary> /// Initiates the asynchronous execution of the CreateOrUpdateTags operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the CreateOrUpdateTags operation on AmazonAutoScalingClient.</param> /// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param> /// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property.</param> /// /// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndCreateOrUpdateTags /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/CreateOrUpdateTags">REST API Reference for CreateOrUpdateTags Operation</seealso> IAsyncResult BeginCreateOrUpdateTags(CreateOrUpdateTagsRequest request, AsyncCallback callback, object state); /// <summary> /// Finishes the asynchronous execution of the CreateOrUpdateTags operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginCreateOrUpdateTags.</param> /// /// <returns>Returns a CreateOrUpdateTagsResult from AutoScaling.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/CreateOrUpdateTags">REST API Reference for CreateOrUpdateTags Operation</seealso> CreateOrUpdateTagsResponse EndCreateOrUpdateTags(IAsyncResult asyncResult); #endregion #region DeleteAutoScalingGroup /// <summary> /// Deletes the specified Auto Scaling group. /// /// /// <para> /// If the group has instances or scaling activities in progress, you must specify the /// option to force the deletion in order for it to succeed. The force delete operation /// will also terminate the EC2 instances. If the group has a warm pool, the force delete /// option also deletes the warm pool. /// </para> /// /// <para> /// To remove instances from the Auto Scaling group before deleting it, call the <a>DetachInstances</a> /// API with the list of instances and the option to decrement the desired capacity. This /// ensures that Amazon EC2 Auto Scaling does not launch replacement instances. /// </para> /// /// <para> /// To terminate all instances before deleting the Auto Scaling group, call the <a>UpdateAutoScalingGroup</a> /// API and set the minimum size and desired capacity of the Auto Scaling group to zero. /// </para> /// /// <para> /// If the group has scaling policies, deleting the group deletes the policies, the underlying /// alarm actions, and any alarm that no longer has an associated action. /// </para> /// /// <para> /// For more information, see <a href="https://docs.aws.amazon.com/autoscaling/ec2/userguide/as-process-shutdown.html">Delete /// your Auto Scaling infrastructure</a> in the <i>Amazon EC2 Auto Scaling User Guide</i>. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the DeleteAutoScalingGroup service method.</param> /// /// <returns>The response from the DeleteAutoScalingGroup service method, as returned by AutoScaling.</returns> /// <exception cref="Amazon.AutoScaling.Model.ResourceContentionException"> /// You already have a pending update to an Amazon EC2 Auto Scaling resource (for example, /// an Auto Scaling group, instance, or load balancer). /// </exception> /// <exception cref="Amazon.AutoScaling.Model.ResourceInUseException"> /// The operation can't be performed because the resource is in use. /// </exception> /// <exception cref="Amazon.AutoScaling.Model.ScalingActivityInProgressException"> /// The operation can't be performed because there are scaling activities in progress. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/DeleteAutoScalingGroup">REST API Reference for DeleteAutoScalingGroup Operation</seealso> DeleteAutoScalingGroupResponse DeleteAutoScalingGroup(DeleteAutoScalingGroupRequest request); /// <summary> /// Initiates the asynchronous execution of the DeleteAutoScalingGroup operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the DeleteAutoScalingGroup operation on AmazonAutoScalingClient.</param> /// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param> /// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property.</param> /// /// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndDeleteAutoScalingGroup /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/DeleteAutoScalingGroup">REST API Reference for DeleteAutoScalingGroup Operation</seealso> IAsyncResult BeginDeleteAutoScalingGroup(DeleteAutoScalingGroupRequest request, AsyncCallback callback, object state); /// <summary> /// Finishes the asynchronous execution of the DeleteAutoScalingGroup operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginDeleteAutoScalingGroup.</param> /// /// <returns>Returns a DeleteAutoScalingGroupResult from AutoScaling.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/DeleteAutoScalingGroup">REST API Reference for DeleteAutoScalingGroup Operation</seealso> DeleteAutoScalingGroupResponse EndDeleteAutoScalingGroup(IAsyncResult asyncResult); #endregion #region DeleteLaunchConfiguration /// <summary> /// Deletes the specified launch configuration. /// /// /// <para> /// The launch configuration must not be attached to an Auto Scaling group. When this /// call completes, the launch configuration is no longer available for use. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the DeleteLaunchConfiguration service method.</param> /// /// <returns>The response from the DeleteLaunchConfiguration service method, as returned by AutoScaling.</returns> /// <exception cref="Amazon.AutoScaling.Model.ResourceContentionException"> /// You already have a pending update to an Amazon EC2 Auto Scaling resource (for example, /// an Auto Scaling group, instance, or load balancer). /// </exception> /// <exception cref="Amazon.AutoScaling.Model.ResourceInUseException"> /// The operation can't be performed because the resource is in use. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/DeleteLaunchConfiguration">REST API Reference for DeleteLaunchConfiguration Operation</seealso> DeleteLaunchConfigurationResponse DeleteLaunchConfiguration(DeleteLaunchConfigurationRequest request); /// <summary> /// Initiates the asynchronous execution of the DeleteLaunchConfiguration operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the DeleteLaunchConfiguration operation on AmazonAutoScalingClient.</param> /// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param> /// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property.</param> /// /// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndDeleteLaunchConfiguration /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/DeleteLaunchConfiguration">REST API Reference for DeleteLaunchConfiguration Operation</seealso> IAsyncResult BeginDeleteLaunchConfiguration(DeleteLaunchConfigurationRequest request, AsyncCallback callback, object state); /// <summary> /// Finishes the asynchronous execution of the DeleteLaunchConfiguration operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginDeleteLaunchConfiguration.</param> /// /// <returns>Returns a DeleteLaunchConfigurationResult from AutoScaling.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/DeleteLaunchConfiguration">REST API Reference for DeleteLaunchConfiguration Operation</seealso> DeleteLaunchConfigurationResponse EndDeleteLaunchConfiguration(IAsyncResult asyncResult); #endregion #region DeleteLifecycleHook /// <summary> /// Deletes the specified lifecycle hook. /// /// /// <para> /// If there are any outstanding lifecycle actions, they are completed first (<code>ABANDON</code> /// for launching instances, <code>CONTINUE</code> for terminating instances). /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the DeleteLifecycleHook service method.</param> /// /// <returns>The response from the DeleteLifecycleHook service method, as returned by AutoScaling.</returns> /// <exception cref="Amazon.AutoScaling.Model.ResourceContentionException"> /// You already have a pending update to an Amazon EC2 Auto Scaling resource (for example, /// an Auto Scaling group, instance, or load balancer). /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/DeleteLifecycleHook">REST API Reference for DeleteLifecycleHook Operation</seealso> DeleteLifecycleHookResponse DeleteLifecycleHook(DeleteLifecycleHookRequest request); /// <summary> /// Initiates the asynchronous execution of the DeleteLifecycleHook operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the DeleteLifecycleHook operation on AmazonAutoScalingClient.</param> /// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param> /// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property.</param> /// /// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndDeleteLifecycleHook /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/DeleteLifecycleHook">REST API Reference for DeleteLifecycleHook Operation</seealso> IAsyncResult BeginDeleteLifecycleHook(DeleteLifecycleHookRequest request, AsyncCallback callback, object state); /// <summary> /// Finishes the asynchronous execution of the DeleteLifecycleHook operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginDeleteLifecycleHook.</param> /// /// <returns>Returns a DeleteLifecycleHookResult from AutoScaling.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/DeleteLifecycleHook">REST API Reference for DeleteLifecycleHook Operation</seealso> DeleteLifecycleHookResponse EndDeleteLifecycleHook(IAsyncResult asyncResult); #endregion #region DeleteNotificationConfiguration /// <summary> /// Deletes the specified notification. /// </summary> /// <param name="request">Container for the necessary parameters to execute the DeleteNotificationConfiguration service method.</param> /// /// <returns>The response from the DeleteNotificationConfiguration service method, as returned by AutoScaling.</returns> /// <exception cref="Amazon.AutoScaling.Model.ResourceContentionException"> /// You already have a pending update to an Amazon EC2 Auto Scaling resource (for example, /// an Auto Scaling group, instance, or load balancer). /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/DeleteNotificationConfiguration">REST API Reference for DeleteNotificationConfiguration Operation</seealso> DeleteNotificationConfigurationResponse DeleteNotificationConfiguration(DeleteNotificationConfigurationRequest request); /// <summary> /// Initiates the asynchronous execution of the DeleteNotificationConfiguration operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the DeleteNotificationConfiguration operation on AmazonAutoScalingClient.</param> /// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param> /// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property.</param> /// /// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndDeleteNotificationConfiguration /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/DeleteNotificationConfiguration">REST API Reference for DeleteNotificationConfiguration Operation</seealso> IAsyncResult BeginDeleteNotificationConfiguration(DeleteNotificationConfigurationRequest request, AsyncCallback callback, object state); /// <summary> /// Finishes the asynchronous execution of the DeleteNotificationConfiguration operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginDeleteNotificationConfiguration.</param> /// /// <returns>Returns a DeleteNotificationConfigurationResult from AutoScaling.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/DeleteNotificationConfiguration">REST API Reference for DeleteNotificationConfiguration Operation</seealso> DeleteNotificationConfigurationResponse EndDeleteNotificationConfiguration(IAsyncResult asyncResult); #endregion #region DeletePolicy /// <summary> /// Deletes the specified scaling policy. /// /// /// <para> /// Deleting either a step scaling policy or a simple scaling policy deletes the underlying /// alarm action, but does not delete the alarm, even if it no longer has an associated /// action. /// </para> /// /// <para> /// For more information, see <a href="https://docs.aws.amazon.com/autoscaling/ec2/userguide/deleting-scaling-policy.html">Deleting /// a scaling policy</a> in the <i>Amazon EC2 Auto Scaling User Guide</i>. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the DeletePolicy service method.</param> /// /// <returns>The response from the DeletePolicy service method, as returned by AutoScaling.</returns> /// <exception cref="Amazon.AutoScaling.Model.ResourceContentionException"> /// You already have a pending update to an Amazon EC2 Auto Scaling resource (for example, /// an Auto Scaling group, instance, or load balancer). /// </exception> /// <exception cref="Amazon.AutoScaling.Model.ServiceLinkedRoleFailureException"> /// The service-linked role is not yet ready for use. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/DeletePolicy">REST API Reference for DeletePolicy Operation</seealso> DeletePolicyResponse DeletePolicy(DeletePolicyRequest request); /// <summary> /// Initiates the asynchronous execution of the DeletePolicy operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the DeletePolicy operation on AmazonAutoScalingClient.</param> /// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param> /// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property.</param> /// /// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndDeletePolicy /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/DeletePolicy">REST API Reference for DeletePolicy Operation</seealso> IAsyncResult BeginDeletePolicy(DeletePolicyRequest request, AsyncCallback callback, object state); /// <summary> /// Finishes the asynchronous execution of the DeletePolicy operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginDeletePolicy.</param> /// /// <returns>Returns a DeletePolicyResult from AutoScaling.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/DeletePolicy">REST API Reference for DeletePolicy Operation</seealso> DeletePolicyResponse EndDeletePolicy(IAsyncResult asyncResult); #endregion #region DeleteScheduledAction /// <summary> /// Deletes the specified scheduled action. /// </summary> /// <param name="request">Container for the necessary parameters to execute the DeleteScheduledAction service method.</param> /// /// <returns>The response from the DeleteScheduledAction service method, as returned by AutoScaling.</returns> /// <exception cref="Amazon.AutoScaling.Model.ResourceContentionException"> /// You already have a pending update to an Amazon EC2 Auto Scaling resource (for example, /// an Auto Scaling group, instance, or load balancer). /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/DeleteScheduledAction">REST API Reference for DeleteScheduledAction Operation</seealso> DeleteScheduledActionResponse DeleteScheduledAction(DeleteScheduledActionRequest request); /// <summary> /// Initiates the asynchronous execution of the DeleteScheduledAction operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the DeleteScheduledAction operation on AmazonAutoScalingClient.</param> /// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param> /// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property.</param> /// /// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndDeleteScheduledAction /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/DeleteScheduledAction">REST API Reference for DeleteScheduledAction Operation</seealso> IAsyncResult BeginDeleteScheduledAction(DeleteScheduledActionRequest request, AsyncCallback callback, object state); /// <summary> /// Finishes the asynchronous execution of the DeleteScheduledAction operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginDeleteScheduledAction.</param> /// /// <returns>Returns a DeleteScheduledActionResult from AutoScaling.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/DeleteScheduledAction">REST API Reference for DeleteScheduledAction Operation</seealso> DeleteScheduledActionResponse EndDeleteScheduledAction(IAsyncResult asyncResult); #endregion #region DeleteTags /// <summary> /// Deletes the specified tags. /// </summary> /// <param name="request">Container for the necessary parameters to execute the DeleteTags service method.</param> /// /// <returns>The response from the DeleteTags service method, as returned by AutoScaling.</returns> /// <exception cref="Amazon.AutoScaling.Model.ResourceContentionException"> /// You already have a pending update to an Amazon EC2 Auto Scaling resource (for example, /// an Auto Scaling group, instance, or load balancer). /// </exception> /// <exception cref="Amazon.AutoScaling.Model.ResourceInUseException"> /// The operation can't be performed because the resource is in use. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/DeleteTags">REST API Reference for DeleteTags Operation</seealso> DeleteTagsResponse DeleteTags(DeleteTagsRequest request); /// <summary> /// Initiates the asynchronous execution of the DeleteTags operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the DeleteTags operation on AmazonAutoScalingClient.</param> /// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param> /// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property.</param> /// /// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndDeleteTags /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/DeleteTags">REST API Reference for DeleteTags Operation</seealso> IAsyncResult BeginDeleteTags(DeleteTagsRequest request, AsyncCallback callback, object state); /// <summary> /// Finishes the asynchronous execution of the DeleteTags operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginDeleteTags.</param> /// /// <returns>Returns a DeleteTagsResult from AutoScaling.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/DeleteTags">REST API Reference for DeleteTags Operation</seealso> DeleteTagsResponse EndDeleteTags(IAsyncResult asyncResult); #endregion #region DeleteWarmPool /// <summary> /// Deletes the warm pool for the specified Auto Scaling group. /// /// /// <para> /// For more information, 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> /// </summary> /// <param name="request">Container for the necessary parameters to execute the DeleteWarmPool service method.</param> /// /// <returns>The response from the DeleteWarmPool service method, as returned by AutoScaling.</returns> /// <exception cref="Amazon.AutoScaling.Model.LimitExceededException"> /// You have already reached a limit for your Amazon EC2 Auto Scaling resources (for example, /// Auto Scaling groups, launch configurations, or lifecycle hooks). For more information, /// see <a href="https://docs.aws.amazon.com/autoscaling/ec2/APIReference/API_DescribeAccountLimits.html">DescribeAccountLimits</a> /// in the <i>Amazon EC2 Auto Scaling API Reference</i>. /// </exception> /// <exception cref="Amazon.AutoScaling.Model.ResourceContentionException"> /// You already have a pending update to an Amazon EC2 Auto Scaling resource (for example, /// an Auto Scaling group, instance, or load balancer). /// </exception> /// <exception cref="Amazon.AutoScaling.Model.ResourceInUseException"> /// The operation can't be performed because the resource is in use. /// </exception> /// <exception cref="Amazon.AutoScaling.Model.ScalingActivityInProgressException"> /// The operation can't be performed because there are scaling activities in progress. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/DeleteWarmPool">REST API Reference for DeleteWarmPool Operation</seealso> DeleteWarmPoolResponse DeleteWarmPool(DeleteWarmPoolRequest request); /// <summary> /// Initiates the asynchronous execution of the DeleteWarmPool operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the DeleteWarmPool operation on AmazonAutoScalingClient.</param> /// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param> /// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property.</param> /// /// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndDeleteWarmPool /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/DeleteWarmPool">REST API Reference for DeleteWarmPool Operation</seealso> IAsyncResult BeginDeleteWarmPool(DeleteWarmPoolRequest request, AsyncCallback callback, object state); /// <summary> /// Finishes the asynchronous execution of the DeleteWarmPool operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginDeleteWarmPool.</param> /// /// <returns>Returns a DeleteWarmPoolResult from AutoScaling.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/DeleteWarmPool">REST API Reference for DeleteWarmPool Operation</seealso> DeleteWarmPoolResponse EndDeleteWarmPool(IAsyncResult asyncResult); #endregion #region DescribeAccountLimits /// <summary> /// Describes the current Amazon EC2 Auto Scaling resource quotas for your account. /// /// /// <para> /// When you establish an Amazon Web Services account, the account has initial quotas /// on the maximum number of Auto Scaling groups and launch configurations that you can /// create in a given Region. For more information, see <a href="https://docs.aws.amazon.com/autoscaling/ec2/userguide/ec2-auto-scaling-quotas.html">Quotas /// for Amazon EC2 Auto Scaling</a> in the <i>Amazon EC2 Auto Scaling User Guide</i>. /// </para> /// </summary> /// /// <returns>The response from the DescribeAccountLimits service method, as returned by AutoScaling.</returns> /// <exception cref="Amazon.AutoScaling.Model.ResourceContentionException"> /// You already have a pending update to an Amazon EC2 Auto Scaling resource (for example, /// an Auto Scaling group, instance, or load balancer). /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/DescribeAccountLimits">REST API Reference for DescribeAccountLimits Operation</seealso> DescribeAccountLimitsResponse DescribeAccountLimits(); /// <summary> /// Describes the current Amazon EC2 Auto Scaling resource quotas for your account. /// /// /// <para> /// When you establish an Amazon Web Services account, the account has initial quotas /// on the maximum number of Auto Scaling groups and launch configurations that you can /// create in a given Region. For more information, see <a href="https://docs.aws.amazon.com/autoscaling/ec2/userguide/ec2-auto-scaling-quotas.html">Quotas /// for Amazon EC2 Auto Scaling</a> in the <i>Amazon EC2 Auto Scaling User Guide</i>. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the DescribeAccountLimits service method.</param> /// /// <returns>The response from the DescribeAccountLimits service method, as returned by AutoScaling.</returns> /// <exception cref="Amazon.AutoScaling.Model.ResourceContentionException"> /// You already have a pending update to an Amazon EC2 Auto Scaling resource (for example, /// an Auto Scaling group, instance, or load balancer). /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/DescribeAccountLimits">REST API Reference for DescribeAccountLimits Operation</seealso> DescribeAccountLimitsResponse DescribeAccountLimits(DescribeAccountLimitsRequest request); /// <summary> /// Initiates the asynchronous execution of the DescribeAccountLimits operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the DescribeAccountLimits operation on AmazonAutoScalingClient.</param> /// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param> /// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property.</param> /// /// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndDescribeAccountLimits /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/DescribeAccountLimits">REST API Reference for DescribeAccountLimits Operation</seealso> IAsyncResult BeginDescribeAccountLimits(DescribeAccountLimitsRequest request, AsyncCallback callback, object state); /// <summary> /// Finishes the asynchronous execution of the DescribeAccountLimits operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginDescribeAccountLimits.</param> /// /// <returns>Returns a DescribeAccountLimitsResult from AutoScaling.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/DescribeAccountLimits">REST API Reference for DescribeAccountLimits Operation</seealso> DescribeAccountLimitsResponse EndDescribeAccountLimits(IAsyncResult asyncResult); #endregion #region DescribeAdjustmentTypes /// <summary> /// Describes the available adjustment types for step scaling and simple scaling policies. /// /// /// <para> /// The following adjustment types are supported: /// </para> /// <ul> <li> /// <para> /// <code>ChangeInCapacity</code> /// </para> /// </li> <li> /// <para> /// <code>ExactCapacity</code> /// </para> /// </li> <li> /// <para> /// <code>PercentChangeInCapacity</code> /// </para> /// </li> </ul> /// </summary> /// /// <returns>The response from the DescribeAdjustmentTypes service method, as returned by AutoScaling.</returns> /// <exception cref="Amazon.AutoScaling.Model.ResourceContentionException"> /// You already have a pending update to an Amazon EC2 Auto Scaling resource (for example, /// an Auto Scaling group, instance, or load balancer). /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/DescribeAdjustmentTypes">REST API Reference for DescribeAdjustmentTypes Operation</seealso> DescribeAdjustmentTypesResponse DescribeAdjustmentTypes(); /// <summary> /// Describes the available adjustment types for step scaling and simple scaling policies. /// /// /// <para> /// The following adjustment types are supported: /// </para> /// <ul> <li> /// <para> /// <code>ChangeInCapacity</code> /// </para> /// </li> <li> /// <para> /// <code>ExactCapacity</code> /// </para> /// </li> <li> /// <para> /// <code>PercentChangeInCapacity</code> /// </para> /// </li> </ul> /// </summary> /// <param name="request">Container for the necessary parameters to execute the DescribeAdjustmentTypes service method.</param> /// /// <returns>The response from the DescribeAdjustmentTypes service method, as returned by AutoScaling.</returns> /// <exception cref="Amazon.AutoScaling.Model.ResourceContentionException"> /// You already have a pending update to an Amazon EC2 Auto Scaling resource (for example, /// an Auto Scaling group, instance, or load balancer). /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/DescribeAdjustmentTypes">REST API Reference for DescribeAdjustmentTypes Operation</seealso> DescribeAdjustmentTypesResponse DescribeAdjustmentTypes(DescribeAdjustmentTypesRequest request); /// <summary> /// Initiates the asynchronous execution of the DescribeAdjustmentTypes operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the DescribeAdjustmentTypes operation on AmazonAutoScalingClient.</param> /// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param> /// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property.</param> /// /// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndDescribeAdjustmentTypes /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/DescribeAdjustmentTypes">REST API Reference for DescribeAdjustmentTypes Operation</seealso> IAsyncResult BeginDescribeAdjustmentTypes(DescribeAdjustmentTypesRequest request, AsyncCallback callback, object state); /// <summary> /// Finishes the asynchronous execution of the DescribeAdjustmentTypes operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginDescribeAdjustmentTypes.</param> /// /// <returns>Returns a DescribeAdjustmentTypesResult from AutoScaling.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/DescribeAdjustmentTypes">REST API Reference for DescribeAdjustmentTypes Operation</seealso> DescribeAdjustmentTypesResponse EndDescribeAdjustmentTypes(IAsyncResult asyncResult); #endregion #region DescribeAutoScalingGroups /// <summary> /// Gets information about the Auto Scaling groups in the account and Region. /// /// /// <para> /// If you specify Auto Scaling group names, the output includes information for only /// the specified Auto Scaling groups. If you specify filters, the output includes information /// for only those Auto Scaling groups that meet the filter criteria. If you do not specify /// group names or filters, the output includes information for all Auto Scaling groups. /// /// </para> /// /// <para> /// This operation also returns information about instances in Auto Scaling groups. To /// retrieve information about the instances in a warm pool, you must call the <a>DescribeWarmPool</a> /// API. /// </para> /// </summary> /// /// <returns>The response from the DescribeAutoScalingGroups service method, as returned by AutoScaling.</returns> /// <exception cref="Amazon.AutoScaling.Model.InvalidNextTokenException"> /// The <code>NextToken</code> value is not valid. /// </exception> /// <exception cref="Amazon.AutoScaling.Model.ResourceContentionException"> /// You already have a pending update to an Amazon EC2 Auto Scaling resource (for example, /// an Auto Scaling group, instance, or load balancer). /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/DescribeAutoScalingGroups">REST API Reference for DescribeAutoScalingGroups Operation</seealso> DescribeAutoScalingGroupsResponse DescribeAutoScalingGroups(); /// <summary> /// Gets information about the Auto Scaling groups in the account and Region. /// /// /// <para> /// If you specify Auto Scaling group names, the output includes information for only /// the specified Auto Scaling groups. If you specify filters, the output includes information /// for only those Auto Scaling groups that meet the filter criteria. If you do not specify /// group names or filters, the output includes information for all Auto Scaling groups. /// /// </para> /// /// <para> /// This operation also returns information about instances in Auto Scaling groups. To /// retrieve information about the instances in a warm pool, you must call the <a>DescribeWarmPool</a> /// API. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the DescribeAutoScalingGroups service method.</param> /// /// <returns>The response from the DescribeAutoScalingGroups service method, as returned by AutoScaling.</returns> /// <exception cref="Amazon.AutoScaling.Model.InvalidNextTokenException"> /// The <code>NextToken</code> value is not valid. /// </exception> /// <exception cref="Amazon.AutoScaling.Model.ResourceContentionException"> /// You already have a pending update to an Amazon EC2 Auto Scaling resource (for example, /// an Auto Scaling group, instance, or load balancer). /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/DescribeAutoScalingGroups">REST API Reference for DescribeAutoScalingGroups Operation</seealso> DescribeAutoScalingGroupsResponse DescribeAutoScalingGroups(DescribeAutoScalingGroupsRequest request); /// <summary> /// Initiates the asynchronous execution of the DescribeAutoScalingGroups operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the DescribeAutoScalingGroups operation on AmazonAutoScalingClient.</param> /// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param> /// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property.</param> /// /// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndDescribeAutoScalingGroups /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/DescribeAutoScalingGroups">REST API Reference for DescribeAutoScalingGroups Operation</seealso> IAsyncResult BeginDescribeAutoScalingGroups(DescribeAutoScalingGroupsRequest request, AsyncCallback callback, object state); /// <summary> /// Finishes the asynchronous execution of the DescribeAutoScalingGroups operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginDescribeAutoScalingGroups.</param> /// /// <returns>Returns a DescribeAutoScalingGroupsResult from AutoScaling.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/DescribeAutoScalingGroups">REST API Reference for DescribeAutoScalingGroups Operation</seealso> DescribeAutoScalingGroupsResponse EndDescribeAutoScalingGroups(IAsyncResult asyncResult); #endregion #region DescribeAutoScalingInstances /// <summary> /// Gets information about the Auto Scaling instances in the account and Region. /// </summary> /// /// <returns>The response from the DescribeAutoScalingInstances service method, as returned by AutoScaling.</returns> /// <exception cref="Amazon.AutoScaling.Model.InvalidNextTokenException"> /// The <code>NextToken</code> value is not valid. /// </exception> /// <exception cref="Amazon.AutoScaling.Model.ResourceContentionException"> /// You already have a pending update to an Amazon EC2 Auto Scaling resource (for example, /// an Auto Scaling group, instance, or load balancer). /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/DescribeAutoScalingInstances">REST API Reference for DescribeAutoScalingInstances Operation</seealso> DescribeAutoScalingInstancesResponse DescribeAutoScalingInstances(); /// <summary> /// Gets information about the Auto Scaling instances in the account and Region. /// </summary> /// <param name="request">Container for the necessary parameters to execute the DescribeAutoScalingInstances service method.</param> /// /// <returns>The response from the DescribeAutoScalingInstances service method, as returned by AutoScaling.</returns> /// <exception cref="Amazon.AutoScaling.Model.InvalidNextTokenException"> /// The <code>NextToken</code> value is not valid. /// </exception> /// <exception cref="Amazon.AutoScaling.Model.ResourceContentionException"> /// You already have a pending update to an Amazon EC2 Auto Scaling resource (for example, /// an Auto Scaling group, instance, or load balancer). /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/DescribeAutoScalingInstances">REST API Reference for DescribeAutoScalingInstances Operation</seealso> DescribeAutoScalingInstancesResponse DescribeAutoScalingInstances(DescribeAutoScalingInstancesRequest request); /// <summary> /// Initiates the asynchronous execution of the DescribeAutoScalingInstances operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the DescribeAutoScalingInstances operation on AmazonAutoScalingClient.</param> /// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param> /// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property.</param> /// /// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndDescribeAutoScalingInstances /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/DescribeAutoScalingInstances">REST API Reference for DescribeAutoScalingInstances Operation</seealso> IAsyncResult BeginDescribeAutoScalingInstances(DescribeAutoScalingInstancesRequest request, AsyncCallback callback, object state); /// <summary> /// Finishes the asynchronous execution of the DescribeAutoScalingInstances operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginDescribeAutoScalingInstances.</param> /// /// <returns>Returns a DescribeAutoScalingInstancesResult from AutoScaling.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/DescribeAutoScalingInstances">REST API Reference for DescribeAutoScalingInstances Operation</seealso> DescribeAutoScalingInstancesResponse EndDescribeAutoScalingInstances(IAsyncResult asyncResult); #endregion #region DescribeAutoScalingNotificationTypes /// <summary> /// Describes the notification types that are supported by Amazon EC2 Auto Scaling. /// </summary> /// /// <returns>The response from the DescribeAutoScalingNotificationTypes service method, as returned by AutoScaling.</returns> /// <exception cref="Amazon.AutoScaling.Model.ResourceContentionException"> /// You already have a pending update to an Amazon EC2 Auto Scaling resource (for example, /// an Auto Scaling group, instance, or load balancer). /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/DescribeAutoScalingNotificationTypes">REST API Reference for DescribeAutoScalingNotificationTypes Operation</seealso> DescribeAutoScalingNotificationTypesResponse DescribeAutoScalingNotificationTypes(); /// <summary> /// Describes the notification types that are supported by Amazon EC2 Auto Scaling. /// </summary> /// <param name="request">Container for the necessary parameters to execute the DescribeAutoScalingNotificationTypes service method.</param> /// /// <returns>The response from the DescribeAutoScalingNotificationTypes service method, as returned by AutoScaling.</returns> /// <exception cref="Amazon.AutoScaling.Model.ResourceContentionException"> /// You already have a pending update to an Amazon EC2 Auto Scaling resource (for example, /// an Auto Scaling group, instance, or load balancer). /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/DescribeAutoScalingNotificationTypes">REST API Reference for DescribeAutoScalingNotificationTypes Operation</seealso> DescribeAutoScalingNotificationTypesResponse DescribeAutoScalingNotificationTypes(DescribeAutoScalingNotificationTypesRequest request); /// <summary> /// Initiates the asynchronous execution of the DescribeAutoScalingNotificationTypes operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the DescribeAutoScalingNotificationTypes operation on AmazonAutoScalingClient.</param> /// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param> /// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property.</param> /// /// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndDescribeAutoScalingNotificationTypes /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/DescribeAutoScalingNotificationTypes">REST API Reference for DescribeAutoScalingNotificationTypes Operation</seealso> IAsyncResult BeginDescribeAutoScalingNotificationTypes(DescribeAutoScalingNotificationTypesRequest request, AsyncCallback callback, object state); /// <summary> /// Finishes the asynchronous execution of the DescribeAutoScalingNotificationTypes operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginDescribeAutoScalingNotificationTypes.</param> /// /// <returns>Returns a DescribeAutoScalingNotificationTypesResult from AutoScaling.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/DescribeAutoScalingNotificationTypes">REST API Reference for DescribeAutoScalingNotificationTypes Operation</seealso> DescribeAutoScalingNotificationTypesResponse EndDescribeAutoScalingNotificationTypes(IAsyncResult asyncResult); #endregion #region DescribeInstanceRefreshes /// <summary> /// Gets information about the instance refreshes for the specified 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 after you make configuration changes. /// </para> /// /// <para> /// To help you determine the status of an instance refresh, Amazon EC2 Auto Scaling returns /// information about the instance refreshes you previously initiated, including their /// status, start time, end time, the percentage of the instance refresh that is complete, /// and the number of instances remaining to update before the instance refresh is complete. /// If a rollback is initiated while an instance refresh is in progress, Amazon EC2 Auto /// Scaling also returns information about the rollback of the instance refresh. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the DescribeInstanceRefreshes service method.</param> /// /// <returns>The response from the DescribeInstanceRefreshes service method, as returned by AutoScaling.</returns> /// <exception cref="Amazon.AutoScaling.Model.InvalidNextTokenException"> /// The <code>NextToken</code> value is not valid. /// </exception> /// <exception cref="Amazon.AutoScaling.Model.ResourceContentionException"> /// You already have a pending update to an Amazon EC2 Auto Scaling resource (for example, /// an Auto Scaling group, instance, or load balancer). /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/DescribeInstanceRefreshes">REST API Reference for DescribeInstanceRefreshes Operation</seealso> DescribeInstanceRefreshesResponse DescribeInstanceRefreshes(DescribeInstanceRefreshesRequest request); /// <summary> /// Initiates the asynchronous execution of the DescribeInstanceRefreshes operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the DescribeInstanceRefreshes operation on AmazonAutoScalingClient.</param> /// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param> /// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property.</param> /// /// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndDescribeInstanceRefreshes /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/DescribeInstanceRefreshes">REST API Reference for DescribeInstanceRefreshes Operation</seealso> IAsyncResult BeginDescribeInstanceRefreshes(DescribeInstanceRefreshesRequest request, AsyncCallback callback, object state); /// <summary> /// Finishes the asynchronous execution of the DescribeInstanceRefreshes operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginDescribeInstanceRefreshes.</param> /// /// <returns>Returns a DescribeInstanceRefreshesResult from AutoScaling.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/DescribeInstanceRefreshes">REST API Reference for DescribeInstanceRefreshes Operation</seealso> DescribeInstanceRefreshesResponse EndDescribeInstanceRefreshes(IAsyncResult asyncResult); #endregion #region DescribeLaunchConfigurations /// <summary> /// Gets information about the launch configurations in the account and Region. /// </summary> /// /// <returns>The response from the DescribeLaunchConfigurations service method, as returned by AutoScaling.</returns> /// <exception cref="Amazon.AutoScaling.Model.InvalidNextTokenException"> /// The <code>NextToken</code> value is not valid. /// </exception> /// <exception cref="Amazon.AutoScaling.Model.ResourceContentionException"> /// You already have a pending update to an Amazon EC2 Auto Scaling resource (for example, /// an Auto Scaling group, instance, or load balancer). /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/DescribeLaunchConfigurations">REST API Reference for DescribeLaunchConfigurations Operation</seealso> DescribeLaunchConfigurationsResponse DescribeLaunchConfigurations(); /// <summary> /// Gets information about the launch configurations in the account and Region. /// </summary> /// <param name="request">Container for the necessary parameters to execute the DescribeLaunchConfigurations service method.</param> /// /// <returns>The response from the DescribeLaunchConfigurations service method, as returned by AutoScaling.</returns> /// <exception cref="Amazon.AutoScaling.Model.InvalidNextTokenException"> /// The <code>NextToken</code> value is not valid. /// </exception> /// <exception cref="Amazon.AutoScaling.Model.ResourceContentionException"> /// You already have a pending update to an Amazon EC2 Auto Scaling resource (for example, /// an Auto Scaling group, instance, or load balancer). /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/DescribeLaunchConfigurations">REST API Reference for DescribeLaunchConfigurations Operation</seealso> DescribeLaunchConfigurationsResponse DescribeLaunchConfigurations(DescribeLaunchConfigurationsRequest request); /// <summary> /// Initiates the asynchronous execution of the DescribeLaunchConfigurations operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the DescribeLaunchConfigurations operation on AmazonAutoScalingClient.</param> /// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param> /// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property.</param> /// /// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndDescribeLaunchConfigurations /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/DescribeLaunchConfigurations">REST API Reference for DescribeLaunchConfigurations Operation</seealso> IAsyncResult BeginDescribeLaunchConfigurations(DescribeLaunchConfigurationsRequest request, AsyncCallback callback, object state); /// <summary> /// Finishes the asynchronous execution of the DescribeLaunchConfigurations operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginDescribeLaunchConfigurations.</param> /// /// <returns>Returns a DescribeLaunchConfigurationsResult from AutoScaling.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/DescribeLaunchConfigurations">REST API Reference for DescribeLaunchConfigurations Operation</seealso> DescribeLaunchConfigurationsResponse EndDescribeLaunchConfigurations(IAsyncResult asyncResult); #endregion #region DescribeLifecycleHooks /// <summary> /// Gets information about the lifecycle hooks for the specified Auto Scaling group. /// </summary> /// <param name="request">Container for the necessary parameters to execute the DescribeLifecycleHooks service method.</param> /// /// <returns>The response from the DescribeLifecycleHooks service method, as returned by AutoScaling.</returns> /// <exception cref="Amazon.AutoScaling.Model.ResourceContentionException"> /// You already have a pending update to an Amazon EC2 Auto Scaling resource (for example, /// an Auto Scaling group, instance, or load balancer). /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/DescribeLifecycleHooks">REST API Reference for DescribeLifecycleHooks Operation</seealso> DescribeLifecycleHooksResponse DescribeLifecycleHooks(DescribeLifecycleHooksRequest request); /// <summary> /// Initiates the asynchronous execution of the DescribeLifecycleHooks operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the DescribeLifecycleHooks operation on AmazonAutoScalingClient.</param> /// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param> /// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property.</param> /// /// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndDescribeLifecycleHooks /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/DescribeLifecycleHooks">REST API Reference for DescribeLifecycleHooks Operation</seealso> IAsyncResult BeginDescribeLifecycleHooks(DescribeLifecycleHooksRequest request, AsyncCallback callback, object state); /// <summary> /// Finishes the asynchronous execution of the DescribeLifecycleHooks operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginDescribeLifecycleHooks.</param> /// /// <returns>Returns a DescribeLifecycleHooksResult from AutoScaling.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/DescribeLifecycleHooks">REST API Reference for DescribeLifecycleHooks Operation</seealso> DescribeLifecycleHooksResponse EndDescribeLifecycleHooks(IAsyncResult asyncResult); #endregion #region DescribeLifecycleHookTypes /// <summary> /// Describes the available types of lifecycle hooks. /// /// /// <para> /// The following hook types are supported: /// </para> /// <ul> <li> /// <para> /// <code>autoscaling:EC2_INSTANCE_LAUNCHING</code> /// </para> /// </li> <li> /// <para> /// <code>autoscaling:EC2_INSTANCE_TERMINATING</code> /// </para> /// </li> </ul> /// </summary> /// <param name="request">Container for the necessary parameters to execute the DescribeLifecycleHookTypes service method.</param> /// /// <returns>The response from the DescribeLifecycleHookTypes service method, as returned by AutoScaling.</returns> /// <exception cref="Amazon.AutoScaling.Model.ResourceContentionException"> /// You already have a pending update to an Amazon EC2 Auto Scaling resource (for example, /// an Auto Scaling group, instance, or load balancer). /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/DescribeLifecycleHookTypes">REST API Reference for DescribeLifecycleHookTypes Operation</seealso> DescribeLifecycleHookTypesResponse DescribeLifecycleHookTypes(DescribeLifecycleHookTypesRequest request); /// <summary> /// Initiates the asynchronous execution of the DescribeLifecycleHookTypes operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the DescribeLifecycleHookTypes operation on AmazonAutoScalingClient.</param> /// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param> /// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property.</param> /// /// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndDescribeLifecycleHookTypes /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/DescribeLifecycleHookTypes">REST API Reference for DescribeLifecycleHookTypes Operation</seealso> IAsyncResult BeginDescribeLifecycleHookTypes(DescribeLifecycleHookTypesRequest request, AsyncCallback callback, object state); /// <summary> /// Finishes the asynchronous execution of the DescribeLifecycleHookTypes operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginDescribeLifecycleHookTypes.</param> /// /// <returns>Returns a DescribeLifecycleHookTypesResult from AutoScaling.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/DescribeLifecycleHookTypes">REST API Reference for DescribeLifecycleHookTypes Operation</seealso> DescribeLifecycleHookTypesResponse EndDescribeLifecycleHookTypes(IAsyncResult asyncResult); #endregion #region DescribeLoadBalancers /// <summary> /// <note> /// <para> /// This API operation is superseded by <a>DescribeTrafficSources</a>, which can describe /// multiple traffic sources types. We recommend using <code>DescribeTrafficSources</code> /// to simplify how you manage traffic sources. However, we continue to support <code>DescribeLoadBalancers</code>. /// You can use both the original <code>DescribeLoadBalancers</code> API operation and /// <code>DescribeTrafficSources</code> on the same Auto Scaling group. /// </para> /// </note> /// <para> /// Gets information about the load balancers for the specified Auto Scaling group. /// </para> /// /// <para> /// This operation describes only Classic Load Balancers. If you have Application Load /// Balancers, Network Load Balancers, or Gateway Load Balancers, use the <a>DescribeLoadBalancerTargetGroups</a> /// API instead. /// </para> /// /// <para> /// To determine the attachment status of the load balancer, use the <code>State</code> /// element in the response. When you attach a load balancer to an Auto Scaling group, /// the initial <code>State</code> value is <code>Adding</code>. The state transitions /// to <code>Added</code> after all Auto Scaling instances are registered with the load /// balancer. If Elastic Load Balancing health checks are enabled for the Auto Scaling /// group, the state transitions to <code>InService</code> after at least one Auto Scaling /// instance passes the health check. When the load balancer is in the <code>InService</code> /// state, Amazon EC2 Auto Scaling can terminate and replace any instances that are reported /// as unhealthy. If no registered instances pass the health checks, the load balancer /// doesn't enter the <code>InService</code> state. /// </para> /// /// <para> /// Load balancers also have an <code>InService</code> state if you attach them in the /// <a>CreateAutoScalingGroup</a> API call. If your load balancer state is <code>InService</code>, /// but it is not working properly, check the scaling activities by calling <a>DescribeScalingActivities</a> /// and take any corrective actions necessary. /// </para> /// /// <para> /// For help with failed health checks, see <a href="https://docs.aws.amazon.com/autoscaling/ec2/userguide/ts-as-healthchecks.html">Troubleshooting /// Amazon EC2 Auto Scaling: Health checks</a> in the <i>Amazon EC2 Auto Scaling User /// Guide</i>. For more information, see <a href="https://docs.aws.amazon.com/autoscaling/ec2/userguide/autoscaling-load-balancer.html">Use /// Elastic Load Balancing to distribute traffic across the instances in your Auto Scaling /// group</a> in the <i>Amazon EC2 Auto Scaling User Guide</i>. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the DescribeLoadBalancers service method.</param> /// /// <returns>The response from the DescribeLoadBalancers service method, as returned by AutoScaling.</returns> /// <exception cref="Amazon.AutoScaling.Model.InvalidNextTokenException"> /// The <code>NextToken</code> value is not valid. /// </exception> /// <exception cref="Amazon.AutoScaling.Model.ResourceContentionException"> /// You already have a pending update to an Amazon EC2 Auto Scaling resource (for example, /// an Auto Scaling group, instance, or load balancer). /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/DescribeLoadBalancers">REST API Reference for DescribeLoadBalancers Operation</seealso> DescribeLoadBalancersResponse DescribeLoadBalancers(DescribeLoadBalancersRequest request); /// <summary> /// Initiates the asynchronous execution of the DescribeLoadBalancers operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the DescribeLoadBalancers operation on AmazonAutoScalingClient.</param> /// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param> /// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property.</param> /// /// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndDescribeLoadBalancers /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/DescribeLoadBalancers">REST API Reference for DescribeLoadBalancers Operation</seealso> IAsyncResult BeginDescribeLoadBalancers(DescribeLoadBalancersRequest request, AsyncCallback callback, object state); /// <summary> /// Finishes the asynchronous execution of the DescribeLoadBalancers operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginDescribeLoadBalancers.</param> /// /// <returns>Returns a DescribeLoadBalancersResult from AutoScaling.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/DescribeLoadBalancers">REST API Reference for DescribeLoadBalancers Operation</seealso> DescribeLoadBalancersResponse EndDescribeLoadBalancers(IAsyncResult asyncResult); #endregion #region DescribeLoadBalancerTargetGroups /// <summary> /// <note> /// <para> /// This API operation is superseded by <a>DescribeTrafficSources</a>, which can describe /// multiple traffic sources types. We recommend using <code>DetachTrafficSources</code> /// to simplify how you manage traffic sources. However, we continue to support <code>DescribeLoadBalancerTargetGroups</code>. /// You can use both the original <code>DescribeLoadBalancerTargetGroups</code> API operation /// and <code>DescribeTrafficSources</code> on the same Auto Scaling group. /// </para> /// </note> /// <para> /// Gets information about the Elastic Load Balancing target groups for the specified /// Auto Scaling group. /// </para> /// /// <para> /// To determine the attachment status of the target group, use the <code>State</code> /// element in the response. When you attach a target group to an Auto Scaling group, /// the initial <code>State</code> value is <code>Adding</code>. The state transitions /// to <code>Added</code> after all Auto Scaling instances are registered with the target /// group. If Elastic Load Balancing health checks are enabled for the Auto Scaling group, /// the state transitions to <code>InService</code> after at least one Auto Scaling instance /// passes the health check. When the target group is in the <code>InService</code> state, /// Amazon EC2 Auto Scaling can terminate and replace any instances that are reported /// as unhealthy. If no registered instances pass the health checks, the target group /// doesn't enter the <code>InService</code> state. /// </para> /// /// <para> /// Target groups also have an <code>InService</code> state if you attach them in the /// <a>CreateAutoScalingGroup</a> API call. If your target group state is <code>InService</code>, /// but it is not working properly, check the scaling activities by calling <a>DescribeScalingActivities</a> /// and take any corrective actions necessary. /// </para> /// /// <para> /// For help with failed health checks, see <a href="https://docs.aws.amazon.com/autoscaling/ec2/userguide/ts-as-healthchecks.html">Troubleshooting /// Amazon EC2 Auto Scaling: Health checks</a> in the <i>Amazon EC2 Auto Scaling User /// Guide</i>. For more information, see <a href="https://docs.aws.amazon.com/autoscaling/ec2/userguide/autoscaling-load-balancer.html">Use /// Elastic Load Balancing to distribute traffic across the instances in your Auto Scaling /// group</a> in the <i>Amazon EC2 Auto Scaling User Guide</i>. /// </para> /// <note> /// <para> /// You can use this operation to describe target groups that were attached by using <a>AttachLoadBalancerTargetGroups</a>, /// but not for target groups that were attached by using <a>AttachTrafficSources</a>. /// </para> /// </note> /// </summary> /// <param name="request">Container for the necessary parameters to execute the DescribeLoadBalancerTargetGroups service method.</param> /// /// <returns>The response from the DescribeLoadBalancerTargetGroups service method, as returned by AutoScaling.</returns> /// <exception cref="Amazon.AutoScaling.Model.InvalidNextTokenException"> /// The <code>NextToken</code> value is not valid. /// </exception> /// <exception cref="Amazon.AutoScaling.Model.ResourceContentionException"> /// You already have a pending update to an Amazon EC2 Auto Scaling resource (for example, /// an Auto Scaling group, instance, or load balancer). /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/DescribeLoadBalancerTargetGroups">REST API Reference for DescribeLoadBalancerTargetGroups Operation</seealso> DescribeLoadBalancerTargetGroupsResponse DescribeLoadBalancerTargetGroups(DescribeLoadBalancerTargetGroupsRequest request); /// <summary> /// Initiates the asynchronous execution of the DescribeLoadBalancerTargetGroups operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the DescribeLoadBalancerTargetGroups operation on AmazonAutoScalingClient.</param> /// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param> /// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property.</param> /// /// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndDescribeLoadBalancerTargetGroups /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/DescribeLoadBalancerTargetGroups">REST API Reference for DescribeLoadBalancerTargetGroups Operation</seealso> IAsyncResult BeginDescribeLoadBalancerTargetGroups(DescribeLoadBalancerTargetGroupsRequest request, AsyncCallback callback, object state); /// <summary> /// Finishes the asynchronous execution of the DescribeLoadBalancerTargetGroups operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginDescribeLoadBalancerTargetGroups.</param> /// /// <returns>Returns a DescribeLoadBalancerTargetGroupsResult from AutoScaling.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/DescribeLoadBalancerTargetGroups">REST API Reference for DescribeLoadBalancerTargetGroups Operation</seealso> DescribeLoadBalancerTargetGroupsResponse EndDescribeLoadBalancerTargetGroups(IAsyncResult asyncResult); #endregion #region DescribeMetricCollectionTypes /// <summary> /// Describes the available CloudWatch metrics for Amazon EC2 Auto Scaling. /// </summary> /// /// <returns>The response from the DescribeMetricCollectionTypes service method, as returned by AutoScaling.</returns> /// <exception cref="Amazon.AutoScaling.Model.ResourceContentionException"> /// You already have a pending update to an Amazon EC2 Auto Scaling resource (for example, /// an Auto Scaling group, instance, or load balancer). /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/DescribeMetricCollectionTypes">REST API Reference for DescribeMetricCollectionTypes Operation</seealso> DescribeMetricCollectionTypesResponse DescribeMetricCollectionTypes(); /// <summary> /// Describes the available CloudWatch metrics for Amazon EC2 Auto Scaling. /// </summary> /// <param name="request">Container for the necessary parameters to execute the DescribeMetricCollectionTypes service method.</param> /// /// <returns>The response from the DescribeMetricCollectionTypes service method, as returned by AutoScaling.</returns> /// <exception cref="Amazon.AutoScaling.Model.ResourceContentionException"> /// You already have a pending update to an Amazon EC2 Auto Scaling resource (for example, /// an Auto Scaling group, instance, or load balancer). /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/DescribeMetricCollectionTypes">REST API Reference for DescribeMetricCollectionTypes Operation</seealso> DescribeMetricCollectionTypesResponse DescribeMetricCollectionTypes(DescribeMetricCollectionTypesRequest request); /// <summary> /// Initiates the asynchronous execution of the DescribeMetricCollectionTypes operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the DescribeMetricCollectionTypes operation on AmazonAutoScalingClient.</param> /// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param> /// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property.</param> /// /// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndDescribeMetricCollectionTypes /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/DescribeMetricCollectionTypes">REST API Reference for DescribeMetricCollectionTypes Operation</seealso> IAsyncResult BeginDescribeMetricCollectionTypes(DescribeMetricCollectionTypesRequest request, AsyncCallback callback, object state); /// <summary> /// Finishes the asynchronous execution of the DescribeMetricCollectionTypes operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginDescribeMetricCollectionTypes.</param> /// /// <returns>Returns a DescribeMetricCollectionTypesResult from AutoScaling.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/DescribeMetricCollectionTypes">REST API Reference for DescribeMetricCollectionTypes Operation</seealso> DescribeMetricCollectionTypesResponse EndDescribeMetricCollectionTypes(IAsyncResult asyncResult); #endregion #region DescribeNotificationConfigurations /// <summary> /// Gets information about the Amazon SNS notifications that are configured for one or /// more Auto Scaling groups. /// </summary> /// /// <returns>The response from the DescribeNotificationConfigurations service method, as returned by AutoScaling.</returns> /// <exception cref="Amazon.AutoScaling.Model.InvalidNextTokenException"> /// The <code>NextToken</code> value is not valid. /// </exception> /// <exception cref="Amazon.AutoScaling.Model.ResourceContentionException"> /// You already have a pending update to an Amazon EC2 Auto Scaling resource (for example, /// an Auto Scaling group, instance, or load balancer). /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/DescribeNotificationConfigurations">REST API Reference for DescribeNotificationConfigurations Operation</seealso> DescribeNotificationConfigurationsResponse DescribeNotificationConfigurations(); /// <summary> /// Gets information about the Amazon SNS notifications that are configured for one or /// more Auto Scaling groups. /// </summary> /// <param name="request">Container for the necessary parameters to execute the DescribeNotificationConfigurations service method.</param> /// /// <returns>The response from the DescribeNotificationConfigurations service method, as returned by AutoScaling.</returns> /// <exception cref="Amazon.AutoScaling.Model.InvalidNextTokenException"> /// The <code>NextToken</code> value is not valid. /// </exception> /// <exception cref="Amazon.AutoScaling.Model.ResourceContentionException"> /// You already have a pending update to an Amazon EC2 Auto Scaling resource (for example, /// an Auto Scaling group, instance, or load balancer). /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/DescribeNotificationConfigurations">REST API Reference for DescribeNotificationConfigurations Operation</seealso> DescribeNotificationConfigurationsResponse DescribeNotificationConfigurations(DescribeNotificationConfigurationsRequest request); /// <summary> /// Initiates the asynchronous execution of the DescribeNotificationConfigurations operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the DescribeNotificationConfigurations operation on AmazonAutoScalingClient.</param> /// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param> /// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property.</param> /// /// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndDescribeNotificationConfigurations /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/DescribeNotificationConfigurations">REST API Reference for DescribeNotificationConfigurations Operation</seealso> IAsyncResult BeginDescribeNotificationConfigurations(DescribeNotificationConfigurationsRequest request, AsyncCallback callback, object state); /// <summary> /// Finishes the asynchronous execution of the DescribeNotificationConfigurations operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginDescribeNotificationConfigurations.</param> /// /// <returns>Returns a DescribeNotificationConfigurationsResult from AutoScaling.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/DescribeNotificationConfigurations">REST API Reference for DescribeNotificationConfigurations Operation</seealso> DescribeNotificationConfigurationsResponse EndDescribeNotificationConfigurations(IAsyncResult asyncResult); #endregion #region DescribePolicies /// <summary> /// Gets information about the scaling policies in the account and Region. /// </summary> /// /// <returns>The response from the DescribePolicies service method, as returned by AutoScaling.</returns> /// <exception cref="Amazon.AutoScaling.Model.InvalidNextTokenException"> /// The <code>NextToken</code> value is not valid. /// </exception> /// <exception cref="Amazon.AutoScaling.Model.ResourceContentionException"> /// You already have a pending update to an Amazon EC2 Auto Scaling resource (for example, /// an Auto Scaling group, instance, or load balancer). /// </exception> /// <exception cref="Amazon.AutoScaling.Model.ServiceLinkedRoleFailureException"> /// The service-linked role is not yet ready for use. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/DescribePolicies">REST API Reference for DescribePolicies Operation</seealso> DescribePoliciesResponse DescribePolicies(); /// <summary> /// Gets information about the scaling policies in the account and Region. /// </summary> /// <param name="request">Container for the necessary parameters to execute the DescribePolicies service method.</param> /// /// <returns>The response from the DescribePolicies service method, as returned by AutoScaling.</returns> /// <exception cref="Amazon.AutoScaling.Model.InvalidNextTokenException"> /// The <code>NextToken</code> value is not valid. /// </exception> /// <exception cref="Amazon.AutoScaling.Model.ResourceContentionException"> /// You already have a pending update to an Amazon EC2 Auto Scaling resource (for example, /// an Auto Scaling group, instance, or load balancer). /// </exception> /// <exception cref="Amazon.AutoScaling.Model.ServiceLinkedRoleFailureException"> /// The service-linked role is not yet ready for use. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/DescribePolicies">REST API Reference for DescribePolicies Operation</seealso> DescribePoliciesResponse DescribePolicies(DescribePoliciesRequest request); /// <summary> /// Initiates the asynchronous execution of the DescribePolicies operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the DescribePolicies operation on AmazonAutoScalingClient.</param> /// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param> /// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property.</param> /// /// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndDescribePolicies /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/DescribePolicies">REST API Reference for DescribePolicies Operation</seealso> IAsyncResult BeginDescribePolicies(DescribePoliciesRequest request, AsyncCallback callback, object state); /// <summary> /// Finishes the asynchronous execution of the DescribePolicies operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginDescribePolicies.</param> /// /// <returns>Returns a DescribePoliciesResult from AutoScaling.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/DescribePolicies">REST API Reference for DescribePolicies Operation</seealso> DescribePoliciesResponse EndDescribePolicies(IAsyncResult asyncResult); #endregion #region DescribeScalingActivities /// <summary> /// Gets information about the scaling activities in the account and Region. /// /// /// <para> /// When scaling events occur, you see a record of the scaling activity in the scaling /// activities. For more information, see <a href="https://docs.aws.amazon.com/autoscaling/ec2/userguide/as-verify-scaling-activity.html">Verifying /// a scaling activity for an Auto Scaling group</a> in the <i>Amazon EC2 Auto Scaling /// User Guide</i>. /// </para> /// /// <para> /// If the scaling event succeeds, the value of the <code>StatusCode</code> element in /// the response is <code>Successful</code>. If an attempt to launch instances failed, /// the <code>StatusCode</code> value is <code>Failed</code> or <code>Cancelled</code> /// and the <code>StatusMessage</code> element in the response indicates the cause of /// the failure. For help interpreting the <code>StatusMessage</code>, see <a href="https://docs.aws.amazon.com/autoscaling/ec2/userguide/CHAP_Troubleshooting.html">Troubleshooting /// Amazon EC2 Auto Scaling</a> in the <i>Amazon EC2 Auto Scaling User Guide</i>. /// </para> /// </summary> /// /// <returns>The response from the DescribeScalingActivities service method, as returned by AutoScaling.</returns> /// <exception cref="Amazon.AutoScaling.Model.InvalidNextTokenException"> /// The <code>NextToken</code> value is not valid. /// </exception> /// <exception cref="Amazon.AutoScaling.Model.ResourceContentionException"> /// You already have a pending update to an Amazon EC2 Auto Scaling resource (for example, /// an Auto Scaling group, instance, or load balancer). /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/DescribeScalingActivities">REST API Reference for DescribeScalingActivities Operation</seealso> DescribeScalingActivitiesResponse DescribeScalingActivities(); /// <summary> /// Gets information about the scaling activities in the account and Region. /// /// /// <para> /// When scaling events occur, you see a record of the scaling activity in the scaling /// activities. For more information, see <a href="https://docs.aws.amazon.com/autoscaling/ec2/userguide/as-verify-scaling-activity.html">Verifying /// a scaling activity for an Auto Scaling group</a> in the <i>Amazon EC2 Auto Scaling /// User Guide</i>. /// </para> /// /// <para> /// If the scaling event succeeds, the value of the <code>StatusCode</code> element in /// the response is <code>Successful</code>. If an attempt to launch instances failed, /// the <code>StatusCode</code> value is <code>Failed</code> or <code>Cancelled</code> /// and the <code>StatusMessage</code> element in the response indicates the cause of /// the failure. For help interpreting the <code>StatusMessage</code>, see <a href="https://docs.aws.amazon.com/autoscaling/ec2/userguide/CHAP_Troubleshooting.html">Troubleshooting /// Amazon EC2 Auto Scaling</a> in the <i>Amazon EC2 Auto Scaling User Guide</i>. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the DescribeScalingActivities service method.</param> /// /// <returns>The response from the DescribeScalingActivities service method, as returned by AutoScaling.</returns> /// <exception cref="Amazon.AutoScaling.Model.InvalidNextTokenException"> /// The <code>NextToken</code> value is not valid. /// </exception> /// <exception cref="Amazon.AutoScaling.Model.ResourceContentionException"> /// You already have a pending update to an Amazon EC2 Auto Scaling resource (for example, /// an Auto Scaling group, instance, or load balancer). /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/DescribeScalingActivities">REST API Reference for DescribeScalingActivities Operation</seealso> DescribeScalingActivitiesResponse DescribeScalingActivities(DescribeScalingActivitiesRequest request); /// <summary> /// Initiates the asynchronous execution of the DescribeScalingActivities operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the DescribeScalingActivities operation on AmazonAutoScalingClient.</param> /// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param> /// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property.</param> /// /// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndDescribeScalingActivities /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/DescribeScalingActivities">REST API Reference for DescribeScalingActivities Operation</seealso> IAsyncResult BeginDescribeScalingActivities(DescribeScalingActivitiesRequest request, AsyncCallback callback, object state); /// <summary> /// Finishes the asynchronous execution of the DescribeScalingActivities operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginDescribeScalingActivities.</param> /// /// <returns>Returns a DescribeScalingActivitiesResult from AutoScaling.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/DescribeScalingActivities">REST API Reference for DescribeScalingActivities Operation</seealso> DescribeScalingActivitiesResponse EndDescribeScalingActivities(IAsyncResult asyncResult); #endregion #region DescribeScalingProcessTypes /// <summary> /// Describes the scaling process types for use with the <a>ResumeProcesses</a> and <a>SuspendProcesses</a> /// APIs. /// </summary> /// /// <returns>The response from the DescribeScalingProcessTypes service method, as returned by AutoScaling.</returns> /// <exception cref="Amazon.AutoScaling.Model.ResourceContentionException"> /// You already have a pending update to an Amazon EC2 Auto Scaling resource (for example, /// an Auto Scaling group, instance, or load balancer). /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/DescribeScalingProcessTypes">REST API Reference for DescribeScalingProcessTypes Operation</seealso> DescribeScalingProcessTypesResponse DescribeScalingProcessTypes(); /// <summary> /// Describes the scaling process types for use with the <a>ResumeProcesses</a> and <a>SuspendProcesses</a> /// APIs. /// </summary> /// <param name="request">Container for the necessary parameters to execute the DescribeScalingProcessTypes service method.</param> /// /// <returns>The response from the DescribeScalingProcessTypes service method, as returned by AutoScaling.</returns> /// <exception cref="Amazon.AutoScaling.Model.ResourceContentionException"> /// You already have a pending update to an Amazon EC2 Auto Scaling resource (for example, /// an Auto Scaling group, instance, or load balancer). /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/DescribeScalingProcessTypes">REST API Reference for DescribeScalingProcessTypes Operation</seealso> DescribeScalingProcessTypesResponse DescribeScalingProcessTypes(DescribeScalingProcessTypesRequest request); /// <summary> /// Initiates the asynchronous execution of the DescribeScalingProcessTypes operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the DescribeScalingProcessTypes operation on AmazonAutoScalingClient.</param> /// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param> /// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property.</param> /// /// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndDescribeScalingProcessTypes /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/DescribeScalingProcessTypes">REST API Reference for DescribeScalingProcessTypes Operation</seealso> IAsyncResult BeginDescribeScalingProcessTypes(DescribeScalingProcessTypesRequest request, AsyncCallback callback, object state); /// <summary> /// Finishes the asynchronous execution of the DescribeScalingProcessTypes operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginDescribeScalingProcessTypes.</param> /// /// <returns>Returns a DescribeScalingProcessTypesResult from AutoScaling.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/DescribeScalingProcessTypes">REST API Reference for DescribeScalingProcessTypes Operation</seealso> DescribeScalingProcessTypesResponse EndDescribeScalingProcessTypes(IAsyncResult asyncResult); #endregion #region DescribeScheduledActions /// <summary> /// Gets information about the scheduled actions that haven't run or that have not reached /// their end time. /// /// /// <para> /// To describe the scaling activities for scheduled actions that have already run, call /// the <a>DescribeScalingActivities</a> API. /// </para> /// </summary> /// /// <returns>The response from the DescribeScheduledActions service method, as returned by AutoScaling.</returns> /// <exception cref="Amazon.AutoScaling.Model.InvalidNextTokenException"> /// The <code>NextToken</code> value is not valid. /// </exception> /// <exception cref="Amazon.AutoScaling.Model.ResourceContentionException"> /// You already have a pending update to an Amazon EC2 Auto Scaling resource (for example, /// an Auto Scaling group, instance, or load balancer). /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/DescribeScheduledActions">REST API Reference for DescribeScheduledActions Operation</seealso> DescribeScheduledActionsResponse DescribeScheduledActions(); /// <summary> /// Gets information about the scheduled actions that haven't run or that have not reached /// their end time. /// /// /// <para> /// To describe the scaling activities for scheduled actions that have already run, call /// the <a>DescribeScalingActivities</a> API. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the DescribeScheduledActions service method.</param> /// /// <returns>The response from the DescribeScheduledActions service method, as returned by AutoScaling.</returns> /// <exception cref="Amazon.AutoScaling.Model.InvalidNextTokenException"> /// The <code>NextToken</code> value is not valid. /// </exception> /// <exception cref="Amazon.AutoScaling.Model.ResourceContentionException"> /// You already have a pending update to an Amazon EC2 Auto Scaling resource (for example, /// an Auto Scaling group, instance, or load balancer). /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/DescribeScheduledActions">REST API Reference for DescribeScheduledActions Operation</seealso> DescribeScheduledActionsResponse DescribeScheduledActions(DescribeScheduledActionsRequest request); /// <summary> /// Initiates the asynchronous execution of the DescribeScheduledActions operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the DescribeScheduledActions operation on AmazonAutoScalingClient.</param> /// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param> /// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property.</param> /// /// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndDescribeScheduledActions /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/DescribeScheduledActions">REST API Reference for DescribeScheduledActions Operation</seealso> IAsyncResult BeginDescribeScheduledActions(DescribeScheduledActionsRequest request, AsyncCallback callback, object state); /// <summary> /// Finishes the asynchronous execution of the DescribeScheduledActions operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginDescribeScheduledActions.</param> /// /// <returns>Returns a DescribeScheduledActionsResult from AutoScaling.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/DescribeScheduledActions">REST API Reference for DescribeScheduledActions Operation</seealso> DescribeScheduledActionsResponse EndDescribeScheduledActions(IAsyncResult asyncResult); #endregion #region DescribeTags /// <summary> /// Describes the specified tags. /// /// /// <para> /// You can use filters to limit the results. For example, you can query for the tags /// for a specific Auto Scaling group. You can specify multiple values for a filter. A /// tag must match at least one of the specified values for it to be included in the results. /// </para> /// /// <para> /// You can also specify multiple filters. The result includes information for a particular /// tag only if it matches all the filters. If there's no match, no special message is /// returned. /// </para> /// /// <para> /// For more information, see <a href="https://docs.aws.amazon.com/autoscaling/ec2/userguide/ec2-auto-scaling-tagging.html">Tag /// Auto Scaling groups and instances</a> in the <i>Amazon EC2 Auto Scaling User Guide</i>. /// </para> /// </summary> /// /// <returns>The response from the DescribeTags service method, as returned by AutoScaling.</returns> /// <exception cref="Amazon.AutoScaling.Model.InvalidNextTokenException"> /// The <code>NextToken</code> value is not valid. /// </exception> /// <exception cref="Amazon.AutoScaling.Model.ResourceContentionException"> /// You already have a pending update to an Amazon EC2 Auto Scaling resource (for example, /// an Auto Scaling group, instance, or load balancer). /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/DescribeTags">REST API Reference for DescribeTags Operation</seealso> DescribeTagsResponse DescribeTags(); /// <summary> /// Describes the specified tags. /// /// /// <para> /// You can use filters to limit the results. For example, you can query for the tags /// for a specific Auto Scaling group. You can specify multiple values for a filter. A /// tag must match at least one of the specified values for it to be included in the results. /// </para> /// /// <para> /// You can also specify multiple filters. The result includes information for a particular /// tag only if it matches all the filters. If there's no match, no special message is /// returned. /// </para> /// /// <para> /// For more information, see <a href="https://docs.aws.amazon.com/autoscaling/ec2/userguide/ec2-auto-scaling-tagging.html">Tag /// Auto Scaling groups and instances</a> in the <i>Amazon EC2 Auto Scaling User Guide</i>. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the DescribeTags service method.</param> /// /// <returns>The response from the DescribeTags service method, as returned by AutoScaling.</returns> /// <exception cref="Amazon.AutoScaling.Model.InvalidNextTokenException"> /// The <code>NextToken</code> value is not valid. /// </exception> /// <exception cref="Amazon.AutoScaling.Model.ResourceContentionException"> /// You already have a pending update to an Amazon EC2 Auto Scaling resource (for example, /// an Auto Scaling group, instance, or load balancer). /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/DescribeTags">REST API Reference for DescribeTags Operation</seealso> DescribeTagsResponse DescribeTags(DescribeTagsRequest request); /// <summary> /// Initiates the asynchronous execution of the DescribeTags operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the DescribeTags operation on AmazonAutoScalingClient.</param> /// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param> /// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property.</param> /// /// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndDescribeTags /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/DescribeTags">REST API Reference for DescribeTags Operation</seealso> IAsyncResult BeginDescribeTags(DescribeTagsRequest request, AsyncCallback callback, object state); /// <summary> /// Finishes the asynchronous execution of the DescribeTags operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginDescribeTags.</param> /// /// <returns>Returns a DescribeTagsResult from AutoScaling.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/DescribeTags">REST API Reference for DescribeTags Operation</seealso> DescribeTagsResponse EndDescribeTags(IAsyncResult asyncResult); #endregion #region DescribeTerminationPolicyTypes /// <summary> /// Describes the termination policies supported by Amazon EC2 Auto Scaling. /// /// /// <para> /// 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> /// </summary> /// /// <returns>The response from the DescribeTerminationPolicyTypes service method, as returned by AutoScaling.</returns> /// <exception cref="Amazon.AutoScaling.Model.ResourceContentionException"> /// You already have a pending update to an Amazon EC2 Auto Scaling resource (for example, /// an Auto Scaling group, instance, or load balancer). /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/DescribeTerminationPolicyTypes">REST API Reference for DescribeTerminationPolicyTypes Operation</seealso> DescribeTerminationPolicyTypesResponse DescribeTerminationPolicyTypes(); /// <summary> /// Describes the termination policies supported by Amazon EC2 Auto Scaling. /// /// /// <para> /// 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> /// </summary> /// <param name="request">Container for the necessary parameters to execute the DescribeTerminationPolicyTypes service method.</param> /// /// <returns>The response from the DescribeTerminationPolicyTypes service method, as returned by AutoScaling.</returns> /// <exception cref="Amazon.AutoScaling.Model.ResourceContentionException"> /// You already have a pending update to an Amazon EC2 Auto Scaling resource (for example, /// an Auto Scaling group, instance, or load balancer). /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/DescribeTerminationPolicyTypes">REST API Reference for DescribeTerminationPolicyTypes Operation</seealso> DescribeTerminationPolicyTypesResponse DescribeTerminationPolicyTypes(DescribeTerminationPolicyTypesRequest request); /// <summary> /// Initiates the asynchronous execution of the DescribeTerminationPolicyTypes operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the DescribeTerminationPolicyTypes operation on AmazonAutoScalingClient.</param> /// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param> /// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property.</param> /// /// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndDescribeTerminationPolicyTypes /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/DescribeTerminationPolicyTypes">REST API Reference for DescribeTerminationPolicyTypes Operation</seealso> IAsyncResult BeginDescribeTerminationPolicyTypes(DescribeTerminationPolicyTypesRequest request, AsyncCallback callback, object state); /// <summary> /// Finishes the asynchronous execution of the DescribeTerminationPolicyTypes operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginDescribeTerminationPolicyTypes.</param> /// /// <returns>Returns a DescribeTerminationPolicyTypesResult from AutoScaling.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/DescribeTerminationPolicyTypes">REST API Reference for DescribeTerminationPolicyTypes Operation</seealso> DescribeTerminationPolicyTypesResponse EndDescribeTerminationPolicyTypes(IAsyncResult asyncResult); #endregion #region DescribeTrafficSources /// <summary> /// Gets information about the traffic sources for the specified Auto Scaling group. /// /// /// <para> /// You can optionally provide a traffic source type. If you provide a traffic source /// type, then the results only include that traffic source type. /// </para> /// /// <para> /// If you do not provide a traffic source type, then the results include all the traffic /// sources for the specified Auto Scaling group. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the DescribeTrafficSources service method.</param> /// /// <returns>The response from the DescribeTrafficSources service method, as returned by AutoScaling.</returns> /// <exception cref="Amazon.AutoScaling.Model.InvalidNextTokenException"> /// The <code>NextToken</code> value is not valid. /// </exception> /// <exception cref="Amazon.AutoScaling.Model.ResourceContentionException"> /// You already have a pending update to an Amazon EC2 Auto Scaling resource (for example, /// an Auto Scaling group, instance, or load balancer). /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/DescribeTrafficSources">REST API Reference for DescribeTrafficSources Operation</seealso> DescribeTrafficSourcesResponse DescribeTrafficSources(DescribeTrafficSourcesRequest request); /// <summary> /// Initiates the asynchronous execution of the DescribeTrafficSources operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the DescribeTrafficSources operation on AmazonAutoScalingClient.</param> /// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param> /// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property.</param> /// /// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndDescribeTrafficSources /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/DescribeTrafficSources">REST API Reference for DescribeTrafficSources Operation</seealso> IAsyncResult BeginDescribeTrafficSources(DescribeTrafficSourcesRequest request, AsyncCallback callback, object state); /// <summary> /// Finishes the asynchronous execution of the DescribeTrafficSources operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginDescribeTrafficSources.</param> /// /// <returns>Returns a DescribeTrafficSourcesResult from AutoScaling.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/DescribeTrafficSources">REST API Reference for DescribeTrafficSources Operation</seealso> DescribeTrafficSourcesResponse EndDescribeTrafficSources(IAsyncResult asyncResult); #endregion #region DescribeWarmPool /// <summary> /// Gets information about a warm pool and its instances. /// /// /// <para> /// For more information, 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> /// </summary> /// <param name="request">Container for the necessary parameters to execute the DescribeWarmPool service method.</param> /// /// <returns>The response from the DescribeWarmPool service method, as returned by AutoScaling.</returns> /// <exception cref="Amazon.AutoScaling.Model.InvalidNextTokenException"> /// The <code>NextToken</code> value is not valid. /// </exception> /// <exception cref="Amazon.AutoScaling.Model.LimitExceededException"> /// You have already reached a limit for your Amazon EC2 Auto Scaling resources (for example, /// Auto Scaling groups, launch configurations, or lifecycle hooks). For more information, /// see <a href="https://docs.aws.amazon.com/autoscaling/ec2/APIReference/API_DescribeAccountLimits.html">DescribeAccountLimits</a> /// in the <i>Amazon EC2 Auto Scaling API Reference</i>. /// </exception> /// <exception cref="Amazon.AutoScaling.Model.ResourceContentionException"> /// You already have a pending update to an Amazon EC2 Auto Scaling resource (for example, /// an Auto Scaling group, instance, or load balancer). /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/DescribeWarmPool">REST API Reference for DescribeWarmPool Operation</seealso> DescribeWarmPoolResponse DescribeWarmPool(DescribeWarmPoolRequest request); /// <summary> /// Initiates the asynchronous execution of the DescribeWarmPool operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the DescribeWarmPool operation on AmazonAutoScalingClient.</param> /// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param> /// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property.</param> /// /// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndDescribeWarmPool /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/DescribeWarmPool">REST API Reference for DescribeWarmPool Operation</seealso> IAsyncResult BeginDescribeWarmPool(DescribeWarmPoolRequest request, AsyncCallback callback, object state); /// <summary> /// Finishes the asynchronous execution of the DescribeWarmPool operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginDescribeWarmPool.</param> /// /// <returns>Returns a DescribeWarmPoolResult from AutoScaling.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/DescribeWarmPool">REST API Reference for DescribeWarmPool Operation</seealso> DescribeWarmPoolResponse EndDescribeWarmPool(IAsyncResult asyncResult); #endregion #region DetachInstances /// <summary> /// Removes one or more instances from the specified Auto Scaling group. /// /// /// <para> /// After the instances are detached, you can manage them independent of the Auto Scaling /// group. /// </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 detached. /// </para> /// /// <para> /// If there is a Classic Load Balancer attached to the Auto Scaling group, the instances /// are deregistered from the load balancer. If there are target groups attached to the /// Auto Scaling group, the instances are deregistered from the target groups. /// </para> /// /// <para> /// For more information, see <a href="https://docs.aws.amazon.com/autoscaling/ec2/userguide/detach-instance-asg.html">Detach /// EC2 instances from your Auto Scaling group</a> in the <i>Amazon EC2 Auto Scaling User /// Guide</i>. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the DetachInstances service method.</param> /// /// <returns>The response from the DetachInstances service method, as returned by AutoScaling.</returns> /// <exception cref="Amazon.AutoScaling.Model.ResourceContentionException"> /// You already have a pending update to an Amazon EC2 Auto Scaling resource (for example, /// an Auto Scaling group, instance, or load balancer). /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/DetachInstances">REST API Reference for DetachInstances Operation</seealso> DetachInstancesResponse DetachInstances(DetachInstancesRequest request); /// <summary> /// Initiates the asynchronous execution of the DetachInstances operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the DetachInstances operation on AmazonAutoScalingClient.</param> /// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param> /// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property.</param> /// /// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndDetachInstances /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/DetachInstances">REST API Reference for DetachInstances Operation</seealso> IAsyncResult BeginDetachInstances(DetachInstancesRequest request, AsyncCallback callback, object state); /// <summary> /// Finishes the asynchronous execution of the DetachInstances operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginDetachInstances.</param> /// /// <returns>Returns a DetachInstancesResult from AutoScaling.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/DetachInstances">REST API Reference for DetachInstances Operation</seealso> DetachInstancesResponse EndDetachInstances(IAsyncResult asyncResult); #endregion #region DetachLoadBalancers /// <summary> /// <note> /// <para> /// This API operation is superseded by <a>DetachTrafficSources</a>, which can detach /// multiple traffic sources types. We recommend using <code>DetachTrafficSources</code> /// to simplify how you manage traffic sources. However, we continue to support <code>DetachLoadBalancers</code>. /// You can use both the original <code>DetachLoadBalancers</code> API operation and <code>DetachTrafficSources</code> /// on the same Auto Scaling group. /// </para> /// </note> /// <para> /// Detaches one or more Classic Load Balancers from the specified Auto Scaling group. /// </para> /// /// <para> /// This operation detaches only Classic Load Balancers. If you have Application Load /// Balancers, Network Load Balancers, or Gateway Load Balancers, use the <a>DetachLoadBalancerTargetGroups</a> /// API instead. /// </para> /// /// <para> /// When you detach a load balancer, it enters the <code>Removing</code> state while deregistering /// the instances in the group. When all instances are deregistered, then you can no longer /// describe the load balancer using the <a>DescribeLoadBalancers</a> API call. The instances /// remain running. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the DetachLoadBalancers service method.</param> /// /// <returns>The response from the DetachLoadBalancers service method, as returned by AutoScaling.</returns> /// <exception cref="Amazon.AutoScaling.Model.ResourceContentionException"> /// You already have a pending update to an Amazon EC2 Auto Scaling resource (for example, /// an Auto Scaling group, instance, or load balancer). /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/DetachLoadBalancers">REST API Reference for DetachLoadBalancers Operation</seealso> DetachLoadBalancersResponse DetachLoadBalancers(DetachLoadBalancersRequest request); /// <summary> /// Initiates the asynchronous execution of the DetachLoadBalancers operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the DetachLoadBalancers operation on AmazonAutoScalingClient.</param> /// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param> /// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property.</param> /// /// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndDetachLoadBalancers /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/DetachLoadBalancers">REST API Reference for DetachLoadBalancers Operation</seealso> IAsyncResult BeginDetachLoadBalancers(DetachLoadBalancersRequest request, AsyncCallback callback, object state); /// <summary> /// Finishes the asynchronous execution of the DetachLoadBalancers operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginDetachLoadBalancers.</param> /// /// <returns>Returns a DetachLoadBalancersResult from AutoScaling.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/DetachLoadBalancers">REST API Reference for DetachLoadBalancers Operation</seealso> DetachLoadBalancersResponse EndDetachLoadBalancers(IAsyncResult asyncResult); #endregion #region DetachLoadBalancerTargetGroups /// <summary> /// <note> /// <para> /// This API operation is superseded by <a>DetachTrafficSources</a>, which can detach /// multiple traffic sources types. We recommend using <code>DetachTrafficSources</code> /// to simplify how you manage traffic sources. However, we continue to support <code>DetachLoadBalancerTargetGroups</code>. /// You can use both the original <code>DetachLoadBalancerTargetGroups</code> API operation /// and <code>DetachTrafficSources</code> on the same Auto Scaling group. /// </para> /// </note> /// <para> /// Detaches one or more target groups from the specified Auto Scaling group. /// </para> /// /// <para> /// When you detach a target group, it enters the <code>Removing</code> state while deregistering /// the instances in the group. When all instances are deregistered, then you can no longer /// describe the target group using the <a>DescribeLoadBalancerTargetGroups</a> API call. /// The instances remain running. /// </para> /// <note> /// <para> /// You can use this operation to detach target groups that were attached by using <a>AttachLoadBalancerTargetGroups</a>, /// but not for target groups that were attached by using <a>AttachTrafficSources</a>. /// </para> /// </note> /// </summary> /// <param name="request">Container for the necessary parameters to execute the DetachLoadBalancerTargetGroups service method.</param> /// /// <returns>The response from the DetachLoadBalancerTargetGroups service method, as returned by AutoScaling.</returns> /// <exception cref="Amazon.AutoScaling.Model.ResourceContentionException"> /// You already have a pending update to an Amazon EC2 Auto Scaling resource (for example, /// an Auto Scaling group, instance, or load balancer). /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/DetachLoadBalancerTargetGroups">REST API Reference for DetachLoadBalancerTargetGroups Operation</seealso> DetachLoadBalancerTargetGroupsResponse DetachLoadBalancerTargetGroups(DetachLoadBalancerTargetGroupsRequest request); /// <summary> /// Initiates the asynchronous execution of the DetachLoadBalancerTargetGroups operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the DetachLoadBalancerTargetGroups operation on AmazonAutoScalingClient.</param> /// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param> /// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property.</param> /// /// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndDetachLoadBalancerTargetGroups /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/DetachLoadBalancerTargetGroups">REST API Reference for DetachLoadBalancerTargetGroups Operation</seealso> IAsyncResult BeginDetachLoadBalancerTargetGroups(DetachLoadBalancerTargetGroupsRequest request, AsyncCallback callback, object state); /// <summary> /// Finishes the asynchronous execution of the DetachLoadBalancerTargetGroups operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginDetachLoadBalancerTargetGroups.</param> /// /// <returns>Returns a DetachLoadBalancerTargetGroupsResult from AutoScaling.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/DetachLoadBalancerTargetGroups">REST API Reference for DetachLoadBalancerTargetGroups Operation</seealso> DetachLoadBalancerTargetGroupsResponse EndDetachLoadBalancerTargetGroups(IAsyncResult asyncResult); #endregion #region DetachTrafficSources /// <summary> /// Detaches one or more traffic sources from the specified Auto Scaling group. /// /// /// <para> /// When you detach a taffic, it enters the <code>Removing</code> state while deregistering /// the instances in the group. When all instances are deregistered, then you can no longer /// describe the traffic source using the <a>DescribeTrafficSources</a> API call. The /// instances continue to run. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the DetachTrafficSources service method.</param> /// /// <returns>The response from the DetachTrafficSources service method, as returned by AutoScaling.</returns> /// <exception cref="Amazon.AutoScaling.Model.ResourceContentionException"> /// You already have a pending update to an Amazon EC2 Auto Scaling resource (for example, /// an Auto Scaling group, instance, or load balancer). /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/DetachTrafficSources">REST API Reference for DetachTrafficSources Operation</seealso> DetachTrafficSourcesResponse DetachTrafficSources(DetachTrafficSourcesRequest request); /// <summary> /// Initiates the asynchronous execution of the DetachTrafficSources operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the DetachTrafficSources operation on AmazonAutoScalingClient.</param> /// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param> /// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property.</param> /// /// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndDetachTrafficSources /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/DetachTrafficSources">REST API Reference for DetachTrafficSources Operation</seealso> IAsyncResult BeginDetachTrafficSources(DetachTrafficSourcesRequest request, AsyncCallback callback, object state); /// <summary> /// Finishes the asynchronous execution of the DetachTrafficSources operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginDetachTrafficSources.</param> /// /// <returns>Returns a DetachTrafficSourcesResult from AutoScaling.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/DetachTrafficSources">REST API Reference for DetachTrafficSources Operation</seealso> DetachTrafficSourcesResponse EndDetachTrafficSources(IAsyncResult asyncResult); #endregion #region DisableMetricsCollection /// <summary> /// Disables group metrics collection for the specified Auto Scaling group. /// </summary> /// <param name="request">Container for the necessary parameters to execute the DisableMetricsCollection service method.</param> /// /// <returns>The response from the DisableMetricsCollection service method, as returned by AutoScaling.</returns> /// <exception cref="Amazon.AutoScaling.Model.ResourceContentionException"> /// You already have a pending update to an Amazon EC2 Auto Scaling resource (for example, /// an Auto Scaling group, instance, or load balancer). /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/DisableMetricsCollection">REST API Reference for DisableMetricsCollection Operation</seealso> DisableMetricsCollectionResponse DisableMetricsCollection(DisableMetricsCollectionRequest request); /// <summary> /// Initiates the asynchronous execution of the DisableMetricsCollection operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the DisableMetricsCollection operation on AmazonAutoScalingClient.</param> /// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param> /// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property.</param> /// /// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndDisableMetricsCollection /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/DisableMetricsCollection">REST API Reference for DisableMetricsCollection Operation</seealso> IAsyncResult BeginDisableMetricsCollection(DisableMetricsCollectionRequest request, AsyncCallback callback, object state); /// <summary> /// Finishes the asynchronous execution of the DisableMetricsCollection operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginDisableMetricsCollection.</param> /// /// <returns>Returns a DisableMetricsCollectionResult from AutoScaling.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/DisableMetricsCollection">REST API Reference for DisableMetricsCollection Operation</seealso> DisableMetricsCollectionResponse EndDisableMetricsCollection(IAsyncResult asyncResult); #endregion #region EnableMetricsCollection /// <summary> /// Enables group metrics collection for the specified Auto Scaling group. /// /// /// <para> /// You can use these metrics to track changes in an Auto Scaling group and to set alarms /// on threshold values. You can view group metrics using the Amazon EC2 Auto Scaling /// console or the CloudWatch console. For more information, see <a href="https://docs.aws.amazon.com/autoscaling/ec2/userguide/ec2-auto-scaling-cloudwatch-monitoring.html">Monitor /// CloudWatch metrics for your Auto Scaling groups and instances</a> in the <i>Amazon /// EC2 Auto Scaling User Guide</i>. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the EnableMetricsCollection service method.</param> /// /// <returns>The response from the EnableMetricsCollection service method, as returned by AutoScaling.</returns> /// <exception cref="Amazon.AutoScaling.Model.ResourceContentionException"> /// You already have a pending update to an Amazon EC2 Auto Scaling resource (for example, /// an Auto Scaling group, instance, or load balancer). /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/EnableMetricsCollection">REST API Reference for EnableMetricsCollection Operation</seealso> EnableMetricsCollectionResponse EnableMetricsCollection(EnableMetricsCollectionRequest request); /// <summary> /// Initiates the asynchronous execution of the EnableMetricsCollection operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the EnableMetricsCollection operation on AmazonAutoScalingClient.</param> /// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param> /// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property.</param> /// /// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndEnableMetricsCollection /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/EnableMetricsCollection">REST API Reference for EnableMetricsCollection Operation</seealso> IAsyncResult BeginEnableMetricsCollection(EnableMetricsCollectionRequest request, AsyncCallback callback, object state); /// <summary> /// Finishes the asynchronous execution of the EnableMetricsCollection operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginEnableMetricsCollection.</param> /// /// <returns>Returns a EnableMetricsCollectionResult from AutoScaling.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/EnableMetricsCollection">REST API Reference for EnableMetricsCollection Operation</seealso> EnableMetricsCollectionResponse EndEnableMetricsCollection(IAsyncResult asyncResult); #endregion #region EnterStandby /// <summary> /// Moves the specified instances into the standby state. /// /// /// <para> /// If you choose to decrement the desired capacity of the Auto Scaling group, the instances /// can enter standby as long as the desired capacity of the Auto Scaling group after /// the instances are placed into standby is equal to or greater than the minimum capacity /// of the group. /// </para> /// /// <para> /// If you choose not to decrement the desired capacity of the Auto Scaling group, the /// Auto Scaling group launches new instances to replace the instances on standby. /// </para> /// /// <para> /// For more information, see <a href="https://docs.aws.amazon.com/autoscaling/ec2/userguide/as-enter-exit-standby.html">Temporarily /// removing instances from your Auto Scaling group</a> in the <i>Amazon EC2 Auto Scaling /// User Guide</i>. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the EnterStandby service method.</param> /// /// <returns>The response from the EnterStandby service method, as returned by AutoScaling.</returns> /// <exception cref="Amazon.AutoScaling.Model.ResourceContentionException"> /// You already have a pending update to an Amazon EC2 Auto Scaling resource (for example, /// an Auto Scaling group, instance, or load balancer). /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/EnterStandby">REST API Reference for EnterStandby Operation</seealso> EnterStandbyResponse EnterStandby(EnterStandbyRequest request); /// <summary> /// Initiates the asynchronous execution of the EnterStandby operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the EnterStandby operation on AmazonAutoScalingClient.</param> /// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param> /// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property.</param> /// /// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndEnterStandby /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/EnterStandby">REST API Reference for EnterStandby Operation</seealso> IAsyncResult BeginEnterStandby(EnterStandbyRequest request, AsyncCallback callback, object state); /// <summary> /// Finishes the asynchronous execution of the EnterStandby operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginEnterStandby.</param> /// /// <returns>Returns a EnterStandbyResult from AutoScaling.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/EnterStandby">REST API Reference for EnterStandby Operation</seealso> EnterStandbyResponse EndEnterStandby(IAsyncResult asyncResult); #endregion #region ExecutePolicy /// <summary> /// Executes the specified policy. This can be useful for testing the design of your scaling /// policy. /// </summary> /// <param name="request">Container for the necessary parameters to execute the ExecutePolicy service method.</param> /// /// <returns>The response from the ExecutePolicy service method, as returned by AutoScaling.</returns> /// <exception cref="Amazon.AutoScaling.Model.ResourceContentionException"> /// You already have a pending update to an Amazon EC2 Auto Scaling resource (for example, /// an Auto Scaling group, instance, or load balancer). /// </exception> /// <exception cref="Amazon.AutoScaling.Model.ScalingActivityInProgressException"> /// The operation can't be performed because there are scaling activities in progress. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/ExecutePolicy">REST API Reference for ExecutePolicy Operation</seealso> ExecutePolicyResponse ExecutePolicy(ExecutePolicyRequest request); /// <summary> /// Initiates the asynchronous execution of the ExecutePolicy operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the ExecutePolicy operation on AmazonAutoScalingClient.</param> /// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param> /// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property.</param> /// /// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndExecutePolicy /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/ExecutePolicy">REST API Reference for ExecutePolicy Operation</seealso> IAsyncResult BeginExecutePolicy(ExecutePolicyRequest request, AsyncCallback callback, object state); /// <summary> /// Finishes the asynchronous execution of the ExecutePolicy operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginExecutePolicy.</param> /// /// <returns>Returns a ExecutePolicyResult from AutoScaling.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/ExecutePolicy">REST API Reference for ExecutePolicy Operation</seealso> ExecutePolicyResponse EndExecutePolicy(IAsyncResult asyncResult); #endregion #region ExitStandby /// <summary> /// Moves the specified instances out of the standby state. /// /// /// <para> /// After you put the instances back in service, the desired capacity is incremented. /// </para> /// /// <para> /// For more information, see <a href="https://docs.aws.amazon.com/autoscaling/ec2/userguide/as-enter-exit-standby.html">Temporarily /// removing instances from your Auto Scaling group</a> in the <i>Amazon EC2 Auto Scaling /// User Guide</i>. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the ExitStandby service method.</param> /// /// <returns>The response from the ExitStandby service method, as returned by AutoScaling.</returns> /// <exception cref="Amazon.AutoScaling.Model.ResourceContentionException"> /// You already have a pending update to an Amazon EC2 Auto Scaling resource (for example, /// an Auto Scaling group, instance, or load balancer). /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/ExitStandby">REST API Reference for ExitStandby Operation</seealso> ExitStandbyResponse ExitStandby(ExitStandbyRequest request); /// <summary> /// Initiates the asynchronous execution of the ExitStandby operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the ExitStandby operation on AmazonAutoScalingClient.</param> /// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param> /// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property.</param> /// /// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndExitStandby /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/ExitStandby">REST API Reference for ExitStandby Operation</seealso> IAsyncResult BeginExitStandby(ExitStandbyRequest request, AsyncCallback callback, object state); /// <summary> /// Finishes the asynchronous execution of the ExitStandby operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginExitStandby.</param> /// /// <returns>Returns a ExitStandbyResult from AutoScaling.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/ExitStandby">REST API Reference for ExitStandby Operation</seealso> ExitStandbyResponse EndExitStandby(IAsyncResult asyncResult); #endregion #region GetPredictiveScalingForecast /// <summary> /// Retrieves the forecast data for a predictive scaling policy. /// /// /// <para> /// Load forecasts are predictions of the hourly load values using historical load data /// from CloudWatch and an analysis of historical trends. Capacity forecasts are represented /// as predicted values for the minimum capacity that is needed on an hourly basis, based /// on the hourly load forecast. /// </para> /// /// <para> /// A minimum of 24 hours of data is required to create the initial forecasts. However, /// having a full 14 days of historical data results in more accurate forecasts. /// </para> /// /// <para> /// For more information, 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> /// </summary> /// <param name="request">Container for the necessary parameters to execute the GetPredictiveScalingForecast service method.</param> /// /// <returns>The response from the GetPredictiveScalingForecast service method, as returned by AutoScaling.</returns> /// <exception cref="Amazon.AutoScaling.Model.ResourceContentionException"> /// You already have a pending update to an Amazon EC2 Auto Scaling resource (for example, /// an Auto Scaling group, instance, or load balancer). /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/GetPredictiveScalingForecast">REST API Reference for GetPredictiveScalingForecast Operation</seealso> GetPredictiveScalingForecastResponse GetPredictiveScalingForecast(GetPredictiveScalingForecastRequest request); /// <summary> /// Initiates the asynchronous execution of the GetPredictiveScalingForecast operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the GetPredictiveScalingForecast operation on AmazonAutoScalingClient.</param> /// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param> /// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property.</param> /// /// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndGetPredictiveScalingForecast /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/GetPredictiveScalingForecast">REST API Reference for GetPredictiveScalingForecast Operation</seealso> IAsyncResult BeginGetPredictiveScalingForecast(GetPredictiveScalingForecastRequest request, AsyncCallback callback, object state); /// <summary> /// Finishes the asynchronous execution of the GetPredictiveScalingForecast operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginGetPredictiveScalingForecast.</param> /// /// <returns>Returns a GetPredictiveScalingForecastResult from AutoScaling.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/GetPredictiveScalingForecast">REST API Reference for GetPredictiveScalingForecast Operation</seealso> GetPredictiveScalingForecastResponse EndGetPredictiveScalingForecast(IAsyncResult asyncResult); #endregion #region PutLifecycleHook /// <summary> /// 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> /// <param name="request">Container for the necessary parameters to execute the PutLifecycleHook service method.</param> /// /// <returns>The response from the PutLifecycleHook service method, as returned by AutoScaling.</returns> /// <exception cref="Amazon.AutoScaling.Model.LimitExceededException"> /// You have already reached a limit for your Amazon EC2 Auto Scaling resources (for example, /// Auto Scaling groups, launch configurations, or lifecycle hooks). For more information, /// see <a href="https://docs.aws.amazon.com/autoscaling/ec2/APIReference/API_DescribeAccountLimits.html">DescribeAccountLimits</a> /// in the <i>Amazon EC2 Auto Scaling API Reference</i>. /// </exception> /// <exception cref="Amazon.AutoScaling.Model.ResourceContentionException"> /// You already have a pending update to an Amazon EC2 Auto Scaling resource (for example, /// an Auto Scaling group, instance, or load balancer). /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/PutLifecycleHook">REST API Reference for PutLifecycleHook Operation</seealso> PutLifecycleHookResponse PutLifecycleHook(PutLifecycleHookRequest request); /// <summary> /// Initiates the asynchronous execution of the PutLifecycleHook operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the PutLifecycleHook operation on AmazonAutoScalingClient.</param> /// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param> /// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property.</param> /// /// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndPutLifecycleHook /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/PutLifecycleHook">REST API Reference for PutLifecycleHook Operation</seealso> IAsyncResult BeginPutLifecycleHook(PutLifecycleHookRequest request, AsyncCallback callback, object state); /// <summary> /// Finishes the asynchronous execution of the PutLifecycleHook operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginPutLifecycleHook.</param> /// /// <returns>Returns a PutLifecycleHookResult from AutoScaling.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/PutLifecycleHook">REST API Reference for PutLifecycleHook Operation</seealso> PutLifecycleHookResponse EndPutLifecycleHook(IAsyncResult asyncResult); #endregion #region PutNotificationConfiguration /// <summary> /// 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> /// <param name="request">Container for the necessary parameters to execute the PutNotificationConfiguration service method.</param> /// /// <returns>The response from the PutNotificationConfiguration service method, as returned by AutoScaling.</returns> /// <exception cref="Amazon.AutoScaling.Model.LimitExceededException"> /// You have already reached a limit for your Amazon EC2 Auto Scaling resources (for example, /// Auto Scaling groups, launch configurations, or lifecycle hooks). For more information, /// see <a href="https://docs.aws.amazon.com/autoscaling/ec2/APIReference/API_DescribeAccountLimits.html">DescribeAccountLimits</a> /// in the <i>Amazon EC2 Auto Scaling API Reference</i>. /// </exception> /// <exception cref="Amazon.AutoScaling.Model.ResourceContentionException"> /// You already have a pending update to an Amazon EC2 Auto Scaling resource (for example, /// an Auto Scaling group, instance, or load balancer). /// </exception> /// <exception cref="Amazon.AutoScaling.Model.ServiceLinkedRoleFailureException"> /// The service-linked role is not yet ready for use. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/PutNotificationConfiguration">REST API Reference for PutNotificationConfiguration Operation</seealso> PutNotificationConfigurationResponse PutNotificationConfiguration(PutNotificationConfigurationRequest request); /// <summary> /// Initiates the asynchronous execution of the PutNotificationConfiguration operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the PutNotificationConfiguration operation on AmazonAutoScalingClient.</param> /// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param> /// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property.</param> /// /// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndPutNotificationConfiguration /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/PutNotificationConfiguration">REST API Reference for PutNotificationConfiguration Operation</seealso> IAsyncResult BeginPutNotificationConfiguration(PutNotificationConfigurationRequest request, AsyncCallback callback, object state); /// <summary> /// Finishes the asynchronous execution of the PutNotificationConfiguration operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginPutNotificationConfiguration.</param> /// /// <returns>Returns a PutNotificationConfigurationResult from AutoScaling.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/PutNotificationConfiguration">REST API Reference for PutNotificationConfiguration Operation</seealso> PutNotificationConfigurationResponse EndPutNotificationConfiguration(IAsyncResult asyncResult); #endregion #region PutScalingPolicy /// <summary> /// 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> /// <param name="request">Container for the necessary parameters to execute the PutScalingPolicy service method.</param> /// /// <returns>The response from the PutScalingPolicy service method, as returned by AutoScaling.</returns> /// <exception cref="Amazon.AutoScaling.Model.LimitExceededException"> /// You have already reached a limit for your Amazon EC2 Auto Scaling resources (for example, /// Auto Scaling groups, launch configurations, or lifecycle hooks). For more information, /// see <a href="https://docs.aws.amazon.com/autoscaling/ec2/APIReference/API_DescribeAccountLimits.html">DescribeAccountLimits</a> /// in the <i>Amazon EC2 Auto Scaling API Reference</i>. /// </exception> /// <exception cref="Amazon.AutoScaling.Model.ResourceContentionException"> /// You already have a pending update to an Amazon EC2 Auto Scaling resource (for example, /// an Auto Scaling group, instance, or load balancer). /// </exception> /// <exception cref="Amazon.AutoScaling.Model.ServiceLinkedRoleFailureException"> /// The service-linked role is not yet ready for use. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/PutScalingPolicy">REST API Reference for PutScalingPolicy Operation</seealso> PutScalingPolicyResponse PutScalingPolicy(PutScalingPolicyRequest request); /// <summary> /// Initiates the asynchronous execution of the PutScalingPolicy operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the PutScalingPolicy operation on AmazonAutoScalingClient.</param> /// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param> /// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property.</param> /// /// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndPutScalingPolicy /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/PutScalingPolicy">REST API Reference for PutScalingPolicy Operation</seealso> IAsyncResult BeginPutScalingPolicy(PutScalingPolicyRequest request, AsyncCallback callback, object state); /// <summary> /// Finishes the asynchronous execution of the PutScalingPolicy operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginPutScalingPolicy.</param> /// /// <returns>Returns a PutScalingPolicyResult from AutoScaling.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/PutScalingPolicy">REST API Reference for PutScalingPolicy Operation</seealso> PutScalingPolicyResponse EndPutScalingPolicy(IAsyncResult asyncResult); #endregion #region PutScheduledUpdateGroupAction /// <summary> /// 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> /// <param name="request">Container for the necessary parameters to execute the PutScheduledUpdateGroupAction service method.</param> /// /// <returns>The response from the PutScheduledUpdateGroupAction service method, as returned by AutoScaling.</returns> /// <exception cref="Amazon.AutoScaling.Model.AlreadyExistsException"> /// You already have an Auto Scaling group or launch configuration with this name. /// </exception> /// <exception cref="Amazon.AutoScaling.Model.LimitExceededException"> /// You have already reached a limit for your Amazon EC2 Auto Scaling resources (for example, /// Auto Scaling groups, launch configurations, or lifecycle hooks). For more information, /// see <a href="https://docs.aws.amazon.com/autoscaling/ec2/APIReference/API_DescribeAccountLimits.html">DescribeAccountLimits</a> /// in the <i>Amazon EC2 Auto Scaling API Reference</i>. /// </exception> /// <exception cref="Amazon.AutoScaling.Model.ResourceContentionException"> /// You already have a pending update to an Amazon EC2 Auto Scaling resource (for example, /// an Auto Scaling group, instance, or load balancer). /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/PutScheduledUpdateGroupAction">REST API Reference for PutScheduledUpdateGroupAction Operation</seealso> PutScheduledUpdateGroupActionResponse PutScheduledUpdateGroupAction(PutScheduledUpdateGroupActionRequest request); /// <summary> /// Initiates the asynchronous execution of the PutScheduledUpdateGroupAction operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the PutScheduledUpdateGroupAction operation on AmazonAutoScalingClient.</param> /// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param> /// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property.</param> /// /// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndPutScheduledUpdateGroupAction /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/PutScheduledUpdateGroupAction">REST API Reference for PutScheduledUpdateGroupAction Operation</seealso> IAsyncResult BeginPutScheduledUpdateGroupAction(PutScheduledUpdateGroupActionRequest request, AsyncCallback callback, object state); /// <summary> /// Finishes the asynchronous execution of the PutScheduledUpdateGroupAction operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginPutScheduledUpdateGroupAction.</param> /// /// <returns>Returns a PutScheduledUpdateGroupActionResult from AutoScaling.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/PutScheduledUpdateGroupAction">REST API Reference for PutScheduledUpdateGroupAction Operation</seealso> PutScheduledUpdateGroupActionResponse EndPutScheduledUpdateGroupAction(IAsyncResult asyncResult); #endregion #region PutWarmPool /// <summary> /// 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> /// <param name="request">Container for the necessary parameters to execute the PutWarmPool service method.</param> /// /// <returns>The response from the PutWarmPool service method, as returned by AutoScaling.</returns> /// <exception cref="Amazon.AutoScaling.Model.LimitExceededException"> /// You have already reached a limit for your Amazon EC2 Auto Scaling resources (for example, /// Auto Scaling groups, launch configurations, or lifecycle hooks). For more information, /// see <a href="https://docs.aws.amazon.com/autoscaling/ec2/APIReference/API_DescribeAccountLimits.html">DescribeAccountLimits</a> /// in the <i>Amazon EC2 Auto Scaling API Reference</i>. /// </exception> /// <exception cref="Amazon.AutoScaling.Model.ResourceContentionException"> /// You already have a pending update to an Amazon EC2 Auto Scaling resource (for example, /// an Auto Scaling group, instance, or load balancer). /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/PutWarmPool">REST API Reference for PutWarmPool Operation</seealso> PutWarmPoolResponse PutWarmPool(PutWarmPoolRequest request); /// <summary> /// Initiates the asynchronous execution of the PutWarmPool operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the PutWarmPool operation on AmazonAutoScalingClient.</param> /// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param> /// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property.</param> /// /// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndPutWarmPool /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/PutWarmPool">REST API Reference for PutWarmPool Operation</seealso> IAsyncResult BeginPutWarmPool(PutWarmPoolRequest request, AsyncCallback callback, object state); /// <summary> /// Finishes the asynchronous execution of the PutWarmPool operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginPutWarmPool.</param> /// /// <returns>Returns a PutWarmPoolResult from AutoScaling.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/PutWarmPool">REST API Reference for PutWarmPool Operation</seealso> PutWarmPoolResponse EndPutWarmPool(IAsyncResult asyncResult); #endregion #region RecordLifecycleActionHeartbeat /// <summary> /// 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> /// <param name="request">Container for the necessary parameters to execute the RecordLifecycleActionHeartbeat service method.</param> /// /// <returns>The response from the RecordLifecycleActionHeartbeat service method, as returned by AutoScaling.</returns> /// <exception cref="Amazon.AutoScaling.Model.ResourceContentionException"> /// You already have a pending update to an Amazon EC2 Auto Scaling resource (for example, /// an Auto Scaling group, instance, or load balancer). /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/RecordLifecycleActionHeartbeat">REST API Reference for RecordLifecycleActionHeartbeat Operation</seealso> RecordLifecycleActionHeartbeatResponse RecordLifecycleActionHeartbeat(RecordLifecycleActionHeartbeatRequest request); /// <summary> /// Initiates the asynchronous execution of the RecordLifecycleActionHeartbeat operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the RecordLifecycleActionHeartbeat operation on AmazonAutoScalingClient.</param> /// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param> /// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property.</param> /// /// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndRecordLifecycleActionHeartbeat /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/RecordLifecycleActionHeartbeat">REST API Reference for RecordLifecycleActionHeartbeat Operation</seealso> IAsyncResult BeginRecordLifecycleActionHeartbeat(RecordLifecycleActionHeartbeatRequest request, AsyncCallback callback, object state); /// <summary> /// Finishes the asynchronous execution of the RecordLifecycleActionHeartbeat operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginRecordLifecycleActionHeartbeat.</param> /// /// <returns>Returns a RecordLifecycleActionHeartbeatResult from AutoScaling.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/RecordLifecycleActionHeartbeat">REST API Reference for RecordLifecycleActionHeartbeat Operation</seealso> RecordLifecycleActionHeartbeatResponse EndRecordLifecycleActionHeartbeat(IAsyncResult asyncResult); #endregion #region ResumeProcesses /// <summary> /// 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> /// <param name="request">Container for the necessary parameters to execute the ResumeProcesses service method.</param> /// /// <returns>The response from the ResumeProcesses service method, as returned by AutoScaling.</returns> /// <exception cref="Amazon.AutoScaling.Model.ResourceContentionException"> /// You already have a pending update to an Amazon EC2 Auto Scaling resource (for example, /// an Auto Scaling group, instance, or load balancer). /// </exception> /// <exception cref="Amazon.AutoScaling.Model.ResourceInUseException"> /// The operation can't be performed because the resource is in use. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/ResumeProcesses">REST API Reference for ResumeProcesses Operation</seealso> ResumeProcessesResponse ResumeProcesses(ResumeProcessesRequest request); /// <summary> /// Initiates the asynchronous execution of the ResumeProcesses operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the ResumeProcesses operation on AmazonAutoScalingClient.</param> /// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param> /// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property.</param> /// /// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndResumeProcesses /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/ResumeProcesses">REST API Reference for ResumeProcesses Operation</seealso> IAsyncResult BeginResumeProcesses(ResumeProcessesRequest request, AsyncCallback callback, object state); /// <summary> /// Finishes the asynchronous execution of the ResumeProcesses operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginResumeProcesses.</param> /// /// <returns>Returns a ResumeProcessesResult from AutoScaling.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/ResumeProcesses">REST API Reference for ResumeProcesses Operation</seealso> ResumeProcessesResponse EndResumeProcesses(IAsyncResult asyncResult); #endregion #region RollbackInstanceRefresh /// <summary> /// 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> /// <param name="request">Container for the necessary parameters to execute the RollbackInstanceRefresh service method.</param> /// /// <returns>The response from the RollbackInstanceRefresh service method, as returned by AutoScaling.</returns> /// <exception cref="Amazon.AutoScaling.Model.ActiveInstanceRefreshNotFoundException"> /// The request failed because an active instance refresh or rollback for the specified /// Auto Scaling group was not found. /// </exception> /// <exception cref="Amazon.AutoScaling.Model.IrreversibleInstanceRefreshException"> /// The request failed because a desired configuration was not found or an incompatible /// launch template (uses a Systems Manager parameter instead of an AMI ID) or launch /// template version (<code>$Latest</code> or <code>$Default</code>) is present on the /// Auto Scaling group. /// </exception> /// <exception cref="Amazon.AutoScaling.Model.LimitExceededException"> /// You have already reached a limit for your Amazon EC2 Auto Scaling resources (for example, /// Auto Scaling groups, launch configurations, or lifecycle hooks). For more information, /// see <a href="https://docs.aws.amazon.com/autoscaling/ec2/APIReference/API_DescribeAccountLimits.html">DescribeAccountLimits</a> /// in the <i>Amazon EC2 Auto Scaling API Reference</i>. /// </exception> /// <exception cref="Amazon.AutoScaling.Model.ResourceContentionException"> /// You already have a pending update to an Amazon EC2 Auto Scaling resource (for example, /// an Auto Scaling group, instance, or load balancer). /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/RollbackInstanceRefresh">REST API Reference for RollbackInstanceRefresh Operation</seealso> RollbackInstanceRefreshResponse RollbackInstanceRefresh(RollbackInstanceRefreshRequest request); /// <summary> /// Initiates the asynchronous execution of the RollbackInstanceRefresh operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the RollbackInstanceRefresh operation on AmazonAutoScalingClient.</param> /// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param> /// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property.</param> /// /// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndRollbackInstanceRefresh /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/RollbackInstanceRefresh">REST API Reference for RollbackInstanceRefresh Operation</seealso> IAsyncResult BeginRollbackInstanceRefresh(RollbackInstanceRefreshRequest request, AsyncCallback callback, object state); /// <summary> /// Finishes the asynchronous execution of the RollbackInstanceRefresh operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginRollbackInstanceRefresh.</param> /// /// <returns>Returns a RollbackInstanceRefreshResult from AutoScaling.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/RollbackInstanceRefresh">REST API Reference for RollbackInstanceRefresh Operation</seealso> RollbackInstanceRefreshResponse EndRollbackInstanceRefresh(IAsyncResult asyncResult); #endregion #region SetDesiredCapacity /// <summary> /// 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> /// <param name="request">Container for the necessary parameters to execute the SetDesiredCapacity service method.</param> /// /// <returns>The response from the SetDesiredCapacity service method, as returned by AutoScaling.</returns> /// <exception cref="Amazon.AutoScaling.Model.ResourceContentionException"> /// You already have a pending update to an Amazon EC2 Auto Scaling resource (for example, /// an Auto Scaling group, instance, or load balancer). /// </exception> /// <exception cref="Amazon.AutoScaling.Model.ScalingActivityInProgressException"> /// The operation can't be performed because there are scaling activities in progress. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/SetDesiredCapacity">REST API Reference for SetDesiredCapacity Operation</seealso> SetDesiredCapacityResponse SetDesiredCapacity(SetDesiredCapacityRequest request); /// <summary> /// Initiates the asynchronous execution of the SetDesiredCapacity operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the SetDesiredCapacity operation on AmazonAutoScalingClient.</param> /// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param> /// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property.</param> /// /// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndSetDesiredCapacity /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/SetDesiredCapacity">REST API Reference for SetDesiredCapacity Operation</seealso> IAsyncResult BeginSetDesiredCapacity(SetDesiredCapacityRequest request, AsyncCallback callback, object state); /// <summary> /// Finishes the asynchronous execution of the SetDesiredCapacity operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginSetDesiredCapacity.</param> /// /// <returns>Returns a SetDesiredCapacityResult from AutoScaling.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/SetDesiredCapacity">REST API Reference for SetDesiredCapacity Operation</seealso> SetDesiredCapacityResponse EndSetDesiredCapacity(IAsyncResult asyncResult); #endregion #region SetInstanceHealth /// <summary> /// 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> /// <param name="request">Container for the necessary parameters to execute the SetInstanceHealth service method.</param> /// /// <returns>The response from the SetInstanceHealth service method, as returned by AutoScaling.</returns> /// <exception cref="Amazon.AutoScaling.Model.ResourceContentionException"> /// You already have a pending update to an Amazon EC2 Auto Scaling resource (for example, /// an Auto Scaling group, instance, or load balancer). /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/SetInstanceHealth">REST API Reference for SetInstanceHealth Operation</seealso> SetInstanceHealthResponse SetInstanceHealth(SetInstanceHealthRequest request); /// <summary> /// Initiates the asynchronous execution of the SetInstanceHealth operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the SetInstanceHealth operation on AmazonAutoScalingClient.</param> /// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param> /// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property.</param> /// /// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndSetInstanceHealth /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/SetInstanceHealth">REST API Reference for SetInstanceHealth Operation</seealso> IAsyncResult BeginSetInstanceHealth(SetInstanceHealthRequest request, AsyncCallback callback, object state); /// <summary> /// Finishes the asynchronous execution of the SetInstanceHealth operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginSetInstanceHealth.</param> /// /// <returns>Returns a SetInstanceHealthResult from AutoScaling.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/SetInstanceHealth">REST API Reference for SetInstanceHealth Operation</seealso> SetInstanceHealthResponse EndSetInstanceHealth(IAsyncResult asyncResult); #endregion #region SetInstanceProtection /// <summary> /// 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> /// <param name="request">Container for the necessary parameters to execute the SetInstanceProtection service method.</param> /// /// <returns>The response from the SetInstanceProtection service method, as returned by AutoScaling.</returns> /// <exception cref="Amazon.AutoScaling.Model.LimitExceededException"> /// You have already reached a limit for your Amazon EC2 Auto Scaling resources (for example, /// Auto Scaling groups, launch configurations, or lifecycle hooks). For more information, /// see <a href="https://docs.aws.amazon.com/autoscaling/ec2/APIReference/API_DescribeAccountLimits.html">DescribeAccountLimits</a> /// in the <i>Amazon EC2 Auto Scaling API Reference</i>. /// </exception> /// <exception cref="Amazon.AutoScaling.Model.ResourceContentionException"> /// You already have a pending update to an Amazon EC2 Auto Scaling resource (for example, /// an Auto Scaling group, instance, or load balancer). /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/SetInstanceProtection">REST API Reference for SetInstanceProtection Operation</seealso> SetInstanceProtectionResponse SetInstanceProtection(SetInstanceProtectionRequest request); /// <summary> /// Initiates the asynchronous execution of the SetInstanceProtection operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the SetInstanceProtection operation on AmazonAutoScalingClient.</param> /// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param> /// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property.</param> /// /// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndSetInstanceProtection /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/SetInstanceProtection">REST API Reference for SetInstanceProtection Operation</seealso> IAsyncResult BeginSetInstanceProtection(SetInstanceProtectionRequest request, AsyncCallback callback, object state); /// <summary> /// Finishes the asynchronous execution of the SetInstanceProtection operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginSetInstanceProtection.</param> /// /// <returns>Returns a SetInstanceProtectionResult from AutoScaling.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/SetInstanceProtection">REST API Reference for SetInstanceProtection Operation</seealso> SetInstanceProtectionResponse EndSetInstanceProtection(IAsyncResult asyncResult); #endregion #region StartInstanceRefresh /// <summary> /// 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> /// <param name="request">Container for the necessary parameters to execute the StartInstanceRefresh service method.</param> /// /// <returns>The response from the StartInstanceRefresh service method, as returned by AutoScaling.</returns> /// <exception cref="Amazon.AutoScaling.Model.InstanceRefreshInProgressException"> /// The request failed because an active instance refresh already exists for the specified /// Auto Scaling group. /// </exception> /// <exception cref="Amazon.AutoScaling.Model.LimitExceededException"> /// You have already reached a limit for your Amazon EC2 Auto Scaling resources (for example, /// Auto Scaling groups, launch configurations, or lifecycle hooks). For more information, /// see <a href="https://docs.aws.amazon.com/autoscaling/ec2/APIReference/API_DescribeAccountLimits.html">DescribeAccountLimits</a> /// in the <i>Amazon EC2 Auto Scaling API Reference</i>. /// </exception> /// <exception cref="Amazon.AutoScaling.Model.ResourceContentionException"> /// You already have a pending update to an Amazon EC2 Auto Scaling resource (for example, /// an Auto Scaling group, instance, or load balancer). /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/StartInstanceRefresh">REST API Reference for StartInstanceRefresh Operation</seealso> StartInstanceRefreshResponse StartInstanceRefresh(StartInstanceRefreshRequest request); /// <summary> /// Initiates the asynchronous execution of the StartInstanceRefresh operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the StartInstanceRefresh operation on AmazonAutoScalingClient.</param> /// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param> /// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property.</param> /// /// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndStartInstanceRefresh /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/StartInstanceRefresh">REST API Reference for StartInstanceRefresh Operation</seealso> IAsyncResult BeginStartInstanceRefresh(StartInstanceRefreshRequest request, AsyncCallback callback, object state); /// <summary> /// Finishes the asynchronous execution of the StartInstanceRefresh operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginStartInstanceRefresh.</param> /// /// <returns>Returns a StartInstanceRefreshResult from AutoScaling.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/StartInstanceRefresh">REST API Reference for StartInstanceRefresh Operation</seealso> StartInstanceRefreshResponse EndStartInstanceRefresh(IAsyncResult asyncResult); #endregion #region SuspendProcesses /// <summary> /// 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> /// <param name="request">Container for the necessary parameters to execute the SuspendProcesses service method.</param> /// /// <returns>The response from the SuspendProcesses service method, as returned by AutoScaling.</returns> /// <exception cref="Amazon.AutoScaling.Model.ResourceContentionException"> /// You already have a pending update to an Amazon EC2 Auto Scaling resource (for example, /// an Auto Scaling group, instance, or load balancer). /// </exception> /// <exception cref="Amazon.AutoScaling.Model.ResourceInUseException"> /// The operation can't be performed because the resource is in use. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/SuspendProcesses">REST API Reference for SuspendProcesses Operation</seealso> SuspendProcessesResponse SuspendProcesses(SuspendProcessesRequest request); /// <summary> /// Initiates the asynchronous execution of the SuspendProcesses operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the SuspendProcesses operation on AmazonAutoScalingClient.</param> /// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param> /// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property.</param> /// /// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndSuspendProcesses /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/SuspendProcesses">REST API Reference for SuspendProcesses Operation</seealso> IAsyncResult BeginSuspendProcesses(SuspendProcessesRequest request, AsyncCallback callback, object state); /// <summary> /// Finishes the asynchronous execution of the SuspendProcesses operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginSuspendProcesses.</param> /// /// <returns>Returns a SuspendProcessesResult from AutoScaling.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/SuspendProcesses">REST API Reference for SuspendProcesses Operation</seealso> SuspendProcessesResponse EndSuspendProcesses(IAsyncResult asyncResult); #endregion #region TerminateInstanceInAutoScalingGroup /// <summary> /// 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> /// <param name="request">Container for the necessary parameters to execute the TerminateInstanceInAutoScalingGroup service method.</param> /// /// <returns>The response from the TerminateInstanceInAutoScalingGroup service method, as returned by AutoScaling.</returns> /// <exception cref="Amazon.AutoScaling.Model.ResourceContentionException"> /// You already have a pending update to an Amazon EC2 Auto Scaling resource (for example, /// an Auto Scaling group, instance, or load balancer). /// </exception> /// <exception cref="Amazon.AutoScaling.Model.ScalingActivityInProgressException"> /// The operation can't be performed because there are scaling activities in progress. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/TerminateInstanceInAutoScalingGroup">REST API Reference for TerminateInstanceInAutoScalingGroup Operation</seealso> TerminateInstanceInAutoScalingGroupResponse TerminateInstanceInAutoScalingGroup(TerminateInstanceInAutoScalingGroupRequest request); /// <summary> /// Initiates the asynchronous execution of the TerminateInstanceInAutoScalingGroup operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the TerminateInstanceInAutoScalingGroup operation on AmazonAutoScalingClient.</param> /// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param> /// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property.</param> /// /// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndTerminateInstanceInAutoScalingGroup /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/TerminateInstanceInAutoScalingGroup">REST API Reference for TerminateInstanceInAutoScalingGroup Operation</seealso> IAsyncResult BeginTerminateInstanceInAutoScalingGroup(TerminateInstanceInAutoScalingGroupRequest request, AsyncCallback callback, object state); /// <summary> /// Finishes the asynchronous execution of the TerminateInstanceInAutoScalingGroup operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginTerminateInstanceInAutoScalingGroup.</param> /// /// <returns>Returns a TerminateInstanceInAutoScalingGroupResult from AutoScaling.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/TerminateInstanceInAutoScalingGroup">REST API Reference for TerminateInstanceInAutoScalingGroup Operation</seealso> TerminateInstanceInAutoScalingGroupResponse EndTerminateInstanceInAutoScalingGroup(IAsyncResult asyncResult); #endregion #region UpdateAutoScalingGroup /// <summary> /// <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> /// <param name="request">Container for the necessary parameters to execute the UpdateAutoScalingGroup service method.</param> /// /// <returns>The response from the UpdateAutoScalingGroup service method, as returned by AutoScaling.</returns> /// <exception cref="Amazon.AutoScaling.Model.ResourceContentionException"> /// You already have a pending update to an Amazon EC2 Auto Scaling resource (for example, /// an Auto Scaling group, instance, or load balancer). /// </exception> /// <exception cref="Amazon.AutoScaling.Model.ScalingActivityInProgressException"> /// The operation can't be performed because there are scaling activities in progress. /// </exception> /// <exception cref="Amazon.AutoScaling.Model.ServiceLinkedRoleFailureException"> /// The service-linked role is not yet ready for use. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/UpdateAutoScalingGroup">REST API Reference for UpdateAutoScalingGroup Operation</seealso> UpdateAutoScalingGroupResponse UpdateAutoScalingGroup(UpdateAutoScalingGroupRequest request); /// <summary> /// Initiates the asynchronous execution of the UpdateAutoScalingGroup operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the UpdateAutoScalingGroup operation on AmazonAutoScalingClient.</param> /// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param> /// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property.</param> /// /// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndUpdateAutoScalingGroup /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/UpdateAutoScalingGroup">REST API Reference for UpdateAutoScalingGroup Operation</seealso> IAsyncResult BeginUpdateAutoScalingGroup(UpdateAutoScalingGroupRequest request, AsyncCallback callback, object state); /// <summary> /// Finishes the asynchronous execution of the UpdateAutoScalingGroup operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginUpdateAutoScalingGroup.</param> /// /// <returns>Returns a UpdateAutoScalingGroupResult from AutoScaling.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/UpdateAutoScalingGroup">REST API Reference for UpdateAutoScalingGroup Operation</seealso> UpdateAutoScalingGroupResponse EndUpdateAutoScalingGroup(IAsyncResult asyncResult); #endregion } }
4,496
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.Runtime.ExceptionServices; using System.Threading; using System.Threading.Tasks; using System.Collections.Generic; using System.Net; using Amazon.AutoScaling.Model; using Amazon.AutoScaling.Model.Internal.MarshallTransformations; using Amazon.AutoScaling.Internal; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Auth; using Amazon.Runtime.Internal.Transform; namespace Amazon.AutoScaling { /// <summary> /// Implementation for accessing AutoScaling /// /// Amazon EC2 Auto Scaling /// <para> /// Amazon EC2 Auto Scaling is designed to automatically launch and terminate EC2 instances /// based on user-defined scaling policies, scheduled actions, and health checks. /// </para> /// /// <para> /// For more information, see the <a href="https://docs.aws.amazon.com/autoscaling/ec2/userguide/">Amazon /// EC2 Auto Scaling User Guide</a> and the <a href="https://docs.aws.amazon.com/autoscaling/ec2/APIReference/Welcome.html">Amazon /// EC2 Auto Scaling API Reference</a>. /// </para> /// </summary> public partial class AmazonAutoScalingClient : AmazonServiceClient, IAmazonAutoScaling { private static IServiceMetadata serviceMetadata = new AmazonAutoScalingMetadata(); private IAutoScalingPaginatorFactory _paginators; /// <summary> /// Paginators for the service /// </summary> public IAutoScalingPaginatorFactory Paginators { get { if (this._paginators == null) { this._paginators = new AutoScalingPaginatorFactory(this); } return this._paginators; } } #region Constructors /// <summary> /// Constructs AmazonAutoScalingClient with the credentials loaded from the application's /// default configuration, and if unsuccessful from the Instance Profile service on an EC2 instance. /// /// Example App.config with credentials set. /// <code> /// &lt;?xml version="1.0" encoding="utf-8" ?&gt; /// &lt;configuration&gt; /// &lt;appSettings&gt; /// &lt;add key="AWSProfileName" value="AWS Default"/&gt; /// &lt;/appSettings&gt; /// &lt;/configuration&gt; /// </code> /// /// </summary> public AmazonAutoScalingClient() : base(FallbackCredentialsFactory.GetCredentials(), new AmazonAutoScalingConfig()) { } /// <summary> /// Constructs AmazonAutoScalingClient with the credentials loaded from the application's /// default configuration, and if unsuccessful from the Instance Profile service on an EC2 instance. /// /// Example App.config with credentials set. /// <code> /// &lt;?xml version="1.0" encoding="utf-8" ?&gt; /// &lt;configuration&gt; /// &lt;appSettings&gt; /// &lt;add key="AWSProfileName" value="AWS Default"/&gt; /// &lt;/appSettings&gt; /// &lt;/configuration&gt; /// </code> /// /// </summary> /// <param name="region">The region to connect.</param> public AmazonAutoScalingClient(RegionEndpoint region) : base(FallbackCredentialsFactory.GetCredentials(), new AmazonAutoScalingConfig{RegionEndpoint = region}) { } /// <summary> /// Constructs AmazonAutoScalingClient with the credentials loaded from the application's /// default configuration, and if unsuccessful from the Instance Profile service on an EC2 instance. /// /// Example App.config with credentials set. /// <code> /// &lt;?xml version="1.0" encoding="utf-8" ?&gt; /// &lt;configuration&gt; /// &lt;appSettings&gt; /// &lt;add key="AWSProfileName" value="AWS Default"/&gt; /// &lt;/appSettings&gt; /// &lt;/configuration&gt; /// </code> /// /// </summary> /// <param name="config">The AmazonAutoScalingClient Configuration Object</param> public AmazonAutoScalingClient(AmazonAutoScalingConfig config) : base(FallbackCredentialsFactory.GetCredentials(), config) { } /// <summary> /// Constructs AmazonAutoScalingClient with AWS Credentials /// </summary> /// <param name="credentials">AWS Credentials</param> public AmazonAutoScalingClient(AWSCredentials credentials) : this(credentials, new AmazonAutoScalingConfig()) { } /// <summary> /// Constructs AmazonAutoScalingClient with AWS Credentials /// </summary> /// <param name="credentials">AWS Credentials</param> /// <param name="region">The region to connect.</param> public AmazonAutoScalingClient(AWSCredentials credentials, RegionEndpoint region) : this(credentials, new AmazonAutoScalingConfig{RegionEndpoint = region}) { } /// <summary> /// Constructs AmazonAutoScalingClient with AWS Credentials and an /// AmazonAutoScalingClient Configuration object. /// </summary> /// <param name="credentials">AWS Credentials</param> /// <param name="clientConfig">The AmazonAutoScalingClient Configuration Object</param> public AmazonAutoScalingClient(AWSCredentials credentials, AmazonAutoScalingConfig clientConfig) : base(credentials, clientConfig) { } /// <summary> /// Constructs AmazonAutoScalingClient with AWS Access Key ID and AWS Secret Key /// </summary> /// <param name="awsAccessKeyId">AWS Access Key ID</param> /// <param name="awsSecretAccessKey">AWS Secret Access Key</param> public AmazonAutoScalingClient(string awsAccessKeyId, string awsSecretAccessKey) : this(awsAccessKeyId, awsSecretAccessKey, new AmazonAutoScalingConfig()) { } /// <summary> /// Constructs AmazonAutoScalingClient with AWS Access Key ID and AWS Secret Key /// </summary> /// <param name="awsAccessKeyId">AWS Access Key ID</param> /// <param name="awsSecretAccessKey">AWS Secret Access Key</param> /// <param name="region">The region to connect.</param> public AmazonAutoScalingClient(string awsAccessKeyId, string awsSecretAccessKey, RegionEndpoint region) : this(awsAccessKeyId, awsSecretAccessKey, new AmazonAutoScalingConfig() {RegionEndpoint=region}) { } /// <summary> /// Constructs AmazonAutoScalingClient with AWS Access Key ID, AWS Secret Key and an /// AmazonAutoScalingClient Configuration object. /// </summary> /// <param name="awsAccessKeyId">AWS Access Key ID</param> /// <param name="awsSecretAccessKey">AWS Secret Access Key</param> /// <param name="clientConfig">The AmazonAutoScalingClient Configuration Object</param> public AmazonAutoScalingClient(string awsAccessKeyId, string awsSecretAccessKey, AmazonAutoScalingConfig clientConfig) : base(awsAccessKeyId, awsSecretAccessKey, clientConfig) { } /// <summary> /// Constructs AmazonAutoScalingClient with AWS Access Key ID and AWS Secret Key /// </summary> /// <param name="awsAccessKeyId">AWS Access Key ID</param> /// <param name="awsSecretAccessKey">AWS Secret Access Key</param> /// <param name="awsSessionToken">AWS Session Token</param> public AmazonAutoScalingClient(string awsAccessKeyId, string awsSecretAccessKey, string awsSessionToken) : this(awsAccessKeyId, awsSecretAccessKey, awsSessionToken, new AmazonAutoScalingConfig()) { } /// <summary> /// Constructs AmazonAutoScalingClient with AWS Access Key ID and AWS Secret Key /// </summary> /// <param name="awsAccessKeyId">AWS Access Key ID</param> /// <param name="awsSecretAccessKey">AWS Secret Access Key</param> /// <param name="awsSessionToken">AWS Session Token</param> /// <param name="region">The region to connect.</param> public AmazonAutoScalingClient(string awsAccessKeyId, string awsSecretAccessKey, string awsSessionToken, RegionEndpoint region) : this(awsAccessKeyId, awsSecretAccessKey, awsSessionToken, new AmazonAutoScalingConfig{RegionEndpoint = region}) { } /// <summary> /// Constructs AmazonAutoScalingClient with AWS Access Key ID, AWS Secret Key and an /// AmazonAutoScalingClient Configuration object. /// </summary> /// <param name="awsAccessKeyId">AWS Access Key ID</param> /// <param name="awsSecretAccessKey">AWS Secret Access Key</param> /// <param name="awsSessionToken">AWS Session Token</param> /// <param name="clientConfig">The AmazonAutoScalingClient Configuration Object</param> public AmazonAutoScalingClient(string awsAccessKeyId, string awsSecretAccessKey, string awsSessionToken, AmazonAutoScalingConfig clientConfig) : base(awsAccessKeyId, awsSecretAccessKey, awsSessionToken, clientConfig) { } #endregion #region Overrides /// <summary> /// Creates the signer for the service. /// </summary> protected override AbstractAWSSigner CreateSigner() { return new AWS4Signer(); } /// <summary> /// Customize the pipeline /// </summary> /// <param name="pipeline"></param> protected override void CustomizeRuntimePipeline(RuntimePipeline pipeline) { pipeline.RemoveHandler<Amazon.Runtime.Internal.EndpointResolver>(); pipeline.AddHandlerAfter<Amazon.Runtime.Internal.Marshaller>(new AmazonAutoScalingEndpointResolver()); } /// <summary> /// Capture metadata for the service. /// </summary> protected override IServiceMetadata ServiceMetadata { get { return serviceMetadata; } } #endregion #region Dispose /// <summary> /// Disposes the service client. /// </summary> protected override void Dispose(bool disposing) { base.Dispose(disposing); } #endregion #region AttachInstances /// <summary> /// Attaches one or more EC2 instances to the specified Auto Scaling group. /// /// /// <para> /// When you attach instances, Amazon EC2 Auto Scaling increases the desired capacity /// of the group by the number of instances being attached. If the number of instances /// being attached plus the desired capacity of the group exceeds the maximum size of /// the group, the operation fails. /// </para> /// /// <para> /// If there is a Classic Load Balancer attached to your Auto Scaling group, the instances /// are also registered with the load balancer. If there are target groups attached to /// your Auto Scaling group, the instances are also registered with the target groups. /// </para> /// /// <para> /// For more information, see <a href="https://docs.aws.amazon.com/autoscaling/ec2/userguide/attach-instance-asg.html">Attach /// EC2 instances to your Auto Scaling group</a> in the <i>Amazon EC2 Auto Scaling User /// Guide</i>. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the AttachInstances service method.</param> /// /// <returns>The response from the AttachInstances service method, as returned by AutoScaling.</returns> /// <exception cref="Amazon.AutoScaling.Model.ResourceContentionException"> /// You already have a pending update to an Amazon EC2 Auto Scaling resource (for example, /// an Auto Scaling group, instance, or load balancer). /// </exception> /// <exception cref="Amazon.AutoScaling.Model.ServiceLinkedRoleFailureException"> /// The service-linked role is not yet ready for use. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/AttachInstances">REST API Reference for AttachInstances Operation</seealso> public virtual AttachInstancesResponse AttachInstances(AttachInstancesRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = AttachInstancesRequestMarshaller.Instance; options.ResponseUnmarshaller = AttachInstancesResponseUnmarshaller.Instance; return Invoke<AttachInstancesResponse>(request, options); } /// <summary> /// Attaches one or more EC2 instances to the specified Auto Scaling group. /// /// /// <para> /// When you attach instances, Amazon EC2 Auto Scaling increases the desired capacity /// of the group by the number of instances being attached. If the number of instances /// being attached plus the desired capacity of the group exceeds the maximum size of /// the group, the operation fails. /// </para> /// /// <para> /// If there is a Classic Load Balancer attached to your Auto Scaling group, the instances /// are also registered with the load balancer. If there are target groups attached to /// your Auto Scaling group, the instances are also registered with the target groups. /// </para> /// /// <para> /// For more information, see <a href="https://docs.aws.amazon.com/autoscaling/ec2/userguide/attach-instance-asg.html">Attach /// EC2 instances to your Auto Scaling group</a> in the <i>Amazon EC2 Auto Scaling User /// Guide</i>. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the AttachInstances service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the AttachInstances service method, as returned by AutoScaling.</returns> /// <exception cref="Amazon.AutoScaling.Model.ResourceContentionException"> /// You already have a pending update to an Amazon EC2 Auto Scaling resource (for example, /// an Auto Scaling group, instance, or load balancer). /// </exception> /// <exception cref="Amazon.AutoScaling.Model.ServiceLinkedRoleFailureException"> /// The service-linked role is not yet ready for use. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/AttachInstances">REST API Reference for AttachInstances Operation</seealso> public virtual Task<AttachInstancesResponse> AttachInstancesAsync(AttachInstancesRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = AttachInstancesRequestMarshaller.Instance; options.ResponseUnmarshaller = AttachInstancesResponseUnmarshaller.Instance; return InvokeAsync<AttachInstancesResponse>(request, options, cancellationToken); } #endregion #region AttachLoadBalancers /// <summary> /// <note> /// <para> /// This API operation is superseded by <a>AttachTrafficSources</a>, which can attach /// multiple traffic sources types. We recommend using <code>AttachTrafficSources</code> /// to simplify how you manage traffic sources. However, we continue to support <code>AttachLoadBalancers</code>. /// You can use both the original <code>AttachLoadBalancers</code> API operation and <code>AttachTrafficSources</code> /// on the same Auto Scaling group. /// </para> /// </note> /// <para> /// Attaches one or more Classic Load Balancers to the specified Auto Scaling group. Amazon /// EC2 Auto Scaling registers the running instances with these Classic Load Balancers. /// </para> /// /// <para> /// To describe the load balancers for an Auto Scaling group, call the <a>DescribeLoadBalancers</a> /// API. To detach a load balancer from the Auto Scaling group, call the <a>DetachLoadBalancers</a> /// API. /// </para> /// /// <para> /// This operation is additive and does not detach existing Classic Load Balancers or /// target groups from the Auto Scaling group. /// </para> /// /// <para> /// For more information, see <a href="https://docs.aws.amazon.com/autoscaling/ec2/userguide/autoscaling-load-balancer.html">Use /// Elastic Load Balancing to distribute traffic across the instances in your Auto Scaling /// group</a> in the <i>Amazon EC2 Auto Scaling User Guide</i>. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the AttachLoadBalancers service method.</param> /// /// <returns>The response from the AttachLoadBalancers service method, as returned by AutoScaling.</returns> /// <exception cref="Amazon.AutoScaling.Model.ResourceContentionException"> /// You already have a pending update to an Amazon EC2 Auto Scaling resource (for example, /// an Auto Scaling group, instance, or load balancer). /// </exception> /// <exception cref="Amazon.AutoScaling.Model.ServiceLinkedRoleFailureException"> /// The service-linked role is not yet ready for use. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/AttachLoadBalancers">REST API Reference for AttachLoadBalancers Operation</seealso> public virtual AttachLoadBalancersResponse AttachLoadBalancers(AttachLoadBalancersRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = AttachLoadBalancersRequestMarshaller.Instance; options.ResponseUnmarshaller = AttachLoadBalancersResponseUnmarshaller.Instance; return Invoke<AttachLoadBalancersResponse>(request, options); } /// <summary> /// <note> /// <para> /// This API operation is superseded by <a>AttachTrafficSources</a>, which can attach /// multiple traffic sources types. We recommend using <code>AttachTrafficSources</code> /// to simplify how you manage traffic sources. However, we continue to support <code>AttachLoadBalancers</code>. /// You can use both the original <code>AttachLoadBalancers</code> API operation and <code>AttachTrafficSources</code> /// on the same Auto Scaling group. /// </para> /// </note> /// <para> /// Attaches one or more Classic Load Balancers to the specified Auto Scaling group. Amazon /// EC2 Auto Scaling registers the running instances with these Classic Load Balancers. /// </para> /// /// <para> /// To describe the load balancers for an Auto Scaling group, call the <a>DescribeLoadBalancers</a> /// API. To detach a load balancer from the Auto Scaling group, call the <a>DetachLoadBalancers</a> /// API. /// </para> /// /// <para> /// This operation is additive and does not detach existing Classic Load Balancers or /// target groups from the Auto Scaling group. /// </para> /// /// <para> /// For more information, see <a href="https://docs.aws.amazon.com/autoscaling/ec2/userguide/autoscaling-load-balancer.html">Use /// Elastic Load Balancing to distribute traffic across the instances in your Auto Scaling /// group</a> in the <i>Amazon EC2 Auto Scaling User Guide</i>. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the AttachLoadBalancers service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the AttachLoadBalancers service method, as returned by AutoScaling.</returns> /// <exception cref="Amazon.AutoScaling.Model.ResourceContentionException"> /// You already have a pending update to an Amazon EC2 Auto Scaling resource (for example, /// an Auto Scaling group, instance, or load balancer). /// </exception> /// <exception cref="Amazon.AutoScaling.Model.ServiceLinkedRoleFailureException"> /// The service-linked role is not yet ready for use. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/AttachLoadBalancers">REST API Reference for AttachLoadBalancers Operation</seealso> public virtual Task<AttachLoadBalancersResponse> AttachLoadBalancersAsync(AttachLoadBalancersRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = AttachLoadBalancersRequestMarshaller.Instance; options.ResponseUnmarshaller = AttachLoadBalancersResponseUnmarshaller.Instance; return InvokeAsync<AttachLoadBalancersResponse>(request, options, cancellationToken); } #endregion #region AttachLoadBalancerTargetGroups /// <summary> /// <note> /// <para> /// This API operation is superseded by <a>AttachTrafficSources</a>, which can attach /// multiple traffic sources types. We recommend using <code>AttachTrafficSources</code> /// to simplify how you manage traffic sources. However, we continue to support <code>AttachLoadBalancerTargetGroups</code>. /// You can use both the original <code>AttachLoadBalancerTargetGroups</code> API operation /// and <code>AttachTrafficSources</code> on the same Auto Scaling group. /// </para> /// </note> /// <para> /// Attaches one or more target groups to the specified Auto Scaling group. /// </para> /// /// <para> /// This operation is used with the following load balancer types: /// </para> /// <ul> <li> /// <para> /// Application Load Balancer - Operates at the application layer (layer 7) and supports /// HTTP and HTTPS. /// </para> /// </li> <li> /// <para> /// Network Load Balancer - Operates at the transport layer (layer 4) and supports TCP, /// TLS, and UDP. /// </para> /// </li> <li> /// <para> /// Gateway Load Balancer - Operates at the network layer (layer 3). /// </para> /// </li> </ul> /// <para> /// To describe the target groups for an Auto Scaling group, call the <a>DescribeLoadBalancerTargetGroups</a> /// API. To detach the target group from the Auto Scaling group, call the <a>DetachLoadBalancerTargetGroups</a> /// API. /// </para> /// /// <para> /// This operation is additive and does not detach existing target groups or Classic Load /// Balancers from the Auto Scaling group. /// </para> /// /// <para> /// For more information, see <a href="https://docs.aws.amazon.com/autoscaling/ec2/userguide/autoscaling-load-balancer.html">Use /// Elastic Load Balancing to distribute traffic across the instances in your Auto Scaling /// group</a> in the <i>Amazon EC2 Auto Scaling User Guide</i>. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the AttachLoadBalancerTargetGroups service method.</param> /// /// <returns>The response from the AttachLoadBalancerTargetGroups service method, as returned by AutoScaling.</returns> /// <exception cref="Amazon.AutoScaling.Model.ResourceContentionException"> /// You already have a pending update to an Amazon EC2 Auto Scaling resource (for example, /// an Auto Scaling group, instance, or load balancer). /// </exception> /// <exception cref="Amazon.AutoScaling.Model.ServiceLinkedRoleFailureException"> /// The service-linked role is not yet ready for use. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/AttachLoadBalancerTargetGroups">REST API Reference for AttachLoadBalancerTargetGroups Operation</seealso> public virtual AttachLoadBalancerTargetGroupsResponse AttachLoadBalancerTargetGroups(AttachLoadBalancerTargetGroupsRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = AttachLoadBalancerTargetGroupsRequestMarshaller.Instance; options.ResponseUnmarshaller = AttachLoadBalancerTargetGroupsResponseUnmarshaller.Instance; return Invoke<AttachLoadBalancerTargetGroupsResponse>(request, options); } /// <summary> /// <note> /// <para> /// This API operation is superseded by <a>AttachTrafficSources</a>, which can attach /// multiple traffic sources types. We recommend using <code>AttachTrafficSources</code> /// to simplify how you manage traffic sources. However, we continue to support <code>AttachLoadBalancerTargetGroups</code>. /// You can use both the original <code>AttachLoadBalancerTargetGroups</code> API operation /// and <code>AttachTrafficSources</code> on the same Auto Scaling group. /// </para> /// </note> /// <para> /// Attaches one or more target groups to the specified Auto Scaling group. /// </para> /// /// <para> /// This operation is used with the following load balancer types: /// </para> /// <ul> <li> /// <para> /// Application Load Balancer - Operates at the application layer (layer 7) and supports /// HTTP and HTTPS. /// </para> /// </li> <li> /// <para> /// Network Load Balancer - Operates at the transport layer (layer 4) and supports TCP, /// TLS, and UDP. /// </para> /// </li> <li> /// <para> /// Gateway Load Balancer - Operates at the network layer (layer 3). /// </para> /// </li> </ul> /// <para> /// To describe the target groups for an Auto Scaling group, call the <a>DescribeLoadBalancerTargetGroups</a> /// API. To detach the target group from the Auto Scaling group, call the <a>DetachLoadBalancerTargetGroups</a> /// API. /// </para> /// /// <para> /// This operation is additive and does not detach existing target groups or Classic Load /// Balancers from the Auto Scaling group. /// </para> /// /// <para> /// For more information, see <a href="https://docs.aws.amazon.com/autoscaling/ec2/userguide/autoscaling-load-balancer.html">Use /// Elastic Load Balancing to distribute traffic across the instances in your Auto Scaling /// group</a> in the <i>Amazon EC2 Auto Scaling User Guide</i>. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the AttachLoadBalancerTargetGroups service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the AttachLoadBalancerTargetGroups service method, as returned by AutoScaling.</returns> /// <exception cref="Amazon.AutoScaling.Model.ResourceContentionException"> /// You already have a pending update to an Amazon EC2 Auto Scaling resource (for example, /// an Auto Scaling group, instance, or load balancer). /// </exception> /// <exception cref="Amazon.AutoScaling.Model.ServiceLinkedRoleFailureException"> /// The service-linked role is not yet ready for use. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/AttachLoadBalancerTargetGroups">REST API Reference for AttachLoadBalancerTargetGroups Operation</seealso> public virtual Task<AttachLoadBalancerTargetGroupsResponse> AttachLoadBalancerTargetGroupsAsync(AttachLoadBalancerTargetGroupsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = AttachLoadBalancerTargetGroupsRequestMarshaller.Instance; options.ResponseUnmarshaller = AttachLoadBalancerTargetGroupsResponseUnmarshaller.Instance; return InvokeAsync<AttachLoadBalancerTargetGroupsResponse>(request, options, cancellationToken); } #endregion #region AttachTrafficSources /// <summary> /// Attaches one or more traffic sources to the specified Auto Scaling group. /// /// /// <para> /// You can use any of the following as traffic sources for an Auto Scaling group: /// </para> /// <ul> <li> /// <para> /// Application Load Balancer /// </para> /// </li> <li> /// <para> /// Classic Load Balancer /// </para> /// </li> <li> /// <para> /// Gateway Load Balancer /// </para> /// </li> <li> /// <para> /// Network Load Balancer /// </para> /// </li> <li> /// <para> /// VPC Lattice /// </para> /// </li> </ul> /// <para> /// This operation is additive and does not detach existing traffic sources from the Auto /// Scaling group. /// </para> /// /// <para> /// After the operation completes, use the <a>DescribeTrafficSources</a> API to return /// details about the state of the attachments between traffic sources and your Auto Scaling /// group. To detach a traffic source from the Auto Scaling group, call the <a>DetachTrafficSources</a> /// API. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the AttachTrafficSources service method.</param> /// /// <returns>The response from the AttachTrafficSources service method, as returned by AutoScaling.</returns> /// <exception cref="Amazon.AutoScaling.Model.ResourceContentionException"> /// You already have a pending update to an Amazon EC2 Auto Scaling resource (for example, /// an Auto Scaling group, instance, or load balancer). /// </exception> /// <exception cref="Amazon.AutoScaling.Model.ServiceLinkedRoleFailureException"> /// The service-linked role is not yet ready for use. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/AttachTrafficSources">REST API Reference for AttachTrafficSources Operation</seealso> public virtual AttachTrafficSourcesResponse AttachTrafficSources(AttachTrafficSourcesRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = AttachTrafficSourcesRequestMarshaller.Instance; options.ResponseUnmarshaller = AttachTrafficSourcesResponseUnmarshaller.Instance; return Invoke<AttachTrafficSourcesResponse>(request, options); } /// <summary> /// Attaches one or more traffic sources to the specified Auto Scaling group. /// /// /// <para> /// You can use any of the following as traffic sources for an Auto Scaling group: /// </para> /// <ul> <li> /// <para> /// Application Load Balancer /// </para> /// </li> <li> /// <para> /// Classic Load Balancer /// </para> /// </li> <li> /// <para> /// Gateway Load Balancer /// </para> /// </li> <li> /// <para> /// Network Load Balancer /// </para> /// </li> <li> /// <para> /// VPC Lattice /// </para> /// </li> </ul> /// <para> /// This operation is additive and does not detach existing traffic sources from the Auto /// Scaling group. /// </para> /// /// <para> /// After the operation completes, use the <a>DescribeTrafficSources</a> API to return /// details about the state of the attachments between traffic sources and your Auto Scaling /// group. To detach a traffic source from the Auto Scaling group, call the <a>DetachTrafficSources</a> /// API. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the AttachTrafficSources service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the AttachTrafficSources service method, as returned by AutoScaling.</returns> /// <exception cref="Amazon.AutoScaling.Model.ResourceContentionException"> /// You already have a pending update to an Amazon EC2 Auto Scaling resource (for example, /// an Auto Scaling group, instance, or load balancer). /// </exception> /// <exception cref="Amazon.AutoScaling.Model.ServiceLinkedRoleFailureException"> /// The service-linked role is not yet ready for use. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/AttachTrafficSources">REST API Reference for AttachTrafficSources Operation</seealso> public virtual Task<AttachTrafficSourcesResponse> AttachTrafficSourcesAsync(AttachTrafficSourcesRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = AttachTrafficSourcesRequestMarshaller.Instance; options.ResponseUnmarshaller = AttachTrafficSourcesResponseUnmarshaller.Instance; return InvokeAsync<AttachTrafficSourcesResponse>(request, options, cancellationToken); } #endregion #region BatchDeleteScheduledAction /// <summary> /// Deletes one or more scheduled actions for the specified Auto Scaling group. /// </summary> /// <param name="request">Container for the necessary parameters to execute the BatchDeleteScheduledAction service method.</param> /// /// <returns>The response from the BatchDeleteScheduledAction service method, as returned by AutoScaling.</returns> /// <exception cref="Amazon.AutoScaling.Model.ResourceContentionException"> /// You already have a pending update to an Amazon EC2 Auto Scaling resource (for example, /// an Auto Scaling group, instance, or load balancer). /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/BatchDeleteScheduledAction">REST API Reference for BatchDeleteScheduledAction Operation</seealso> public virtual BatchDeleteScheduledActionResponse BatchDeleteScheduledAction(BatchDeleteScheduledActionRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = BatchDeleteScheduledActionRequestMarshaller.Instance; options.ResponseUnmarshaller = BatchDeleteScheduledActionResponseUnmarshaller.Instance; return Invoke<BatchDeleteScheduledActionResponse>(request, options); } /// <summary> /// Deletes one or more scheduled actions for the specified Auto Scaling group. /// </summary> /// <param name="request">Container for the necessary parameters to execute the BatchDeleteScheduledAction service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the BatchDeleteScheduledAction service method, as returned by AutoScaling.</returns> /// <exception cref="Amazon.AutoScaling.Model.ResourceContentionException"> /// You already have a pending update to an Amazon EC2 Auto Scaling resource (for example, /// an Auto Scaling group, instance, or load balancer). /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/BatchDeleteScheduledAction">REST API Reference for BatchDeleteScheduledAction Operation</seealso> public virtual Task<BatchDeleteScheduledActionResponse> BatchDeleteScheduledActionAsync(BatchDeleteScheduledActionRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = BatchDeleteScheduledActionRequestMarshaller.Instance; options.ResponseUnmarshaller = BatchDeleteScheduledActionResponseUnmarshaller.Instance; return InvokeAsync<BatchDeleteScheduledActionResponse>(request, options, cancellationToken); } #endregion #region BatchPutScheduledUpdateGroupAction /// <summary> /// Creates or updates one or more scheduled scaling actions for an Auto Scaling group. /// </summary> /// <param name="request">Container for the necessary parameters to execute the BatchPutScheduledUpdateGroupAction service method.</param> /// /// <returns>The response from the BatchPutScheduledUpdateGroupAction service method, as returned by AutoScaling.</returns> /// <exception cref="Amazon.AutoScaling.Model.AlreadyExistsException"> /// You already have an Auto Scaling group or launch configuration with this name. /// </exception> /// <exception cref="Amazon.AutoScaling.Model.LimitExceededException"> /// You have already reached a limit for your Amazon EC2 Auto Scaling resources (for example, /// Auto Scaling groups, launch configurations, or lifecycle hooks). For more information, /// see <a href="https://docs.aws.amazon.com/autoscaling/ec2/APIReference/API_DescribeAccountLimits.html">DescribeAccountLimits</a> /// in the <i>Amazon EC2 Auto Scaling API Reference</i>. /// </exception> /// <exception cref="Amazon.AutoScaling.Model.ResourceContentionException"> /// You already have a pending update to an Amazon EC2 Auto Scaling resource (for example, /// an Auto Scaling group, instance, or load balancer). /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/BatchPutScheduledUpdateGroupAction">REST API Reference for BatchPutScheduledUpdateGroupAction Operation</seealso> public virtual BatchPutScheduledUpdateGroupActionResponse BatchPutScheduledUpdateGroupAction(BatchPutScheduledUpdateGroupActionRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = BatchPutScheduledUpdateGroupActionRequestMarshaller.Instance; options.ResponseUnmarshaller = BatchPutScheduledUpdateGroupActionResponseUnmarshaller.Instance; return Invoke<BatchPutScheduledUpdateGroupActionResponse>(request, options); } /// <summary> /// Creates or updates one or more scheduled scaling actions for an Auto Scaling group. /// </summary> /// <param name="request">Container for the necessary parameters to execute the BatchPutScheduledUpdateGroupAction service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the BatchPutScheduledUpdateGroupAction service method, as returned by AutoScaling.</returns> /// <exception cref="Amazon.AutoScaling.Model.AlreadyExistsException"> /// You already have an Auto Scaling group or launch configuration with this name. /// </exception> /// <exception cref="Amazon.AutoScaling.Model.LimitExceededException"> /// You have already reached a limit for your Amazon EC2 Auto Scaling resources (for example, /// Auto Scaling groups, launch configurations, or lifecycle hooks). For more information, /// see <a href="https://docs.aws.amazon.com/autoscaling/ec2/APIReference/API_DescribeAccountLimits.html">DescribeAccountLimits</a> /// in the <i>Amazon EC2 Auto Scaling API Reference</i>. /// </exception> /// <exception cref="Amazon.AutoScaling.Model.ResourceContentionException"> /// You already have a pending update to an Amazon EC2 Auto Scaling resource (for example, /// an Auto Scaling group, instance, or load balancer). /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/BatchPutScheduledUpdateGroupAction">REST API Reference for BatchPutScheduledUpdateGroupAction Operation</seealso> public virtual Task<BatchPutScheduledUpdateGroupActionResponse> BatchPutScheduledUpdateGroupActionAsync(BatchPutScheduledUpdateGroupActionRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = BatchPutScheduledUpdateGroupActionRequestMarshaller.Instance; options.ResponseUnmarshaller = BatchPutScheduledUpdateGroupActionResponseUnmarshaller.Instance; return InvokeAsync<BatchPutScheduledUpdateGroupActionResponse>(request, options, cancellationToken); } #endregion #region CancelInstanceRefresh /// <summary> /// Cancels an instance refresh or rollback that is in progress. If an instance refresh /// or rollback is not in progress, an <code>ActiveInstanceRefreshNotFound</code> error /// occurs. /// /// /// <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> /// When you cancel an instance refresh, this does not roll back any changes that it made. /// Use the <a>RollbackInstanceRefresh</a> API to roll back instead. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the CancelInstanceRefresh service method.</param> /// /// <returns>The response from the CancelInstanceRefresh service method, as returned by AutoScaling.</returns> /// <exception cref="Amazon.AutoScaling.Model.ActiveInstanceRefreshNotFoundException"> /// The request failed because an active instance refresh or rollback for the specified /// Auto Scaling group was not found. /// </exception> /// <exception cref="Amazon.AutoScaling.Model.LimitExceededException"> /// You have already reached a limit for your Amazon EC2 Auto Scaling resources (for example, /// Auto Scaling groups, launch configurations, or lifecycle hooks). For more information, /// see <a href="https://docs.aws.amazon.com/autoscaling/ec2/APIReference/API_DescribeAccountLimits.html">DescribeAccountLimits</a> /// in the <i>Amazon EC2 Auto Scaling API Reference</i>. /// </exception> /// <exception cref="Amazon.AutoScaling.Model.ResourceContentionException"> /// You already have a pending update to an Amazon EC2 Auto Scaling resource (for example, /// an Auto Scaling group, instance, or load balancer). /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/CancelInstanceRefresh">REST API Reference for CancelInstanceRefresh Operation</seealso> public virtual CancelInstanceRefreshResponse CancelInstanceRefresh(CancelInstanceRefreshRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = CancelInstanceRefreshRequestMarshaller.Instance; options.ResponseUnmarshaller = CancelInstanceRefreshResponseUnmarshaller.Instance; return Invoke<CancelInstanceRefreshResponse>(request, options); } /// <summary> /// Cancels an instance refresh or rollback that is in progress. If an instance refresh /// or rollback is not in progress, an <code>ActiveInstanceRefreshNotFound</code> error /// occurs. /// /// /// <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> /// When you cancel an instance refresh, this does not roll back any changes that it made. /// Use the <a>RollbackInstanceRefresh</a> API to roll back instead. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the CancelInstanceRefresh service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the CancelInstanceRefresh service method, as returned by AutoScaling.</returns> /// <exception cref="Amazon.AutoScaling.Model.ActiveInstanceRefreshNotFoundException"> /// The request failed because an active instance refresh or rollback for the specified /// Auto Scaling group was not found. /// </exception> /// <exception cref="Amazon.AutoScaling.Model.LimitExceededException"> /// You have already reached a limit for your Amazon EC2 Auto Scaling resources (for example, /// Auto Scaling groups, launch configurations, or lifecycle hooks). For more information, /// see <a href="https://docs.aws.amazon.com/autoscaling/ec2/APIReference/API_DescribeAccountLimits.html">DescribeAccountLimits</a> /// in the <i>Amazon EC2 Auto Scaling API Reference</i>. /// </exception> /// <exception cref="Amazon.AutoScaling.Model.ResourceContentionException"> /// You already have a pending update to an Amazon EC2 Auto Scaling resource (for example, /// an Auto Scaling group, instance, or load balancer). /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/CancelInstanceRefresh">REST API Reference for CancelInstanceRefresh Operation</seealso> public virtual Task<CancelInstanceRefreshResponse> CancelInstanceRefreshAsync(CancelInstanceRefreshRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = CancelInstanceRefreshRequestMarshaller.Instance; options.ResponseUnmarshaller = CancelInstanceRefreshResponseUnmarshaller.Instance; return InvokeAsync<CancelInstanceRefreshResponse>(request, options, cancellationToken); } #endregion #region CompleteLifecycleAction /// <summary> /// Completes the lifecycle action for the specified token or instance with the specified /// result. /// /// /// <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> /// If you need more time, record the lifecycle action heartbeat to keep the instance /// in a wait state. /// </para> /// </li> <li> /// <para> /// <b>If you finish before the timeout period ends, send a callback by using the <a>CompleteLifecycleAction</a> /// API call.</b> /// </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> /// <param name="request">Container for the necessary parameters to execute the CompleteLifecycleAction service method.</param> /// /// <returns>The response from the CompleteLifecycleAction service method, as returned by AutoScaling.</returns> /// <exception cref="Amazon.AutoScaling.Model.ResourceContentionException"> /// You already have a pending update to an Amazon EC2 Auto Scaling resource (for example, /// an Auto Scaling group, instance, or load balancer). /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/CompleteLifecycleAction">REST API Reference for CompleteLifecycleAction Operation</seealso> public virtual CompleteLifecycleActionResponse CompleteLifecycleAction(CompleteLifecycleActionRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = CompleteLifecycleActionRequestMarshaller.Instance; options.ResponseUnmarshaller = CompleteLifecycleActionResponseUnmarshaller.Instance; return Invoke<CompleteLifecycleActionResponse>(request, options); } /// <summary> /// Completes the lifecycle action for the specified token or instance with the specified /// result. /// /// /// <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> /// If you need more time, record the lifecycle action heartbeat to keep the instance /// in a wait state. /// </para> /// </li> <li> /// <para> /// <b>If you finish before the timeout period ends, send a callback by using the <a>CompleteLifecycleAction</a> /// API call.</b> /// </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> /// <param name="request">Container for the necessary parameters to execute the CompleteLifecycleAction service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the CompleteLifecycleAction service method, as returned by AutoScaling.</returns> /// <exception cref="Amazon.AutoScaling.Model.ResourceContentionException"> /// You already have a pending update to an Amazon EC2 Auto Scaling resource (for example, /// an Auto Scaling group, instance, or load balancer). /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/CompleteLifecycleAction">REST API Reference for CompleteLifecycleAction Operation</seealso> public virtual Task<CompleteLifecycleActionResponse> CompleteLifecycleActionAsync(CompleteLifecycleActionRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = CompleteLifecycleActionRequestMarshaller.Instance; options.ResponseUnmarshaller = CompleteLifecycleActionResponseUnmarshaller.Instance; return InvokeAsync<CompleteLifecycleActionResponse>(request, options, cancellationToken); } #endregion #region CreateAutoScalingGroup /// <summary> /// <b>We strongly recommend using a launch template when calling this operation to ensure /// full functionality for Amazon EC2 Auto Scaling and Amazon EC2.</b> /// /// /// <para> /// Creates an Auto Scaling group with the specified name and attributes. /// </para> /// /// <para> /// If you exceed your maximum limit of Auto Scaling groups, the call fails. To query /// this limit, call the <a>DescribeAccountLimits</a> API. For information about updating /// this limit, see <a href="https://docs.aws.amazon.com/autoscaling/ec2/userguide/ec2-auto-scaling-quotas.html">Quotas /// for Amazon EC2 Auto Scaling</a> in the <i>Amazon EC2 Auto Scaling User Guide</i>. /// </para> /// /// <para> /// For introductory exercises for creating an Auto Scaling group, see <a href="https://docs.aws.amazon.com/autoscaling/ec2/userguide/GettingStartedTutorial.html">Getting /// started with Amazon EC2 Auto Scaling</a> and <a href="https://docs.aws.amazon.com/autoscaling/ec2/userguide/as-register-lbs-with-asg.html">Tutorial: /// Set up a scaled and load-balanced application</a> in the <i>Amazon EC2 Auto Scaling /// User Guide</i>. For more information, see <a href="https://docs.aws.amazon.com/autoscaling/ec2/userguide/AutoScalingGroup.html">Auto /// Scaling groups</a> in the <i>Amazon EC2 Auto Scaling User Guide</i>. /// </para> /// /// <para> /// Every Auto Scaling group has three size properties (<code>DesiredCapacity</code>, /// <code>MaxSize</code>, and <code>MinSize</code>). Usually, you set these sizes based /// on a specific number of instances. However, if you configure a mixed instances policy /// that defines weights for the instance types, you must specify these sizes with the /// same units that you use for weighting instances. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the CreateAutoScalingGroup service method.</param> /// /// <returns>The response from the CreateAutoScalingGroup service method, as returned by AutoScaling.</returns> /// <exception cref="Amazon.AutoScaling.Model.AlreadyExistsException"> /// You already have an Auto Scaling group or launch configuration with this name. /// </exception> /// <exception cref="Amazon.AutoScaling.Model.LimitExceededException"> /// You have already reached a limit for your Amazon EC2 Auto Scaling resources (for example, /// Auto Scaling groups, launch configurations, or lifecycle hooks). For more information, /// see <a href="https://docs.aws.amazon.com/autoscaling/ec2/APIReference/API_DescribeAccountLimits.html">DescribeAccountLimits</a> /// in the <i>Amazon EC2 Auto Scaling API Reference</i>. /// </exception> /// <exception cref="Amazon.AutoScaling.Model.ResourceContentionException"> /// You already have a pending update to an Amazon EC2 Auto Scaling resource (for example, /// an Auto Scaling group, instance, or load balancer). /// </exception> /// <exception cref="Amazon.AutoScaling.Model.ServiceLinkedRoleFailureException"> /// The service-linked role is not yet ready for use. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/CreateAutoScalingGroup">REST API Reference for CreateAutoScalingGroup Operation</seealso> public virtual CreateAutoScalingGroupResponse CreateAutoScalingGroup(CreateAutoScalingGroupRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = CreateAutoScalingGroupRequestMarshaller.Instance; options.ResponseUnmarshaller = CreateAutoScalingGroupResponseUnmarshaller.Instance; return Invoke<CreateAutoScalingGroupResponse>(request, options); } /// <summary> /// <b>We strongly recommend using a launch template when calling this operation to ensure /// full functionality for Amazon EC2 Auto Scaling and Amazon EC2.</b> /// /// /// <para> /// Creates an Auto Scaling group with the specified name and attributes. /// </para> /// /// <para> /// If you exceed your maximum limit of Auto Scaling groups, the call fails. To query /// this limit, call the <a>DescribeAccountLimits</a> API. For information about updating /// this limit, see <a href="https://docs.aws.amazon.com/autoscaling/ec2/userguide/ec2-auto-scaling-quotas.html">Quotas /// for Amazon EC2 Auto Scaling</a> in the <i>Amazon EC2 Auto Scaling User Guide</i>. /// </para> /// /// <para> /// For introductory exercises for creating an Auto Scaling group, see <a href="https://docs.aws.amazon.com/autoscaling/ec2/userguide/GettingStartedTutorial.html">Getting /// started with Amazon EC2 Auto Scaling</a> and <a href="https://docs.aws.amazon.com/autoscaling/ec2/userguide/as-register-lbs-with-asg.html">Tutorial: /// Set up a scaled and load-balanced application</a> in the <i>Amazon EC2 Auto Scaling /// User Guide</i>. For more information, see <a href="https://docs.aws.amazon.com/autoscaling/ec2/userguide/AutoScalingGroup.html">Auto /// Scaling groups</a> in the <i>Amazon EC2 Auto Scaling User Guide</i>. /// </para> /// /// <para> /// Every Auto Scaling group has three size properties (<code>DesiredCapacity</code>, /// <code>MaxSize</code>, and <code>MinSize</code>). Usually, you set these sizes based /// on a specific number of instances. However, if you configure a mixed instances policy /// that defines weights for the instance types, you must specify these sizes with the /// same units that you use for weighting instances. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the CreateAutoScalingGroup service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the CreateAutoScalingGroup service method, as returned by AutoScaling.</returns> /// <exception cref="Amazon.AutoScaling.Model.AlreadyExistsException"> /// You already have an Auto Scaling group or launch configuration with this name. /// </exception> /// <exception cref="Amazon.AutoScaling.Model.LimitExceededException"> /// You have already reached a limit for your Amazon EC2 Auto Scaling resources (for example, /// Auto Scaling groups, launch configurations, or lifecycle hooks). For more information, /// see <a href="https://docs.aws.amazon.com/autoscaling/ec2/APIReference/API_DescribeAccountLimits.html">DescribeAccountLimits</a> /// in the <i>Amazon EC2 Auto Scaling API Reference</i>. /// </exception> /// <exception cref="Amazon.AutoScaling.Model.ResourceContentionException"> /// You already have a pending update to an Amazon EC2 Auto Scaling resource (for example, /// an Auto Scaling group, instance, or load balancer). /// </exception> /// <exception cref="Amazon.AutoScaling.Model.ServiceLinkedRoleFailureException"> /// The service-linked role is not yet ready for use. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/CreateAutoScalingGroup">REST API Reference for CreateAutoScalingGroup Operation</seealso> public virtual Task<CreateAutoScalingGroupResponse> CreateAutoScalingGroupAsync(CreateAutoScalingGroupRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = CreateAutoScalingGroupRequestMarshaller.Instance; options.ResponseUnmarshaller = CreateAutoScalingGroupResponseUnmarshaller.Instance; return InvokeAsync<CreateAutoScalingGroupResponse>(request, options, cancellationToken); } #endregion #region CreateLaunchConfiguration /// <summary> /// Creates a launch configuration. /// /// /// <para> /// If you exceed your maximum limit of launch configurations, the call fails. To query /// this limit, call the <a>DescribeAccountLimits</a> API. For information about updating /// this limit, see <a href="https://docs.aws.amazon.com/autoscaling/ec2/userguide/ec2-auto-scaling-quotas.html">Quotas /// for Amazon EC2 Auto Scaling</a> in the <i>Amazon EC2 Auto Scaling User Guide</i>. /// </para> /// /// <para> /// For more information, see <a href="https://docs.aws.amazon.com/autoscaling/ec2/userguide/LaunchConfiguration.html">Launch /// configurations</a> in the <i>Amazon EC2 Auto Scaling User Guide</i>. /// </para> /// <note> /// <para> /// Amazon EC2 Auto Scaling configures instances launched as part of an Auto Scaling group /// using either a launch template or a launch configuration. We strongly recommend that /// you do not use launch configurations. They do not provide full functionality for Amazon /// EC2 Auto Scaling or Amazon EC2. For information about using launch templates, see /// <a href="https://docs.aws.amazon.com/autoscaling/ec2/userguide/launch-templates.html">Launch /// templates</a> in the <i>Amazon EC2 Auto Scaling User Guide</i>. /// </para> /// </note> /// </summary> /// <param name="request">Container for the necessary parameters to execute the CreateLaunchConfiguration service method.</param> /// /// <returns>The response from the CreateLaunchConfiguration service method, as returned by AutoScaling.</returns> /// <exception cref="Amazon.AutoScaling.Model.AlreadyExistsException"> /// You already have an Auto Scaling group or launch configuration with this name. /// </exception> /// <exception cref="Amazon.AutoScaling.Model.LimitExceededException"> /// You have already reached a limit for your Amazon EC2 Auto Scaling resources (for example, /// Auto Scaling groups, launch configurations, or lifecycle hooks). For more information, /// see <a href="https://docs.aws.amazon.com/autoscaling/ec2/APIReference/API_DescribeAccountLimits.html">DescribeAccountLimits</a> /// in the <i>Amazon EC2 Auto Scaling API Reference</i>. /// </exception> /// <exception cref="Amazon.AutoScaling.Model.ResourceContentionException"> /// You already have a pending update to an Amazon EC2 Auto Scaling resource (for example, /// an Auto Scaling group, instance, or load balancer). /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/CreateLaunchConfiguration">REST API Reference for CreateLaunchConfiguration Operation</seealso> public virtual CreateLaunchConfigurationResponse CreateLaunchConfiguration(CreateLaunchConfigurationRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = CreateLaunchConfigurationRequestMarshaller.Instance; options.ResponseUnmarshaller = CreateLaunchConfigurationResponseUnmarshaller.Instance; return Invoke<CreateLaunchConfigurationResponse>(request, options); } /// <summary> /// Creates a launch configuration. /// /// /// <para> /// If you exceed your maximum limit of launch configurations, the call fails. To query /// this limit, call the <a>DescribeAccountLimits</a> API. For information about updating /// this limit, see <a href="https://docs.aws.amazon.com/autoscaling/ec2/userguide/ec2-auto-scaling-quotas.html">Quotas /// for Amazon EC2 Auto Scaling</a> in the <i>Amazon EC2 Auto Scaling User Guide</i>. /// </para> /// /// <para> /// For more information, see <a href="https://docs.aws.amazon.com/autoscaling/ec2/userguide/LaunchConfiguration.html">Launch /// configurations</a> in the <i>Amazon EC2 Auto Scaling User Guide</i>. /// </para> /// <note> /// <para> /// Amazon EC2 Auto Scaling configures instances launched as part of an Auto Scaling group /// using either a launch template or a launch configuration. We strongly recommend that /// you do not use launch configurations. They do not provide full functionality for Amazon /// EC2 Auto Scaling or Amazon EC2. For information about using launch templates, see /// <a href="https://docs.aws.amazon.com/autoscaling/ec2/userguide/launch-templates.html">Launch /// templates</a> in the <i>Amazon EC2 Auto Scaling User Guide</i>. /// </para> /// </note> /// </summary> /// <param name="request">Container for the necessary parameters to execute the CreateLaunchConfiguration service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the CreateLaunchConfiguration service method, as returned by AutoScaling.</returns> /// <exception cref="Amazon.AutoScaling.Model.AlreadyExistsException"> /// You already have an Auto Scaling group or launch configuration with this name. /// </exception> /// <exception cref="Amazon.AutoScaling.Model.LimitExceededException"> /// You have already reached a limit for your Amazon EC2 Auto Scaling resources (for example, /// Auto Scaling groups, launch configurations, or lifecycle hooks). For more information, /// see <a href="https://docs.aws.amazon.com/autoscaling/ec2/APIReference/API_DescribeAccountLimits.html">DescribeAccountLimits</a> /// in the <i>Amazon EC2 Auto Scaling API Reference</i>. /// </exception> /// <exception cref="Amazon.AutoScaling.Model.ResourceContentionException"> /// You already have a pending update to an Amazon EC2 Auto Scaling resource (for example, /// an Auto Scaling group, instance, or load balancer). /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/CreateLaunchConfiguration">REST API Reference for CreateLaunchConfiguration Operation</seealso> public virtual Task<CreateLaunchConfigurationResponse> CreateLaunchConfigurationAsync(CreateLaunchConfigurationRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = CreateLaunchConfigurationRequestMarshaller.Instance; options.ResponseUnmarshaller = CreateLaunchConfigurationResponseUnmarshaller.Instance; return InvokeAsync<CreateLaunchConfigurationResponse>(request, options, cancellationToken); } #endregion #region CreateOrUpdateTags /// <summary> /// Creates or updates tags for the specified Auto Scaling group. /// /// /// <para> /// When you specify a tag with a key that already exists, the operation overwrites the /// previous tag definition, and you do not get an error message. /// </para> /// /// <para> /// For more information, see <a href="https://docs.aws.amazon.com/autoscaling/ec2/userguide/ec2-auto-scaling-tagging.html">Tag /// Auto Scaling groups and instances</a> in the <i>Amazon EC2 Auto Scaling User Guide</i>. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the CreateOrUpdateTags service method.</param> /// /// <returns>The response from the CreateOrUpdateTags service method, as returned by AutoScaling.</returns> /// <exception cref="Amazon.AutoScaling.Model.AlreadyExistsException"> /// You already have an Auto Scaling group or launch configuration with this name. /// </exception> /// <exception cref="Amazon.AutoScaling.Model.LimitExceededException"> /// You have already reached a limit for your Amazon EC2 Auto Scaling resources (for example, /// Auto Scaling groups, launch configurations, or lifecycle hooks). For more information, /// see <a href="https://docs.aws.amazon.com/autoscaling/ec2/APIReference/API_DescribeAccountLimits.html">DescribeAccountLimits</a> /// in the <i>Amazon EC2 Auto Scaling API Reference</i>. /// </exception> /// <exception cref="Amazon.AutoScaling.Model.ResourceContentionException"> /// You already have a pending update to an Amazon EC2 Auto Scaling resource (for example, /// an Auto Scaling group, instance, or load balancer). /// </exception> /// <exception cref="Amazon.AutoScaling.Model.ResourceInUseException"> /// The operation can't be performed because the resource is in use. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/CreateOrUpdateTags">REST API Reference for CreateOrUpdateTags Operation</seealso> public virtual CreateOrUpdateTagsResponse CreateOrUpdateTags(CreateOrUpdateTagsRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = CreateOrUpdateTagsRequestMarshaller.Instance; options.ResponseUnmarshaller = CreateOrUpdateTagsResponseUnmarshaller.Instance; return Invoke<CreateOrUpdateTagsResponse>(request, options); } /// <summary> /// Creates or updates tags for the specified Auto Scaling group. /// /// /// <para> /// When you specify a tag with a key that already exists, the operation overwrites the /// previous tag definition, and you do not get an error message. /// </para> /// /// <para> /// For more information, see <a href="https://docs.aws.amazon.com/autoscaling/ec2/userguide/ec2-auto-scaling-tagging.html">Tag /// Auto Scaling groups and instances</a> in the <i>Amazon EC2 Auto Scaling User Guide</i>. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the CreateOrUpdateTags service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the CreateOrUpdateTags service method, as returned by AutoScaling.</returns> /// <exception cref="Amazon.AutoScaling.Model.AlreadyExistsException"> /// You already have an Auto Scaling group or launch configuration with this name. /// </exception> /// <exception cref="Amazon.AutoScaling.Model.LimitExceededException"> /// You have already reached a limit for your Amazon EC2 Auto Scaling resources (for example, /// Auto Scaling groups, launch configurations, or lifecycle hooks). For more information, /// see <a href="https://docs.aws.amazon.com/autoscaling/ec2/APIReference/API_DescribeAccountLimits.html">DescribeAccountLimits</a> /// in the <i>Amazon EC2 Auto Scaling API Reference</i>. /// </exception> /// <exception cref="Amazon.AutoScaling.Model.ResourceContentionException"> /// You already have a pending update to an Amazon EC2 Auto Scaling resource (for example, /// an Auto Scaling group, instance, or load balancer). /// </exception> /// <exception cref="Amazon.AutoScaling.Model.ResourceInUseException"> /// The operation can't be performed because the resource is in use. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/CreateOrUpdateTags">REST API Reference for CreateOrUpdateTags Operation</seealso> public virtual Task<CreateOrUpdateTagsResponse> CreateOrUpdateTagsAsync(CreateOrUpdateTagsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = CreateOrUpdateTagsRequestMarshaller.Instance; options.ResponseUnmarshaller = CreateOrUpdateTagsResponseUnmarshaller.Instance; return InvokeAsync<CreateOrUpdateTagsResponse>(request, options, cancellationToken); } #endregion #region DeleteAutoScalingGroup /// <summary> /// Deletes the specified Auto Scaling group. /// /// /// <para> /// If the group has instances or scaling activities in progress, you must specify the /// option to force the deletion in order for it to succeed. The force delete operation /// will also terminate the EC2 instances. If the group has a warm pool, the force delete /// option also deletes the warm pool. /// </para> /// /// <para> /// To remove instances from the Auto Scaling group before deleting it, call the <a>DetachInstances</a> /// API with the list of instances and the option to decrement the desired capacity. This /// ensures that Amazon EC2 Auto Scaling does not launch replacement instances. /// </para> /// /// <para> /// To terminate all instances before deleting the Auto Scaling group, call the <a>UpdateAutoScalingGroup</a> /// API and set the minimum size and desired capacity of the Auto Scaling group to zero. /// </para> /// /// <para> /// If the group has scaling policies, deleting the group deletes the policies, the underlying /// alarm actions, and any alarm that no longer has an associated action. /// </para> /// /// <para> /// For more information, see <a href="https://docs.aws.amazon.com/autoscaling/ec2/userguide/as-process-shutdown.html">Delete /// your Auto Scaling infrastructure</a> in the <i>Amazon EC2 Auto Scaling User Guide</i>. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the DeleteAutoScalingGroup service method.</param> /// /// <returns>The response from the DeleteAutoScalingGroup service method, as returned by AutoScaling.</returns> /// <exception cref="Amazon.AutoScaling.Model.ResourceContentionException"> /// You already have a pending update to an Amazon EC2 Auto Scaling resource (for example, /// an Auto Scaling group, instance, or load balancer). /// </exception> /// <exception cref="Amazon.AutoScaling.Model.ResourceInUseException"> /// The operation can't be performed because the resource is in use. /// </exception> /// <exception cref="Amazon.AutoScaling.Model.ScalingActivityInProgressException"> /// The operation can't be performed because there are scaling activities in progress. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/DeleteAutoScalingGroup">REST API Reference for DeleteAutoScalingGroup Operation</seealso> public virtual DeleteAutoScalingGroupResponse DeleteAutoScalingGroup(DeleteAutoScalingGroupRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DeleteAutoScalingGroupRequestMarshaller.Instance; options.ResponseUnmarshaller = DeleteAutoScalingGroupResponseUnmarshaller.Instance; return Invoke<DeleteAutoScalingGroupResponse>(request, options); } /// <summary> /// Deletes the specified Auto Scaling group. /// /// /// <para> /// If the group has instances or scaling activities in progress, you must specify the /// option to force the deletion in order for it to succeed. The force delete operation /// will also terminate the EC2 instances. If the group has a warm pool, the force delete /// option also deletes the warm pool. /// </para> /// /// <para> /// To remove instances from the Auto Scaling group before deleting it, call the <a>DetachInstances</a> /// API with the list of instances and the option to decrement the desired capacity. This /// ensures that Amazon EC2 Auto Scaling does not launch replacement instances. /// </para> /// /// <para> /// To terminate all instances before deleting the Auto Scaling group, call the <a>UpdateAutoScalingGroup</a> /// API and set the minimum size and desired capacity of the Auto Scaling group to zero. /// </para> /// /// <para> /// If the group has scaling policies, deleting the group deletes the policies, the underlying /// alarm actions, and any alarm that no longer has an associated action. /// </para> /// /// <para> /// For more information, see <a href="https://docs.aws.amazon.com/autoscaling/ec2/userguide/as-process-shutdown.html">Delete /// your Auto Scaling infrastructure</a> in the <i>Amazon EC2 Auto Scaling User Guide</i>. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the DeleteAutoScalingGroup service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the DeleteAutoScalingGroup service method, as returned by AutoScaling.</returns> /// <exception cref="Amazon.AutoScaling.Model.ResourceContentionException"> /// You already have a pending update to an Amazon EC2 Auto Scaling resource (for example, /// an Auto Scaling group, instance, or load balancer). /// </exception> /// <exception cref="Amazon.AutoScaling.Model.ResourceInUseException"> /// The operation can't be performed because the resource is in use. /// </exception> /// <exception cref="Amazon.AutoScaling.Model.ScalingActivityInProgressException"> /// The operation can't be performed because there are scaling activities in progress. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/DeleteAutoScalingGroup">REST API Reference for DeleteAutoScalingGroup Operation</seealso> public virtual Task<DeleteAutoScalingGroupResponse> DeleteAutoScalingGroupAsync(DeleteAutoScalingGroupRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = DeleteAutoScalingGroupRequestMarshaller.Instance; options.ResponseUnmarshaller = DeleteAutoScalingGroupResponseUnmarshaller.Instance; return InvokeAsync<DeleteAutoScalingGroupResponse>(request, options, cancellationToken); } #endregion #region DeleteLaunchConfiguration /// <summary> /// Deletes the specified launch configuration. /// /// /// <para> /// The launch configuration must not be attached to an Auto Scaling group. When this /// call completes, the launch configuration is no longer available for use. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the DeleteLaunchConfiguration service method.</param> /// /// <returns>The response from the DeleteLaunchConfiguration service method, as returned by AutoScaling.</returns> /// <exception cref="Amazon.AutoScaling.Model.ResourceContentionException"> /// You already have a pending update to an Amazon EC2 Auto Scaling resource (for example, /// an Auto Scaling group, instance, or load balancer). /// </exception> /// <exception cref="Amazon.AutoScaling.Model.ResourceInUseException"> /// The operation can't be performed because the resource is in use. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/DeleteLaunchConfiguration">REST API Reference for DeleteLaunchConfiguration Operation</seealso> public virtual DeleteLaunchConfigurationResponse DeleteLaunchConfiguration(DeleteLaunchConfigurationRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DeleteLaunchConfigurationRequestMarshaller.Instance; options.ResponseUnmarshaller = DeleteLaunchConfigurationResponseUnmarshaller.Instance; return Invoke<DeleteLaunchConfigurationResponse>(request, options); } /// <summary> /// Deletes the specified launch configuration. /// /// /// <para> /// The launch configuration must not be attached to an Auto Scaling group. When this /// call completes, the launch configuration is no longer available for use. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the DeleteLaunchConfiguration service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the DeleteLaunchConfiguration service method, as returned by AutoScaling.</returns> /// <exception cref="Amazon.AutoScaling.Model.ResourceContentionException"> /// You already have a pending update to an Amazon EC2 Auto Scaling resource (for example, /// an Auto Scaling group, instance, or load balancer). /// </exception> /// <exception cref="Amazon.AutoScaling.Model.ResourceInUseException"> /// The operation can't be performed because the resource is in use. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/DeleteLaunchConfiguration">REST API Reference for DeleteLaunchConfiguration Operation</seealso> public virtual Task<DeleteLaunchConfigurationResponse> DeleteLaunchConfigurationAsync(DeleteLaunchConfigurationRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = DeleteLaunchConfigurationRequestMarshaller.Instance; options.ResponseUnmarshaller = DeleteLaunchConfigurationResponseUnmarshaller.Instance; return InvokeAsync<DeleteLaunchConfigurationResponse>(request, options, cancellationToken); } #endregion #region DeleteLifecycleHook /// <summary> /// Deletes the specified lifecycle hook. /// /// /// <para> /// If there are any outstanding lifecycle actions, they are completed first (<code>ABANDON</code> /// for launching instances, <code>CONTINUE</code> for terminating instances). /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the DeleteLifecycleHook service method.</param> /// /// <returns>The response from the DeleteLifecycleHook service method, as returned by AutoScaling.</returns> /// <exception cref="Amazon.AutoScaling.Model.ResourceContentionException"> /// You already have a pending update to an Amazon EC2 Auto Scaling resource (for example, /// an Auto Scaling group, instance, or load balancer). /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/DeleteLifecycleHook">REST API Reference for DeleteLifecycleHook Operation</seealso> public virtual DeleteLifecycleHookResponse DeleteLifecycleHook(DeleteLifecycleHookRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DeleteLifecycleHookRequestMarshaller.Instance; options.ResponseUnmarshaller = DeleteLifecycleHookResponseUnmarshaller.Instance; return Invoke<DeleteLifecycleHookResponse>(request, options); } /// <summary> /// Deletes the specified lifecycle hook. /// /// /// <para> /// If there are any outstanding lifecycle actions, they are completed first (<code>ABANDON</code> /// for launching instances, <code>CONTINUE</code> for terminating instances). /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the DeleteLifecycleHook service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the DeleteLifecycleHook service method, as returned by AutoScaling.</returns> /// <exception cref="Amazon.AutoScaling.Model.ResourceContentionException"> /// You already have a pending update to an Amazon EC2 Auto Scaling resource (for example, /// an Auto Scaling group, instance, or load balancer). /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/DeleteLifecycleHook">REST API Reference for DeleteLifecycleHook Operation</seealso> public virtual Task<DeleteLifecycleHookResponse> DeleteLifecycleHookAsync(DeleteLifecycleHookRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = DeleteLifecycleHookRequestMarshaller.Instance; options.ResponseUnmarshaller = DeleteLifecycleHookResponseUnmarshaller.Instance; return InvokeAsync<DeleteLifecycleHookResponse>(request, options, cancellationToken); } #endregion #region DeleteNotificationConfiguration /// <summary> /// Deletes the specified notification. /// </summary> /// <param name="request">Container for the necessary parameters to execute the DeleteNotificationConfiguration service method.</param> /// /// <returns>The response from the DeleteNotificationConfiguration service method, as returned by AutoScaling.</returns> /// <exception cref="Amazon.AutoScaling.Model.ResourceContentionException"> /// You already have a pending update to an Amazon EC2 Auto Scaling resource (for example, /// an Auto Scaling group, instance, or load balancer). /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/DeleteNotificationConfiguration">REST API Reference for DeleteNotificationConfiguration Operation</seealso> public virtual DeleteNotificationConfigurationResponse DeleteNotificationConfiguration(DeleteNotificationConfigurationRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DeleteNotificationConfigurationRequestMarshaller.Instance; options.ResponseUnmarshaller = DeleteNotificationConfigurationResponseUnmarshaller.Instance; return Invoke<DeleteNotificationConfigurationResponse>(request, options); } /// <summary> /// Deletes the specified notification. /// </summary> /// <param name="request">Container for the necessary parameters to execute the DeleteNotificationConfiguration service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the DeleteNotificationConfiguration service method, as returned by AutoScaling.</returns> /// <exception cref="Amazon.AutoScaling.Model.ResourceContentionException"> /// You already have a pending update to an Amazon EC2 Auto Scaling resource (for example, /// an Auto Scaling group, instance, or load balancer). /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/DeleteNotificationConfiguration">REST API Reference for DeleteNotificationConfiguration Operation</seealso> public virtual Task<DeleteNotificationConfigurationResponse> DeleteNotificationConfigurationAsync(DeleteNotificationConfigurationRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = DeleteNotificationConfigurationRequestMarshaller.Instance; options.ResponseUnmarshaller = DeleteNotificationConfigurationResponseUnmarshaller.Instance; return InvokeAsync<DeleteNotificationConfigurationResponse>(request, options, cancellationToken); } #endregion #region DeletePolicy /// <summary> /// Deletes the specified scaling policy. /// /// /// <para> /// Deleting either a step scaling policy or a simple scaling policy deletes the underlying /// alarm action, but does not delete the alarm, even if it no longer has an associated /// action. /// </para> /// /// <para> /// For more information, see <a href="https://docs.aws.amazon.com/autoscaling/ec2/userguide/deleting-scaling-policy.html">Deleting /// a scaling policy</a> in the <i>Amazon EC2 Auto Scaling User Guide</i>. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the DeletePolicy service method.</param> /// /// <returns>The response from the DeletePolicy service method, as returned by AutoScaling.</returns> /// <exception cref="Amazon.AutoScaling.Model.ResourceContentionException"> /// You already have a pending update to an Amazon EC2 Auto Scaling resource (for example, /// an Auto Scaling group, instance, or load balancer). /// </exception> /// <exception cref="Amazon.AutoScaling.Model.ServiceLinkedRoleFailureException"> /// The service-linked role is not yet ready for use. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/DeletePolicy">REST API Reference for DeletePolicy Operation</seealso> public virtual DeletePolicyResponse DeletePolicy(DeletePolicyRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DeletePolicyRequestMarshaller.Instance; options.ResponseUnmarshaller = DeletePolicyResponseUnmarshaller.Instance; return Invoke<DeletePolicyResponse>(request, options); } /// <summary> /// Deletes the specified scaling policy. /// /// /// <para> /// Deleting either a step scaling policy or a simple scaling policy deletes the underlying /// alarm action, but does not delete the alarm, even if it no longer has an associated /// action. /// </para> /// /// <para> /// For more information, see <a href="https://docs.aws.amazon.com/autoscaling/ec2/userguide/deleting-scaling-policy.html">Deleting /// a scaling policy</a> in the <i>Amazon EC2 Auto Scaling User Guide</i>. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the DeletePolicy service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the DeletePolicy service method, as returned by AutoScaling.</returns> /// <exception cref="Amazon.AutoScaling.Model.ResourceContentionException"> /// You already have a pending update to an Amazon EC2 Auto Scaling resource (for example, /// an Auto Scaling group, instance, or load balancer). /// </exception> /// <exception cref="Amazon.AutoScaling.Model.ServiceLinkedRoleFailureException"> /// The service-linked role is not yet ready for use. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/DeletePolicy">REST API Reference for DeletePolicy Operation</seealso> public virtual Task<DeletePolicyResponse> DeletePolicyAsync(DeletePolicyRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = DeletePolicyRequestMarshaller.Instance; options.ResponseUnmarshaller = DeletePolicyResponseUnmarshaller.Instance; return InvokeAsync<DeletePolicyResponse>(request, options, cancellationToken); } #endregion #region DeleteScheduledAction /// <summary> /// Deletes the specified scheduled action. /// </summary> /// <param name="request">Container for the necessary parameters to execute the DeleteScheduledAction service method.</param> /// /// <returns>The response from the DeleteScheduledAction service method, as returned by AutoScaling.</returns> /// <exception cref="Amazon.AutoScaling.Model.ResourceContentionException"> /// You already have a pending update to an Amazon EC2 Auto Scaling resource (for example, /// an Auto Scaling group, instance, or load balancer). /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/DeleteScheduledAction">REST API Reference for DeleteScheduledAction Operation</seealso> public virtual DeleteScheduledActionResponse DeleteScheduledAction(DeleteScheduledActionRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DeleteScheduledActionRequestMarshaller.Instance; options.ResponseUnmarshaller = DeleteScheduledActionResponseUnmarshaller.Instance; return Invoke<DeleteScheduledActionResponse>(request, options); } /// <summary> /// Deletes the specified scheduled action. /// </summary> /// <param name="request">Container for the necessary parameters to execute the DeleteScheduledAction service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the DeleteScheduledAction service method, as returned by AutoScaling.</returns> /// <exception cref="Amazon.AutoScaling.Model.ResourceContentionException"> /// You already have a pending update to an Amazon EC2 Auto Scaling resource (for example, /// an Auto Scaling group, instance, or load balancer). /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/DeleteScheduledAction">REST API Reference for DeleteScheduledAction Operation</seealso> public virtual Task<DeleteScheduledActionResponse> DeleteScheduledActionAsync(DeleteScheduledActionRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = DeleteScheduledActionRequestMarshaller.Instance; options.ResponseUnmarshaller = DeleteScheduledActionResponseUnmarshaller.Instance; return InvokeAsync<DeleteScheduledActionResponse>(request, options, cancellationToken); } #endregion #region DeleteTags /// <summary> /// Deletes the specified tags. /// </summary> /// <param name="request">Container for the necessary parameters to execute the DeleteTags service method.</param> /// /// <returns>The response from the DeleteTags service method, as returned by AutoScaling.</returns> /// <exception cref="Amazon.AutoScaling.Model.ResourceContentionException"> /// You already have a pending update to an Amazon EC2 Auto Scaling resource (for example, /// an Auto Scaling group, instance, or load balancer). /// </exception> /// <exception cref="Amazon.AutoScaling.Model.ResourceInUseException"> /// The operation can't be performed because the resource is in use. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/DeleteTags">REST API Reference for DeleteTags Operation</seealso> public virtual DeleteTagsResponse DeleteTags(DeleteTagsRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DeleteTagsRequestMarshaller.Instance; options.ResponseUnmarshaller = DeleteTagsResponseUnmarshaller.Instance; return Invoke<DeleteTagsResponse>(request, options); } /// <summary> /// Deletes the specified tags. /// </summary> /// <param name="request">Container for the necessary parameters to execute the DeleteTags service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the DeleteTags service method, as returned by AutoScaling.</returns> /// <exception cref="Amazon.AutoScaling.Model.ResourceContentionException"> /// You already have a pending update to an Amazon EC2 Auto Scaling resource (for example, /// an Auto Scaling group, instance, or load balancer). /// </exception> /// <exception cref="Amazon.AutoScaling.Model.ResourceInUseException"> /// The operation can't be performed because the resource is in use. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/DeleteTags">REST API Reference for DeleteTags Operation</seealso> public virtual Task<DeleteTagsResponse> DeleteTagsAsync(DeleteTagsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = DeleteTagsRequestMarshaller.Instance; options.ResponseUnmarshaller = DeleteTagsResponseUnmarshaller.Instance; return InvokeAsync<DeleteTagsResponse>(request, options, cancellationToken); } #endregion #region DeleteWarmPool /// <summary> /// Deletes the warm pool for the specified Auto Scaling group. /// /// /// <para> /// For more information, 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> /// </summary> /// <param name="request">Container for the necessary parameters to execute the DeleteWarmPool service method.</param> /// /// <returns>The response from the DeleteWarmPool service method, as returned by AutoScaling.</returns> /// <exception cref="Amazon.AutoScaling.Model.LimitExceededException"> /// You have already reached a limit for your Amazon EC2 Auto Scaling resources (for example, /// Auto Scaling groups, launch configurations, or lifecycle hooks). For more information, /// see <a href="https://docs.aws.amazon.com/autoscaling/ec2/APIReference/API_DescribeAccountLimits.html">DescribeAccountLimits</a> /// in the <i>Amazon EC2 Auto Scaling API Reference</i>. /// </exception> /// <exception cref="Amazon.AutoScaling.Model.ResourceContentionException"> /// You already have a pending update to an Amazon EC2 Auto Scaling resource (for example, /// an Auto Scaling group, instance, or load balancer). /// </exception> /// <exception cref="Amazon.AutoScaling.Model.ResourceInUseException"> /// The operation can't be performed because the resource is in use. /// </exception> /// <exception cref="Amazon.AutoScaling.Model.ScalingActivityInProgressException"> /// The operation can't be performed because there are scaling activities in progress. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/DeleteWarmPool">REST API Reference for DeleteWarmPool Operation</seealso> public virtual DeleteWarmPoolResponse DeleteWarmPool(DeleteWarmPoolRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DeleteWarmPoolRequestMarshaller.Instance; options.ResponseUnmarshaller = DeleteWarmPoolResponseUnmarshaller.Instance; return Invoke<DeleteWarmPoolResponse>(request, options); } /// <summary> /// Deletes the warm pool for the specified Auto Scaling group. /// /// /// <para> /// For more information, 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> /// </summary> /// <param name="request">Container for the necessary parameters to execute the DeleteWarmPool service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the DeleteWarmPool service method, as returned by AutoScaling.</returns> /// <exception cref="Amazon.AutoScaling.Model.LimitExceededException"> /// You have already reached a limit for your Amazon EC2 Auto Scaling resources (for example, /// Auto Scaling groups, launch configurations, or lifecycle hooks). For more information, /// see <a href="https://docs.aws.amazon.com/autoscaling/ec2/APIReference/API_DescribeAccountLimits.html">DescribeAccountLimits</a> /// in the <i>Amazon EC2 Auto Scaling API Reference</i>. /// </exception> /// <exception cref="Amazon.AutoScaling.Model.ResourceContentionException"> /// You already have a pending update to an Amazon EC2 Auto Scaling resource (for example, /// an Auto Scaling group, instance, or load balancer). /// </exception> /// <exception cref="Amazon.AutoScaling.Model.ResourceInUseException"> /// The operation can't be performed because the resource is in use. /// </exception> /// <exception cref="Amazon.AutoScaling.Model.ScalingActivityInProgressException"> /// The operation can't be performed because there are scaling activities in progress. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/DeleteWarmPool">REST API Reference for DeleteWarmPool Operation</seealso> public virtual Task<DeleteWarmPoolResponse> DeleteWarmPoolAsync(DeleteWarmPoolRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = DeleteWarmPoolRequestMarshaller.Instance; options.ResponseUnmarshaller = DeleteWarmPoolResponseUnmarshaller.Instance; return InvokeAsync<DeleteWarmPoolResponse>(request, options, cancellationToken); } #endregion #region DescribeAccountLimits /// <summary> /// Describes the current Amazon EC2 Auto Scaling resource quotas for your account. /// /// /// <para> /// When you establish an Amazon Web Services account, the account has initial quotas /// on the maximum number of Auto Scaling groups and launch configurations that you can /// create in a given Region. For more information, see <a href="https://docs.aws.amazon.com/autoscaling/ec2/userguide/ec2-auto-scaling-quotas.html">Quotas /// for Amazon EC2 Auto Scaling</a> in the <i>Amazon EC2 Auto Scaling User Guide</i>. /// </para> /// </summary> /// /// <returns>The response from the DescribeAccountLimits service method, as returned by AutoScaling.</returns> /// <exception cref="Amazon.AutoScaling.Model.ResourceContentionException"> /// You already have a pending update to an Amazon EC2 Auto Scaling resource (for example, /// an Auto Scaling group, instance, or load balancer). /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/DescribeAccountLimits">REST API Reference for DescribeAccountLimits Operation</seealso> public virtual DescribeAccountLimitsResponse DescribeAccountLimits() { return DescribeAccountLimits(new DescribeAccountLimitsRequest()); } /// <summary> /// Describes the current Amazon EC2 Auto Scaling resource quotas for your account. /// /// /// <para> /// When you establish an Amazon Web Services account, the account has initial quotas /// on the maximum number of Auto Scaling groups and launch configurations that you can /// create in a given Region. For more information, see <a href="https://docs.aws.amazon.com/autoscaling/ec2/userguide/ec2-auto-scaling-quotas.html">Quotas /// for Amazon EC2 Auto Scaling</a> in the <i>Amazon EC2 Auto Scaling User Guide</i>. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the DescribeAccountLimits service method.</param> /// /// <returns>The response from the DescribeAccountLimits service method, as returned by AutoScaling.</returns> /// <exception cref="Amazon.AutoScaling.Model.ResourceContentionException"> /// You already have a pending update to an Amazon EC2 Auto Scaling resource (for example, /// an Auto Scaling group, instance, or load balancer). /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/DescribeAccountLimits">REST API Reference for DescribeAccountLimits Operation</seealso> public virtual DescribeAccountLimitsResponse DescribeAccountLimits(DescribeAccountLimitsRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DescribeAccountLimitsRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribeAccountLimitsResponseUnmarshaller.Instance; return Invoke<DescribeAccountLimitsResponse>(request, options); } /// <summary> /// Describes the current Amazon EC2 Auto Scaling resource quotas for your account. /// /// /// <para> /// When you establish an Amazon Web Services account, the account has initial quotas /// on the maximum number of Auto Scaling groups and launch configurations that you can /// create in a given Region. For more information, see <a href="https://docs.aws.amazon.com/autoscaling/ec2/userguide/ec2-auto-scaling-quotas.html">Quotas /// for Amazon EC2 Auto Scaling</a> in the <i>Amazon EC2 Auto Scaling User Guide</i>. /// </para> /// </summary> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the DescribeAccountLimits service method, as returned by AutoScaling.</returns> /// <exception cref="Amazon.AutoScaling.Model.ResourceContentionException"> /// You already have a pending update to an Amazon EC2 Auto Scaling resource (for example, /// an Auto Scaling group, instance, or load balancer). /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/DescribeAccountLimits">REST API Reference for DescribeAccountLimits Operation</seealso> public virtual Task<DescribeAccountLimitsResponse> DescribeAccountLimitsAsync(System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { return DescribeAccountLimitsAsync(new DescribeAccountLimitsRequest(), cancellationToken); } /// <summary> /// Describes the current Amazon EC2 Auto Scaling resource quotas for your account. /// /// /// <para> /// When you establish an Amazon Web Services account, the account has initial quotas /// on the maximum number of Auto Scaling groups and launch configurations that you can /// create in a given Region. For more information, see <a href="https://docs.aws.amazon.com/autoscaling/ec2/userguide/ec2-auto-scaling-quotas.html">Quotas /// for Amazon EC2 Auto Scaling</a> in the <i>Amazon EC2 Auto Scaling User Guide</i>. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the DescribeAccountLimits service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the DescribeAccountLimits service method, as returned by AutoScaling.</returns> /// <exception cref="Amazon.AutoScaling.Model.ResourceContentionException"> /// You already have a pending update to an Amazon EC2 Auto Scaling resource (for example, /// an Auto Scaling group, instance, or load balancer). /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/DescribeAccountLimits">REST API Reference for DescribeAccountLimits Operation</seealso> public virtual Task<DescribeAccountLimitsResponse> DescribeAccountLimitsAsync(DescribeAccountLimitsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = DescribeAccountLimitsRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribeAccountLimitsResponseUnmarshaller.Instance; return InvokeAsync<DescribeAccountLimitsResponse>(request, options, cancellationToken); } #endregion #region DescribeAdjustmentTypes /// <summary> /// Describes the available adjustment types for step scaling and simple scaling policies. /// /// /// <para> /// The following adjustment types are supported: /// </para> /// <ul> <li> /// <para> /// <code>ChangeInCapacity</code> /// </para> /// </li> <li> /// <para> /// <code>ExactCapacity</code> /// </para> /// </li> <li> /// <para> /// <code>PercentChangeInCapacity</code> /// </para> /// </li> </ul> /// </summary> /// /// <returns>The response from the DescribeAdjustmentTypes service method, as returned by AutoScaling.</returns> /// <exception cref="Amazon.AutoScaling.Model.ResourceContentionException"> /// You already have a pending update to an Amazon EC2 Auto Scaling resource (for example, /// an Auto Scaling group, instance, or load balancer). /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/DescribeAdjustmentTypes">REST API Reference for DescribeAdjustmentTypes Operation</seealso> public virtual DescribeAdjustmentTypesResponse DescribeAdjustmentTypes() { return DescribeAdjustmentTypes(new DescribeAdjustmentTypesRequest()); } /// <summary> /// Describes the available adjustment types for step scaling and simple scaling policies. /// /// /// <para> /// The following adjustment types are supported: /// </para> /// <ul> <li> /// <para> /// <code>ChangeInCapacity</code> /// </para> /// </li> <li> /// <para> /// <code>ExactCapacity</code> /// </para> /// </li> <li> /// <para> /// <code>PercentChangeInCapacity</code> /// </para> /// </li> </ul> /// </summary> /// <param name="request">Container for the necessary parameters to execute the DescribeAdjustmentTypes service method.</param> /// /// <returns>The response from the DescribeAdjustmentTypes service method, as returned by AutoScaling.</returns> /// <exception cref="Amazon.AutoScaling.Model.ResourceContentionException"> /// You already have a pending update to an Amazon EC2 Auto Scaling resource (for example, /// an Auto Scaling group, instance, or load balancer). /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/DescribeAdjustmentTypes">REST API Reference for DescribeAdjustmentTypes Operation</seealso> public virtual DescribeAdjustmentTypesResponse DescribeAdjustmentTypes(DescribeAdjustmentTypesRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DescribeAdjustmentTypesRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribeAdjustmentTypesResponseUnmarshaller.Instance; return Invoke<DescribeAdjustmentTypesResponse>(request, options); } /// <summary> /// Describes the available adjustment types for step scaling and simple scaling policies. /// /// /// <para> /// The following adjustment types are supported: /// </para> /// <ul> <li> /// <para> /// <code>ChangeInCapacity</code> /// </para> /// </li> <li> /// <para> /// <code>ExactCapacity</code> /// </para> /// </li> <li> /// <para> /// <code>PercentChangeInCapacity</code> /// </para> /// </li> </ul> /// </summary> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the DescribeAdjustmentTypes service method, as returned by AutoScaling.</returns> /// <exception cref="Amazon.AutoScaling.Model.ResourceContentionException"> /// You already have a pending update to an Amazon EC2 Auto Scaling resource (for example, /// an Auto Scaling group, instance, or load balancer). /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/DescribeAdjustmentTypes">REST API Reference for DescribeAdjustmentTypes Operation</seealso> public virtual Task<DescribeAdjustmentTypesResponse> DescribeAdjustmentTypesAsync(System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { return DescribeAdjustmentTypesAsync(new DescribeAdjustmentTypesRequest(), cancellationToken); } /// <summary> /// Describes the available adjustment types for step scaling and simple scaling policies. /// /// /// <para> /// The following adjustment types are supported: /// </para> /// <ul> <li> /// <para> /// <code>ChangeInCapacity</code> /// </para> /// </li> <li> /// <para> /// <code>ExactCapacity</code> /// </para> /// </li> <li> /// <para> /// <code>PercentChangeInCapacity</code> /// </para> /// </li> </ul> /// </summary> /// <param name="request">Container for the necessary parameters to execute the DescribeAdjustmentTypes service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the DescribeAdjustmentTypes service method, as returned by AutoScaling.</returns> /// <exception cref="Amazon.AutoScaling.Model.ResourceContentionException"> /// You already have a pending update to an Amazon EC2 Auto Scaling resource (for example, /// an Auto Scaling group, instance, or load balancer). /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/DescribeAdjustmentTypes">REST API Reference for DescribeAdjustmentTypes Operation</seealso> public virtual Task<DescribeAdjustmentTypesResponse> DescribeAdjustmentTypesAsync(DescribeAdjustmentTypesRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = DescribeAdjustmentTypesRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribeAdjustmentTypesResponseUnmarshaller.Instance; return InvokeAsync<DescribeAdjustmentTypesResponse>(request, options, cancellationToken); } #endregion #region DescribeAutoScalingGroups /// <summary> /// Gets information about the Auto Scaling groups in the account and Region. /// /// /// <para> /// If you specify Auto Scaling group names, the output includes information for only /// the specified Auto Scaling groups. If you specify filters, the output includes information /// for only those Auto Scaling groups that meet the filter criteria. If you do not specify /// group names or filters, the output includes information for all Auto Scaling groups. /// /// </para> /// /// <para> /// This operation also returns information about instances in Auto Scaling groups. To /// retrieve information about the instances in a warm pool, you must call the <a>DescribeWarmPool</a> /// API. /// </para> /// </summary> /// /// <returns>The response from the DescribeAutoScalingGroups service method, as returned by AutoScaling.</returns> /// <exception cref="Amazon.AutoScaling.Model.InvalidNextTokenException"> /// The <code>NextToken</code> value is not valid. /// </exception> /// <exception cref="Amazon.AutoScaling.Model.ResourceContentionException"> /// You already have a pending update to an Amazon EC2 Auto Scaling resource (for example, /// an Auto Scaling group, instance, or load balancer). /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/DescribeAutoScalingGroups">REST API Reference for DescribeAutoScalingGroups Operation</seealso> public virtual DescribeAutoScalingGroupsResponse DescribeAutoScalingGroups() { return DescribeAutoScalingGroups(new DescribeAutoScalingGroupsRequest()); } /// <summary> /// Gets information about the Auto Scaling groups in the account and Region. /// /// /// <para> /// If you specify Auto Scaling group names, the output includes information for only /// the specified Auto Scaling groups. If you specify filters, the output includes information /// for only those Auto Scaling groups that meet the filter criteria. If you do not specify /// group names or filters, the output includes information for all Auto Scaling groups. /// /// </para> /// /// <para> /// This operation also returns information about instances in Auto Scaling groups. To /// retrieve information about the instances in a warm pool, you must call the <a>DescribeWarmPool</a> /// API. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the DescribeAutoScalingGroups service method.</param> /// /// <returns>The response from the DescribeAutoScalingGroups service method, as returned by AutoScaling.</returns> /// <exception cref="Amazon.AutoScaling.Model.InvalidNextTokenException"> /// The <code>NextToken</code> value is not valid. /// </exception> /// <exception cref="Amazon.AutoScaling.Model.ResourceContentionException"> /// You already have a pending update to an Amazon EC2 Auto Scaling resource (for example, /// an Auto Scaling group, instance, or load balancer). /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/DescribeAutoScalingGroups">REST API Reference for DescribeAutoScalingGroups Operation</seealso> public virtual DescribeAutoScalingGroupsResponse DescribeAutoScalingGroups(DescribeAutoScalingGroupsRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DescribeAutoScalingGroupsRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribeAutoScalingGroupsResponseUnmarshaller.Instance; return Invoke<DescribeAutoScalingGroupsResponse>(request, options); } /// <summary> /// Gets information about the Auto Scaling groups in the account and Region. /// /// /// <para> /// If you specify Auto Scaling group names, the output includes information for only /// the specified Auto Scaling groups. If you specify filters, the output includes information /// for only those Auto Scaling groups that meet the filter criteria. If you do not specify /// group names or filters, the output includes information for all Auto Scaling groups. /// /// </para> /// /// <para> /// This operation also returns information about instances in Auto Scaling groups. To /// retrieve information about the instances in a warm pool, you must call the <a>DescribeWarmPool</a> /// API. /// </para> /// </summary> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the DescribeAutoScalingGroups service method, as returned by AutoScaling.</returns> /// <exception cref="Amazon.AutoScaling.Model.InvalidNextTokenException"> /// The <code>NextToken</code> value is not valid. /// </exception> /// <exception cref="Amazon.AutoScaling.Model.ResourceContentionException"> /// You already have a pending update to an Amazon EC2 Auto Scaling resource (for example, /// an Auto Scaling group, instance, or load balancer). /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/DescribeAutoScalingGroups">REST API Reference for DescribeAutoScalingGroups Operation</seealso> public virtual Task<DescribeAutoScalingGroupsResponse> DescribeAutoScalingGroupsAsync(System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { return DescribeAutoScalingGroupsAsync(new DescribeAutoScalingGroupsRequest(), cancellationToken); } /// <summary> /// Gets information about the Auto Scaling groups in the account and Region. /// /// /// <para> /// If you specify Auto Scaling group names, the output includes information for only /// the specified Auto Scaling groups. If you specify filters, the output includes information /// for only those Auto Scaling groups that meet the filter criteria. If you do not specify /// group names or filters, the output includes information for all Auto Scaling groups. /// /// </para> /// /// <para> /// This operation also returns information about instances in Auto Scaling groups. To /// retrieve information about the instances in a warm pool, you must call the <a>DescribeWarmPool</a> /// API. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the DescribeAutoScalingGroups service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the DescribeAutoScalingGroups service method, as returned by AutoScaling.</returns> /// <exception cref="Amazon.AutoScaling.Model.InvalidNextTokenException"> /// The <code>NextToken</code> value is not valid. /// </exception> /// <exception cref="Amazon.AutoScaling.Model.ResourceContentionException"> /// You already have a pending update to an Amazon EC2 Auto Scaling resource (for example, /// an Auto Scaling group, instance, or load balancer). /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/DescribeAutoScalingGroups">REST API Reference for DescribeAutoScalingGroups Operation</seealso> public virtual Task<DescribeAutoScalingGroupsResponse> DescribeAutoScalingGroupsAsync(DescribeAutoScalingGroupsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = DescribeAutoScalingGroupsRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribeAutoScalingGroupsResponseUnmarshaller.Instance; return InvokeAsync<DescribeAutoScalingGroupsResponse>(request, options, cancellationToken); } #endregion #region DescribeAutoScalingInstances /// <summary> /// Gets information about the Auto Scaling instances in the account and Region. /// </summary> /// /// <returns>The response from the DescribeAutoScalingInstances service method, as returned by AutoScaling.</returns> /// <exception cref="Amazon.AutoScaling.Model.InvalidNextTokenException"> /// The <code>NextToken</code> value is not valid. /// </exception> /// <exception cref="Amazon.AutoScaling.Model.ResourceContentionException"> /// You already have a pending update to an Amazon EC2 Auto Scaling resource (for example, /// an Auto Scaling group, instance, or load balancer). /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/DescribeAutoScalingInstances">REST API Reference for DescribeAutoScalingInstances Operation</seealso> public virtual DescribeAutoScalingInstancesResponse DescribeAutoScalingInstances() { return DescribeAutoScalingInstances(new DescribeAutoScalingInstancesRequest()); } /// <summary> /// Gets information about the Auto Scaling instances in the account and Region. /// </summary> /// <param name="request">Container for the necessary parameters to execute the DescribeAutoScalingInstances service method.</param> /// /// <returns>The response from the DescribeAutoScalingInstances service method, as returned by AutoScaling.</returns> /// <exception cref="Amazon.AutoScaling.Model.InvalidNextTokenException"> /// The <code>NextToken</code> value is not valid. /// </exception> /// <exception cref="Amazon.AutoScaling.Model.ResourceContentionException"> /// You already have a pending update to an Amazon EC2 Auto Scaling resource (for example, /// an Auto Scaling group, instance, or load balancer). /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/DescribeAutoScalingInstances">REST API Reference for DescribeAutoScalingInstances Operation</seealso> public virtual DescribeAutoScalingInstancesResponse DescribeAutoScalingInstances(DescribeAutoScalingInstancesRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DescribeAutoScalingInstancesRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribeAutoScalingInstancesResponseUnmarshaller.Instance; return Invoke<DescribeAutoScalingInstancesResponse>(request, options); } /// <summary> /// Gets information about the Auto Scaling instances in the account and Region. /// </summary> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the DescribeAutoScalingInstances service method, as returned by AutoScaling.</returns> /// <exception cref="Amazon.AutoScaling.Model.InvalidNextTokenException"> /// The <code>NextToken</code> value is not valid. /// </exception> /// <exception cref="Amazon.AutoScaling.Model.ResourceContentionException"> /// You already have a pending update to an Amazon EC2 Auto Scaling resource (for example, /// an Auto Scaling group, instance, or load balancer). /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/DescribeAutoScalingInstances">REST API Reference for DescribeAutoScalingInstances Operation</seealso> public virtual Task<DescribeAutoScalingInstancesResponse> DescribeAutoScalingInstancesAsync(System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { return DescribeAutoScalingInstancesAsync(new DescribeAutoScalingInstancesRequest(), cancellationToken); } /// <summary> /// Gets information about the Auto Scaling instances in the account and Region. /// </summary> /// <param name="request">Container for the necessary parameters to execute the DescribeAutoScalingInstances service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the DescribeAutoScalingInstances service method, as returned by AutoScaling.</returns> /// <exception cref="Amazon.AutoScaling.Model.InvalidNextTokenException"> /// The <code>NextToken</code> value is not valid. /// </exception> /// <exception cref="Amazon.AutoScaling.Model.ResourceContentionException"> /// You already have a pending update to an Amazon EC2 Auto Scaling resource (for example, /// an Auto Scaling group, instance, or load balancer). /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/DescribeAutoScalingInstances">REST API Reference for DescribeAutoScalingInstances Operation</seealso> public virtual Task<DescribeAutoScalingInstancesResponse> DescribeAutoScalingInstancesAsync(DescribeAutoScalingInstancesRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = DescribeAutoScalingInstancesRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribeAutoScalingInstancesResponseUnmarshaller.Instance; return InvokeAsync<DescribeAutoScalingInstancesResponse>(request, options, cancellationToken); } #endregion #region DescribeAutoScalingNotificationTypes /// <summary> /// Describes the notification types that are supported by Amazon EC2 Auto Scaling. /// </summary> /// /// <returns>The response from the DescribeAutoScalingNotificationTypes service method, as returned by AutoScaling.</returns> /// <exception cref="Amazon.AutoScaling.Model.ResourceContentionException"> /// You already have a pending update to an Amazon EC2 Auto Scaling resource (for example, /// an Auto Scaling group, instance, or load balancer). /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/DescribeAutoScalingNotificationTypes">REST API Reference for DescribeAutoScalingNotificationTypes Operation</seealso> public virtual DescribeAutoScalingNotificationTypesResponse DescribeAutoScalingNotificationTypes() { return DescribeAutoScalingNotificationTypes(new DescribeAutoScalingNotificationTypesRequest()); } /// <summary> /// Describes the notification types that are supported by Amazon EC2 Auto Scaling. /// </summary> /// <param name="request">Container for the necessary parameters to execute the DescribeAutoScalingNotificationTypes service method.</param> /// /// <returns>The response from the DescribeAutoScalingNotificationTypes service method, as returned by AutoScaling.</returns> /// <exception cref="Amazon.AutoScaling.Model.ResourceContentionException"> /// You already have a pending update to an Amazon EC2 Auto Scaling resource (for example, /// an Auto Scaling group, instance, or load balancer). /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/DescribeAutoScalingNotificationTypes">REST API Reference for DescribeAutoScalingNotificationTypes Operation</seealso> public virtual DescribeAutoScalingNotificationTypesResponse DescribeAutoScalingNotificationTypes(DescribeAutoScalingNotificationTypesRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DescribeAutoScalingNotificationTypesRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribeAutoScalingNotificationTypesResponseUnmarshaller.Instance; return Invoke<DescribeAutoScalingNotificationTypesResponse>(request, options); } /// <summary> /// Describes the notification types that are supported by Amazon EC2 Auto Scaling. /// </summary> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the DescribeAutoScalingNotificationTypes service method, as returned by AutoScaling.</returns> /// <exception cref="Amazon.AutoScaling.Model.ResourceContentionException"> /// You already have a pending update to an Amazon EC2 Auto Scaling resource (for example, /// an Auto Scaling group, instance, or load balancer). /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/DescribeAutoScalingNotificationTypes">REST API Reference for DescribeAutoScalingNotificationTypes Operation</seealso> public virtual Task<DescribeAutoScalingNotificationTypesResponse> DescribeAutoScalingNotificationTypesAsync(System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { return DescribeAutoScalingNotificationTypesAsync(new DescribeAutoScalingNotificationTypesRequest(), cancellationToken); } /// <summary> /// Describes the notification types that are supported by Amazon EC2 Auto Scaling. /// </summary> /// <param name="request">Container for the necessary parameters to execute the DescribeAutoScalingNotificationTypes service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the DescribeAutoScalingNotificationTypes service method, as returned by AutoScaling.</returns> /// <exception cref="Amazon.AutoScaling.Model.ResourceContentionException"> /// You already have a pending update to an Amazon EC2 Auto Scaling resource (for example, /// an Auto Scaling group, instance, or load balancer). /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/DescribeAutoScalingNotificationTypes">REST API Reference for DescribeAutoScalingNotificationTypes Operation</seealso> public virtual Task<DescribeAutoScalingNotificationTypesResponse> DescribeAutoScalingNotificationTypesAsync(DescribeAutoScalingNotificationTypesRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = DescribeAutoScalingNotificationTypesRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribeAutoScalingNotificationTypesResponseUnmarshaller.Instance; return InvokeAsync<DescribeAutoScalingNotificationTypesResponse>(request, options, cancellationToken); } #endregion #region DescribeInstanceRefreshes /// <summary> /// Gets information about the instance refreshes for the specified 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 after you make configuration changes. /// </para> /// /// <para> /// To help you determine the status of an instance refresh, Amazon EC2 Auto Scaling returns /// information about the instance refreshes you previously initiated, including their /// status, start time, end time, the percentage of the instance refresh that is complete, /// and the number of instances remaining to update before the instance refresh is complete. /// If a rollback is initiated while an instance refresh is in progress, Amazon EC2 Auto /// Scaling also returns information about the rollback of the instance refresh. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the DescribeInstanceRefreshes service method.</param> /// /// <returns>The response from the DescribeInstanceRefreshes service method, as returned by AutoScaling.</returns> /// <exception cref="Amazon.AutoScaling.Model.InvalidNextTokenException"> /// The <code>NextToken</code> value is not valid. /// </exception> /// <exception cref="Amazon.AutoScaling.Model.ResourceContentionException"> /// You already have a pending update to an Amazon EC2 Auto Scaling resource (for example, /// an Auto Scaling group, instance, or load balancer). /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/DescribeInstanceRefreshes">REST API Reference for DescribeInstanceRefreshes Operation</seealso> public virtual DescribeInstanceRefreshesResponse DescribeInstanceRefreshes(DescribeInstanceRefreshesRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DescribeInstanceRefreshesRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribeInstanceRefreshesResponseUnmarshaller.Instance; return Invoke<DescribeInstanceRefreshesResponse>(request, options); } /// <summary> /// Gets information about the instance refreshes for the specified 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 after you make configuration changes. /// </para> /// /// <para> /// To help you determine the status of an instance refresh, Amazon EC2 Auto Scaling returns /// information about the instance refreshes you previously initiated, including their /// status, start time, end time, the percentage of the instance refresh that is complete, /// and the number of instances remaining to update before the instance refresh is complete. /// If a rollback is initiated while an instance refresh is in progress, Amazon EC2 Auto /// Scaling also returns information about the rollback of the instance refresh. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the DescribeInstanceRefreshes service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the DescribeInstanceRefreshes service method, as returned by AutoScaling.</returns> /// <exception cref="Amazon.AutoScaling.Model.InvalidNextTokenException"> /// The <code>NextToken</code> value is not valid. /// </exception> /// <exception cref="Amazon.AutoScaling.Model.ResourceContentionException"> /// You already have a pending update to an Amazon EC2 Auto Scaling resource (for example, /// an Auto Scaling group, instance, or load balancer). /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/DescribeInstanceRefreshes">REST API Reference for DescribeInstanceRefreshes Operation</seealso> public virtual Task<DescribeInstanceRefreshesResponse> DescribeInstanceRefreshesAsync(DescribeInstanceRefreshesRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = DescribeInstanceRefreshesRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribeInstanceRefreshesResponseUnmarshaller.Instance; return InvokeAsync<DescribeInstanceRefreshesResponse>(request, options, cancellationToken); } #endregion #region DescribeLaunchConfigurations /// <summary> /// Gets information about the launch configurations in the account and Region. /// </summary> /// /// <returns>The response from the DescribeLaunchConfigurations service method, as returned by AutoScaling.</returns> /// <exception cref="Amazon.AutoScaling.Model.InvalidNextTokenException"> /// The <code>NextToken</code> value is not valid. /// </exception> /// <exception cref="Amazon.AutoScaling.Model.ResourceContentionException"> /// You already have a pending update to an Amazon EC2 Auto Scaling resource (for example, /// an Auto Scaling group, instance, or load balancer). /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/DescribeLaunchConfigurations">REST API Reference for DescribeLaunchConfigurations Operation</seealso> public virtual DescribeLaunchConfigurationsResponse DescribeLaunchConfigurations() { return DescribeLaunchConfigurations(new DescribeLaunchConfigurationsRequest()); } /// <summary> /// Gets information about the launch configurations in the account and Region. /// </summary> /// <param name="request">Container for the necessary parameters to execute the DescribeLaunchConfigurations service method.</param> /// /// <returns>The response from the DescribeLaunchConfigurations service method, as returned by AutoScaling.</returns> /// <exception cref="Amazon.AutoScaling.Model.InvalidNextTokenException"> /// The <code>NextToken</code> value is not valid. /// </exception> /// <exception cref="Amazon.AutoScaling.Model.ResourceContentionException"> /// You already have a pending update to an Amazon EC2 Auto Scaling resource (for example, /// an Auto Scaling group, instance, or load balancer). /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/DescribeLaunchConfigurations">REST API Reference for DescribeLaunchConfigurations Operation</seealso> public virtual DescribeLaunchConfigurationsResponse DescribeLaunchConfigurations(DescribeLaunchConfigurationsRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DescribeLaunchConfigurationsRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribeLaunchConfigurationsResponseUnmarshaller.Instance; return Invoke<DescribeLaunchConfigurationsResponse>(request, options); } /// <summary> /// Gets information about the launch configurations in the account and Region. /// </summary> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the DescribeLaunchConfigurations service method, as returned by AutoScaling.</returns> /// <exception cref="Amazon.AutoScaling.Model.InvalidNextTokenException"> /// The <code>NextToken</code> value is not valid. /// </exception> /// <exception cref="Amazon.AutoScaling.Model.ResourceContentionException"> /// You already have a pending update to an Amazon EC2 Auto Scaling resource (for example, /// an Auto Scaling group, instance, or load balancer). /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/DescribeLaunchConfigurations">REST API Reference for DescribeLaunchConfigurations Operation</seealso> public virtual Task<DescribeLaunchConfigurationsResponse> DescribeLaunchConfigurationsAsync(System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { return DescribeLaunchConfigurationsAsync(new DescribeLaunchConfigurationsRequest(), cancellationToken); } /// <summary> /// Gets information about the launch configurations in the account and Region. /// </summary> /// <param name="request">Container for the necessary parameters to execute the DescribeLaunchConfigurations service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the DescribeLaunchConfigurations service method, as returned by AutoScaling.</returns> /// <exception cref="Amazon.AutoScaling.Model.InvalidNextTokenException"> /// The <code>NextToken</code> value is not valid. /// </exception> /// <exception cref="Amazon.AutoScaling.Model.ResourceContentionException"> /// You already have a pending update to an Amazon EC2 Auto Scaling resource (for example, /// an Auto Scaling group, instance, or load balancer). /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/DescribeLaunchConfigurations">REST API Reference for DescribeLaunchConfigurations Operation</seealso> public virtual Task<DescribeLaunchConfigurationsResponse> DescribeLaunchConfigurationsAsync(DescribeLaunchConfigurationsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = DescribeLaunchConfigurationsRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribeLaunchConfigurationsResponseUnmarshaller.Instance; return InvokeAsync<DescribeLaunchConfigurationsResponse>(request, options, cancellationToken); } #endregion #region DescribeLifecycleHooks /// <summary> /// Gets information about the lifecycle hooks for the specified Auto Scaling group. /// </summary> /// <param name="request">Container for the necessary parameters to execute the DescribeLifecycleHooks service method.</param> /// /// <returns>The response from the DescribeLifecycleHooks service method, as returned by AutoScaling.</returns> /// <exception cref="Amazon.AutoScaling.Model.ResourceContentionException"> /// You already have a pending update to an Amazon EC2 Auto Scaling resource (for example, /// an Auto Scaling group, instance, or load balancer). /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/DescribeLifecycleHooks">REST API Reference for DescribeLifecycleHooks Operation</seealso> public virtual DescribeLifecycleHooksResponse DescribeLifecycleHooks(DescribeLifecycleHooksRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DescribeLifecycleHooksRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribeLifecycleHooksResponseUnmarshaller.Instance; return Invoke<DescribeLifecycleHooksResponse>(request, options); } /// <summary> /// Gets information about the lifecycle hooks for the specified Auto Scaling group. /// </summary> /// <param name="request">Container for the necessary parameters to execute the DescribeLifecycleHooks service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the DescribeLifecycleHooks service method, as returned by AutoScaling.</returns> /// <exception cref="Amazon.AutoScaling.Model.ResourceContentionException"> /// You already have a pending update to an Amazon EC2 Auto Scaling resource (for example, /// an Auto Scaling group, instance, or load balancer). /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/DescribeLifecycleHooks">REST API Reference for DescribeLifecycleHooks Operation</seealso> public virtual Task<DescribeLifecycleHooksResponse> DescribeLifecycleHooksAsync(DescribeLifecycleHooksRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = DescribeLifecycleHooksRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribeLifecycleHooksResponseUnmarshaller.Instance; return InvokeAsync<DescribeLifecycleHooksResponse>(request, options, cancellationToken); } #endregion #region DescribeLifecycleHookTypes /// <summary> /// Describes the available types of lifecycle hooks. /// /// /// <para> /// The following hook types are supported: /// </para> /// <ul> <li> /// <para> /// <code>autoscaling:EC2_INSTANCE_LAUNCHING</code> /// </para> /// </li> <li> /// <para> /// <code>autoscaling:EC2_INSTANCE_TERMINATING</code> /// </para> /// </li> </ul> /// </summary> /// <param name="request">Container for the necessary parameters to execute the DescribeLifecycleHookTypes service method.</param> /// /// <returns>The response from the DescribeLifecycleHookTypes service method, as returned by AutoScaling.</returns> /// <exception cref="Amazon.AutoScaling.Model.ResourceContentionException"> /// You already have a pending update to an Amazon EC2 Auto Scaling resource (for example, /// an Auto Scaling group, instance, or load balancer). /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/DescribeLifecycleHookTypes">REST API Reference for DescribeLifecycleHookTypes Operation</seealso> public virtual DescribeLifecycleHookTypesResponse DescribeLifecycleHookTypes(DescribeLifecycleHookTypesRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DescribeLifecycleHookTypesRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribeLifecycleHookTypesResponseUnmarshaller.Instance; return Invoke<DescribeLifecycleHookTypesResponse>(request, options); } /// <summary> /// Describes the available types of lifecycle hooks. /// /// /// <para> /// The following hook types are supported: /// </para> /// <ul> <li> /// <para> /// <code>autoscaling:EC2_INSTANCE_LAUNCHING</code> /// </para> /// </li> <li> /// <para> /// <code>autoscaling:EC2_INSTANCE_TERMINATING</code> /// </para> /// </li> </ul> /// </summary> /// <param name="request">Container for the necessary parameters to execute the DescribeLifecycleHookTypes service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the DescribeLifecycleHookTypes service method, as returned by AutoScaling.</returns> /// <exception cref="Amazon.AutoScaling.Model.ResourceContentionException"> /// You already have a pending update to an Amazon EC2 Auto Scaling resource (for example, /// an Auto Scaling group, instance, or load balancer). /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/DescribeLifecycleHookTypes">REST API Reference for DescribeLifecycleHookTypes Operation</seealso> public virtual Task<DescribeLifecycleHookTypesResponse> DescribeLifecycleHookTypesAsync(DescribeLifecycleHookTypesRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = DescribeLifecycleHookTypesRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribeLifecycleHookTypesResponseUnmarshaller.Instance; return InvokeAsync<DescribeLifecycleHookTypesResponse>(request, options, cancellationToken); } #endregion #region DescribeLoadBalancers /// <summary> /// <note> /// <para> /// This API operation is superseded by <a>DescribeTrafficSources</a>, which can describe /// multiple traffic sources types. We recommend using <code>DescribeTrafficSources</code> /// to simplify how you manage traffic sources. However, we continue to support <code>DescribeLoadBalancers</code>. /// You can use both the original <code>DescribeLoadBalancers</code> API operation and /// <code>DescribeTrafficSources</code> on the same Auto Scaling group. /// </para> /// </note> /// <para> /// Gets information about the load balancers for the specified Auto Scaling group. /// </para> /// /// <para> /// This operation describes only Classic Load Balancers. If you have Application Load /// Balancers, Network Load Balancers, or Gateway Load Balancers, use the <a>DescribeLoadBalancerTargetGroups</a> /// API instead. /// </para> /// /// <para> /// To determine the attachment status of the load balancer, use the <code>State</code> /// element in the response. When you attach a load balancer to an Auto Scaling group, /// the initial <code>State</code> value is <code>Adding</code>. The state transitions /// to <code>Added</code> after all Auto Scaling instances are registered with the load /// balancer. If Elastic Load Balancing health checks are enabled for the Auto Scaling /// group, the state transitions to <code>InService</code> after at least one Auto Scaling /// instance passes the health check. When the load balancer is in the <code>InService</code> /// state, Amazon EC2 Auto Scaling can terminate and replace any instances that are reported /// as unhealthy. If no registered instances pass the health checks, the load balancer /// doesn't enter the <code>InService</code> state. /// </para> /// /// <para> /// Load balancers also have an <code>InService</code> state if you attach them in the /// <a>CreateAutoScalingGroup</a> API call. If your load balancer state is <code>InService</code>, /// but it is not working properly, check the scaling activities by calling <a>DescribeScalingActivities</a> /// and take any corrective actions necessary. /// </para> /// /// <para> /// For help with failed health checks, see <a href="https://docs.aws.amazon.com/autoscaling/ec2/userguide/ts-as-healthchecks.html">Troubleshooting /// Amazon EC2 Auto Scaling: Health checks</a> in the <i>Amazon EC2 Auto Scaling User /// Guide</i>. For more information, see <a href="https://docs.aws.amazon.com/autoscaling/ec2/userguide/autoscaling-load-balancer.html">Use /// Elastic Load Balancing to distribute traffic across the instances in your Auto Scaling /// group</a> in the <i>Amazon EC2 Auto Scaling User Guide</i>. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the DescribeLoadBalancers service method.</param> /// /// <returns>The response from the DescribeLoadBalancers service method, as returned by AutoScaling.</returns> /// <exception cref="Amazon.AutoScaling.Model.InvalidNextTokenException"> /// The <code>NextToken</code> value is not valid. /// </exception> /// <exception cref="Amazon.AutoScaling.Model.ResourceContentionException"> /// You already have a pending update to an Amazon EC2 Auto Scaling resource (for example, /// an Auto Scaling group, instance, or load balancer). /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/DescribeLoadBalancers">REST API Reference for DescribeLoadBalancers Operation</seealso> public virtual DescribeLoadBalancersResponse DescribeLoadBalancers(DescribeLoadBalancersRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DescribeLoadBalancersRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribeLoadBalancersResponseUnmarshaller.Instance; return Invoke<DescribeLoadBalancersResponse>(request, options); } /// <summary> /// <note> /// <para> /// This API operation is superseded by <a>DescribeTrafficSources</a>, which can describe /// multiple traffic sources types. We recommend using <code>DescribeTrafficSources</code> /// to simplify how you manage traffic sources. However, we continue to support <code>DescribeLoadBalancers</code>. /// You can use both the original <code>DescribeLoadBalancers</code> API operation and /// <code>DescribeTrafficSources</code> on the same Auto Scaling group. /// </para> /// </note> /// <para> /// Gets information about the load balancers for the specified Auto Scaling group. /// </para> /// /// <para> /// This operation describes only Classic Load Balancers. If you have Application Load /// Balancers, Network Load Balancers, or Gateway Load Balancers, use the <a>DescribeLoadBalancerTargetGroups</a> /// API instead. /// </para> /// /// <para> /// To determine the attachment status of the load balancer, use the <code>State</code> /// element in the response. When you attach a load balancer to an Auto Scaling group, /// the initial <code>State</code> value is <code>Adding</code>. The state transitions /// to <code>Added</code> after all Auto Scaling instances are registered with the load /// balancer. If Elastic Load Balancing health checks are enabled for the Auto Scaling /// group, the state transitions to <code>InService</code> after at least one Auto Scaling /// instance passes the health check. When the load balancer is in the <code>InService</code> /// state, Amazon EC2 Auto Scaling can terminate and replace any instances that are reported /// as unhealthy. If no registered instances pass the health checks, the load balancer /// doesn't enter the <code>InService</code> state. /// </para> /// /// <para> /// Load balancers also have an <code>InService</code> state if you attach them in the /// <a>CreateAutoScalingGroup</a> API call. If your load balancer state is <code>InService</code>, /// but it is not working properly, check the scaling activities by calling <a>DescribeScalingActivities</a> /// and take any corrective actions necessary. /// </para> /// /// <para> /// For help with failed health checks, see <a href="https://docs.aws.amazon.com/autoscaling/ec2/userguide/ts-as-healthchecks.html">Troubleshooting /// Amazon EC2 Auto Scaling: Health checks</a> in the <i>Amazon EC2 Auto Scaling User /// Guide</i>. For more information, see <a href="https://docs.aws.amazon.com/autoscaling/ec2/userguide/autoscaling-load-balancer.html">Use /// Elastic Load Balancing to distribute traffic across the instances in your Auto Scaling /// group</a> in the <i>Amazon EC2 Auto Scaling User Guide</i>. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the DescribeLoadBalancers service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the DescribeLoadBalancers service method, as returned by AutoScaling.</returns> /// <exception cref="Amazon.AutoScaling.Model.InvalidNextTokenException"> /// The <code>NextToken</code> value is not valid. /// </exception> /// <exception cref="Amazon.AutoScaling.Model.ResourceContentionException"> /// You already have a pending update to an Amazon EC2 Auto Scaling resource (for example, /// an Auto Scaling group, instance, or load balancer). /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/DescribeLoadBalancers">REST API Reference for DescribeLoadBalancers Operation</seealso> public virtual Task<DescribeLoadBalancersResponse> DescribeLoadBalancersAsync(DescribeLoadBalancersRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = DescribeLoadBalancersRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribeLoadBalancersResponseUnmarshaller.Instance; return InvokeAsync<DescribeLoadBalancersResponse>(request, options, cancellationToken); } #endregion #region DescribeLoadBalancerTargetGroups /// <summary> /// <note> /// <para> /// This API operation is superseded by <a>DescribeTrafficSources</a>, which can describe /// multiple traffic sources types. We recommend using <code>DetachTrafficSources</code> /// to simplify how you manage traffic sources. However, we continue to support <code>DescribeLoadBalancerTargetGroups</code>. /// You can use both the original <code>DescribeLoadBalancerTargetGroups</code> API operation /// and <code>DescribeTrafficSources</code> on the same Auto Scaling group. /// </para> /// </note> /// <para> /// Gets information about the Elastic Load Balancing target groups for the specified /// Auto Scaling group. /// </para> /// /// <para> /// To determine the attachment status of the target group, use the <code>State</code> /// element in the response. When you attach a target group to an Auto Scaling group, /// the initial <code>State</code> value is <code>Adding</code>. The state transitions /// to <code>Added</code> after all Auto Scaling instances are registered with the target /// group. If Elastic Load Balancing health checks are enabled for the Auto Scaling group, /// the state transitions to <code>InService</code> after at least one Auto Scaling instance /// passes the health check. When the target group is in the <code>InService</code> state, /// Amazon EC2 Auto Scaling can terminate and replace any instances that are reported /// as unhealthy. If no registered instances pass the health checks, the target group /// doesn't enter the <code>InService</code> state. /// </para> /// /// <para> /// Target groups also have an <code>InService</code> state if you attach them in the /// <a>CreateAutoScalingGroup</a> API call. If your target group state is <code>InService</code>, /// but it is not working properly, check the scaling activities by calling <a>DescribeScalingActivities</a> /// and take any corrective actions necessary. /// </para> /// /// <para> /// For help with failed health checks, see <a href="https://docs.aws.amazon.com/autoscaling/ec2/userguide/ts-as-healthchecks.html">Troubleshooting /// Amazon EC2 Auto Scaling: Health checks</a> in the <i>Amazon EC2 Auto Scaling User /// Guide</i>. For more information, see <a href="https://docs.aws.amazon.com/autoscaling/ec2/userguide/autoscaling-load-balancer.html">Use /// Elastic Load Balancing to distribute traffic across the instances in your Auto Scaling /// group</a> in the <i>Amazon EC2 Auto Scaling User Guide</i>. /// </para> /// <note> /// <para> /// You can use this operation to describe target groups that were attached by using <a>AttachLoadBalancerTargetGroups</a>, /// but not for target groups that were attached by using <a>AttachTrafficSources</a>. /// </para> /// </note> /// </summary> /// <param name="request">Container for the necessary parameters to execute the DescribeLoadBalancerTargetGroups service method.</param> /// /// <returns>The response from the DescribeLoadBalancerTargetGroups service method, as returned by AutoScaling.</returns> /// <exception cref="Amazon.AutoScaling.Model.InvalidNextTokenException"> /// The <code>NextToken</code> value is not valid. /// </exception> /// <exception cref="Amazon.AutoScaling.Model.ResourceContentionException"> /// You already have a pending update to an Amazon EC2 Auto Scaling resource (for example, /// an Auto Scaling group, instance, or load balancer). /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/DescribeLoadBalancerTargetGroups">REST API Reference for DescribeLoadBalancerTargetGroups Operation</seealso> public virtual DescribeLoadBalancerTargetGroupsResponse DescribeLoadBalancerTargetGroups(DescribeLoadBalancerTargetGroupsRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DescribeLoadBalancerTargetGroupsRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribeLoadBalancerTargetGroupsResponseUnmarshaller.Instance; return Invoke<DescribeLoadBalancerTargetGroupsResponse>(request, options); } /// <summary> /// <note> /// <para> /// This API operation is superseded by <a>DescribeTrafficSources</a>, which can describe /// multiple traffic sources types. We recommend using <code>DetachTrafficSources</code> /// to simplify how you manage traffic sources. However, we continue to support <code>DescribeLoadBalancerTargetGroups</code>. /// You can use both the original <code>DescribeLoadBalancerTargetGroups</code> API operation /// and <code>DescribeTrafficSources</code> on the same Auto Scaling group. /// </para> /// </note> /// <para> /// Gets information about the Elastic Load Balancing target groups for the specified /// Auto Scaling group. /// </para> /// /// <para> /// To determine the attachment status of the target group, use the <code>State</code> /// element in the response. When you attach a target group to an Auto Scaling group, /// the initial <code>State</code> value is <code>Adding</code>. The state transitions /// to <code>Added</code> after all Auto Scaling instances are registered with the target /// group. If Elastic Load Balancing health checks are enabled for the Auto Scaling group, /// the state transitions to <code>InService</code> after at least one Auto Scaling instance /// passes the health check. When the target group is in the <code>InService</code> state, /// Amazon EC2 Auto Scaling can terminate and replace any instances that are reported /// as unhealthy. If no registered instances pass the health checks, the target group /// doesn't enter the <code>InService</code> state. /// </para> /// /// <para> /// Target groups also have an <code>InService</code> state if you attach them in the /// <a>CreateAutoScalingGroup</a> API call. If your target group state is <code>InService</code>, /// but it is not working properly, check the scaling activities by calling <a>DescribeScalingActivities</a> /// and take any corrective actions necessary. /// </para> /// /// <para> /// For help with failed health checks, see <a href="https://docs.aws.amazon.com/autoscaling/ec2/userguide/ts-as-healthchecks.html">Troubleshooting /// Amazon EC2 Auto Scaling: Health checks</a> in the <i>Amazon EC2 Auto Scaling User /// Guide</i>. For more information, see <a href="https://docs.aws.amazon.com/autoscaling/ec2/userguide/autoscaling-load-balancer.html">Use /// Elastic Load Balancing to distribute traffic across the instances in your Auto Scaling /// group</a> in the <i>Amazon EC2 Auto Scaling User Guide</i>. /// </para> /// <note> /// <para> /// You can use this operation to describe target groups that were attached by using <a>AttachLoadBalancerTargetGroups</a>, /// but not for target groups that were attached by using <a>AttachTrafficSources</a>. /// </para> /// </note> /// </summary> /// <param name="request">Container for the necessary parameters to execute the DescribeLoadBalancerTargetGroups service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the DescribeLoadBalancerTargetGroups service method, as returned by AutoScaling.</returns> /// <exception cref="Amazon.AutoScaling.Model.InvalidNextTokenException"> /// The <code>NextToken</code> value is not valid. /// </exception> /// <exception cref="Amazon.AutoScaling.Model.ResourceContentionException"> /// You already have a pending update to an Amazon EC2 Auto Scaling resource (for example, /// an Auto Scaling group, instance, or load balancer). /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/DescribeLoadBalancerTargetGroups">REST API Reference for DescribeLoadBalancerTargetGroups Operation</seealso> public virtual Task<DescribeLoadBalancerTargetGroupsResponse> DescribeLoadBalancerTargetGroupsAsync(DescribeLoadBalancerTargetGroupsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = DescribeLoadBalancerTargetGroupsRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribeLoadBalancerTargetGroupsResponseUnmarshaller.Instance; return InvokeAsync<DescribeLoadBalancerTargetGroupsResponse>(request, options, cancellationToken); } #endregion #region DescribeMetricCollectionTypes /// <summary> /// Describes the available CloudWatch metrics for Amazon EC2 Auto Scaling. /// </summary> /// /// <returns>The response from the DescribeMetricCollectionTypes service method, as returned by AutoScaling.</returns> /// <exception cref="Amazon.AutoScaling.Model.ResourceContentionException"> /// You already have a pending update to an Amazon EC2 Auto Scaling resource (for example, /// an Auto Scaling group, instance, or load balancer). /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/DescribeMetricCollectionTypes">REST API Reference for DescribeMetricCollectionTypes Operation</seealso> public virtual DescribeMetricCollectionTypesResponse DescribeMetricCollectionTypes() { return DescribeMetricCollectionTypes(new DescribeMetricCollectionTypesRequest()); } /// <summary> /// Describes the available CloudWatch metrics for Amazon EC2 Auto Scaling. /// </summary> /// <param name="request">Container for the necessary parameters to execute the DescribeMetricCollectionTypes service method.</param> /// /// <returns>The response from the DescribeMetricCollectionTypes service method, as returned by AutoScaling.</returns> /// <exception cref="Amazon.AutoScaling.Model.ResourceContentionException"> /// You already have a pending update to an Amazon EC2 Auto Scaling resource (for example, /// an Auto Scaling group, instance, or load balancer). /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/DescribeMetricCollectionTypes">REST API Reference for DescribeMetricCollectionTypes Operation</seealso> public virtual DescribeMetricCollectionTypesResponse DescribeMetricCollectionTypes(DescribeMetricCollectionTypesRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DescribeMetricCollectionTypesRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribeMetricCollectionTypesResponseUnmarshaller.Instance; return Invoke<DescribeMetricCollectionTypesResponse>(request, options); } /// <summary> /// Describes the available CloudWatch metrics for Amazon EC2 Auto Scaling. /// </summary> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the DescribeMetricCollectionTypes service method, as returned by AutoScaling.</returns> /// <exception cref="Amazon.AutoScaling.Model.ResourceContentionException"> /// You already have a pending update to an Amazon EC2 Auto Scaling resource (for example, /// an Auto Scaling group, instance, or load balancer). /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/DescribeMetricCollectionTypes">REST API Reference for DescribeMetricCollectionTypes Operation</seealso> public virtual Task<DescribeMetricCollectionTypesResponse> DescribeMetricCollectionTypesAsync(System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { return DescribeMetricCollectionTypesAsync(new DescribeMetricCollectionTypesRequest(), cancellationToken); } /// <summary> /// Describes the available CloudWatch metrics for Amazon EC2 Auto Scaling. /// </summary> /// <param name="request">Container for the necessary parameters to execute the DescribeMetricCollectionTypes service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the DescribeMetricCollectionTypes service method, as returned by AutoScaling.</returns> /// <exception cref="Amazon.AutoScaling.Model.ResourceContentionException"> /// You already have a pending update to an Amazon EC2 Auto Scaling resource (for example, /// an Auto Scaling group, instance, or load balancer). /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/DescribeMetricCollectionTypes">REST API Reference for DescribeMetricCollectionTypes Operation</seealso> public virtual Task<DescribeMetricCollectionTypesResponse> DescribeMetricCollectionTypesAsync(DescribeMetricCollectionTypesRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = DescribeMetricCollectionTypesRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribeMetricCollectionTypesResponseUnmarshaller.Instance; return InvokeAsync<DescribeMetricCollectionTypesResponse>(request, options, cancellationToken); } #endregion #region DescribeNotificationConfigurations /// <summary> /// Gets information about the Amazon SNS notifications that are configured for one or /// more Auto Scaling groups. /// </summary> /// /// <returns>The response from the DescribeNotificationConfigurations service method, as returned by AutoScaling.</returns> /// <exception cref="Amazon.AutoScaling.Model.InvalidNextTokenException"> /// The <code>NextToken</code> value is not valid. /// </exception> /// <exception cref="Amazon.AutoScaling.Model.ResourceContentionException"> /// You already have a pending update to an Amazon EC2 Auto Scaling resource (for example, /// an Auto Scaling group, instance, or load balancer). /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/DescribeNotificationConfigurations">REST API Reference for DescribeNotificationConfigurations Operation</seealso> public virtual DescribeNotificationConfigurationsResponse DescribeNotificationConfigurations() { return DescribeNotificationConfigurations(new DescribeNotificationConfigurationsRequest()); } /// <summary> /// Gets information about the Amazon SNS notifications that are configured for one or /// more Auto Scaling groups. /// </summary> /// <param name="request">Container for the necessary parameters to execute the DescribeNotificationConfigurations service method.</param> /// /// <returns>The response from the DescribeNotificationConfigurations service method, as returned by AutoScaling.</returns> /// <exception cref="Amazon.AutoScaling.Model.InvalidNextTokenException"> /// The <code>NextToken</code> value is not valid. /// </exception> /// <exception cref="Amazon.AutoScaling.Model.ResourceContentionException"> /// You already have a pending update to an Amazon EC2 Auto Scaling resource (for example, /// an Auto Scaling group, instance, or load balancer). /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/DescribeNotificationConfigurations">REST API Reference for DescribeNotificationConfigurations Operation</seealso> public virtual DescribeNotificationConfigurationsResponse DescribeNotificationConfigurations(DescribeNotificationConfigurationsRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DescribeNotificationConfigurationsRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribeNotificationConfigurationsResponseUnmarshaller.Instance; return Invoke<DescribeNotificationConfigurationsResponse>(request, options); } /// <summary> /// Gets information about the Amazon SNS notifications that are configured for one or /// more Auto Scaling groups. /// </summary> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the DescribeNotificationConfigurations service method, as returned by AutoScaling.</returns> /// <exception cref="Amazon.AutoScaling.Model.InvalidNextTokenException"> /// The <code>NextToken</code> value is not valid. /// </exception> /// <exception cref="Amazon.AutoScaling.Model.ResourceContentionException"> /// You already have a pending update to an Amazon EC2 Auto Scaling resource (for example, /// an Auto Scaling group, instance, or load balancer). /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/DescribeNotificationConfigurations">REST API Reference for DescribeNotificationConfigurations Operation</seealso> public virtual Task<DescribeNotificationConfigurationsResponse> DescribeNotificationConfigurationsAsync(System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { return DescribeNotificationConfigurationsAsync(new DescribeNotificationConfigurationsRequest(), cancellationToken); } /// <summary> /// Gets information about the Amazon SNS notifications that are configured for one or /// more Auto Scaling groups. /// </summary> /// <param name="request">Container for the necessary parameters to execute the DescribeNotificationConfigurations service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the DescribeNotificationConfigurations service method, as returned by AutoScaling.</returns> /// <exception cref="Amazon.AutoScaling.Model.InvalidNextTokenException"> /// The <code>NextToken</code> value is not valid. /// </exception> /// <exception cref="Amazon.AutoScaling.Model.ResourceContentionException"> /// You already have a pending update to an Amazon EC2 Auto Scaling resource (for example, /// an Auto Scaling group, instance, or load balancer). /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/DescribeNotificationConfigurations">REST API Reference for DescribeNotificationConfigurations Operation</seealso> public virtual Task<DescribeNotificationConfigurationsResponse> DescribeNotificationConfigurationsAsync(DescribeNotificationConfigurationsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = DescribeNotificationConfigurationsRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribeNotificationConfigurationsResponseUnmarshaller.Instance; return InvokeAsync<DescribeNotificationConfigurationsResponse>(request, options, cancellationToken); } #endregion #region DescribePolicies /// <summary> /// Gets information about the scaling policies in the account and Region. /// </summary> /// /// <returns>The response from the DescribePolicies service method, as returned by AutoScaling.</returns> /// <exception cref="Amazon.AutoScaling.Model.InvalidNextTokenException"> /// The <code>NextToken</code> value is not valid. /// </exception> /// <exception cref="Amazon.AutoScaling.Model.ResourceContentionException"> /// You already have a pending update to an Amazon EC2 Auto Scaling resource (for example, /// an Auto Scaling group, instance, or load balancer). /// </exception> /// <exception cref="Amazon.AutoScaling.Model.ServiceLinkedRoleFailureException"> /// The service-linked role is not yet ready for use. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/DescribePolicies">REST API Reference for DescribePolicies Operation</seealso> public virtual DescribePoliciesResponse DescribePolicies() { return DescribePolicies(new DescribePoliciesRequest()); } /// <summary> /// Gets information about the scaling policies in the account and Region. /// </summary> /// <param name="request">Container for the necessary parameters to execute the DescribePolicies service method.</param> /// /// <returns>The response from the DescribePolicies service method, as returned by AutoScaling.</returns> /// <exception cref="Amazon.AutoScaling.Model.InvalidNextTokenException"> /// The <code>NextToken</code> value is not valid. /// </exception> /// <exception cref="Amazon.AutoScaling.Model.ResourceContentionException"> /// You already have a pending update to an Amazon EC2 Auto Scaling resource (for example, /// an Auto Scaling group, instance, or load balancer). /// </exception> /// <exception cref="Amazon.AutoScaling.Model.ServiceLinkedRoleFailureException"> /// The service-linked role is not yet ready for use. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/DescribePolicies">REST API Reference for DescribePolicies Operation</seealso> public virtual DescribePoliciesResponse DescribePolicies(DescribePoliciesRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DescribePoliciesRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribePoliciesResponseUnmarshaller.Instance; return Invoke<DescribePoliciesResponse>(request, options); } /// <summary> /// Gets information about the scaling policies in the account and Region. /// </summary> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the DescribePolicies service method, as returned by AutoScaling.</returns> /// <exception cref="Amazon.AutoScaling.Model.InvalidNextTokenException"> /// The <code>NextToken</code> value is not valid. /// </exception> /// <exception cref="Amazon.AutoScaling.Model.ResourceContentionException"> /// You already have a pending update to an Amazon EC2 Auto Scaling resource (for example, /// an Auto Scaling group, instance, or load balancer). /// </exception> /// <exception cref="Amazon.AutoScaling.Model.ServiceLinkedRoleFailureException"> /// The service-linked role is not yet ready for use. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/DescribePolicies">REST API Reference for DescribePolicies Operation</seealso> public virtual Task<DescribePoliciesResponse> DescribePoliciesAsync(System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { return DescribePoliciesAsync(new DescribePoliciesRequest(), cancellationToken); } /// <summary> /// Gets information about the scaling policies in the account and Region. /// </summary> /// <param name="request">Container for the necessary parameters to execute the DescribePolicies service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the DescribePolicies service method, as returned by AutoScaling.</returns> /// <exception cref="Amazon.AutoScaling.Model.InvalidNextTokenException"> /// The <code>NextToken</code> value is not valid. /// </exception> /// <exception cref="Amazon.AutoScaling.Model.ResourceContentionException"> /// You already have a pending update to an Amazon EC2 Auto Scaling resource (for example, /// an Auto Scaling group, instance, or load balancer). /// </exception> /// <exception cref="Amazon.AutoScaling.Model.ServiceLinkedRoleFailureException"> /// The service-linked role is not yet ready for use. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/DescribePolicies">REST API Reference for DescribePolicies Operation</seealso> public virtual Task<DescribePoliciesResponse> DescribePoliciesAsync(DescribePoliciesRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = DescribePoliciesRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribePoliciesResponseUnmarshaller.Instance; return InvokeAsync<DescribePoliciesResponse>(request, options, cancellationToken); } #endregion #region DescribeScalingActivities /// <summary> /// Gets information about the scaling activities in the account and Region. /// /// /// <para> /// When scaling events occur, you see a record of the scaling activity in the scaling /// activities. For more information, see <a href="https://docs.aws.amazon.com/autoscaling/ec2/userguide/as-verify-scaling-activity.html">Verifying /// a scaling activity for an Auto Scaling group</a> in the <i>Amazon EC2 Auto Scaling /// User Guide</i>. /// </para> /// /// <para> /// If the scaling event succeeds, the value of the <code>StatusCode</code> element in /// the response is <code>Successful</code>. If an attempt to launch instances failed, /// the <code>StatusCode</code> value is <code>Failed</code> or <code>Cancelled</code> /// and the <code>StatusMessage</code> element in the response indicates the cause of /// the failure. For help interpreting the <code>StatusMessage</code>, see <a href="https://docs.aws.amazon.com/autoscaling/ec2/userguide/CHAP_Troubleshooting.html">Troubleshooting /// Amazon EC2 Auto Scaling</a> in the <i>Amazon EC2 Auto Scaling User Guide</i>. /// </para> /// </summary> /// /// <returns>The response from the DescribeScalingActivities service method, as returned by AutoScaling.</returns> /// <exception cref="Amazon.AutoScaling.Model.InvalidNextTokenException"> /// The <code>NextToken</code> value is not valid. /// </exception> /// <exception cref="Amazon.AutoScaling.Model.ResourceContentionException"> /// You already have a pending update to an Amazon EC2 Auto Scaling resource (for example, /// an Auto Scaling group, instance, or load balancer). /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/DescribeScalingActivities">REST API Reference for DescribeScalingActivities Operation</seealso> public virtual DescribeScalingActivitiesResponse DescribeScalingActivities() { return DescribeScalingActivities(new DescribeScalingActivitiesRequest()); } /// <summary> /// Gets information about the scaling activities in the account and Region. /// /// /// <para> /// When scaling events occur, you see a record of the scaling activity in the scaling /// activities. For more information, see <a href="https://docs.aws.amazon.com/autoscaling/ec2/userguide/as-verify-scaling-activity.html">Verifying /// a scaling activity for an Auto Scaling group</a> in the <i>Amazon EC2 Auto Scaling /// User Guide</i>. /// </para> /// /// <para> /// If the scaling event succeeds, the value of the <code>StatusCode</code> element in /// the response is <code>Successful</code>. If an attempt to launch instances failed, /// the <code>StatusCode</code> value is <code>Failed</code> or <code>Cancelled</code> /// and the <code>StatusMessage</code> element in the response indicates the cause of /// the failure. For help interpreting the <code>StatusMessage</code>, see <a href="https://docs.aws.amazon.com/autoscaling/ec2/userguide/CHAP_Troubleshooting.html">Troubleshooting /// Amazon EC2 Auto Scaling</a> in the <i>Amazon EC2 Auto Scaling User Guide</i>. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the DescribeScalingActivities service method.</param> /// /// <returns>The response from the DescribeScalingActivities service method, as returned by AutoScaling.</returns> /// <exception cref="Amazon.AutoScaling.Model.InvalidNextTokenException"> /// The <code>NextToken</code> value is not valid. /// </exception> /// <exception cref="Amazon.AutoScaling.Model.ResourceContentionException"> /// You already have a pending update to an Amazon EC2 Auto Scaling resource (for example, /// an Auto Scaling group, instance, or load balancer). /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/DescribeScalingActivities">REST API Reference for DescribeScalingActivities Operation</seealso> public virtual DescribeScalingActivitiesResponse DescribeScalingActivities(DescribeScalingActivitiesRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DescribeScalingActivitiesRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribeScalingActivitiesResponseUnmarshaller.Instance; return Invoke<DescribeScalingActivitiesResponse>(request, options); } /// <summary> /// Gets information about the scaling activities in the account and Region. /// /// /// <para> /// When scaling events occur, you see a record of the scaling activity in the scaling /// activities. For more information, see <a href="https://docs.aws.amazon.com/autoscaling/ec2/userguide/as-verify-scaling-activity.html">Verifying /// a scaling activity for an Auto Scaling group</a> in the <i>Amazon EC2 Auto Scaling /// User Guide</i>. /// </para> /// /// <para> /// If the scaling event succeeds, the value of the <code>StatusCode</code> element in /// the response is <code>Successful</code>. If an attempt to launch instances failed, /// the <code>StatusCode</code> value is <code>Failed</code> or <code>Cancelled</code> /// and the <code>StatusMessage</code> element in the response indicates the cause of /// the failure. For help interpreting the <code>StatusMessage</code>, see <a href="https://docs.aws.amazon.com/autoscaling/ec2/userguide/CHAP_Troubleshooting.html">Troubleshooting /// Amazon EC2 Auto Scaling</a> in the <i>Amazon EC2 Auto Scaling User Guide</i>. /// </para> /// </summary> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the DescribeScalingActivities service method, as returned by AutoScaling.</returns> /// <exception cref="Amazon.AutoScaling.Model.InvalidNextTokenException"> /// The <code>NextToken</code> value is not valid. /// </exception> /// <exception cref="Amazon.AutoScaling.Model.ResourceContentionException"> /// You already have a pending update to an Amazon EC2 Auto Scaling resource (for example, /// an Auto Scaling group, instance, or load balancer). /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/DescribeScalingActivities">REST API Reference for DescribeScalingActivities Operation</seealso> public virtual Task<DescribeScalingActivitiesResponse> DescribeScalingActivitiesAsync(System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { return DescribeScalingActivitiesAsync(new DescribeScalingActivitiesRequest(), cancellationToken); } /// <summary> /// Gets information about the scaling activities in the account and Region. /// /// /// <para> /// When scaling events occur, you see a record of the scaling activity in the scaling /// activities. For more information, see <a href="https://docs.aws.amazon.com/autoscaling/ec2/userguide/as-verify-scaling-activity.html">Verifying /// a scaling activity for an Auto Scaling group</a> in the <i>Amazon EC2 Auto Scaling /// User Guide</i>. /// </para> /// /// <para> /// If the scaling event succeeds, the value of the <code>StatusCode</code> element in /// the response is <code>Successful</code>. If an attempt to launch instances failed, /// the <code>StatusCode</code> value is <code>Failed</code> or <code>Cancelled</code> /// and the <code>StatusMessage</code> element in the response indicates the cause of /// the failure. For help interpreting the <code>StatusMessage</code>, see <a href="https://docs.aws.amazon.com/autoscaling/ec2/userguide/CHAP_Troubleshooting.html">Troubleshooting /// Amazon EC2 Auto Scaling</a> in the <i>Amazon EC2 Auto Scaling User Guide</i>. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the DescribeScalingActivities service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the DescribeScalingActivities service method, as returned by AutoScaling.</returns> /// <exception cref="Amazon.AutoScaling.Model.InvalidNextTokenException"> /// The <code>NextToken</code> value is not valid. /// </exception> /// <exception cref="Amazon.AutoScaling.Model.ResourceContentionException"> /// You already have a pending update to an Amazon EC2 Auto Scaling resource (for example, /// an Auto Scaling group, instance, or load balancer). /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/DescribeScalingActivities">REST API Reference for DescribeScalingActivities Operation</seealso> public virtual Task<DescribeScalingActivitiesResponse> DescribeScalingActivitiesAsync(DescribeScalingActivitiesRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = DescribeScalingActivitiesRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribeScalingActivitiesResponseUnmarshaller.Instance; return InvokeAsync<DescribeScalingActivitiesResponse>(request, options, cancellationToken); } #endregion #region DescribeScalingProcessTypes /// <summary> /// Describes the scaling process types for use with the <a>ResumeProcesses</a> and <a>SuspendProcesses</a> /// APIs. /// </summary> /// /// <returns>The response from the DescribeScalingProcessTypes service method, as returned by AutoScaling.</returns> /// <exception cref="Amazon.AutoScaling.Model.ResourceContentionException"> /// You already have a pending update to an Amazon EC2 Auto Scaling resource (for example, /// an Auto Scaling group, instance, or load balancer). /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/DescribeScalingProcessTypes">REST API Reference for DescribeScalingProcessTypes Operation</seealso> public virtual DescribeScalingProcessTypesResponse DescribeScalingProcessTypes() { return DescribeScalingProcessTypes(new DescribeScalingProcessTypesRequest()); } /// <summary> /// Describes the scaling process types for use with the <a>ResumeProcesses</a> and <a>SuspendProcesses</a> /// APIs. /// </summary> /// <param name="request">Container for the necessary parameters to execute the DescribeScalingProcessTypes service method.</param> /// /// <returns>The response from the DescribeScalingProcessTypes service method, as returned by AutoScaling.</returns> /// <exception cref="Amazon.AutoScaling.Model.ResourceContentionException"> /// You already have a pending update to an Amazon EC2 Auto Scaling resource (for example, /// an Auto Scaling group, instance, or load balancer). /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/DescribeScalingProcessTypes">REST API Reference for DescribeScalingProcessTypes Operation</seealso> public virtual DescribeScalingProcessTypesResponse DescribeScalingProcessTypes(DescribeScalingProcessTypesRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DescribeScalingProcessTypesRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribeScalingProcessTypesResponseUnmarshaller.Instance; return Invoke<DescribeScalingProcessTypesResponse>(request, options); } /// <summary> /// Describes the scaling process types for use with the <a>ResumeProcesses</a> and <a>SuspendProcesses</a> /// APIs. /// </summary> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the DescribeScalingProcessTypes service method, as returned by AutoScaling.</returns> /// <exception cref="Amazon.AutoScaling.Model.ResourceContentionException"> /// You already have a pending update to an Amazon EC2 Auto Scaling resource (for example, /// an Auto Scaling group, instance, or load balancer). /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/DescribeScalingProcessTypes">REST API Reference for DescribeScalingProcessTypes Operation</seealso> public virtual Task<DescribeScalingProcessTypesResponse> DescribeScalingProcessTypesAsync(System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { return DescribeScalingProcessTypesAsync(new DescribeScalingProcessTypesRequest(), cancellationToken); } /// <summary> /// Describes the scaling process types for use with the <a>ResumeProcesses</a> and <a>SuspendProcesses</a> /// APIs. /// </summary> /// <param name="request">Container for the necessary parameters to execute the DescribeScalingProcessTypes service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the DescribeScalingProcessTypes service method, as returned by AutoScaling.</returns> /// <exception cref="Amazon.AutoScaling.Model.ResourceContentionException"> /// You already have a pending update to an Amazon EC2 Auto Scaling resource (for example, /// an Auto Scaling group, instance, or load balancer). /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/DescribeScalingProcessTypes">REST API Reference for DescribeScalingProcessTypes Operation</seealso> public virtual Task<DescribeScalingProcessTypesResponse> DescribeScalingProcessTypesAsync(DescribeScalingProcessTypesRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = DescribeScalingProcessTypesRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribeScalingProcessTypesResponseUnmarshaller.Instance; return InvokeAsync<DescribeScalingProcessTypesResponse>(request, options, cancellationToken); } #endregion #region DescribeScheduledActions /// <summary> /// Gets information about the scheduled actions that haven't run or that have not reached /// their end time. /// /// /// <para> /// To describe the scaling activities for scheduled actions that have already run, call /// the <a>DescribeScalingActivities</a> API. /// </para> /// </summary> /// /// <returns>The response from the DescribeScheduledActions service method, as returned by AutoScaling.</returns> /// <exception cref="Amazon.AutoScaling.Model.InvalidNextTokenException"> /// The <code>NextToken</code> value is not valid. /// </exception> /// <exception cref="Amazon.AutoScaling.Model.ResourceContentionException"> /// You already have a pending update to an Amazon EC2 Auto Scaling resource (for example, /// an Auto Scaling group, instance, or load balancer). /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/DescribeScheduledActions">REST API Reference for DescribeScheduledActions Operation</seealso> public virtual DescribeScheduledActionsResponse DescribeScheduledActions() { return DescribeScheduledActions(new DescribeScheduledActionsRequest()); } /// <summary> /// Gets information about the scheduled actions that haven't run or that have not reached /// their end time. /// /// /// <para> /// To describe the scaling activities for scheduled actions that have already run, call /// the <a>DescribeScalingActivities</a> API. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the DescribeScheduledActions service method.</param> /// /// <returns>The response from the DescribeScheduledActions service method, as returned by AutoScaling.</returns> /// <exception cref="Amazon.AutoScaling.Model.InvalidNextTokenException"> /// The <code>NextToken</code> value is not valid. /// </exception> /// <exception cref="Amazon.AutoScaling.Model.ResourceContentionException"> /// You already have a pending update to an Amazon EC2 Auto Scaling resource (for example, /// an Auto Scaling group, instance, or load balancer). /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/DescribeScheduledActions">REST API Reference for DescribeScheduledActions Operation</seealso> public virtual DescribeScheduledActionsResponse DescribeScheduledActions(DescribeScheduledActionsRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DescribeScheduledActionsRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribeScheduledActionsResponseUnmarshaller.Instance; return Invoke<DescribeScheduledActionsResponse>(request, options); } /// <summary> /// Gets information about the scheduled actions that haven't run or that have not reached /// their end time. /// /// /// <para> /// To describe the scaling activities for scheduled actions that have already run, call /// the <a>DescribeScalingActivities</a> API. /// </para> /// </summary> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the DescribeScheduledActions service method, as returned by AutoScaling.</returns> /// <exception cref="Amazon.AutoScaling.Model.InvalidNextTokenException"> /// The <code>NextToken</code> value is not valid. /// </exception> /// <exception cref="Amazon.AutoScaling.Model.ResourceContentionException"> /// You already have a pending update to an Amazon EC2 Auto Scaling resource (for example, /// an Auto Scaling group, instance, or load balancer). /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/DescribeScheduledActions">REST API Reference for DescribeScheduledActions Operation</seealso> public virtual Task<DescribeScheduledActionsResponse> DescribeScheduledActionsAsync(System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { return DescribeScheduledActionsAsync(new DescribeScheduledActionsRequest(), cancellationToken); } /// <summary> /// Gets information about the scheduled actions that haven't run or that have not reached /// their end time. /// /// /// <para> /// To describe the scaling activities for scheduled actions that have already run, call /// the <a>DescribeScalingActivities</a> API. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the DescribeScheduledActions service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the DescribeScheduledActions service method, as returned by AutoScaling.</returns> /// <exception cref="Amazon.AutoScaling.Model.InvalidNextTokenException"> /// The <code>NextToken</code> value is not valid. /// </exception> /// <exception cref="Amazon.AutoScaling.Model.ResourceContentionException"> /// You already have a pending update to an Amazon EC2 Auto Scaling resource (for example, /// an Auto Scaling group, instance, or load balancer). /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/DescribeScheduledActions">REST API Reference for DescribeScheduledActions Operation</seealso> public virtual Task<DescribeScheduledActionsResponse> DescribeScheduledActionsAsync(DescribeScheduledActionsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = DescribeScheduledActionsRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribeScheduledActionsResponseUnmarshaller.Instance; return InvokeAsync<DescribeScheduledActionsResponse>(request, options, cancellationToken); } #endregion #region DescribeTags /// <summary> /// Describes the specified tags. /// /// /// <para> /// You can use filters to limit the results. For example, you can query for the tags /// for a specific Auto Scaling group. You can specify multiple values for a filter. A /// tag must match at least one of the specified values for it to be included in the results. /// </para> /// /// <para> /// You can also specify multiple filters. The result includes information for a particular /// tag only if it matches all the filters. If there's no match, no special message is /// returned. /// </para> /// /// <para> /// For more information, see <a href="https://docs.aws.amazon.com/autoscaling/ec2/userguide/ec2-auto-scaling-tagging.html">Tag /// Auto Scaling groups and instances</a> in the <i>Amazon EC2 Auto Scaling User Guide</i>. /// </para> /// </summary> /// /// <returns>The response from the DescribeTags service method, as returned by AutoScaling.</returns> /// <exception cref="Amazon.AutoScaling.Model.InvalidNextTokenException"> /// The <code>NextToken</code> value is not valid. /// </exception> /// <exception cref="Amazon.AutoScaling.Model.ResourceContentionException"> /// You already have a pending update to an Amazon EC2 Auto Scaling resource (for example, /// an Auto Scaling group, instance, or load balancer). /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/DescribeTags">REST API Reference for DescribeTags Operation</seealso> public virtual DescribeTagsResponse DescribeTags() { return DescribeTags(new DescribeTagsRequest()); } /// <summary> /// Describes the specified tags. /// /// /// <para> /// You can use filters to limit the results. For example, you can query for the tags /// for a specific Auto Scaling group. You can specify multiple values for a filter. A /// tag must match at least one of the specified values for it to be included in the results. /// </para> /// /// <para> /// You can also specify multiple filters. The result includes information for a particular /// tag only if it matches all the filters. If there's no match, no special message is /// returned. /// </para> /// /// <para> /// For more information, see <a href="https://docs.aws.amazon.com/autoscaling/ec2/userguide/ec2-auto-scaling-tagging.html">Tag /// Auto Scaling groups and instances</a> in the <i>Amazon EC2 Auto Scaling User Guide</i>. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the DescribeTags service method.</param> /// /// <returns>The response from the DescribeTags service method, as returned by AutoScaling.</returns> /// <exception cref="Amazon.AutoScaling.Model.InvalidNextTokenException"> /// The <code>NextToken</code> value is not valid. /// </exception> /// <exception cref="Amazon.AutoScaling.Model.ResourceContentionException"> /// You already have a pending update to an Amazon EC2 Auto Scaling resource (for example, /// an Auto Scaling group, instance, or load balancer). /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/DescribeTags">REST API Reference for DescribeTags Operation</seealso> public virtual DescribeTagsResponse DescribeTags(DescribeTagsRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DescribeTagsRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribeTagsResponseUnmarshaller.Instance; return Invoke<DescribeTagsResponse>(request, options); } /// <summary> /// Describes the specified tags. /// /// /// <para> /// You can use filters to limit the results. For example, you can query for the tags /// for a specific Auto Scaling group. You can specify multiple values for a filter. A /// tag must match at least one of the specified values for it to be included in the results. /// </para> /// /// <para> /// You can also specify multiple filters. The result includes information for a particular /// tag only if it matches all the filters. If there's no match, no special message is /// returned. /// </para> /// /// <para> /// For more information, see <a href="https://docs.aws.amazon.com/autoscaling/ec2/userguide/ec2-auto-scaling-tagging.html">Tag /// Auto Scaling groups and instances</a> in the <i>Amazon EC2 Auto Scaling User Guide</i>. /// </para> /// </summary> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the DescribeTags service method, as returned by AutoScaling.</returns> /// <exception cref="Amazon.AutoScaling.Model.InvalidNextTokenException"> /// The <code>NextToken</code> value is not valid. /// </exception> /// <exception cref="Amazon.AutoScaling.Model.ResourceContentionException"> /// You already have a pending update to an Amazon EC2 Auto Scaling resource (for example, /// an Auto Scaling group, instance, or load balancer). /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/DescribeTags">REST API Reference for DescribeTags Operation</seealso> public virtual Task<DescribeTagsResponse> DescribeTagsAsync(System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { return DescribeTagsAsync(new DescribeTagsRequest(), cancellationToken); } /// <summary> /// Describes the specified tags. /// /// /// <para> /// You can use filters to limit the results. For example, you can query for the tags /// for a specific Auto Scaling group. You can specify multiple values for a filter. A /// tag must match at least one of the specified values for it to be included in the results. /// </para> /// /// <para> /// You can also specify multiple filters. The result includes information for a particular /// tag only if it matches all the filters. If there's no match, no special message is /// returned. /// </para> /// /// <para> /// For more information, see <a href="https://docs.aws.amazon.com/autoscaling/ec2/userguide/ec2-auto-scaling-tagging.html">Tag /// Auto Scaling groups and instances</a> in the <i>Amazon EC2 Auto Scaling User Guide</i>. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the DescribeTags service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the DescribeTags service method, as returned by AutoScaling.</returns> /// <exception cref="Amazon.AutoScaling.Model.InvalidNextTokenException"> /// The <code>NextToken</code> value is not valid. /// </exception> /// <exception cref="Amazon.AutoScaling.Model.ResourceContentionException"> /// You already have a pending update to an Amazon EC2 Auto Scaling resource (for example, /// an Auto Scaling group, instance, or load balancer). /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/DescribeTags">REST API Reference for DescribeTags Operation</seealso> public virtual Task<DescribeTagsResponse> DescribeTagsAsync(DescribeTagsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = DescribeTagsRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribeTagsResponseUnmarshaller.Instance; return InvokeAsync<DescribeTagsResponse>(request, options, cancellationToken); } #endregion #region DescribeTerminationPolicyTypes /// <summary> /// Describes the termination policies supported by Amazon EC2 Auto Scaling. /// /// /// <para> /// 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> /// </summary> /// /// <returns>The response from the DescribeTerminationPolicyTypes service method, as returned by AutoScaling.</returns> /// <exception cref="Amazon.AutoScaling.Model.ResourceContentionException"> /// You already have a pending update to an Amazon EC2 Auto Scaling resource (for example, /// an Auto Scaling group, instance, or load balancer). /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/DescribeTerminationPolicyTypes">REST API Reference for DescribeTerminationPolicyTypes Operation</seealso> public virtual DescribeTerminationPolicyTypesResponse DescribeTerminationPolicyTypes() { return DescribeTerminationPolicyTypes(new DescribeTerminationPolicyTypesRequest()); } /// <summary> /// Describes the termination policies supported by Amazon EC2 Auto Scaling. /// /// /// <para> /// 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> /// </summary> /// <param name="request">Container for the necessary parameters to execute the DescribeTerminationPolicyTypes service method.</param> /// /// <returns>The response from the DescribeTerminationPolicyTypes service method, as returned by AutoScaling.</returns> /// <exception cref="Amazon.AutoScaling.Model.ResourceContentionException"> /// You already have a pending update to an Amazon EC2 Auto Scaling resource (for example, /// an Auto Scaling group, instance, or load balancer). /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/DescribeTerminationPolicyTypes">REST API Reference for DescribeTerminationPolicyTypes Operation</seealso> public virtual DescribeTerminationPolicyTypesResponse DescribeTerminationPolicyTypes(DescribeTerminationPolicyTypesRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DescribeTerminationPolicyTypesRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribeTerminationPolicyTypesResponseUnmarshaller.Instance; return Invoke<DescribeTerminationPolicyTypesResponse>(request, options); } /// <summary> /// Describes the termination policies supported by Amazon EC2 Auto Scaling. /// /// /// <para> /// 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> /// </summary> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the DescribeTerminationPolicyTypes service method, as returned by AutoScaling.</returns> /// <exception cref="Amazon.AutoScaling.Model.ResourceContentionException"> /// You already have a pending update to an Amazon EC2 Auto Scaling resource (for example, /// an Auto Scaling group, instance, or load balancer). /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/DescribeTerminationPolicyTypes">REST API Reference for DescribeTerminationPolicyTypes Operation</seealso> public virtual Task<DescribeTerminationPolicyTypesResponse> DescribeTerminationPolicyTypesAsync(System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { return DescribeTerminationPolicyTypesAsync(new DescribeTerminationPolicyTypesRequest(), cancellationToken); } /// <summary> /// Describes the termination policies supported by Amazon EC2 Auto Scaling. /// /// /// <para> /// 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> /// </summary> /// <param name="request">Container for the necessary parameters to execute the DescribeTerminationPolicyTypes service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the DescribeTerminationPolicyTypes service method, as returned by AutoScaling.</returns> /// <exception cref="Amazon.AutoScaling.Model.ResourceContentionException"> /// You already have a pending update to an Amazon EC2 Auto Scaling resource (for example, /// an Auto Scaling group, instance, or load balancer). /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/DescribeTerminationPolicyTypes">REST API Reference for DescribeTerminationPolicyTypes Operation</seealso> public virtual Task<DescribeTerminationPolicyTypesResponse> DescribeTerminationPolicyTypesAsync(DescribeTerminationPolicyTypesRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = DescribeTerminationPolicyTypesRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribeTerminationPolicyTypesResponseUnmarshaller.Instance; return InvokeAsync<DescribeTerminationPolicyTypesResponse>(request, options, cancellationToken); } #endregion #region DescribeTrafficSources /// <summary> /// Gets information about the traffic sources for the specified Auto Scaling group. /// /// /// <para> /// You can optionally provide a traffic source type. If you provide a traffic source /// type, then the results only include that traffic source type. /// </para> /// /// <para> /// If you do not provide a traffic source type, then the results include all the traffic /// sources for the specified Auto Scaling group. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the DescribeTrafficSources service method.</param> /// /// <returns>The response from the DescribeTrafficSources service method, as returned by AutoScaling.</returns> /// <exception cref="Amazon.AutoScaling.Model.InvalidNextTokenException"> /// The <code>NextToken</code> value is not valid. /// </exception> /// <exception cref="Amazon.AutoScaling.Model.ResourceContentionException"> /// You already have a pending update to an Amazon EC2 Auto Scaling resource (for example, /// an Auto Scaling group, instance, or load balancer). /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/DescribeTrafficSources">REST API Reference for DescribeTrafficSources Operation</seealso> public virtual DescribeTrafficSourcesResponse DescribeTrafficSources(DescribeTrafficSourcesRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DescribeTrafficSourcesRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribeTrafficSourcesResponseUnmarshaller.Instance; return Invoke<DescribeTrafficSourcesResponse>(request, options); } /// <summary> /// Gets information about the traffic sources for the specified Auto Scaling group. /// /// /// <para> /// You can optionally provide a traffic source type. If you provide a traffic source /// type, then the results only include that traffic source type. /// </para> /// /// <para> /// If you do not provide a traffic source type, then the results include all the traffic /// sources for the specified Auto Scaling group. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the DescribeTrafficSources service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the DescribeTrafficSources service method, as returned by AutoScaling.</returns> /// <exception cref="Amazon.AutoScaling.Model.InvalidNextTokenException"> /// The <code>NextToken</code> value is not valid. /// </exception> /// <exception cref="Amazon.AutoScaling.Model.ResourceContentionException"> /// You already have a pending update to an Amazon EC2 Auto Scaling resource (for example, /// an Auto Scaling group, instance, or load balancer). /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/DescribeTrafficSources">REST API Reference for DescribeTrafficSources Operation</seealso> public virtual Task<DescribeTrafficSourcesResponse> DescribeTrafficSourcesAsync(DescribeTrafficSourcesRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = DescribeTrafficSourcesRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribeTrafficSourcesResponseUnmarshaller.Instance; return InvokeAsync<DescribeTrafficSourcesResponse>(request, options, cancellationToken); } #endregion #region DescribeWarmPool /// <summary> /// Gets information about a warm pool and its instances. /// /// /// <para> /// For more information, 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> /// </summary> /// <param name="request">Container for the necessary parameters to execute the DescribeWarmPool service method.</param> /// /// <returns>The response from the DescribeWarmPool service method, as returned by AutoScaling.</returns> /// <exception cref="Amazon.AutoScaling.Model.InvalidNextTokenException"> /// The <code>NextToken</code> value is not valid. /// </exception> /// <exception cref="Amazon.AutoScaling.Model.LimitExceededException"> /// You have already reached a limit for your Amazon EC2 Auto Scaling resources (for example, /// Auto Scaling groups, launch configurations, or lifecycle hooks). For more information, /// see <a href="https://docs.aws.amazon.com/autoscaling/ec2/APIReference/API_DescribeAccountLimits.html">DescribeAccountLimits</a> /// in the <i>Amazon EC2 Auto Scaling API Reference</i>. /// </exception> /// <exception cref="Amazon.AutoScaling.Model.ResourceContentionException"> /// You already have a pending update to an Amazon EC2 Auto Scaling resource (for example, /// an Auto Scaling group, instance, or load balancer). /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/DescribeWarmPool">REST API Reference for DescribeWarmPool Operation</seealso> public virtual DescribeWarmPoolResponse DescribeWarmPool(DescribeWarmPoolRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DescribeWarmPoolRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribeWarmPoolResponseUnmarshaller.Instance; return Invoke<DescribeWarmPoolResponse>(request, options); } /// <summary> /// Gets information about a warm pool and its instances. /// /// /// <para> /// For more information, 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> /// </summary> /// <param name="request">Container for the necessary parameters to execute the DescribeWarmPool service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the DescribeWarmPool service method, as returned by AutoScaling.</returns> /// <exception cref="Amazon.AutoScaling.Model.InvalidNextTokenException"> /// The <code>NextToken</code> value is not valid. /// </exception> /// <exception cref="Amazon.AutoScaling.Model.LimitExceededException"> /// You have already reached a limit for your Amazon EC2 Auto Scaling resources (for example, /// Auto Scaling groups, launch configurations, or lifecycle hooks). For more information, /// see <a href="https://docs.aws.amazon.com/autoscaling/ec2/APIReference/API_DescribeAccountLimits.html">DescribeAccountLimits</a> /// in the <i>Amazon EC2 Auto Scaling API Reference</i>. /// </exception> /// <exception cref="Amazon.AutoScaling.Model.ResourceContentionException"> /// You already have a pending update to an Amazon EC2 Auto Scaling resource (for example, /// an Auto Scaling group, instance, or load balancer). /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/DescribeWarmPool">REST API Reference for DescribeWarmPool Operation</seealso> public virtual Task<DescribeWarmPoolResponse> DescribeWarmPoolAsync(DescribeWarmPoolRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = DescribeWarmPoolRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribeWarmPoolResponseUnmarshaller.Instance; return InvokeAsync<DescribeWarmPoolResponse>(request, options, cancellationToken); } #endregion #region DetachInstances /// <summary> /// Removes one or more instances from the specified Auto Scaling group. /// /// /// <para> /// After the instances are detached, you can manage them independent of the Auto Scaling /// group. /// </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 detached. /// </para> /// /// <para> /// If there is a Classic Load Balancer attached to the Auto Scaling group, the instances /// are deregistered from the load balancer. If there are target groups attached to the /// Auto Scaling group, the instances are deregistered from the target groups. /// </para> /// /// <para> /// For more information, see <a href="https://docs.aws.amazon.com/autoscaling/ec2/userguide/detach-instance-asg.html">Detach /// EC2 instances from your Auto Scaling group</a> in the <i>Amazon EC2 Auto Scaling User /// Guide</i>. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the DetachInstances service method.</param> /// /// <returns>The response from the DetachInstances service method, as returned by AutoScaling.</returns> /// <exception cref="Amazon.AutoScaling.Model.ResourceContentionException"> /// You already have a pending update to an Amazon EC2 Auto Scaling resource (for example, /// an Auto Scaling group, instance, or load balancer). /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/DetachInstances">REST API Reference for DetachInstances Operation</seealso> public virtual DetachInstancesResponse DetachInstances(DetachInstancesRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DetachInstancesRequestMarshaller.Instance; options.ResponseUnmarshaller = DetachInstancesResponseUnmarshaller.Instance; return Invoke<DetachInstancesResponse>(request, options); } /// <summary> /// Removes one or more instances from the specified Auto Scaling group. /// /// /// <para> /// After the instances are detached, you can manage them independent of the Auto Scaling /// group. /// </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 detached. /// </para> /// /// <para> /// If there is a Classic Load Balancer attached to the Auto Scaling group, the instances /// are deregistered from the load balancer. If there are target groups attached to the /// Auto Scaling group, the instances are deregistered from the target groups. /// </para> /// /// <para> /// For more information, see <a href="https://docs.aws.amazon.com/autoscaling/ec2/userguide/detach-instance-asg.html">Detach /// EC2 instances from your Auto Scaling group</a> in the <i>Amazon EC2 Auto Scaling User /// Guide</i>. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the DetachInstances service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the DetachInstances service method, as returned by AutoScaling.</returns> /// <exception cref="Amazon.AutoScaling.Model.ResourceContentionException"> /// You already have a pending update to an Amazon EC2 Auto Scaling resource (for example, /// an Auto Scaling group, instance, or load balancer). /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/DetachInstances">REST API Reference for DetachInstances Operation</seealso> public virtual Task<DetachInstancesResponse> DetachInstancesAsync(DetachInstancesRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = DetachInstancesRequestMarshaller.Instance; options.ResponseUnmarshaller = DetachInstancesResponseUnmarshaller.Instance; return InvokeAsync<DetachInstancesResponse>(request, options, cancellationToken); } #endregion #region DetachLoadBalancers /// <summary> /// <note> /// <para> /// This API operation is superseded by <a>DetachTrafficSources</a>, which can detach /// multiple traffic sources types. We recommend using <code>DetachTrafficSources</code> /// to simplify how you manage traffic sources. However, we continue to support <code>DetachLoadBalancers</code>. /// You can use both the original <code>DetachLoadBalancers</code> API operation and <code>DetachTrafficSources</code> /// on the same Auto Scaling group. /// </para> /// </note> /// <para> /// Detaches one or more Classic Load Balancers from the specified Auto Scaling group. /// </para> /// /// <para> /// This operation detaches only Classic Load Balancers. If you have Application Load /// Balancers, Network Load Balancers, or Gateway Load Balancers, use the <a>DetachLoadBalancerTargetGroups</a> /// API instead. /// </para> /// /// <para> /// When you detach a load balancer, it enters the <code>Removing</code> state while deregistering /// the instances in the group. When all instances are deregistered, then you can no longer /// describe the load balancer using the <a>DescribeLoadBalancers</a> API call. The instances /// remain running. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the DetachLoadBalancers service method.</param> /// /// <returns>The response from the DetachLoadBalancers service method, as returned by AutoScaling.</returns> /// <exception cref="Amazon.AutoScaling.Model.ResourceContentionException"> /// You already have a pending update to an Amazon EC2 Auto Scaling resource (for example, /// an Auto Scaling group, instance, or load balancer). /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/DetachLoadBalancers">REST API Reference for DetachLoadBalancers Operation</seealso> public virtual DetachLoadBalancersResponse DetachLoadBalancers(DetachLoadBalancersRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DetachLoadBalancersRequestMarshaller.Instance; options.ResponseUnmarshaller = DetachLoadBalancersResponseUnmarshaller.Instance; return Invoke<DetachLoadBalancersResponse>(request, options); } /// <summary> /// <note> /// <para> /// This API operation is superseded by <a>DetachTrafficSources</a>, which can detach /// multiple traffic sources types. We recommend using <code>DetachTrafficSources</code> /// to simplify how you manage traffic sources. However, we continue to support <code>DetachLoadBalancers</code>. /// You can use both the original <code>DetachLoadBalancers</code> API operation and <code>DetachTrafficSources</code> /// on the same Auto Scaling group. /// </para> /// </note> /// <para> /// Detaches one or more Classic Load Balancers from the specified Auto Scaling group. /// </para> /// /// <para> /// This operation detaches only Classic Load Balancers. If you have Application Load /// Balancers, Network Load Balancers, or Gateway Load Balancers, use the <a>DetachLoadBalancerTargetGroups</a> /// API instead. /// </para> /// /// <para> /// When you detach a load balancer, it enters the <code>Removing</code> state while deregistering /// the instances in the group. When all instances are deregistered, then you can no longer /// describe the load balancer using the <a>DescribeLoadBalancers</a> API call. The instances /// remain running. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the DetachLoadBalancers service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the DetachLoadBalancers service method, as returned by AutoScaling.</returns> /// <exception cref="Amazon.AutoScaling.Model.ResourceContentionException"> /// You already have a pending update to an Amazon EC2 Auto Scaling resource (for example, /// an Auto Scaling group, instance, or load balancer). /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/DetachLoadBalancers">REST API Reference for DetachLoadBalancers Operation</seealso> public virtual Task<DetachLoadBalancersResponse> DetachLoadBalancersAsync(DetachLoadBalancersRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = DetachLoadBalancersRequestMarshaller.Instance; options.ResponseUnmarshaller = DetachLoadBalancersResponseUnmarshaller.Instance; return InvokeAsync<DetachLoadBalancersResponse>(request, options, cancellationToken); } #endregion #region DetachLoadBalancerTargetGroups /// <summary> /// <note> /// <para> /// This API operation is superseded by <a>DetachTrafficSources</a>, which can detach /// multiple traffic sources types. We recommend using <code>DetachTrafficSources</code> /// to simplify how you manage traffic sources. However, we continue to support <code>DetachLoadBalancerTargetGroups</code>. /// You can use both the original <code>DetachLoadBalancerTargetGroups</code> API operation /// and <code>DetachTrafficSources</code> on the same Auto Scaling group. /// </para> /// </note> /// <para> /// Detaches one or more target groups from the specified Auto Scaling group. /// </para> /// /// <para> /// When you detach a target group, it enters the <code>Removing</code> state while deregistering /// the instances in the group. When all instances are deregistered, then you can no longer /// describe the target group using the <a>DescribeLoadBalancerTargetGroups</a> API call. /// The instances remain running. /// </para> /// <note> /// <para> /// You can use this operation to detach target groups that were attached by using <a>AttachLoadBalancerTargetGroups</a>, /// but not for target groups that were attached by using <a>AttachTrafficSources</a>. /// </para> /// </note> /// </summary> /// <param name="request">Container for the necessary parameters to execute the DetachLoadBalancerTargetGroups service method.</param> /// /// <returns>The response from the DetachLoadBalancerTargetGroups service method, as returned by AutoScaling.</returns> /// <exception cref="Amazon.AutoScaling.Model.ResourceContentionException"> /// You already have a pending update to an Amazon EC2 Auto Scaling resource (for example, /// an Auto Scaling group, instance, or load balancer). /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/DetachLoadBalancerTargetGroups">REST API Reference for DetachLoadBalancerTargetGroups Operation</seealso> public virtual DetachLoadBalancerTargetGroupsResponse DetachLoadBalancerTargetGroups(DetachLoadBalancerTargetGroupsRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DetachLoadBalancerTargetGroupsRequestMarshaller.Instance; options.ResponseUnmarshaller = DetachLoadBalancerTargetGroupsResponseUnmarshaller.Instance; return Invoke<DetachLoadBalancerTargetGroupsResponse>(request, options); } /// <summary> /// <note> /// <para> /// This API operation is superseded by <a>DetachTrafficSources</a>, which can detach /// multiple traffic sources types. We recommend using <code>DetachTrafficSources</code> /// to simplify how you manage traffic sources. However, we continue to support <code>DetachLoadBalancerTargetGroups</code>. /// You can use both the original <code>DetachLoadBalancerTargetGroups</code> API operation /// and <code>DetachTrafficSources</code> on the same Auto Scaling group. /// </para> /// </note> /// <para> /// Detaches one or more target groups from the specified Auto Scaling group. /// </para> /// /// <para> /// When you detach a target group, it enters the <code>Removing</code> state while deregistering /// the instances in the group. When all instances are deregistered, then you can no longer /// describe the target group using the <a>DescribeLoadBalancerTargetGroups</a> API call. /// The instances remain running. /// </para> /// <note> /// <para> /// You can use this operation to detach target groups that were attached by using <a>AttachLoadBalancerTargetGroups</a>, /// but not for target groups that were attached by using <a>AttachTrafficSources</a>. /// </para> /// </note> /// </summary> /// <param name="request">Container for the necessary parameters to execute the DetachLoadBalancerTargetGroups service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the DetachLoadBalancerTargetGroups service method, as returned by AutoScaling.</returns> /// <exception cref="Amazon.AutoScaling.Model.ResourceContentionException"> /// You already have a pending update to an Amazon EC2 Auto Scaling resource (for example, /// an Auto Scaling group, instance, or load balancer). /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/DetachLoadBalancerTargetGroups">REST API Reference for DetachLoadBalancerTargetGroups Operation</seealso> public virtual Task<DetachLoadBalancerTargetGroupsResponse> DetachLoadBalancerTargetGroupsAsync(DetachLoadBalancerTargetGroupsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = DetachLoadBalancerTargetGroupsRequestMarshaller.Instance; options.ResponseUnmarshaller = DetachLoadBalancerTargetGroupsResponseUnmarshaller.Instance; return InvokeAsync<DetachLoadBalancerTargetGroupsResponse>(request, options, cancellationToken); } #endregion #region DetachTrafficSources /// <summary> /// Detaches one or more traffic sources from the specified Auto Scaling group. /// /// /// <para> /// When you detach a taffic, it enters the <code>Removing</code> state while deregistering /// the instances in the group. When all instances are deregistered, then you can no longer /// describe the traffic source using the <a>DescribeTrafficSources</a> API call. The /// instances continue to run. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the DetachTrafficSources service method.</param> /// /// <returns>The response from the DetachTrafficSources service method, as returned by AutoScaling.</returns> /// <exception cref="Amazon.AutoScaling.Model.ResourceContentionException"> /// You already have a pending update to an Amazon EC2 Auto Scaling resource (for example, /// an Auto Scaling group, instance, or load balancer). /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/DetachTrafficSources">REST API Reference for DetachTrafficSources Operation</seealso> public virtual DetachTrafficSourcesResponse DetachTrafficSources(DetachTrafficSourcesRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DetachTrafficSourcesRequestMarshaller.Instance; options.ResponseUnmarshaller = DetachTrafficSourcesResponseUnmarshaller.Instance; return Invoke<DetachTrafficSourcesResponse>(request, options); } /// <summary> /// Detaches one or more traffic sources from the specified Auto Scaling group. /// /// /// <para> /// When you detach a taffic, it enters the <code>Removing</code> state while deregistering /// the instances in the group. When all instances are deregistered, then you can no longer /// describe the traffic source using the <a>DescribeTrafficSources</a> API call. The /// instances continue to run. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the DetachTrafficSources service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the DetachTrafficSources service method, as returned by AutoScaling.</returns> /// <exception cref="Amazon.AutoScaling.Model.ResourceContentionException"> /// You already have a pending update to an Amazon EC2 Auto Scaling resource (for example, /// an Auto Scaling group, instance, or load balancer). /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/DetachTrafficSources">REST API Reference for DetachTrafficSources Operation</seealso> public virtual Task<DetachTrafficSourcesResponse> DetachTrafficSourcesAsync(DetachTrafficSourcesRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = DetachTrafficSourcesRequestMarshaller.Instance; options.ResponseUnmarshaller = DetachTrafficSourcesResponseUnmarshaller.Instance; return InvokeAsync<DetachTrafficSourcesResponse>(request, options, cancellationToken); } #endregion #region DisableMetricsCollection /// <summary> /// Disables group metrics collection for the specified Auto Scaling group. /// </summary> /// <param name="request">Container for the necessary parameters to execute the DisableMetricsCollection service method.</param> /// /// <returns>The response from the DisableMetricsCollection service method, as returned by AutoScaling.</returns> /// <exception cref="Amazon.AutoScaling.Model.ResourceContentionException"> /// You already have a pending update to an Amazon EC2 Auto Scaling resource (for example, /// an Auto Scaling group, instance, or load balancer). /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/DisableMetricsCollection">REST API Reference for DisableMetricsCollection Operation</seealso> public virtual DisableMetricsCollectionResponse DisableMetricsCollection(DisableMetricsCollectionRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DisableMetricsCollectionRequestMarshaller.Instance; options.ResponseUnmarshaller = DisableMetricsCollectionResponseUnmarshaller.Instance; return Invoke<DisableMetricsCollectionResponse>(request, options); } /// <summary> /// Disables group metrics collection for the specified Auto Scaling group. /// </summary> /// <param name="request">Container for the necessary parameters to execute the DisableMetricsCollection service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the DisableMetricsCollection service method, as returned by AutoScaling.</returns> /// <exception cref="Amazon.AutoScaling.Model.ResourceContentionException"> /// You already have a pending update to an Amazon EC2 Auto Scaling resource (for example, /// an Auto Scaling group, instance, or load balancer). /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/DisableMetricsCollection">REST API Reference for DisableMetricsCollection Operation</seealso> public virtual Task<DisableMetricsCollectionResponse> DisableMetricsCollectionAsync(DisableMetricsCollectionRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = DisableMetricsCollectionRequestMarshaller.Instance; options.ResponseUnmarshaller = DisableMetricsCollectionResponseUnmarshaller.Instance; return InvokeAsync<DisableMetricsCollectionResponse>(request, options, cancellationToken); } #endregion #region EnableMetricsCollection /// <summary> /// Enables group metrics collection for the specified Auto Scaling group. /// /// /// <para> /// You can use these metrics to track changes in an Auto Scaling group and to set alarms /// on threshold values. You can view group metrics using the Amazon EC2 Auto Scaling /// console or the CloudWatch console. For more information, see <a href="https://docs.aws.amazon.com/autoscaling/ec2/userguide/ec2-auto-scaling-cloudwatch-monitoring.html">Monitor /// CloudWatch metrics for your Auto Scaling groups and instances</a> in the <i>Amazon /// EC2 Auto Scaling User Guide</i>. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the EnableMetricsCollection service method.</param> /// /// <returns>The response from the EnableMetricsCollection service method, as returned by AutoScaling.</returns> /// <exception cref="Amazon.AutoScaling.Model.ResourceContentionException"> /// You already have a pending update to an Amazon EC2 Auto Scaling resource (for example, /// an Auto Scaling group, instance, or load balancer). /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/EnableMetricsCollection">REST API Reference for EnableMetricsCollection Operation</seealso> public virtual EnableMetricsCollectionResponse EnableMetricsCollection(EnableMetricsCollectionRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = EnableMetricsCollectionRequestMarshaller.Instance; options.ResponseUnmarshaller = EnableMetricsCollectionResponseUnmarshaller.Instance; return Invoke<EnableMetricsCollectionResponse>(request, options); } /// <summary> /// Enables group metrics collection for the specified Auto Scaling group. /// /// /// <para> /// You can use these metrics to track changes in an Auto Scaling group and to set alarms /// on threshold values. You can view group metrics using the Amazon EC2 Auto Scaling /// console or the CloudWatch console. For more information, see <a href="https://docs.aws.amazon.com/autoscaling/ec2/userguide/ec2-auto-scaling-cloudwatch-monitoring.html">Monitor /// CloudWatch metrics for your Auto Scaling groups and instances</a> in the <i>Amazon /// EC2 Auto Scaling User Guide</i>. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the EnableMetricsCollection service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the EnableMetricsCollection service method, as returned by AutoScaling.</returns> /// <exception cref="Amazon.AutoScaling.Model.ResourceContentionException"> /// You already have a pending update to an Amazon EC2 Auto Scaling resource (for example, /// an Auto Scaling group, instance, or load balancer). /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/EnableMetricsCollection">REST API Reference for EnableMetricsCollection Operation</seealso> public virtual Task<EnableMetricsCollectionResponse> EnableMetricsCollectionAsync(EnableMetricsCollectionRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = EnableMetricsCollectionRequestMarshaller.Instance; options.ResponseUnmarshaller = EnableMetricsCollectionResponseUnmarshaller.Instance; return InvokeAsync<EnableMetricsCollectionResponse>(request, options, cancellationToken); } #endregion #region EnterStandby /// <summary> /// Moves the specified instances into the standby state. /// /// /// <para> /// If you choose to decrement the desired capacity of the Auto Scaling group, the instances /// can enter standby as long as the desired capacity of the Auto Scaling group after /// the instances are placed into standby is equal to or greater than the minimum capacity /// of the group. /// </para> /// /// <para> /// If you choose not to decrement the desired capacity of the Auto Scaling group, the /// Auto Scaling group launches new instances to replace the instances on standby. /// </para> /// /// <para> /// For more information, see <a href="https://docs.aws.amazon.com/autoscaling/ec2/userguide/as-enter-exit-standby.html">Temporarily /// removing instances from your Auto Scaling group</a> in the <i>Amazon EC2 Auto Scaling /// User Guide</i>. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the EnterStandby service method.</param> /// /// <returns>The response from the EnterStandby service method, as returned by AutoScaling.</returns> /// <exception cref="Amazon.AutoScaling.Model.ResourceContentionException"> /// You already have a pending update to an Amazon EC2 Auto Scaling resource (for example, /// an Auto Scaling group, instance, or load balancer). /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/EnterStandby">REST API Reference for EnterStandby Operation</seealso> public virtual EnterStandbyResponse EnterStandby(EnterStandbyRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = EnterStandbyRequestMarshaller.Instance; options.ResponseUnmarshaller = EnterStandbyResponseUnmarshaller.Instance; return Invoke<EnterStandbyResponse>(request, options); } /// <summary> /// Moves the specified instances into the standby state. /// /// /// <para> /// If you choose to decrement the desired capacity of the Auto Scaling group, the instances /// can enter standby as long as the desired capacity of the Auto Scaling group after /// the instances are placed into standby is equal to or greater than the minimum capacity /// of the group. /// </para> /// /// <para> /// If you choose not to decrement the desired capacity of the Auto Scaling group, the /// Auto Scaling group launches new instances to replace the instances on standby. /// </para> /// /// <para> /// For more information, see <a href="https://docs.aws.amazon.com/autoscaling/ec2/userguide/as-enter-exit-standby.html">Temporarily /// removing instances from your Auto Scaling group</a> in the <i>Amazon EC2 Auto Scaling /// User Guide</i>. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the EnterStandby service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the EnterStandby service method, as returned by AutoScaling.</returns> /// <exception cref="Amazon.AutoScaling.Model.ResourceContentionException"> /// You already have a pending update to an Amazon EC2 Auto Scaling resource (for example, /// an Auto Scaling group, instance, or load balancer). /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/EnterStandby">REST API Reference for EnterStandby Operation</seealso> public virtual Task<EnterStandbyResponse> EnterStandbyAsync(EnterStandbyRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = EnterStandbyRequestMarshaller.Instance; options.ResponseUnmarshaller = EnterStandbyResponseUnmarshaller.Instance; return InvokeAsync<EnterStandbyResponse>(request, options, cancellationToken); } #endregion #region ExecutePolicy /// <summary> /// Executes the specified policy. This can be useful for testing the design of your scaling /// policy. /// </summary> /// <param name="request">Container for the necessary parameters to execute the ExecutePolicy service method.</param> /// /// <returns>The response from the ExecutePolicy service method, as returned by AutoScaling.</returns> /// <exception cref="Amazon.AutoScaling.Model.ResourceContentionException"> /// You already have a pending update to an Amazon EC2 Auto Scaling resource (for example, /// an Auto Scaling group, instance, or load balancer). /// </exception> /// <exception cref="Amazon.AutoScaling.Model.ScalingActivityInProgressException"> /// The operation can't be performed because there are scaling activities in progress. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/ExecutePolicy">REST API Reference for ExecutePolicy Operation</seealso> public virtual ExecutePolicyResponse ExecutePolicy(ExecutePolicyRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = ExecutePolicyRequestMarshaller.Instance; options.ResponseUnmarshaller = ExecutePolicyResponseUnmarshaller.Instance; return Invoke<ExecutePolicyResponse>(request, options); } /// <summary> /// Executes the specified policy. This can be useful for testing the design of your scaling /// policy. /// </summary> /// <param name="request">Container for the necessary parameters to execute the ExecutePolicy service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the ExecutePolicy service method, as returned by AutoScaling.</returns> /// <exception cref="Amazon.AutoScaling.Model.ResourceContentionException"> /// You already have a pending update to an Amazon EC2 Auto Scaling resource (for example, /// an Auto Scaling group, instance, or load balancer). /// </exception> /// <exception cref="Amazon.AutoScaling.Model.ScalingActivityInProgressException"> /// The operation can't be performed because there are scaling activities in progress. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/ExecutePolicy">REST API Reference for ExecutePolicy Operation</seealso> public virtual Task<ExecutePolicyResponse> ExecutePolicyAsync(ExecutePolicyRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = ExecutePolicyRequestMarshaller.Instance; options.ResponseUnmarshaller = ExecutePolicyResponseUnmarshaller.Instance; return InvokeAsync<ExecutePolicyResponse>(request, options, cancellationToken); } #endregion #region ExitStandby /// <summary> /// Moves the specified instances out of the standby state. /// /// /// <para> /// After you put the instances back in service, the desired capacity is incremented. /// </para> /// /// <para> /// For more information, see <a href="https://docs.aws.amazon.com/autoscaling/ec2/userguide/as-enter-exit-standby.html">Temporarily /// removing instances from your Auto Scaling group</a> in the <i>Amazon EC2 Auto Scaling /// User Guide</i>. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the ExitStandby service method.</param> /// /// <returns>The response from the ExitStandby service method, as returned by AutoScaling.</returns> /// <exception cref="Amazon.AutoScaling.Model.ResourceContentionException"> /// You already have a pending update to an Amazon EC2 Auto Scaling resource (for example, /// an Auto Scaling group, instance, or load balancer). /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/ExitStandby">REST API Reference for ExitStandby Operation</seealso> public virtual ExitStandbyResponse ExitStandby(ExitStandbyRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = ExitStandbyRequestMarshaller.Instance; options.ResponseUnmarshaller = ExitStandbyResponseUnmarshaller.Instance; return Invoke<ExitStandbyResponse>(request, options); } /// <summary> /// Moves the specified instances out of the standby state. /// /// /// <para> /// After you put the instances back in service, the desired capacity is incremented. /// </para> /// /// <para> /// For more information, see <a href="https://docs.aws.amazon.com/autoscaling/ec2/userguide/as-enter-exit-standby.html">Temporarily /// removing instances from your Auto Scaling group</a> in the <i>Amazon EC2 Auto Scaling /// User Guide</i>. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the ExitStandby service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the ExitStandby service method, as returned by AutoScaling.</returns> /// <exception cref="Amazon.AutoScaling.Model.ResourceContentionException"> /// You already have a pending update to an Amazon EC2 Auto Scaling resource (for example, /// an Auto Scaling group, instance, or load balancer). /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/ExitStandby">REST API Reference for ExitStandby Operation</seealso> public virtual Task<ExitStandbyResponse> ExitStandbyAsync(ExitStandbyRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = ExitStandbyRequestMarshaller.Instance; options.ResponseUnmarshaller = ExitStandbyResponseUnmarshaller.Instance; return InvokeAsync<ExitStandbyResponse>(request, options, cancellationToken); } #endregion #region GetPredictiveScalingForecast /// <summary> /// Retrieves the forecast data for a predictive scaling policy. /// /// /// <para> /// Load forecasts are predictions of the hourly load values using historical load data /// from CloudWatch and an analysis of historical trends. Capacity forecasts are represented /// as predicted values for the minimum capacity that is needed on an hourly basis, based /// on the hourly load forecast. /// </para> /// /// <para> /// A minimum of 24 hours of data is required to create the initial forecasts. However, /// having a full 14 days of historical data results in more accurate forecasts. /// </para> /// /// <para> /// For more information, 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> /// </summary> /// <param name="request">Container for the necessary parameters to execute the GetPredictiveScalingForecast service method.</param> /// /// <returns>The response from the GetPredictiveScalingForecast service method, as returned by AutoScaling.</returns> /// <exception cref="Amazon.AutoScaling.Model.ResourceContentionException"> /// You already have a pending update to an Amazon EC2 Auto Scaling resource (for example, /// an Auto Scaling group, instance, or load balancer). /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/GetPredictiveScalingForecast">REST API Reference for GetPredictiveScalingForecast Operation</seealso> public virtual GetPredictiveScalingForecastResponse GetPredictiveScalingForecast(GetPredictiveScalingForecastRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = GetPredictiveScalingForecastRequestMarshaller.Instance; options.ResponseUnmarshaller = GetPredictiveScalingForecastResponseUnmarshaller.Instance; return Invoke<GetPredictiveScalingForecastResponse>(request, options); } /// <summary> /// Retrieves the forecast data for a predictive scaling policy. /// /// /// <para> /// Load forecasts are predictions of the hourly load values using historical load data /// from CloudWatch and an analysis of historical trends. Capacity forecasts are represented /// as predicted values for the minimum capacity that is needed on an hourly basis, based /// on the hourly load forecast. /// </para> /// /// <para> /// A minimum of 24 hours of data is required to create the initial forecasts. However, /// having a full 14 days of historical data results in more accurate forecasts. /// </para> /// /// <para> /// For more information, 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> /// </summary> /// <param name="request">Container for the necessary parameters to execute the GetPredictiveScalingForecast service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the GetPredictiveScalingForecast service method, as returned by AutoScaling.</returns> /// <exception cref="Amazon.AutoScaling.Model.ResourceContentionException"> /// You already have a pending update to an Amazon EC2 Auto Scaling resource (for example, /// an Auto Scaling group, instance, or load balancer). /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/GetPredictiveScalingForecast">REST API Reference for GetPredictiveScalingForecast Operation</seealso> public virtual Task<GetPredictiveScalingForecastResponse> GetPredictiveScalingForecastAsync(GetPredictiveScalingForecastRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = GetPredictiveScalingForecastRequestMarshaller.Instance; options.ResponseUnmarshaller = GetPredictiveScalingForecastResponseUnmarshaller.Instance; return InvokeAsync<GetPredictiveScalingForecastResponse>(request, options, cancellationToken); } #endregion #region PutLifecycleHook /// <summary> /// 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> /// <param name="request">Container for the necessary parameters to execute the PutLifecycleHook service method.</param> /// /// <returns>The response from the PutLifecycleHook service method, as returned by AutoScaling.</returns> /// <exception cref="Amazon.AutoScaling.Model.LimitExceededException"> /// You have already reached a limit for your Amazon EC2 Auto Scaling resources (for example, /// Auto Scaling groups, launch configurations, or lifecycle hooks). For more information, /// see <a href="https://docs.aws.amazon.com/autoscaling/ec2/APIReference/API_DescribeAccountLimits.html">DescribeAccountLimits</a> /// in the <i>Amazon EC2 Auto Scaling API Reference</i>. /// </exception> /// <exception cref="Amazon.AutoScaling.Model.ResourceContentionException"> /// You already have a pending update to an Amazon EC2 Auto Scaling resource (for example, /// an Auto Scaling group, instance, or load balancer). /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/PutLifecycleHook">REST API Reference for PutLifecycleHook Operation</seealso> public virtual PutLifecycleHookResponse PutLifecycleHook(PutLifecycleHookRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = PutLifecycleHookRequestMarshaller.Instance; options.ResponseUnmarshaller = PutLifecycleHookResponseUnmarshaller.Instance; return Invoke<PutLifecycleHookResponse>(request, options); } /// <summary> /// 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> /// <param name="request">Container for the necessary parameters to execute the PutLifecycleHook service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the PutLifecycleHook service method, as returned by AutoScaling.</returns> /// <exception cref="Amazon.AutoScaling.Model.LimitExceededException"> /// You have already reached a limit for your Amazon EC2 Auto Scaling resources (for example, /// Auto Scaling groups, launch configurations, or lifecycle hooks). For more information, /// see <a href="https://docs.aws.amazon.com/autoscaling/ec2/APIReference/API_DescribeAccountLimits.html">DescribeAccountLimits</a> /// in the <i>Amazon EC2 Auto Scaling API Reference</i>. /// </exception> /// <exception cref="Amazon.AutoScaling.Model.ResourceContentionException"> /// You already have a pending update to an Amazon EC2 Auto Scaling resource (for example, /// an Auto Scaling group, instance, or load balancer). /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/PutLifecycleHook">REST API Reference for PutLifecycleHook Operation</seealso> public virtual Task<PutLifecycleHookResponse> PutLifecycleHookAsync(PutLifecycleHookRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = PutLifecycleHookRequestMarshaller.Instance; options.ResponseUnmarshaller = PutLifecycleHookResponseUnmarshaller.Instance; return InvokeAsync<PutLifecycleHookResponse>(request, options, cancellationToken); } #endregion #region PutNotificationConfiguration /// <summary> /// 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> /// <param name="request">Container for the necessary parameters to execute the PutNotificationConfiguration service method.</param> /// /// <returns>The response from the PutNotificationConfiguration service method, as returned by AutoScaling.</returns> /// <exception cref="Amazon.AutoScaling.Model.LimitExceededException"> /// You have already reached a limit for your Amazon EC2 Auto Scaling resources (for example, /// Auto Scaling groups, launch configurations, or lifecycle hooks). For more information, /// see <a href="https://docs.aws.amazon.com/autoscaling/ec2/APIReference/API_DescribeAccountLimits.html">DescribeAccountLimits</a> /// in the <i>Amazon EC2 Auto Scaling API Reference</i>. /// </exception> /// <exception cref="Amazon.AutoScaling.Model.ResourceContentionException"> /// You already have a pending update to an Amazon EC2 Auto Scaling resource (for example, /// an Auto Scaling group, instance, or load balancer). /// </exception> /// <exception cref="Amazon.AutoScaling.Model.ServiceLinkedRoleFailureException"> /// The service-linked role is not yet ready for use. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/PutNotificationConfiguration">REST API Reference for PutNotificationConfiguration Operation</seealso> public virtual PutNotificationConfigurationResponse PutNotificationConfiguration(PutNotificationConfigurationRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = PutNotificationConfigurationRequestMarshaller.Instance; options.ResponseUnmarshaller = PutNotificationConfigurationResponseUnmarshaller.Instance; return Invoke<PutNotificationConfigurationResponse>(request, options); } /// <summary> /// 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> /// <param name="request">Container for the necessary parameters to execute the PutNotificationConfiguration service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the PutNotificationConfiguration service method, as returned by AutoScaling.</returns> /// <exception cref="Amazon.AutoScaling.Model.LimitExceededException"> /// You have already reached a limit for your Amazon EC2 Auto Scaling resources (for example, /// Auto Scaling groups, launch configurations, or lifecycle hooks). For more information, /// see <a href="https://docs.aws.amazon.com/autoscaling/ec2/APIReference/API_DescribeAccountLimits.html">DescribeAccountLimits</a> /// in the <i>Amazon EC2 Auto Scaling API Reference</i>. /// </exception> /// <exception cref="Amazon.AutoScaling.Model.ResourceContentionException"> /// You already have a pending update to an Amazon EC2 Auto Scaling resource (for example, /// an Auto Scaling group, instance, or load balancer). /// </exception> /// <exception cref="Amazon.AutoScaling.Model.ServiceLinkedRoleFailureException"> /// The service-linked role is not yet ready for use. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/PutNotificationConfiguration">REST API Reference for PutNotificationConfiguration Operation</seealso> public virtual Task<PutNotificationConfigurationResponse> PutNotificationConfigurationAsync(PutNotificationConfigurationRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = PutNotificationConfigurationRequestMarshaller.Instance; options.ResponseUnmarshaller = PutNotificationConfigurationResponseUnmarshaller.Instance; return InvokeAsync<PutNotificationConfigurationResponse>(request, options, cancellationToken); } #endregion #region PutScalingPolicy /// <summary> /// 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> /// <param name="request">Container for the necessary parameters to execute the PutScalingPolicy service method.</param> /// /// <returns>The response from the PutScalingPolicy service method, as returned by AutoScaling.</returns> /// <exception cref="Amazon.AutoScaling.Model.LimitExceededException"> /// You have already reached a limit for your Amazon EC2 Auto Scaling resources (for example, /// Auto Scaling groups, launch configurations, or lifecycle hooks). For more information, /// see <a href="https://docs.aws.amazon.com/autoscaling/ec2/APIReference/API_DescribeAccountLimits.html">DescribeAccountLimits</a> /// in the <i>Amazon EC2 Auto Scaling API Reference</i>. /// </exception> /// <exception cref="Amazon.AutoScaling.Model.ResourceContentionException"> /// You already have a pending update to an Amazon EC2 Auto Scaling resource (for example, /// an Auto Scaling group, instance, or load balancer). /// </exception> /// <exception cref="Amazon.AutoScaling.Model.ServiceLinkedRoleFailureException"> /// The service-linked role is not yet ready for use. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/PutScalingPolicy">REST API Reference for PutScalingPolicy Operation</seealso> public virtual PutScalingPolicyResponse PutScalingPolicy(PutScalingPolicyRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = PutScalingPolicyRequestMarshaller.Instance; options.ResponseUnmarshaller = PutScalingPolicyResponseUnmarshaller.Instance; return Invoke<PutScalingPolicyResponse>(request, options); } /// <summary> /// 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> /// <param name="request">Container for the necessary parameters to execute the PutScalingPolicy service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the PutScalingPolicy service method, as returned by AutoScaling.</returns> /// <exception cref="Amazon.AutoScaling.Model.LimitExceededException"> /// You have already reached a limit for your Amazon EC2 Auto Scaling resources (for example, /// Auto Scaling groups, launch configurations, or lifecycle hooks). For more information, /// see <a href="https://docs.aws.amazon.com/autoscaling/ec2/APIReference/API_DescribeAccountLimits.html">DescribeAccountLimits</a> /// in the <i>Amazon EC2 Auto Scaling API Reference</i>. /// </exception> /// <exception cref="Amazon.AutoScaling.Model.ResourceContentionException"> /// You already have a pending update to an Amazon EC2 Auto Scaling resource (for example, /// an Auto Scaling group, instance, or load balancer). /// </exception> /// <exception cref="Amazon.AutoScaling.Model.ServiceLinkedRoleFailureException"> /// The service-linked role is not yet ready for use. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/PutScalingPolicy">REST API Reference for PutScalingPolicy Operation</seealso> public virtual Task<PutScalingPolicyResponse> PutScalingPolicyAsync(PutScalingPolicyRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = PutScalingPolicyRequestMarshaller.Instance; options.ResponseUnmarshaller = PutScalingPolicyResponseUnmarshaller.Instance; return InvokeAsync<PutScalingPolicyResponse>(request, options, cancellationToken); } #endregion #region PutScheduledUpdateGroupAction /// <summary> /// 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> /// <param name="request">Container for the necessary parameters to execute the PutScheduledUpdateGroupAction service method.</param> /// /// <returns>The response from the PutScheduledUpdateGroupAction service method, as returned by AutoScaling.</returns> /// <exception cref="Amazon.AutoScaling.Model.AlreadyExistsException"> /// You already have an Auto Scaling group or launch configuration with this name. /// </exception> /// <exception cref="Amazon.AutoScaling.Model.LimitExceededException"> /// You have already reached a limit for your Amazon EC2 Auto Scaling resources (for example, /// Auto Scaling groups, launch configurations, or lifecycle hooks). For more information, /// see <a href="https://docs.aws.amazon.com/autoscaling/ec2/APIReference/API_DescribeAccountLimits.html">DescribeAccountLimits</a> /// in the <i>Amazon EC2 Auto Scaling API Reference</i>. /// </exception> /// <exception cref="Amazon.AutoScaling.Model.ResourceContentionException"> /// You already have a pending update to an Amazon EC2 Auto Scaling resource (for example, /// an Auto Scaling group, instance, or load balancer). /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/PutScheduledUpdateGroupAction">REST API Reference for PutScheduledUpdateGroupAction Operation</seealso> public virtual PutScheduledUpdateGroupActionResponse PutScheduledUpdateGroupAction(PutScheduledUpdateGroupActionRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = PutScheduledUpdateGroupActionRequestMarshaller.Instance; options.ResponseUnmarshaller = PutScheduledUpdateGroupActionResponseUnmarshaller.Instance; return Invoke<PutScheduledUpdateGroupActionResponse>(request, options); } /// <summary> /// 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> /// <param name="request">Container for the necessary parameters to execute the PutScheduledUpdateGroupAction service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the PutScheduledUpdateGroupAction service method, as returned by AutoScaling.</returns> /// <exception cref="Amazon.AutoScaling.Model.AlreadyExistsException"> /// You already have an Auto Scaling group or launch configuration with this name. /// </exception> /// <exception cref="Amazon.AutoScaling.Model.LimitExceededException"> /// You have already reached a limit for your Amazon EC2 Auto Scaling resources (for example, /// Auto Scaling groups, launch configurations, or lifecycle hooks). For more information, /// see <a href="https://docs.aws.amazon.com/autoscaling/ec2/APIReference/API_DescribeAccountLimits.html">DescribeAccountLimits</a> /// in the <i>Amazon EC2 Auto Scaling API Reference</i>. /// </exception> /// <exception cref="Amazon.AutoScaling.Model.ResourceContentionException"> /// You already have a pending update to an Amazon EC2 Auto Scaling resource (for example, /// an Auto Scaling group, instance, or load balancer). /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/PutScheduledUpdateGroupAction">REST API Reference for PutScheduledUpdateGroupAction Operation</seealso> public virtual Task<PutScheduledUpdateGroupActionResponse> PutScheduledUpdateGroupActionAsync(PutScheduledUpdateGroupActionRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = PutScheduledUpdateGroupActionRequestMarshaller.Instance; options.ResponseUnmarshaller = PutScheduledUpdateGroupActionResponseUnmarshaller.Instance; return InvokeAsync<PutScheduledUpdateGroupActionResponse>(request, options, cancellationToken); } #endregion #region PutWarmPool /// <summary> /// 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> /// <param name="request">Container for the necessary parameters to execute the PutWarmPool service method.</param> /// /// <returns>The response from the PutWarmPool service method, as returned by AutoScaling.</returns> /// <exception cref="Amazon.AutoScaling.Model.LimitExceededException"> /// You have already reached a limit for your Amazon EC2 Auto Scaling resources (for example, /// Auto Scaling groups, launch configurations, or lifecycle hooks). For more information, /// see <a href="https://docs.aws.amazon.com/autoscaling/ec2/APIReference/API_DescribeAccountLimits.html">DescribeAccountLimits</a> /// in the <i>Amazon EC2 Auto Scaling API Reference</i>. /// </exception> /// <exception cref="Amazon.AutoScaling.Model.ResourceContentionException"> /// You already have a pending update to an Amazon EC2 Auto Scaling resource (for example, /// an Auto Scaling group, instance, or load balancer). /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/PutWarmPool">REST API Reference for PutWarmPool Operation</seealso> public virtual PutWarmPoolResponse PutWarmPool(PutWarmPoolRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = PutWarmPoolRequestMarshaller.Instance; options.ResponseUnmarshaller = PutWarmPoolResponseUnmarshaller.Instance; return Invoke<PutWarmPoolResponse>(request, options); } /// <summary> /// 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> /// <param name="request">Container for the necessary parameters to execute the PutWarmPool service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the PutWarmPool service method, as returned by AutoScaling.</returns> /// <exception cref="Amazon.AutoScaling.Model.LimitExceededException"> /// You have already reached a limit for your Amazon EC2 Auto Scaling resources (for example, /// Auto Scaling groups, launch configurations, or lifecycle hooks). For more information, /// see <a href="https://docs.aws.amazon.com/autoscaling/ec2/APIReference/API_DescribeAccountLimits.html">DescribeAccountLimits</a> /// in the <i>Amazon EC2 Auto Scaling API Reference</i>. /// </exception> /// <exception cref="Amazon.AutoScaling.Model.ResourceContentionException"> /// You already have a pending update to an Amazon EC2 Auto Scaling resource (for example, /// an Auto Scaling group, instance, or load balancer). /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/PutWarmPool">REST API Reference for PutWarmPool Operation</seealso> public virtual Task<PutWarmPoolResponse> PutWarmPoolAsync(PutWarmPoolRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = PutWarmPoolRequestMarshaller.Instance; options.ResponseUnmarshaller = PutWarmPoolResponseUnmarshaller.Instance; return InvokeAsync<PutWarmPoolResponse>(request, options, cancellationToken); } #endregion #region RecordLifecycleActionHeartbeat /// <summary> /// 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> /// <param name="request">Container for the necessary parameters to execute the RecordLifecycleActionHeartbeat service method.</param> /// /// <returns>The response from the RecordLifecycleActionHeartbeat service method, as returned by AutoScaling.</returns> /// <exception cref="Amazon.AutoScaling.Model.ResourceContentionException"> /// You already have a pending update to an Amazon EC2 Auto Scaling resource (for example, /// an Auto Scaling group, instance, or load balancer). /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/RecordLifecycleActionHeartbeat">REST API Reference for RecordLifecycleActionHeartbeat Operation</seealso> public virtual RecordLifecycleActionHeartbeatResponse RecordLifecycleActionHeartbeat(RecordLifecycleActionHeartbeatRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = RecordLifecycleActionHeartbeatRequestMarshaller.Instance; options.ResponseUnmarshaller = RecordLifecycleActionHeartbeatResponseUnmarshaller.Instance; return Invoke<RecordLifecycleActionHeartbeatResponse>(request, options); } /// <summary> /// 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> /// <param name="request">Container for the necessary parameters to execute the RecordLifecycleActionHeartbeat service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the RecordLifecycleActionHeartbeat service method, as returned by AutoScaling.</returns> /// <exception cref="Amazon.AutoScaling.Model.ResourceContentionException"> /// You already have a pending update to an Amazon EC2 Auto Scaling resource (for example, /// an Auto Scaling group, instance, or load balancer). /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/RecordLifecycleActionHeartbeat">REST API Reference for RecordLifecycleActionHeartbeat Operation</seealso> public virtual Task<RecordLifecycleActionHeartbeatResponse> RecordLifecycleActionHeartbeatAsync(RecordLifecycleActionHeartbeatRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = RecordLifecycleActionHeartbeatRequestMarshaller.Instance; options.ResponseUnmarshaller = RecordLifecycleActionHeartbeatResponseUnmarshaller.Instance; return InvokeAsync<RecordLifecycleActionHeartbeatResponse>(request, options, cancellationToken); } #endregion #region ResumeProcesses /// <summary> /// 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> /// <param name="request">Container for the necessary parameters to execute the ResumeProcesses service method.</param> /// /// <returns>The response from the ResumeProcesses service method, as returned by AutoScaling.</returns> /// <exception cref="Amazon.AutoScaling.Model.ResourceContentionException"> /// You already have a pending update to an Amazon EC2 Auto Scaling resource (for example, /// an Auto Scaling group, instance, or load balancer). /// </exception> /// <exception cref="Amazon.AutoScaling.Model.ResourceInUseException"> /// The operation can't be performed because the resource is in use. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/ResumeProcesses">REST API Reference for ResumeProcesses Operation</seealso> public virtual ResumeProcessesResponse ResumeProcesses(ResumeProcessesRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = ResumeProcessesRequestMarshaller.Instance; options.ResponseUnmarshaller = ResumeProcessesResponseUnmarshaller.Instance; return Invoke<ResumeProcessesResponse>(request, options); } /// <summary> /// 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> /// <param name="request">Container for the necessary parameters to execute the ResumeProcesses service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the ResumeProcesses service method, as returned by AutoScaling.</returns> /// <exception cref="Amazon.AutoScaling.Model.ResourceContentionException"> /// You already have a pending update to an Amazon EC2 Auto Scaling resource (for example, /// an Auto Scaling group, instance, or load balancer). /// </exception> /// <exception cref="Amazon.AutoScaling.Model.ResourceInUseException"> /// The operation can't be performed because the resource is in use. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/ResumeProcesses">REST API Reference for ResumeProcesses Operation</seealso> public virtual Task<ResumeProcessesResponse> ResumeProcessesAsync(ResumeProcessesRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = ResumeProcessesRequestMarshaller.Instance; options.ResponseUnmarshaller = ResumeProcessesResponseUnmarshaller.Instance; return InvokeAsync<ResumeProcessesResponse>(request, options, cancellationToken); } #endregion #region RollbackInstanceRefresh /// <summary> /// 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> /// <param name="request">Container for the necessary parameters to execute the RollbackInstanceRefresh service method.</param> /// /// <returns>The response from the RollbackInstanceRefresh service method, as returned by AutoScaling.</returns> /// <exception cref="Amazon.AutoScaling.Model.ActiveInstanceRefreshNotFoundException"> /// The request failed because an active instance refresh or rollback for the specified /// Auto Scaling group was not found. /// </exception> /// <exception cref="Amazon.AutoScaling.Model.IrreversibleInstanceRefreshException"> /// The request failed because a desired configuration was not found or an incompatible /// launch template (uses a Systems Manager parameter instead of an AMI ID) or launch /// template version (<code>$Latest</code> or <code>$Default</code>) is present on the /// Auto Scaling group. /// </exception> /// <exception cref="Amazon.AutoScaling.Model.LimitExceededException"> /// You have already reached a limit for your Amazon EC2 Auto Scaling resources (for example, /// Auto Scaling groups, launch configurations, or lifecycle hooks). For more information, /// see <a href="https://docs.aws.amazon.com/autoscaling/ec2/APIReference/API_DescribeAccountLimits.html">DescribeAccountLimits</a> /// in the <i>Amazon EC2 Auto Scaling API Reference</i>. /// </exception> /// <exception cref="Amazon.AutoScaling.Model.ResourceContentionException"> /// You already have a pending update to an Amazon EC2 Auto Scaling resource (for example, /// an Auto Scaling group, instance, or load balancer). /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/RollbackInstanceRefresh">REST API Reference for RollbackInstanceRefresh Operation</seealso> public virtual RollbackInstanceRefreshResponse RollbackInstanceRefresh(RollbackInstanceRefreshRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = RollbackInstanceRefreshRequestMarshaller.Instance; options.ResponseUnmarshaller = RollbackInstanceRefreshResponseUnmarshaller.Instance; return Invoke<RollbackInstanceRefreshResponse>(request, options); } /// <summary> /// 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> /// <param name="request">Container for the necessary parameters to execute the RollbackInstanceRefresh service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the RollbackInstanceRefresh service method, as returned by AutoScaling.</returns> /// <exception cref="Amazon.AutoScaling.Model.ActiveInstanceRefreshNotFoundException"> /// The request failed because an active instance refresh or rollback for the specified /// Auto Scaling group was not found. /// </exception> /// <exception cref="Amazon.AutoScaling.Model.IrreversibleInstanceRefreshException"> /// The request failed because a desired configuration was not found or an incompatible /// launch template (uses a Systems Manager parameter instead of an AMI ID) or launch /// template version (<code>$Latest</code> or <code>$Default</code>) is present on the /// Auto Scaling group. /// </exception> /// <exception cref="Amazon.AutoScaling.Model.LimitExceededException"> /// You have already reached a limit for your Amazon EC2 Auto Scaling resources (for example, /// Auto Scaling groups, launch configurations, or lifecycle hooks). For more information, /// see <a href="https://docs.aws.amazon.com/autoscaling/ec2/APIReference/API_DescribeAccountLimits.html">DescribeAccountLimits</a> /// in the <i>Amazon EC2 Auto Scaling API Reference</i>. /// </exception> /// <exception cref="Amazon.AutoScaling.Model.ResourceContentionException"> /// You already have a pending update to an Amazon EC2 Auto Scaling resource (for example, /// an Auto Scaling group, instance, or load balancer). /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/RollbackInstanceRefresh">REST API Reference for RollbackInstanceRefresh Operation</seealso> public virtual Task<RollbackInstanceRefreshResponse> RollbackInstanceRefreshAsync(RollbackInstanceRefreshRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = RollbackInstanceRefreshRequestMarshaller.Instance; options.ResponseUnmarshaller = RollbackInstanceRefreshResponseUnmarshaller.Instance; return InvokeAsync<RollbackInstanceRefreshResponse>(request, options, cancellationToken); } #endregion #region SetDesiredCapacity /// <summary> /// 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> /// <param name="request">Container for the necessary parameters to execute the SetDesiredCapacity service method.</param> /// /// <returns>The response from the SetDesiredCapacity service method, as returned by AutoScaling.</returns> /// <exception cref="Amazon.AutoScaling.Model.ResourceContentionException"> /// You already have a pending update to an Amazon EC2 Auto Scaling resource (for example, /// an Auto Scaling group, instance, or load balancer). /// </exception> /// <exception cref="Amazon.AutoScaling.Model.ScalingActivityInProgressException"> /// The operation can't be performed because there are scaling activities in progress. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/SetDesiredCapacity">REST API Reference for SetDesiredCapacity Operation</seealso> public virtual SetDesiredCapacityResponse SetDesiredCapacity(SetDesiredCapacityRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = SetDesiredCapacityRequestMarshaller.Instance; options.ResponseUnmarshaller = SetDesiredCapacityResponseUnmarshaller.Instance; return Invoke<SetDesiredCapacityResponse>(request, options); } /// <summary> /// 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> /// <param name="request">Container for the necessary parameters to execute the SetDesiredCapacity service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the SetDesiredCapacity service method, as returned by AutoScaling.</returns> /// <exception cref="Amazon.AutoScaling.Model.ResourceContentionException"> /// You already have a pending update to an Amazon EC2 Auto Scaling resource (for example, /// an Auto Scaling group, instance, or load balancer). /// </exception> /// <exception cref="Amazon.AutoScaling.Model.ScalingActivityInProgressException"> /// The operation can't be performed because there are scaling activities in progress. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/SetDesiredCapacity">REST API Reference for SetDesiredCapacity Operation</seealso> public virtual Task<SetDesiredCapacityResponse> SetDesiredCapacityAsync(SetDesiredCapacityRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = SetDesiredCapacityRequestMarshaller.Instance; options.ResponseUnmarshaller = SetDesiredCapacityResponseUnmarshaller.Instance; return InvokeAsync<SetDesiredCapacityResponse>(request, options, cancellationToken); } #endregion #region SetInstanceHealth /// <summary> /// 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> /// <param name="request">Container for the necessary parameters to execute the SetInstanceHealth service method.</param> /// /// <returns>The response from the SetInstanceHealth service method, as returned by AutoScaling.</returns> /// <exception cref="Amazon.AutoScaling.Model.ResourceContentionException"> /// You already have a pending update to an Amazon EC2 Auto Scaling resource (for example, /// an Auto Scaling group, instance, or load balancer). /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/SetInstanceHealth">REST API Reference for SetInstanceHealth Operation</seealso> public virtual SetInstanceHealthResponse SetInstanceHealth(SetInstanceHealthRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = SetInstanceHealthRequestMarshaller.Instance; options.ResponseUnmarshaller = SetInstanceHealthResponseUnmarshaller.Instance; return Invoke<SetInstanceHealthResponse>(request, options); } /// <summary> /// 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> /// <param name="request">Container for the necessary parameters to execute the SetInstanceHealth service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the SetInstanceHealth service method, as returned by AutoScaling.</returns> /// <exception cref="Amazon.AutoScaling.Model.ResourceContentionException"> /// You already have a pending update to an Amazon EC2 Auto Scaling resource (for example, /// an Auto Scaling group, instance, or load balancer). /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/SetInstanceHealth">REST API Reference for SetInstanceHealth Operation</seealso> public virtual Task<SetInstanceHealthResponse> SetInstanceHealthAsync(SetInstanceHealthRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = SetInstanceHealthRequestMarshaller.Instance; options.ResponseUnmarshaller = SetInstanceHealthResponseUnmarshaller.Instance; return InvokeAsync<SetInstanceHealthResponse>(request, options, cancellationToken); } #endregion #region SetInstanceProtection /// <summary> /// 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> /// <param name="request">Container for the necessary parameters to execute the SetInstanceProtection service method.</param> /// /// <returns>The response from the SetInstanceProtection service method, as returned by AutoScaling.</returns> /// <exception cref="Amazon.AutoScaling.Model.LimitExceededException"> /// You have already reached a limit for your Amazon EC2 Auto Scaling resources (for example, /// Auto Scaling groups, launch configurations, or lifecycle hooks). For more information, /// see <a href="https://docs.aws.amazon.com/autoscaling/ec2/APIReference/API_DescribeAccountLimits.html">DescribeAccountLimits</a> /// in the <i>Amazon EC2 Auto Scaling API Reference</i>. /// </exception> /// <exception cref="Amazon.AutoScaling.Model.ResourceContentionException"> /// You already have a pending update to an Amazon EC2 Auto Scaling resource (for example, /// an Auto Scaling group, instance, or load balancer). /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/SetInstanceProtection">REST API Reference for SetInstanceProtection Operation</seealso> public virtual SetInstanceProtectionResponse SetInstanceProtection(SetInstanceProtectionRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = SetInstanceProtectionRequestMarshaller.Instance; options.ResponseUnmarshaller = SetInstanceProtectionResponseUnmarshaller.Instance; return Invoke<SetInstanceProtectionResponse>(request, options); } /// <summary> /// 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> /// <param name="request">Container for the necessary parameters to execute the SetInstanceProtection service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the SetInstanceProtection service method, as returned by AutoScaling.</returns> /// <exception cref="Amazon.AutoScaling.Model.LimitExceededException"> /// You have already reached a limit for your Amazon EC2 Auto Scaling resources (for example, /// Auto Scaling groups, launch configurations, or lifecycle hooks). For more information, /// see <a href="https://docs.aws.amazon.com/autoscaling/ec2/APIReference/API_DescribeAccountLimits.html">DescribeAccountLimits</a> /// in the <i>Amazon EC2 Auto Scaling API Reference</i>. /// </exception> /// <exception cref="Amazon.AutoScaling.Model.ResourceContentionException"> /// You already have a pending update to an Amazon EC2 Auto Scaling resource (for example, /// an Auto Scaling group, instance, or load balancer). /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/SetInstanceProtection">REST API Reference for SetInstanceProtection Operation</seealso> public virtual Task<SetInstanceProtectionResponse> SetInstanceProtectionAsync(SetInstanceProtectionRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = SetInstanceProtectionRequestMarshaller.Instance; options.ResponseUnmarshaller = SetInstanceProtectionResponseUnmarshaller.Instance; return InvokeAsync<SetInstanceProtectionResponse>(request, options, cancellationToken); } #endregion #region StartInstanceRefresh /// <summary> /// 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> /// <param name="request">Container for the necessary parameters to execute the StartInstanceRefresh service method.</param> /// /// <returns>The response from the StartInstanceRefresh service method, as returned by AutoScaling.</returns> /// <exception cref="Amazon.AutoScaling.Model.InstanceRefreshInProgressException"> /// The request failed because an active instance refresh already exists for the specified /// Auto Scaling group. /// </exception> /// <exception cref="Amazon.AutoScaling.Model.LimitExceededException"> /// You have already reached a limit for your Amazon EC2 Auto Scaling resources (for example, /// Auto Scaling groups, launch configurations, or lifecycle hooks). For more information, /// see <a href="https://docs.aws.amazon.com/autoscaling/ec2/APIReference/API_DescribeAccountLimits.html">DescribeAccountLimits</a> /// in the <i>Amazon EC2 Auto Scaling API Reference</i>. /// </exception> /// <exception cref="Amazon.AutoScaling.Model.ResourceContentionException"> /// You already have a pending update to an Amazon EC2 Auto Scaling resource (for example, /// an Auto Scaling group, instance, or load balancer). /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/StartInstanceRefresh">REST API Reference for StartInstanceRefresh Operation</seealso> public virtual StartInstanceRefreshResponse StartInstanceRefresh(StartInstanceRefreshRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = StartInstanceRefreshRequestMarshaller.Instance; options.ResponseUnmarshaller = StartInstanceRefreshResponseUnmarshaller.Instance; return Invoke<StartInstanceRefreshResponse>(request, options); } /// <summary> /// 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> /// <param name="request">Container for the necessary parameters to execute the StartInstanceRefresh service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the StartInstanceRefresh service method, as returned by AutoScaling.</returns> /// <exception cref="Amazon.AutoScaling.Model.InstanceRefreshInProgressException"> /// The request failed because an active instance refresh already exists for the specified /// Auto Scaling group. /// </exception> /// <exception cref="Amazon.AutoScaling.Model.LimitExceededException"> /// You have already reached a limit for your Amazon EC2 Auto Scaling resources (for example, /// Auto Scaling groups, launch configurations, or lifecycle hooks). For more information, /// see <a href="https://docs.aws.amazon.com/autoscaling/ec2/APIReference/API_DescribeAccountLimits.html">DescribeAccountLimits</a> /// in the <i>Amazon EC2 Auto Scaling API Reference</i>. /// </exception> /// <exception cref="Amazon.AutoScaling.Model.ResourceContentionException"> /// You already have a pending update to an Amazon EC2 Auto Scaling resource (for example, /// an Auto Scaling group, instance, or load balancer). /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/StartInstanceRefresh">REST API Reference for StartInstanceRefresh Operation</seealso> public virtual Task<StartInstanceRefreshResponse> StartInstanceRefreshAsync(StartInstanceRefreshRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = StartInstanceRefreshRequestMarshaller.Instance; options.ResponseUnmarshaller = StartInstanceRefreshResponseUnmarshaller.Instance; return InvokeAsync<StartInstanceRefreshResponse>(request, options, cancellationToken); } #endregion #region SuspendProcesses /// <summary> /// 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> /// <param name="request">Container for the necessary parameters to execute the SuspendProcesses service method.</param> /// /// <returns>The response from the SuspendProcesses service method, as returned by AutoScaling.</returns> /// <exception cref="Amazon.AutoScaling.Model.ResourceContentionException"> /// You already have a pending update to an Amazon EC2 Auto Scaling resource (for example, /// an Auto Scaling group, instance, or load balancer). /// </exception> /// <exception cref="Amazon.AutoScaling.Model.ResourceInUseException"> /// The operation can't be performed because the resource is in use. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/SuspendProcesses">REST API Reference for SuspendProcesses Operation</seealso> public virtual SuspendProcessesResponse SuspendProcesses(SuspendProcessesRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = SuspendProcessesRequestMarshaller.Instance; options.ResponseUnmarshaller = SuspendProcessesResponseUnmarshaller.Instance; return Invoke<SuspendProcessesResponse>(request, options); } /// <summary> /// 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> /// <param name="request">Container for the necessary parameters to execute the SuspendProcesses service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the SuspendProcesses service method, as returned by AutoScaling.</returns> /// <exception cref="Amazon.AutoScaling.Model.ResourceContentionException"> /// You already have a pending update to an Amazon EC2 Auto Scaling resource (for example, /// an Auto Scaling group, instance, or load balancer). /// </exception> /// <exception cref="Amazon.AutoScaling.Model.ResourceInUseException"> /// The operation can't be performed because the resource is in use. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/SuspendProcesses">REST API Reference for SuspendProcesses Operation</seealso> public virtual Task<SuspendProcessesResponse> SuspendProcessesAsync(SuspendProcessesRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = SuspendProcessesRequestMarshaller.Instance; options.ResponseUnmarshaller = SuspendProcessesResponseUnmarshaller.Instance; return InvokeAsync<SuspendProcessesResponse>(request, options, cancellationToken); } #endregion #region TerminateInstanceInAutoScalingGroup /// <summary> /// 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> /// <param name="request">Container for the necessary parameters to execute the TerminateInstanceInAutoScalingGroup service method.</param> /// /// <returns>The response from the TerminateInstanceInAutoScalingGroup service method, as returned by AutoScaling.</returns> /// <exception cref="Amazon.AutoScaling.Model.ResourceContentionException"> /// You already have a pending update to an Amazon EC2 Auto Scaling resource (for example, /// an Auto Scaling group, instance, or load balancer). /// </exception> /// <exception cref="Amazon.AutoScaling.Model.ScalingActivityInProgressException"> /// The operation can't be performed because there are scaling activities in progress. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/TerminateInstanceInAutoScalingGroup">REST API Reference for TerminateInstanceInAutoScalingGroup Operation</seealso> public virtual TerminateInstanceInAutoScalingGroupResponse TerminateInstanceInAutoScalingGroup(TerminateInstanceInAutoScalingGroupRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = TerminateInstanceInAutoScalingGroupRequestMarshaller.Instance; options.ResponseUnmarshaller = TerminateInstanceInAutoScalingGroupResponseUnmarshaller.Instance; return Invoke<TerminateInstanceInAutoScalingGroupResponse>(request, options); } /// <summary> /// 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> /// <param name="request">Container for the necessary parameters to execute the TerminateInstanceInAutoScalingGroup service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the TerminateInstanceInAutoScalingGroup service method, as returned by AutoScaling.</returns> /// <exception cref="Amazon.AutoScaling.Model.ResourceContentionException"> /// You already have a pending update to an Amazon EC2 Auto Scaling resource (for example, /// an Auto Scaling group, instance, or load balancer). /// </exception> /// <exception cref="Amazon.AutoScaling.Model.ScalingActivityInProgressException"> /// The operation can't be performed because there are scaling activities in progress. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/TerminateInstanceInAutoScalingGroup">REST API Reference for TerminateInstanceInAutoScalingGroup Operation</seealso> public virtual Task<TerminateInstanceInAutoScalingGroupResponse> TerminateInstanceInAutoScalingGroupAsync(TerminateInstanceInAutoScalingGroupRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = TerminateInstanceInAutoScalingGroupRequestMarshaller.Instance; options.ResponseUnmarshaller = TerminateInstanceInAutoScalingGroupResponseUnmarshaller.Instance; return InvokeAsync<TerminateInstanceInAutoScalingGroupResponse>(request, options, cancellationToken); } #endregion #region UpdateAutoScalingGroup /// <summary> /// <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> /// <param name="request">Container for the necessary parameters to execute the UpdateAutoScalingGroup service method.</param> /// /// <returns>The response from the UpdateAutoScalingGroup service method, as returned by AutoScaling.</returns> /// <exception cref="Amazon.AutoScaling.Model.ResourceContentionException"> /// You already have a pending update to an Amazon EC2 Auto Scaling resource (for example, /// an Auto Scaling group, instance, or load balancer). /// </exception> /// <exception cref="Amazon.AutoScaling.Model.ScalingActivityInProgressException"> /// The operation can't be performed because there are scaling activities in progress. /// </exception> /// <exception cref="Amazon.AutoScaling.Model.ServiceLinkedRoleFailureException"> /// The service-linked role is not yet ready for use. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/UpdateAutoScalingGroup">REST API Reference for UpdateAutoScalingGroup Operation</seealso> public virtual UpdateAutoScalingGroupResponse UpdateAutoScalingGroup(UpdateAutoScalingGroupRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = UpdateAutoScalingGroupRequestMarshaller.Instance; options.ResponseUnmarshaller = UpdateAutoScalingGroupResponseUnmarshaller.Instance; return Invoke<UpdateAutoScalingGroupResponse>(request, options); } /// <summary> /// <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> /// <param name="request">Container for the necessary parameters to execute the UpdateAutoScalingGroup service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the UpdateAutoScalingGroup service method, as returned by AutoScaling.</returns> /// <exception cref="Amazon.AutoScaling.Model.ResourceContentionException"> /// You already have a pending update to an Amazon EC2 Auto Scaling resource (for example, /// an Auto Scaling group, instance, or load balancer). /// </exception> /// <exception cref="Amazon.AutoScaling.Model.ScalingActivityInProgressException"> /// The operation can't be performed because there are scaling activities in progress. /// </exception> /// <exception cref="Amazon.AutoScaling.Model.ServiceLinkedRoleFailureException"> /// The service-linked role is not yet ready for use. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/UpdateAutoScalingGroup">REST API Reference for UpdateAutoScalingGroup Operation</seealso> public virtual Task<UpdateAutoScalingGroupResponse> UpdateAutoScalingGroupAsync(UpdateAutoScalingGroupRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = UpdateAutoScalingGroupRequestMarshaller.Instance; options.ResponseUnmarshaller = UpdateAutoScalingGroupResponseUnmarshaller.Instance; return InvokeAsync<UpdateAutoScalingGroupResponse>(request, options, cancellationToken); } #endregion } }
6,758
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.Threading; using System.Threading.Tasks; using System.Collections.Generic; using Amazon.Runtime; using Amazon.AutoScaling.Model; namespace Amazon.AutoScaling { /// <summary> /// Interface for accessing AutoScaling /// /// Amazon EC2 Auto Scaling /// <para> /// Amazon EC2 Auto Scaling is designed to automatically launch and terminate EC2 instances /// based on user-defined scaling policies, scheduled actions, and health checks. /// </para> /// /// <para> /// For more information, see the <a href="https://docs.aws.amazon.com/autoscaling/ec2/userguide/">Amazon /// EC2 Auto Scaling User Guide</a> and the <a href="https://docs.aws.amazon.com/autoscaling/ec2/APIReference/Welcome.html">Amazon /// EC2 Auto Scaling API Reference</a>. /// </para> /// </summary> public partial interface IAmazonAutoScaling : IAmazonService, IDisposable { /// <summary> /// Paginators for the service /// </summary> IAutoScalingPaginatorFactory Paginators { get; } #region AttachInstances /// <summary> /// Attaches one or more EC2 instances to the specified Auto Scaling group. /// /// /// <para> /// When you attach instances, Amazon EC2 Auto Scaling increases the desired capacity /// of the group by the number of instances being attached. If the number of instances /// being attached plus the desired capacity of the group exceeds the maximum size of /// the group, the operation fails. /// </para> /// /// <para> /// If there is a Classic Load Balancer attached to your Auto Scaling group, the instances /// are also registered with the load balancer. If there are target groups attached to /// your Auto Scaling group, the instances are also registered with the target groups. /// </para> /// /// <para> /// For more information, see <a href="https://docs.aws.amazon.com/autoscaling/ec2/userguide/attach-instance-asg.html">Attach /// EC2 instances to your Auto Scaling group</a> in the <i>Amazon EC2 Auto Scaling User /// Guide</i>. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the AttachInstances service method.</param> /// /// <returns>The response from the AttachInstances service method, as returned by AutoScaling.</returns> /// <exception cref="Amazon.AutoScaling.Model.ResourceContentionException"> /// You already have a pending update to an Amazon EC2 Auto Scaling resource (for example, /// an Auto Scaling group, instance, or load balancer). /// </exception> /// <exception cref="Amazon.AutoScaling.Model.ServiceLinkedRoleFailureException"> /// The service-linked role is not yet ready for use. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/AttachInstances">REST API Reference for AttachInstances Operation</seealso> AttachInstancesResponse AttachInstances(AttachInstancesRequest request); /// <summary> /// Attaches one or more EC2 instances to the specified Auto Scaling group. /// /// /// <para> /// When you attach instances, Amazon EC2 Auto Scaling increases the desired capacity /// of the group by the number of instances being attached. If the number of instances /// being attached plus the desired capacity of the group exceeds the maximum size of /// the group, the operation fails. /// </para> /// /// <para> /// If there is a Classic Load Balancer attached to your Auto Scaling group, the instances /// are also registered with the load balancer. If there are target groups attached to /// your Auto Scaling group, the instances are also registered with the target groups. /// </para> /// /// <para> /// For more information, see <a href="https://docs.aws.amazon.com/autoscaling/ec2/userguide/attach-instance-asg.html">Attach /// EC2 instances to your Auto Scaling group</a> in the <i>Amazon EC2 Auto Scaling User /// Guide</i>. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the AttachInstances service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the AttachInstances service method, as returned by AutoScaling.</returns> /// <exception cref="Amazon.AutoScaling.Model.ResourceContentionException"> /// You already have a pending update to an Amazon EC2 Auto Scaling resource (for example, /// an Auto Scaling group, instance, or load balancer). /// </exception> /// <exception cref="Amazon.AutoScaling.Model.ServiceLinkedRoleFailureException"> /// The service-linked role is not yet ready for use. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/AttachInstances">REST API Reference for AttachInstances Operation</seealso> Task<AttachInstancesResponse> AttachInstancesAsync(AttachInstancesRequest request, CancellationToken cancellationToken = default(CancellationToken)); #endregion #region AttachLoadBalancers /// <summary> /// <note> /// <para> /// This API operation is superseded by <a>AttachTrafficSources</a>, which can attach /// multiple traffic sources types. We recommend using <code>AttachTrafficSources</code> /// to simplify how you manage traffic sources. However, we continue to support <code>AttachLoadBalancers</code>. /// You can use both the original <code>AttachLoadBalancers</code> API operation and <code>AttachTrafficSources</code> /// on the same Auto Scaling group. /// </para> /// </note> /// <para> /// Attaches one or more Classic Load Balancers to the specified Auto Scaling group. Amazon /// EC2 Auto Scaling registers the running instances with these Classic Load Balancers. /// </para> /// /// <para> /// To describe the load balancers for an Auto Scaling group, call the <a>DescribeLoadBalancers</a> /// API. To detach a load balancer from the Auto Scaling group, call the <a>DetachLoadBalancers</a> /// API. /// </para> /// /// <para> /// This operation is additive and does not detach existing Classic Load Balancers or /// target groups from the Auto Scaling group. /// </para> /// /// <para> /// For more information, see <a href="https://docs.aws.amazon.com/autoscaling/ec2/userguide/autoscaling-load-balancer.html">Use /// Elastic Load Balancing to distribute traffic across the instances in your Auto Scaling /// group</a> in the <i>Amazon EC2 Auto Scaling User Guide</i>. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the AttachLoadBalancers service method.</param> /// /// <returns>The response from the AttachLoadBalancers service method, as returned by AutoScaling.</returns> /// <exception cref="Amazon.AutoScaling.Model.ResourceContentionException"> /// You already have a pending update to an Amazon EC2 Auto Scaling resource (for example, /// an Auto Scaling group, instance, or load balancer). /// </exception> /// <exception cref="Amazon.AutoScaling.Model.ServiceLinkedRoleFailureException"> /// The service-linked role is not yet ready for use. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/AttachLoadBalancers">REST API Reference for AttachLoadBalancers Operation</seealso> AttachLoadBalancersResponse AttachLoadBalancers(AttachLoadBalancersRequest request); /// <summary> /// <note> /// <para> /// This API operation is superseded by <a>AttachTrafficSources</a>, which can attach /// multiple traffic sources types. We recommend using <code>AttachTrafficSources</code> /// to simplify how you manage traffic sources. However, we continue to support <code>AttachLoadBalancers</code>. /// You can use both the original <code>AttachLoadBalancers</code> API operation and <code>AttachTrafficSources</code> /// on the same Auto Scaling group. /// </para> /// </note> /// <para> /// Attaches one or more Classic Load Balancers to the specified Auto Scaling group. Amazon /// EC2 Auto Scaling registers the running instances with these Classic Load Balancers. /// </para> /// /// <para> /// To describe the load balancers for an Auto Scaling group, call the <a>DescribeLoadBalancers</a> /// API. To detach a load balancer from the Auto Scaling group, call the <a>DetachLoadBalancers</a> /// API. /// </para> /// /// <para> /// This operation is additive and does not detach existing Classic Load Balancers or /// target groups from the Auto Scaling group. /// </para> /// /// <para> /// For more information, see <a href="https://docs.aws.amazon.com/autoscaling/ec2/userguide/autoscaling-load-balancer.html">Use /// Elastic Load Balancing to distribute traffic across the instances in your Auto Scaling /// group</a> in the <i>Amazon EC2 Auto Scaling User Guide</i>. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the AttachLoadBalancers service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the AttachLoadBalancers service method, as returned by AutoScaling.</returns> /// <exception cref="Amazon.AutoScaling.Model.ResourceContentionException"> /// You already have a pending update to an Amazon EC2 Auto Scaling resource (for example, /// an Auto Scaling group, instance, or load balancer). /// </exception> /// <exception cref="Amazon.AutoScaling.Model.ServiceLinkedRoleFailureException"> /// The service-linked role is not yet ready for use. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/AttachLoadBalancers">REST API Reference for AttachLoadBalancers Operation</seealso> Task<AttachLoadBalancersResponse> AttachLoadBalancersAsync(AttachLoadBalancersRequest request, CancellationToken cancellationToken = default(CancellationToken)); #endregion #region AttachLoadBalancerTargetGroups /// <summary> /// <note> /// <para> /// This API operation is superseded by <a>AttachTrafficSources</a>, which can attach /// multiple traffic sources types. We recommend using <code>AttachTrafficSources</code> /// to simplify how you manage traffic sources. However, we continue to support <code>AttachLoadBalancerTargetGroups</code>. /// You can use both the original <code>AttachLoadBalancerTargetGroups</code> API operation /// and <code>AttachTrafficSources</code> on the same Auto Scaling group. /// </para> /// </note> /// <para> /// Attaches one or more target groups to the specified Auto Scaling group. /// </para> /// /// <para> /// This operation is used with the following load balancer types: /// </para> /// <ul> <li> /// <para> /// Application Load Balancer - Operates at the application layer (layer 7) and supports /// HTTP and HTTPS. /// </para> /// </li> <li> /// <para> /// Network Load Balancer - Operates at the transport layer (layer 4) and supports TCP, /// TLS, and UDP. /// </para> /// </li> <li> /// <para> /// Gateway Load Balancer - Operates at the network layer (layer 3). /// </para> /// </li> </ul> /// <para> /// To describe the target groups for an Auto Scaling group, call the <a>DescribeLoadBalancerTargetGroups</a> /// API. To detach the target group from the Auto Scaling group, call the <a>DetachLoadBalancerTargetGroups</a> /// API. /// </para> /// /// <para> /// This operation is additive and does not detach existing target groups or Classic Load /// Balancers from the Auto Scaling group. /// </para> /// /// <para> /// For more information, see <a href="https://docs.aws.amazon.com/autoscaling/ec2/userguide/autoscaling-load-balancer.html">Use /// Elastic Load Balancing to distribute traffic across the instances in your Auto Scaling /// group</a> in the <i>Amazon EC2 Auto Scaling User Guide</i>. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the AttachLoadBalancerTargetGroups service method.</param> /// /// <returns>The response from the AttachLoadBalancerTargetGroups service method, as returned by AutoScaling.</returns> /// <exception cref="Amazon.AutoScaling.Model.ResourceContentionException"> /// You already have a pending update to an Amazon EC2 Auto Scaling resource (for example, /// an Auto Scaling group, instance, or load balancer). /// </exception> /// <exception cref="Amazon.AutoScaling.Model.ServiceLinkedRoleFailureException"> /// The service-linked role is not yet ready for use. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/AttachLoadBalancerTargetGroups">REST API Reference for AttachLoadBalancerTargetGroups Operation</seealso> AttachLoadBalancerTargetGroupsResponse AttachLoadBalancerTargetGroups(AttachLoadBalancerTargetGroupsRequest request); /// <summary> /// <note> /// <para> /// This API operation is superseded by <a>AttachTrafficSources</a>, which can attach /// multiple traffic sources types. We recommend using <code>AttachTrafficSources</code> /// to simplify how you manage traffic sources. However, we continue to support <code>AttachLoadBalancerTargetGroups</code>. /// You can use both the original <code>AttachLoadBalancerTargetGroups</code> API operation /// and <code>AttachTrafficSources</code> on the same Auto Scaling group. /// </para> /// </note> /// <para> /// Attaches one or more target groups to the specified Auto Scaling group. /// </para> /// /// <para> /// This operation is used with the following load balancer types: /// </para> /// <ul> <li> /// <para> /// Application Load Balancer - Operates at the application layer (layer 7) and supports /// HTTP and HTTPS. /// </para> /// </li> <li> /// <para> /// Network Load Balancer - Operates at the transport layer (layer 4) and supports TCP, /// TLS, and UDP. /// </para> /// </li> <li> /// <para> /// Gateway Load Balancer - Operates at the network layer (layer 3). /// </para> /// </li> </ul> /// <para> /// To describe the target groups for an Auto Scaling group, call the <a>DescribeLoadBalancerTargetGroups</a> /// API. To detach the target group from the Auto Scaling group, call the <a>DetachLoadBalancerTargetGroups</a> /// API. /// </para> /// /// <para> /// This operation is additive and does not detach existing target groups or Classic Load /// Balancers from the Auto Scaling group. /// </para> /// /// <para> /// For more information, see <a href="https://docs.aws.amazon.com/autoscaling/ec2/userguide/autoscaling-load-balancer.html">Use /// Elastic Load Balancing to distribute traffic across the instances in your Auto Scaling /// group</a> in the <i>Amazon EC2 Auto Scaling User Guide</i>. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the AttachLoadBalancerTargetGroups service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the AttachLoadBalancerTargetGroups service method, as returned by AutoScaling.</returns> /// <exception cref="Amazon.AutoScaling.Model.ResourceContentionException"> /// You already have a pending update to an Amazon EC2 Auto Scaling resource (for example, /// an Auto Scaling group, instance, or load balancer). /// </exception> /// <exception cref="Amazon.AutoScaling.Model.ServiceLinkedRoleFailureException"> /// The service-linked role is not yet ready for use. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/AttachLoadBalancerTargetGroups">REST API Reference for AttachLoadBalancerTargetGroups Operation</seealso> Task<AttachLoadBalancerTargetGroupsResponse> AttachLoadBalancerTargetGroupsAsync(AttachLoadBalancerTargetGroupsRequest request, CancellationToken cancellationToken = default(CancellationToken)); #endregion #region AttachTrafficSources /// <summary> /// Attaches one or more traffic sources to the specified Auto Scaling group. /// /// /// <para> /// You can use any of the following as traffic sources for an Auto Scaling group: /// </para> /// <ul> <li> /// <para> /// Application Load Balancer /// </para> /// </li> <li> /// <para> /// Classic Load Balancer /// </para> /// </li> <li> /// <para> /// Gateway Load Balancer /// </para> /// </li> <li> /// <para> /// Network Load Balancer /// </para> /// </li> <li> /// <para> /// VPC Lattice /// </para> /// </li> </ul> /// <para> /// This operation is additive and does not detach existing traffic sources from the Auto /// Scaling group. /// </para> /// /// <para> /// After the operation completes, use the <a>DescribeTrafficSources</a> API to return /// details about the state of the attachments between traffic sources and your Auto Scaling /// group. To detach a traffic source from the Auto Scaling group, call the <a>DetachTrafficSources</a> /// API. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the AttachTrafficSources service method.</param> /// /// <returns>The response from the AttachTrafficSources service method, as returned by AutoScaling.</returns> /// <exception cref="Amazon.AutoScaling.Model.ResourceContentionException"> /// You already have a pending update to an Amazon EC2 Auto Scaling resource (for example, /// an Auto Scaling group, instance, or load balancer). /// </exception> /// <exception cref="Amazon.AutoScaling.Model.ServiceLinkedRoleFailureException"> /// The service-linked role is not yet ready for use. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/AttachTrafficSources">REST API Reference for AttachTrafficSources Operation</seealso> AttachTrafficSourcesResponse AttachTrafficSources(AttachTrafficSourcesRequest request); /// <summary> /// Attaches one or more traffic sources to the specified Auto Scaling group. /// /// /// <para> /// You can use any of the following as traffic sources for an Auto Scaling group: /// </para> /// <ul> <li> /// <para> /// Application Load Balancer /// </para> /// </li> <li> /// <para> /// Classic Load Balancer /// </para> /// </li> <li> /// <para> /// Gateway Load Balancer /// </para> /// </li> <li> /// <para> /// Network Load Balancer /// </para> /// </li> <li> /// <para> /// VPC Lattice /// </para> /// </li> </ul> /// <para> /// This operation is additive and does not detach existing traffic sources from the Auto /// Scaling group. /// </para> /// /// <para> /// After the operation completes, use the <a>DescribeTrafficSources</a> API to return /// details about the state of the attachments between traffic sources and your Auto Scaling /// group. To detach a traffic source from the Auto Scaling group, call the <a>DetachTrafficSources</a> /// API. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the AttachTrafficSources service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the AttachTrafficSources service method, as returned by AutoScaling.</returns> /// <exception cref="Amazon.AutoScaling.Model.ResourceContentionException"> /// You already have a pending update to an Amazon EC2 Auto Scaling resource (for example, /// an Auto Scaling group, instance, or load balancer). /// </exception> /// <exception cref="Amazon.AutoScaling.Model.ServiceLinkedRoleFailureException"> /// The service-linked role is not yet ready for use. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/AttachTrafficSources">REST API Reference for AttachTrafficSources Operation</seealso> Task<AttachTrafficSourcesResponse> AttachTrafficSourcesAsync(AttachTrafficSourcesRequest request, CancellationToken cancellationToken = default(CancellationToken)); #endregion #region BatchDeleteScheduledAction /// <summary> /// Deletes one or more scheduled actions for the specified Auto Scaling group. /// </summary> /// <param name="request">Container for the necessary parameters to execute the BatchDeleteScheduledAction service method.</param> /// /// <returns>The response from the BatchDeleteScheduledAction service method, as returned by AutoScaling.</returns> /// <exception cref="Amazon.AutoScaling.Model.ResourceContentionException"> /// You already have a pending update to an Amazon EC2 Auto Scaling resource (for example, /// an Auto Scaling group, instance, or load balancer). /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/BatchDeleteScheduledAction">REST API Reference for BatchDeleteScheduledAction Operation</seealso> BatchDeleteScheduledActionResponse BatchDeleteScheduledAction(BatchDeleteScheduledActionRequest request); /// <summary> /// Deletes one or more scheduled actions for the specified Auto Scaling group. /// </summary> /// <param name="request">Container for the necessary parameters to execute the BatchDeleteScheduledAction service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the BatchDeleteScheduledAction service method, as returned by AutoScaling.</returns> /// <exception cref="Amazon.AutoScaling.Model.ResourceContentionException"> /// You already have a pending update to an Amazon EC2 Auto Scaling resource (for example, /// an Auto Scaling group, instance, or load balancer). /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/BatchDeleteScheduledAction">REST API Reference for BatchDeleteScheduledAction Operation</seealso> Task<BatchDeleteScheduledActionResponse> BatchDeleteScheduledActionAsync(BatchDeleteScheduledActionRequest request, CancellationToken cancellationToken = default(CancellationToken)); #endregion #region BatchPutScheduledUpdateGroupAction /// <summary> /// Creates or updates one or more scheduled scaling actions for an Auto Scaling group. /// </summary> /// <param name="request">Container for the necessary parameters to execute the BatchPutScheduledUpdateGroupAction service method.</param> /// /// <returns>The response from the BatchPutScheduledUpdateGroupAction service method, as returned by AutoScaling.</returns> /// <exception cref="Amazon.AutoScaling.Model.AlreadyExistsException"> /// You already have an Auto Scaling group or launch configuration with this name. /// </exception> /// <exception cref="Amazon.AutoScaling.Model.LimitExceededException"> /// You have already reached a limit for your Amazon EC2 Auto Scaling resources (for example, /// Auto Scaling groups, launch configurations, or lifecycle hooks). For more information, /// see <a href="https://docs.aws.amazon.com/autoscaling/ec2/APIReference/API_DescribeAccountLimits.html">DescribeAccountLimits</a> /// in the <i>Amazon EC2 Auto Scaling API Reference</i>. /// </exception> /// <exception cref="Amazon.AutoScaling.Model.ResourceContentionException"> /// You already have a pending update to an Amazon EC2 Auto Scaling resource (for example, /// an Auto Scaling group, instance, or load balancer). /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/BatchPutScheduledUpdateGroupAction">REST API Reference for BatchPutScheduledUpdateGroupAction Operation</seealso> BatchPutScheduledUpdateGroupActionResponse BatchPutScheduledUpdateGroupAction(BatchPutScheduledUpdateGroupActionRequest request); /// <summary> /// Creates or updates one or more scheduled scaling actions for an Auto Scaling group. /// </summary> /// <param name="request">Container for the necessary parameters to execute the BatchPutScheduledUpdateGroupAction service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the BatchPutScheduledUpdateGroupAction service method, as returned by AutoScaling.</returns> /// <exception cref="Amazon.AutoScaling.Model.AlreadyExistsException"> /// You already have an Auto Scaling group or launch configuration with this name. /// </exception> /// <exception cref="Amazon.AutoScaling.Model.LimitExceededException"> /// You have already reached a limit for your Amazon EC2 Auto Scaling resources (for example, /// Auto Scaling groups, launch configurations, or lifecycle hooks). For more information, /// see <a href="https://docs.aws.amazon.com/autoscaling/ec2/APIReference/API_DescribeAccountLimits.html">DescribeAccountLimits</a> /// in the <i>Amazon EC2 Auto Scaling API Reference</i>. /// </exception> /// <exception cref="Amazon.AutoScaling.Model.ResourceContentionException"> /// You already have a pending update to an Amazon EC2 Auto Scaling resource (for example, /// an Auto Scaling group, instance, or load balancer). /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/BatchPutScheduledUpdateGroupAction">REST API Reference for BatchPutScheduledUpdateGroupAction Operation</seealso> Task<BatchPutScheduledUpdateGroupActionResponse> BatchPutScheduledUpdateGroupActionAsync(BatchPutScheduledUpdateGroupActionRequest request, CancellationToken cancellationToken = default(CancellationToken)); #endregion #region CancelInstanceRefresh /// <summary> /// Cancels an instance refresh or rollback that is in progress. If an instance refresh /// or rollback is not in progress, an <code>ActiveInstanceRefreshNotFound</code> error /// occurs. /// /// /// <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> /// When you cancel an instance refresh, this does not roll back any changes that it made. /// Use the <a>RollbackInstanceRefresh</a> API to roll back instead. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the CancelInstanceRefresh service method.</param> /// /// <returns>The response from the CancelInstanceRefresh service method, as returned by AutoScaling.</returns> /// <exception cref="Amazon.AutoScaling.Model.ActiveInstanceRefreshNotFoundException"> /// The request failed because an active instance refresh or rollback for the specified /// Auto Scaling group was not found. /// </exception> /// <exception cref="Amazon.AutoScaling.Model.LimitExceededException"> /// You have already reached a limit for your Amazon EC2 Auto Scaling resources (for example, /// Auto Scaling groups, launch configurations, or lifecycle hooks). For more information, /// see <a href="https://docs.aws.amazon.com/autoscaling/ec2/APIReference/API_DescribeAccountLimits.html">DescribeAccountLimits</a> /// in the <i>Amazon EC2 Auto Scaling API Reference</i>. /// </exception> /// <exception cref="Amazon.AutoScaling.Model.ResourceContentionException"> /// You already have a pending update to an Amazon EC2 Auto Scaling resource (for example, /// an Auto Scaling group, instance, or load balancer). /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/CancelInstanceRefresh">REST API Reference for CancelInstanceRefresh Operation</seealso> CancelInstanceRefreshResponse CancelInstanceRefresh(CancelInstanceRefreshRequest request); /// <summary> /// Cancels an instance refresh or rollback that is in progress. If an instance refresh /// or rollback is not in progress, an <code>ActiveInstanceRefreshNotFound</code> error /// occurs. /// /// /// <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> /// When you cancel an instance refresh, this does not roll back any changes that it made. /// Use the <a>RollbackInstanceRefresh</a> API to roll back instead. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the CancelInstanceRefresh service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the CancelInstanceRefresh service method, as returned by AutoScaling.</returns> /// <exception cref="Amazon.AutoScaling.Model.ActiveInstanceRefreshNotFoundException"> /// The request failed because an active instance refresh or rollback for the specified /// Auto Scaling group was not found. /// </exception> /// <exception cref="Amazon.AutoScaling.Model.LimitExceededException"> /// You have already reached a limit for your Amazon EC2 Auto Scaling resources (for example, /// Auto Scaling groups, launch configurations, or lifecycle hooks). For more information, /// see <a href="https://docs.aws.amazon.com/autoscaling/ec2/APIReference/API_DescribeAccountLimits.html">DescribeAccountLimits</a> /// in the <i>Amazon EC2 Auto Scaling API Reference</i>. /// </exception> /// <exception cref="Amazon.AutoScaling.Model.ResourceContentionException"> /// You already have a pending update to an Amazon EC2 Auto Scaling resource (for example, /// an Auto Scaling group, instance, or load balancer). /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/CancelInstanceRefresh">REST API Reference for CancelInstanceRefresh Operation</seealso> Task<CancelInstanceRefreshResponse> CancelInstanceRefreshAsync(CancelInstanceRefreshRequest request, CancellationToken cancellationToken = default(CancellationToken)); #endregion #region CompleteLifecycleAction /// <summary> /// Completes the lifecycle action for the specified token or instance with the specified /// result. /// /// /// <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> /// If you need more time, record the lifecycle action heartbeat to keep the instance /// in a wait state. /// </para> /// </li> <li> /// <para> /// <b>If you finish before the timeout period ends, send a callback by using the <a>CompleteLifecycleAction</a> /// API call.</b> /// </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> /// <param name="request">Container for the necessary parameters to execute the CompleteLifecycleAction service method.</param> /// /// <returns>The response from the CompleteLifecycleAction service method, as returned by AutoScaling.</returns> /// <exception cref="Amazon.AutoScaling.Model.ResourceContentionException"> /// You already have a pending update to an Amazon EC2 Auto Scaling resource (for example, /// an Auto Scaling group, instance, or load balancer). /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/CompleteLifecycleAction">REST API Reference for CompleteLifecycleAction Operation</seealso> CompleteLifecycleActionResponse CompleteLifecycleAction(CompleteLifecycleActionRequest request); /// <summary> /// Completes the lifecycle action for the specified token or instance with the specified /// result. /// /// /// <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> /// If you need more time, record the lifecycle action heartbeat to keep the instance /// in a wait state. /// </para> /// </li> <li> /// <para> /// <b>If you finish before the timeout period ends, send a callback by using the <a>CompleteLifecycleAction</a> /// API call.</b> /// </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> /// <param name="request">Container for the necessary parameters to execute the CompleteLifecycleAction service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the CompleteLifecycleAction service method, as returned by AutoScaling.</returns> /// <exception cref="Amazon.AutoScaling.Model.ResourceContentionException"> /// You already have a pending update to an Amazon EC2 Auto Scaling resource (for example, /// an Auto Scaling group, instance, or load balancer). /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/CompleteLifecycleAction">REST API Reference for CompleteLifecycleAction Operation</seealso> Task<CompleteLifecycleActionResponse> CompleteLifecycleActionAsync(CompleteLifecycleActionRequest request, CancellationToken cancellationToken = default(CancellationToken)); #endregion #region CreateAutoScalingGroup /// <summary> /// <b>We strongly recommend using a launch template when calling this operation to ensure /// full functionality for Amazon EC2 Auto Scaling and Amazon EC2.</b> /// /// /// <para> /// Creates an Auto Scaling group with the specified name and attributes. /// </para> /// /// <para> /// If you exceed your maximum limit of Auto Scaling groups, the call fails. To query /// this limit, call the <a>DescribeAccountLimits</a> API. For information about updating /// this limit, see <a href="https://docs.aws.amazon.com/autoscaling/ec2/userguide/ec2-auto-scaling-quotas.html">Quotas /// for Amazon EC2 Auto Scaling</a> in the <i>Amazon EC2 Auto Scaling User Guide</i>. /// </para> /// /// <para> /// For introductory exercises for creating an Auto Scaling group, see <a href="https://docs.aws.amazon.com/autoscaling/ec2/userguide/GettingStartedTutorial.html">Getting /// started with Amazon EC2 Auto Scaling</a> and <a href="https://docs.aws.amazon.com/autoscaling/ec2/userguide/as-register-lbs-with-asg.html">Tutorial: /// Set up a scaled and load-balanced application</a> in the <i>Amazon EC2 Auto Scaling /// User Guide</i>. For more information, see <a href="https://docs.aws.amazon.com/autoscaling/ec2/userguide/AutoScalingGroup.html">Auto /// Scaling groups</a> in the <i>Amazon EC2 Auto Scaling User Guide</i>. /// </para> /// /// <para> /// Every Auto Scaling group has three size properties (<code>DesiredCapacity</code>, /// <code>MaxSize</code>, and <code>MinSize</code>). Usually, you set these sizes based /// on a specific number of instances. However, if you configure a mixed instances policy /// that defines weights for the instance types, you must specify these sizes with the /// same units that you use for weighting instances. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the CreateAutoScalingGroup service method.</param> /// /// <returns>The response from the CreateAutoScalingGroup service method, as returned by AutoScaling.</returns> /// <exception cref="Amazon.AutoScaling.Model.AlreadyExistsException"> /// You already have an Auto Scaling group or launch configuration with this name. /// </exception> /// <exception cref="Amazon.AutoScaling.Model.LimitExceededException"> /// You have already reached a limit for your Amazon EC2 Auto Scaling resources (for example, /// Auto Scaling groups, launch configurations, or lifecycle hooks). For more information, /// see <a href="https://docs.aws.amazon.com/autoscaling/ec2/APIReference/API_DescribeAccountLimits.html">DescribeAccountLimits</a> /// in the <i>Amazon EC2 Auto Scaling API Reference</i>. /// </exception> /// <exception cref="Amazon.AutoScaling.Model.ResourceContentionException"> /// You already have a pending update to an Amazon EC2 Auto Scaling resource (for example, /// an Auto Scaling group, instance, or load balancer). /// </exception> /// <exception cref="Amazon.AutoScaling.Model.ServiceLinkedRoleFailureException"> /// The service-linked role is not yet ready for use. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/CreateAutoScalingGroup">REST API Reference for CreateAutoScalingGroup Operation</seealso> CreateAutoScalingGroupResponse CreateAutoScalingGroup(CreateAutoScalingGroupRequest request); /// <summary> /// <b>We strongly recommend using a launch template when calling this operation to ensure /// full functionality for Amazon EC2 Auto Scaling and Amazon EC2.</b> /// /// /// <para> /// Creates an Auto Scaling group with the specified name and attributes. /// </para> /// /// <para> /// If you exceed your maximum limit of Auto Scaling groups, the call fails. To query /// this limit, call the <a>DescribeAccountLimits</a> API. For information about updating /// this limit, see <a href="https://docs.aws.amazon.com/autoscaling/ec2/userguide/ec2-auto-scaling-quotas.html">Quotas /// for Amazon EC2 Auto Scaling</a> in the <i>Amazon EC2 Auto Scaling User Guide</i>. /// </para> /// /// <para> /// For introductory exercises for creating an Auto Scaling group, see <a href="https://docs.aws.amazon.com/autoscaling/ec2/userguide/GettingStartedTutorial.html">Getting /// started with Amazon EC2 Auto Scaling</a> and <a href="https://docs.aws.amazon.com/autoscaling/ec2/userguide/as-register-lbs-with-asg.html">Tutorial: /// Set up a scaled and load-balanced application</a> in the <i>Amazon EC2 Auto Scaling /// User Guide</i>. For more information, see <a href="https://docs.aws.amazon.com/autoscaling/ec2/userguide/AutoScalingGroup.html">Auto /// Scaling groups</a> in the <i>Amazon EC2 Auto Scaling User Guide</i>. /// </para> /// /// <para> /// Every Auto Scaling group has three size properties (<code>DesiredCapacity</code>, /// <code>MaxSize</code>, and <code>MinSize</code>). Usually, you set these sizes based /// on a specific number of instances. However, if you configure a mixed instances policy /// that defines weights for the instance types, you must specify these sizes with the /// same units that you use for weighting instances. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the CreateAutoScalingGroup service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the CreateAutoScalingGroup service method, as returned by AutoScaling.</returns> /// <exception cref="Amazon.AutoScaling.Model.AlreadyExistsException"> /// You already have an Auto Scaling group or launch configuration with this name. /// </exception> /// <exception cref="Amazon.AutoScaling.Model.LimitExceededException"> /// You have already reached a limit for your Amazon EC2 Auto Scaling resources (for example, /// Auto Scaling groups, launch configurations, or lifecycle hooks). For more information, /// see <a href="https://docs.aws.amazon.com/autoscaling/ec2/APIReference/API_DescribeAccountLimits.html">DescribeAccountLimits</a> /// in the <i>Amazon EC2 Auto Scaling API Reference</i>. /// </exception> /// <exception cref="Amazon.AutoScaling.Model.ResourceContentionException"> /// You already have a pending update to an Amazon EC2 Auto Scaling resource (for example, /// an Auto Scaling group, instance, or load balancer). /// </exception> /// <exception cref="Amazon.AutoScaling.Model.ServiceLinkedRoleFailureException"> /// The service-linked role is not yet ready for use. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/CreateAutoScalingGroup">REST API Reference for CreateAutoScalingGroup Operation</seealso> Task<CreateAutoScalingGroupResponse> CreateAutoScalingGroupAsync(CreateAutoScalingGroupRequest request, CancellationToken cancellationToken = default(CancellationToken)); #endregion #region CreateLaunchConfiguration /// <summary> /// Creates a launch configuration. /// /// /// <para> /// If you exceed your maximum limit of launch configurations, the call fails. To query /// this limit, call the <a>DescribeAccountLimits</a> API. For information about updating /// this limit, see <a href="https://docs.aws.amazon.com/autoscaling/ec2/userguide/ec2-auto-scaling-quotas.html">Quotas /// for Amazon EC2 Auto Scaling</a> in the <i>Amazon EC2 Auto Scaling User Guide</i>. /// </para> /// /// <para> /// For more information, see <a href="https://docs.aws.amazon.com/autoscaling/ec2/userguide/LaunchConfiguration.html">Launch /// configurations</a> in the <i>Amazon EC2 Auto Scaling User Guide</i>. /// </para> /// <note> /// <para> /// Amazon EC2 Auto Scaling configures instances launched as part of an Auto Scaling group /// using either a launch template or a launch configuration. We strongly recommend that /// you do not use launch configurations. They do not provide full functionality for Amazon /// EC2 Auto Scaling or Amazon EC2. For information about using launch templates, see /// <a href="https://docs.aws.amazon.com/autoscaling/ec2/userguide/launch-templates.html">Launch /// templates</a> in the <i>Amazon EC2 Auto Scaling User Guide</i>. /// </para> /// </note> /// </summary> /// <param name="request">Container for the necessary parameters to execute the CreateLaunchConfiguration service method.</param> /// /// <returns>The response from the CreateLaunchConfiguration service method, as returned by AutoScaling.</returns> /// <exception cref="Amazon.AutoScaling.Model.AlreadyExistsException"> /// You already have an Auto Scaling group or launch configuration with this name. /// </exception> /// <exception cref="Amazon.AutoScaling.Model.LimitExceededException"> /// You have already reached a limit for your Amazon EC2 Auto Scaling resources (for example, /// Auto Scaling groups, launch configurations, or lifecycle hooks). For more information, /// see <a href="https://docs.aws.amazon.com/autoscaling/ec2/APIReference/API_DescribeAccountLimits.html">DescribeAccountLimits</a> /// in the <i>Amazon EC2 Auto Scaling API Reference</i>. /// </exception> /// <exception cref="Amazon.AutoScaling.Model.ResourceContentionException"> /// You already have a pending update to an Amazon EC2 Auto Scaling resource (for example, /// an Auto Scaling group, instance, or load balancer). /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/CreateLaunchConfiguration">REST API Reference for CreateLaunchConfiguration Operation</seealso> CreateLaunchConfigurationResponse CreateLaunchConfiguration(CreateLaunchConfigurationRequest request); /// <summary> /// Creates a launch configuration. /// /// /// <para> /// If you exceed your maximum limit of launch configurations, the call fails. To query /// this limit, call the <a>DescribeAccountLimits</a> API. For information about updating /// this limit, see <a href="https://docs.aws.amazon.com/autoscaling/ec2/userguide/ec2-auto-scaling-quotas.html">Quotas /// for Amazon EC2 Auto Scaling</a> in the <i>Amazon EC2 Auto Scaling User Guide</i>. /// </para> /// /// <para> /// For more information, see <a href="https://docs.aws.amazon.com/autoscaling/ec2/userguide/LaunchConfiguration.html">Launch /// configurations</a> in the <i>Amazon EC2 Auto Scaling User Guide</i>. /// </para> /// <note> /// <para> /// Amazon EC2 Auto Scaling configures instances launched as part of an Auto Scaling group /// using either a launch template or a launch configuration. We strongly recommend that /// you do not use launch configurations. They do not provide full functionality for Amazon /// EC2 Auto Scaling or Amazon EC2. For information about using launch templates, see /// <a href="https://docs.aws.amazon.com/autoscaling/ec2/userguide/launch-templates.html">Launch /// templates</a> in the <i>Amazon EC2 Auto Scaling User Guide</i>. /// </para> /// </note> /// </summary> /// <param name="request">Container for the necessary parameters to execute the CreateLaunchConfiguration service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the CreateLaunchConfiguration service method, as returned by AutoScaling.</returns> /// <exception cref="Amazon.AutoScaling.Model.AlreadyExistsException"> /// You already have an Auto Scaling group or launch configuration with this name. /// </exception> /// <exception cref="Amazon.AutoScaling.Model.LimitExceededException"> /// You have already reached a limit for your Amazon EC2 Auto Scaling resources (for example, /// Auto Scaling groups, launch configurations, or lifecycle hooks). For more information, /// see <a href="https://docs.aws.amazon.com/autoscaling/ec2/APIReference/API_DescribeAccountLimits.html">DescribeAccountLimits</a> /// in the <i>Amazon EC2 Auto Scaling API Reference</i>. /// </exception> /// <exception cref="Amazon.AutoScaling.Model.ResourceContentionException"> /// You already have a pending update to an Amazon EC2 Auto Scaling resource (for example, /// an Auto Scaling group, instance, or load balancer). /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/CreateLaunchConfiguration">REST API Reference for CreateLaunchConfiguration Operation</seealso> Task<CreateLaunchConfigurationResponse> CreateLaunchConfigurationAsync(CreateLaunchConfigurationRequest request, CancellationToken cancellationToken = default(CancellationToken)); #endregion #region CreateOrUpdateTags /// <summary> /// Creates or updates tags for the specified Auto Scaling group. /// /// /// <para> /// When you specify a tag with a key that already exists, the operation overwrites the /// previous tag definition, and you do not get an error message. /// </para> /// /// <para> /// For more information, see <a href="https://docs.aws.amazon.com/autoscaling/ec2/userguide/ec2-auto-scaling-tagging.html">Tag /// Auto Scaling groups and instances</a> in the <i>Amazon EC2 Auto Scaling User Guide</i>. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the CreateOrUpdateTags service method.</param> /// /// <returns>The response from the CreateOrUpdateTags service method, as returned by AutoScaling.</returns> /// <exception cref="Amazon.AutoScaling.Model.AlreadyExistsException"> /// You already have an Auto Scaling group or launch configuration with this name. /// </exception> /// <exception cref="Amazon.AutoScaling.Model.LimitExceededException"> /// You have already reached a limit for your Amazon EC2 Auto Scaling resources (for example, /// Auto Scaling groups, launch configurations, or lifecycle hooks). For more information, /// see <a href="https://docs.aws.amazon.com/autoscaling/ec2/APIReference/API_DescribeAccountLimits.html">DescribeAccountLimits</a> /// in the <i>Amazon EC2 Auto Scaling API Reference</i>. /// </exception> /// <exception cref="Amazon.AutoScaling.Model.ResourceContentionException"> /// You already have a pending update to an Amazon EC2 Auto Scaling resource (for example, /// an Auto Scaling group, instance, or load balancer). /// </exception> /// <exception cref="Amazon.AutoScaling.Model.ResourceInUseException"> /// The operation can't be performed because the resource is in use. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/CreateOrUpdateTags">REST API Reference for CreateOrUpdateTags Operation</seealso> CreateOrUpdateTagsResponse CreateOrUpdateTags(CreateOrUpdateTagsRequest request); /// <summary> /// Creates or updates tags for the specified Auto Scaling group. /// /// /// <para> /// When you specify a tag with a key that already exists, the operation overwrites the /// previous tag definition, and you do not get an error message. /// </para> /// /// <para> /// For more information, see <a href="https://docs.aws.amazon.com/autoscaling/ec2/userguide/ec2-auto-scaling-tagging.html">Tag /// Auto Scaling groups and instances</a> in the <i>Amazon EC2 Auto Scaling User Guide</i>. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the CreateOrUpdateTags service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the CreateOrUpdateTags service method, as returned by AutoScaling.</returns> /// <exception cref="Amazon.AutoScaling.Model.AlreadyExistsException"> /// You already have an Auto Scaling group or launch configuration with this name. /// </exception> /// <exception cref="Amazon.AutoScaling.Model.LimitExceededException"> /// You have already reached a limit for your Amazon EC2 Auto Scaling resources (for example, /// Auto Scaling groups, launch configurations, or lifecycle hooks). For more information, /// see <a href="https://docs.aws.amazon.com/autoscaling/ec2/APIReference/API_DescribeAccountLimits.html">DescribeAccountLimits</a> /// in the <i>Amazon EC2 Auto Scaling API Reference</i>. /// </exception> /// <exception cref="Amazon.AutoScaling.Model.ResourceContentionException"> /// You already have a pending update to an Amazon EC2 Auto Scaling resource (for example, /// an Auto Scaling group, instance, or load balancer). /// </exception> /// <exception cref="Amazon.AutoScaling.Model.ResourceInUseException"> /// The operation can't be performed because the resource is in use. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/CreateOrUpdateTags">REST API Reference for CreateOrUpdateTags Operation</seealso> Task<CreateOrUpdateTagsResponse> CreateOrUpdateTagsAsync(CreateOrUpdateTagsRequest request, CancellationToken cancellationToken = default(CancellationToken)); #endregion #region DeleteAutoScalingGroup /// <summary> /// Deletes the specified Auto Scaling group. /// /// /// <para> /// If the group has instances or scaling activities in progress, you must specify the /// option to force the deletion in order for it to succeed. The force delete operation /// will also terminate the EC2 instances. If the group has a warm pool, the force delete /// option also deletes the warm pool. /// </para> /// /// <para> /// To remove instances from the Auto Scaling group before deleting it, call the <a>DetachInstances</a> /// API with the list of instances and the option to decrement the desired capacity. This /// ensures that Amazon EC2 Auto Scaling does not launch replacement instances. /// </para> /// /// <para> /// To terminate all instances before deleting the Auto Scaling group, call the <a>UpdateAutoScalingGroup</a> /// API and set the minimum size and desired capacity of the Auto Scaling group to zero. /// </para> /// /// <para> /// If the group has scaling policies, deleting the group deletes the policies, the underlying /// alarm actions, and any alarm that no longer has an associated action. /// </para> /// /// <para> /// For more information, see <a href="https://docs.aws.amazon.com/autoscaling/ec2/userguide/as-process-shutdown.html">Delete /// your Auto Scaling infrastructure</a> in the <i>Amazon EC2 Auto Scaling User Guide</i>. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the DeleteAutoScalingGroup service method.</param> /// /// <returns>The response from the DeleteAutoScalingGroup service method, as returned by AutoScaling.</returns> /// <exception cref="Amazon.AutoScaling.Model.ResourceContentionException"> /// You already have a pending update to an Amazon EC2 Auto Scaling resource (for example, /// an Auto Scaling group, instance, or load balancer). /// </exception> /// <exception cref="Amazon.AutoScaling.Model.ResourceInUseException"> /// The operation can't be performed because the resource is in use. /// </exception> /// <exception cref="Amazon.AutoScaling.Model.ScalingActivityInProgressException"> /// The operation can't be performed because there are scaling activities in progress. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/DeleteAutoScalingGroup">REST API Reference for DeleteAutoScalingGroup Operation</seealso> DeleteAutoScalingGroupResponse DeleteAutoScalingGroup(DeleteAutoScalingGroupRequest request); /// <summary> /// Deletes the specified Auto Scaling group. /// /// /// <para> /// If the group has instances or scaling activities in progress, you must specify the /// option to force the deletion in order for it to succeed. The force delete operation /// will also terminate the EC2 instances. If the group has a warm pool, the force delete /// option also deletes the warm pool. /// </para> /// /// <para> /// To remove instances from the Auto Scaling group before deleting it, call the <a>DetachInstances</a> /// API with the list of instances and the option to decrement the desired capacity. This /// ensures that Amazon EC2 Auto Scaling does not launch replacement instances. /// </para> /// /// <para> /// To terminate all instances before deleting the Auto Scaling group, call the <a>UpdateAutoScalingGroup</a> /// API and set the minimum size and desired capacity of the Auto Scaling group to zero. /// </para> /// /// <para> /// If the group has scaling policies, deleting the group deletes the policies, the underlying /// alarm actions, and any alarm that no longer has an associated action. /// </para> /// /// <para> /// For more information, see <a href="https://docs.aws.amazon.com/autoscaling/ec2/userguide/as-process-shutdown.html">Delete /// your Auto Scaling infrastructure</a> in the <i>Amazon EC2 Auto Scaling User Guide</i>. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the DeleteAutoScalingGroup service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the DeleteAutoScalingGroup service method, as returned by AutoScaling.</returns> /// <exception cref="Amazon.AutoScaling.Model.ResourceContentionException"> /// You already have a pending update to an Amazon EC2 Auto Scaling resource (for example, /// an Auto Scaling group, instance, or load balancer). /// </exception> /// <exception cref="Amazon.AutoScaling.Model.ResourceInUseException"> /// The operation can't be performed because the resource is in use. /// </exception> /// <exception cref="Amazon.AutoScaling.Model.ScalingActivityInProgressException"> /// The operation can't be performed because there are scaling activities in progress. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/DeleteAutoScalingGroup">REST API Reference for DeleteAutoScalingGroup Operation</seealso> Task<DeleteAutoScalingGroupResponse> DeleteAutoScalingGroupAsync(DeleteAutoScalingGroupRequest request, CancellationToken cancellationToken = default(CancellationToken)); #endregion #region DeleteLaunchConfiguration /// <summary> /// Deletes the specified launch configuration. /// /// /// <para> /// The launch configuration must not be attached to an Auto Scaling group. When this /// call completes, the launch configuration is no longer available for use. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the DeleteLaunchConfiguration service method.</param> /// /// <returns>The response from the DeleteLaunchConfiguration service method, as returned by AutoScaling.</returns> /// <exception cref="Amazon.AutoScaling.Model.ResourceContentionException"> /// You already have a pending update to an Amazon EC2 Auto Scaling resource (for example, /// an Auto Scaling group, instance, or load balancer). /// </exception> /// <exception cref="Amazon.AutoScaling.Model.ResourceInUseException"> /// The operation can't be performed because the resource is in use. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/DeleteLaunchConfiguration">REST API Reference for DeleteLaunchConfiguration Operation</seealso> DeleteLaunchConfigurationResponse DeleteLaunchConfiguration(DeleteLaunchConfigurationRequest request); /// <summary> /// Deletes the specified launch configuration. /// /// /// <para> /// The launch configuration must not be attached to an Auto Scaling group. When this /// call completes, the launch configuration is no longer available for use. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the DeleteLaunchConfiguration service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the DeleteLaunchConfiguration service method, as returned by AutoScaling.</returns> /// <exception cref="Amazon.AutoScaling.Model.ResourceContentionException"> /// You already have a pending update to an Amazon EC2 Auto Scaling resource (for example, /// an Auto Scaling group, instance, or load balancer). /// </exception> /// <exception cref="Amazon.AutoScaling.Model.ResourceInUseException"> /// The operation can't be performed because the resource is in use. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/DeleteLaunchConfiguration">REST API Reference for DeleteLaunchConfiguration Operation</seealso> Task<DeleteLaunchConfigurationResponse> DeleteLaunchConfigurationAsync(DeleteLaunchConfigurationRequest request, CancellationToken cancellationToken = default(CancellationToken)); #endregion #region DeleteLifecycleHook /// <summary> /// Deletes the specified lifecycle hook. /// /// /// <para> /// If there are any outstanding lifecycle actions, they are completed first (<code>ABANDON</code> /// for launching instances, <code>CONTINUE</code> for terminating instances). /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the DeleteLifecycleHook service method.</param> /// /// <returns>The response from the DeleteLifecycleHook service method, as returned by AutoScaling.</returns> /// <exception cref="Amazon.AutoScaling.Model.ResourceContentionException"> /// You already have a pending update to an Amazon EC2 Auto Scaling resource (for example, /// an Auto Scaling group, instance, or load balancer). /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/DeleteLifecycleHook">REST API Reference for DeleteLifecycleHook Operation</seealso> DeleteLifecycleHookResponse DeleteLifecycleHook(DeleteLifecycleHookRequest request); /// <summary> /// Deletes the specified lifecycle hook. /// /// /// <para> /// If there are any outstanding lifecycle actions, they are completed first (<code>ABANDON</code> /// for launching instances, <code>CONTINUE</code> for terminating instances). /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the DeleteLifecycleHook service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the DeleteLifecycleHook service method, as returned by AutoScaling.</returns> /// <exception cref="Amazon.AutoScaling.Model.ResourceContentionException"> /// You already have a pending update to an Amazon EC2 Auto Scaling resource (for example, /// an Auto Scaling group, instance, or load balancer). /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/DeleteLifecycleHook">REST API Reference for DeleteLifecycleHook Operation</seealso> Task<DeleteLifecycleHookResponse> DeleteLifecycleHookAsync(DeleteLifecycleHookRequest request, CancellationToken cancellationToken = default(CancellationToken)); #endregion #region DeleteNotificationConfiguration /// <summary> /// Deletes the specified notification. /// </summary> /// <param name="request">Container for the necessary parameters to execute the DeleteNotificationConfiguration service method.</param> /// /// <returns>The response from the DeleteNotificationConfiguration service method, as returned by AutoScaling.</returns> /// <exception cref="Amazon.AutoScaling.Model.ResourceContentionException"> /// You already have a pending update to an Amazon EC2 Auto Scaling resource (for example, /// an Auto Scaling group, instance, or load balancer). /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/DeleteNotificationConfiguration">REST API Reference for DeleteNotificationConfiguration Operation</seealso> DeleteNotificationConfigurationResponse DeleteNotificationConfiguration(DeleteNotificationConfigurationRequest request); /// <summary> /// Deletes the specified notification. /// </summary> /// <param name="request">Container for the necessary parameters to execute the DeleteNotificationConfiguration service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the DeleteNotificationConfiguration service method, as returned by AutoScaling.</returns> /// <exception cref="Amazon.AutoScaling.Model.ResourceContentionException"> /// You already have a pending update to an Amazon EC2 Auto Scaling resource (for example, /// an Auto Scaling group, instance, or load balancer). /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/DeleteNotificationConfiguration">REST API Reference for DeleteNotificationConfiguration Operation</seealso> Task<DeleteNotificationConfigurationResponse> DeleteNotificationConfigurationAsync(DeleteNotificationConfigurationRequest request, CancellationToken cancellationToken = default(CancellationToken)); #endregion #region DeletePolicy /// <summary> /// Deletes the specified scaling policy. /// /// /// <para> /// Deleting either a step scaling policy or a simple scaling policy deletes the underlying /// alarm action, but does not delete the alarm, even if it no longer has an associated /// action. /// </para> /// /// <para> /// For more information, see <a href="https://docs.aws.amazon.com/autoscaling/ec2/userguide/deleting-scaling-policy.html">Deleting /// a scaling policy</a> in the <i>Amazon EC2 Auto Scaling User Guide</i>. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the DeletePolicy service method.</param> /// /// <returns>The response from the DeletePolicy service method, as returned by AutoScaling.</returns> /// <exception cref="Amazon.AutoScaling.Model.ResourceContentionException"> /// You already have a pending update to an Amazon EC2 Auto Scaling resource (for example, /// an Auto Scaling group, instance, or load balancer). /// </exception> /// <exception cref="Amazon.AutoScaling.Model.ServiceLinkedRoleFailureException"> /// The service-linked role is not yet ready for use. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/DeletePolicy">REST API Reference for DeletePolicy Operation</seealso> DeletePolicyResponse DeletePolicy(DeletePolicyRequest request); /// <summary> /// Deletes the specified scaling policy. /// /// /// <para> /// Deleting either a step scaling policy or a simple scaling policy deletes the underlying /// alarm action, but does not delete the alarm, even if it no longer has an associated /// action. /// </para> /// /// <para> /// For more information, see <a href="https://docs.aws.amazon.com/autoscaling/ec2/userguide/deleting-scaling-policy.html">Deleting /// a scaling policy</a> in the <i>Amazon EC2 Auto Scaling User Guide</i>. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the DeletePolicy service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the DeletePolicy service method, as returned by AutoScaling.</returns> /// <exception cref="Amazon.AutoScaling.Model.ResourceContentionException"> /// You already have a pending update to an Amazon EC2 Auto Scaling resource (for example, /// an Auto Scaling group, instance, or load balancer). /// </exception> /// <exception cref="Amazon.AutoScaling.Model.ServiceLinkedRoleFailureException"> /// The service-linked role is not yet ready for use. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/DeletePolicy">REST API Reference for DeletePolicy Operation</seealso> Task<DeletePolicyResponse> DeletePolicyAsync(DeletePolicyRequest request, CancellationToken cancellationToken = default(CancellationToken)); #endregion #region DeleteScheduledAction /// <summary> /// Deletes the specified scheduled action. /// </summary> /// <param name="request">Container for the necessary parameters to execute the DeleteScheduledAction service method.</param> /// /// <returns>The response from the DeleteScheduledAction service method, as returned by AutoScaling.</returns> /// <exception cref="Amazon.AutoScaling.Model.ResourceContentionException"> /// You already have a pending update to an Amazon EC2 Auto Scaling resource (for example, /// an Auto Scaling group, instance, or load balancer). /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/DeleteScheduledAction">REST API Reference for DeleteScheduledAction Operation</seealso> DeleteScheduledActionResponse DeleteScheduledAction(DeleteScheduledActionRequest request); /// <summary> /// Deletes the specified scheduled action. /// </summary> /// <param name="request">Container for the necessary parameters to execute the DeleteScheduledAction service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the DeleteScheduledAction service method, as returned by AutoScaling.</returns> /// <exception cref="Amazon.AutoScaling.Model.ResourceContentionException"> /// You already have a pending update to an Amazon EC2 Auto Scaling resource (for example, /// an Auto Scaling group, instance, or load balancer). /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/DeleteScheduledAction">REST API Reference for DeleteScheduledAction Operation</seealso> Task<DeleteScheduledActionResponse> DeleteScheduledActionAsync(DeleteScheduledActionRequest request, CancellationToken cancellationToken = default(CancellationToken)); #endregion #region DeleteTags /// <summary> /// Deletes the specified tags. /// </summary> /// <param name="request">Container for the necessary parameters to execute the DeleteTags service method.</param> /// /// <returns>The response from the DeleteTags service method, as returned by AutoScaling.</returns> /// <exception cref="Amazon.AutoScaling.Model.ResourceContentionException"> /// You already have a pending update to an Amazon EC2 Auto Scaling resource (for example, /// an Auto Scaling group, instance, or load balancer). /// </exception> /// <exception cref="Amazon.AutoScaling.Model.ResourceInUseException"> /// The operation can't be performed because the resource is in use. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/DeleteTags">REST API Reference for DeleteTags Operation</seealso> DeleteTagsResponse DeleteTags(DeleteTagsRequest request); /// <summary> /// Deletes the specified tags. /// </summary> /// <param name="request">Container for the necessary parameters to execute the DeleteTags service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the DeleteTags service method, as returned by AutoScaling.</returns> /// <exception cref="Amazon.AutoScaling.Model.ResourceContentionException"> /// You already have a pending update to an Amazon EC2 Auto Scaling resource (for example, /// an Auto Scaling group, instance, or load balancer). /// </exception> /// <exception cref="Amazon.AutoScaling.Model.ResourceInUseException"> /// The operation can't be performed because the resource is in use. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/DeleteTags">REST API Reference for DeleteTags Operation</seealso> Task<DeleteTagsResponse> DeleteTagsAsync(DeleteTagsRequest request, CancellationToken cancellationToken = default(CancellationToken)); #endregion #region DeleteWarmPool /// <summary> /// Deletes the warm pool for the specified Auto Scaling group. /// /// /// <para> /// For more information, 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> /// </summary> /// <param name="request">Container for the necessary parameters to execute the DeleteWarmPool service method.</param> /// /// <returns>The response from the DeleteWarmPool service method, as returned by AutoScaling.</returns> /// <exception cref="Amazon.AutoScaling.Model.LimitExceededException"> /// You have already reached a limit for your Amazon EC2 Auto Scaling resources (for example, /// Auto Scaling groups, launch configurations, or lifecycle hooks). For more information, /// see <a href="https://docs.aws.amazon.com/autoscaling/ec2/APIReference/API_DescribeAccountLimits.html">DescribeAccountLimits</a> /// in the <i>Amazon EC2 Auto Scaling API Reference</i>. /// </exception> /// <exception cref="Amazon.AutoScaling.Model.ResourceContentionException"> /// You already have a pending update to an Amazon EC2 Auto Scaling resource (for example, /// an Auto Scaling group, instance, or load balancer). /// </exception> /// <exception cref="Amazon.AutoScaling.Model.ResourceInUseException"> /// The operation can't be performed because the resource is in use. /// </exception> /// <exception cref="Amazon.AutoScaling.Model.ScalingActivityInProgressException"> /// The operation can't be performed because there are scaling activities in progress. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/DeleteWarmPool">REST API Reference for DeleteWarmPool Operation</seealso> DeleteWarmPoolResponse DeleteWarmPool(DeleteWarmPoolRequest request); /// <summary> /// Deletes the warm pool for the specified Auto Scaling group. /// /// /// <para> /// For more information, 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> /// </summary> /// <param name="request">Container for the necessary parameters to execute the DeleteWarmPool service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the DeleteWarmPool service method, as returned by AutoScaling.</returns> /// <exception cref="Amazon.AutoScaling.Model.LimitExceededException"> /// You have already reached a limit for your Amazon EC2 Auto Scaling resources (for example, /// Auto Scaling groups, launch configurations, or lifecycle hooks). For more information, /// see <a href="https://docs.aws.amazon.com/autoscaling/ec2/APIReference/API_DescribeAccountLimits.html">DescribeAccountLimits</a> /// in the <i>Amazon EC2 Auto Scaling API Reference</i>. /// </exception> /// <exception cref="Amazon.AutoScaling.Model.ResourceContentionException"> /// You already have a pending update to an Amazon EC2 Auto Scaling resource (for example, /// an Auto Scaling group, instance, or load balancer). /// </exception> /// <exception cref="Amazon.AutoScaling.Model.ResourceInUseException"> /// The operation can't be performed because the resource is in use. /// </exception> /// <exception cref="Amazon.AutoScaling.Model.ScalingActivityInProgressException"> /// The operation can't be performed because there are scaling activities in progress. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/DeleteWarmPool">REST API Reference for DeleteWarmPool Operation</seealso> Task<DeleteWarmPoolResponse> DeleteWarmPoolAsync(DeleteWarmPoolRequest request, CancellationToken cancellationToken = default(CancellationToken)); #endregion #region DescribeAccountLimits /// <summary> /// Describes the current Amazon EC2 Auto Scaling resource quotas for your account. /// /// /// <para> /// When you establish an Amazon Web Services account, the account has initial quotas /// on the maximum number of Auto Scaling groups and launch configurations that you can /// create in a given Region. For more information, see <a href="https://docs.aws.amazon.com/autoscaling/ec2/userguide/ec2-auto-scaling-quotas.html">Quotas /// for Amazon EC2 Auto Scaling</a> in the <i>Amazon EC2 Auto Scaling User Guide</i>. /// </para> /// </summary> /// /// <returns>The response from the DescribeAccountLimits service method, as returned by AutoScaling.</returns> /// <exception cref="Amazon.AutoScaling.Model.ResourceContentionException"> /// You already have a pending update to an Amazon EC2 Auto Scaling resource (for example, /// an Auto Scaling group, instance, or load balancer). /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/DescribeAccountLimits">REST API Reference for DescribeAccountLimits Operation</seealso> DescribeAccountLimitsResponse DescribeAccountLimits(); /// <summary> /// Describes the current Amazon EC2 Auto Scaling resource quotas for your account. /// /// /// <para> /// When you establish an Amazon Web Services account, the account has initial quotas /// on the maximum number of Auto Scaling groups and launch configurations that you can /// create in a given Region. For more information, see <a href="https://docs.aws.amazon.com/autoscaling/ec2/userguide/ec2-auto-scaling-quotas.html">Quotas /// for Amazon EC2 Auto Scaling</a> in the <i>Amazon EC2 Auto Scaling User Guide</i>. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the DescribeAccountLimits service method.</param> /// /// <returns>The response from the DescribeAccountLimits service method, as returned by AutoScaling.</returns> /// <exception cref="Amazon.AutoScaling.Model.ResourceContentionException"> /// You already have a pending update to an Amazon EC2 Auto Scaling resource (for example, /// an Auto Scaling group, instance, or load balancer). /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/DescribeAccountLimits">REST API Reference for DescribeAccountLimits Operation</seealso> DescribeAccountLimitsResponse DescribeAccountLimits(DescribeAccountLimitsRequest request); /// <summary> /// Describes the current Amazon EC2 Auto Scaling resource quotas for your account. /// /// /// <para> /// When you establish an Amazon Web Services account, the account has initial quotas /// on the maximum number of Auto Scaling groups and launch configurations that you can /// create in a given Region. For more information, see <a href="https://docs.aws.amazon.com/autoscaling/ec2/userguide/ec2-auto-scaling-quotas.html">Quotas /// for Amazon EC2 Auto Scaling</a> in the <i>Amazon EC2 Auto Scaling User Guide</i>. /// </para> /// </summary> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the DescribeAccountLimits service method, as returned by AutoScaling.</returns> /// <exception cref="Amazon.AutoScaling.Model.ResourceContentionException"> /// You already have a pending update to an Amazon EC2 Auto Scaling resource (for example, /// an Auto Scaling group, instance, or load balancer). /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/DescribeAccountLimits">REST API Reference for DescribeAccountLimits Operation</seealso> Task<DescribeAccountLimitsResponse> DescribeAccountLimitsAsync(System.Threading.CancellationToken cancellationToken = default(CancellationToken)); /// <summary> /// Describes the current Amazon EC2 Auto Scaling resource quotas for your account. /// /// /// <para> /// When you establish an Amazon Web Services account, the account has initial quotas /// on the maximum number of Auto Scaling groups and launch configurations that you can /// create in a given Region. For more information, see <a href="https://docs.aws.amazon.com/autoscaling/ec2/userguide/ec2-auto-scaling-quotas.html">Quotas /// for Amazon EC2 Auto Scaling</a> in the <i>Amazon EC2 Auto Scaling User Guide</i>. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the DescribeAccountLimits service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the DescribeAccountLimits service method, as returned by AutoScaling.</returns> /// <exception cref="Amazon.AutoScaling.Model.ResourceContentionException"> /// You already have a pending update to an Amazon EC2 Auto Scaling resource (for example, /// an Auto Scaling group, instance, or load balancer). /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/DescribeAccountLimits">REST API Reference for DescribeAccountLimits Operation</seealso> Task<DescribeAccountLimitsResponse> DescribeAccountLimitsAsync(DescribeAccountLimitsRequest request, CancellationToken cancellationToken = default(CancellationToken)); #endregion #region DescribeAdjustmentTypes /// <summary> /// Describes the available adjustment types for step scaling and simple scaling policies. /// /// /// <para> /// The following adjustment types are supported: /// </para> /// <ul> <li> /// <para> /// <code>ChangeInCapacity</code> /// </para> /// </li> <li> /// <para> /// <code>ExactCapacity</code> /// </para> /// </li> <li> /// <para> /// <code>PercentChangeInCapacity</code> /// </para> /// </li> </ul> /// </summary> /// /// <returns>The response from the DescribeAdjustmentTypes service method, as returned by AutoScaling.</returns> /// <exception cref="Amazon.AutoScaling.Model.ResourceContentionException"> /// You already have a pending update to an Amazon EC2 Auto Scaling resource (for example, /// an Auto Scaling group, instance, or load balancer). /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/DescribeAdjustmentTypes">REST API Reference for DescribeAdjustmentTypes Operation</seealso> DescribeAdjustmentTypesResponse DescribeAdjustmentTypes(); /// <summary> /// Describes the available adjustment types for step scaling and simple scaling policies. /// /// /// <para> /// The following adjustment types are supported: /// </para> /// <ul> <li> /// <para> /// <code>ChangeInCapacity</code> /// </para> /// </li> <li> /// <para> /// <code>ExactCapacity</code> /// </para> /// </li> <li> /// <para> /// <code>PercentChangeInCapacity</code> /// </para> /// </li> </ul> /// </summary> /// <param name="request">Container for the necessary parameters to execute the DescribeAdjustmentTypes service method.</param> /// /// <returns>The response from the DescribeAdjustmentTypes service method, as returned by AutoScaling.</returns> /// <exception cref="Amazon.AutoScaling.Model.ResourceContentionException"> /// You already have a pending update to an Amazon EC2 Auto Scaling resource (for example, /// an Auto Scaling group, instance, or load balancer). /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/DescribeAdjustmentTypes">REST API Reference for DescribeAdjustmentTypes Operation</seealso> DescribeAdjustmentTypesResponse DescribeAdjustmentTypes(DescribeAdjustmentTypesRequest request); /// <summary> /// Describes the available adjustment types for step scaling and simple scaling policies. /// /// /// <para> /// The following adjustment types are supported: /// </para> /// <ul> <li> /// <para> /// <code>ChangeInCapacity</code> /// </para> /// </li> <li> /// <para> /// <code>ExactCapacity</code> /// </para> /// </li> <li> /// <para> /// <code>PercentChangeInCapacity</code> /// </para> /// </li> </ul> /// </summary> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the DescribeAdjustmentTypes service method, as returned by AutoScaling.</returns> /// <exception cref="Amazon.AutoScaling.Model.ResourceContentionException"> /// You already have a pending update to an Amazon EC2 Auto Scaling resource (for example, /// an Auto Scaling group, instance, or load balancer). /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/DescribeAdjustmentTypes">REST API Reference for DescribeAdjustmentTypes Operation</seealso> Task<DescribeAdjustmentTypesResponse> DescribeAdjustmentTypesAsync(System.Threading.CancellationToken cancellationToken = default(CancellationToken)); /// <summary> /// Describes the available adjustment types for step scaling and simple scaling policies. /// /// /// <para> /// The following adjustment types are supported: /// </para> /// <ul> <li> /// <para> /// <code>ChangeInCapacity</code> /// </para> /// </li> <li> /// <para> /// <code>ExactCapacity</code> /// </para> /// </li> <li> /// <para> /// <code>PercentChangeInCapacity</code> /// </para> /// </li> </ul> /// </summary> /// <param name="request">Container for the necessary parameters to execute the DescribeAdjustmentTypes service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the DescribeAdjustmentTypes service method, as returned by AutoScaling.</returns> /// <exception cref="Amazon.AutoScaling.Model.ResourceContentionException"> /// You already have a pending update to an Amazon EC2 Auto Scaling resource (for example, /// an Auto Scaling group, instance, or load balancer). /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/DescribeAdjustmentTypes">REST API Reference for DescribeAdjustmentTypes Operation</seealso> Task<DescribeAdjustmentTypesResponse> DescribeAdjustmentTypesAsync(DescribeAdjustmentTypesRequest request, CancellationToken cancellationToken = default(CancellationToken)); #endregion #region DescribeAutoScalingGroups /// <summary> /// Gets information about the Auto Scaling groups in the account and Region. /// /// /// <para> /// If you specify Auto Scaling group names, the output includes information for only /// the specified Auto Scaling groups. If you specify filters, the output includes information /// for only those Auto Scaling groups that meet the filter criteria. If you do not specify /// group names or filters, the output includes information for all Auto Scaling groups. /// /// </para> /// /// <para> /// This operation also returns information about instances in Auto Scaling groups. To /// retrieve information about the instances in a warm pool, you must call the <a>DescribeWarmPool</a> /// API. /// </para> /// </summary> /// /// <returns>The response from the DescribeAutoScalingGroups service method, as returned by AutoScaling.</returns> /// <exception cref="Amazon.AutoScaling.Model.InvalidNextTokenException"> /// The <code>NextToken</code> value is not valid. /// </exception> /// <exception cref="Amazon.AutoScaling.Model.ResourceContentionException"> /// You already have a pending update to an Amazon EC2 Auto Scaling resource (for example, /// an Auto Scaling group, instance, or load balancer). /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/DescribeAutoScalingGroups">REST API Reference for DescribeAutoScalingGroups Operation</seealso> DescribeAutoScalingGroupsResponse DescribeAutoScalingGroups(); /// <summary> /// Gets information about the Auto Scaling groups in the account and Region. /// /// /// <para> /// If you specify Auto Scaling group names, the output includes information for only /// the specified Auto Scaling groups. If you specify filters, the output includes information /// for only those Auto Scaling groups that meet the filter criteria. If you do not specify /// group names or filters, the output includes information for all Auto Scaling groups. /// /// </para> /// /// <para> /// This operation also returns information about instances in Auto Scaling groups. To /// retrieve information about the instances in a warm pool, you must call the <a>DescribeWarmPool</a> /// API. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the DescribeAutoScalingGroups service method.</param> /// /// <returns>The response from the DescribeAutoScalingGroups service method, as returned by AutoScaling.</returns> /// <exception cref="Amazon.AutoScaling.Model.InvalidNextTokenException"> /// The <code>NextToken</code> value is not valid. /// </exception> /// <exception cref="Amazon.AutoScaling.Model.ResourceContentionException"> /// You already have a pending update to an Amazon EC2 Auto Scaling resource (for example, /// an Auto Scaling group, instance, or load balancer). /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/DescribeAutoScalingGroups">REST API Reference for DescribeAutoScalingGroups Operation</seealso> DescribeAutoScalingGroupsResponse DescribeAutoScalingGroups(DescribeAutoScalingGroupsRequest request); /// <summary> /// Gets information about the Auto Scaling groups in the account and Region. /// /// /// <para> /// If you specify Auto Scaling group names, the output includes information for only /// the specified Auto Scaling groups. If you specify filters, the output includes information /// for only those Auto Scaling groups that meet the filter criteria. If you do not specify /// group names or filters, the output includes information for all Auto Scaling groups. /// /// </para> /// /// <para> /// This operation also returns information about instances in Auto Scaling groups. To /// retrieve information about the instances in a warm pool, you must call the <a>DescribeWarmPool</a> /// API. /// </para> /// </summary> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the DescribeAutoScalingGroups service method, as returned by AutoScaling.</returns> /// <exception cref="Amazon.AutoScaling.Model.InvalidNextTokenException"> /// The <code>NextToken</code> value is not valid. /// </exception> /// <exception cref="Amazon.AutoScaling.Model.ResourceContentionException"> /// You already have a pending update to an Amazon EC2 Auto Scaling resource (for example, /// an Auto Scaling group, instance, or load balancer). /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/DescribeAutoScalingGroups">REST API Reference for DescribeAutoScalingGroups Operation</seealso> Task<DescribeAutoScalingGroupsResponse> DescribeAutoScalingGroupsAsync(System.Threading.CancellationToken cancellationToken = default(CancellationToken)); /// <summary> /// Gets information about the Auto Scaling groups in the account and Region. /// /// /// <para> /// If you specify Auto Scaling group names, the output includes information for only /// the specified Auto Scaling groups. If you specify filters, the output includes information /// for only those Auto Scaling groups that meet the filter criteria. If you do not specify /// group names or filters, the output includes information for all Auto Scaling groups. /// /// </para> /// /// <para> /// This operation also returns information about instances in Auto Scaling groups. To /// retrieve information about the instances in a warm pool, you must call the <a>DescribeWarmPool</a> /// API. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the DescribeAutoScalingGroups service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the DescribeAutoScalingGroups service method, as returned by AutoScaling.</returns> /// <exception cref="Amazon.AutoScaling.Model.InvalidNextTokenException"> /// The <code>NextToken</code> value is not valid. /// </exception> /// <exception cref="Amazon.AutoScaling.Model.ResourceContentionException"> /// You already have a pending update to an Amazon EC2 Auto Scaling resource (for example, /// an Auto Scaling group, instance, or load balancer). /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/DescribeAutoScalingGroups">REST API Reference for DescribeAutoScalingGroups Operation</seealso> Task<DescribeAutoScalingGroupsResponse> DescribeAutoScalingGroupsAsync(DescribeAutoScalingGroupsRequest request, CancellationToken cancellationToken = default(CancellationToken)); #endregion #region DescribeAutoScalingInstances /// <summary> /// Gets information about the Auto Scaling instances in the account and Region. /// </summary> /// /// <returns>The response from the DescribeAutoScalingInstances service method, as returned by AutoScaling.</returns> /// <exception cref="Amazon.AutoScaling.Model.InvalidNextTokenException"> /// The <code>NextToken</code> value is not valid. /// </exception> /// <exception cref="Amazon.AutoScaling.Model.ResourceContentionException"> /// You already have a pending update to an Amazon EC2 Auto Scaling resource (for example, /// an Auto Scaling group, instance, or load balancer). /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/DescribeAutoScalingInstances">REST API Reference for DescribeAutoScalingInstances Operation</seealso> DescribeAutoScalingInstancesResponse DescribeAutoScalingInstances(); /// <summary> /// Gets information about the Auto Scaling instances in the account and Region. /// </summary> /// <param name="request">Container for the necessary parameters to execute the DescribeAutoScalingInstances service method.</param> /// /// <returns>The response from the DescribeAutoScalingInstances service method, as returned by AutoScaling.</returns> /// <exception cref="Amazon.AutoScaling.Model.InvalidNextTokenException"> /// The <code>NextToken</code> value is not valid. /// </exception> /// <exception cref="Amazon.AutoScaling.Model.ResourceContentionException"> /// You already have a pending update to an Amazon EC2 Auto Scaling resource (for example, /// an Auto Scaling group, instance, or load balancer). /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/DescribeAutoScalingInstances">REST API Reference for DescribeAutoScalingInstances Operation</seealso> DescribeAutoScalingInstancesResponse DescribeAutoScalingInstances(DescribeAutoScalingInstancesRequest request); /// <summary> /// Gets information about the Auto Scaling instances in the account and Region. /// </summary> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the DescribeAutoScalingInstances service method, as returned by AutoScaling.</returns> /// <exception cref="Amazon.AutoScaling.Model.InvalidNextTokenException"> /// The <code>NextToken</code> value is not valid. /// </exception> /// <exception cref="Amazon.AutoScaling.Model.ResourceContentionException"> /// You already have a pending update to an Amazon EC2 Auto Scaling resource (for example, /// an Auto Scaling group, instance, or load balancer). /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/DescribeAutoScalingInstances">REST API Reference for DescribeAutoScalingInstances Operation</seealso> Task<DescribeAutoScalingInstancesResponse> DescribeAutoScalingInstancesAsync(System.Threading.CancellationToken cancellationToken = default(CancellationToken)); /// <summary> /// Gets information about the Auto Scaling instances in the account and Region. /// </summary> /// <param name="request">Container for the necessary parameters to execute the DescribeAutoScalingInstances service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the DescribeAutoScalingInstances service method, as returned by AutoScaling.</returns> /// <exception cref="Amazon.AutoScaling.Model.InvalidNextTokenException"> /// The <code>NextToken</code> value is not valid. /// </exception> /// <exception cref="Amazon.AutoScaling.Model.ResourceContentionException"> /// You already have a pending update to an Amazon EC2 Auto Scaling resource (for example, /// an Auto Scaling group, instance, or load balancer). /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/DescribeAutoScalingInstances">REST API Reference for DescribeAutoScalingInstances Operation</seealso> Task<DescribeAutoScalingInstancesResponse> DescribeAutoScalingInstancesAsync(DescribeAutoScalingInstancesRequest request, CancellationToken cancellationToken = default(CancellationToken)); #endregion #region DescribeAutoScalingNotificationTypes /// <summary> /// Describes the notification types that are supported by Amazon EC2 Auto Scaling. /// </summary> /// /// <returns>The response from the DescribeAutoScalingNotificationTypes service method, as returned by AutoScaling.</returns> /// <exception cref="Amazon.AutoScaling.Model.ResourceContentionException"> /// You already have a pending update to an Amazon EC2 Auto Scaling resource (for example, /// an Auto Scaling group, instance, or load balancer). /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/DescribeAutoScalingNotificationTypes">REST API Reference for DescribeAutoScalingNotificationTypes Operation</seealso> DescribeAutoScalingNotificationTypesResponse DescribeAutoScalingNotificationTypes(); /// <summary> /// Describes the notification types that are supported by Amazon EC2 Auto Scaling. /// </summary> /// <param name="request">Container for the necessary parameters to execute the DescribeAutoScalingNotificationTypes service method.</param> /// /// <returns>The response from the DescribeAutoScalingNotificationTypes service method, as returned by AutoScaling.</returns> /// <exception cref="Amazon.AutoScaling.Model.ResourceContentionException"> /// You already have a pending update to an Amazon EC2 Auto Scaling resource (for example, /// an Auto Scaling group, instance, or load balancer). /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/DescribeAutoScalingNotificationTypes">REST API Reference for DescribeAutoScalingNotificationTypes Operation</seealso> DescribeAutoScalingNotificationTypesResponse DescribeAutoScalingNotificationTypes(DescribeAutoScalingNotificationTypesRequest request); /// <summary> /// Describes the notification types that are supported by Amazon EC2 Auto Scaling. /// </summary> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the DescribeAutoScalingNotificationTypes service method, as returned by AutoScaling.</returns> /// <exception cref="Amazon.AutoScaling.Model.ResourceContentionException"> /// You already have a pending update to an Amazon EC2 Auto Scaling resource (for example, /// an Auto Scaling group, instance, or load balancer). /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/DescribeAutoScalingNotificationTypes">REST API Reference for DescribeAutoScalingNotificationTypes Operation</seealso> Task<DescribeAutoScalingNotificationTypesResponse> DescribeAutoScalingNotificationTypesAsync(System.Threading.CancellationToken cancellationToken = default(CancellationToken)); /// <summary> /// Describes the notification types that are supported by Amazon EC2 Auto Scaling. /// </summary> /// <param name="request">Container for the necessary parameters to execute the DescribeAutoScalingNotificationTypes service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the DescribeAutoScalingNotificationTypes service method, as returned by AutoScaling.</returns> /// <exception cref="Amazon.AutoScaling.Model.ResourceContentionException"> /// You already have a pending update to an Amazon EC2 Auto Scaling resource (for example, /// an Auto Scaling group, instance, or load balancer). /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/DescribeAutoScalingNotificationTypes">REST API Reference for DescribeAutoScalingNotificationTypes Operation</seealso> Task<DescribeAutoScalingNotificationTypesResponse> DescribeAutoScalingNotificationTypesAsync(DescribeAutoScalingNotificationTypesRequest request, CancellationToken cancellationToken = default(CancellationToken)); #endregion #region DescribeInstanceRefreshes /// <summary> /// Gets information about the instance refreshes for the specified 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 after you make configuration changes. /// </para> /// /// <para> /// To help you determine the status of an instance refresh, Amazon EC2 Auto Scaling returns /// information about the instance refreshes you previously initiated, including their /// status, start time, end time, the percentage of the instance refresh that is complete, /// and the number of instances remaining to update before the instance refresh is complete. /// If a rollback is initiated while an instance refresh is in progress, Amazon EC2 Auto /// Scaling also returns information about the rollback of the instance refresh. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the DescribeInstanceRefreshes service method.</param> /// /// <returns>The response from the DescribeInstanceRefreshes service method, as returned by AutoScaling.</returns> /// <exception cref="Amazon.AutoScaling.Model.InvalidNextTokenException"> /// The <code>NextToken</code> value is not valid. /// </exception> /// <exception cref="Amazon.AutoScaling.Model.ResourceContentionException"> /// You already have a pending update to an Amazon EC2 Auto Scaling resource (for example, /// an Auto Scaling group, instance, or load balancer). /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/DescribeInstanceRefreshes">REST API Reference for DescribeInstanceRefreshes Operation</seealso> DescribeInstanceRefreshesResponse DescribeInstanceRefreshes(DescribeInstanceRefreshesRequest request); /// <summary> /// Gets information about the instance refreshes for the specified 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 after you make configuration changes. /// </para> /// /// <para> /// To help you determine the status of an instance refresh, Amazon EC2 Auto Scaling returns /// information about the instance refreshes you previously initiated, including their /// status, start time, end time, the percentage of the instance refresh that is complete, /// and the number of instances remaining to update before the instance refresh is complete. /// If a rollback is initiated while an instance refresh is in progress, Amazon EC2 Auto /// Scaling also returns information about the rollback of the instance refresh. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the DescribeInstanceRefreshes service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the DescribeInstanceRefreshes service method, as returned by AutoScaling.</returns> /// <exception cref="Amazon.AutoScaling.Model.InvalidNextTokenException"> /// The <code>NextToken</code> value is not valid. /// </exception> /// <exception cref="Amazon.AutoScaling.Model.ResourceContentionException"> /// You already have a pending update to an Amazon EC2 Auto Scaling resource (for example, /// an Auto Scaling group, instance, or load balancer). /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/DescribeInstanceRefreshes">REST API Reference for DescribeInstanceRefreshes Operation</seealso> Task<DescribeInstanceRefreshesResponse> DescribeInstanceRefreshesAsync(DescribeInstanceRefreshesRequest request, CancellationToken cancellationToken = default(CancellationToken)); #endregion #region DescribeLaunchConfigurations /// <summary> /// Gets information about the launch configurations in the account and Region. /// </summary> /// /// <returns>The response from the DescribeLaunchConfigurations service method, as returned by AutoScaling.</returns> /// <exception cref="Amazon.AutoScaling.Model.InvalidNextTokenException"> /// The <code>NextToken</code> value is not valid. /// </exception> /// <exception cref="Amazon.AutoScaling.Model.ResourceContentionException"> /// You already have a pending update to an Amazon EC2 Auto Scaling resource (for example, /// an Auto Scaling group, instance, or load balancer). /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/DescribeLaunchConfigurations">REST API Reference for DescribeLaunchConfigurations Operation</seealso> DescribeLaunchConfigurationsResponse DescribeLaunchConfigurations(); /// <summary> /// Gets information about the launch configurations in the account and Region. /// </summary> /// <param name="request">Container for the necessary parameters to execute the DescribeLaunchConfigurations service method.</param> /// /// <returns>The response from the DescribeLaunchConfigurations service method, as returned by AutoScaling.</returns> /// <exception cref="Amazon.AutoScaling.Model.InvalidNextTokenException"> /// The <code>NextToken</code> value is not valid. /// </exception> /// <exception cref="Amazon.AutoScaling.Model.ResourceContentionException"> /// You already have a pending update to an Amazon EC2 Auto Scaling resource (for example, /// an Auto Scaling group, instance, or load balancer). /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/DescribeLaunchConfigurations">REST API Reference for DescribeLaunchConfigurations Operation</seealso> DescribeLaunchConfigurationsResponse DescribeLaunchConfigurations(DescribeLaunchConfigurationsRequest request); /// <summary> /// Gets information about the launch configurations in the account and Region. /// </summary> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the DescribeLaunchConfigurations service method, as returned by AutoScaling.</returns> /// <exception cref="Amazon.AutoScaling.Model.InvalidNextTokenException"> /// The <code>NextToken</code> value is not valid. /// </exception> /// <exception cref="Amazon.AutoScaling.Model.ResourceContentionException"> /// You already have a pending update to an Amazon EC2 Auto Scaling resource (for example, /// an Auto Scaling group, instance, or load balancer). /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/DescribeLaunchConfigurations">REST API Reference for DescribeLaunchConfigurations Operation</seealso> Task<DescribeLaunchConfigurationsResponse> DescribeLaunchConfigurationsAsync(System.Threading.CancellationToken cancellationToken = default(CancellationToken)); /// <summary> /// Gets information about the launch configurations in the account and Region. /// </summary> /// <param name="request">Container for the necessary parameters to execute the DescribeLaunchConfigurations service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the DescribeLaunchConfigurations service method, as returned by AutoScaling.</returns> /// <exception cref="Amazon.AutoScaling.Model.InvalidNextTokenException"> /// The <code>NextToken</code> value is not valid. /// </exception> /// <exception cref="Amazon.AutoScaling.Model.ResourceContentionException"> /// You already have a pending update to an Amazon EC2 Auto Scaling resource (for example, /// an Auto Scaling group, instance, or load balancer). /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/DescribeLaunchConfigurations">REST API Reference for DescribeLaunchConfigurations Operation</seealso> Task<DescribeLaunchConfigurationsResponse> DescribeLaunchConfigurationsAsync(DescribeLaunchConfigurationsRequest request, CancellationToken cancellationToken = default(CancellationToken)); #endregion #region DescribeLifecycleHooks /// <summary> /// Gets information about the lifecycle hooks for the specified Auto Scaling group. /// </summary> /// <param name="request">Container for the necessary parameters to execute the DescribeLifecycleHooks service method.</param> /// /// <returns>The response from the DescribeLifecycleHooks service method, as returned by AutoScaling.</returns> /// <exception cref="Amazon.AutoScaling.Model.ResourceContentionException"> /// You already have a pending update to an Amazon EC2 Auto Scaling resource (for example, /// an Auto Scaling group, instance, or load balancer). /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/DescribeLifecycleHooks">REST API Reference for DescribeLifecycleHooks Operation</seealso> DescribeLifecycleHooksResponse DescribeLifecycleHooks(DescribeLifecycleHooksRequest request); /// <summary> /// Gets information about the lifecycle hooks for the specified Auto Scaling group. /// </summary> /// <param name="request">Container for the necessary parameters to execute the DescribeLifecycleHooks service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the DescribeLifecycleHooks service method, as returned by AutoScaling.</returns> /// <exception cref="Amazon.AutoScaling.Model.ResourceContentionException"> /// You already have a pending update to an Amazon EC2 Auto Scaling resource (for example, /// an Auto Scaling group, instance, or load balancer). /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/DescribeLifecycleHooks">REST API Reference for DescribeLifecycleHooks Operation</seealso> Task<DescribeLifecycleHooksResponse> DescribeLifecycleHooksAsync(DescribeLifecycleHooksRequest request, CancellationToken cancellationToken = default(CancellationToken)); #endregion #region DescribeLifecycleHookTypes /// <summary> /// Describes the available types of lifecycle hooks. /// /// /// <para> /// The following hook types are supported: /// </para> /// <ul> <li> /// <para> /// <code>autoscaling:EC2_INSTANCE_LAUNCHING</code> /// </para> /// </li> <li> /// <para> /// <code>autoscaling:EC2_INSTANCE_TERMINATING</code> /// </para> /// </li> </ul> /// </summary> /// <param name="request">Container for the necessary parameters to execute the DescribeLifecycleHookTypes service method.</param> /// /// <returns>The response from the DescribeLifecycleHookTypes service method, as returned by AutoScaling.</returns> /// <exception cref="Amazon.AutoScaling.Model.ResourceContentionException"> /// You already have a pending update to an Amazon EC2 Auto Scaling resource (for example, /// an Auto Scaling group, instance, or load balancer). /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/DescribeLifecycleHookTypes">REST API Reference for DescribeLifecycleHookTypes Operation</seealso> DescribeLifecycleHookTypesResponse DescribeLifecycleHookTypes(DescribeLifecycleHookTypesRequest request); /// <summary> /// Describes the available types of lifecycle hooks. /// /// /// <para> /// The following hook types are supported: /// </para> /// <ul> <li> /// <para> /// <code>autoscaling:EC2_INSTANCE_LAUNCHING</code> /// </para> /// </li> <li> /// <para> /// <code>autoscaling:EC2_INSTANCE_TERMINATING</code> /// </para> /// </li> </ul> /// </summary> /// <param name="request">Container for the necessary parameters to execute the DescribeLifecycleHookTypes service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the DescribeLifecycleHookTypes service method, as returned by AutoScaling.</returns> /// <exception cref="Amazon.AutoScaling.Model.ResourceContentionException"> /// You already have a pending update to an Amazon EC2 Auto Scaling resource (for example, /// an Auto Scaling group, instance, or load balancer). /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/DescribeLifecycleHookTypes">REST API Reference for DescribeLifecycleHookTypes Operation</seealso> Task<DescribeLifecycleHookTypesResponse> DescribeLifecycleHookTypesAsync(DescribeLifecycleHookTypesRequest request, CancellationToken cancellationToken = default(CancellationToken)); #endregion #region DescribeLoadBalancers /// <summary> /// <note> /// <para> /// This API operation is superseded by <a>DescribeTrafficSources</a>, which can describe /// multiple traffic sources types. We recommend using <code>DescribeTrafficSources</code> /// to simplify how you manage traffic sources. However, we continue to support <code>DescribeLoadBalancers</code>. /// You can use both the original <code>DescribeLoadBalancers</code> API operation and /// <code>DescribeTrafficSources</code> on the same Auto Scaling group. /// </para> /// </note> /// <para> /// Gets information about the load balancers for the specified Auto Scaling group. /// </para> /// /// <para> /// This operation describes only Classic Load Balancers. If you have Application Load /// Balancers, Network Load Balancers, or Gateway Load Balancers, use the <a>DescribeLoadBalancerTargetGroups</a> /// API instead. /// </para> /// /// <para> /// To determine the attachment status of the load balancer, use the <code>State</code> /// element in the response. When you attach a load balancer to an Auto Scaling group, /// the initial <code>State</code> value is <code>Adding</code>. The state transitions /// to <code>Added</code> after all Auto Scaling instances are registered with the load /// balancer. If Elastic Load Balancing health checks are enabled for the Auto Scaling /// group, the state transitions to <code>InService</code> after at least one Auto Scaling /// instance passes the health check. When the load balancer is in the <code>InService</code> /// state, Amazon EC2 Auto Scaling can terminate and replace any instances that are reported /// as unhealthy. If no registered instances pass the health checks, the load balancer /// doesn't enter the <code>InService</code> state. /// </para> /// /// <para> /// Load balancers also have an <code>InService</code> state if you attach them in the /// <a>CreateAutoScalingGroup</a> API call. If your load balancer state is <code>InService</code>, /// but it is not working properly, check the scaling activities by calling <a>DescribeScalingActivities</a> /// and take any corrective actions necessary. /// </para> /// /// <para> /// For help with failed health checks, see <a href="https://docs.aws.amazon.com/autoscaling/ec2/userguide/ts-as-healthchecks.html">Troubleshooting /// Amazon EC2 Auto Scaling: Health checks</a> in the <i>Amazon EC2 Auto Scaling User /// Guide</i>. For more information, see <a href="https://docs.aws.amazon.com/autoscaling/ec2/userguide/autoscaling-load-balancer.html">Use /// Elastic Load Balancing to distribute traffic across the instances in your Auto Scaling /// group</a> in the <i>Amazon EC2 Auto Scaling User Guide</i>. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the DescribeLoadBalancers service method.</param> /// /// <returns>The response from the DescribeLoadBalancers service method, as returned by AutoScaling.</returns> /// <exception cref="Amazon.AutoScaling.Model.InvalidNextTokenException"> /// The <code>NextToken</code> value is not valid. /// </exception> /// <exception cref="Amazon.AutoScaling.Model.ResourceContentionException"> /// You already have a pending update to an Amazon EC2 Auto Scaling resource (for example, /// an Auto Scaling group, instance, or load balancer). /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/DescribeLoadBalancers">REST API Reference for DescribeLoadBalancers Operation</seealso> DescribeLoadBalancersResponse DescribeLoadBalancers(DescribeLoadBalancersRequest request); /// <summary> /// <note> /// <para> /// This API operation is superseded by <a>DescribeTrafficSources</a>, which can describe /// multiple traffic sources types. We recommend using <code>DescribeTrafficSources</code> /// to simplify how you manage traffic sources. However, we continue to support <code>DescribeLoadBalancers</code>. /// You can use both the original <code>DescribeLoadBalancers</code> API operation and /// <code>DescribeTrafficSources</code> on the same Auto Scaling group. /// </para> /// </note> /// <para> /// Gets information about the load balancers for the specified Auto Scaling group. /// </para> /// /// <para> /// This operation describes only Classic Load Balancers. If you have Application Load /// Balancers, Network Load Balancers, or Gateway Load Balancers, use the <a>DescribeLoadBalancerTargetGroups</a> /// API instead. /// </para> /// /// <para> /// To determine the attachment status of the load balancer, use the <code>State</code> /// element in the response. When you attach a load balancer to an Auto Scaling group, /// the initial <code>State</code> value is <code>Adding</code>. The state transitions /// to <code>Added</code> after all Auto Scaling instances are registered with the load /// balancer. If Elastic Load Balancing health checks are enabled for the Auto Scaling /// group, the state transitions to <code>InService</code> after at least one Auto Scaling /// instance passes the health check. When the load balancer is in the <code>InService</code> /// state, Amazon EC2 Auto Scaling can terminate and replace any instances that are reported /// as unhealthy. If no registered instances pass the health checks, the load balancer /// doesn't enter the <code>InService</code> state. /// </para> /// /// <para> /// Load balancers also have an <code>InService</code> state if you attach them in the /// <a>CreateAutoScalingGroup</a> API call. If your load balancer state is <code>InService</code>, /// but it is not working properly, check the scaling activities by calling <a>DescribeScalingActivities</a> /// and take any corrective actions necessary. /// </para> /// /// <para> /// For help with failed health checks, see <a href="https://docs.aws.amazon.com/autoscaling/ec2/userguide/ts-as-healthchecks.html">Troubleshooting /// Amazon EC2 Auto Scaling: Health checks</a> in the <i>Amazon EC2 Auto Scaling User /// Guide</i>. For more information, see <a href="https://docs.aws.amazon.com/autoscaling/ec2/userguide/autoscaling-load-balancer.html">Use /// Elastic Load Balancing to distribute traffic across the instances in your Auto Scaling /// group</a> in the <i>Amazon EC2 Auto Scaling User Guide</i>. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the DescribeLoadBalancers service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the DescribeLoadBalancers service method, as returned by AutoScaling.</returns> /// <exception cref="Amazon.AutoScaling.Model.InvalidNextTokenException"> /// The <code>NextToken</code> value is not valid. /// </exception> /// <exception cref="Amazon.AutoScaling.Model.ResourceContentionException"> /// You already have a pending update to an Amazon EC2 Auto Scaling resource (for example, /// an Auto Scaling group, instance, or load balancer). /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/DescribeLoadBalancers">REST API Reference for DescribeLoadBalancers Operation</seealso> Task<DescribeLoadBalancersResponse> DescribeLoadBalancersAsync(DescribeLoadBalancersRequest request, CancellationToken cancellationToken = default(CancellationToken)); #endregion #region DescribeLoadBalancerTargetGroups /// <summary> /// <note> /// <para> /// This API operation is superseded by <a>DescribeTrafficSources</a>, which can describe /// multiple traffic sources types. We recommend using <code>DetachTrafficSources</code> /// to simplify how you manage traffic sources. However, we continue to support <code>DescribeLoadBalancerTargetGroups</code>. /// You can use both the original <code>DescribeLoadBalancerTargetGroups</code> API operation /// and <code>DescribeTrafficSources</code> on the same Auto Scaling group. /// </para> /// </note> /// <para> /// Gets information about the Elastic Load Balancing target groups for the specified /// Auto Scaling group. /// </para> /// /// <para> /// To determine the attachment status of the target group, use the <code>State</code> /// element in the response. When you attach a target group to an Auto Scaling group, /// the initial <code>State</code> value is <code>Adding</code>. The state transitions /// to <code>Added</code> after all Auto Scaling instances are registered with the target /// group. If Elastic Load Balancing health checks are enabled for the Auto Scaling group, /// the state transitions to <code>InService</code> after at least one Auto Scaling instance /// passes the health check. When the target group is in the <code>InService</code> state, /// Amazon EC2 Auto Scaling can terminate and replace any instances that are reported /// as unhealthy. If no registered instances pass the health checks, the target group /// doesn't enter the <code>InService</code> state. /// </para> /// /// <para> /// Target groups also have an <code>InService</code> state if you attach them in the /// <a>CreateAutoScalingGroup</a> API call. If your target group state is <code>InService</code>, /// but it is not working properly, check the scaling activities by calling <a>DescribeScalingActivities</a> /// and take any corrective actions necessary. /// </para> /// /// <para> /// For help with failed health checks, see <a href="https://docs.aws.amazon.com/autoscaling/ec2/userguide/ts-as-healthchecks.html">Troubleshooting /// Amazon EC2 Auto Scaling: Health checks</a> in the <i>Amazon EC2 Auto Scaling User /// Guide</i>. For more information, see <a href="https://docs.aws.amazon.com/autoscaling/ec2/userguide/autoscaling-load-balancer.html">Use /// Elastic Load Balancing to distribute traffic across the instances in your Auto Scaling /// group</a> in the <i>Amazon EC2 Auto Scaling User Guide</i>. /// </para> /// <note> /// <para> /// You can use this operation to describe target groups that were attached by using <a>AttachLoadBalancerTargetGroups</a>, /// but not for target groups that were attached by using <a>AttachTrafficSources</a>. /// </para> /// </note> /// </summary> /// <param name="request">Container for the necessary parameters to execute the DescribeLoadBalancerTargetGroups service method.</param> /// /// <returns>The response from the DescribeLoadBalancerTargetGroups service method, as returned by AutoScaling.</returns> /// <exception cref="Amazon.AutoScaling.Model.InvalidNextTokenException"> /// The <code>NextToken</code> value is not valid. /// </exception> /// <exception cref="Amazon.AutoScaling.Model.ResourceContentionException"> /// You already have a pending update to an Amazon EC2 Auto Scaling resource (for example, /// an Auto Scaling group, instance, or load balancer). /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/DescribeLoadBalancerTargetGroups">REST API Reference for DescribeLoadBalancerTargetGroups Operation</seealso> DescribeLoadBalancerTargetGroupsResponse DescribeLoadBalancerTargetGroups(DescribeLoadBalancerTargetGroupsRequest request); /// <summary> /// <note> /// <para> /// This API operation is superseded by <a>DescribeTrafficSources</a>, which can describe /// multiple traffic sources types. We recommend using <code>DetachTrafficSources</code> /// to simplify how you manage traffic sources. However, we continue to support <code>DescribeLoadBalancerTargetGroups</code>. /// You can use both the original <code>DescribeLoadBalancerTargetGroups</code> API operation /// and <code>DescribeTrafficSources</code> on the same Auto Scaling group. /// </para> /// </note> /// <para> /// Gets information about the Elastic Load Balancing target groups for the specified /// Auto Scaling group. /// </para> /// /// <para> /// To determine the attachment status of the target group, use the <code>State</code> /// element in the response. When you attach a target group to an Auto Scaling group, /// the initial <code>State</code> value is <code>Adding</code>. The state transitions /// to <code>Added</code> after all Auto Scaling instances are registered with the target /// group. If Elastic Load Balancing health checks are enabled for the Auto Scaling group, /// the state transitions to <code>InService</code> after at least one Auto Scaling instance /// passes the health check. When the target group is in the <code>InService</code> state, /// Amazon EC2 Auto Scaling can terminate and replace any instances that are reported /// as unhealthy. If no registered instances pass the health checks, the target group /// doesn't enter the <code>InService</code> state. /// </para> /// /// <para> /// Target groups also have an <code>InService</code> state if you attach them in the /// <a>CreateAutoScalingGroup</a> API call. If your target group state is <code>InService</code>, /// but it is not working properly, check the scaling activities by calling <a>DescribeScalingActivities</a> /// and take any corrective actions necessary. /// </para> /// /// <para> /// For help with failed health checks, see <a href="https://docs.aws.amazon.com/autoscaling/ec2/userguide/ts-as-healthchecks.html">Troubleshooting /// Amazon EC2 Auto Scaling: Health checks</a> in the <i>Amazon EC2 Auto Scaling User /// Guide</i>. For more information, see <a href="https://docs.aws.amazon.com/autoscaling/ec2/userguide/autoscaling-load-balancer.html">Use /// Elastic Load Balancing to distribute traffic across the instances in your Auto Scaling /// group</a> in the <i>Amazon EC2 Auto Scaling User Guide</i>. /// </para> /// <note> /// <para> /// You can use this operation to describe target groups that were attached by using <a>AttachLoadBalancerTargetGroups</a>, /// but not for target groups that were attached by using <a>AttachTrafficSources</a>. /// </para> /// </note> /// </summary> /// <param name="request">Container for the necessary parameters to execute the DescribeLoadBalancerTargetGroups service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the DescribeLoadBalancerTargetGroups service method, as returned by AutoScaling.</returns> /// <exception cref="Amazon.AutoScaling.Model.InvalidNextTokenException"> /// The <code>NextToken</code> value is not valid. /// </exception> /// <exception cref="Amazon.AutoScaling.Model.ResourceContentionException"> /// You already have a pending update to an Amazon EC2 Auto Scaling resource (for example, /// an Auto Scaling group, instance, or load balancer). /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/DescribeLoadBalancerTargetGroups">REST API Reference for DescribeLoadBalancerTargetGroups Operation</seealso> Task<DescribeLoadBalancerTargetGroupsResponse> DescribeLoadBalancerTargetGroupsAsync(DescribeLoadBalancerTargetGroupsRequest request, CancellationToken cancellationToken = default(CancellationToken)); #endregion #region DescribeMetricCollectionTypes /// <summary> /// Describes the available CloudWatch metrics for Amazon EC2 Auto Scaling. /// </summary> /// /// <returns>The response from the DescribeMetricCollectionTypes service method, as returned by AutoScaling.</returns> /// <exception cref="Amazon.AutoScaling.Model.ResourceContentionException"> /// You already have a pending update to an Amazon EC2 Auto Scaling resource (for example, /// an Auto Scaling group, instance, or load balancer). /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/DescribeMetricCollectionTypes">REST API Reference for DescribeMetricCollectionTypes Operation</seealso> DescribeMetricCollectionTypesResponse DescribeMetricCollectionTypes(); /// <summary> /// Describes the available CloudWatch metrics for Amazon EC2 Auto Scaling. /// </summary> /// <param name="request">Container for the necessary parameters to execute the DescribeMetricCollectionTypes service method.</param> /// /// <returns>The response from the DescribeMetricCollectionTypes service method, as returned by AutoScaling.</returns> /// <exception cref="Amazon.AutoScaling.Model.ResourceContentionException"> /// You already have a pending update to an Amazon EC2 Auto Scaling resource (for example, /// an Auto Scaling group, instance, or load balancer). /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/DescribeMetricCollectionTypes">REST API Reference for DescribeMetricCollectionTypes Operation</seealso> DescribeMetricCollectionTypesResponse DescribeMetricCollectionTypes(DescribeMetricCollectionTypesRequest request); /// <summary> /// Describes the available CloudWatch metrics for Amazon EC2 Auto Scaling. /// </summary> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the DescribeMetricCollectionTypes service method, as returned by AutoScaling.</returns> /// <exception cref="Amazon.AutoScaling.Model.ResourceContentionException"> /// You already have a pending update to an Amazon EC2 Auto Scaling resource (for example, /// an Auto Scaling group, instance, or load balancer). /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/DescribeMetricCollectionTypes">REST API Reference for DescribeMetricCollectionTypes Operation</seealso> Task<DescribeMetricCollectionTypesResponse> DescribeMetricCollectionTypesAsync(System.Threading.CancellationToken cancellationToken = default(CancellationToken)); /// <summary> /// Describes the available CloudWatch metrics for Amazon EC2 Auto Scaling. /// </summary> /// <param name="request">Container for the necessary parameters to execute the DescribeMetricCollectionTypes service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the DescribeMetricCollectionTypes service method, as returned by AutoScaling.</returns> /// <exception cref="Amazon.AutoScaling.Model.ResourceContentionException"> /// You already have a pending update to an Amazon EC2 Auto Scaling resource (for example, /// an Auto Scaling group, instance, or load balancer). /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/DescribeMetricCollectionTypes">REST API Reference for DescribeMetricCollectionTypes Operation</seealso> Task<DescribeMetricCollectionTypesResponse> DescribeMetricCollectionTypesAsync(DescribeMetricCollectionTypesRequest request, CancellationToken cancellationToken = default(CancellationToken)); #endregion #region DescribeNotificationConfigurations /// <summary> /// Gets information about the Amazon SNS notifications that are configured for one or /// more Auto Scaling groups. /// </summary> /// /// <returns>The response from the DescribeNotificationConfigurations service method, as returned by AutoScaling.</returns> /// <exception cref="Amazon.AutoScaling.Model.InvalidNextTokenException"> /// The <code>NextToken</code> value is not valid. /// </exception> /// <exception cref="Amazon.AutoScaling.Model.ResourceContentionException"> /// You already have a pending update to an Amazon EC2 Auto Scaling resource (for example, /// an Auto Scaling group, instance, or load balancer). /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/DescribeNotificationConfigurations">REST API Reference for DescribeNotificationConfigurations Operation</seealso> DescribeNotificationConfigurationsResponse DescribeNotificationConfigurations(); /// <summary> /// Gets information about the Amazon SNS notifications that are configured for one or /// more Auto Scaling groups. /// </summary> /// <param name="request">Container for the necessary parameters to execute the DescribeNotificationConfigurations service method.</param> /// /// <returns>The response from the DescribeNotificationConfigurations service method, as returned by AutoScaling.</returns> /// <exception cref="Amazon.AutoScaling.Model.InvalidNextTokenException"> /// The <code>NextToken</code> value is not valid. /// </exception> /// <exception cref="Amazon.AutoScaling.Model.ResourceContentionException"> /// You already have a pending update to an Amazon EC2 Auto Scaling resource (for example, /// an Auto Scaling group, instance, or load balancer). /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/DescribeNotificationConfigurations">REST API Reference for DescribeNotificationConfigurations Operation</seealso> DescribeNotificationConfigurationsResponse DescribeNotificationConfigurations(DescribeNotificationConfigurationsRequest request); /// <summary> /// Gets information about the Amazon SNS notifications that are configured for one or /// more Auto Scaling groups. /// </summary> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the DescribeNotificationConfigurations service method, as returned by AutoScaling.</returns> /// <exception cref="Amazon.AutoScaling.Model.InvalidNextTokenException"> /// The <code>NextToken</code> value is not valid. /// </exception> /// <exception cref="Amazon.AutoScaling.Model.ResourceContentionException"> /// You already have a pending update to an Amazon EC2 Auto Scaling resource (for example, /// an Auto Scaling group, instance, or load balancer). /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/DescribeNotificationConfigurations">REST API Reference for DescribeNotificationConfigurations Operation</seealso> Task<DescribeNotificationConfigurationsResponse> DescribeNotificationConfigurationsAsync(System.Threading.CancellationToken cancellationToken = default(CancellationToken)); /// <summary> /// Gets information about the Amazon SNS notifications that are configured for one or /// more Auto Scaling groups. /// </summary> /// <param name="request">Container for the necessary parameters to execute the DescribeNotificationConfigurations service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the DescribeNotificationConfigurations service method, as returned by AutoScaling.</returns> /// <exception cref="Amazon.AutoScaling.Model.InvalidNextTokenException"> /// The <code>NextToken</code> value is not valid. /// </exception> /// <exception cref="Amazon.AutoScaling.Model.ResourceContentionException"> /// You already have a pending update to an Amazon EC2 Auto Scaling resource (for example, /// an Auto Scaling group, instance, or load balancer). /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/DescribeNotificationConfigurations">REST API Reference for DescribeNotificationConfigurations Operation</seealso> Task<DescribeNotificationConfigurationsResponse> DescribeNotificationConfigurationsAsync(DescribeNotificationConfigurationsRequest request, CancellationToken cancellationToken = default(CancellationToken)); #endregion #region DescribePolicies /// <summary> /// Gets information about the scaling policies in the account and Region. /// </summary> /// /// <returns>The response from the DescribePolicies service method, as returned by AutoScaling.</returns> /// <exception cref="Amazon.AutoScaling.Model.InvalidNextTokenException"> /// The <code>NextToken</code> value is not valid. /// </exception> /// <exception cref="Amazon.AutoScaling.Model.ResourceContentionException"> /// You already have a pending update to an Amazon EC2 Auto Scaling resource (for example, /// an Auto Scaling group, instance, or load balancer). /// </exception> /// <exception cref="Amazon.AutoScaling.Model.ServiceLinkedRoleFailureException"> /// The service-linked role is not yet ready for use. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/DescribePolicies">REST API Reference for DescribePolicies Operation</seealso> DescribePoliciesResponse DescribePolicies(); /// <summary> /// Gets information about the scaling policies in the account and Region. /// </summary> /// <param name="request">Container for the necessary parameters to execute the DescribePolicies service method.</param> /// /// <returns>The response from the DescribePolicies service method, as returned by AutoScaling.</returns> /// <exception cref="Amazon.AutoScaling.Model.InvalidNextTokenException"> /// The <code>NextToken</code> value is not valid. /// </exception> /// <exception cref="Amazon.AutoScaling.Model.ResourceContentionException"> /// You already have a pending update to an Amazon EC2 Auto Scaling resource (for example, /// an Auto Scaling group, instance, or load balancer). /// </exception> /// <exception cref="Amazon.AutoScaling.Model.ServiceLinkedRoleFailureException"> /// The service-linked role is not yet ready for use. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/DescribePolicies">REST API Reference for DescribePolicies Operation</seealso> DescribePoliciesResponse DescribePolicies(DescribePoliciesRequest request); /// <summary> /// Gets information about the scaling policies in the account and Region. /// </summary> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the DescribePolicies service method, as returned by AutoScaling.</returns> /// <exception cref="Amazon.AutoScaling.Model.InvalidNextTokenException"> /// The <code>NextToken</code> value is not valid. /// </exception> /// <exception cref="Amazon.AutoScaling.Model.ResourceContentionException"> /// You already have a pending update to an Amazon EC2 Auto Scaling resource (for example, /// an Auto Scaling group, instance, or load balancer). /// </exception> /// <exception cref="Amazon.AutoScaling.Model.ServiceLinkedRoleFailureException"> /// The service-linked role is not yet ready for use. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/DescribePolicies">REST API Reference for DescribePolicies Operation</seealso> Task<DescribePoliciesResponse> DescribePoliciesAsync(System.Threading.CancellationToken cancellationToken = default(CancellationToken)); /// <summary> /// Gets information about the scaling policies in the account and Region. /// </summary> /// <param name="request">Container for the necessary parameters to execute the DescribePolicies service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the DescribePolicies service method, as returned by AutoScaling.</returns> /// <exception cref="Amazon.AutoScaling.Model.InvalidNextTokenException"> /// The <code>NextToken</code> value is not valid. /// </exception> /// <exception cref="Amazon.AutoScaling.Model.ResourceContentionException"> /// You already have a pending update to an Amazon EC2 Auto Scaling resource (for example, /// an Auto Scaling group, instance, or load balancer). /// </exception> /// <exception cref="Amazon.AutoScaling.Model.ServiceLinkedRoleFailureException"> /// The service-linked role is not yet ready for use. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/DescribePolicies">REST API Reference for DescribePolicies Operation</seealso> Task<DescribePoliciesResponse> DescribePoliciesAsync(DescribePoliciesRequest request, CancellationToken cancellationToken = default(CancellationToken)); #endregion #region DescribeScalingActivities /// <summary> /// Gets information about the scaling activities in the account and Region. /// /// /// <para> /// When scaling events occur, you see a record of the scaling activity in the scaling /// activities. For more information, see <a href="https://docs.aws.amazon.com/autoscaling/ec2/userguide/as-verify-scaling-activity.html">Verifying /// a scaling activity for an Auto Scaling group</a> in the <i>Amazon EC2 Auto Scaling /// User Guide</i>. /// </para> /// /// <para> /// If the scaling event succeeds, the value of the <code>StatusCode</code> element in /// the response is <code>Successful</code>. If an attempt to launch instances failed, /// the <code>StatusCode</code> value is <code>Failed</code> or <code>Cancelled</code> /// and the <code>StatusMessage</code> element in the response indicates the cause of /// the failure. For help interpreting the <code>StatusMessage</code>, see <a href="https://docs.aws.amazon.com/autoscaling/ec2/userguide/CHAP_Troubleshooting.html">Troubleshooting /// Amazon EC2 Auto Scaling</a> in the <i>Amazon EC2 Auto Scaling User Guide</i>. /// </para> /// </summary> /// /// <returns>The response from the DescribeScalingActivities service method, as returned by AutoScaling.</returns> /// <exception cref="Amazon.AutoScaling.Model.InvalidNextTokenException"> /// The <code>NextToken</code> value is not valid. /// </exception> /// <exception cref="Amazon.AutoScaling.Model.ResourceContentionException"> /// You already have a pending update to an Amazon EC2 Auto Scaling resource (for example, /// an Auto Scaling group, instance, or load balancer). /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/DescribeScalingActivities">REST API Reference for DescribeScalingActivities Operation</seealso> DescribeScalingActivitiesResponse DescribeScalingActivities(); /// <summary> /// Gets information about the scaling activities in the account and Region. /// /// /// <para> /// When scaling events occur, you see a record of the scaling activity in the scaling /// activities. For more information, see <a href="https://docs.aws.amazon.com/autoscaling/ec2/userguide/as-verify-scaling-activity.html">Verifying /// a scaling activity for an Auto Scaling group</a> in the <i>Amazon EC2 Auto Scaling /// User Guide</i>. /// </para> /// /// <para> /// If the scaling event succeeds, the value of the <code>StatusCode</code> element in /// the response is <code>Successful</code>. If an attempt to launch instances failed, /// the <code>StatusCode</code> value is <code>Failed</code> or <code>Cancelled</code> /// and the <code>StatusMessage</code> element in the response indicates the cause of /// the failure. For help interpreting the <code>StatusMessage</code>, see <a href="https://docs.aws.amazon.com/autoscaling/ec2/userguide/CHAP_Troubleshooting.html">Troubleshooting /// Amazon EC2 Auto Scaling</a> in the <i>Amazon EC2 Auto Scaling User Guide</i>. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the DescribeScalingActivities service method.</param> /// /// <returns>The response from the DescribeScalingActivities service method, as returned by AutoScaling.</returns> /// <exception cref="Amazon.AutoScaling.Model.InvalidNextTokenException"> /// The <code>NextToken</code> value is not valid. /// </exception> /// <exception cref="Amazon.AutoScaling.Model.ResourceContentionException"> /// You already have a pending update to an Amazon EC2 Auto Scaling resource (for example, /// an Auto Scaling group, instance, or load balancer). /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/DescribeScalingActivities">REST API Reference for DescribeScalingActivities Operation</seealso> DescribeScalingActivitiesResponse DescribeScalingActivities(DescribeScalingActivitiesRequest request); /// <summary> /// Gets information about the scaling activities in the account and Region. /// /// /// <para> /// When scaling events occur, you see a record of the scaling activity in the scaling /// activities. For more information, see <a href="https://docs.aws.amazon.com/autoscaling/ec2/userguide/as-verify-scaling-activity.html">Verifying /// a scaling activity for an Auto Scaling group</a> in the <i>Amazon EC2 Auto Scaling /// User Guide</i>. /// </para> /// /// <para> /// If the scaling event succeeds, the value of the <code>StatusCode</code> element in /// the response is <code>Successful</code>. If an attempt to launch instances failed, /// the <code>StatusCode</code> value is <code>Failed</code> or <code>Cancelled</code> /// and the <code>StatusMessage</code> element in the response indicates the cause of /// the failure. For help interpreting the <code>StatusMessage</code>, see <a href="https://docs.aws.amazon.com/autoscaling/ec2/userguide/CHAP_Troubleshooting.html">Troubleshooting /// Amazon EC2 Auto Scaling</a> in the <i>Amazon EC2 Auto Scaling User Guide</i>. /// </para> /// </summary> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the DescribeScalingActivities service method, as returned by AutoScaling.</returns> /// <exception cref="Amazon.AutoScaling.Model.InvalidNextTokenException"> /// The <code>NextToken</code> value is not valid. /// </exception> /// <exception cref="Amazon.AutoScaling.Model.ResourceContentionException"> /// You already have a pending update to an Amazon EC2 Auto Scaling resource (for example, /// an Auto Scaling group, instance, or load balancer). /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/DescribeScalingActivities">REST API Reference for DescribeScalingActivities Operation</seealso> Task<DescribeScalingActivitiesResponse> DescribeScalingActivitiesAsync(System.Threading.CancellationToken cancellationToken = default(CancellationToken)); /// <summary> /// Gets information about the scaling activities in the account and Region. /// /// /// <para> /// When scaling events occur, you see a record of the scaling activity in the scaling /// activities. For more information, see <a href="https://docs.aws.amazon.com/autoscaling/ec2/userguide/as-verify-scaling-activity.html">Verifying /// a scaling activity for an Auto Scaling group</a> in the <i>Amazon EC2 Auto Scaling /// User Guide</i>. /// </para> /// /// <para> /// If the scaling event succeeds, the value of the <code>StatusCode</code> element in /// the response is <code>Successful</code>. If an attempt to launch instances failed, /// the <code>StatusCode</code> value is <code>Failed</code> or <code>Cancelled</code> /// and the <code>StatusMessage</code> element in the response indicates the cause of /// the failure. For help interpreting the <code>StatusMessage</code>, see <a href="https://docs.aws.amazon.com/autoscaling/ec2/userguide/CHAP_Troubleshooting.html">Troubleshooting /// Amazon EC2 Auto Scaling</a> in the <i>Amazon EC2 Auto Scaling User Guide</i>. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the DescribeScalingActivities service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the DescribeScalingActivities service method, as returned by AutoScaling.</returns> /// <exception cref="Amazon.AutoScaling.Model.InvalidNextTokenException"> /// The <code>NextToken</code> value is not valid. /// </exception> /// <exception cref="Amazon.AutoScaling.Model.ResourceContentionException"> /// You already have a pending update to an Amazon EC2 Auto Scaling resource (for example, /// an Auto Scaling group, instance, or load balancer). /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/DescribeScalingActivities">REST API Reference for DescribeScalingActivities Operation</seealso> Task<DescribeScalingActivitiesResponse> DescribeScalingActivitiesAsync(DescribeScalingActivitiesRequest request, CancellationToken cancellationToken = default(CancellationToken)); #endregion #region DescribeScalingProcessTypes /// <summary> /// Describes the scaling process types for use with the <a>ResumeProcesses</a> and <a>SuspendProcesses</a> /// APIs. /// </summary> /// /// <returns>The response from the DescribeScalingProcessTypes service method, as returned by AutoScaling.</returns> /// <exception cref="Amazon.AutoScaling.Model.ResourceContentionException"> /// You already have a pending update to an Amazon EC2 Auto Scaling resource (for example, /// an Auto Scaling group, instance, or load balancer). /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/DescribeScalingProcessTypes">REST API Reference for DescribeScalingProcessTypes Operation</seealso> DescribeScalingProcessTypesResponse DescribeScalingProcessTypes(); /// <summary> /// Describes the scaling process types for use with the <a>ResumeProcesses</a> and <a>SuspendProcesses</a> /// APIs. /// </summary> /// <param name="request">Container for the necessary parameters to execute the DescribeScalingProcessTypes service method.</param> /// /// <returns>The response from the DescribeScalingProcessTypes service method, as returned by AutoScaling.</returns> /// <exception cref="Amazon.AutoScaling.Model.ResourceContentionException"> /// You already have a pending update to an Amazon EC2 Auto Scaling resource (for example, /// an Auto Scaling group, instance, or load balancer). /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/DescribeScalingProcessTypes">REST API Reference for DescribeScalingProcessTypes Operation</seealso> DescribeScalingProcessTypesResponse DescribeScalingProcessTypes(DescribeScalingProcessTypesRequest request); /// <summary> /// Describes the scaling process types for use with the <a>ResumeProcesses</a> and <a>SuspendProcesses</a> /// APIs. /// </summary> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the DescribeScalingProcessTypes service method, as returned by AutoScaling.</returns> /// <exception cref="Amazon.AutoScaling.Model.ResourceContentionException"> /// You already have a pending update to an Amazon EC2 Auto Scaling resource (for example, /// an Auto Scaling group, instance, or load balancer). /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/DescribeScalingProcessTypes">REST API Reference for DescribeScalingProcessTypes Operation</seealso> Task<DescribeScalingProcessTypesResponse> DescribeScalingProcessTypesAsync(System.Threading.CancellationToken cancellationToken = default(CancellationToken)); /// <summary> /// Describes the scaling process types for use with the <a>ResumeProcesses</a> and <a>SuspendProcesses</a> /// APIs. /// </summary> /// <param name="request">Container for the necessary parameters to execute the DescribeScalingProcessTypes service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the DescribeScalingProcessTypes service method, as returned by AutoScaling.</returns> /// <exception cref="Amazon.AutoScaling.Model.ResourceContentionException"> /// You already have a pending update to an Amazon EC2 Auto Scaling resource (for example, /// an Auto Scaling group, instance, or load balancer). /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/DescribeScalingProcessTypes">REST API Reference for DescribeScalingProcessTypes Operation</seealso> Task<DescribeScalingProcessTypesResponse> DescribeScalingProcessTypesAsync(DescribeScalingProcessTypesRequest request, CancellationToken cancellationToken = default(CancellationToken)); #endregion #region DescribeScheduledActions /// <summary> /// Gets information about the scheduled actions that haven't run or that have not reached /// their end time. /// /// /// <para> /// To describe the scaling activities for scheduled actions that have already run, call /// the <a>DescribeScalingActivities</a> API. /// </para> /// </summary> /// /// <returns>The response from the DescribeScheduledActions service method, as returned by AutoScaling.</returns> /// <exception cref="Amazon.AutoScaling.Model.InvalidNextTokenException"> /// The <code>NextToken</code> value is not valid. /// </exception> /// <exception cref="Amazon.AutoScaling.Model.ResourceContentionException"> /// You already have a pending update to an Amazon EC2 Auto Scaling resource (for example, /// an Auto Scaling group, instance, or load balancer). /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/DescribeScheduledActions">REST API Reference for DescribeScheduledActions Operation</seealso> DescribeScheduledActionsResponse DescribeScheduledActions(); /// <summary> /// Gets information about the scheduled actions that haven't run or that have not reached /// their end time. /// /// /// <para> /// To describe the scaling activities for scheduled actions that have already run, call /// the <a>DescribeScalingActivities</a> API. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the DescribeScheduledActions service method.</param> /// /// <returns>The response from the DescribeScheduledActions service method, as returned by AutoScaling.</returns> /// <exception cref="Amazon.AutoScaling.Model.InvalidNextTokenException"> /// The <code>NextToken</code> value is not valid. /// </exception> /// <exception cref="Amazon.AutoScaling.Model.ResourceContentionException"> /// You already have a pending update to an Amazon EC2 Auto Scaling resource (for example, /// an Auto Scaling group, instance, or load balancer). /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/DescribeScheduledActions">REST API Reference for DescribeScheduledActions Operation</seealso> DescribeScheduledActionsResponse DescribeScheduledActions(DescribeScheduledActionsRequest request); /// <summary> /// Gets information about the scheduled actions that haven't run or that have not reached /// their end time. /// /// /// <para> /// To describe the scaling activities for scheduled actions that have already run, call /// the <a>DescribeScalingActivities</a> API. /// </para> /// </summary> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the DescribeScheduledActions service method, as returned by AutoScaling.</returns> /// <exception cref="Amazon.AutoScaling.Model.InvalidNextTokenException"> /// The <code>NextToken</code> value is not valid. /// </exception> /// <exception cref="Amazon.AutoScaling.Model.ResourceContentionException"> /// You already have a pending update to an Amazon EC2 Auto Scaling resource (for example, /// an Auto Scaling group, instance, or load balancer). /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/DescribeScheduledActions">REST API Reference for DescribeScheduledActions Operation</seealso> Task<DescribeScheduledActionsResponse> DescribeScheduledActionsAsync(System.Threading.CancellationToken cancellationToken = default(CancellationToken)); /// <summary> /// Gets information about the scheduled actions that haven't run or that have not reached /// their end time. /// /// /// <para> /// To describe the scaling activities for scheduled actions that have already run, call /// the <a>DescribeScalingActivities</a> API. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the DescribeScheduledActions service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the DescribeScheduledActions service method, as returned by AutoScaling.</returns> /// <exception cref="Amazon.AutoScaling.Model.InvalidNextTokenException"> /// The <code>NextToken</code> value is not valid. /// </exception> /// <exception cref="Amazon.AutoScaling.Model.ResourceContentionException"> /// You already have a pending update to an Amazon EC2 Auto Scaling resource (for example, /// an Auto Scaling group, instance, or load balancer). /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/DescribeScheduledActions">REST API Reference for DescribeScheduledActions Operation</seealso> Task<DescribeScheduledActionsResponse> DescribeScheduledActionsAsync(DescribeScheduledActionsRequest request, CancellationToken cancellationToken = default(CancellationToken)); #endregion #region DescribeTags /// <summary> /// Describes the specified tags. /// /// /// <para> /// You can use filters to limit the results. For example, you can query for the tags /// for a specific Auto Scaling group. You can specify multiple values for a filter. A /// tag must match at least one of the specified values for it to be included in the results. /// </para> /// /// <para> /// You can also specify multiple filters. The result includes information for a particular /// tag only if it matches all the filters. If there's no match, no special message is /// returned. /// </para> /// /// <para> /// For more information, see <a href="https://docs.aws.amazon.com/autoscaling/ec2/userguide/ec2-auto-scaling-tagging.html">Tag /// Auto Scaling groups and instances</a> in the <i>Amazon EC2 Auto Scaling User Guide</i>. /// </para> /// </summary> /// /// <returns>The response from the DescribeTags service method, as returned by AutoScaling.</returns> /// <exception cref="Amazon.AutoScaling.Model.InvalidNextTokenException"> /// The <code>NextToken</code> value is not valid. /// </exception> /// <exception cref="Amazon.AutoScaling.Model.ResourceContentionException"> /// You already have a pending update to an Amazon EC2 Auto Scaling resource (for example, /// an Auto Scaling group, instance, or load balancer). /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/DescribeTags">REST API Reference for DescribeTags Operation</seealso> DescribeTagsResponse DescribeTags(); /// <summary> /// Describes the specified tags. /// /// /// <para> /// You can use filters to limit the results. For example, you can query for the tags /// for a specific Auto Scaling group. You can specify multiple values for a filter. A /// tag must match at least one of the specified values for it to be included in the results. /// </para> /// /// <para> /// You can also specify multiple filters. The result includes information for a particular /// tag only if it matches all the filters. If there's no match, no special message is /// returned. /// </para> /// /// <para> /// For more information, see <a href="https://docs.aws.amazon.com/autoscaling/ec2/userguide/ec2-auto-scaling-tagging.html">Tag /// Auto Scaling groups and instances</a> in the <i>Amazon EC2 Auto Scaling User Guide</i>. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the DescribeTags service method.</param> /// /// <returns>The response from the DescribeTags service method, as returned by AutoScaling.</returns> /// <exception cref="Amazon.AutoScaling.Model.InvalidNextTokenException"> /// The <code>NextToken</code> value is not valid. /// </exception> /// <exception cref="Amazon.AutoScaling.Model.ResourceContentionException"> /// You already have a pending update to an Amazon EC2 Auto Scaling resource (for example, /// an Auto Scaling group, instance, or load balancer). /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/DescribeTags">REST API Reference for DescribeTags Operation</seealso> DescribeTagsResponse DescribeTags(DescribeTagsRequest request); /// <summary> /// Describes the specified tags. /// /// /// <para> /// You can use filters to limit the results. For example, you can query for the tags /// for a specific Auto Scaling group. You can specify multiple values for a filter. A /// tag must match at least one of the specified values for it to be included in the results. /// </para> /// /// <para> /// You can also specify multiple filters. The result includes information for a particular /// tag only if it matches all the filters. If there's no match, no special message is /// returned. /// </para> /// /// <para> /// For more information, see <a href="https://docs.aws.amazon.com/autoscaling/ec2/userguide/ec2-auto-scaling-tagging.html">Tag /// Auto Scaling groups and instances</a> in the <i>Amazon EC2 Auto Scaling User Guide</i>. /// </para> /// </summary> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the DescribeTags service method, as returned by AutoScaling.</returns> /// <exception cref="Amazon.AutoScaling.Model.InvalidNextTokenException"> /// The <code>NextToken</code> value is not valid. /// </exception> /// <exception cref="Amazon.AutoScaling.Model.ResourceContentionException"> /// You already have a pending update to an Amazon EC2 Auto Scaling resource (for example, /// an Auto Scaling group, instance, or load balancer). /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/DescribeTags">REST API Reference for DescribeTags Operation</seealso> Task<DescribeTagsResponse> DescribeTagsAsync(System.Threading.CancellationToken cancellationToken = default(CancellationToken)); /// <summary> /// Describes the specified tags. /// /// /// <para> /// You can use filters to limit the results. For example, you can query for the tags /// for a specific Auto Scaling group. You can specify multiple values for a filter. A /// tag must match at least one of the specified values for it to be included in the results. /// </para> /// /// <para> /// You can also specify multiple filters. The result includes information for a particular /// tag only if it matches all the filters. If there's no match, no special message is /// returned. /// </para> /// /// <para> /// For more information, see <a href="https://docs.aws.amazon.com/autoscaling/ec2/userguide/ec2-auto-scaling-tagging.html">Tag /// Auto Scaling groups and instances</a> in the <i>Amazon EC2 Auto Scaling User Guide</i>. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the DescribeTags service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the DescribeTags service method, as returned by AutoScaling.</returns> /// <exception cref="Amazon.AutoScaling.Model.InvalidNextTokenException"> /// The <code>NextToken</code> value is not valid. /// </exception> /// <exception cref="Amazon.AutoScaling.Model.ResourceContentionException"> /// You already have a pending update to an Amazon EC2 Auto Scaling resource (for example, /// an Auto Scaling group, instance, or load balancer). /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/DescribeTags">REST API Reference for DescribeTags Operation</seealso> Task<DescribeTagsResponse> DescribeTagsAsync(DescribeTagsRequest request, CancellationToken cancellationToken = default(CancellationToken)); #endregion #region DescribeTerminationPolicyTypes /// <summary> /// Describes the termination policies supported by Amazon EC2 Auto Scaling. /// /// /// <para> /// 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> /// </summary> /// /// <returns>The response from the DescribeTerminationPolicyTypes service method, as returned by AutoScaling.</returns> /// <exception cref="Amazon.AutoScaling.Model.ResourceContentionException"> /// You already have a pending update to an Amazon EC2 Auto Scaling resource (for example, /// an Auto Scaling group, instance, or load balancer). /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/DescribeTerminationPolicyTypes">REST API Reference for DescribeTerminationPolicyTypes Operation</seealso> DescribeTerminationPolicyTypesResponse DescribeTerminationPolicyTypes(); /// <summary> /// Describes the termination policies supported by Amazon EC2 Auto Scaling. /// /// /// <para> /// 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> /// </summary> /// <param name="request">Container for the necessary parameters to execute the DescribeTerminationPolicyTypes service method.</param> /// /// <returns>The response from the DescribeTerminationPolicyTypes service method, as returned by AutoScaling.</returns> /// <exception cref="Amazon.AutoScaling.Model.ResourceContentionException"> /// You already have a pending update to an Amazon EC2 Auto Scaling resource (for example, /// an Auto Scaling group, instance, or load balancer). /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/DescribeTerminationPolicyTypes">REST API Reference for DescribeTerminationPolicyTypes Operation</seealso> DescribeTerminationPolicyTypesResponse DescribeTerminationPolicyTypes(DescribeTerminationPolicyTypesRequest request); /// <summary> /// Describes the termination policies supported by Amazon EC2 Auto Scaling. /// /// /// <para> /// 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> /// </summary> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the DescribeTerminationPolicyTypes service method, as returned by AutoScaling.</returns> /// <exception cref="Amazon.AutoScaling.Model.ResourceContentionException"> /// You already have a pending update to an Amazon EC2 Auto Scaling resource (for example, /// an Auto Scaling group, instance, or load balancer). /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/DescribeTerminationPolicyTypes">REST API Reference for DescribeTerminationPolicyTypes Operation</seealso> Task<DescribeTerminationPolicyTypesResponse> DescribeTerminationPolicyTypesAsync(System.Threading.CancellationToken cancellationToken = default(CancellationToken)); /// <summary> /// Describes the termination policies supported by Amazon EC2 Auto Scaling. /// /// /// <para> /// 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> /// </summary> /// <param name="request">Container for the necessary parameters to execute the DescribeTerminationPolicyTypes service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the DescribeTerminationPolicyTypes service method, as returned by AutoScaling.</returns> /// <exception cref="Amazon.AutoScaling.Model.ResourceContentionException"> /// You already have a pending update to an Amazon EC2 Auto Scaling resource (for example, /// an Auto Scaling group, instance, or load balancer). /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/DescribeTerminationPolicyTypes">REST API Reference for DescribeTerminationPolicyTypes Operation</seealso> Task<DescribeTerminationPolicyTypesResponse> DescribeTerminationPolicyTypesAsync(DescribeTerminationPolicyTypesRequest request, CancellationToken cancellationToken = default(CancellationToken)); #endregion #region DescribeTrafficSources /// <summary> /// Gets information about the traffic sources for the specified Auto Scaling group. /// /// /// <para> /// You can optionally provide a traffic source type. If you provide a traffic source /// type, then the results only include that traffic source type. /// </para> /// /// <para> /// If you do not provide a traffic source type, then the results include all the traffic /// sources for the specified Auto Scaling group. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the DescribeTrafficSources service method.</param> /// /// <returns>The response from the DescribeTrafficSources service method, as returned by AutoScaling.</returns> /// <exception cref="Amazon.AutoScaling.Model.InvalidNextTokenException"> /// The <code>NextToken</code> value is not valid. /// </exception> /// <exception cref="Amazon.AutoScaling.Model.ResourceContentionException"> /// You already have a pending update to an Amazon EC2 Auto Scaling resource (for example, /// an Auto Scaling group, instance, or load balancer). /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/DescribeTrafficSources">REST API Reference for DescribeTrafficSources Operation</seealso> DescribeTrafficSourcesResponse DescribeTrafficSources(DescribeTrafficSourcesRequest request); /// <summary> /// Gets information about the traffic sources for the specified Auto Scaling group. /// /// /// <para> /// You can optionally provide a traffic source type. If you provide a traffic source /// type, then the results only include that traffic source type. /// </para> /// /// <para> /// If you do not provide a traffic source type, then the results include all the traffic /// sources for the specified Auto Scaling group. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the DescribeTrafficSources service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the DescribeTrafficSources service method, as returned by AutoScaling.</returns> /// <exception cref="Amazon.AutoScaling.Model.InvalidNextTokenException"> /// The <code>NextToken</code> value is not valid. /// </exception> /// <exception cref="Amazon.AutoScaling.Model.ResourceContentionException"> /// You already have a pending update to an Amazon EC2 Auto Scaling resource (for example, /// an Auto Scaling group, instance, or load balancer). /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/DescribeTrafficSources">REST API Reference for DescribeTrafficSources Operation</seealso> Task<DescribeTrafficSourcesResponse> DescribeTrafficSourcesAsync(DescribeTrafficSourcesRequest request, CancellationToken cancellationToken = default(CancellationToken)); #endregion #region DescribeWarmPool /// <summary> /// Gets information about a warm pool and its instances. /// /// /// <para> /// For more information, 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> /// </summary> /// <param name="request">Container for the necessary parameters to execute the DescribeWarmPool service method.</param> /// /// <returns>The response from the DescribeWarmPool service method, as returned by AutoScaling.</returns> /// <exception cref="Amazon.AutoScaling.Model.InvalidNextTokenException"> /// The <code>NextToken</code> value is not valid. /// </exception> /// <exception cref="Amazon.AutoScaling.Model.LimitExceededException"> /// You have already reached a limit for your Amazon EC2 Auto Scaling resources (for example, /// Auto Scaling groups, launch configurations, or lifecycle hooks). For more information, /// see <a href="https://docs.aws.amazon.com/autoscaling/ec2/APIReference/API_DescribeAccountLimits.html">DescribeAccountLimits</a> /// in the <i>Amazon EC2 Auto Scaling API Reference</i>. /// </exception> /// <exception cref="Amazon.AutoScaling.Model.ResourceContentionException"> /// You already have a pending update to an Amazon EC2 Auto Scaling resource (for example, /// an Auto Scaling group, instance, or load balancer). /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/DescribeWarmPool">REST API Reference for DescribeWarmPool Operation</seealso> DescribeWarmPoolResponse DescribeWarmPool(DescribeWarmPoolRequest request); /// <summary> /// Gets information about a warm pool and its instances. /// /// /// <para> /// For more information, 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> /// </summary> /// <param name="request">Container for the necessary parameters to execute the DescribeWarmPool service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the DescribeWarmPool service method, as returned by AutoScaling.</returns> /// <exception cref="Amazon.AutoScaling.Model.InvalidNextTokenException"> /// The <code>NextToken</code> value is not valid. /// </exception> /// <exception cref="Amazon.AutoScaling.Model.LimitExceededException"> /// You have already reached a limit for your Amazon EC2 Auto Scaling resources (for example, /// Auto Scaling groups, launch configurations, or lifecycle hooks). For more information, /// see <a href="https://docs.aws.amazon.com/autoscaling/ec2/APIReference/API_DescribeAccountLimits.html">DescribeAccountLimits</a> /// in the <i>Amazon EC2 Auto Scaling API Reference</i>. /// </exception> /// <exception cref="Amazon.AutoScaling.Model.ResourceContentionException"> /// You already have a pending update to an Amazon EC2 Auto Scaling resource (for example, /// an Auto Scaling group, instance, or load balancer). /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/DescribeWarmPool">REST API Reference for DescribeWarmPool Operation</seealso> Task<DescribeWarmPoolResponse> DescribeWarmPoolAsync(DescribeWarmPoolRequest request, CancellationToken cancellationToken = default(CancellationToken)); #endregion #region DetachInstances /// <summary> /// Removes one or more instances from the specified Auto Scaling group. /// /// /// <para> /// After the instances are detached, you can manage them independent of the Auto Scaling /// group. /// </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 detached. /// </para> /// /// <para> /// If there is a Classic Load Balancer attached to the Auto Scaling group, the instances /// are deregistered from the load balancer. If there are target groups attached to the /// Auto Scaling group, the instances are deregistered from the target groups. /// </para> /// /// <para> /// For more information, see <a href="https://docs.aws.amazon.com/autoscaling/ec2/userguide/detach-instance-asg.html">Detach /// EC2 instances from your Auto Scaling group</a> in the <i>Amazon EC2 Auto Scaling User /// Guide</i>. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the DetachInstances service method.</param> /// /// <returns>The response from the DetachInstances service method, as returned by AutoScaling.</returns> /// <exception cref="Amazon.AutoScaling.Model.ResourceContentionException"> /// You already have a pending update to an Amazon EC2 Auto Scaling resource (for example, /// an Auto Scaling group, instance, or load balancer). /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/DetachInstances">REST API Reference for DetachInstances Operation</seealso> DetachInstancesResponse DetachInstances(DetachInstancesRequest request); /// <summary> /// Removes one or more instances from the specified Auto Scaling group. /// /// /// <para> /// After the instances are detached, you can manage them independent of the Auto Scaling /// group. /// </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 detached. /// </para> /// /// <para> /// If there is a Classic Load Balancer attached to the Auto Scaling group, the instances /// are deregistered from the load balancer. If there are target groups attached to the /// Auto Scaling group, the instances are deregistered from the target groups. /// </para> /// /// <para> /// For more information, see <a href="https://docs.aws.amazon.com/autoscaling/ec2/userguide/detach-instance-asg.html">Detach /// EC2 instances from your Auto Scaling group</a> in the <i>Amazon EC2 Auto Scaling User /// Guide</i>. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the DetachInstances service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the DetachInstances service method, as returned by AutoScaling.</returns> /// <exception cref="Amazon.AutoScaling.Model.ResourceContentionException"> /// You already have a pending update to an Amazon EC2 Auto Scaling resource (for example, /// an Auto Scaling group, instance, or load balancer). /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/DetachInstances">REST API Reference for DetachInstances Operation</seealso> Task<DetachInstancesResponse> DetachInstancesAsync(DetachInstancesRequest request, CancellationToken cancellationToken = default(CancellationToken)); #endregion #region DetachLoadBalancers /// <summary> /// <note> /// <para> /// This API operation is superseded by <a>DetachTrafficSources</a>, which can detach /// multiple traffic sources types. We recommend using <code>DetachTrafficSources</code> /// to simplify how you manage traffic sources. However, we continue to support <code>DetachLoadBalancers</code>. /// You can use both the original <code>DetachLoadBalancers</code> API operation and <code>DetachTrafficSources</code> /// on the same Auto Scaling group. /// </para> /// </note> /// <para> /// Detaches one or more Classic Load Balancers from the specified Auto Scaling group. /// </para> /// /// <para> /// This operation detaches only Classic Load Balancers. If you have Application Load /// Balancers, Network Load Balancers, or Gateway Load Balancers, use the <a>DetachLoadBalancerTargetGroups</a> /// API instead. /// </para> /// /// <para> /// When you detach a load balancer, it enters the <code>Removing</code> state while deregistering /// the instances in the group. When all instances are deregistered, then you can no longer /// describe the load balancer using the <a>DescribeLoadBalancers</a> API call. The instances /// remain running. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the DetachLoadBalancers service method.</param> /// /// <returns>The response from the DetachLoadBalancers service method, as returned by AutoScaling.</returns> /// <exception cref="Amazon.AutoScaling.Model.ResourceContentionException"> /// You already have a pending update to an Amazon EC2 Auto Scaling resource (for example, /// an Auto Scaling group, instance, or load balancer). /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/DetachLoadBalancers">REST API Reference for DetachLoadBalancers Operation</seealso> DetachLoadBalancersResponse DetachLoadBalancers(DetachLoadBalancersRequest request); /// <summary> /// <note> /// <para> /// This API operation is superseded by <a>DetachTrafficSources</a>, which can detach /// multiple traffic sources types. We recommend using <code>DetachTrafficSources</code> /// to simplify how you manage traffic sources. However, we continue to support <code>DetachLoadBalancers</code>. /// You can use both the original <code>DetachLoadBalancers</code> API operation and <code>DetachTrafficSources</code> /// on the same Auto Scaling group. /// </para> /// </note> /// <para> /// Detaches one or more Classic Load Balancers from the specified Auto Scaling group. /// </para> /// /// <para> /// This operation detaches only Classic Load Balancers. If you have Application Load /// Balancers, Network Load Balancers, or Gateway Load Balancers, use the <a>DetachLoadBalancerTargetGroups</a> /// API instead. /// </para> /// /// <para> /// When you detach a load balancer, it enters the <code>Removing</code> state while deregistering /// the instances in the group. When all instances are deregistered, then you can no longer /// describe the load balancer using the <a>DescribeLoadBalancers</a> API call. The instances /// remain running. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the DetachLoadBalancers service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the DetachLoadBalancers service method, as returned by AutoScaling.</returns> /// <exception cref="Amazon.AutoScaling.Model.ResourceContentionException"> /// You already have a pending update to an Amazon EC2 Auto Scaling resource (for example, /// an Auto Scaling group, instance, or load balancer). /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/DetachLoadBalancers">REST API Reference for DetachLoadBalancers Operation</seealso> Task<DetachLoadBalancersResponse> DetachLoadBalancersAsync(DetachLoadBalancersRequest request, CancellationToken cancellationToken = default(CancellationToken)); #endregion #region DetachLoadBalancerTargetGroups /// <summary> /// <note> /// <para> /// This API operation is superseded by <a>DetachTrafficSources</a>, which can detach /// multiple traffic sources types. We recommend using <code>DetachTrafficSources</code> /// to simplify how you manage traffic sources. However, we continue to support <code>DetachLoadBalancerTargetGroups</code>. /// You can use both the original <code>DetachLoadBalancerTargetGroups</code> API operation /// and <code>DetachTrafficSources</code> on the same Auto Scaling group. /// </para> /// </note> /// <para> /// Detaches one or more target groups from the specified Auto Scaling group. /// </para> /// /// <para> /// When you detach a target group, it enters the <code>Removing</code> state while deregistering /// the instances in the group. When all instances are deregistered, then you can no longer /// describe the target group using the <a>DescribeLoadBalancerTargetGroups</a> API call. /// The instances remain running. /// </para> /// <note> /// <para> /// You can use this operation to detach target groups that were attached by using <a>AttachLoadBalancerTargetGroups</a>, /// but not for target groups that were attached by using <a>AttachTrafficSources</a>. /// </para> /// </note> /// </summary> /// <param name="request">Container for the necessary parameters to execute the DetachLoadBalancerTargetGroups service method.</param> /// /// <returns>The response from the DetachLoadBalancerTargetGroups service method, as returned by AutoScaling.</returns> /// <exception cref="Amazon.AutoScaling.Model.ResourceContentionException"> /// You already have a pending update to an Amazon EC2 Auto Scaling resource (for example, /// an Auto Scaling group, instance, or load balancer). /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/DetachLoadBalancerTargetGroups">REST API Reference for DetachLoadBalancerTargetGroups Operation</seealso> DetachLoadBalancerTargetGroupsResponse DetachLoadBalancerTargetGroups(DetachLoadBalancerTargetGroupsRequest request); /// <summary> /// <note> /// <para> /// This API operation is superseded by <a>DetachTrafficSources</a>, which can detach /// multiple traffic sources types. We recommend using <code>DetachTrafficSources</code> /// to simplify how you manage traffic sources. However, we continue to support <code>DetachLoadBalancerTargetGroups</code>. /// You can use both the original <code>DetachLoadBalancerTargetGroups</code> API operation /// and <code>DetachTrafficSources</code> on the same Auto Scaling group. /// </para> /// </note> /// <para> /// Detaches one or more target groups from the specified Auto Scaling group. /// </para> /// /// <para> /// When you detach a target group, it enters the <code>Removing</code> state while deregistering /// the instances in the group. When all instances are deregistered, then you can no longer /// describe the target group using the <a>DescribeLoadBalancerTargetGroups</a> API call. /// The instances remain running. /// </para> /// <note> /// <para> /// You can use this operation to detach target groups that were attached by using <a>AttachLoadBalancerTargetGroups</a>, /// but not for target groups that were attached by using <a>AttachTrafficSources</a>. /// </para> /// </note> /// </summary> /// <param name="request">Container for the necessary parameters to execute the DetachLoadBalancerTargetGroups service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the DetachLoadBalancerTargetGroups service method, as returned by AutoScaling.</returns> /// <exception cref="Amazon.AutoScaling.Model.ResourceContentionException"> /// You already have a pending update to an Amazon EC2 Auto Scaling resource (for example, /// an Auto Scaling group, instance, or load balancer). /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/DetachLoadBalancerTargetGroups">REST API Reference for DetachLoadBalancerTargetGroups Operation</seealso> Task<DetachLoadBalancerTargetGroupsResponse> DetachLoadBalancerTargetGroupsAsync(DetachLoadBalancerTargetGroupsRequest request, CancellationToken cancellationToken = default(CancellationToken)); #endregion #region DetachTrafficSources /// <summary> /// Detaches one or more traffic sources from the specified Auto Scaling group. /// /// /// <para> /// When you detach a taffic, it enters the <code>Removing</code> state while deregistering /// the instances in the group. When all instances are deregistered, then you can no longer /// describe the traffic source using the <a>DescribeTrafficSources</a> API call. The /// instances continue to run. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the DetachTrafficSources service method.</param> /// /// <returns>The response from the DetachTrafficSources service method, as returned by AutoScaling.</returns> /// <exception cref="Amazon.AutoScaling.Model.ResourceContentionException"> /// You already have a pending update to an Amazon EC2 Auto Scaling resource (for example, /// an Auto Scaling group, instance, or load balancer). /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/DetachTrafficSources">REST API Reference for DetachTrafficSources Operation</seealso> DetachTrafficSourcesResponse DetachTrafficSources(DetachTrafficSourcesRequest request); /// <summary> /// Detaches one or more traffic sources from the specified Auto Scaling group. /// /// /// <para> /// When you detach a taffic, it enters the <code>Removing</code> state while deregistering /// the instances in the group. When all instances are deregistered, then you can no longer /// describe the traffic source using the <a>DescribeTrafficSources</a> API call. The /// instances continue to run. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the DetachTrafficSources service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the DetachTrafficSources service method, as returned by AutoScaling.</returns> /// <exception cref="Amazon.AutoScaling.Model.ResourceContentionException"> /// You already have a pending update to an Amazon EC2 Auto Scaling resource (for example, /// an Auto Scaling group, instance, or load balancer). /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/DetachTrafficSources">REST API Reference for DetachTrafficSources Operation</seealso> Task<DetachTrafficSourcesResponse> DetachTrafficSourcesAsync(DetachTrafficSourcesRequest request, CancellationToken cancellationToken = default(CancellationToken)); #endregion #region DisableMetricsCollection /// <summary> /// Disables group metrics collection for the specified Auto Scaling group. /// </summary> /// <param name="request">Container for the necessary parameters to execute the DisableMetricsCollection service method.</param> /// /// <returns>The response from the DisableMetricsCollection service method, as returned by AutoScaling.</returns> /// <exception cref="Amazon.AutoScaling.Model.ResourceContentionException"> /// You already have a pending update to an Amazon EC2 Auto Scaling resource (for example, /// an Auto Scaling group, instance, or load balancer). /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/DisableMetricsCollection">REST API Reference for DisableMetricsCollection Operation</seealso> DisableMetricsCollectionResponse DisableMetricsCollection(DisableMetricsCollectionRequest request); /// <summary> /// Disables group metrics collection for the specified Auto Scaling group. /// </summary> /// <param name="request">Container for the necessary parameters to execute the DisableMetricsCollection service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the DisableMetricsCollection service method, as returned by AutoScaling.</returns> /// <exception cref="Amazon.AutoScaling.Model.ResourceContentionException"> /// You already have a pending update to an Amazon EC2 Auto Scaling resource (for example, /// an Auto Scaling group, instance, or load balancer). /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/DisableMetricsCollection">REST API Reference for DisableMetricsCollection Operation</seealso> Task<DisableMetricsCollectionResponse> DisableMetricsCollectionAsync(DisableMetricsCollectionRequest request, CancellationToken cancellationToken = default(CancellationToken)); #endregion #region EnableMetricsCollection /// <summary> /// Enables group metrics collection for the specified Auto Scaling group. /// /// /// <para> /// You can use these metrics to track changes in an Auto Scaling group and to set alarms /// on threshold values. You can view group metrics using the Amazon EC2 Auto Scaling /// console or the CloudWatch console. For more information, see <a href="https://docs.aws.amazon.com/autoscaling/ec2/userguide/ec2-auto-scaling-cloudwatch-monitoring.html">Monitor /// CloudWatch metrics for your Auto Scaling groups and instances</a> in the <i>Amazon /// EC2 Auto Scaling User Guide</i>. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the EnableMetricsCollection service method.</param> /// /// <returns>The response from the EnableMetricsCollection service method, as returned by AutoScaling.</returns> /// <exception cref="Amazon.AutoScaling.Model.ResourceContentionException"> /// You already have a pending update to an Amazon EC2 Auto Scaling resource (for example, /// an Auto Scaling group, instance, or load balancer). /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/EnableMetricsCollection">REST API Reference for EnableMetricsCollection Operation</seealso> EnableMetricsCollectionResponse EnableMetricsCollection(EnableMetricsCollectionRequest request); /// <summary> /// Enables group metrics collection for the specified Auto Scaling group. /// /// /// <para> /// You can use these metrics to track changes in an Auto Scaling group and to set alarms /// on threshold values. You can view group metrics using the Amazon EC2 Auto Scaling /// console or the CloudWatch console. For more information, see <a href="https://docs.aws.amazon.com/autoscaling/ec2/userguide/ec2-auto-scaling-cloudwatch-monitoring.html">Monitor /// CloudWatch metrics for your Auto Scaling groups and instances</a> in the <i>Amazon /// EC2 Auto Scaling User Guide</i>. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the EnableMetricsCollection service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the EnableMetricsCollection service method, as returned by AutoScaling.</returns> /// <exception cref="Amazon.AutoScaling.Model.ResourceContentionException"> /// You already have a pending update to an Amazon EC2 Auto Scaling resource (for example, /// an Auto Scaling group, instance, or load balancer). /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/EnableMetricsCollection">REST API Reference for EnableMetricsCollection Operation</seealso> Task<EnableMetricsCollectionResponse> EnableMetricsCollectionAsync(EnableMetricsCollectionRequest request, CancellationToken cancellationToken = default(CancellationToken)); #endregion #region EnterStandby /// <summary> /// Moves the specified instances into the standby state. /// /// /// <para> /// If you choose to decrement the desired capacity of the Auto Scaling group, the instances /// can enter standby as long as the desired capacity of the Auto Scaling group after /// the instances are placed into standby is equal to or greater than the minimum capacity /// of the group. /// </para> /// /// <para> /// If you choose not to decrement the desired capacity of the Auto Scaling group, the /// Auto Scaling group launches new instances to replace the instances on standby. /// </para> /// /// <para> /// For more information, see <a href="https://docs.aws.amazon.com/autoscaling/ec2/userguide/as-enter-exit-standby.html">Temporarily /// removing instances from your Auto Scaling group</a> in the <i>Amazon EC2 Auto Scaling /// User Guide</i>. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the EnterStandby service method.</param> /// /// <returns>The response from the EnterStandby service method, as returned by AutoScaling.</returns> /// <exception cref="Amazon.AutoScaling.Model.ResourceContentionException"> /// You already have a pending update to an Amazon EC2 Auto Scaling resource (for example, /// an Auto Scaling group, instance, or load balancer). /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/EnterStandby">REST API Reference for EnterStandby Operation</seealso> EnterStandbyResponse EnterStandby(EnterStandbyRequest request); /// <summary> /// Moves the specified instances into the standby state. /// /// /// <para> /// If you choose to decrement the desired capacity of the Auto Scaling group, the instances /// can enter standby as long as the desired capacity of the Auto Scaling group after /// the instances are placed into standby is equal to or greater than the minimum capacity /// of the group. /// </para> /// /// <para> /// If you choose not to decrement the desired capacity of the Auto Scaling group, the /// Auto Scaling group launches new instances to replace the instances on standby. /// </para> /// /// <para> /// For more information, see <a href="https://docs.aws.amazon.com/autoscaling/ec2/userguide/as-enter-exit-standby.html">Temporarily /// removing instances from your Auto Scaling group</a> in the <i>Amazon EC2 Auto Scaling /// User Guide</i>. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the EnterStandby service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the EnterStandby service method, as returned by AutoScaling.</returns> /// <exception cref="Amazon.AutoScaling.Model.ResourceContentionException"> /// You already have a pending update to an Amazon EC2 Auto Scaling resource (for example, /// an Auto Scaling group, instance, or load balancer). /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/EnterStandby">REST API Reference for EnterStandby Operation</seealso> Task<EnterStandbyResponse> EnterStandbyAsync(EnterStandbyRequest request, CancellationToken cancellationToken = default(CancellationToken)); #endregion #region ExecutePolicy /// <summary> /// Executes the specified policy. This can be useful for testing the design of your scaling /// policy. /// </summary> /// <param name="request">Container for the necessary parameters to execute the ExecutePolicy service method.</param> /// /// <returns>The response from the ExecutePolicy service method, as returned by AutoScaling.</returns> /// <exception cref="Amazon.AutoScaling.Model.ResourceContentionException"> /// You already have a pending update to an Amazon EC2 Auto Scaling resource (for example, /// an Auto Scaling group, instance, or load balancer). /// </exception> /// <exception cref="Amazon.AutoScaling.Model.ScalingActivityInProgressException"> /// The operation can't be performed because there are scaling activities in progress. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/ExecutePolicy">REST API Reference for ExecutePolicy Operation</seealso> ExecutePolicyResponse ExecutePolicy(ExecutePolicyRequest request); /// <summary> /// Executes the specified policy. This can be useful for testing the design of your scaling /// policy. /// </summary> /// <param name="request">Container for the necessary parameters to execute the ExecutePolicy service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the ExecutePolicy service method, as returned by AutoScaling.</returns> /// <exception cref="Amazon.AutoScaling.Model.ResourceContentionException"> /// You already have a pending update to an Amazon EC2 Auto Scaling resource (for example, /// an Auto Scaling group, instance, or load balancer). /// </exception> /// <exception cref="Amazon.AutoScaling.Model.ScalingActivityInProgressException"> /// The operation can't be performed because there are scaling activities in progress. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/ExecutePolicy">REST API Reference for ExecutePolicy Operation</seealso> Task<ExecutePolicyResponse> ExecutePolicyAsync(ExecutePolicyRequest request, CancellationToken cancellationToken = default(CancellationToken)); #endregion #region ExitStandby /// <summary> /// Moves the specified instances out of the standby state. /// /// /// <para> /// After you put the instances back in service, the desired capacity is incremented. /// </para> /// /// <para> /// For more information, see <a href="https://docs.aws.amazon.com/autoscaling/ec2/userguide/as-enter-exit-standby.html">Temporarily /// removing instances from your Auto Scaling group</a> in the <i>Amazon EC2 Auto Scaling /// User Guide</i>. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the ExitStandby service method.</param> /// /// <returns>The response from the ExitStandby service method, as returned by AutoScaling.</returns> /// <exception cref="Amazon.AutoScaling.Model.ResourceContentionException"> /// You already have a pending update to an Amazon EC2 Auto Scaling resource (for example, /// an Auto Scaling group, instance, or load balancer). /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/ExitStandby">REST API Reference for ExitStandby Operation</seealso> ExitStandbyResponse ExitStandby(ExitStandbyRequest request); /// <summary> /// Moves the specified instances out of the standby state. /// /// /// <para> /// After you put the instances back in service, the desired capacity is incremented. /// </para> /// /// <para> /// For more information, see <a href="https://docs.aws.amazon.com/autoscaling/ec2/userguide/as-enter-exit-standby.html">Temporarily /// removing instances from your Auto Scaling group</a> in the <i>Amazon EC2 Auto Scaling /// User Guide</i>. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the ExitStandby service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the ExitStandby service method, as returned by AutoScaling.</returns> /// <exception cref="Amazon.AutoScaling.Model.ResourceContentionException"> /// You already have a pending update to an Amazon EC2 Auto Scaling resource (for example, /// an Auto Scaling group, instance, or load balancer). /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/ExitStandby">REST API Reference for ExitStandby Operation</seealso> Task<ExitStandbyResponse> ExitStandbyAsync(ExitStandbyRequest request, CancellationToken cancellationToken = default(CancellationToken)); #endregion #region GetPredictiveScalingForecast /// <summary> /// Retrieves the forecast data for a predictive scaling policy. /// /// /// <para> /// Load forecasts are predictions of the hourly load values using historical load data /// from CloudWatch and an analysis of historical trends. Capacity forecasts are represented /// as predicted values for the minimum capacity that is needed on an hourly basis, based /// on the hourly load forecast. /// </para> /// /// <para> /// A minimum of 24 hours of data is required to create the initial forecasts. However, /// having a full 14 days of historical data results in more accurate forecasts. /// </para> /// /// <para> /// For more information, 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> /// </summary> /// <param name="request">Container for the necessary parameters to execute the GetPredictiveScalingForecast service method.</param> /// /// <returns>The response from the GetPredictiveScalingForecast service method, as returned by AutoScaling.</returns> /// <exception cref="Amazon.AutoScaling.Model.ResourceContentionException"> /// You already have a pending update to an Amazon EC2 Auto Scaling resource (for example, /// an Auto Scaling group, instance, or load balancer). /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/GetPredictiveScalingForecast">REST API Reference for GetPredictiveScalingForecast Operation</seealso> GetPredictiveScalingForecastResponse GetPredictiveScalingForecast(GetPredictiveScalingForecastRequest request); /// <summary> /// Retrieves the forecast data for a predictive scaling policy. /// /// /// <para> /// Load forecasts are predictions of the hourly load values using historical load data /// from CloudWatch and an analysis of historical trends. Capacity forecasts are represented /// as predicted values for the minimum capacity that is needed on an hourly basis, based /// on the hourly load forecast. /// </para> /// /// <para> /// A minimum of 24 hours of data is required to create the initial forecasts. However, /// having a full 14 days of historical data results in more accurate forecasts. /// </para> /// /// <para> /// For more information, 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> /// </summary> /// <param name="request">Container for the necessary parameters to execute the GetPredictiveScalingForecast service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the GetPredictiveScalingForecast service method, as returned by AutoScaling.</returns> /// <exception cref="Amazon.AutoScaling.Model.ResourceContentionException"> /// You already have a pending update to an Amazon EC2 Auto Scaling resource (for example, /// an Auto Scaling group, instance, or load balancer). /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/GetPredictiveScalingForecast">REST API Reference for GetPredictiveScalingForecast Operation</seealso> Task<GetPredictiveScalingForecastResponse> GetPredictiveScalingForecastAsync(GetPredictiveScalingForecastRequest request, CancellationToken cancellationToken = default(CancellationToken)); #endregion #region PutLifecycleHook /// <summary> /// 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> /// <param name="request">Container for the necessary parameters to execute the PutLifecycleHook service method.</param> /// /// <returns>The response from the PutLifecycleHook service method, as returned by AutoScaling.</returns> /// <exception cref="Amazon.AutoScaling.Model.LimitExceededException"> /// You have already reached a limit for your Amazon EC2 Auto Scaling resources (for example, /// Auto Scaling groups, launch configurations, or lifecycle hooks). For more information, /// see <a href="https://docs.aws.amazon.com/autoscaling/ec2/APIReference/API_DescribeAccountLimits.html">DescribeAccountLimits</a> /// in the <i>Amazon EC2 Auto Scaling API Reference</i>. /// </exception> /// <exception cref="Amazon.AutoScaling.Model.ResourceContentionException"> /// You already have a pending update to an Amazon EC2 Auto Scaling resource (for example, /// an Auto Scaling group, instance, or load balancer). /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/PutLifecycleHook">REST API Reference for PutLifecycleHook Operation</seealso> PutLifecycleHookResponse PutLifecycleHook(PutLifecycleHookRequest request); /// <summary> /// 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> /// <param name="request">Container for the necessary parameters to execute the PutLifecycleHook service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the PutLifecycleHook service method, as returned by AutoScaling.</returns> /// <exception cref="Amazon.AutoScaling.Model.LimitExceededException"> /// You have already reached a limit for your Amazon EC2 Auto Scaling resources (for example, /// Auto Scaling groups, launch configurations, or lifecycle hooks). For more information, /// see <a href="https://docs.aws.amazon.com/autoscaling/ec2/APIReference/API_DescribeAccountLimits.html">DescribeAccountLimits</a> /// in the <i>Amazon EC2 Auto Scaling API Reference</i>. /// </exception> /// <exception cref="Amazon.AutoScaling.Model.ResourceContentionException"> /// You already have a pending update to an Amazon EC2 Auto Scaling resource (for example, /// an Auto Scaling group, instance, or load balancer). /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/PutLifecycleHook">REST API Reference for PutLifecycleHook Operation</seealso> Task<PutLifecycleHookResponse> PutLifecycleHookAsync(PutLifecycleHookRequest request, CancellationToken cancellationToken = default(CancellationToken)); #endregion #region PutNotificationConfiguration /// <summary> /// 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> /// <param name="request">Container for the necessary parameters to execute the PutNotificationConfiguration service method.</param> /// /// <returns>The response from the PutNotificationConfiguration service method, as returned by AutoScaling.</returns> /// <exception cref="Amazon.AutoScaling.Model.LimitExceededException"> /// You have already reached a limit for your Amazon EC2 Auto Scaling resources (for example, /// Auto Scaling groups, launch configurations, or lifecycle hooks). For more information, /// see <a href="https://docs.aws.amazon.com/autoscaling/ec2/APIReference/API_DescribeAccountLimits.html">DescribeAccountLimits</a> /// in the <i>Amazon EC2 Auto Scaling API Reference</i>. /// </exception> /// <exception cref="Amazon.AutoScaling.Model.ResourceContentionException"> /// You already have a pending update to an Amazon EC2 Auto Scaling resource (for example, /// an Auto Scaling group, instance, or load balancer). /// </exception> /// <exception cref="Amazon.AutoScaling.Model.ServiceLinkedRoleFailureException"> /// The service-linked role is not yet ready for use. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/PutNotificationConfiguration">REST API Reference for PutNotificationConfiguration Operation</seealso> PutNotificationConfigurationResponse PutNotificationConfiguration(PutNotificationConfigurationRequest request); /// <summary> /// 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> /// <param name="request">Container for the necessary parameters to execute the PutNotificationConfiguration service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the PutNotificationConfiguration service method, as returned by AutoScaling.</returns> /// <exception cref="Amazon.AutoScaling.Model.LimitExceededException"> /// You have already reached a limit for your Amazon EC2 Auto Scaling resources (for example, /// Auto Scaling groups, launch configurations, or lifecycle hooks). For more information, /// see <a href="https://docs.aws.amazon.com/autoscaling/ec2/APIReference/API_DescribeAccountLimits.html">DescribeAccountLimits</a> /// in the <i>Amazon EC2 Auto Scaling API Reference</i>. /// </exception> /// <exception cref="Amazon.AutoScaling.Model.ResourceContentionException"> /// You already have a pending update to an Amazon EC2 Auto Scaling resource (for example, /// an Auto Scaling group, instance, or load balancer). /// </exception> /// <exception cref="Amazon.AutoScaling.Model.ServiceLinkedRoleFailureException"> /// The service-linked role is not yet ready for use. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/PutNotificationConfiguration">REST API Reference for PutNotificationConfiguration Operation</seealso> Task<PutNotificationConfigurationResponse> PutNotificationConfigurationAsync(PutNotificationConfigurationRequest request, CancellationToken cancellationToken = default(CancellationToken)); #endregion #region PutScalingPolicy /// <summary> /// 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> /// <param name="request">Container for the necessary parameters to execute the PutScalingPolicy service method.</param> /// /// <returns>The response from the PutScalingPolicy service method, as returned by AutoScaling.</returns> /// <exception cref="Amazon.AutoScaling.Model.LimitExceededException"> /// You have already reached a limit for your Amazon EC2 Auto Scaling resources (for example, /// Auto Scaling groups, launch configurations, or lifecycle hooks). For more information, /// see <a href="https://docs.aws.amazon.com/autoscaling/ec2/APIReference/API_DescribeAccountLimits.html">DescribeAccountLimits</a> /// in the <i>Amazon EC2 Auto Scaling API Reference</i>. /// </exception> /// <exception cref="Amazon.AutoScaling.Model.ResourceContentionException"> /// You already have a pending update to an Amazon EC2 Auto Scaling resource (for example, /// an Auto Scaling group, instance, or load balancer). /// </exception> /// <exception cref="Amazon.AutoScaling.Model.ServiceLinkedRoleFailureException"> /// The service-linked role is not yet ready for use. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/PutScalingPolicy">REST API Reference for PutScalingPolicy Operation</seealso> PutScalingPolicyResponse PutScalingPolicy(PutScalingPolicyRequest request); /// <summary> /// 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> /// <param name="request">Container for the necessary parameters to execute the PutScalingPolicy service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the PutScalingPolicy service method, as returned by AutoScaling.</returns> /// <exception cref="Amazon.AutoScaling.Model.LimitExceededException"> /// You have already reached a limit for your Amazon EC2 Auto Scaling resources (for example, /// Auto Scaling groups, launch configurations, or lifecycle hooks). For more information, /// see <a href="https://docs.aws.amazon.com/autoscaling/ec2/APIReference/API_DescribeAccountLimits.html">DescribeAccountLimits</a> /// in the <i>Amazon EC2 Auto Scaling API Reference</i>. /// </exception> /// <exception cref="Amazon.AutoScaling.Model.ResourceContentionException"> /// You already have a pending update to an Amazon EC2 Auto Scaling resource (for example, /// an Auto Scaling group, instance, or load balancer). /// </exception> /// <exception cref="Amazon.AutoScaling.Model.ServiceLinkedRoleFailureException"> /// The service-linked role is not yet ready for use. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/PutScalingPolicy">REST API Reference for PutScalingPolicy Operation</seealso> Task<PutScalingPolicyResponse> PutScalingPolicyAsync(PutScalingPolicyRequest request, CancellationToken cancellationToken = default(CancellationToken)); #endregion #region PutScheduledUpdateGroupAction /// <summary> /// 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> /// <param name="request">Container for the necessary parameters to execute the PutScheduledUpdateGroupAction service method.</param> /// /// <returns>The response from the PutScheduledUpdateGroupAction service method, as returned by AutoScaling.</returns> /// <exception cref="Amazon.AutoScaling.Model.AlreadyExistsException"> /// You already have an Auto Scaling group or launch configuration with this name. /// </exception> /// <exception cref="Amazon.AutoScaling.Model.LimitExceededException"> /// You have already reached a limit for your Amazon EC2 Auto Scaling resources (for example, /// Auto Scaling groups, launch configurations, or lifecycle hooks). For more information, /// see <a href="https://docs.aws.amazon.com/autoscaling/ec2/APIReference/API_DescribeAccountLimits.html">DescribeAccountLimits</a> /// in the <i>Amazon EC2 Auto Scaling API Reference</i>. /// </exception> /// <exception cref="Amazon.AutoScaling.Model.ResourceContentionException"> /// You already have a pending update to an Amazon EC2 Auto Scaling resource (for example, /// an Auto Scaling group, instance, or load balancer). /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/PutScheduledUpdateGroupAction">REST API Reference for PutScheduledUpdateGroupAction Operation</seealso> PutScheduledUpdateGroupActionResponse PutScheduledUpdateGroupAction(PutScheduledUpdateGroupActionRequest request); /// <summary> /// 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> /// <param name="request">Container for the necessary parameters to execute the PutScheduledUpdateGroupAction service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the PutScheduledUpdateGroupAction service method, as returned by AutoScaling.</returns> /// <exception cref="Amazon.AutoScaling.Model.AlreadyExistsException"> /// You already have an Auto Scaling group or launch configuration with this name. /// </exception> /// <exception cref="Amazon.AutoScaling.Model.LimitExceededException"> /// You have already reached a limit for your Amazon EC2 Auto Scaling resources (for example, /// Auto Scaling groups, launch configurations, or lifecycle hooks). For more information, /// see <a href="https://docs.aws.amazon.com/autoscaling/ec2/APIReference/API_DescribeAccountLimits.html">DescribeAccountLimits</a> /// in the <i>Amazon EC2 Auto Scaling API Reference</i>. /// </exception> /// <exception cref="Amazon.AutoScaling.Model.ResourceContentionException"> /// You already have a pending update to an Amazon EC2 Auto Scaling resource (for example, /// an Auto Scaling group, instance, or load balancer). /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/PutScheduledUpdateGroupAction">REST API Reference for PutScheduledUpdateGroupAction Operation</seealso> Task<PutScheduledUpdateGroupActionResponse> PutScheduledUpdateGroupActionAsync(PutScheduledUpdateGroupActionRequest request, CancellationToken cancellationToken = default(CancellationToken)); #endregion #region PutWarmPool /// <summary> /// 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> /// <param name="request">Container for the necessary parameters to execute the PutWarmPool service method.</param> /// /// <returns>The response from the PutWarmPool service method, as returned by AutoScaling.</returns> /// <exception cref="Amazon.AutoScaling.Model.LimitExceededException"> /// You have already reached a limit for your Amazon EC2 Auto Scaling resources (for example, /// Auto Scaling groups, launch configurations, or lifecycle hooks). For more information, /// see <a href="https://docs.aws.amazon.com/autoscaling/ec2/APIReference/API_DescribeAccountLimits.html">DescribeAccountLimits</a> /// in the <i>Amazon EC2 Auto Scaling API Reference</i>. /// </exception> /// <exception cref="Amazon.AutoScaling.Model.ResourceContentionException"> /// You already have a pending update to an Amazon EC2 Auto Scaling resource (for example, /// an Auto Scaling group, instance, or load balancer). /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/PutWarmPool">REST API Reference for PutWarmPool Operation</seealso> PutWarmPoolResponse PutWarmPool(PutWarmPoolRequest request); /// <summary> /// 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> /// <param name="request">Container for the necessary parameters to execute the PutWarmPool service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the PutWarmPool service method, as returned by AutoScaling.</returns> /// <exception cref="Amazon.AutoScaling.Model.LimitExceededException"> /// You have already reached a limit for your Amazon EC2 Auto Scaling resources (for example, /// Auto Scaling groups, launch configurations, or lifecycle hooks). For more information, /// see <a href="https://docs.aws.amazon.com/autoscaling/ec2/APIReference/API_DescribeAccountLimits.html">DescribeAccountLimits</a> /// in the <i>Amazon EC2 Auto Scaling API Reference</i>. /// </exception> /// <exception cref="Amazon.AutoScaling.Model.ResourceContentionException"> /// You already have a pending update to an Amazon EC2 Auto Scaling resource (for example, /// an Auto Scaling group, instance, or load balancer). /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/PutWarmPool">REST API Reference for PutWarmPool Operation</seealso> Task<PutWarmPoolResponse> PutWarmPoolAsync(PutWarmPoolRequest request, CancellationToken cancellationToken = default(CancellationToken)); #endregion #region RecordLifecycleActionHeartbeat /// <summary> /// 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> /// <param name="request">Container for the necessary parameters to execute the RecordLifecycleActionHeartbeat service method.</param> /// /// <returns>The response from the RecordLifecycleActionHeartbeat service method, as returned by AutoScaling.</returns> /// <exception cref="Amazon.AutoScaling.Model.ResourceContentionException"> /// You already have a pending update to an Amazon EC2 Auto Scaling resource (for example, /// an Auto Scaling group, instance, or load balancer). /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/RecordLifecycleActionHeartbeat">REST API Reference for RecordLifecycleActionHeartbeat Operation</seealso> RecordLifecycleActionHeartbeatResponse RecordLifecycleActionHeartbeat(RecordLifecycleActionHeartbeatRequest request); /// <summary> /// 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> /// <param name="request">Container for the necessary parameters to execute the RecordLifecycleActionHeartbeat service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the RecordLifecycleActionHeartbeat service method, as returned by AutoScaling.</returns> /// <exception cref="Amazon.AutoScaling.Model.ResourceContentionException"> /// You already have a pending update to an Amazon EC2 Auto Scaling resource (for example, /// an Auto Scaling group, instance, or load balancer). /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/RecordLifecycleActionHeartbeat">REST API Reference for RecordLifecycleActionHeartbeat Operation</seealso> Task<RecordLifecycleActionHeartbeatResponse> RecordLifecycleActionHeartbeatAsync(RecordLifecycleActionHeartbeatRequest request, CancellationToken cancellationToken = default(CancellationToken)); #endregion #region ResumeProcesses /// <summary> /// 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> /// <param name="request">Container for the necessary parameters to execute the ResumeProcesses service method.</param> /// /// <returns>The response from the ResumeProcesses service method, as returned by AutoScaling.</returns> /// <exception cref="Amazon.AutoScaling.Model.ResourceContentionException"> /// You already have a pending update to an Amazon EC2 Auto Scaling resource (for example, /// an Auto Scaling group, instance, or load balancer). /// </exception> /// <exception cref="Amazon.AutoScaling.Model.ResourceInUseException"> /// The operation can't be performed because the resource is in use. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/ResumeProcesses">REST API Reference for ResumeProcesses Operation</seealso> ResumeProcessesResponse ResumeProcesses(ResumeProcessesRequest request); /// <summary> /// 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> /// <param name="request">Container for the necessary parameters to execute the ResumeProcesses service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the ResumeProcesses service method, as returned by AutoScaling.</returns> /// <exception cref="Amazon.AutoScaling.Model.ResourceContentionException"> /// You already have a pending update to an Amazon EC2 Auto Scaling resource (for example, /// an Auto Scaling group, instance, or load balancer). /// </exception> /// <exception cref="Amazon.AutoScaling.Model.ResourceInUseException"> /// The operation can't be performed because the resource is in use. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/ResumeProcesses">REST API Reference for ResumeProcesses Operation</seealso> Task<ResumeProcessesResponse> ResumeProcessesAsync(ResumeProcessesRequest request, CancellationToken cancellationToken = default(CancellationToken)); #endregion #region RollbackInstanceRefresh /// <summary> /// 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> /// <param name="request">Container for the necessary parameters to execute the RollbackInstanceRefresh service method.</param> /// /// <returns>The response from the RollbackInstanceRefresh service method, as returned by AutoScaling.</returns> /// <exception cref="Amazon.AutoScaling.Model.ActiveInstanceRefreshNotFoundException"> /// The request failed because an active instance refresh or rollback for the specified /// Auto Scaling group was not found. /// </exception> /// <exception cref="Amazon.AutoScaling.Model.IrreversibleInstanceRefreshException"> /// The request failed because a desired configuration was not found or an incompatible /// launch template (uses a Systems Manager parameter instead of an AMI ID) or launch /// template version (<code>$Latest</code> or <code>$Default</code>) is present on the /// Auto Scaling group. /// </exception> /// <exception cref="Amazon.AutoScaling.Model.LimitExceededException"> /// You have already reached a limit for your Amazon EC2 Auto Scaling resources (for example, /// Auto Scaling groups, launch configurations, or lifecycle hooks). For more information, /// see <a href="https://docs.aws.amazon.com/autoscaling/ec2/APIReference/API_DescribeAccountLimits.html">DescribeAccountLimits</a> /// in the <i>Amazon EC2 Auto Scaling API Reference</i>. /// </exception> /// <exception cref="Amazon.AutoScaling.Model.ResourceContentionException"> /// You already have a pending update to an Amazon EC2 Auto Scaling resource (for example, /// an Auto Scaling group, instance, or load balancer). /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/RollbackInstanceRefresh">REST API Reference for RollbackInstanceRefresh Operation</seealso> RollbackInstanceRefreshResponse RollbackInstanceRefresh(RollbackInstanceRefreshRequest request); /// <summary> /// 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> /// <param name="request">Container for the necessary parameters to execute the RollbackInstanceRefresh service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the RollbackInstanceRefresh service method, as returned by AutoScaling.</returns> /// <exception cref="Amazon.AutoScaling.Model.ActiveInstanceRefreshNotFoundException"> /// The request failed because an active instance refresh or rollback for the specified /// Auto Scaling group was not found. /// </exception> /// <exception cref="Amazon.AutoScaling.Model.IrreversibleInstanceRefreshException"> /// The request failed because a desired configuration was not found or an incompatible /// launch template (uses a Systems Manager parameter instead of an AMI ID) or launch /// template version (<code>$Latest</code> or <code>$Default</code>) is present on the /// Auto Scaling group. /// </exception> /// <exception cref="Amazon.AutoScaling.Model.LimitExceededException"> /// You have already reached a limit for your Amazon EC2 Auto Scaling resources (for example, /// Auto Scaling groups, launch configurations, or lifecycle hooks). For more information, /// see <a href="https://docs.aws.amazon.com/autoscaling/ec2/APIReference/API_DescribeAccountLimits.html">DescribeAccountLimits</a> /// in the <i>Amazon EC2 Auto Scaling API Reference</i>. /// </exception> /// <exception cref="Amazon.AutoScaling.Model.ResourceContentionException"> /// You already have a pending update to an Amazon EC2 Auto Scaling resource (for example, /// an Auto Scaling group, instance, or load balancer). /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/RollbackInstanceRefresh">REST API Reference for RollbackInstanceRefresh Operation</seealso> Task<RollbackInstanceRefreshResponse> RollbackInstanceRefreshAsync(RollbackInstanceRefreshRequest request, CancellationToken cancellationToken = default(CancellationToken)); #endregion #region SetDesiredCapacity /// <summary> /// 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> /// <param name="request">Container for the necessary parameters to execute the SetDesiredCapacity service method.</param> /// /// <returns>The response from the SetDesiredCapacity service method, as returned by AutoScaling.</returns> /// <exception cref="Amazon.AutoScaling.Model.ResourceContentionException"> /// You already have a pending update to an Amazon EC2 Auto Scaling resource (for example, /// an Auto Scaling group, instance, or load balancer). /// </exception> /// <exception cref="Amazon.AutoScaling.Model.ScalingActivityInProgressException"> /// The operation can't be performed because there are scaling activities in progress. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/SetDesiredCapacity">REST API Reference for SetDesiredCapacity Operation</seealso> SetDesiredCapacityResponse SetDesiredCapacity(SetDesiredCapacityRequest request); /// <summary> /// 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> /// <param name="request">Container for the necessary parameters to execute the SetDesiredCapacity service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the SetDesiredCapacity service method, as returned by AutoScaling.</returns> /// <exception cref="Amazon.AutoScaling.Model.ResourceContentionException"> /// You already have a pending update to an Amazon EC2 Auto Scaling resource (for example, /// an Auto Scaling group, instance, or load balancer). /// </exception> /// <exception cref="Amazon.AutoScaling.Model.ScalingActivityInProgressException"> /// The operation can't be performed because there are scaling activities in progress. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/SetDesiredCapacity">REST API Reference for SetDesiredCapacity Operation</seealso> Task<SetDesiredCapacityResponse> SetDesiredCapacityAsync(SetDesiredCapacityRequest request, CancellationToken cancellationToken = default(CancellationToken)); #endregion #region SetInstanceHealth /// <summary> /// 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> /// <param name="request">Container for the necessary parameters to execute the SetInstanceHealth service method.</param> /// /// <returns>The response from the SetInstanceHealth service method, as returned by AutoScaling.</returns> /// <exception cref="Amazon.AutoScaling.Model.ResourceContentionException"> /// You already have a pending update to an Amazon EC2 Auto Scaling resource (for example, /// an Auto Scaling group, instance, or load balancer). /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/SetInstanceHealth">REST API Reference for SetInstanceHealth Operation</seealso> SetInstanceHealthResponse SetInstanceHealth(SetInstanceHealthRequest request); /// <summary> /// 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> /// <param name="request">Container for the necessary parameters to execute the SetInstanceHealth service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the SetInstanceHealth service method, as returned by AutoScaling.</returns> /// <exception cref="Amazon.AutoScaling.Model.ResourceContentionException"> /// You already have a pending update to an Amazon EC2 Auto Scaling resource (for example, /// an Auto Scaling group, instance, or load balancer). /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/SetInstanceHealth">REST API Reference for SetInstanceHealth Operation</seealso> Task<SetInstanceHealthResponse> SetInstanceHealthAsync(SetInstanceHealthRequest request, CancellationToken cancellationToken = default(CancellationToken)); #endregion #region SetInstanceProtection /// <summary> /// 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> /// <param name="request">Container for the necessary parameters to execute the SetInstanceProtection service method.</param> /// /// <returns>The response from the SetInstanceProtection service method, as returned by AutoScaling.</returns> /// <exception cref="Amazon.AutoScaling.Model.LimitExceededException"> /// You have already reached a limit for your Amazon EC2 Auto Scaling resources (for example, /// Auto Scaling groups, launch configurations, or lifecycle hooks). For more information, /// see <a href="https://docs.aws.amazon.com/autoscaling/ec2/APIReference/API_DescribeAccountLimits.html">DescribeAccountLimits</a> /// in the <i>Amazon EC2 Auto Scaling API Reference</i>. /// </exception> /// <exception cref="Amazon.AutoScaling.Model.ResourceContentionException"> /// You already have a pending update to an Amazon EC2 Auto Scaling resource (for example, /// an Auto Scaling group, instance, or load balancer). /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/SetInstanceProtection">REST API Reference for SetInstanceProtection Operation</seealso> SetInstanceProtectionResponse SetInstanceProtection(SetInstanceProtectionRequest request); /// <summary> /// 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> /// <param name="request">Container for the necessary parameters to execute the SetInstanceProtection service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the SetInstanceProtection service method, as returned by AutoScaling.</returns> /// <exception cref="Amazon.AutoScaling.Model.LimitExceededException"> /// You have already reached a limit for your Amazon EC2 Auto Scaling resources (for example, /// Auto Scaling groups, launch configurations, or lifecycle hooks). For more information, /// see <a href="https://docs.aws.amazon.com/autoscaling/ec2/APIReference/API_DescribeAccountLimits.html">DescribeAccountLimits</a> /// in the <i>Amazon EC2 Auto Scaling API Reference</i>. /// </exception> /// <exception cref="Amazon.AutoScaling.Model.ResourceContentionException"> /// You already have a pending update to an Amazon EC2 Auto Scaling resource (for example, /// an Auto Scaling group, instance, or load balancer). /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/SetInstanceProtection">REST API Reference for SetInstanceProtection Operation</seealso> Task<SetInstanceProtectionResponse> SetInstanceProtectionAsync(SetInstanceProtectionRequest request, CancellationToken cancellationToken = default(CancellationToken)); #endregion #region StartInstanceRefresh /// <summary> /// 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> /// <param name="request">Container for the necessary parameters to execute the StartInstanceRefresh service method.</param> /// /// <returns>The response from the StartInstanceRefresh service method, as returned by AutoScaling.</returns> /// <exception cref="Amazon.AutoScaling.Model.InstanceRefreshInProgressException"> /// The request failed because an active instance refresh already exists for the specified /// Auto Scaling group. /// </exception> /// <exception cref="Amazon.AutoScaling.Model.LimitExceededException"> /// You have already reached a limit for your Amazon EC2 Auto Scaling resources (for example, /// Auto Scaling groups, launch configurations, or lifecycle hooks). For more information, /// see <a href="https://docs.aws.amazon.com/autoscaling/ec2/APIReference/API_DescribeAccountLimits.html">DescribeAccountLimits</a> /// in the <i>Amazon EC2 Auto Scaling API Reference</i>. /// </exception> /// <exception cref="Amazon.AutoScaling.Model.ResourceContentionException"> /// You already have a pending update to an Amazon EC2 Auto Scaling resource (for example, /// an Auto Scaling group, instance, or load balancer). /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/StartInstanceRefresh">REST API Reference for StartInstanceRefresh Operation</seealso> StartInstanceRefreshResponse StartInstanceRefresh(StartInstanceRefreshRequest request); /// <summary> /// 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> /// <param name="request">Container for the necessary parameters to execute the StartInstanceRefresh service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the StartInstanceRefresh service method, as returned by AutoScaling.</returns> /// <exception cref="Amazon.AutoScaling.Model.InstanceRefreshInProgressException"> /// The request failed because an active instance refresh already exists for the specified /// Auto Scaling group. /// </exception> /// <exception cref="Amazon.AutoScaling.Model.LimitExceededException"> /// You have already reached a limit for your Amazon EC2 Auto Scaling resources (for example, /// Auto Scaling groups, launch configurations, or lifecycle hooks). For more information, /// see <a href="https://docs.aws.amazon.com/autoscaling/ec2/APIReference/API_DescribeAccountLimits.html">DescribeAccountLimits</a> /// in the <i>Amazon EC2 Auto Scaling API Reference</i>. /// </exception> /// <exception cref="Amazon.AutoScaling.Model.ResourceContentionException"> /// You already have a pending update to an Amazon EC2 Auto Scaling resource (for example, /// an Auto Scaling group, instance, or load balancer). /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/StartInstanceRefresh">REST API Reference for StartInstanceRefresh Operation</seealso> Task<StartInstanceRefreshResponse> StartInstanceRefreshAsync(StartInstanceRefreshRequest request, CancellationToken cancellationToken = default(CancellationToken)); #endregion #region SuspendProcesses /// <summary> /// 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> /// <param name="request">Container for the necessary parameters to execute the SuspendProcesses service method.</param> /// /// <returns>The response from the SuspendProcesses service method, as returned by AutoScaling.</returns> /// <exception cref="Amazon.AutoScaling.Model.ResourceContentionException"> /// You already have a pending update to an Amazon EC2 Auto Scaling resource (for example, /// an Auto Scaling group, instance, or load balancer). /// </exception> /// <exception cref="Amazon.AutoScaling.Model.ResourceInUseException"> /// The operation can't be performed because the resource is in use. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/SuspendProcesses">REST API Reference for SuspendProcesses Operation</seealso> SuspendProcessesResponse SuspendProcesses(SuspendProcessesRequest request); /// <summary> /// 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> /// <param name="request">Container for the necessary parameters to execute the SuspendProcesses service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the SuspendProcesses service method, as returned by AutoScaling.</returns> /// <exception cref="Amazon.AutoScaling.Model.ResourceContentionException"> /// You already have a pending update to an Amazon EC2 Auto Scaling resource (for example, /// an Auto Scaling group, instance, or load balancer). /// </exception> /// <exception cref="Amazon.AutoScaling.Model.ResourceInUseException"> /// The operation can't be performed because the resource is in use. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/SuspendProcesses">REST API Reference for SuspendProcesses Operation</seealso> Task<SuspendProcessesResponse> SuspendProcessesAsync(SuspendProcessesRequest request, CancellationToken cancellationToken = default(CancellationToken)); #endregion #region TerminateInstanceInAutoScalingGroup /// <summary> /// 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> /// <param name="request">Container for the necessary parameters to execute the TerminateInstanceInAutoScalingGroup service method.</param> /// /// <returns>The response from the TerminateInstanceInAutoScalingGroup service method, as returned by AutoScaling.</returns> /// <exception cref="Amazon.AutoScaling.Model.ResourceContentionException"> /// You already have a pending update to an Amazon EC2 Auto Scaling resource (for example, /// an Auto Scaling group, instance, or load balancer). /// </exception> /// <exception cref="Amazon.AutoScaling.Model.ScalingActivityInProgressException"> /// The operation can't be performed because there are scaling activities in progress. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/TerminateInstanceInAutoScalingGroup">REST API Reference for TerminateInstanceInAutoScalingGroup Operation</seealso> TerminateInstanceInAutoScalingGroupResponse TerminateInstanceInAutoScalingGroup(TerminateInstanceInAutoScalingGroupRequest request); /// <summary> /// 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> /// <param name="request">Container for the necessary parameters to execute the TerminateInstanceInAutoScalingGroup service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the TerminateInstanceInAutoScalingGroup service method, as returned by AutoScaling.</returns> /// <exception cref="Amazon.AutoScaling.Model.ResourceContentionException"> /// You already have a pending update to an Amazon EC2 Auto Scaling resource (for example, /// an Auto Scaling group, instance, or load balancer). /// </exception> /// <exception cref="Amazon.AutoScaling.Model.ScalingActivityInProgressException"> /// The operation can't be performed because there are scaling activities in progress. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/TerminateInstanceInAutoScalingGroup">REST API Reference for TerminateInstanceInAutoScalingGroup Operation</seealso> Task<TerminateInstanceInAutoScalingGroupResponse> TerminateInstanceInAutoScalingGroupAsync(TerminateInstanceInAutoScalingGroupRequest request, CancellationToken cancellationToken = default(CancellationToken)); #endregion #region UpdateAutoScalingGroup /// <summary> /// <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> /// <param name="request">Container for the necessary parameters to execute the UpdateAutoScalingGroup service method.</param> /// /// <returns>The response from the UpdateAutoScalingGroup service method, as returned by AutoScaling.</returns> /// <exception cref="Amazon.AutoScaling.Model.ResourceContentionException"> /// You already have a pending update to an Amazon EC2 Auto Scaling resource (for example, /// an Auto Scaling group, instance, or load balancer). /// </exception> /// <exception cref="Amazon.AutoScaling.Model.ScalingActivityInProgressException"> /// The operation can't be performed because there are scaling activities in progress. /// </exception> /// <exception cref="Amazon.AutoScaling.Model.ServiceLinkedRoleFailureException"> /// The service-linked role is not yet ready for use. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/UpdateAutoScalingGroup">REST API Reference for UpdateAutoScalingGroup Operation</seealso> UpdateAutoScalingGroupResponse UpdateAutoScalingGroup(UpdateAutoScalingGroupRequest request); /// <summary> /// <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> /// <param name="request">Container for the necessary parameters to execute the UpdateAutoScalingGroup service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the UpdateAutoScalingGroup service method, as returned by AutoScaling.</returns> /// <exception cref="Amazon.AutoScaling.Model.ResourceContentionException"> /// You already have a pending update to an Amazon EC2 Auto Scaling resource (for example, /// an Auto Scaling group, instance, or load balancer). /// </exception> /// <exception cref="Amazon.AutoScaling.Model.ScalingActivityInProgressException"> /// The operation can't be performed because there are scaling activities in progress. /// </exception> /// <exception cref="Amazon.AutoScaling.Model.ServiceLinkedRoleFailureException"> /// The service-linked role is not yet ready for use. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/UpdateAutoScalingGroup">REST API Reference for UpdateAutoScalingGroup Operation</seealso> Task<UpdateAutoScalingGroupResponse> UpdateAutoScalingGroupAsync(UpdateAutoScalingGroupRequest request, CancellationToken cancellationToken = default(CancellationToken)); #endregion } }
5,622
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.Runtime.ExceptionServices; using System.Threading; using System.Threading.Tasks; using System.Collections.Generic; using System.Net; using Amazon.AutoScaling.Model; using Amazon.AutoScaling.Model.Internal.MarshallTransformations; using Amazon.AutoScaling.Internal; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Auth; using Amazon.Runtime.Internal.Transform; namespace Amazon.AutoScaling { /// <summary> /// Implementation for accessing AutoScaling /// /// Amazon EC2 Auto Scaling /// <para> /// Amazon EC2 Auto Scaling is designed to automatically launch and terminate EC2 instances /// based on user-defined scaling policies, scheduled actions, and health checks. /// </para> /// /// <para> /// For more information, see the <a href="https://docs.aws.amazon.com/autoscaling/ec2/userguide/">Amazon /// EC2 Auto Scaling User Guide</a> and the <a href="https://docs.aws.amazon.com/autoscaling/ec2/APIReference/Welcome.html">Amazon /// EC2 Auto Scaling API Reference</a>. /// </para> /// </summary> public partial class AmazonAutoScalingClient : AmazonServiceClient, IAmazonAutoScaling { private static IServiceMetadata serviceMetadata = new AmazonAutoScalingMetadata(); #region Constructors /// <summary> /// Constructs AmazonAutoScalingClient with the credentials loaded from the application's /// default configuration, and if unsuccessful from the Instance Profile service on an EC2 instance. /// /// Example App.config with credentials set. /// <code> /// &lt;?xml version="1.0" encoding="utf-8" ?&gt; /// &lt;configuration&gt; /// &lt;appSettings&gt; /// &lt;add key="AWSProfileName" value="AWS Default"/&gt; /// &lt;/appSettings&gt; /// &lt;/configuration&gt; /// </code> /// /// </summary> public AmazonAutoScalingClient() : base(FallbackCredentialsFactory.GetCredentials(), new AmazonAutoScalingConfig()) { } /// <summary> /// Constructs AmazonAutoScalingClient with the credentials loaded from the application's /// default configuration, and if unsuccessful from the Instance Profile service on an EC2 instance. /// /// Example App.config with credentials set. /// <code> /// &lt;?xml version="1.0" encoding="utf-8" ?&gt; /// &lt;configuration&gt; /// &lt;appSettings&gt; /// &lt;add key="AWSProfileName" value="AWS Default"/&gt; /// &lt;/appSettings&gt; /// &lt;/configuration&gt; /// </code> /// /// </summary> /// <param name="region">The region to connect.</param> public AmazonAutoScalingClient(RegionEndpoint region) : base(FallbackCredentialsFactory.GetCredentials(), new AmazonAutoScalingConfig{RegionEndpoint = region}) { } /// <summary> /// Constructs AmazonAutoScalingClient with the credentials loaded from the application's /// default configuration, and if unsuccessful from the Instance Profile service on an EC2 instance. /// /// Example App.config with credentials set. /// <code> /// &lt;?xml version="1.0" encoding="utf-8" ?&gt; /// &lt;configuration&gt; /// &lt;appSettings&gt; /// &lt;add key="AWSProfileName" value="AWS Default"/&gt; /// &lt;/appSettings&gt; /// &lt;/configuration&gt; /// </code> /// /// </summary> /// <param name="config">The AmazonAutoScalingClient Configuration Object</param> public AmazonAutoScalingClient(AmazonAutoScalingConfig config) : base(FallbackCredentialsFactory.GetCredentials(), config) { } /// <summary> /// Constructs AmazonAutoScalingClient with AWS Credentials /// </summary> /// <param name="credentials">AWS Credentials</param> public AmazonAutoScalingClient(AWSCredentials credentials) : this(credentials, new AmazonAutoScalingConfig()) { } /// <summary> /// Constructs AmazonAutoScalingClient with AWS Credentials /// </summary> /// <param name="credentials">AWS Credentials</param> /// <param name="region">The region to connect.</param> public AmazonAutoScalingClient(AWSCredentials credentials, RegionEndpoint region) : this(credentials, new AmazonAutoScalingConfig{RegionEndpoint = region}) { } /// <summary> /// Constructs AmazonAutoScalingClient with AWS Credentials and an /// AmazonAutoScalingClient Configuration object. /// </summary> /// <param name="credentials">AWS Credentials</param> /// <param name="clientConfig">The AmazonAutoScalingClient Configuration Object</param> public AmazonAutoScalingClient(AWSCredentials credentials, AmazonAutoScalingConfig clientConfig) : base(credentials, clientConfig) { } /// <summary> /// Constructs AmazonAutoScalingClient with AWS Access Key ID and AWS Secret Key /// </summary> /// <param name="awsAccessKeyId">AWS Access Key ID</param> /// <param name="awsSecretAccessKey">AWS Secret Access Key</param> public AmazonAutoScalingClient(string awsAccessKeyId, string awsSecretAccessKey) : this(awsAccessKeyId, awsSecretAccessKey, new AmazonAutoScalingConfig()) { } /// <summary> /// Constructs AmazonAutoScalingClient with AWS Access Key ID and AWS Secret Key /// </summary> /// <param name="awsAccessKeyId">AWS Access Key ID</param> /// <param name="awsSecretAccessKey">AWS Secret Access Key</param> /// <param name="region">The region to connect.</param> public AmazonAutoScalingClient(string awsAccessKeyId, string awsSecretAccessKey, RegionEndpoint region) : this(awsAccessKeyId, awsSecretAccessKey, new AmazonAutoScalingConfig() {RegionEndpoint=region}) { } /// <summary> /// Constructs AmazonAutoScalingClient with AWS Access Key ID, AWS Secret Key and an /// AmazonAutoScalingClient Configuration object. /// </summary> /// <param name="awsAccessKeyId">AWS Access Key ID</param> /// <param name="awsSecretAccessKey">AWS Secret Access Key</param> /// <param name="clientConfig">The AmazonAutoScalingClient Configuration Object</param> public AmazonAutoScalingClient(string awsAccessKeyId, string awsSecretAccessKey, AmazonAutoScalingConfig clientConfig) : base(awsAccessKeyId, awsSecretAccessKey, clientConfig) { } /// <summary> /// Constructs AmazonAutoScalingClient with AWS Access Key ID and AWS Secret Key /// </summary> /// <param name="awsAccessKeyId">AWS Access Key ID</param> /// <param name="awsSecretAccessKey">AWS Secret Access Key</param> /// <param name="awsSessionToken">AWS Session Token</param> public AmazonAutoScalingClient(string awsAccessKeyId, string awsSecretAccessKey, string awsSessionToken) : this(awsAccessKeyId, awsSecretAccessKey, awsSessionToken, new AmazonAutoScalingConfig()) { } /// <summary> /// Constructs AmazonAutoScalingClient with AWS Access Key ID and AWS Secret Key /// </summary> /// <param name="awsAccessKeyId">AWS Access Key ID</param> /// <param name="awsSecretAccessKey">AWS Secret Access Key</param> /// <param name="awsSessionToken">AWS Session Token</param> /// <param name="region">The region to connect.</param> public AmazonAutoScalingClient(string awsAccessKeyId, string awsSecretAccessKey, string awsSessionToken, RegionEndpoint region) : this(awsAccessKeyId, awsSecretAccessKey, awsSessionToken, new AmazonAutoScalingConfig{RegionEndpoint = region}) { } /// <summary> /// Constructs AmazonAutoScalingClient with AWS Access Key ID, AWS Secret Key and an /// AmazonAutoScalingClient Configuration object. /// </summary> /// <param name="awsAccessKeyId">AWS Access Key ID</param> /// <param name="awsSecretAccessKey">AWS Secret Access Key</param> /// <param name="awsSessionToken">AWS Session Token</param> /// <param name="clientConfig">The AmazonAutoScalingClient Configuration Object</param> public AmazonAutoScalingClient(string awsAccessKeyId, string awsSecretAccessKey, string awsSessionToken, AmazonAutoScalingConfig clientConfig) : base(awsAccessKeyId, awsSecretAccessKey, awsSessionToken, clientConfig) { } #endregion #if AWS_ASYNC_ENUMERABLES_API private IAutoScalingPaginatorFactory _paginators; /// <summary> /// Paginators for the service /// </summary> public IAutoScalingPaginatorFactory Paginators { get { if (this._paginators == null) { this._paginators = new AutoScalingPaginatorFactory(this); } return this._paginators; } } #endif #region Overrides /// <summary> /// Creates the signer for the service. /// </summary> protected override AbstractAWSSigner CreateSigner() { return new AWS4Signer(); } /// <summary> /// Customizes the runtime pipeline. /// </summary> /// <param name="pipeline">Runtime pipeline for the current client.</param> protected override void CustomizeRuntimePipeline(RuntimePipeline pipeline) { pipeline.RemoveHandler<Amazon.Runtime.Internal.EndpointResolver>(); pipeline.AddHandlerAfter<Amazon.Runtime.Internal.Marshaller>(new AmazonAutoScalingEndpointResolver()); } /// <summary> /// Capture metadata for the service. /// </summary> protected override IServiceMetadata ServiceMetadata { get { return serviceMetadata; } } #endregion #region Dispose /// <summary> /// Disposes the service client. /// </summary> protected override void Dispose(bool disposing) { base.Dispose(disposing); } #endregion #region AttachInstances internal virtual AttachInstancesResponse AttachInstances(AttachInstancesRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = AttachInstancesRequestMarshaller.Instance; options.ResponseUnmarshaller = AttachInstancesResponseUnmarshaller.Instance; return Invoke<AttachInstancesResponse>(request, options); } /// <summary> /// Attaches one or more EC2 instances to the specified Auto Scaling group. /// /// /// <para> /// When you attach instances, Amazon EC2 Auto Scaling increases the desired capacity /// of the group by the number of instances being attached. If the number of instances /// being attached plus the desired capacity of the group exceeds the maximum size of /// the group, the operation fails. /// </para> /// /// <para> /// If there is a Classic Load Balancer attached to your Auto Scaling group, the instances /// are also registered with the load balancer. If there are target groups attached to /// your Auto Scaling group, the instances are also registered with the target groups. /// </para> /// /// <para> /// For more information, see <a href="https://docs.aws.amazon.com/autoscaling/ec2/userguide/attach-instance-asg.html">Attach /// EC2 instances to your Auto Scaling group</a> in the <i>Amazon EC2 Auto Scaling User /// Guide</i>. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the AttachInstances service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the AttachInstances service method, as returned by AutoScaling.</returns> /// <exception cref="Amazon.AutoScaling.Model.ResourceContentionException"> /// You already have a pending update to an Amazon EC2 Auto Scaling resource (for example, /// an Auto Scaling group, instance, or load balancer). /// </exception> /// <exception cref="Amazon.AutoScaling.Model.ServiceLinkedRoleFailureException"> /// The service-linked role is not yet ready for use. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/AttachInstances">REST API Reference for AttachInstances Operation</seealso> public virtual Task<AttachInstancesResponse> AttachInstancesAsync(AttachInstancesRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = AttachInstancesRequestMarshaller.Instance; options.ResponseUnmarshaller = AttachInstancesResponseUnmarshaller.Instance; return InvokeAsync<AttachInstancesResponse>(request, options, cancellationToken); } #endregion #region AttachLoadBalancers internal virtual AttachLoadBalancersResponse AttachLoadBalancers(AttachLoadBalancersRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = AttachLoadBalancersRequestMarshaller.Instance; options.ResponseUnmarshaller = AttachLoadBalancersResponseUnmarshaller.Instance; return Invoke<AttachLoadBalancersResponse>(request, options); } /// <summary> /// <note> /// <para> /// This API operation is superseded by <a>AttachTrafficSources</a>, which can attach /// multiple traffic sources types. We recommend using <code>AttachTrafficSources</code> /// to simplify how you manage traffic sources. However, we continue to support <code>AttachLoadBalancers</code>. /// You can use both the original <code>AttachLoadBalancers</code> API operation and <code>AttachTrafficSources</code> /// on the same Auto Scaling group. /// </para> /// </note> /// <para> /// Attaches one or more Classic Load Balancers to the specified Auto Scaling group. Amazon /// EC2 Auto Scaling registers the running instances with these Classic Load Balancers. /// </para> /// /// <para> /// To describe the load balancers for an Auto Scaling group, call the <a>DescribeLoadBalancers</a> /// API. To detach a load balancer from the Auto Scaling group, call the <a>DetachLoadBalancers</a> /// API. /// </para> /// /// <para> /// This operation is additive and does not detach existing Classic Load Balancers or /// target groups from the Auto Scaling group. /// </para> /// /// <para> /// For more information, see <a href="https://docs.aws.amazon.com/autoscaling/ec2/userguide/autoscaling-load-balancer.html">Use /// Elastic Load Balancing to distribute traffic across the instances in your Auto Scaling /// group</a> in the <i>Amazon EC2 Auto Scaling User Guide</i>. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the AttachLoadBalancers service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the AttachLoadBalancers service method, as returned by AutoScaling.</returns> /// <exception cref="Amazon.AutoScaling.Model.ResourceContentionException"> /// You already have a pending update to an Amazon EC2 Auto Scaling resource (for example, /// an Auto Scaling group, instance, or load balancer). /// </exception> /// <exception cref="Amazon.AutoScaling.Model.ServiceLinkedRoleFailureException"> /// The service-linked role is not yet ready for use. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/AttachLoadBalancers">REST API Reference for AttachLoadBalancers Operation</seealso> public virtual Task<AttachLoadBalancersResponse> AttachLoadBalancersAsync(AttachLoadBalancersRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = AttachLoadBalancersRequestMarshaller.Instance; options.ResponseUnmarshaller = AttachLoadBalancersResponseUnmarshaller.Instance; return InvokeAsync<AttachLoadBalancersResponse>(request, options, cancellationToken); } #endregion #region AttachLoadBalancerTargetGroups internal virtual AttachLoadBalancerTargetGroupsResponse AttachLoadBalancerTargetGroups(AttachLoadBalancerTargetGroupsRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = AttachLoadBalancerTargetGroupsRequestMarshaller.Instance; options.ResponseUnmarshaller = AttachLoadBalancerTargetGroupsResponseUnmarshaller.Instance; return Invoke<AttachLoadBalancerTargetGroupsResponse>(request, options); } /// <summary> /// <note> /// <para> /// This API operation is superseded by <a>AttachTrafficSources</a>, which can attach /// multiple traffic sources types. We recommend using <code>AttachTrafficSources</code> /// to simplify how you manage traffic sources. However, we continue to support <code>AttachLoadBalancerTargetGroups</code>. /// You can use both the original <code>AttachLoadBalancerTargetGroups</code> API operation /// and <code>AttachTrafficSources</code> on the same Auto Scaling group. /// </para> /// </note> /// <para> /// Attaches one or more target groups to the specified Auto Scaling group. /// </para> /// /// <para> /// This operation is used with the following load balancer types: /// </para> /// <ul> <li> /// <para> /// Application Load Balancer - Operates at the application layer (layer 7) and supports /// HTTP and HTTPS. /// </para> /// </li> <li> /// <para> /// Network Load Balancer - Operates at the transport layer (layer 4) and supports TCP, /// TLS, and UDP. /// </para> /// </li> <li> /// <para> /// Gateway Load Balancer - Operates at the network layer (layer 3). /// </para> /// </li> </ul> /// <para> /// To describe the target groups for an Auto Scaling group, call the <a>DescribeLoadBalancerTargetGroups</a> /// API. To detach the target group from the Auto Scaling group, call the <a>DetachLoadBalancerTargetGroups</a> /// API. /// </para> /// /// <para> /// This operation is additive and does not detach existing target groups or Classic Load /// Balancers from the Auto Scaling group. /// </para> /// /// <para> /// For more information, see <a href="https://docs.aws.amazon.com/autoscaling/ec2/userguide/autoscaling-load-balancer.html">Use /// Elastic Load Balancing to distribute traffic across the instances in your Auto Scaling /// group</a> in the <i>Amazon EC2 Auto Scaling User Guide</i>. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the AttachLoadBalancerTargetGroups service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the AttachLoadBalancerTargetGroups service method, as returned by AutoScaling.</returns> /// <exception cref="Amazon.AutoScaling.Model.ResourceContentionException"> /// You already have a pending update to an Amazon EC2 Auto Scaling resource (for example, /// an Auto Scaling group, instance, or load balancer). /// </exception> /// <exception cref="Amazon.AutoScaling.Model.ServiceLinkedRoleFailureException"> /// The service-linked role is not yet ready for use. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/AttachLoadBalancerTargetGroups">REST API Reference for AttachLoadBalancerTargetGroups Operation</seealso> public virtual Task<AttachLoadBalancerTargetGroupsResponse> AttachLoadBalancerTargetGroupsAsync(AttachLoadBalancerTargetGroupsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = AttachLoadBalancerTargetGroupsRequestMarshaller.Instance; options.ResponseUnmarshaller = AttachLoadBalancerTargetGroupsResponseUnmarshaller.Instance; return InvokeAsync<AttachLoadBalancerTargetGroupsResponse>(request, options, cancellationToken); } #endregion #region AttachTrafficSources internal virtual AttachTrafficSourcesResponse AttachTrafficSources(AttachTrafficSourcesRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = AttachTrafficSourcesRequestMarshaller.Instance; options.ResponseUnmarshaller = AttachTrafficSourcesResponseUnmarshaller.Instance; return Invoke<AttachTrafficSourcesResponse>(request, options); } /// <summary> /// Attaches one or more traffic sources to the specified Auto Scaling group. /// /// /// <para> /// You can use any of the following as traffic sources for an Auto Scaling group: /// </para> /// <ul> <li> /// <para> /// Application Load Balancer /// </para> /// </li> <li> /// <para> /// Classic Load Balancer /// </para> /// </li> <li> /// <para> /// Gateway Load Balancer /// </para> /// </li> <li> /// <para> /// Network Load Balancer /// </para> /// </li> <li> /// <para> /// VPC Lattice /// </para> /// </li> </ul> /// <para> /// This operation is additive and does not detach existing traffic sources from the Auto /// Scaling group. /// </para> /// /// <para> /// After the operation completes, use the <a>DescribeTrafficSources</a> API to return /// details about the state of the attachments between traffic sources and your Auto Scaling /// group. To detach a traffic source from the Auto Scaling group, call the <a>DetachTrafficSources</a> /// API. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the AttachTrafficSources service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the AttachTrafficSources service method, as returned by AutoScaling.</returns> /// <exception cref="Amazon.AutoScaling.Model.ResourceContentionException"> /// You already have a pending update to an Amazon EC2 Auto Scaling resource (for example, /// an Auto Scaling group, instance, or load balancer). /// </exception> /// <exception cref="Amazon.AutoScaling.Model.ServiceLinkedRoleFailureException"> /// The service-linked role is not yet ready for use. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/AttachTrafficSources">REST API Reference for AttachTrafficSources Operation</seealso> public virtual Task<AttachTrafficSourcesResponse> AttachTrafficSourcesAsync(AttachTrafficSourcesRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = AttachTrafficSourcesRequestMarshaller.Instance; options.ResponseUnmarshaller = AttachTrafficSourcesResponseUnmarshaller.Instance; return InvokeAsync<AttachTrafficSourcesResponse>(request, options, cancellationToken); } #endregion #region BatchDeleteScheduledAction internal virtual BatchDeleteScheduledActionResponse BatchDeleteScheduledAction(BatchDeleteScheduledActionRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = BatchDeleteScheduledActionRequestMarshaller.Instance; options.ResponseUnmarshaller = BatchDeleteScheduledActionResponseUnmarshaller.Instance; return Invoke<BatchDeleteScheduledActionResponse>(request, options); } /// <summary> /// Deletes one or more scheduled actions for the specified Auto Scaling group. /// </summary> /// <param name="request">Container for the necessary parameters to execute the BatchDeleteScheduledAction service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the BatchDeleteScheduledAction service method, as returned by AutoScaling.</returns> /// <exception cref="Amazon.AutoScaling.Model.ResourceContentionException"> /// You already have a pending update to an Amazon EC2 Auto Scaling resource (for example, /// an Auto Scaling group, instance, or load balancer). /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/BatchDeleteScheduledAction">REST API Reference for BatchDeleteScheduledAction Operation</seealso> public virtual Task<BatchDeleteScheduledActionResponse> BatchDeleteScheduledActionAsync(BatchDeleteScheduledActionRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = BatchDeleteScheduledActionRequestMarshaller.Instance; options.ResponseUnmarshaller = BatchDeleteScheduledActionResponseUnmarshaller.Instance; return InvokeAsync<BatchDeleteScheduledActionResponse>(request, options, cancellationToken); } #endregion #region BatchPutScheduledUpdateGroupAction internal virtual BatchPutScheduledUpdateGroupActionResponse BatchPutScheduledUpdateGroupAction(BatchPutScheduledUpdateGroupActionRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = BatchPutScheduledUpdateGroupActionRequestMarshaller.Instance; options.ResponseUnmarshaller = BatchPutScheduledUpdateGroupActionResponseUnmarshaller.Instance; return Invoke<BatchPutScheduledUpdateGroupActionResponse>(request, options); } /// <summary> /// Creates or updates one or more scheduled scaling actions for an Auto Scaling group. /// </summary> /// <param name="request">Container for the necessary parameters to execute the BatchPutScheduledUpdateGroupAction service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the BatchPutScheduledUpdateGroupAction service method, as returned by AutoScaling.</returns> /// <exception cref="Amazon.AutoScaling.Model.AlreadyExistsException"> /// You already have an Auto Scaling group or launch configuration with this name. /// </exception> /// <exception cref="Amazon.AutoScaling.Model.LimitExceededException"> /// You have already reached a limit for your Amazon EC2 Auto Scaling resources (for example, /// Auto Scaling groups, launch configurations, or lifecycle hooks). For more information, /// see <a href="https://docs.aws.amazon.com/autoscaling/ec2/APIReference/API_DescribeAccountLimits.html">DescribeAccountLimits</a> /// in the <i>Amazon EC2 Auto Scaling API Reference</i>. /// </exception> /// <exception cref="Amazon.AutoScaling.Model.ResourceContentionException"> /// You already have a pending update to an Amazon EC2 Auto Scaling resource (for example, /// an Auto Scaling group, instance, or load balancer). /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/BatchPutScheduledUpdateGroupAction">REST API Reference for BatchPutScheduledUpdateGroupAction Operation</seealso> public virtual Task<BatchPutScheduledUpdateGroupActionResponse> BatchPutScheduledUpdateGroupActionAsync(BatchPutScheduledUpdateGroupActionRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = BatchPutScheduledUpdateGroupActionRequestMarshaller.Instance; options.ResponseUnmarshaller = BatchPutScheduledUpdateGroupActionResponseUnmarshaller.Instance; return InvokeAsync<BatchPutScheduledUpdateGroupActionResponse>(request, options, cancellationToken); } #endregion #region CancelInstanceRefresh internal virtual CancelInstanceRefreshResponse CancelInstanceRefresh(CancelInstanceRefreshRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = CancelInstanceRefreshRequestMarshaller.Instance; options.ResponseUnmarshaller = CancelInstanceRefreshResponseUnmarshaller.Instance; return Invoke<CancelInstanceRefreshResponse>(request, options); } /// <summary> /// Cancels an instance refresh or rollback that is in progress. If an instance refresh /// or rollback is not in progress, an <code>ActiveInstanceRefreshNotFound</code> error /// occurs. /// /// /// <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> /// When you cancel an instance refresh, this does not roll back any changes that it made. /// Use the <a>RollbackInstanceRefresh</a> API to roll back instead. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the CancelInstanceRefresh service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the CancelInstanceRefresh service method, as returned by AutoScaling.</returns> /// <exception cref="Amazon.AutoScaling.Model.ActiveInstanceRefreshNotFoundException"> /// The request failed because an active instance refresh or rollback for the specified /// Auto Scaling group was not found. /// </exception> /// <exception cref="Amazon.AutoScaling.Model.LimitExceededException"> /// You have already reached a limit for your Amazon EC2 Auto Scaling resources (for example, /// Auto Scaling groups, launch configurations, or lifecycle hooks). For more information, /// see <a href="https://docs.aws.amazon.com/autoscaling/ec2/APIReference/API_DescribeAccountLimits.html">DescribeAccountLimits</a> /// in the <i>Amazon EC2 Auto Scaling API Reference</i>. /// </exception> /// <exception cref="Amazon.AutoScaling.Model.ResourceContentionException"> /// You already have a pending update to an Amazon EC2 Auto Scaling resource (for example, /// an Auto Scaling group, instance, or load balancer). /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/CancelInstanceRefresh">REST API Reference for CancelInstanceRefresh Operation</seealso> public virtual Task<CancelInstanceRefreshResponse> CancelInstanceRefreshAsync(CancelInstanceRefreshRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = CancelInstanceRefreshRequestMarshaller.Instance; options.ResponseUnmarshaller = CancelInstanceRefreshResponseUnmarshaller.Instance; return InvokeAsync<CancelInstanceRefreshResponse>(request, options, cancellationToken); } #endregion #region CompleteLifecycleAction internal virtual CompleteLifecycleActionResponse CompleteLifecycleAction(CompleteLifecycleActionRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = CompleteLifecycleActionRequestMarshaller.Instance; options.ResponseUnmarshaller = CompleteLifecycleActionResponseUnmarshaller.Instance; return Invoke<CompleteLifecycleActionResponse>(request, options); } /// <summary> /// Completes the lifecycle action for the specified token or instance with the specified /// result. /// /// /// <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> /// If you need more time, record the lifecycle action heartbeat to keep the instance /// in a wait state. /// </para> /// </li> <li> /// <para> /// <b>If you finish before the timeout period ends, send a callback by using the <a>CompleteLifecycleAction</a> /// API call.</b> /// </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> /// <param name="request">Container for the necessary parameters to execute the CompleteLifecycleAction service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the CompleteLifecycleAction service method, as returned by AutoScaling.</returns> /// <exception cref="Amazon.AutoScaling.Model.ResourceContentionException"> /// You already have a pending update to an Amazon EC2 Auto Scaling resource (for example, /// an Auto Scaling group, instance, or load balancer). /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/CompleteLifecycleAction">REST API Reference for CompleteLifecycleAction Operation</seealso> public virtual Task<CompleteLifecycleActionResponse> CompleteLifecycleActionAsync(CompleteLifecycleActionRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = CompleteLifecycleActionRequestMarshaller.Instance; options.ResponseUnmarshaller = CompleteLifecycleActionResponseUnmarshaller.Instance; return InvokeAsync<CompleteLifecycleActionResponse>(request, options, cancellationToken); } #endregion #region CreateAutoScalingGroup internal virtual CreateAutoScalingGroupResponse CreateAutoScalingGroup(CreateAutoScalingGroupRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = CreateAutoScalingGroupRequestMarshaller.Instance; options.ResponseUnmarshaller = CreateAutoScalingGroupResponseUnmarshaller.Instance; return Invoke<CreateAutoScalingGroupResponse>(request, options); } /// <summary> /// <b>We strongly recommend using a launch template when calling this operation to ensure /// full functionality for Amazon EC2 Auto Scaling and Amazon EC2.</b> /// /// /// <para> /// Creates an Auto Scaling group with the specified name and attributes. /// </para> /// /// <para> /// If you exceed your maximum limit of Auto Scaling groups, the call fails. To query /// this limit, call the <a>DescribeAccountLimits</a> API. For information about updating /// this limit, see <a href="https://docs.aws.amazon.com/autoscaling/ec2/userguide/ec2-auto-scaling-quotas.html">Quotas /// for Amazon EC2 Auto Scaling</a> in the <i>Amazon EC2 Auto Scaling User Guide</i>. /// </para> /// /// <para> /// For introductory exercises for creating an Auto Scaling group, see <a href="https://docs.aws.amazon.com/autoscaling/ec2/userguide/GettingStartedTutorial.html">Getting /// started with Amazon EC2 Auto Scaling</a> and <a href="https://docs.aws.amazon.com/autoscaling/ec2/userguide/as-register-lbs-with-asg.html">Tutorial: /// Set up a scaled and load-balanced application</a> in the <i>Amazon EC2 Auto Scaling /// User Guide</i>. For more information, see <a href="https://docs.aws.amazon.com/autoscaling/ec2/userguide/AutoScalingGroup.html">Auto /// Scaling groups</a> in the <i>Amazon EC2 Auto Scaling User Guide</i>. /// </para> /// /// <para> /// Every Auto Scaling group has three size properties (<code>DesiredCapacity</code>, /// <code>MaxSize</code>, and <code>MinSize</code>). Usually, you set these sizes based /// on a specific number of instances. However, if you configure a mixed instances policy /// that defines weights for the instance types, you must specify these sizes with the /// same units that you use for weighting instances. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the CreateAutoScalingGroup service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the CreateAutoScalingGroup service method, as returned by AutoScaling.</returns> /// <exception cref="Amazon.AutoScaling.Model.AlreadyExistsException"> /// You already have an Auto Scaling group or launch configuration with this name. /// </exception> /// <exception cref="Amazon.AutoScaling.Model.LimitExceededException"> /// You have already reached a limit for your Amazon EC2 Auto Scaling resources (for example, /// Auto Scaling groups, launch configurations, or lifecycle hooks). For more information, /// see <a href="https://docs.aws.amazon.com/autoscaling/ec2/APIReference/API_DescribeAccountLimits.html">DescribeAccountLimits</a> /// in the <i>Amazon EC2 Auto Scaling API Reference</i>. /// </exception> /// <exception cref="Amazon.AutoScaling.Model.ResourceContentionException"> /// You already have a pending update to an Amazon EC2 Auto Scaling resource (for example, /// an Auto Scaling group, instance, or load balancer). /// </exception> /// <exception cref="Amazon.AutoScaling.Model.ServiceLinkedRoleFailureException"> /// The service-linked role is not yet ready for use. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/CreateAutoScalingGroup">REST API Reference for CreateAutoScalingGroup Operation</seealso> public virtual Task<CreateAutoScalingGroupResponse> CreateAutoScalingGroupAsync(CreateAutoScalingGroupRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = CreateAutoScalingGroupRequestMarshaller.Instance; options.ResponseUnmarshaller = CreateAutoScalingGroupResponseUnmarshaller.Instance; return InvokeAsync<CreateAutoScalingGroupResponse>(request, options, cancellationToken); } #endregion #region CreateLaunchConfiguration internal virtual CreateLaunchConfigurationResponse CreateLaunchConfiguration(CreateLaunchConfigurationRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = CreateLaunchConfigurationRequestMarshaller.Instance; options.ResponseUnmarshaller = CreateLaunchConfigurationResponseUnmarshaller.Instance; return Invoke<CreateLaunchConfigurationResponse>(request, options); } /// <summary> /// Creates a launch configuration. /// /// /// <para> /// If you exceed your maximum limit of launch configurations, the call fails. To query /// this limit, call the <a>DescribeAccountLimits</a> API. For information about updating /// this limit, see <a href="https://docs.aws.amazon.com/autoscaling/ec2/userguide/ec2-auto-scaling-quotas.html">Quotas /// for Amazon EC2 Auto Scaling</a> in the <i>Amazon EC2 Auto Scaling User Guide</i>. /// </para> /// /// <para> /// For more information, see <a href="https://docs.aws.amazon.com/autoscaling/ec2/userguide/LaunchConfiguration.html">Launch /// configurations</a> in the <i>Amazon EC2 Auto Scaling User Guide</i>. /// </para> /// <note> /// <para> /// Amazon EC2 Auto Scaling configures instances launched as part of an Auto Scaling group /// using either a launch template or a launch configuration. We strongly recommend that /// you do not use launch configurations. They do not provide full functionality for Amazon /// EC2 Auto Scaling or Amazon EC2. For information about using launch templates, see /// <a href="https://docs.aws.amazon.com/autoscaling/ec2/userguide/launch-templates.html">Launch /// templates</a> in the <i>Amazon EC2 Auto Scaling User Guide</i>. /// </para> /// </note> /// </summary> /// <param name="request">Container for the necessary parameters to execute the CreateLaunchConfiguration service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the CreateLaunchConfiguration service method, as returned by AutoScaling.</returns> /// <exception cref="Amazon.AutoScaling.Model.AlreadyExistsException"> /// You already have an Auto Scaling group or launch configuration with this name. /// </exception> /// <exception cref="Amazon.AutoScaling.Model.LimitExceededException"> /// You have already reached a limit for your Amazon EC2 Auto Scaling resources (for example, /// Auto Scaling groups, launch configurations, or lifecycle hooks). For more information, /// see <a href="https://docs.aws.amazon.com/autoscaling/ec2/APIReference/API_DescribeAccountLimits.html">DescribeAccountLimits</a> /// in the <i>Amazon EC2 Auto Scaling API Reference</i>. /// </exception> /// <exception cref="Amazon.AutoScaling.Model.ResourceContentionException"> /// You already have a pending update to an Amazon EC2 Auto Scaling resource (for example, /// an Auto Scaling group, instance, or load balancer). /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/CreateLaunchConfiguration">REST API Reference for CreateLaunchConfiguration Operation</seealso> public virtual Task<CreateLaunchConfigurationResponse> CreateLaunchConfigurationAsync(CreateLaunchConfigurationRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = CreateLaunchConfigurationRequestMarshaller.Instance; options.ResponseUnmarshaller = CreateLaunchConfigurationResponseUnmarshaller.Instance; return InvokeAsync<CreateLaunchConfigurationResponse>(request, options, cancellationToken); } #endregion #region CreateOrUpdateTags internal virtual CreateOrUpdateTagsResponse CreateOrUpdateTags(CreateOrUpdateTagsRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = CreateOrUpdateTagsRequestMarshaller.Instance; options.ResponseUnmarshaller = CreateOrUpdateTagsResponseUnmarshaller.Instance; return Invoke<CreateOrUpdateTagsResponse>(request, options); } /// <summary> /// Creates or updates tags for the specified Auto Scaling group. /// /// /// <para> /// When you specify a tag with a key that already exists, the operation overwrites the /// previous tag definition, and you do not get an error message. /// </para> /// /// <para> /// For more information, see <a href="https://docs.aws.amazon.com/autoscaling/ec2/userguide/ec2-auto-scaling-tagging.html">Tag /// Auto Scaling groups and instances</a> in the <i>Amazon EC2 Auto Scaling User Guide</i>. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the CreateOrUpdateTags service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the CreateOrUpdateTags service method, as returned by AutoScaling.</returns> /// <exception cref="Amazon.AutoScaling.Model.AlreadyExistsException"> /// You already have an Auto Scaling group or launch configuration with this name. /// </exception> /// <exception cref="Amazon.AutoScaling.Model.LimitExceededException"> /// You have already reached a limit for your Amazon EC2 Auto Scaling resources (for example, /// Auto Scaling groups, launch configurations, or lifecycle hooks). For more information, /// see <a href="https://docs.aws.amazon.com/autoscaling/ec2/APIReference/API_DescribeAccountLimits.html">DescribeAccountLimits</a> /// in the <i>Amazon EC2 Auto Scaling API Reference</i>. /// </exception> /// <exception cref="Amazon.AutoScaling.Model.ResourceContentionException"> /// You already have a pending update to an Amazon EC2 Auto Scaling resource (for example, /// an Auto Scaling group, instance, or load balancer). /// </exception> /// <exception cref="Amazon.AutoScaling.Model.ResourceInUseException"> /// The operation can't be performed because the resource is in use. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/CreateOrUpdateTags">REST API Reference for CreateOrUpdateTags Operation</seealso> public virtual Task<CreateOrUpdateTagsResponse> CreateOrUpdateTagsAsync(CreateOrUpdateTagsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = CreateOrUpdateTagsRequestMarshaller.Instance; options.ResponseUnmarshaller = CreateOrUpdateTagsResponseUnmarshaller.Instance; return InvokeAsync<CreateOrUpdateTagsResponse>(request, options, cancellationToken); } #endregion #region DeleteAutoScalingGroup internal virtual DeleteAutoScalingGroupResponse DeleteAutoScalingGroup(DeleteAutoScalingGroupRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DeleteAutoScalingGroupRequestMarshaller.Instance; options.ResponseUnmarshaller = DeleteAutoScalingGroupResponseUnmarshaller.Instance; return Invoke<DeleteAutoScalingGroupResponse>(request, options); } /// <summary> /// Deletes the specified Auto Scaling group. /// /// /// <para> /// If the group has instances or scaling activities in progress, you must specify the /// option to force the deletion in order for it to succeed. The force delete operation /// will also terminate the EC2 instances. If the group has a warm pool, the force delete /// option also deletes the warm pool. /// </para> /// /// <para> /// To remove instances from the Auto Scaling group before deleting it, call the <a>DetachInstances</a> /// API with the list of instances and the option to decrement the desired capacity. This /// ensures that Amazon EC2 Auto Scaling does not launch replacement instances. /// </para> /// /// <para> /// To terminate all instances before deleting the Auto Scaling group, call the <a>UpdateAutoScalingGroup</a> /// API and set the minimum size and desired capacity of the Auto Scaling group to zero. /// </para> /// /// <para> /// If the group has scaling policies, deleting the group deletes the policies, the underlying /// alarm actions, and any alarm that no longer has an associated action. /// </para> /// /// <para> /// For more information, see <a href="https://docs.aws.amazon.com/autoscaling/ec2/userguide/as-process-shutdown.html">Delete /// your Auto Scaling infrastructure</a> in the <i>Amazon EC2 Auto Scaling User Guide</i>. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the DeleteAutoScalingGroup service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the DeleteAutoScalingGroup service method, as returned by AutoScaling.</returns> /// <exception cref="Amazon.AutoScaling.Model.ResourceContentionException"> /// You already have a pending update to an Amazon EC2 Auto Scaling resource (for example, /// an Auto Scaling group, instance, or load balancer). /// </exception> /// <exception cref="Amazon.AutoScaling.Model.ResourceInUseException"> /// The operation can't be performed because the resource is in use. /// </exception> /// <exception cref="Amazon.AutoScaling.Model.ScalingActivityInProgressException"> /// The operation can't be performed because there are scaling activities in progress. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/DeleteAutoScalingGroup">REST API Reference for DeleteAutoScalingGroup Operation</seealso> public virtual Task<DeleteAutoScalingGroupResponse> DeleteAutoScalingGroupAsync(DeleteAutoScalingGroupRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = DeleteAutoScalingGroupRequestMarshaller.Instance; options.ResponseUnmarshaller = DeleteAutoScalingGroupResponseUnmarshaller.Instance; return InvokeAsync<DeleteAutoScalingGroupResponse>(request, options, cancellationToken); } #endregion #region DeleteLaunchConfiguration internal virtual DeleteLaunchConfigurationResponse DeleteLaunchConfiguration(DeleteLaunchConfigurationRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DeleteLaunchConfigurationRequestMarshaller.Instance; options.ResponseUnmarshaller = DeleteLaunchConfigurationResponseUnmarshaller.Instance; return Invoke<DeleteLaunchConfigurationResponse>(request, options); } /// <summary> /// Deletes the specified launch configuration. /// /// /// <para> /// The launch configuration must not be attached to an Auto Scaling group. When this /// call completes, the launch configuration is no longer available for use. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the DeleteLaunchConfiguration service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the DeleteLaunchConfiguration service method, as returned by AutoScaling.</returns> /// <exception cref="Amazon.AutoScaling.Model.ResourceContentionException"> /// You already have a pending update to an Amazon EC2 Auto Scaling resource (for example, /// an Auto Scaling group, instance, or load balancer). /// </exception> /// <exception cref="Amazon.AutoScaling.Model.ResourceInUseException"> /// The operation can't be performed because the resource is in use. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/DeleteLaunchConfiguration">REST API Reference for DeleteLaunchConfiguration Operation</seealso> public virtual Task<DeleteLaunchConfigurationResponse> DeleteLaunchConfigurationAsync(DeleteLaunchConfigurationRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = DeleteLaunchConfigurationRequestMarshaller.Instance; options.ResponseUnmarshaller = DeleteLaunchConfigurationResponseUnmarshaller.Instance; return InvokeAsync<DeleteLaunchConfigurationResponse>(request, options, cancellationToken); } #endregion #region DeleteLifecycleHook internal virtual DeleteLifecycleHookResponse DeleteLifecycleHook(DeleteLifecycleHookRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DeleteLifecycleHookRequestMarshaller.Instance; options.ResponseUnmarshaller = DeleteLifecycleHookResponseUnmarshaller.Instance; return Invoke<DeleteLifecycleHookResponse>(request, options); } /// <summary> /// Deletes the specified lifecycle hook. /// /// /// <para> /// If there are any outstanding lifecycle actions, they are completed first (<code>ABANDON</code> /// for launching instances, <code>CONTINUE</code> for terminating instances). /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the DeleteLifecycleHook service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the DeleteLifecycleHook service method, as returned by AutoScaling.</returns> /// <exception cref="Amazon.AutoScaling.Model.ResourceContentionException"> /// You already have a pending update to an Amazon EC2 Auto Scaling resource (for example, /// an Auto Scaling group, instance, or load balancer). /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/DeleteLifecycleHook">REST API Reference for DeleteLifecycleHook Operation</seealso> public virtual Task<DeleteLifecycleHookResponse> DeleteLifecycleHookAsync(DeleteLifecycleHookRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = DeleteLifecycleHookRequestMarshaller.Instance; options.ResponseUnmarshaller = DeleteLifecycleHookResponseUnmarshaller.Instance; return InvokeAsync<DeleteLifecycleHookResponse>(request, options, cancellationToken); } #endregion #region DeleteNotificationConfiguration internal virtual DeleteNotificationConfigurationResponse DeleteNotificationConfiguration(DeleteNotificationConfigurationRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DeleteNotificationConfigurationRequestMarshaller.Instance; options.ResponseUnmarshaller = DeleteNotificationConfigurationResponseUnmarshaller.Instance; return Invoke<DeleteNotificationConfigurationResponse>(request, options); } /// <summary> /// Deletes the specified notification. /// </summary> /// <param name="request">Container for the necessary parameters to execute the DeleteNotificationConfiguration service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the DeleteNotificationConfiguration service method, as returned by AutoScaling.</returns> /// <exception cref="Amazon.AutoScaling.Model.ResourceContentionException"> /// You already have a pending update to an Amazon EC2 Auto Scaling resource (for example, /// an Auto Scaling group, instance, or load balancer). /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/DeleteNotificationConfiguration">REST API Reference for DeleteNotificationConfiguration Operation</seealso> public virtual Task<DeleteNotificationConfigurationResponse> DeleteNotificationConfigurationAsync(DeleteNotificationConfigurationRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = DeleteNotificationConfigurationRequestMarshaller.Instance; options.ResponseUnmarshaller = DeleteNotificationConfigurationResponseUnmarshaller.Instance; return InvokeAsync<DeleteNotificationConfigurationResponse>(request, options, cancellationToken); } #endregion #region DeletePolicy internal virtual DeletePolicyResponse DeletePolicy(DeletePolicyRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DeletePolicyRequestMarshaller.Instance; options.ResponseUnmarshaller = DeletePolicyResponseUnmarshaller.Instance; return Invoke<DeletePolicyResponse>(request, options); } /// <summary> /// Deletes the specified scaling policy. /// /// /// <para> /// Deleting either a step scaling policy or a simple scaling policy deletes the underlying /// alarm action, but does not delete the alarm, even if it no longer has an associated /// action. /// </para> /// /// <para> /// For more information, see <a href="https://docs.aws.amazon.com/autoscaling/ec2/userguide/deleting-scaling-policy.html">Deleting /// a scaling policy</a> in the <i>Amazon EC2 Auto Scaling User Guide</i>. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the DeletePolicy service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the DeletePolicy service method, as returned by AutoScaling.</returns> /// <exception cref="Amazon.AutoScaling.Model.ResourceContentionException"> /// You already have a pending update to an Amazon EC2 Auto Scaling resource (for example, /// an Auto Scaling group, instance, or load balancer). /// </exception> /// <exception cref="Amazon.AutoScaling.Model.ServiceLinkedRoleFailureException"> /// The service-linked role is not yet ready for use. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/DeletePolicy">REST API Reference for DeletePolicy Operation</seealso> public virtual Task<DeletePolicyResponse> DeletePolicyAsync(DeletePolicyRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = DeletePolicyRequestMarshaller.Instance; options.ResponseUnmarshaller = DeletePolicyResponseUnmarshaller.Instance; return InvokeAsync<DeletePolicyResponse>(request, options, cancellationToken); } #endregion #region DeleteScheduledAction internal virtual DeleteScheduledActionResponse DeleteScheduledAction(DeleteScheduledActionRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DeleteScheduledActionRequestMarshaller.Instance; options.ResponseUnmarshaller = DeleteScheduledActionResponseUnmarshaller.Instance; return Invoke<DeleteScheduledActionResponse>(request, options); } /// <summary> /// Deletes the specified scheduled action. /// </summary> /// <param name="request">Container for the necessary parameters to execute the DeleteScheduledAction service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the DeleteScheduledAction service method, as returned by AutoScaling.</returns> /// <exception cref="Amazon.AutoScaling.Model.ResourceContentionException"> /// You already have a pending update to an Amazon EC2 Auto Scaling resource (for example, /// an Auto Scaling group, instance, or load balancer). /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/DeleteScheduledAction">REST API Reference for DeleteScheduledAction Operation</seealso> public virtual Task<DeleteScheduledActionResponse> DeleteScheduledActionAsync(DeleteScheduledActionRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = DeleteScheduledActionRequestMarshaller.Instance; options.ResponseUnmarshaller = DeleteScheduledActionResponseUnmarshaller.Instance; return InvokeAsync<DeleteScheduledActionResponse>(request, options, cancellationToken); } #endregion #region DeleteTags internal virtual DeleteTagsResponse DeleteTags(DeleteTagsRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DeleteTagsRequestMarshaller.Instance; options.ResponseUnmarshaller = DeleteTagsResponseUnmarshaller.Instance; return Invoke<DeleteTagsResponse>(request, options); } /// <summary> /// Deletes the specified tags. /// </summary> /// <param name="request">Container for the necessary parameters to execute the DeleteTags service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the DeleteTags service method, as returned by AutoScaling.</returns> /// <exception cref="Amazon.AutoScaling.Model.ResourceContentionException"> /// You already have a pending update to an Amazon EC2 Auto Scaling resource (for example, /// an Auto Scaling group, instance, or load balancer). /// </exception> /// <exception cref="Amazon.AutoScaling.Model.ResourceInUseException"> /// The operation can't be performed because the resource is in use. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/DeleteTags">REST API Reference for DeleteTags Operation</seealso> public virtual Task<DeleteTagsResponse> DeleteTagsAsync(DeleteTagsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = DeleteTagsRequestMarshaller.Instance; options.ResponseUnmarshaller = DeleteTagsResponseUnmarshaller.Instance; return InvokeAsync<DeleteTagsResponse>(request, options, cancellationToken); } #endregion #region DeleteWarmPool internal virtual DeleteWarmPoolResponse DeleteWarmPool(DeleteWarmPoolRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DeleteWarmPoolRequestMarshaller.Instance; options.ResponseUnmarshaller = DeleteWarmPoolResponseUnmarshaller.Instance; return Invoke<DeleteWarmPoolResponse>(request, options); } /// <summary> /// Deletes the warm pool for the specified Auto Scaling group. /// /// /// <para> /// For more information, 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> /// </summary> /// <param name="request">Container for the necessary parameters to execute the DeleteWarmPool service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the DeleteWarmPool service method, as returned by AutoScaling.</returns> /// <exception cref="Amazon.AutoScaling.Model.LimitExceededException"> /// You have already reached a limit for your Amazon EC2 Auto Scaling resources (for example, /// Auto Scaling groups, launch configurations, or lifecycle hooks). For more information, /// see <a href="https://docs.aws.amazon.com/autoscaling/ec2/APIReference/API_DescribeAccountLimits.html">DescribeAccountLimits</a> /// in the <i>Amazon EC2 Auto Scaling API Reference</i>. /// </exception> /// <exception cref="Amazon.AutoScaling.Model.ResourceContentionException"> /// You already have a pending update to an Amazon EC2 Auto Scaling resource (for example, /// an Auto Scaling group, instance, or load balancer). /// </exception> /// <exception cref="Amazon.AutoScaling.Model.ResourceInUseException"> /// The operation can't be performed because the resource is in use. /// </exception> /// <exception cref="Amazon.AutoScaling.Model.ScalingActivityInProgressException"> /// The operation can't be performed because there are scaling activities in progress. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/DeleteWarmPool">REST API Reference for DeleteWarmPool Operation</seealso> public virtual Task<DeleteWarmPoolResponse> DeleteWarmPoolAsync(DeleteWarmPoolRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = DeleteWarmPoolRequestMarshaller.Instance; options.ResponseUnmarshaller = DeleteWarmPoolResponseUnmarshaller.Instance; return InvokeAsync<DeleteWarmPoolResponse>(request, options, cancellationToken); } #endregion #region DescribeAccountLimits internal virtual DescribeAccountLimitsResponse DescribeAccountLimits() { return DescribeAccountLimits(new DescribeAccountLimitsRequest()); } internal virtual DescribeAccountLimitsResponse DescribeAccountLimits(DescribeAccountLimitsRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DescribeAccountLimitsRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribeAccountLimitsResponseUnmarshaller.Instance; return Invoke<DescribeAccountLimitsResponse>(request, options); } /// <summary> /// Describes the current Amazon EC2 Auto Scaling resource quotas for your account. /// /// /// <para> /// When you establish an Amazon Web Services account, the account has initial quotas /// on the maximum number of Auto Scaling groups and launch configurations that you can /// create in a given Region. For more information, see <a href="https://docs.aws.amazon.com/autoscaling/ec2/userguide/ec2-auto-scaling-quotas.html">Quotas /// for Amazon EC2 Auto Scaling</a> in the <i>Amazon EC2 Auto Scaling User Guide</i>. /// </para> /// </summary> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the DescribeAccountLimits service method, as returned by AutoScaling.</returns> /// <exception cref="Amazon.AutoScaling.Model.ResourceContentionException"> /// You already have a pending update to an Amazon EC2 Auto Scaling resource (for example, /// an Auto Scaling group, instance, or load balancer). /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/DescribeAccountLimits">REST API Reference for DescribeAccountLimits Operation</seealso> public virtual Task<DescribeAccountLimitsResponse> DescribeAccountLimitsAsync(System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { return DescribeAccountLimitsAsync(new DescribeAccountLimitsRequest(), cancellationToken); } /// <summary> /// Describes the current Amazon EC2 Auto Scaling resource quotas for your account. /// /// /// <para> /// When you establish an Amazon Web Services account, the account has initial quotas /// on the maximum number of Auto Scaling groups and launch configurations that you can /// create in a given Region. For more information, see <a href="https://docs.aws.amazon.com/autoscaling/ec2/userguide/ec2-auto-scaling-quotas.html">Quotas /// for Amazon EC2 Auto Scaling</a> in the <i>Amazon EC2 Auto Scaling User Guide</i>. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the DescribeAccountLimits service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the DescribeAccountLimits service method, as returned by AutoScaling.</returns> /// <exception cref="Amazon.AutoScaling.Model.ResourceContentionException"> /// You already have a pending update to an Amazon EC2 Auto Scaling resource (for example, /// an Auto Scaling group, instance, or load balancer). /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/DescribeAccountLimits">REST API Reference for DescribeAccountLimits Operation</seealso> public virtual Task<DescribeAccountLimitsResponse> DescribeAccountLimitsAsync(DescribeAccountLimitsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = DescribeAccountLimitsRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribeAccountLimitsResponseUnmarshaller.Instance; return InvokeAsync<DescribeAccountLimitsResponse>(request, options, cancellationToken); } #endregion #region DescribeAdjustmentTypes internal virtual DescribeAdjustmentTypesResponse DescribeAdjustmentTypes() { return DescribeAdjustmentTypes(new DescribeAdjustmentTypesRequest()); } internal virtual DescribeAdjustmentTypesResponse DescribeAdjustmentTypes(DescribeAdjustmentTypesRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DescribeAdjustmentTypesRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribeAdjustmentTypesResponseUnmarshaller.Instance; return Invoke<DescribeAdjustmentTypesResponse>(request, options); } /// <summary> /// Describes the available adjustment types for step scaling and simple scaling policies. /// /// /// <para> /// The following adjustment types are supported: /// </para> /// <ul> <li> /// <para> /// <code>ChangeInCapacity</code> /// </para> /// </li> <li> /// <para> /// <code>ExactCapacity</code> /// </para> /// </li> <li> /// <para> /// <code>PercentChangeInCapacity</code> /// </para> /// </li> </ul> /// </summary> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the DescribeAdjustmentTypes service method, as returned by AutoScaling.</returns> /// <exception cref="Amazon.AutoScaling.Model.ResourceContentionException"> /// You already have a pending update to an Amazon EC2 Auto Scaling resource (for example, /// an Auto Scaling group, instance, or load balancer). /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/DescribeAdjustmentTypes">REST API Reference for DescribeAdjustmentTypes Operation</seealso> public virtual Task<DescribeAdjustmentTypesResponse> DescribeAdjustmentTypesAsync(System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { return DescribeAdjustmentTypesAsync(new DescribeAdjustmentTypesRequest(), cancellationToken); } /// <summary> /// Describes the available adjustment types for step scaling and simple scaling policies. /// /// /// <para> /// The following adjustment types are supported: /// </para> /// <ul> <li> /// <para> /// <code>ChangeInCapacity</code> /// </para> /// </li> <li> /// <para> /// <code>ExactCapacity</code> /// </para> /// </li> <li> /// <para> /// <code>PercentChangeInCapacity</code> /// </para> /// </li> </ul> /// </summary> /// <param name="request">Container for the necessary parameters to execute the DescribeAdjustmentTypes service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the DescribeAdjustmentTypes service method, as returned by AutoScaling.</returns> /// <exception cref="Amazon.AutoScaling.Model.ResourceContentionException"> /// You already have a pending update to an Amazon EC2 Auto Scaling resource (for example, /// an Auto Scaling group, instance, or load balancer). /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/DescribeAdjustmentTypes">REST API Reference for DescribeAdjustmentTypes Operation</seealso> public virtual Task<DescribeAdjustmentTypesResponse> DescribeAdjustmentTypesAsync(DescribeAdjustmentTypesRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = DescribeAdjustmentTypesRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribeAdjustmentTypesResponseUnmarshaller.Instance; return InvokeAsync<DescribeAdjustmentTypesResponse>(request, options, cancellationToken); } #endregion #region DescribeAutoScalingGroups internal virtual DescribeAutoScalingGroupsResponse DescribeAutoScalingGroups() { return DescribeAutoScalingGroups(new DescribeAutoScalingGroupsRequest()); } internal virtual DescribeAutoScalingGroupsResponse DescribeAutoScalingGroups(DescribeAutoScalingGroupsRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DescribeAutoScalingGroupsRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribeAutoScalingGroupsResponseUnmarshaller.Instance; return Invoke<DescribeAutoScalingGroupsResponse>(request, options); } /// <summary> /// Gets information about the Auto Scaling groups in the account and Region. /// /// /// <para> /// If you specify Auto Scaling group names, the output includes information for only /// the specified Auto Scaling groups. If you specify filters, the output includes information /// for only those Auto Scaling groups that meet the filter criteria. If you do not specify /// group names or filters, the output includes information for all Auto Scaling groups. /// /// </para> /// /// <para> /// This operation also returns information about instances in Auto Scaling groups. To /// retrieve information about the instances in a warm pool, you must call the <a>DescribeWarmPool</a> /// API. /// </para> /// </summary> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the DescribeAutoScalingGroups service method, as returned by AutoScaling.</returns> /// <exception cref="Amazon.AutoScaling.Model.InvalidNextTokenException"> /// The <code>NextToken</code> value is not valid. /// </exception> /// <exception cref="Amazon.AutoScaling.Model.ResourceContentionException"> /// You already have a pending update to an Amazon EC2 Auto Scaling resource (for example, /// an Auto Scaling group, instance, or load balancer). /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/DescribeAutoScalingGroups">REST API Reference for DescribeAutoScalingGroups Operation</seealso> public virtual Task<DescribeAutoScalingGroupsResponse> DescribeAutoScalingGroupsAsync(System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { return DescribeAutoScalingGroupsAsync(new DescribeAutoScalingGroupsRequest(), cancellationToken); } /// <summary> /// Gets information about the Auto Scaling groups in the account and Region. /// /// /// <para> /// If you specify Auto Scaling group names, the output includes information for only /// the specified Auto Scaling groups. If you specify filters, the output includes information /// for only those Auto Scaling groups that meet the filter criteria. If you do not specify /// group names or filters, the output includes information for all Auto Scaling groups. /// /// </para> /// /// <para> /// This operation also returns information about instances in Auto Scaling groups. To /// retrieve information about the instances in a warm pool, you must call the <a>DescribeWarmPool</a> /// API. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the DescribeAutoScalingGroups service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the DescribeAutoScalingGroups service method, as returned by AutoScaling.</returns> /// <exception cref="Amazon.AutoScaling.Model.InvalidNextTokenException"> /// The <code>NextToken</code> value is not valid. /// </exception> /// <exception cref="Amazon.AutoScaling.Model.ResourceContentionException"> /// You already have a pending update to an Amazon EC2 Auto Scaling resource (for example, /// an Auto Scaling group, instance, or load balancer). /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/DescribeAutoScalingGroups">REST API Reference for DescribeAutoScalingGroups Operation</seealso> public virtual Task<DescribeAutoScalingGroupsResponse> DescribeAutoScalingGroupsAsync(DescribeAutoScalingGroupsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = DescribeAutoScalingGroupsRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribeAutoScalingGroupsResponseUnmarshaller.Instance; return InvokeAsync<DescribeAutoScalingGroupsResponse>(request, options, cancellationToken); } #endregion #region DescribeAutoScalingInstances internal virtual DescribeAutoScalingInstancesResponse DescribeAutoScalingInstances() { return DescribeAutoScalingInstances(new DescribeAutoScalingInstancesRequest()); } internal virtual DescribeAutoScalingInstancesResponse DescribeAutoScalingInstances(DescribeAutoScalingInstancesRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DescribeAutoScalingInstancesRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribeAutoScalingInstancesResponseUnmarshaller.Instance; return Invoke<DescribeAutoScalingInstancesResponse>(request, options); } /// <summary> /// Gets information about the Auto Scaling instances in the account and Region. /// </summary> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the DescribeAutoScalingInstances service method, as returned by AutoScaling.</returns> /// <exception cref="Amazon.AutoScaling.Model.InvalidNextTokenException"> /// The <code>NextToken</code> value is not valid. /// </exception> /// <exception cref="Amazon.AutoScaling.Model.ResourceContentionException"> /// You already have a pending update to an Amazon EC2 Auto Scaling resource (for example, /// an Auto Scaling group, instance, or load balancer). /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/DescribeAutoScalingInstances">REST API Reference for DescribeAutoScalingInstances Operation</seealso> public virtual Task<DescribeAutoScalingInstancesResponse> DescribeAutoScalingInstancesAsync(System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { return DescribeAutoScalingInstancesAsync(new DescribeAutoScalingInstancesRequest(), cancellationToken); } /// <summary> /// Gets information about the Auto Scaling instances in the account and Region. /// </summary> /// <param name="request">Container for the necessary parameters to execute the DescribeAutoScalingInstances service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the DescribeAutoScalingInstances service method, as returned by AutoScaling.</returns> /// <exception cref="Amazon.AutoScaling.Model.InvalidNextTokenException"> /// The <code>NextToken</code> value is not valid. /// </exception> /// <exception cref="Amazon.AutoScaling.Model.ResourceContentionException"> /// You already have a pending update to an Amazon EC2 Auto Scaling resource (for example, /// an Auto Scaling group, instance, or load balancer). /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/DescribeAutoScalingInstances">REST API Reference for DescribeAutoScalingInstances Operation</seealso> public virtual Task<DescribeAutoScalingInstancesResponse> DescribeAutoScalingInstancesAsync(DescribeAutoScalingInstancesRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = DescribeAutoScalingInstancesRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribeAutoScalingInstancesResponseUnmarshaller.Instance; return InvokeAsync<DescribeAutoScalingInstancesResponse>(request, options, cancellationToken); } #endregion #region DescribeAutoScalingNotificationTypes internal virtual DescribeAutoScalingNotificationTypesResponse DescribeAutoScalingNotificationTypes() { return DescribeAutoScalingNotificationTypes(new DescribeAutoScalingNotificationTypesRequest()); } internal virtual DescribeAutoScalingNotificationTypesResponse DescribeAutoScalingNotificationTypes(DescribeAutoScalingNotificationTypesRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DescribeAutoScalingNotificationTypesRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribeAutoScalingNotificationTypesResponseUnmarshaller.Instance; return Invoke<DescribeAutoScalingNotificationTypesResponse>(request, options); } /// <summary> /// Describes the notification types that are supported by Amazon EC2 Auto Scaling. /// </summary> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the DescribeAutoScalingNotificationTypes service method, as returned by AutoScaling.</returns> /// <exception cref="Amazon.AutoScaling.Model.ResourceContentionException"> /// You already have a pending update to an Amazon EC2 Auto Scaling resource (for example, /// an Auto Scaling group, instance, or load balancer). /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/DescribeAutoScalingNotificationTypes">REST API Reference for DescribeAutoScalingNotificationTypes Operation</seealso> public virtual Task<DescribeAutoScalingNotificationTypesResponse> DescribeAutoScalingNotificationTypesAsync(System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { return DescribeAutoScalingNotificationTypesAsync(new DescribeAutoScalingNotificationTypesRequest(), cancellationToken); } /// <summary> /// Describes the notification types that are supported by Amazon EC2 Auto Scaling. /// </summary> /// <param name="request">Container for the necessary parameters to execute the DescribeAutoScalingNotificationTypes service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the DescribeAutoScalingNotificationTypes service method, as returned by AutoScaling.</returns> /// <exception cref="Amazon.AutoScaling.Model.ResourceContentionException"> /// You already have a pending update to an Amazon EC2 Auto Scaling resource (for example, /// an Auto Scaling group, instance, or load balancer). /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/DescribeAutoScalingNotificationTypes">REST API Reference for DescribeAutoScalingNotificationTypes Operation</seealso> public virtual Task<DescribeAutoScalingNotificationTypesResponse> DescribeAutoScalingNotificationTypesAsync(DescribeAutoScalingNotificationTypesRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = DescribeAutoScalingNotificationTypesRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribeAutoScalingNotificationTypesResponseUnmarshaller.Instance; return InvokeAsync<DescribeAutoScalingNotificationTypesResponse>(request, options, cancellationToken); } #endregion #region DescribeInstanceRefreshes internal virtual DescribeInstanceRefreshesResponse DescribeInstanceRefreshes(DescribeInstanceRefreshesRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DescribeInstanceRefreshesRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribeInstanceRefreshesResponseUnmarshaller.Instance; return Invoke<DescribeInstanceRefreshesResponse>(request, options); } /// <summary> /// Gets information about the instance refreshes for the specified 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 after you make configuration changes. /// </para> /// /// <para> /// To help you determine the status of an instance refresh, Amazon EC2 Auto Scaling returns /// information about the instance refreshes you previously initiated, including their /// status, start time, end time, the percentage of the instance refresh that is complete, /// and the number of instances remaining to update before the instance refresh is complete. /// If a rollback is initiated while an instance refresh is in progress, Amazon EC2 Auto /// Scaling also returns information about the rollback of the instance refresh. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the DescribeInstanceRefreshes service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the DescribeInstanceRefreshes service method, as returned by AutoScaling.</returns> /// <exception cref="Amazon.AutoScaling.Model.InvalidNextTokenException"> /// The <code>NextToken</code> value is not valid. /// </exception> /// <exception cref="Amazon.AutoScaling.Model.ResourceContentionException"> /// You already have a pending update to an Amazon EC2 Auto Scaling resource (for example, /// an Auto Scaling group, instance, or load balancer). /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/DescribeInstanceRefreshes">REST API Reference for DescribeInstanceRefreshes Operation</seealso> public virtual Task<DescribeInstanceRefreshesResponse> DescribeInstanceRefreshesAsync(DescribeInstanceRefreshesRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = DescribeInstanceRefreshesRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribeInstanceRefreshesResponseUnmarshaller.Instance; return InvokeAsync<DescribeInstanceRefreshesResponse>(request, options, cancellationToken); } #endregion #region DescribeLaunchConfigurations internal virtual DescribeLaunchConfigurationsResponse DescribeLaunchConfigurations() { return DescribeLaunchConfigurations(new DescribeLaunchConfigurationsRequest()); } internal virtual DescribeLaunchConfigurationsResponse DescribeLaunchConfigurations(DescribeLaunchConfigurationsRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DescribeLaunchConfigurationsRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribeLaunchConfigurationsResponseUnmarshaller.Instance; return Invoke<DescribeLaunchConfigurationsResponse>(request, options); } /// <summary> /// Gets information about the launch configurations in the account and Region. /// </summary> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the DescribeLaunchConfigurations service method, as returned by AutoScaling.</returns> /// <exception cref="Amazon.AutoScaling.Model.InvalidNextTokenException"> /// The <code>NextToken</code> value is not valid. /// </exception> /// <exception cref="Amazon.AutoScaling.Model.ResourceContentionException"> /// You already have a pending update to an Amazon EC2 Auto Scaling resource (for example, /// an Auto Scaling group, instance, or load balancer). /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/DescribeLaunchConfigurations">REST API Reference for DescribeLaunchConfigurations Operation</seealso> public virtual Task<DescribeLaunchConfigurationsResponse> DescribeLaunchConfigurationsAsync(System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { return DescribeLaunchConfigurationsAsync(new DescribeLaunchConfigurationsRequest(), cancellationToken); } /// <summary> /// Gets information about the launch configurations in the account and Region. /// </summary> /// <param name="request">Container for the necessary parameters to execute the DescribeLaunchConfigurations service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the DescribeLaunchConfigurations service method, as returned by AutoScaling.</returns> /// <exception cref="Amazon.AutoScaling.Model.InvalidNextTokenException"> /// The <code>NextToken</code> value is not valid. /// </exception> /// <exception cref="Amazon.AutoScaling.Model.ResourceContentionException"> /// You already have a pending update to an Amazon EC2 Auto Scaling resource (for example, /// an Auto Scaling group, instance, or load balancer). /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/DescribeLaunchConfigurations">REST API Reference for DescribeLaunchConfigurations Operation</seealso> public virtual Task<DescribeLaunchConfigurationsResponse> DescribeLaunchConfigurationsAsync(DescribeLaunchConfigurationsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = DescribeLaunchConfigurationsRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribeLaunchConfigurationsResponseUnmarshaller.Instance; return InvokeAsync<DescribeLaunchConfigurationsResponse>(request, options, cancellationToken); } #endregion #region DescribeLifecycleHooks internal virtual DescribeLifecycleHooksResponse DescribeLifecycleHooks(DescribeLifecycleHooksRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DescribeLifecycleHooksRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribeLifecycleHooksResponseUnmarshaller.Instance; return Invoke<DescribeLifecycleHooksResponse>(request, options); } /// <summary> /// Gets information about the lifecycle hooks for the specified Auto Scaling group. /// </summary> /// <param name="request">Container for the necessary parameters to execute the DescribeLifecycleHooks service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the DescribeLifecycleHooks service method, as returned by AutoScaling.</returns> /// <exception cref="Amazon.AutoScaling.Model.ResourceContentionException"> /// You already have a pending update to an Amazon EC2 Auto Scaling resource (for example, /// an Auto Scaling group, instance, or load balancer). /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/DescribeLifecycleHooks">REST API Reference for DescribeLifecycleHooks Operation</seealso> public virtual Task<DescribeLifecycleHooksResponse> DescribeLifecycleHooksAsync(DescribeLifecycleHooksRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = DescribeLifecycleHooksRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribeLifecycleHooksResponseUnmarshaller.Instance; return InvokeAsync<DescribeLifecycleHooksResponse>(request, options, cancellationToken); } #endregion #region DescribeLifecycleHookTypes internal virtual DescribeLifecycleHookTypesResponse DescribeLifecycleHookTypes(DescribeLifecycleHookTypesRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DescribeLifecycleHookTypesRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribeLifecycleHookTypesResponseUnmarshaller.Instance; return Invoke<DescribeLifecycleHookTypesResponse>(request, options); } /// <summary> /// Describes the available types of lifecycle hooks. /// /// /// <para> /// The following hook types are supported: /// </para> /// <ul> <li> /// <para> /// <code>autoscaling:EC2_INSTANCE_LAUNCHING</code> /// </para> /// </li> <li> /// <para> /// <code>autoscaling:EC2_INSTANCE_TERMINATING</code> /// </para> /// </li> </ul> /// </summary> /// <param name="request">Container for the necessary parameters to execute the DescribeLifecycleHookTypes service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the DescribeLifecycleHookTypes service method, as returned by AutoScaling.</returns> /// <exception cref="Amazon.AutoScaling.Model.ResourceContentionException"> /// You already have a pending update to an Amazon EC2 Auto Scaling resource (for example, /// an Auto Scaling group, instance, or load balancer). /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/DescribeLifecycleHookTypes">REST API Reference for DescribeLifecycleHookTypes Operation</seealso> public virtual Task<DescribeLifecycleHookTypesResponse> DescribeLifecycleHookTypesAsync(DescribeLifecycleHookTypesRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = DescribeLifecycleHookTypesRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribeLifecycleHookTypesResponseUnmarshaller.Instance; return InvokeAsync<DescribeLifecycleHookTypesResponse>(request, options, cancellationToken); } #endregion #region DescribeLoadBalancers internal virtual DescribeLoadBalancersResponse DescribeLoadBalancers(DescribeLoadBalancersRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DescribeLoadBalancersRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribeLoadBalancersResponseUnmarshaller.Instance; return Invoke<DescribeLoadBalancersResponse>(request, options); } /// <summary> /// <note> /// <para> /// This API operation is superseded by <a>DescribeTrafficSources</a>, which can describe /// multiple traffic sources types. We recommend using <code>DescribeTrafficSources</code> /// to simplify how you manage traffic sources. However, we continue to support <code>DescribeLoadBalancers</code>. /// You can use both the original <code>DescribeLoadBalancers</code> API operation and /// <code>DescribeTrafficSources</code> on the same Auto Scaling group. /// </para> /// </note> /// <para> /// Gets information about the load balancers for the specified Auto Scaling group. /// </para> /// /// <para> /// This operation describes only Classic Load Balancers. If you have Application Load /// Balancers, Network Load Balancers, or Gateway Load Balancers, use the <a>DescribeLoadBalancerTargetGroups</a> /// API instead. /// </para> /// /// <para> /// To determine the attachment status of the load balancer, use the <code>State</code> /// element in the response. When you attach a load balancer to an Auto Scaling group, /// the initial <code>State</code> value is <code>Adding</code>. The state transitions /// to <code>Added</code> after all Auto Scaling instances are registered with the load /// balancer. If Elastic Load Balancing health checks are enabled for the Auto Scaling /// group, the state transitions to <code>InService</code> after at least one Auto Scaling /// instance passes the health check. When the load balancer is in the <code>InService</code> /// state, Amazon EC2 Auto Scaling can terminate and replace any instances that are reported /// as unhealthy. If no registered instances pass the health checks, the load balancer /// doesn't enter the <code>InService</code> state. /// </para> /// /// <para> /// Load balancers also have an <code>InService</code> state if you attach them in the /// <a>CreateAutoScalingGroup</a> API call. If your load balancer state is <code>InService</code>, /// but it is not working properly, check the scaling activities by calling <a>DescribeScalingActivities</a> /// and take any corrective actions necessary. /// </para> /// /// <para> /// For help with failed health checks, see <a href="https://docs.aws.amazon.com/autoscaling/ec2/userguide/ts-as-healthchecks.html">Troubleshooting /// Amazon EC2 Auto Scaling: Health checks</a> in the <i>Amazon EC2 Auto Scaling User /// Guide</i>. For more information, see <a href="https://docs.aws.amazon.com/autoscaling/ec2/userguide/autoscaling-load-balancer.html">Use /// Elastic Load Balancing to distribute traffic across the instances in your Auto Scaling /// group</a> in the <i>Amazon EC2 Auto Scaling User Guide</i>. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the DescribeLoadBalancers service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the DescribeLoadBalancers service method, as returned by AutoScaling.</returns> /// <exception cref="Amazon.AutoScaling.Model.InvalidNextTokenException"> /// The <code>NextToken</code> value is not valid. /// </exception> /// <exception cref="Amazon.AutoScaling.Model.ResourceContentionException"> /// You already have a pending update to an Amazon EC2 Auto Scaling resource (for example, /// an Auto Scaling group, instance, or load balancer). /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/DescribeLoadBalancers">REST API Reference for DescribeLoadBalancers Operation</seealso> public virtual Task<DescribeLoadBalancersResponse> DescribeLoadBalancersAsync(DescribeLoadBalancersRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = DescribeLoadBalancersRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribeLoadBalancersResponseUnmarshaller.Instance; return InvokeAsync<DescribeLoadBalancersResponse>(request, options, cancellationToken); } #endregion #region DescribeLoadBalancerTargetGroups internal virtual DescribeLoadBalancerTargetGroupsResponse DescribeLoadBalancerTargetGroups(DescribeLoadBalancerTargetGroupsRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DescribeLoadBalancerTargetGroupsRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribeLoadBalancerTargetGroupsResponseUnmarshaller.Instance; return Invoke<DescribeLoadBalancerTargetGroupsResponse>(request, options); } /// <summary> /// <note> /// <para> /// This API operation is superseded by <a>DescribeTrafficSources</a>, which can describe /// multiple traffic sources types. We recommend using <code>DetachTrafficSources</code> /// to simplify how you manage traffic sources. However, we continue to support <code>DescribeLoadBalancerTargetGroups</code>. /// You can use both the original <code>DescribeLoadBalancerTargetGroups</code> API operation /// and <code>DescribeTrafficSources</code> on the same Auto Scaling group. /// </para> /// </note> /// <para> /// Gets information about the Elastic Load Balancing target groups for the specified /// Auto Scaling group. /// </para> /// /// <para> /// To determine the attachment status of the target group, use the <code>State</code> /// element in the response. When you attach a target group to an Auto Scaling group, /// the initial <code>State</code> value is <code>Adding</code>. The state transitions /// to <code>Added</code> after all Auto Scaling instances are registered with the target /// group. If Elastic Load Balancing health checks are enabled for the Auto Scaling group, /// the state transitions to <code>InService</code> after at least one Auto Scaling instance /// passes the health check. When the target group is in the <code>InService</code> state, /// Amazon EC2 Auto Scaling can terminate and replace any instances that are reported /// as unhealthy. If no registered instances pass the health checks, the target group /// doesn't enter the <code>InService</code> state. /// </para> /// /// <para> /// Target groups also have an <code>InService</code> state if you attach them in the /// <a>CreateAutoScalingGroup</a> API call. If your target group state is <code>InService</code>, /// but it is not working properly, check the scaling activities by calling <a>DescribeScalingActivities</a> /// and take any corrective actions necessary. /// </para> /// /// <para> /// For help with failed health checks, see <a href="https://docs.aws.amazon.com/autoscaling/ec2/userguide/ts-as-healthchecks.html">Troubleshooting /// Amazon EC2 Auto Scaling: Health checks</a> in the <i>Amazon EC2 Auto Scaling User /// Guide</i>. For more information, see <a href="https://docs.aws.amazon.com/autoscaling/ec2/userguide/autoscaling-load-balancer.html">Use /// Elastic Load Balancing to distribute traffic across the instances in your Auto Scaling /// group</a> in the <i>Amazon EC2 Auto Scaling User Guide</i>. /// </para> /// <note> /// <para> /// You can use this operation to describe target groups that were attached by using <a>AttachLoadBalancerTargetGroups</a>, /// but not for target groups that were attached by using <a>AttachTrafficSources</a>. /// </para> /// </note> /// </summary> /// <param name="request">Container for the necessary parameters to execute the DescribeLoadBalancerTargetGroups service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the DescribeLoadBalancerTargetGroups service method, as returned by AutoScaling.</returns> /// <exception cref="Amazon.AutoScaling.Model.InvalidNextTokenException"> /// The <code>NextToken</code> value is not valid. /// </exception> /// <exception cref="Amazon.AutoScaling.Model.ResourceContentionException"> /// You already have a pending update to an Amazon EC2 Auto Scaling resource (for example, /// an Auto Scaling group, instance, or load balancer). /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/DescribeLoadBalancerTargetGroups">REST API Reference for DescribeLoadBalancerTargetGroups Operation</seealso> public virtual Task<DescribeLoadBalancerTargetGroupsResponse> DescribeLoadBalancerTargetGroupsAsync(DescribeLoadBalancerTargetGroupsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = DescribeLoadBalancerTargetGroupsRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribeLoadBalancerTargetGroupsResponseUnmarshaller.Instance; return InvokeAsync<DescribeLoadBalancerTargetGroupsResponse>(request, options, cancellationToken); } #endregion #region DescribeMetricCollectionTypes internal virtual DescribeMetricCollectionTypesResponse DescribeMetricCollectionTypes() { return DescribeMetricCollectionTypes(new DescribeMetricCollectionTypesRequest()); } internal virtual DescribeMetricCollectionTypesResponse DescribeMetricCollectionTypes(DescribeMetricCollectionTypesRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DescribeMetricCollectionTypesRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribeMetricCollectionTypesResponseUnmarshaller.Instance; return Invoke<DescribeMetricCollectionTypesResponse>(request, options); } /// <summary> /// Describes the available CloudWatch metrics for Amazon EC2 Auto Scaling. /// </summary> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the DescribeMetricCollectionTypes service method, as returned by AutoScaling.</returns> /// <exception cref="Amazon.AutoScaling.Model.ResourceContentionException"> /// You already have a pending update to an Amazon EC2 Auto Scaling resource (for example, /// an Auto Scaling group, instance, or load balancer). /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/DescribeMetricCollectionTypes">REST API Reference for DescribeMetricCollectionTypes Operation</seealso> public virtual Task<DescribeMetricCollectionTypesResponse> DescribeMetricCollectionTypesAsync(System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { return DescribeMetricCollectionTypesAsync(new DescribeMetricCollectionTypesRequest(), cancellationToken); } /// <summary> /// Describes the available CloudWatch metrics for Amazon EC2 Auto Scaling. /// </summary> /// <param name="request">Container for the necessary parameters to execute the DescribeMetricCollectionTypes service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the DescribeMetricCollectionTypes service method, as returned by AutoScaling.</returns> /// <exception cref="Amazon.AutoScaling.Model.ResourceContentionException"> /// You already have a pending update to an Amazon EC2 Auto Scaling resource (for example, /// an Auto Scaling group, instance, or load balancer). /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/DescribeMetricCollectionTypes">REST API Reference for DescribeMetricCollectionTypes Operation</seealso> public virtual Task<DescribeMetricCollectionTypesResponse> DescribeMetricCollectionTypesAsync(DescribeMetricCollectionTypesRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = DescribeMetricCollectionTypesRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribeMetricCollectionTypesResponseUnmarshaller.Instance; return InvokeAsync<DescribeMetricCollectionTypesResponse>(request, options, cancellationToken); } #endregion #region DescribeNotificationConfigurations internal virtual DescribeNotificationConfigurationsResponse DescribeNotificationConfigurations() { return DescribeNotificationConfigurations(new DescribeNotificationConfigurationsRequest()); } internal virtual DescribeNotificationConfigurationsResponse DescribeNotificationConfigurations(DescribeNotificationConfigurationsRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DescribeNotificationConfigurationsRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribeNotificationConfigurationsResponseUnmarshaller.Instance; return Invoke<DescribeNotificationConfigurationsResponse>(request, options); } /// <summary> /// Gets information about the Amazon SNS notifications that are configured for one or /// more Auto Scaling groups. /// </summary> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the DescribeNotificationConfigurations service method, as returned by AutoScaling.</returns> /// <exception cref="Amazon.AutoScaling.Model.InvalidNextTokenException"> /// The <code>NextToken</code> value is not valid. /// </exception> /// <exception cref="Amazon.AutoScaling.Model.ResourceContentionException"> /// You already have a pending update to an Amazon EC2 Auto Scaling resource (for example, /// an Auto Scaling group, instance, or load balancer). /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/DescribeNotificationConfigurations">REST API Reference for DescribeNotificationConfigurations Operation</seealso> public virtual Task<DescribeNotificationConfigurationsResponse> DescribeNotificationConfigurationsAsync(System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { return DescribeNotificationConfigurationsAsync(new DescribeNotificationConfigurationsRequest(), cancellationToken); } /// <summary> /// Gets information about the Amazon SNS notifications that are configured for one or /// more Auto Scaling groups. /// </summary> /// <param name="request">Container for the necessary parameters to execute the DescribeNotificationConfigurations service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the DescribeNotificationConfigurations service method, as returned by AutoScaling.</returns> /// <exception cref="Amazon.AutoScaling.Model.InvalidNextTokenException"> /// The <code>NextToken</code> value is not valid. /// </exception> /// <exception cref="Amazon.AutoScaling.Model.ResourceContentionException"> /// You already have a pending update to an Amazon EC2 Auto Scaling resource (for example, /// an Auto Scaling group, instance, or load balancer). /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/DescribeNotificationConfigurations">REST API Reference for DescribeNotificationConfigurations Operation</seealso> public virtual Task<DescribeNotificationConfigurationsResponse> DescribeNotificationConfigurationsAsync(DescribeNotificationConfigurationsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = DescribeNotificationConfigurationsRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribeNotificationConfigurationsResponseUnmarshaller.Instance; return InvokeAsync<DescribeNotificationConfigurationsResponse>(request, options, cancellationToken); } #endregion #region DescribePolicies internal virtual DescribePoliciesResponse DescribePolicies() { return DescribePolicies(new DescribePoliciesRequest()); } internal virtual DescribePoliciesResponse DescribePolicies(DescribePoliciesRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DescribePoliciesRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribePoliciesResponseUnmarshaller.Instance; return Invoke<DescribePoliciesResponse>(request, options); } /// <summary> /// Gets information about the scaling policies in the account and Region. /// </summary> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the DescribePolicies service method, as returned by AutoScaling.</returns> /// <exception cref="Amazon.AutoScaling.Model.InvalidNextTokenException"> /// The <code>NextToken</code> value is not valid. /// </exception> /// <exception cref="Amazon.AutoScaling.Model.ResourceContentionException"> /// You already have a pending update to an Amazon EC2 Auto Scaling resource (for example, /// an Auto Scaling group, instance, or load balancer). /// </exception> /// <exception cref="Amazon.AutoScaling.Model.ServiceLinkedRoleFailureException"> /// The service-linked role is not yet ready for use. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/DescribePolicies">REST API Reference for DescribePolicies Operation</seealso> public virtual Task<DescribePoliciesResponse> DescribePoliciesAsync(System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { return DescribePoliciesAsync(new DescribePoliciesRequest(), cancellationToken); } /// <summary> /// Gets information about the scaling policies in the account and Region. /// </summary> /// <param name="request">Container for the necessary parameters to execute the DescribePolicies service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the DescribePolicies service method, as returned by AutoScaling.</returns> /// <exception cref="Amazon.AutoScaling.Model.InvalidNextTokenException"> /// The <code>NextToken</code> value is not valid. /// </exception> /// <exception cref="Amazon.AutoScaling.Model.ResourceContentionException"> /// You already have a pending update to an Amazon EC2 Auto Scaling resource (for example, /// an Auto Scaling group, instance, or load balancer). /// </exception> /// <exception cref="Amazon.AutoScaling.Model.ServiceLinkedRoleFailureException"> /// The service-linked role is not yet ready for use. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/DescribePolicies">REST API Reference for DescribePolicies Operation</seealso> public virtual Task<DescribePoliciesResponse> DescribePoliciesAsync(DescribePoliciesRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = DescribePoliciesRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribePoliciesResponseUnmarshaller.Instance; return InvokeAsync<DescribePoliciesResponse>(request, options, cancellationToken); } #endregion #region DescribeScalingActivities internal virtual DescribeScalingActivitiesResponse DescribeScalingActivities() { return DescribeScalingActivities(new DescribeScalingActivitiesRequest()); } internal virtual DescribeScalingActivitiesResponse DescribeScalingActivities(DescribeScalingActivitiesRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DescribeScalingActivitiesRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribeScalingActivitiesResponseUnmarshaller.Instance; return Invoke<DescribeScalingActivitiesResponse>(request, options); } /// <summary> /// Gets information about the scaling activities in the account and Region. /// /// /// <para> /// When scaling events occur, you see a record of the scaling activity in the scaling /// activities. For more information, see <a href="https://docs.aws.amazon.com/autoscaling/ec2/userguide/as-verify-scaling-activity.html">Verifying /// a scaling activity for an Auto Scaling group</a> in the <i>Amazon EC2 Auto Scaling /// User Guide</i>. /// </para> /// /// <para> /// If the scaling event succeeds, the value of the <code>StatusCode</code> element in /// the response is <code>Successful</code>. If an attempt to launch instances failed, /// the <code>StatusCode</code> value is <code>Failed</code> or <code>Cancelled</code> /// and the <code>StatusMessage</code> element in the response indicates the cause of /// the failure. For help interpreting the <code>StatusMessage</code>, see <a href="https://docs.aws.amazon.com/autoscaling/ec2/userguide/CHAP_Troubleshooting.html">Troubleshooting /// Amazon EC2 Auto Scaling</a> in the <i>Amazon EC2 Auto Scaling User Guide</i>. /// </para> /// </summary> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the DescribeScalingActivities service method, as returned by AutoScaling.</returns> /// <exception cref="Amazon.AutoScaling.Model.InvalidNextTokenException"> /// The <code>NextToken</code> value is not valid. /// </exception> /// <exception cref="Amazon.AutoScaling.Model.ResourceContentionException"> /// You already have a pending update to an Amazon EC2 Auto Scaling resource (for example, /// an Auto Scaling group, instance, or load balancer). /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/DescribeScalingActivities">REST API Reference for DescribeScalingActivities Operation</seealso> public virtual Task<DescribeScalingActivitiesResponse> DescribeScalingActivitiesAsync(System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { return DescribeScalingActivitiesAsync(new DescribeScalingActivitiesRequest(), cancellationToken); } /// <summary> /// Gets information about the scaling activities in the account and Region. /// /// /// <para> /// When scaling events occur, you see a record of the scaling activity in the scaling /// activities. For more information, see <a href="https://docs.aws.amazon.com/autoscaling/ec2/userguide/as-verify-scaling-activity.html">Verifying /// a scaling activity for an Auto Scaling group</a> in the <i>Amazon EC2 Auto Scaling /// User Guide</i>. /// </para> /// /// <para> /// If the scaling event succeeds, the value of the <code>StatusCode</code> element in /// the response is <code>Successful</code>. If an attempt to launch instances failed, /// the <code>StatusCode</code> value is <code>Failed</code> or <code>Cancelled</code> /// and the <code>StatusMessage</code> element in the response indicates the cause of /// the failure. For help interpreting the <code>StatusMessage</code>, see <a href="https://docs.aws.amazon.com/autoscaling/ec2/userguide/CHAP_Troubleshooting.html">Troubleshooting /// Amazon EC2 Auto Scaling</a> in the <i>Amazon EC2 Auto Scaling User Guide</i>. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the DescribeScalingActivities service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the DescribeScalingActivities service method, as returned by AutoScaling.</returns> /// <exception cref="Amazon.AutoScaling.Model.InvalidNextTokenException"> /// The <code>NextToken</code> value is not valid. /// </exception> /// <exception cref="Amazon.AutoScaling.Model.ResourceContentionException"> /// You already have a pending update to an Amazon EC2 Auto Scaling resource (for example, /// an Auto Scaling group, instance, or load balancer). /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/DescribeScalingActivities">REST API Reference for DescribeScalingActivities Operation</seealso> public virtual Task<DescribeScalingActivitiesResponse> DescribeScalingActivitiesAsync(DescribeScalingActivitiesRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = DescribeScalingActivitiesRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribeScalingActivitiesResponseUnmarshaller.Instance; return InvokeAsync<DescribeScalingActivitiesResponse>(request, options, cancellationToken); } #endregion #region DescribeScalingProcessTypes internal virtual DescribeScalingProcessTypesResponse DescribeScalingProcessTypes() { return DescribeScalingProcessTypes(new DescribeScalingProcessTypesRequest()); } internal virtual DescribeScalingProcessTypesResponse DescribeScalingProcessTypes(DescribeScalingProcessTypesRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DescribeScalingProcessTypesRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribeScalingProcessTypesResponseUnmarshaller.Instance; return Invoke<DescribeScalingProcessTypesResponse>(request, options); } /// <summary> /// Describes the scaling process types for use with the <a>ResumeProcesses</a> and <a>SuspendProcesses</a> /// APIs. /// </summary> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the DescribeScalingProcessTypes service method, as returned by AutoScaling.</returns> /// <exception cref="Amazon.AutoScaling.Model.ResourceContentionException"> /// You already have a pending update to an Amazon EC2 Auto Scaling resource (for example, /// an Auto Scaling group, instance, or load balancer). /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/DescribeScalingProcessTypes">REST API Reference for DescribeScalingProcessTypes Operation</seealso> public virtual Task<DescribeScalingProcessTypesResponse> DescribeScalingProcessTypesAsync(System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { return DescribeScalingProcessTypesAsync(new DescribeScalingProcessTypesRequest(), cancellationToken); } /// <summary> /// Describes the scaling process types for use with the <a>ResumeProcesses</a> and <a>SuspendProcesses</a> /// APIs. /// </summary> /// <param name="request">Container for the necessary parameters to execute the DescribeScalingProcessTypes service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the DescribeScalingProcessTypes service method, as returned by AutoScaling.</returns> /// <exception cref="Amazon.AutoScaling.Model.ResourceContentionException"> /// You already have a pending update to an Amazon EC2 Auto Scaling resource (for example, /// an Auto Scaling group, instance, or load balancer). /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/DescribeScalingProcessTypes">REST API Reference for DescribeScalingProcessTypes Operation</seealso> public virtual Task<DescribeScalingProcessTypesResponse> DescribeScalingProcessTypesAsync(DescribeScalingProcessTypesRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = DescribeScalingProcessTypesRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribeScalingProcessTypesResponseUnmarshaller.Instance; return InvokeAsync<DescribeScalingProcessTypesResponse>(request, options, cancellationToken); } #endregion #region DescribeScheduledActions internal virtual DescribeScheduledActionsResponse DescribeScheduledActions() { return DescribeScheduledActions(new DescribeScheduledActionsRequest()); } internal virtual DescribeScheduledActionsResponse DescribeScheduledActions(DescribeScheduledActionsRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DescribeScheduledActionsRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribeScheduledActionsResponseUnmarshaller.Instance; return Invoke<DescribeScheduledActionsResponse>(request, options); } /// <summary> /// Gets information about the scheduled actions that haven't run or that have not reached /// their end time. /// /// /// <para> /// To describe the scaling activities for scheduled actions that have already run, call /// the <a>DescribeScalingActivities</a> API. /// </para> /// </summary> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the DescribeScheduledActions service method, as returned by AutoScaling.</returns> /// <exception cref="Amazon.AutoScaling.Model.InvalidNextTokenException"> /// The <code>NextToken</code> value is not valid. /// </exception> /// <exception cref="Amazon.AutoScaling.Model.ResourceContentionException"> /// You already have a pending update to an Amazon EC2 Auto Scaling resource (for example, /// an Auto Scaling group, instance, or load balancer). /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/DescribeScheduledActions">REST API Reference for DescribeScheduledActions Operation</seealso> public virtual Task<DescribeScheduledActionsResponse> DescribeScheduledActionsAsync(System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { return DescribeScheduledActionsAsync(new DescribeScheduledActionsRequest(), cancellationToken); } /// <summary> /// Gets information about the scheduled actions that haven't run or that have not reached /// their end time. /// /// /// <para> /// To describe the scaling activities for scheduled actions that have already run, call /// the <a>DescribeScalingActivities</a> API. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the DescribeScheduledActions service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the DescribeScheduledActions service method, as returned by AutoScaling.</returns> /// <exception cref="Amazon.AutoScaling.Model.InvalidNextTokenException"> /// The <code>NextToken</code> value is not valid. /// </exception> /// <exception cref="Amazon.AutoScaling.Model.ResourceContentionException"> /// You already have a pending update to an Amazon EC2 Auto Scaling resource (for example, /// an Auto Scaling group, instance, or load balancer). /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/DescribeScheduledActions">REST API Reference for DescribeScheduledActions Operation</seealso> public virtual Task<DescribeScheduledActionsResponse> DescribeScheduledActionsAsync(DescribeScheduledActionsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = DescribeScheduledActionsRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribeScheduledActionsResponseUnmarshaller.Instance; return InvokeAsync<DescribeScheduledActionsResponse>(request, options, cancellationToken); } #endregion #region DescribeTags internal virtual DescribeTagsResponse DescribeTags() { return DescribeTags(new DescribeTagsRequest()); } internal virtual DescribeTagsResponse DescribeTags(DescribeTagsRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DescribeTagsRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribeTagsResponseUnmarshaller.Instance; return Invoke<DescribeTagsResponse>(request, options); } /// <summary> /// Describes the specified tags. /// /// /// <para> /// You can use filters to limit the results. For example, you can query for the tags /// for a specific Auto Scaling group. You can specify multiple values for a filter. A /// tag must match at least one of the specified values for it to be included in the results. /// </para> /// /// <para> /// You can also specify multiple filters. The result includes information for a particular /// tag only if it matches all the filters. If there's no match, no special message is /// returned. /// </para> /// /// <para> /// For more information, see <a href="https://docs.aws.amazon.com/autoscaling/ec2/userguide/ec2-auto-scaling-tagging.html">Tag /// Auto Scaling groups and instances</a> in the <i>Amazon EC2 Auto Scaling User Guide</i>. /// </para> /// </summary> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the DescribeTags service method, as returned by AutoScaling.</returns> /// <exception cref="Amazon.AutoScaling.Model.InvalidNextTokenException"> /// The <code>NextToken</code> value is not valid. /// </exception> /// <exception cref="Amazon.AutoScaling.Model.ResourceContentionException"> /// You already have a pending update to an Amazon EC2 Auto Scaling resource (for example, /// an Auto Scaling group, instance, or load balancer). /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/DescribeTags">REST API Reference for DescribeTags Operation</seealso> public virtual Task<DescribeTagsResponse> DescribeTagsAsync(System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { return DescribeTagsAsync(new DescribeTagsRequest(), cancellationToken); } /// <summary> /// Describes the specified tags. /// /// /// <para> /// You can use filters to limit the results. For example, you can query for the tags /// for a specific Auto Scaling group. You can specify multiple values for a filter. A /// tag must match at least one of the specified values for it to be included in the results. /// </para> /// /// <para> /// You can also specify multiple filters. The result includes information for a particular /// tag only if it matches all the filters. If there's no match, no special message is /// returned. /// </para> /// /// <para> /// For more information, see <a href="https://docs.aws.amazon.com/autoscaling/ec2/userguide/ec2-auto-scaling-tagging.html">Tag /// Auto Scaling groups and instances</a> in the <i>Amazon EC2 Auto Scaling User Guide</i>. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the DescribeTags service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the DescribeTags service method, as returned by AutoScaling.</returns> /// <exception cref="Amazon.AutoScaling.Model.InvalidNextTokenException"> /// The <code>NextToken</code> value is not valid. /// </exception> /// <exception cref="Amazon.AutoScaling.Model.ResourceContentionException"> /// You already have a pending update to an Amazon EC2 Auto Scaling resource (for example, /// an Auto Scaling group, instance, or load balancer). /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/DescribeTags">REST API Reference for DescribeTags Operation</seealso> public virtual Task<DescribeTagsResponse> DescribeTagsAsync(DescribeTagsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = DescribeTagsRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribeTagsResponseUnmarshaller.Instance; return InvokeAsync<DescribeTagsResponse>(request, options, cancellationToken); } #endregion #region DescribeTerminationPolicyTypes internal virtual DescribeTerminationPolicyTypesResponse DescribeTerminationPolicyTypes() { return DescribeTerminationPolicyTypes(new DescribeTerminationPolicyTypesRequest()); } internal virtual DescribeTerminationPolicyTypesResponse DescribeTerminationPolicyTypes(DescribeTerminationPolicyTypesRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DescribeTerminationPolicyTypesRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribeTerminationPolicyTypesResponseUnmarshaller.Instance; return Invoke<DescribeTerminationPolicyTypesResponse>(request, options); } /// <summary> /// Describes the termination policies supported by Amazon EC2 Auto Scaling. /// /// /// <para> /// 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> /// </summary> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the DescribeTerminationPolicyTypes service method, as returned by AutoScaling.</returns> /// <exception cref="Amazon.AutoScaling.Model.ResourceContentionException"> /// You already have a pending update to an Amazon EC2 Auto Scaling resource (for example, /// an Auto Scaling group, instance, or load balancer). /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/DescribeTerminationPolicyTypes">REST API Reference for DescribeTerminationPolicyTypes Operation</seealso> public virtual Task<DescribeTerminationPolicyTypesResponse> DescribeTerminationPolicyTypesAsync(System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { return DescribeTerminationPolicyTypesAsync(new DescribeTerminationPolicyTypesRequest(), cancellationToken); } /// <summary> /// Describes the termination policies supported by Amazon EC2 Auto Scaling. /// /// /// <para> /// 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> /// </summary> /// <param name="request">Container for the necessary parameters to execute the DescribeTerminationPolicyTypes service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the DescribeTerminationPolicyTypes service method, as returned by AutoScaling.</returns> /// <exception cref="Amazon.AutoScaling.Model.ResourceContentionException"> /// You already have a pending update to an Amazon EC2 Auto Scaling resource (for example, /// an Auto Scaling group, instance, or load balancer). /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/DescribeTerminationPolicyTypes">REST API Reference for DescribeTerminationPolicyTypes Operation</seealso> public virtual Task<DescribeTerminationPolicyTypesResponse> DescribeTerminationPolicyTypesAsync(DescribeTerminationPolicyTypesRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = DescribeTerminationPolicyTypesRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribeTerminationPolicyTypesResponseUnmarshaller.Instance; return InvokeAsync<DescribeTerminationPolicyTypesResponse>(request, options, cancellationToken); } #endregion #region DescribeTrafficSources internal virtual DescribeTrafficSourcesResponse DescribeTrafficSources(DescribeTrafficSourcesRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DescribeTrafficSourcesRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribeTrafficSourcesResponseUnmarshaller.Instance; return Invoke<DescribeTrafficSourcesResponse>(request, options); } /// <summary> /// Gets information about the traffic sources for the specified Auto Scaling group. /// /// /// <para> /// You can optionally provide a traffic source type. If you provide a traffic source /// type, then the results only include that traffic source type. /// </para> /// /// <para> /// If you do not provide a traffic source type, then the results include all the traffic /// sources for the specified Auto Scaling group. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the DescribeTrafficSources service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the DescribeTrafficSources service method, as returned by AutoScaling.</returns> /// <exception cref="Amazon.AutoScaling.Model.InvalidNextTokenException"> /// The <code>NextToken</code> value is not valid. /// </exception> /// <exception cref="Amazon.AutoScaling.Model.ResourceContentionException"> /// You already have a pending update to an Amazon EC2 Auto Scaling resource (for example, /// an Auto Scaling group, instance, or load balancer). /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/DescribeTrafficSources">REST API Reference for DescribeTrafficSources Operation</seealso> public virtual Task<DescribeTrafficSourcesResponse> DescribeTrafficSourcesAsync(DescribeTrafficSourcesRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = DescribeTrafficSourcesRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribeTrafficSourcesResponseUnmarshaller.Instance; return InvokeAsync<DescribeTrafficSourcesResponse>(request, options, cancellationToken); } #endregion #region DescribeWarmPool internal virtual DescribeWarmPoolResponse DescribeWarmPool(DescribeWarmPoolRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DescribeWarmPoolRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribeWarmPoolResponseUnmarshaller.Instance; return Invoke<DescribeWarmPoolResponse>(request, options); } /// <summary> /// Gets information about a warm pool and its instances. /// /// /// <para> /// For more information, 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> /// </summary> /// <param name="request">Container for the necessary parameters to execute the DescribeWarmPool service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the DescribeWarmPool service method, as returned by AutoScaling.</returns> /// <exception cref="Amazon.AutoScaling.Model.InvalidNextTokenException"> /// The <code>NextToken</code> value is not valid. /// </exception> /// <exception cref="Amazon.AutoScaling.Model.LimitExceededException"> /// You have already reached a limit for your Amazon EC2 Auto Scaling resources (for example, /// Auto Scaling groups, launch configurations, or lifecycle hooks). For more information, /// see <a href="https://docs.aws.amazon.com/autoscaling/ec2/APIReference/API_DescribeAccountLimits.html">DescribeAccountLimits</a> /// in the <i>Amazon EC2 Auto Scaling API Reference</i>. /// </exception> /// <exception cref="Amazon.AutoScaling.Model.ResourceContentionException"> /// You already have a pending update to an Amazon EC2 Auto Scaling resource (for example, /// an Auto Scaling group, instance, or load balancer). /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/DescribeWarmPool">REST API Reference for DescribeWarmPool Operation</seealso> public virtual Task<DescribeWarmPoolResponse> DescribeWarmPoolAsync(DescribeWarmPoolRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = DescribeWarmPoolRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribeWarmPoolResponseUnmarshaller.Instance; return InvokeAsync<DescribeWarmPoolResponse>(request, options, cancellationToken); } #endregion #region DetachInstances internal virtual DetachInstancesResponse DetachInstances(DetachInstancesRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DetachInstancesRequestMarshaller.Instance; options.ResponseUnmarshaller = DetachInstancesResponseUnmarshaller.Instance; return Invoke<DetachInstancesResponse>(request, options); } /// <summary> /// Removes one or more instances from the specified Auto Scaling group. /// /// /// <para> /// After the instances are detached, you can manage them independent of the Auto Scaling /// group. /// </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 detached. /// </para> /// /// <para> /// If there is a Classic Load Balancer attached to the Auto Scaling group, the instances /// are deregistered from the load balancer. If there are target groups attached to the /// Auto Scaling group, the instances are deregistered from the target groups. /// </para> /// /// <para> /// For more information, see <a href="https://docs.aws.amazon.com/autoscaling/ec2/userguide/detach-instance-asg.html">Detach /// EC2 instances from your Auto Scaling group</a> in the <i>Amazon EC2 Auto Scaling User /// Guide</i>. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the DetachInstances service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the DetachInstances service method, as returned by AutoScaling.</returns> /// <exception cref="Amazon.AutoScaling.Model.ResourceContentionException"> /// You already have a pending update to an Amazon EC2 Auto Scaling resource (for example, /// an Auto Scaling group, instance, or load balancer). /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/DetachInstances">REST API Reference for DetachInstances Operation</seealso> public virtual Task<DetachInstancesResponse> DetachInstancesAsync(DetachInstancesRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = DetachInstancesRequestMarshaller.Instance; options.ResponseUnmarshaller = DetachInstancesResponseUnmarshaller.Instance; return InvokeAsync<DetachInstancesResponse>(request, options, cancellationToken); } #endregion #region DetachLoadBalancers internal virtual DetachLoadBalancersResponse DetachLoadBalancers(DetachLoadBalancersRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DetachLoadBalancersRequestMarshaller.Instance; options.ResponseUnmarshaller = DetachLoadBalancersResponseUnmarshaller.Instance; return Invoke<DetachLoadBalancersResponse>(request, options); } /// <summary> /// <note> /// <para> /// This API operation is superseded by <a>DetachTrafficSources</a>, which can detach /// multiple traffic sources types. We recommend using <code>DetachTrafficSources</code> /// to simplify how you manage traffic sources. However, we continue to support <code>DetachLoadBalancers</code>. /// You can use both the original <code>DetachLoadBalancers</code> API operation and <code>DetachTrafficSources</code> /// on the same Auto Scaling group. /// </para> /// </note> /// <para> /// Detaches one or more Classic Load Balancers from the specified Auto Scaling group. /// </para> /// /// <para> /// This operation detaches only Classic Load Balancers. If you have Application Load /// Balancers, Network Load Balancers, or Gateway Load Balancers, use the <a>DetachLoadBalancerTargetGroups</a> /// API instead. /// </para> /// /// <para> /// When you detach a load balancer, it enters the <code>Removing</code> state while deregistering /// the instances in the group. When all instances are deregistered, then you can no longer /// describe the load balancer using the <a>DescribeLoadBalancers</a> API call. The instances /// remain running. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the DetachLoadBalancers service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the DetachLoadBalancers service method, as returned by AutoScaling.</returns> /// <exception cref="Amazon.AutoScaling.Model.ResourceContentionException"> /// You already have a pending update to an Amazon EC2 Auto Scaling resource (for example, /// an Auto Scaling group, instance, or load balancer). /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/DetachLoadBalancers">REST API Reference for DetachLoadBalancers Operation</seealso> public virtual Task<DetachLoadBalancersResponse> DetachLoadBalancersAsync(DetachLoadBalancersRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = DetachLoadBalancersRequestMarshaller.Instance; options.ResponseUnmarshaller = DetachLoadBalancersResponseUnmarshaller.Instance; return InvokeAsync<DetachLoadBalancersResponse>(request, options, cancellationToken); } #endregion #region DetachLoadBalancerTargetGroups internal virtual DetachLoadBalancerTargetGroupsResponse DetachLoadBalancerTargetGroups(DetachLoadBalancerTargetGroupsRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DetachLoadBalancerTargetGroupsRequestMarshaller.Instance; options.ResponseUnmarshaller = DetachLoadBalancerTargetGroupsResponseUnmarshaller.Instance; return Invoke<DetachLoadBalancerTargetGroupsResponse>(request, options); } /// <summary> /// <note> /// <para> /// This API operation is superseded by <a>DetachTrafficSources</a>, which can detach /// multiple traffic sources types. We recommend using <code>DetachTrafficSources</code> /// to simplify how you manage traffic sources. However, we continue to support <code>DetachLoadBalancerTargetGroups</code>. /// You can use both the original <code>DetachLoadBalancerTargetGroups</code> API operation /// and <code>DetachTrafficSources</code> on the same Auto Scaling group. /// </para> /// </note> /// <para> /// Detaches one or more target groups from the specified Auto Scaling group. /// </para> /// /// <para> /// When you detach a target group, it enters the <code>Removing</code> state while deregistering /// the instances in the group. When all instances are deregistered, then you can no longer /// describe the target group using the <a>DescribeLoadBalancerTargetGroups</a> API call. /// The instances remain running. /// </para> /// <note> /// <para> /// You can use this operation to detach target groups that were attached by using <a>AttachLoadBalancerTargetGroups</a>, /// but not for target groups that were attached by using <a>AttachTrafficSources</a>. /// </para> /// </note> /// </summary> /// <param name="request">Container for the necessary parameters to execute the DetachLoadBalancerTargetGroups service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the DetachLoadBalancerTargetGroups service method, as returned by AutoScaling.</returns> /// <exception cref="Amazon.AutoScaling.Model.ResourceContentionException"> /// You already have a pending update to an Amazon EC2 Auto Scaling resource (for example, /// an Auto Scaling group, instance, or load balancer). /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/DetachLoadBalancerTargetGroups">REST API Reference for DetachLoadBalancerTargetGroups Operation</seealso> public virtual Task<DetachLoadBalancerTargetGroupsResponse> DetachLoadBalancerTargetGroupsAsync(DetachLoadBalancerTargetGroupsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = DetachLoadBalancerTargetGroupsRequestMarshaller.Instance; options.ResponseUnmarshaller = DetachLoadBalancerTargetGroupsResponseUnmarshaller.Instance; return InvokeAsync<DetachLoadBalancerTargetGroupsResponse>(request, options, cancellationToken); } #endregion #region DetachTrafficSources internal virtual DetachTrafficSourcesResponse DetachTrafficSources(DetachTrafficSourcesRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DetachTrafficSourcesRequestMarshaller.Instance; options.ResponseUnmarshaller = DetachTrafficSourcesResponseUnmarshaller.Instance; return Invoke<DetachTrafficSourcesResponse>(request, options); } /// <summary> /// Detaches one or more traffic sources from the specified Auto Scaling group. /// /// /// <para> /// When you detach a taffic, it enters the <code>Removing</code> state while deregistering /// the instances in the group. When all instances are deregistered, then you can no longer /// describe the traffic source using the <a>DescribeTrafficSources</a> API call. The /// instances continue to run. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the DetachTrafficSources service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the DetachTrafficSources service method, as returned by AutoScaling.</returns> /// <exception cref="Amazon.AutoScaling.Model.ResourceContentionException"> /// You already have a pending update to an Amazon EC2 Auto Scaling resource (for example, /// an Auto Scaling group, instance, or load balancer). /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/DetachTrafficSources">REST API Reference for DetachTrafficSources Operation</seealso> public virtual Task<DetachTrafficSourcesResponse> DetachTrafficSourcesAsync(DetachTrafficSourcesRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = DetachTrafficSourcesRequestMarshaller.Instance; options.ResponseUnmarshaller = DetachTrafficSourcesResponseUnmarshaller.Instance; return InvokeAsync<DetachTrafficSourcesResponse>(request, options, cancellationToken); } #endregion #region DisableMetricsCollection internal virtual DisableMetricsCollectionResponse DisableMetricsCollection(DisableMetricsCollectionRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DisableMetricsCollectionRequestMarshaller.Instance; options.ResponseUnmarshaller = DisableMetricsCollectionResponseUnmarshaller.Instance; return Invoke<DisableMetricsCollectionResponse>(request, options); } /// <summary> /// Disables group metrics collection for the specified Auto Scaling group. /// </summary> /// <param name="request">Container for the necessary parameters to execute the DisableMetricsCollection service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the DisableMetricsCollection service method, as returned by AutoScaling.</returns> /// <exception cref="Amazon.AutoScaling.Model.ResourceContentionException"> /// You already have a pending update to an Amazon EC2 Auto Scaling resource (for example, /// an Auto Scaling group, instance, or load balancer). /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/DisableMetricsCollection">REST API Reference for DisableMetricsCollection Operation</seealso> public virtual Task<DisableMetricsCollectionResponse> DisableMetricsCollectionAsync(DisableMetricsCollectionRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = DisableMetricsCollectionRequestMarshaller.Instance; options.ResponseUnmarshaller = DisableMetricsCollectionResponseUnmarshaller.Instance; return InvokeAsync<DisableMetricsCollectionResponse>(request, options, cancellationToken); } #endregion #region EnableMetricsCollection internal virtual EnableMetricsCollectionResponse EnableMetricsCollection(EnableMetricsCollectionRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = EnableMetricsCollectionRequestMarshaller.Instance; options.ResponseUnmarshaller = EnableMetricsCollectionResponseUnmarshaller.Instance; return Invoke<EnableMetricsCollectionResponse>(request, options); } /// <summary> /// Enables group metrics collection for the specified Auto Scaling group. /// /// /// <para> /// You can use these metrics to track changes in an Auto Scaling group and to set alarms /// on threshold values. You can view group metrics using the Amazon EC2 Auto Scaling /// console or the CloudWatch console. For more information, see <a href="https://docs.aws.amazon.com/autoscaling/ec2/userguide/ec2-auto-scaling-cloudwatch-monitoring.html">Monitor /// CloudWatch metrics for your Auto Scaling groups and instances</a> in the <i>Amazon /// EC2 Auto Scaling User Guide</i>. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the EnableMetricsCollection service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the EnableMetricsCollection service method, as returned by AutoScaling.</returns> /// <exception cref="Amazon.AutoScaling.Model.ResourceContentionException"> /// You already have a pending update to an Amazon EC2 Auto Scaling resource (for example, /// an Auto Scaling group, instance, or load balancer). /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/EnableMetricsCollection">REST API Reference for EnableMetricsCollection Operation</seealso> public virtual Task<EnableMetricsCollectionResponse> EnableMetricsCollectionAsync(EnableMetricsCollectionRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = EnableMetricsCollectionRequestMarshaller.Instance; options.ResponseUnmarshaller = EnableMetricsCollectionResponseUnmarshaller.Instance; return InvokeAsync<EnableMetricsCollectionResponse>(request, options, cancellationToken); } #endregion #region EnterStandby internal virtual EnterStandbyResponse EnterStandby(EnterStandbyRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = EnterStandbyRequestMarshaller.Instance; options.ResponseUnmarshaller = EnterStandbyResponseUnmarshaller.Instance; return Invoke<EnterStandbyResponse>(request, options); } /// <summary> /// Moves the specified instances into the standby state. /// /// /// <para> /// If you choose to decrement the desired capacity of the Auto Scaling group, the instances /// can enter standby as long as the desired capacity of the Auto Scaling group after /// the instances are placed into standby is equal to or greater than the minimum capacity /// of the group. /// </para> /// /// <para> /// If you choose not to decrement the desired capacity of the Auto Scaling group, the /// Auto Scaling group launches new instances to replace the instances on standby. /// </para> /// /// <para> /// For more information, see <a href="https://docs.aws.amazon.com/autoscaling/ec2/userguide/as-enter-exit-standby.html">Temporarily /// removing instances from your Auto Scaling group</a> in the <i>Amazon EC2 Auto Scaling /// User Guide</i>. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the EnterStandby service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the EnterStandby service method, as returned by AutoScaling.</returns> /// <exception cref="Amazon.AutoScaling.Model.ResourceContentionException"> /// You already have a pending update to an Amazon EC2 Auto Scaling resource (for example, /// an Auto Scaling group, instance, or load balancer). /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/EnterStandby">REST API Reference for EnterStandby Operation</seealso> public virtual Task<EnterStandbyResponse> EnterStandbyAsync(EnterStandbyRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = EnterStandbyRequestMarshaller.Instance; options.ResponseUnmarshaller = EnterStandbyResponseUnmarshaller.Instance; return InvokeAsync<EnterStandbyResponse>(request, options, cancellationToken); } #endregion #region ExecutePolicy internal virtual ExecutePolicyResponse ExecutePolicy(ExecutePolicyRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = ExecutePolicyRequestMarshaller.Instance; options.ResponseUnmarshaller = ExecutePolicyResponseUnmarshaller.Instance; return Invoke<ExecutePolicyResponse>(request, options); } /// <summary> /// Executes the specified policy. This can be useful for testing the design of your scaling /// policy. /// </summary> /// <param name="request">Container for the necessary parameters to execute the ExecutePolicy service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the ExecutePolicy service method, as returned by AutoScaling.</returns> /// <exception cref="Amazon.AutoScaling.Model.ResourceContentionException"> /// You already have a pending update to an Amazon EC2 Auto Scaling resource (for example, /// an Auto Scaling group, instance, or load balancer). /// </exception> /// <exception cref="Amazon.AutoScaling.Model.ScalingActivityInProgressException"> /// The operation can't be performed because there are scaling activities in progress. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/ExecutePolicy">REST API Reference for ExecutePolicy Operation</seealso> public virtual Task<ExecutePolicyResponse> ExecutePolicyAsync(ExecutePolicyRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = ExecutePolicyRequestMarshaller.Instance; options.ResponseUnmarshaller = ExecutePolicyResponseUnmarshaller.Instance; return InvokeAsync<ExecutePolicyResponse>(request, options, cancellationToken); } #endregion #region ExitStandby internal virtual ExitStandbyResponse ExitStandby(ExitStandbyRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = ExitStandbyRequestMarshaller.Instance; options.ResponseUnmarshaller = ExitStandbyResponseUnmarshaller.Instance; return Invoke<ExitStandbyResponse>(request, options); } /// <summary> /// Moves the specified instances out of the standby state. /// /// /// <para> /// After you put the instances back in service, the desired capacity is incremented. /// </para> /// /// <para> /// For more information, see <a href="https://docs.aws.amazon.com/autoscaling/ec2/userguide/as-enter-exit-standby.html">Temporarily /// removing instances from your Auto Scaling group</a> in the <i>Amazon EC2 Auto Scaling /// User Guide</i>. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the ExitStandby service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the ExitStandby service method, as returned by AutoScaling.</returns> /// <exception cref="Amazon.AutoScaling.Model.ResourceContentionException"> /// You already have a pending update to an Amazon EC2 Auto Scaling resource (for example, /// an Auto Scaling group, instance, or load balancer). /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/ExitStandby">REST API Reference for ExitStandby Operation</seealso> public virtual Task<ExitStandbyResponse> ExitStandbyAsync(ExitStandbyRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = ExitStandbyRequestMarshaller.Instance; options.ResponseUnmarshaller = ExitStandbyResponseUnmarshaller.Instance; return InvokeAsync<ExitStandbyResponse>(request, options, cancellationToken); } #endregion #region GetPredictiveScalingForecast internal virtual GetPredictiveScalingForecastResponse GetPredictiveScalingForecast(GetPredictiveScalingForecastRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = GetPredictiveScalingForecastRequestMarshaller.Instance; options.ResponseUnmarshaller = GetPredictiveScalingForecastResponseUnmarshaller.Instance; return Invoke<GetPredictiveScalingForecastResponse>(request, options); } /// <summary> /// Retrieves the forecast data for a predictive scaling policy. /// /// /// <para> /// Load forecasts are predictions of the hourly load values using historical load data /// from CloudWatch and an analysis of historical trends. Capacity forecasts are represented /// as predicted values for the minimum capacity that is needed on an hourly basis, based /// on the hourly load forecast. /// </para> /// /// <para> /// A minimum of 24 hours of data is required to create the initial forecasts. However, /// having a full 14 days of historical data results in more accurate forecasts. /// </para> /// /// <para> /// For more information, 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> /// </summary> /// <param name="request">Container for the necessary parameters to execute the GetPredictiveScalingForecast service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the GetPredictiveScalingForecast service method, as returned by AutoScaling.</returns> /// <exception cref="Amazon.AutoScaling.Model.ResourceContentionException"> /// You already have a pending update to an Amazon EC2 Auto Scaling resource (for example, /// an Auto Scaling group, instance, or load balancer). /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/GetPredictiveScalingForecast">REST API Reference for GetPredictiveScalingForecast Operation</seealso> public virtual Task<GetPredictiveScalingForecastResponse> GetPredictiveScalingForecastAsync(GetPredictiveScalingForecastRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = GetPredictiveScalingForecastRequestMarshaller.Instance; options.ResponseUnmarshaller = GetPredictiveScalingForecastResponseUnmarshaller.Instance; return InvokeAsync<GetPredictiveScalingForecastResponse>(request, options, cancellationToken); } #endregion #region PutLifecycleHook internal virtual PutLifecycleHookResponse PutLifecycleHook(PutLifecycleHookRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = PutLifecycleHookRequestMarshaller.Instance; options.ResponseUnmarshaller = PutLifecycleHookResponseUnmarshaller.Instance; return Invoke<PutLifecycleHookResponse>(request, options); } /// <summary> /// 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> /// <param name="request">Container for the necessary parameters to execute the PutLifecycleHook service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the PutLifecycleHook service method, as returned by AutoScaling.</returns> /// <exception cref="Amazon.AutoScaling.Model.LimitExceededException"> /// You have already reached a limit for your Amazon EC2 Auto Scaling resources (for example, /// Auto Scaling groups, launch configurations, or lifecycle hooks). For more information, /// see <a href="https://docs.aws.amazon.com/autoscaling/ec2/APIReference/API_DescribeAccountLimits.html">DescribeAccountLimits</a> /// in the <i>Amazon EC2 Auto Scaling API Reference</i>. /// </exception> /// <exception cref="Amazon.AutoScaling.Model.ResourceContentionException"> /// You already have a pending update to an Amazon EC2 Auto Scaling resource (for example, /// an Auto Scaling group, instance, or load balancer). /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/PutLifecycleHook">REST API Reference for PutLifecycleHook Operation</seealso> public virtual Task<PutLifecycleHookResponse> PutLifecycleHookAsync(PutLifecycleHookRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = PutLifecycleHookRequestMarshaller.Instance; options.ResponseUnmarshaller = PutLifecycleHookResponseUnmarshaller.Instance; return InvokeAsync<PutLifecycleHookResponse>(request, options, cancellationToken); } #endregion #region PutNotificationConfiguration internal virtual PutNotificationConfigurationResponse PutNotificationConfiguration(PutNotificationConfigurationRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = PutNotificationConfigurationRequestMarshaller.Instance; options.ResponseUnmarshaller = PutNotificationConfigurationResponseUnmarshaller.Instance; return Invoke<PutNotificationConfigurationResponse>(request, options); } /// <summary> /// 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> /// <param name="request">Container for the necessary parameters to execute the PutNotificationConfiguration service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the PutNotificationConfiguration service method, as returned by AutoScaling.</returns> /// <exception cref="Amazon.AutoScaling.Model.LimitExceededException"> /// You have already reached a limit for your Amazon EC2 Auto Scaling resources (for example, /// Auto Scaling groups, launch configurations, or lifecycle hooks). For more information, /// see <a href="https://docs.aws.amazon.com/autoscaling/ec2/APIReference/API_DescribeAccountLimits.html">DescribeAccountLimits</a> /// in the <i>Amazon EC2 Auto Scaling API Reference</i>. /// </exception> /// <exception cref="Amazon.AutoScaling.Model.ResourceContentionException"> /// You already have a pending update to an Amazon EC2 Auto Scaling resource (for example, /// an Auto Scaling group, instance, or load balancer). /// </exception> /// <exception cref="Amazon.AutoScaling.Model.ServiceLinkedRoleFailureException"> /// The service-linked role is not yet ready for use. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/PutNotificationConfiguration">REST API Reference for PutNotificationConfiguration Operation</seealso> public virtual Task<PutNotificationConfigurationResponse> PutNotificationConfigurationAsync(PutNotificationConfigurationRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = PutNotificationConfigurationRequestMarshaller.Instance; options.ResponseUnmarshaller = PutNotificationConfigurationResponseUnmarshaller.Instance; return InvokeAsync<PutNotificationConfigurationResponse>(request, options, cancellationToken); } #endregion #region PutScalingPolicy internal virtual PutScalingPolicyResponse PutScalingPolicy(PutScalingPolicyRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = PutScalingPolicyRequestMarshaller.Instance; options.ResponseUnmarshaller = PutScalingPolicyResponseUnmarshaller.Instance; return Invoke<PutScalingPolicyResponse>(request, options); } /// <summary> /// 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> /// <param name="request">Container for the necessary parameters to execute the PutScalingPolicy service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the PutScalingPolicy service method, as returned by AutoScaling.</returns> /// <exception cref="Amazon.AutoScaling.Model.LimitExceededException"> /// You have already reached a limit for your Amazon EC2 Auto Scaling resources (for example, /// Auto Scaling groups, launch configurations, or lifecycle hooks). For more information, /// see <a href="https://docs.aws.amazon.com/autoscaling/ec2/APIReference/API_DescribeAccountLimits.html">DescribeAccountLimits</a> /// in the <i>Amazon EC2 Auto Scaling API Reference</i>. /// </exception> /// <exception cref="Amazon.AutoScaling.Model.ResourceContentionException"> /// You already have a pending update to an Amazon EC2 Auto Scaling resource (for example, /// an Auto Scaling group, instance, or load balancer). /// </exception> /// <exception cref="Amazon.AutoScaling.Model.ServiceLinkedRoleFailureException"> /// The service-linked role is not yet ready for use. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/PutScalingPolicy">REST API Reference for PutScalingPolicy Operation</seealso> public virtual Task<PutScalingPolicyResponse> PutScalingPolicyAsync(PutScalingPolicyRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = PutScalingPolicyRequestMarshaller.Instance; options.ResponseUnmarshaller = PutScalingPolicyResponseUnmarshaller.Instance; return InvokeAsync<PutScalingPolicyResponse>(request, options, cancellationToken); } #endregion #region PutScheduledUpdateGroupAction internal virtual PutScheduledUpdateGroupActionResponse PutScheduledUpdateGroupAction(PutScheduledUpdateGroupActionRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = PutScheduledUpdateGroupActionRequestMarshaller.Instance; options.ResponseUnmarshaller = PutScheduledUpdateGroupActionResponseUnmarshaller.Instance; return Invoke<PutScheduledUpdateGroupActionResponse>(request, options); } /// <summary> /// 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> /// <param name="request">Container for the necessary parameters to execute the PutScheduledUpdateGroupAction service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the PutScheduledUpdateGroupAction service method, as returned by AutoScaling.</returns> /// <exception cref="Amazon.AutoScaling.Model.AlreadyExistsException"> /// You already have an Auto Scaling group or launch configuration with this name. /// </exception> /// <exception cref="Amazon.AutoScaling.Model.LimitExceededException"> /// You have already reached a limit for your Amazon EC2 Auto Scaling resources (for example, /// Auto Scaling groups, launch configurations, or lifecycle hooks). For more information, /// see <a href="https://docs.aws.amazon.com/autoscaling/ec2/APIReference/API_DescribeAccountLimits.html">DescribeAccountLimits</a> /// in the <i>Amazon EC2 Auto Scaling API Reference</i>. /// </exception> /// <exception cref="Amazon.AutoScaling.Model.ResourceContentionException"> /// You already have a pending update to an Amazon EC2 Auto Scaling resource (for example, /// an Auto Scaling group, instance, or load balancer). /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/PutScheduledUpdateGroupAction">REST API Reference for PutScheduledUpdateGroupAction Operation</seealso> public virtual Task<PutScheduledUpdateGroupActionResponse> PutScheduledUpdateGroupActionAsync(PutScheduledUpdateGroupActionRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = PutScheduledUpdateGroupActionRequestMarshaller.Instance; options.ResponseUnmarshaller = PutScheduledUpdateGroupActionResponseUnmarshaller.Instance; return InvokeAsync<PutScheduledUpdateGroupActionResponse>(request, options, cancellationToken); } #endregion #region PutWarmPool internal virtual PutWarmPoolResponse PutWarmPool(PutWarmPoolRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = PutWarmPoolRequestMarshaller.Instance; options.ResponseUnmarshaller = PutWarmPoolResponseUnmarshaller.Instance; return Invoke<PutWarmPoolResponse>(request, options); } /// <summary> /// 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> /// <param name="request">Container for the necessary parameters to execute the PutWarmPool service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the PutWarmPool service method, as returned by AutoScaling.</returns> /// <exception cref="Amazon.AutoScaling.Model.LimitExceededException"> /// You have already reached a limit for your Amazon EC2 Auto Scaling resources (for example, /// Auto Scaling groups, launch configurations, or lifecycle hooks). For more information, /// see <a href="https://docs.aws.amazon.com/autoscaling/ec2/APIReference/API_DescribeAccountLimits.html">DescribeAccountLimits</a> /// in the <i>Amazon EC2 Auto Scaling API Reference</i>. /// </exception> /// <exception cref="Amazon.AutoScaling.Model.ResourceContentionException"> /// You already have a pending update to an Amazon EC2 Auto Scaling resource (for example, /// an Auto Scaling group, instance, or load balancer). /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/PutWarmPool">REST API Reference for PutWarmPool Operation</seealso> public virtual Task<PutWarmPoolResponse> PutWarmPoolAsync(PutWarmPoolRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = PutWarmPoolRequestMarshaller.Instance; options.ResponseUnmarshaller = PutWarmPoolResponseUnmarshaller.Instance; return InvokeAsync<PutWarmPoolResponse>(request, options, cancellationToken); } #endregion #region RecordLifecycleActionHeartbeat internal virtual RecordLifecycleActionHeartbeatResponse RecordLifecycleActionHeartbeat(RecordLifecycleActionHeartbeatRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = RecordLifecycleActionHeartbeatRequestMarshaller.Instance; options.ResponseUnmarshaller = RecordLifecycleActionHeartbeatResponseUnmarshaller.Instance; return Invoke<RecordLifecycleActionHeartbeatResponse>(request, options); } /// <summary> /// 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> /// <param name="request">Container for the necessary parameters to execute the RecordLifecycleActionHeartbeat service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the RecordLifecycleActionHeartbeat service method, as returned by AutoScaling.</returns> /// <exception cref="Amazon.AutoScaling.Model.ResourceContentionException"> /// You already have a pending update to an Amazon EC2 Auto Scaling resource (for example, /// an Auto Scaling group, instance, or load balancer). /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/RecordLifecycleActionHeartbeat">REST API Reference for RecordLifecycleActionHeartbeat Operation</seealso> public virtual Task<RecordLifecycleActionHeartbeatResponse> RecordLifecycleActionHeartbeatAsync(RecordLifecycleActionHeartbeatRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = RecordLifecycleActionHeartbeatRequestMarshaller.Instance; options.ResponseUnmarshaller = RecordLifecycleActionHeartbeatResponseUnmarshaller.Instance; return InvokeAsync<RecordLifecycleActionHeartbeatResponse>(request, options, cancellationToken); } #endregion #region ResumeProcesses internal virtual ResumeProcessesResponse ResumeProcesses(ResumeProcessesRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = ResumeProcessesRequestMarshaller.Instance; options.ResponseUnmarshaller = ResumeProcessesResponseUnmarshaller.Instance; return Invoke<ResumeProcessesResponse>(request, options); } /// <summary> /// 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> /// <param name="request">Container for the necessary parameters to execute the ResumeProcesses service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the ResumeProcesses service method, as returned by AutoScaling.</returns> /// <exception cref="Amazon.AutoScaling.Model.ResourceContentionException"> /// You already have a pending update to an Amazon EC2 Auto Scaling resource (for example, /// an Auto Scaling group, instance, or load balancer). /// </exception> /// <exception cref="Amazon.AutoScaling.Model.ResourceInUseException"> /// The operation can't be performed because the resource is in use. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/ResumeProcesses">REST API Reference for ResumeProcesses Operation</seealso> public virtual Task<ResumeProcessesResponse> ResumeProcessesAsync(ResumeProcessesRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = ResumeProcessesRequestMarshaller.Instance; options.ResponseUnmarshaller = ResumeProcessesResponseUnmarshaller.Instance; return InvokeAsync<ResumeProcessesResponse>(request, options, cancellationToken); } #endregion #region RollbackInstanceRefresh internal virtual RollbackInstanceRefreshResponse RollbackInstanceRefresh(RollbackInstanceRefreshRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = RollbackInstanceRefreshRequestMarshaller.Instance; options.ResponseUnmarshaller = RollbackInstanceRefreshResponseUnmarshaller.Instance; return Invoke<RollbackInstanceRefreshResponse>(request, options); } /// <summary> /// 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> /// <param name="request">Container for the necessary parameters to execute the RollbackInstanceRefresh service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the RollbackInstanceRefresh service method, as returned by AutoScaling.</returns> /// <exception cref="Amazon.AutoScaling.Model.ActiveInstanceRefreshNotFoundException"> /// The request failed because an active instance refresh or rollback for the specified /// Auto Scaling group was not found. /// </exception> /// <exception cref="Amazon.AutoScaling.Model.IrreversibleInstanceRefreshException"> /// The request failed because a desired configuration was not found or an incompatible /// launch template (uses a Systems Manager parameter instead of an AMI ID) or launch /// template version (<code>$Latest</code> or <code>$Default</code>) is present on the /// Auto Scaling group. /// </exception> /// <exception cref="Amazon.AutoScaling.Model.LimitExceededException"> /// You have already reached a limit for your Amazon EC2 Auto Scaling resources (for example, /// Auto Scaling groups, launch configurations, or lifecycle hooks). For more information, /// see <a href="https://docs.aws.amazon.com/autoscaling/ec2/APIReference/API_DescribeAccountLimits.html">DescribeAccountLimits</a> /// in the <i>Amazon EC2 Auto Scaling API Reference</i>. /// </exception> /// <exception cref="Amazon.AutoScaling.Model.ResourceContentionException"> /// You already have a pending update to an Amazon EC2 Auto Scaling resource (for example, /// an Auto Scaling group, instance, or load balancer). /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/RollbackInstanceRefresh">REST API Reference for RollbackInstanceRefresh Operation</seealso> public virtual Task<RollbackInstanceRefreshResponse> RollbackInstanceRefreshAsync(RollbackInstanceRefreshRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = RollbackInstanceRefreshRequestMarshaller.Instance; options.ResponseUnmarshaller = RollbackInstanceRefreshResponseUnmarshaller.Instance; return InvokeAsync<RollbackInstanceRefreshResponse>(request, options, cancellationToken); } #endregion #region SetDesiredCapacity internal virtual SetDesiredCapacityResponse SetDesiredCapacity(SetDesiredCapacityRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = SetDesiredCapacityRequestMarshaller.Instance; options.ResponseUnmarshaller = SetDesiredCapacityResponseUnmarshaller.Instance; return Invoke<SetDesiredCapacityResponse>(request, options); } /// <summary> /// 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> /// <param name="request">Container for the necessary parameters to execute the SetDesiredCapacity service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the SetDesiredCapacity service method, as returned by AutoScaling.</returns> /// <exception cref="Amazon.AutoScaling.Model.ResourceContentionException"> /// You already have a pending update to an Amazon EC2 Auto Scaling resource (for example, /// an Auto Scaling group, instance, or load balancer). /// </exception> /// <exception cref="Amazon.AutoScaling.Model.ScalingActivityInProgressException"> /// The operation can't be performed because there are scaling activities in progress. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/SetDesiredCapacity">REST API Reference for SetDesiredCapacity Operation</seealso> public virtual Task<SetDesiredCapacityResponse> SetDesiredCapacityAsync(SetDesiredCapacityRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = SetDesiredCapacityRequestMarshaller.Instance; options.ResponseUnmarshaller = SetDesiredCapacityResponseUnmarshaller.Instance; return InvokeAsync<SetDesiredCapacityResponse>(request, options, cancellationToken); } #endregion #region SetInstanceHealth internal virtual SetInstanceHealthResponse SetInstanceHealth(SetInstanceHealthRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = SetInstanceHealthRequestMarshaller.Instance; options.ResponseUnmarshaller = SetInstanceHealthResponseUnmarshaller.Instance; return Invoke<SetInstanceHealthResponse>(request, options); } /// <summary> /// 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> /// <param name="request">Container for the necessary parameters to execute the SetInstanceHealth service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the SetInstanceHealth service method, as returned by AutoScaling.</returns> /// <exception cref="Amazon.AutoScaling.Model.ResourceContentionException"> /// You already have a pending update to an Amazon EC2 Auto Scaling resource (for example, /// an Auto Scaling group, instance, or load balancer). /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/SetInstanceHealth">REST API Reference for SetInstanceHealth Operation</seealso> public virtual Task<SetInstanceHealthResponse> SetInstanceHealthAsync(SetInstanceHealthRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = SetInstanceHealthRequestMarshaller.Instance; options.ResponseUnmarshaller = SetInstanceHealthResponseUnmarshaller.Instance; return InvokeAsync<SetInstanceHealthResponse>(request, options, cancellationToken); } #endregion #region SetInstanceProtection internal virtual SetInstanceProtectionResponse SetInstanceProtection(SetInstanceProtectionRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = SetInstanceProtectionRequestMarshaller.Instance; options.ResponseUnmarshaller = SetInstanceProtectionResponseUnmarshaller.Instance; return Invoke<SetInstanceProtectionResponse>(request, options); } /// <summary> /// 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> /// <param name="request">Container for the necessary parameters to execute the SetInstanceProtection service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the SetInstanceProtection service method, as returned by AutoScaling.</returns> /// <exception cref="Amazon.AutoScaling.Model.LimitExceededException"> /// You have already reached a limit for your Amazon EC2 Auto Scaling resources (for example, /// Auto Scaling groups, launch configurations, or lifecycle hooks). For more information, /// see <a href="https://docs.aws.amazon.com/autoscaling/ec2/APIReference/API_DescribeAccountLimits.html">DescribeAccountLimits</a> /// in the <i>Amazon EC2 Auto Scaling API Reference</i>. /// </exception> /// <exception cref="Amazon.AutoScaling.Model.ResourceContentionException"> /// You already have a pending update to an Amazon EC2 Auto Scaling resource (for example, /// an Auto Scaling group, instance, or load balancer). /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/SetInstanceProtection">REST API Reference for SetInstanceProtection Operation</seealso> public virtual Task<SetInstanceProtectionResponse> SetInstanceProtectionAsync(SetInstanceProtectionRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = SetInstanceProtectionRequestMarshaller.Instance; options.ResponseUnmarshaller = SetInstanceProtectionResponseUnmarshaller.Instance; return InvokeAsync<SetInstanceProtectionResponse>(request, options, cancellationToken); } #endregion #region StartInstanceRefresh internal virtual StartInstanceRefreshResponse StartInstanceRefresh(StartInstanceRefreshRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = StartInstanceRefreshRequestMarshaller.Instance; options.ResponseUnmarshaller = StartInstanceRefreshResponseUnmarshaller.Instance; return Invoke<StartInstanceRefreshResponse>(request, options); } /// <summary> /// 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> /// <param name="request">Container for the necessary parameters to execute the StartInstanceRefresh service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the StartInstanceRefresh service method, as returned by AutoScaling.</returns> /// <exception cref="Amazon.AutoScaling.Model.InstanceRefreshInProgressException"> /// The request failed because an active instance refresh already exists for the specified /// Auto Scaling group. /// </exception> /// <exception cref="Amazon.AutoScaling.Model.LimitExceededException"> /// You have already reached a limit for your Amazon EC2 Auto Scaling resources (for example, /// Auto Scaling groups, launch configurations, or lifecycle hooks). For more information, /// see <a href="https://docs.aws.amazon.com/autoscaling/ec2/APIReference/API_DescribeAccountLimits.html">DescribeAccountLimits</a> /// in the <i>Amazon EC2 Auto Scaling API Reference</i>. /// </exception> /// <exception cref="Amazon.AutoScaling.Model.ResourceContentionException"> /// You already have a pending update to an Amazon EC2 Auto Scaling resource (for example, /// an Auto Scaling group, instance, or load balancer). /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/StartInstanceRefresh">REST API Reference for StartInstanceRefresh Operation</seealso> public virtual Task<StartInstanceRefreshResponse> StartInstanceRefreshAsync(StartInstanceRefreshRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = StartInstanceRefreshRequestMarshaller.Instance; options.ResponseUnmarshaller = StartInstanceRefreshResponseUnmarshaller.Instance; return InvokeAsync<StartInstanceRefreshResponse>(request, options, cancellationToken); } #endregion #region SuspendProcesses internal virtual SuspendProcessesResponse SuspendProcesses(SuspendProcessesRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = SuspendProcessesRequestMarshaller.Instance; options.ResponseUnmarshaller = SuspendProcessesResponseUnmarshaller.Instance; return Invoke<SuspendProcessesResponse>(request, options); } /// <summary> /// 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> /// <param name="request">Container for the necessary parameters to execute the SuspendProcesses service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the SuspendProcesses service method, as returned by AutoScaling.</returns> /// <exception cref="Amazon.AutoScaling.Model.ResourceContentionException"> /// You already have a pending update to an Amazon EC2 Auto Scaling resource (for example, /// an Auto Scaling group, instance, or load balancer). /// </exception> /// <exception cref="Amazon.AutoScaling.Model.ResourceInUseException"> /// The operation can't be performed because the resource is in use. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/SuspendProcesses">REST API Reference for SuspendProcesses Operation</seealso> public virtual Task<SuspendProcessesResponse> SuspendProcessesAsync(SuspendProcessesRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = SuspendProcessesRequestMarshaller.Instance; options.ResponseUnmarshaller = SuspendProcessesResponseUnmarshaller.Instance; return InvokeAsync<SuspendProcessesResponse>(request, options, cancellationToken); } #endregion #region TerminateInstanceInAutoScalingGroup internal virtual TerminateInstanceInAutoScalingGroupResponse TerminateInstanceInAutoScalingGroup(TerminateInstanceInAutoScalingGroupRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = TerminateInstanceInAutoScalingGroupRequestMarshaller.Instance; options.ResponseUnmarshaller = TerminateInstanceInAutoScalingGroupResponseUnmarshaller.Instance; return Invoke<TerminateInstanceInAutoScalingGroupResponse>(request, options); } /// <summary> /// 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> /// <param name="request">Container for the necessary parameters to execute the TerminateInstanceInAutoScalingGroup service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the TerminateInstanceInAutoScalingGroup service method, as returned by AutoScaling.</returns> /// <exception cref="Amazon.AutoScaling.Model.ResourceContentionException"> /// You already have a pending update to an Amazon EC2 Auto Scaling resource (for example, /// an Auto Scaling group, instance, or load balancer). /// </exception> /// <exception cref="Amazon.AutoScaling.Model.ScalingActivityInProgressException"> /// The operation can't be performed because there are scaling activities in progress. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/TerminateInstanceInAutoScalingGroup">REST API Reference for TerminateInstanceInAutoScalingGroup Operation</seealso> public virtual Task<TerminateInstanceInAutoScalingGroupResponse> TerminateInstanceInAutoScalingGroupAsync(TerminateInstanceInAutoScalingGroupRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = TerminateInstanceInAutoScalingGroupRequestMarshaller.Instance; options.ResponseUnmarshaller = TerminateInstanceInAutoScalingGroupResponseUnmarshaller.Instance; return InvokeAsync<TerminateInstanceInAutoScalingGroupResponse>(request, options, cancellationToken); } #endregion #region UpdateAutoScalingGroup internal virtual UpdateAutoScalingGroupResponse UpdateAutoScalingGroup(UpdateAutoScalingGroupRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = UpdateAutoScalingGroupRequestMarshaller.Instance; options.ResponseUnmarshaller = UpdateAutoScalingGroupResponseUnmarshaller.Instance; return Invoke<UpdateAutoScalingGroupResponse>(request, options); } /// <summary> /// <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> /// <param name="request">Container for the necessary parameters to execute the UpdateAutoScalingGroup service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the UpdateAutoScalingGroup service method, as returned by AutoScaling.</returns> /// <exception cref="Amazon.AutoScaling.Model.ResourceContentionException"> /// You already have a pending update to an Amazon EC2 Auto Scaling resource (for example, /// an Auto Scaling group, instance, or load balancer). /// </exception> /// <exception cref="Amazon.AutoScaling.Model.ScalingActivityInProgressException"> /// The operation can't be performed because there are scaling activities in progress. /// </exception> /// <exception cref="Amazon.AutoScaling.Model.ServiceLinkedRoleFailureException"> /// The service-linked role is not yet ready for use. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/UpdateAutoScalingGroup">REST API Reference for UpdateAutoScalingGroup Operation</seealso> public virtual Task<UpdateAutoScalingGroupResponse> UpdateAutoScalingGroupAsync(UpdateAutoScalingGroupRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = UpdateAutoScalingGroupRequestMarshaller.Instance; options.ResponseUnmarshaller = UpdateAutoScalingGroupResponseUnmarshaller.Instance; return InvokeAsync<UpdateAutoScalingGroupResponse>(request, options, cancellationToken); } #endregion } }
4,483
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.Threading; using System.Threading.Tasks; using System.Collections.Generic; using Amazon.Runtime; using Amazon.AutoScaling.Model; namespace Amazon.AutoScaling { /// <summary> /// Interface for accessing AutoScaling /// /// Amazon EC2 Auto Scaling /// <para> /// Amazon EC2 Auto Scaling is designed to automatically launch and terminate EC2 instances /// based on user-defined scaling policies, scheduled actions, and health checks. /// </para> /// /// <para> /// For more information, see the <a href="https://docs.aws.amazon.com/autoscaling/ec2/userguide/">Amazon /// EC2 Auto Scaling User Guide</a> and the <a href="https://docs.aws.amazon.com/autoscaling/ec2/APIReference/Welcome.html">Amazon /// EC2 Auto Scaling API Reference</a>. /// </para> /// </summary> public partial interface IAmazonAutoScaling : IAmazonService, IDisposable { #if AWS_ASYNC_ENUMERABLES_API /// <summary> /// Paginators for the service /// </summary> IAutoScalingPaginatorFactory Paginators { get; } #endif #region AttachInstances /// <summary> /// Attaches one or more EC2 instances to the specified Auto Scaling group. /// /// /// <para> /// When you attach instances, Amazon EC2 Auto Scaling increases the desired capacity /// of the group by the number of instances being attached. If the number of instances /// being attached plus the desired capacity of the group exceeds the maximum size of /// the group, the operation fails. /// </para> /// /// <para> /// If there is a Classic Load Balancer attached to your Auto Scaling group, the instances /// are also registered with the load balancer. If there are target groups attached to /// your Auto Scaling group, the instances are also registered with the target groups. /// </para> /// /// <para> /// For more information, see <a href="https://docs.aws.amazon.com/autoscaling/ec2/userguide/attach-instance-asg.html">Attach /// EC2 instances to your Auto Scaling group</a> in the <i>Amazon EC2 Auto Scaling User /// Guide</i>. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the AttachInstances service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the AttachInstances service method, as returned by AutoScaling.</returns> /// <exception cref="Amazon.AutoScaling.Model.ResourceContentionException"> /// You already have a pending update to an Amazon EC2 Auto Scaling resource (for example, /// an Auto Scaling group, instance, or load balancer). /// </exception> /// <exception cref="Amazon.AutoScaling.Model.ServiceLinkedRoleFailureException"> /// The service-linked role is not yet ready for use. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/AttachInstances">REST API Reference for AttachInstances Operation</seealso> Task<AttachInstancesResponse> AttachInstancesAsync(AttachInstancesRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)); #endregion #region AttachLoadBalancers /// <summary> /// <note> /// <para> /// This API operation is superseded by <a>AttachTrafficSources</a>, which can attach /// multiple traffic sources types. We recommend using <code>AttachTrafficSources</code> /// to simplify how you manage traffic sources. However, we continue to support <code>AttachLoadBalancers</code>. /// You can use both the original <code>AttachLoadBalancers</code> API operation and <code>AttachTrafficSources</code> /// on the same Auto Scaling group. /// </para> /// </note> /// <para> /// Attaches one or more Classic Load Balancers to the specified Auto Scaling group. Amazon /// EC2 Auto Scaling registers the running instances with these Classic Load Balancers. /// </para> /// /// <para> /// To describe the load balancers for an Auto Scaling group, call the <a>DescribeLoadBalancers</a> /// API. To detach a load balancer from the Auto Scaling group, call the <a>DetachLoadBalancers</a> /// API. /// </para> /// /// <para> /// This operation is additive and does not detach existing Classic Load Balancers or /// target groups from the Auto Scaling group. /// </para> /// /// <para> /// For more information, see <a href="https://docs.aws.amazon.com/autoscaling/ec2/userguide/autoscaling-load-balancer.html">Use /// Elastic Load Balancing to distribute traffic across the instances in your Auto Scaling /// group</a> in the <i>Amazon EC2 Auto Scaling User Guide</i>. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the AttachLoadBalancers service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the AttachLoadBalancers service method, as returned by AutoScaling.</returns> /// <exception cref="Amazon.AutoScaling.Model.ResourceContentionException"> /// You already have a pending update to an Amazon EC2 Auto Scaling resource (for example, /// an Auto Scaling group, instance, or load balancer). /// </exception> /// <exception cref="Amazon.AutoScaling.Model.ServiceLinkedRoleFailureException"> /// The service-linked role is not yet ready for use. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/AttachLoadBalancers">REST API Reference for AttachLoadBalancers Operation</seealso> Task<AttachLoadBalancersResponse> AttachLoadBalancersAsync(AttachLoadBalancersRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)); #endregion #region AttachLoadBalancerTargetGroups /// <summary> /// <note> /// <para> /// This API operation is superseded by <a>AttachTrafficSources</a>, which can attach /// multiple traffic sources types. We recommend using <code>AttachTrafficSources</code> /// to simplify how you manage traffic sources. However, we continue to support <code>AttachLoadBalancerTargetGroups</code>. /// You can use both the original <code>AttachLoadBalancerTargetGroups</code> API operation /// and <code>AttachTrafficSources</code> on the same Auto Scaling group. /// </para> /// </note> /// <para> /// Attaches one or more target groups to the specified Auto Scaling group. /// </para> /// /// <para> /// This operation is used with the following load balancer types: /// </para> /// <ul> <li> /// <para> /// Application Load Balancer - Operates at the application layer (layer 7) and supports /// HTTP and HTTPS. /// </para> /// </li> <li> /// <para> /// Network Load Balancer - Operates at the transport layer (layer 4) and supports TCP, /// TLS, and UDP. /// </para> /// </li> <li> /// <para> /// Gateway Load Balancer - Operates at the network layer (layer 3). /// </para> /// </li> </ul> /// <para> /// To describe the target groups for an Auto Scaling group, call the <a>DescribeLoadBalancerTargetGroups</a> /// API. To detach the target group from the Auto Scaling group, call the <a>DetachLoadBalancerTargetGroups</a> /// API. /// </para> /// /// <para> /// This operation is additive and does not detach existing target groups or Classic Load /// Balancers from the Auto Scaling group. /// </para> /// /// <para> /// For more information, see <a href="https://docs.aws.amazon.com/autoscaling/ec2/userguide/autoscaling-load-balancer.html">Use /// Elastic Load Balancing to distribute traffic across the instances in your Auto Scaling /// group</a> in the <i>Amazon EC2 Auto Scaling User Guide</i>. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the AttachLoadBalancerTargetGroups service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the AttachLoadBalancerTargetGroups service method, as returned by AutoScaling.</returns> /// <exception cref="Amazon.AutoScaling.Model.ResourceContentionException"> /// You already have a pending update to an Amazon EC2 Auto Scaling resource (for example, /// an Auto Scaling group, instance, or load balancer). /// </exception> /// <exception cref="Amazon.AutoScaling.Model.ServiceLinkedRoleFailureException"> /// The service-linked role is not yet ready for use. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/AttachLoadBalancerTargetGroups">REST API Reference for AttachLoadBalancerTargetGroups Operation</seealso> Task<AttachLoadBalancerTargetGroupsResponse> AttachLoadBalancerTargetGroupsAsync(AttachLoadBalancerTargetGroupsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)); #endregion #region AttachTrafficSources /// <summary> /// Attaches one or more traffic sources to the specified Auto Scaling group. /// /// /// <para> /// You can use any of the following as traffic sources for an Auto Scaling group: /// </para> /// <ul> <li> /// <para> /// Application Load Balancer /// </para> /// </li> <li> /// <para> /// Classic Load Balancer /// </para> /// </li> <li> /// <para> /// Gateway Load Balancer /// </para> /// </li> <li> /// <para> /// Network Load Balancer /// </para> /// </li> <li> /// <para> /// VPC Lattice /// </para> /// </li> </ul> /// <para> /// This operation is additive and does not detach existing traffic sources from the Auto /// Scaling group. /// </para> /// /// <para> /// After the operation completes, use the <a>DescribeTrafficSources</a> API to return /// details about the state of the attachments between traffic sources and your Auto Scaling /// group. To detach a traffic source from the Auto Scaling group, call the <a>DetachTrafficSources</a> /// API. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the AttachTrafficSources service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the AttachTrafficSources service method, as returned by AutoScaling.</returns> /// <exception cref="Amazon.AutoScaling.Model.ResourceContentionException"> /// You already have a pending update to an Amazon EC2 Auto Scaling resource (for example, /// an Auto Scaling group, instance, or load balancer). /// </exception> /// <exception cref="Amazon.AutoScaling.Model.ServiceLinkedRoleFailureException"> /// The service-linked role is not yet ready for use. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/AttachTrafficSources">REST API Reference for AttachTrafficSources Operation</seealso> Task<AttachTrafficSourcesResponse> AttachTrafficSourcesAsync(AttachTrafficSourcesRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)); #endregion #region BatchDeleteScheduledAction /// <summary> /// Deletes one or more scheduled actions for the specified Auto Scaling group. /// </summary> /// <param name="request">Container for the necessary parameters to execute the BatchDeleteScheduledAction service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the BatchDeleteScheduledAction service method, as returned by AutoScaling.</returns> /// <exception cref="Amazon.AutoScaling.Model.ResourceContentionException"> /// You already have a pending update to an Amazon EC2 Auto Scaling resource (for example, /// an Auto Scaling group, instance, or load balancer). /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/BatchDeleteScheduledAction">REST API Reference for BatchDeleteScheduledAction Operation</seealso> Task<BatchDeleteScheduledActionResponse> BatchDeleteScheduledActionAsync(BatchDeleteScheduledActionRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)); #endregion #region BatchPutScheduledUpdateGroupAction /// <summary> /// Creates or updates one or more scheduled scaling actions for an Auto Scaling group. /// </summary> /// <param name="request">Container for the necessary parameters to execute the BatchPutScheduledUpdateGroupAction service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the BatchPutScheduledUpdateGroupAction service method, as returned by AutoScaling.</returns> /// <exception cref="Amazon.AutoScaling.Model.AlreadyExistsException"> /// You already have an Auto Scaling group or launch configuration with this name. /// </exception> /// <exception cref="Amazon.AutoScaling.Model.LimitExceededException"> /// You have already reached a limit for your Amazon EC2 Auto Scaling resources (for example, /// Auto Scaling groups, launch configurations, or lifecycle hooks). For more information, /// see <a href="https://docs.aws.amazon.com/autoscaling/ec2/APIReference/API_DescribeAccountLimits.html">DescribeAccountLimits</a> /// in the <i>Amazon EC2 Auto Scaling API Reference</i>. /// </exception> /// <exception cref="Amazon.AutoScaling.Model.ResourceContentionException"> /// You already have a pending update to an Amazon EC2 Auto Scaling resource (for example, /// an Auto Scaling group, instance, or load balancer). /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/BatchPutScheduledUpdateGroupAction">REST API Reference for BatchPutScheduledUpdateGroupAction Operation</seealso> Task<BatchPutScheduledUpdateGroupActionResponse> BatchPutScheduledUpdateGroupActionAsync(BatchPutScheduledUpdateGroupActionRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)); #endregion #region CancelInstanceRefresh /// <summary> /// Cancels an instance refresh or rollback that is in progress. If an instance refresh /// or rollback is not in progress, an <code>ActiveInstanceRefreshNotFound</code> error /// occurs. /// /// /// <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> /// When you cancel an instance refresh, this does not roll back any changes that it made. /// Use the <a>RollbackInstanceRefresh</a> API to roll back instead. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the CancelInstanceRefresh service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the CancelInstanceRefresh service method, as returned by AutoScaling.</returns> /// <exception cref="Amazon.AutoScaling.Model.ActiveInstanceRefreshNotFoundException"> /// The request failed because an active instance refresh or rollback for the specified /// Auto Scaling group was not found. /// </exception> /// <exception cref="Amazon.AutoScaling.Model.LimitExceededException"> /// You have already reached a limit for your Amazon EC2 Auto Scaling resources (for example, /// Auto Scaling groups, launch configurations, or lifecycle hooks). For more information, /// see <a href="https://docs.aws.amazon.com/autoscaling/ec2/APIReference/API_DescribeAccountLimits.html">DescribeAccountLimits</a> /// in the <i>Amazon EC2 Auto Scaling API Reference</i>. /// </exception> /// <exception cref="Amazon.AutoScaling.Model.ResourceContentionException"> /// You already have a pending update to an Amazon EC2 Auto Scaling resource (for example, /// an Auto Scaling group, instance, or load balancer). /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/CancelInstanceRefresh">REST API Reference for CancelInstanceRefresh Operation</seealso> Task<CancelInstanceRefreshResponse> CancelInstanceRefreshAsync(CancelInstanceRefreshRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)); #endregion #region CompleteLifecycleAction /// <summary> /// Completes the lifecycle action for the specified token or instance with the specified /// result. /// /// /// <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> /// If you need more time, record the lifecycle action heartbeat to keep the instance /// in a wait state. /// </para> /// </li> <li> /// <para> /// <b>If you finish before the timeout period ends, send a callback by using the <a>CompleteLifecycleAction</a> /// API call.</b> /// </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> /// <param name="request">Container for the necessary parameters to execute the CompleteLifecycleAction service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the CompleteLifecycleAction service method, as returned by AutoScaling.</returns> /// <exception cref="Amazon.AutoScaling.Model.ResourceContentionException"> /// You already have a pending update to an Amazon EC2 Auto Scaling resource (for example, /// an Auto Scaling group, instance, or load balancer). /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/CompleteLifecycleAction">REST API Reference for CompleteLifecycleAction Operation</seealso> Task<CompleteLifecycleActionResponse> CompleteLifecycleActionAsync(CompleteLifecycleActionRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)); #endregion #region CreateAutoScalingGroup /// <summary> /// <b>We strongly recommend using a launch template when calling this operation to ensure /// full functionality for Amazon EC2 Auto Scaling and Amazon EC2.</b> /// /// /// <para> /// Creates an Auto Scaling group with the specified name and attributes. /// </para> /// /// <para> /// If you exceed your maximum limit of Auto Scaling groups, the call fails. To query /// this limit, call the <a>DescribeAccountLimits</a> API. For information about updating /// this limit, see <a href="https://docs.aws.amazon.com/autoscaling/ec2/userguide/ec2-auto-scaling-quotas.html">Quotas /// for Amazon EC2 Auto Scaling</a> in the <i>Amazon EC2 Auto Scaling User Guide</i>. /// </para> /// /// <para> /// For introductory exercises for creating an Auto Scaling group, see <a href="https://docs.aws.amazon.com/autoscaling/ec2/userguide/GettingStartedTutorial.html">Getting /// started with Amazon EC2 Auto Scaling</a> and <a href="https://docs.aws.amazon.com/autoscaling/ec2/userguide/as-register-lbs-with-asg.html">Tutorial: /// Set up a scaled and load-balanced application</a> in the <i>Amazon EC2 Auto Scaling /// User Guide</i>. For more information, see <a href="https://docs.aws.amazon.com/autoscaling/ec2/userguide/AutoScalingGroup.html">Auto /// Scaling groups</a> in the <i>Amazon EC2 Auto Scaling User Guide</i>. /// </para> /// /// <para> /// Every Auto Scaling group has three size properties (<code>DesiredCapacity</code>, /// <code>MaxSize</code>, and <code>MinSize</code>). Usually, you set these sizes based /// on a specific number of instances. However, if you configure a mixed instances policy /// that defines weights for the instance types, you must specify these sizes with the /// same units that you use for weighting instances. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the CreateAutoScalingGroup service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the CreateAutoScalingGroup service method, as returned by AutoScaling.</returns> /// <exception cref="Amazon.AutoScaling.Model.AlreadyExistsException"> /// You already have an Auto Scaling group or launch configuration with this name. /// </exception> /// <exception cref="Amazon.AutoScaling.Model.LimitExceededException"> /// You have already reached a limit for your Amazon EC2 Auto Scaling resources (for example, /// Auto Scaling groups, launch configurations, or lifecycle hooks). For more information, /// see <a href="https://docs.aws.amazon.com/autoscaling/ec2/APIReference/API_DescribeAccountLimits.html">DescribeAccountLimits</a> /// in the <i>Amazon EC2 Auto Scaling API Reference</i>. /// </exception> /// <exception cref="Amazon.AutoScaling.Model.ResourceContentionException"> /// You already have a pending update to an Amazon EC2 Auto Scaling resource (for example, /// an Auto Scaling group, instance, or load balancer). /// </exception> /// <exception cref="Amazon.AutoScaling.Model.ServiceLinkedRoleFailureException"> /// The service-linked role is not yet ready for use. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/CreateAutoScalingGroup">REST API Reference for CreateAutoScalingGroup Operation</seealso> Task<CreateAutoScalingGroupResponse> CreateAutoScalingGroupAsync(CreateAutoScalingGroupRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)); #endregion #region CreateLaunchConfiguration /// <summary> /// Creates a launch configuration. /// /// /// <para> /// If you exceed your maximum limit of launch configurations, the call fails. To query /// this limit, call the <a>DescribeAccountLimits</a> API. For information about updating /// this limit, see <a href="https://docs.aws.amazon.com/autoscaling/ec2/userguide/ec2-auto-scaling-quotas.html">Quotas /// for Amazon EC2 Auto Scaling</a> in the <i>Amazon EC2 Auto Scaling User Guide</i>. /// </para> /// /// <para> /// For more information, see <a href="https://docs.aws.amazon.com/autoscaling/ec2/userguide/LaunchConfiguration.html">Launch /// configurations</a> in the <i>Amazon EC2 Auto Scaling User Guide</i>. /// </para> /// <note> /// <para> /// Amazon EC2 Auto Scaling configures instances launched as part of an Auto Scaling group /// using either a launch template or a launch configuration. We strongly recommend that /// you do not use launch configurations. They do not provide full functionality for Amazon /// EC2 Auto Scaling or Amazon EC2. For information about using launch templates, see /// <a href="https://docs.aws.amazon.com/autoscaling/ec2/userguide/launch-templates.html">Launch /// templates</a> in the <i>Amazon EC2 Auto Scaling User Guide</i>. /// </para> /// </note> /// </summary> /// <param name="request">Container for the necessary parameters to execute the CreateLaunchConfiguration service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the CreateLaunchConfiguration service method, as returned by AutoScaling.</returns> /// <exception cref="Amazon.AutoScaling.Model.AlreadyExistsException"> /// You already have an Auto Scaling group or launch configuration with this name. /// </exception> /// <exception cref="Amazon.AutoScaling.Model.LimitExceededException"> /// You have already reached a limit for your Amazon EC2 Auto Scaling resources (for example, /// Auto Scaling groups, launch configurations, or lifecycle hooks). For more information, /// see <a href="https://docs.aws.amazon.com/autoscaling/ec2/APIReference/API_DescribeAccountLimits.html">DescribeAccountLimits</a> /// in the <i>Amazon EC2 Auto Scaling API Reference</i>. /// </exception> /// <exception cref="Amazon.AutoScaling.Model.ResourceContentionException"> /// You already have a pending update to an Amazon EC2 Auto Scaling resource (for example, /// an Auto Scaling group, instance, or load balancer). /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/CreateLaunchConfiguration">REST API Reference for CreateLaunchConfiguration Operation</seealso> Task<CreateLaunchConfigurationResponse> CreateLaunchConfigurationAsync(CreateLaunchConfigurationRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)); #endregion #region CreateOrUpdateTags /// <summary> /// Creates or updates tags for the specified Auto Scaling group. /// /// /// <para> /// When you specify a tag with a key that already exists, the operation overwrites the /// previous tag definition, and you do not get an error message. /// </para> /// /// <para> /// For more information, see <a href="https://docs.aws.amazon.com/autoscaling/ec2/userguide/ec2-auto-scaling-tagging.html">Tag /// Auto Scaling groups and instances</a> in the <i>Amazon EC2 Auto Scaling User Guide</i>. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the CreateOrUpdateTags service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the CreateOrUpdateTags service method, as returned by AutoScaling.</returns> /// <exception cref="Amazon.AutoScaling.Model.AlreadyExistsException"> /// You already have an Auto Scaling group or launch configuration with this name. /// </exception> /// <exception cref="Amazon.AutoScaling.Model.LimitExceededException"> /// You have already reached a limit for your Amazon EC2 Auto Scaling resources (for example, /// Auto Scaling groups, launch configurations, or lifecycle hooks). For more information, /// see <a href="https://docs.aws.amazon.com/autoscaling/ec2/APIReference/API_DescribeAccountLimits.html">DescribeAccountLimits</a> /// in the <i>Amazon EC2 Auto Scaling API Reference</i>. /// </exception> /// <exception cref="Amazon.AutoScaling.Model.ResourceContentionException"> /// You already have a pending update to an Amazon EC2 Auto Scaling resource (for example, /// an Auto Scaling group, instance, or load balancer). /// </exception> /// <exception cref="Amazon.AutoScaling.Model.ResourceInUseException"> /// The operation can't be performed because the resource is in use. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/CreateOrUpdateTags">REST API Reference for CreateOrUpdateTags Operation</seealso> Task<CreateOrUpdateTagsResponse> CreateOrUpdateTagsAsync(CreateOrUpdateTagsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)); #endregion #region DeleteAutoScalingGroup /// <summary> /// Deletes the specified Auto Scaling group. /// /// /// <para> /// If the group has instances or scaling activities in progress, you must specify the /// option to force the deletion in order for it to succeed. The force delete operation /// will also terminate the EC2 instances. If the group has a warm pool, the force delete /// option also deletes the warm pool. /// </para> /// /// <para> /// To remove instances from the Auto Scaling group before deleting it, call the <a>DetachInstances</a> /// API with the list of instances and the option to decrement the desired capacity. This /// ensures that Amazon EC2 Auto Scaling does not launch replacement instances. /// </para> /// /// <para> /// To terminate all instances before deleting the Auto Scaling group, call the <a>UpdateAutoScalingGroup</a> /// API and set the minimum size and desired capacity of the Auto Scaling group to zero. /// </para> /// /// <para> /// If the group has scaling policies, deleting the group deletes the policies, the underlying /// alarm actions, and any alarm that no longer has an associated action. /// </para> /// /// <para> /// For more information, see <a href="https://docs.aws.amazon.com/autoscaling/ec2/userguide/as-process-shutdown.html">Delete /// your Auto Scaling infrastructure</a> in the <i>Amazon EC2 Auto Scaling User Guide</i>. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the DeleteAutoScalingGroup service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the DeleteAutoScalingGroup service method, as returned by AutoScaling.</returns> /// <exception cref="Amazon.AutoScaling.Model.ResourceContentionException"> /// You already have a pending update to an Amazon EC2 Auto Scaling resource (for example, /// an Auto Scaling group, instance, or load balancer). /// </exception> /// <exception cref="Amazon.AutoScaling.Model.ResourceInUseException"> /// The operation can't be performed because the resource is in use. /// </exception> /// <exception cref="Amazon.AutoScaling.Model.ScalingActivityInProgressException"> /// The operation can't be performed because there are scaling activities in progress. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/DeleteAutoScalingGroup">REST API Reference for DeleteAutoScalingGroup Operation</seealso> Task<DeleteAutoScalingGroupResponse> DeleteAutoScalingGroupAsync(DeleteAutoScalingGroupRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)); #endregion #region DeleteLaunchConfiguration /// <summary> /// Deletes the specified launch configuration. /// /// /// <para> /// The launch configuration must not be attached to an Auto Scaling group. When this /// call completes, the launch configuration is no longer available for use. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the DeleteLaunchConfiguration service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the DeleteLaunchConfiguration service method, as returned by AutoScaling.</returns> /// <exception cref="Amazon.AutoScaling.Model.ResourceContentionException"> /// You already have a pending update to an Amazon EC2 Auto Scaling resource (for example, /// an Auto Scaling group, instance, or load balancer). /// </exception> /// <exception cref="Amazon.AutoScaling.Model.ResourceInUseException"> /// The operation can't be performed because the resource is in use. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/DeleteLaunchConfiguration">REST API Reference for DeleteLaunchConfiguration Operation</seealso> Task<DeleteLaunchConfigurationResponse> DeleteLaunchConfigurationAsync(DeleteLaunchConfigurationRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)); #endregion #region DeleteLifecycleHook /// <summary> /// Deletes the specified lifecycle hook. /// /// /// <para> /// If there are any outstanding lifecycle actions, they are completed first (<code>ABANDON</code> /// for launching instances, <code>CONTINUE</code> for terminating instances). /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the DeleteLifecycleHook service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the DeleteLifecycleHook service method, as returned by AutoScaling.</returns> /// <exception cref="Amazon.AutoScaling.Model.ResourceContentionException"> /// You already have a pending update to an Amazon EC2 Auto Scaling resource (for example, /// an Auto Scaling group, instance, or load balancer). /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/DeleteLifecycleHook">REST API Reference for DeleteLifecycleHook Operation</seealso> Task<DeleteLifecycleHookResponse> DeleteLifecycleHookAsync(DeleteLifecycleHookRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)); #endregion #region DeleteNotificationConfiguration /// <summary> /// Deletes the specified notification. /// </summary> /// <param name="request">Container for the necessary parameters to execute the DeleteNotificationConfiguration service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the DeleteNotificationConfiguration service method, as returned by AutoScaling.</returns> /// <exception cref="Amazon.AutoScaling.Model.ResourceContentionException"> /// You already have a pending update to an Amazon EC2 Auto Scaling resource (for example, /// an Auto Scaling group, instance, or load balancer). /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/DeleteNotificationConfiguration">REST API Reference for DeleteNotificationConfiguration Operation</seealso> Task<DeleteNotificationConfigurationResponse> DeleteNotificationConfigurationAsync(DeleteNotificationConfigurationRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)); #endregion #region DeletePolicy /// <summary> /// Deletes the specified scaling policy. /// /// /// <para> /// Deleting either a step scaling policy or a simple scaling policy deletes the underlying /// alarm action, but does not delete the alarm, even if it no longer has an associated /// action. /// </para> /// /// <para> /// For more information, see <a href="https://docs.aws.amazon.com/autoscaling/ec2/userguide/deleting-scaling-policy.html">Deleting /// a scaling policy</a> in the <i>Amazon EC2 Auto Scaling User Guide</i>. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the DeletePolicy service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the DeletePolicy service method, as returned by AutoScaling.</returns> /// <exception cref="Amazon.AutoScaling.Model.ResourceContentionException"> /// You already have a pending update to an Amazon EC2 Auto Scaling resource (for example, /// an Auto Scaling group, instance, or load balancer). /// </exception> /// <exception cref="Amazon.AutoScaling.Model.ServiceLinkedRoleFailureException"> /// The service-linked role is not yet ready for use. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/DeletePolicy">REST API Reference for DeletePolicy Operation</seealso> Task<DeletePolicyResponse> DeletePolicyAsync(DeletePolicyRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)); #endregion #region DeleteScheduledAction /// <summary> /// Deletes the specified scheduled action. /// </summary> /// <param name="request">Container for the necessary parameters to execute the DeleteScheduledAction service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the DeleteScheduledAction service method, as returned by AutoScaling.</returns> /// <exception cref="Amazon.AutoScaling.Model.ResourceContentionException"> /// You already have a pending update to an Amazon EC2 Auto Scaling resource (for example, /// an Auto Scaling group, instance, or load balancer). /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/DeleteScheduledAction">REST API Reference for DeleteScheduledAction Operation</seealso> Task<DeleteScheduledActionResponse> DeleteScheduledActionAsync(DeleteScheduledActionRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)); #endregion #region DeleteTags /// <summary> /// Deletes the specified tags. /// </summary> /// <param name="request">Container for the necessary parameters to execute the DeleteTags service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the DeleteTags service method, as returned by AutoScaling.</returns> /// <exception cref="Amazon.AutoScaling.Model.ResourceContentionException"> /// You already have a pending update to an Amazon EC2 Auto Scaling resource (for example, /// an Auto Scaling group, instance, or load balancer). /// </exception> /// <exception cref="Amazon.AutoScaling.Model.ResourceInUseException"> /// The operation can't be performed because the resource is in use. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/DeleteTags">REST API Reference for DeleteTags Operation</seealso> Task<DeleteTagsResponse> DeleteTagsAsync(DeleteTagsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)); #endregion #region DeleteWarmPool /// <summary> /// Deletes the warm pool for the specified Auto Scaling group. /// /// /// <para> /// For more information, 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> /// </summary> /// <param name="request">Container for the necessary parameters to execute the DeleteWarmPool service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the DeleteWarmPool service method, as returned by AutoScaling.</returns> /// <exception cref="Amazon.AutoScaling.Model.LimitExceededException"> /// You have already reached a limit for your Amazon EC2 Auto Scaling resources (for example, /// Auto Scaling groups, launch configurations, or lifecycle hooks). For more information, /// see <a href="https://docs.aws.amazon.com/autoscaling/ec2/APIReference/API_DescribeAccountLimits.html">DescribeAccountLimits</a> /// in the <i>Amazon EC2 Auto Scaling API Reference</i>. /// </exception> /// <exception cref="Amazon.AutoScaling.Model.ResourceContentionException"> /// You already have a pending update to an Amazon EC2 Auto Scaling resource (for example, /// an Auto Scaling group, instance, or load balancer). /// </exception> /// <exception cref="Amazon.AutoScaling.Model.ResourceInUseException"> /// The operation can't be performed because the resource is in use. /// </exception> /// <exception cref="Amazon.AutoScaling.Model.ScalingActivityInProgressException"> /// The operation can't be performed because there are scaling activities in progress. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/DeleteWarmPool">REST API Reference for DeleteWarmPool Operation</seealso> Task<DeleteWarmPoolResponse> DeleteWarmPoolAsync(DeleteWarmPoolRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)); #endregion #region DescribeAccountLimits /// <summary> /// Describes the current Amazon EC2 Auto Scaling resource quotas for your account. /// /// /// <para> /// When you establish an Amazon Web Services account, the account has initial quotas /// on the maximum number of Auto Scaling groups and launch configurations that you can /// create in a given Region. For more information, see <a href="https://docs.aws.amazon.com/autoscaling/ec2/userguide/ec2-auto-scaling-quotas.html">Quotas /// for Amazon EC2 Auto Scaling</a> in the <i>Amazon EC2 Auto Scaling User Guide</i>. /// </para> /// </summary> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the DescribeAccountLimits service method, as returned by AutoScaling.</returns> /// <exception cref="Amazon.AutoScaling.Model.ResourceContentionException"> /// You already have a pending update to an Amazon EC2 Auto Scaling resource (for example, /// an Auto Scaling group, instance, or load balancer). /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/DescribeAccountLimits">REST API Reference for DescribeAccountLimits Operation</seealso> Task<DescribeAccountLimitsResponse> DescribeAccountLimitsAsync(System.Threading.CancellationToken cancellationToken = default(CancellationToken)); /// <summary> /// Describes the current Amazon EC2 Auto Scaling resource quotas for your account. /// /// /// <para> /// When you establish an Amazon Web Services account, the account has initial quotas /// on the maximum number of Auto Scaling groups and launch configurations that you can /// create in a given Region. For more information, see <a href="https://docs.aws.amazon.com/autoscaling/ec2/userguide/ec2-auto-scaling-quotas.html">Quotas /// for Amazon EC2 Auto Scaling</a> in the <i>Amazon EC2 Auto Scaling User Guide</i>. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the DescribeAccountLimits service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the DescribeAccountLimits service method, as returned by AutoScaling.</returns> /// <exception cref="Amazon.AutoScaling.Model.ResourceContentionException"> /// You already have a pending update to an Amazon EC2 Auto Scaling resource (for example, /// an Auto Scaling group, instance, or load balancer). /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/DescribeAccountLimits">REST API Reference for DescribeAccountLimits Operation</seealso> Task<DescribeAccountLimitsResponse> DescribeAccountLimitsAsync(DescribeAccountLimitsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)); #endregion #region DescribeAdjustmentTypes /// <summary> /// Describes the available adjustment types for step scaling and simple scaling policies. /// /// /// <para> /// The following adjustment types are supported: /// </para> /// <ul> <li> /// <para> /// <code>ChangeInCapacity</code> /// </para> /// </li> <li> /// <para> /// <code>ExactCapacity</code> /// </para> /// </li> <li> /// <para> /// <code>PercentChangeInCapacity</code> /// </para> /// </li> </ul> /// </summary> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the DescribeAdjustmentTypes service method, as returned by AutoScaling.</returns> /// <exception cref="Amazon.AutoScaling.Model.ResourceContentionException"> /// You already have a pending update to an Amazon EC2 Auto Scaling resource (for example, /// an Auto Scaling group, instance, or load balancer). /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/DescribeAdjustmentTypes">REST API Reference for DescribeAdjustmentTypes Operation</seealso> Task<DescribeAdjustmentTypesResponse> DescribeAdjustmentTypesAsync(System.Threading.CancellationToken cancellationToken = default(CancellationToken)); /// <summary> /// Describes the available adjustment types for step scaling and simple scaling policies. /// /// /// <para> /// The following adjustment types are supported: /// </para> /// <ul> <li> /// <para> /// <code>ChangeInCapacity</code> /// </para> /// </li> <li> /// <para> /// <code>ExactCapacity</code> /// </para> /// </li> <li> /// <para> /// <code>PercentChangeInCapacity</code> /// </para> /// </li> </ul> /// </summary> /// <param name="request">Container for the necessary parameters to execute the DescribeAdjustmentTypes service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the DescribeAdjustmentTypes service method, as returned by AutoScaling.</returns> /// <exception cref="Amazon.AutoScaling.Model.ResourceContentionException"> /// You already have a pending update to an Amazon EC2 Auto Scaling resource (for example, /// an Auto Scaling group, instance, or load balancer). /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/DescribeAdjustmentTypes">REST API Reference for DescribeAdjustmentTypes Operation</seealso> Task<DescribeAdjustmentTypesResponse> DescribeAdjustmentTypesAsync(DescribeAdjustmentTypesRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)); #endregion #region DescribeAutoScalingGroups /// <summary> /// Gets information about the Auto Scaling groups in the account and Region. /// /// /// <para> /// If you specify Auto Scaling group names, the output includes information for only /// the specified Auto Scaling groups. If you specify filters, the output includes information /// for only those Auto Scaling groups that meet the filter criteria. If you do not specify /// group names or filters, the output includes information for all Auto Scaling groups. /// /// </para> /// /// <para> /// This operation also returns information about instances in Auto Scaling groups. To /// retrieve information about the instances in a warm pool, you must call the <a>DescribeWarmPool</a> /// API. /// </para> /// </summary> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the DescribeAutoScalingGroups service method, as returned by AutoScaling.</returns> /// <exception cref="Amazon.AutoScaling.Model.InvalidNextTokenException"> /// The <code>NextToken</code> value is not valid. /// </exception> /// <exception cref="Amazon.AutoScaling.Model.ResourceContentionException"> /// You already have a pending update to an Amazon EC2 Auto Scaling resource (for example, /// an Auto Scaling group, instance, or load balancer). /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/DescribeAutoScalingGroups">REST API Reference for DescribeAutoScalingGroups Operation</seealso> Task<DescribeAutoScalingGroupsResponse> DescribeAutoScalingGroupsAsync(System.Threading.CancellationToken cancellationToken = default(CancellationToken)); /// <summary> /// Gets information about the Auto Scaling groups in the account and Region. /// /// /// <para> /// If you specify Auto Scaling group names, the output includes information for only /// the specified Auto Scaling groups. If you specify filters, the output includes information /// for only those Auto Scaling groups that meet the filter criteria. If you do not specify /// group names or filters, the output includes information for all Auto Scaling groups. /// /// </para> /// /// <para> /// This operation also returns information about instances in Auto Scaling groups. To /// retrieve information about the instances in a warm pool, you must call the <a>DescribeWarmPool</a> /// API. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the DescribeAutoScalingGroups service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the DescribeAutoScalingGroups service method, as returned by AutoScaling.</returns> /// <exception cref="Amazon.AutoScaling.Model.InvalidNextTokenException"> /// The <code>NextToken</code> value is not valid. /// </exception> /// <exception cref="Amazon.AutoScaling.Model.ResourceContentionException"> /// You already have a pending update to an Amazon EC2 Auto Scaling resource (for example, /// an Auto Scaling group, instance, or load balancer). /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/DescribeAutoScalingGroups">REST API Reference for DescribeAutoScalingGroups Operation</seealso> Task<DescribeAutoScalingGroupsResponse> DescribeAutoScalingGroupsAsync(DescribeAutoScalingGroupsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)); #endregion #region DescribeAutoScalingInstances /// <summary> /// Gets information about the Auto Scaling instances in the account and Region. /// </summary> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the DescribeAutoScalingInstances service method, as returned by AutoScaling.</returns> /// <exception cref="Amazon.AutoScaling.Model.InvalidNextTokenException"> /// The <code>NextToken</code> value is not valid. /// </exception> /// <exception cref="Amazon.AutoScaling.Model.ResourceContentionException"> /// You already have a pending update to an Amazon EC2 Auto Scaling resource (for example, /// an Auto Scaling group, instance, or load balancer). /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/DescribeAutoScalingInstances">REST API Reference for DescribeAutoScalingInstances Operation</seealso> Task<DescribeAutoScalingInstancesResponse> DescribeAutoScalingInstancesAsync(System.Threading.CancellationToken cancellationToken = default(CancellationToken)); /// <summary> /// Gets information about the Auto Scaling instances in the account and Region. /// </summary> /// <param name="request">Container for the necessary parameters to execute the DescribeAutoScalingInstances service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the DescribeAutoScalingInstances service method, as returned by AutoScaling.</returns> /// <exception cref="Amazon.AutoScaling.Model.InvalidNextTokenException"> /// The <code>NextToken</code> value is not valid. /// </exception> /// <exception cref="Amazon.AutoScaling.Model.ResourceContentionException"> /// You already have a pending update to an Amazon EC2 Auto Scaling resource (for example, /// an Auto Scaling group, instance, or load balancer). /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/DescribeAutoScalingInstances">REST API Reference for DescribeAutoScalingInstances Operation</seealso> Task<DescribeAutoScalingInstancesResponse> DescribeAutoScalingInstancesAsync(DescribeAutoScalingInstancesRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)); #endregion #region DescribeAutoScalingNotificationTypes /// <summary> /// Describes the notification types that are supported by Amazon EC2 Auto Scaling. /// </summary> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the DescribeAutoScalingNotificationTypes service method, as returned by AutoScaling.</returns> /// <exception cref="Amazon.AutoScaling.Model.ResourceContentionException"> /// You already have a pending update to an Amazon EC2 Auto Scaling resource (for example, /// an Auto Scaling group, instance, or load balancer). /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/DescribeAutoScalingNotificationTypes">REST API Reference for DescribeAutoScalingNotificationTypes Operation</seealso> Task<DescribeAutoScalingNotificationTypesResponse> DescribeAutoScalingNotificationTypesAsync(System.Threading.CancellationToken cancellationToken = default(CancellationToken)); /// <summary> /// Describes the notification types that are supported by Amazon EC2 Auto Scaling. /// </summary> /// <param name="request">Container for the necessary parameters to execute the DescribeAutoScalingNotificationTypes service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the DescribeAutoScalingNotificationTypes service method, as returned by AutoScaling.</returns> /// <exception cref="Amazon.AutoScaling.Model.ResourceContentionException"> /// You already have a pending update to an Amazon EC2 Auto Scaling resource (for example, /// an Auto Scaling group, instance, or load balancer). /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/DescribeAutoScalingNotificationTypes">REST API Reference for DescribeAutoScalingNotificationTypes Operation</seealso> Task<DescribeAutoScalingNotificationTypesResponse> DescribeAutoScalingNotificationTypesAsync(DescribeAutoScalingNotificationTypesRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)); #endregion #region DescribeInstanceRefreshes /// <summary> /// Gets information about the instance refreshes for the specified 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 after you make configuration changes. /// </para> /// /// <para> /// To help you determine the status of an instance refresh, Amazon EC2 Auto Scaling returns /// information about the instance refreshes you previously initiated, including their /// status, start time, end time, the percentage of the instance refresh that is complete, /// and the number of instances remaining to update before the instance refresh is complete. /// If a rollback is initiated while an instance refresh is in progress, Amazon EC2 Auto /// Scaling also returns information about the rollback of the instance refresh. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the DescribeInstanceRefreshes service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the DescribeInstanceRefreshes service method, as returned by AutoScaling.</returns> /// <exception cref="Amazon.AutoScaling.Model.InvalidNextTokenException"> /// The <code>NextToken</code> value is not valid. /// </exception> /// <exception cref="Amazon.AutoScaling.Model.ResourceContentionException"> /// You already have a pending update to an Amazon EC2 Auto Scaling resource (for example, /// an Auto Scaling group, instance, or load balancer). /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/DescribeInstanceRefreshes">REST API Reference for DescribeInstanceRefreshes Operation</seealso> Task<DescribeInstanceRefreshesResponse> DescribeInstanceRefreshesAsync(DescribeInstanceRefreshesRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)); #endregion #region DescribeLaunchConfigurations /// <summary> /// Gets information about the launch configurations in the account and Region. /// </summary> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the DescribeLaunchConfigurations service method, as returned by AutoScaling.</returns> /// <exception cref="Amazon.AutoScaling.Model.InvalidNextTokenException"> /// The <code>NextToken</code> value is not valid. /// </exception> /// <exception cref="Amazon.AutoScaling.Model.ResourceContentionException"> /// You already have a pending update to an Amazon EC2 Auto Scaling resource (for example, /// an Auto Scaling group, instance, or load balancer). /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/DescribeLaunchConfigurations">REST API Reference for DescribeLaunchConfigurations Operation</seealso> Task<DescribeLaunchConfigurationsResponse> DescribeLaunchConfigurationsAsync(System.Threading.CancellationToken cancellationToken = default(CancellationToken)); /// <summary> /// Gets information about the launch configurations in the account and Region. /// </summary> /// <param name="request">Container for the necessary parameters to execute the DescribeLaunchConfigurations service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the DescribeLaunchConfigurations service method, as returned by AutoScaling.</returns> /// <exception cref="Amazon.AutoScaling.Model.InvalidNextTokenException"> /// The <code>NextToken</code> value is not valid. /// </exception> /// <exception cref="Amazon.AutoScaling.Model.ResourceContentionException"> /// You already have a pending update to an Amazon EC2 Auto Scaling resource (for example, /// an Auto Scaling group, instance, or load balancer). /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/DescribeLaunchConfigurations">REST API Reference for DescribeLaunchConfigurations Operation</seealso> Task<DescribeLaunchConfigurationsResponse> DescribeLaunchConfigurationsAsync(DescribeLaunchConfigurationsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)); #endregion #region DescribeLifecycleHooks /// <summary> /// Gets information about the lifecycle hooks for the specified Auto Scaling group. /// </summary> /// <param name="request">Container for the necessary parameters to execute the DescribeLifecycleHooks service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the DescribeLifecycleHooks service method, as returned by AutoScaling.</returns> /// <exception cref="Amazon.AutoScaling.Model.ResourceContentionException"> /// You already have a pending update to an Amazon EC2 Auto Scaling resource (for example, /// an Auto Scaling group, instance, or load balancer). /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/DescribeLifecycleHooks">REST API Reference for DescribeLifecycleHooks Operation</seealso> Task<DescribeLifecycleHooksResponse> DescribeLifecycleHooksAsync(DescribeLifecycleHooksRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)); #endregion #region DescribeLifecycleHookTypes /// <summary> /// Describes the available types of lifecycle hooks. /// /// /// <para> /// The following hook types are supported: /// </para> /// <ul> <li> /// <para> /// <code>autoscaling:EC2_INSTANCE_LAUNCHING</code> /// </para> /// </li> <li> /// <para> /// <code>autoscaling:EC2_INSTANCE_TERMINATING</code> /// </para> /// </li> </ul> /// </summary> /// <param name="request">Container for the necessary parameters to execute the DescribeLifecycleHookTypes service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the DescribeLifecycleHookTypes service method, as returned by AutoScaling.</returns> /// <exception cref="Amazon.AutoScaling.Model.ResourceContentionException"> /// You already have a pending update to an Amazon EC2 Auto Scaling resource (for example, /// an Auto Scaling group, instance, or load balancer). /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/DescribeLifecycleHookTypes">REST API Reference for DescribeLifecycleHookTypes Operation</seealso> Task<DescribeLifecycleHookTypesResponse> DescribeLifecycleHookTypesAsync(DescribeLifecycleHookTypesRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)); #endregion #region DescribeLoadBalancers /// <summary> /// <note> /// <para> /// This API operation is superseded by <a>DescribeTrafficSources</a>, which can describe /// multiple traffic sources types. We recommend using <code>DescribeTrafficSources</code> /// to simplify how you manage traffic sources. However, we continue to support <code>DescribeLoadBalancers</code>. /// You can use both the original <code>DescribeLoadBalancers</code> API operation and /// <code>DescribeTrafficSources</code> on the same Auto Scaling group. /// </para> /// </note> /// <para> /// Gets information about the load balancers for the specified Auto Scaling group. /// </para> /// /// <para> /// This operation describes only Classic Load Balancers. If you have Application Load /// Balancers, Network Load Balancers, or Gateway Load Balancers, use the <a>DescribeLoadBalancerTargetGroups</a> /// API instead. /// </para> /// /// <para> /// To determine the attachment status of the load balancer, use the <code>State</code> /// element in the response. When you attach a load balancer to an Auto Scaling group, /// the initial <code>State</code> value is <code>Adding</code>. The state transitions /// to <code>Added</code> after all Auto Scaling instances are registered with the load /// balancer. If Elastic Load Balancing health checks are enabled for the Auto Scaling /// group, the state transitions to <code>InService</code> after at least one Auto Scaling /// instance passes the health check. When the load balancer is in the <code>InService</code> /// state, Amazon EC2 Auto Scaling can terminate and replace any instances that are reported /// as unhealthy. If no registered instances pass the health checks, the load balancer /// doesn't enter the <code>InService</code> state. /// </para> /// /// <para> /// Load balancers also have an <code>InService</code> state if you attach them in the /// <a>CreateAutoScalingGroup</a> API call. If your load balancer state is <code>InService</code>, /// but it is not working properly, check the scaling activities by calling <a>DescribeScalingActivities</a> /// and take any corrective actions necessary. /// </para> /// /// <para> /// For help with failed health checks, see <a href="https://docs.aws.amazon.com/autoscaling/ec2/userguide/ts-as-healthchecks.html">Troubleshooting /// Amazon EC2 Auto Scaling: Health checks</a> in the <i>Amazon EC2 Auto Scaling User /// Guide</i>. For more information, see <a href="https://docs.aws.amazon.com/autoscaling/ec2/userguide/autoscaling-load-balancer.html">Use /// Elastic Load Balancing to distribute traffic across the instances in your Auto Scaling /// group</a> in the <i>Amazon EC2 Auto Scaling User Guide</i>. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the DescribeLoadBalancers service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the DescribeLoadBalancers service method, as returned by AutoScaling.</returns> /// <exception cref="Amazon.AutoScaling.Model.InvalidNextTokenException"> /// The <code>NextToken</code> value is not valid. /// </exception> /// <exception cref="Amazon.AutoScaling.Model.ResourceContentionException"> /// You already have a pending update to an Amazon EC2 Auto Scaling resource (for example, /// an Auto Scaling group, instance, or load balancer). /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/DescribeLoadBalancers">REST API Reference for DescribeLoadBalancers Operation</seealso> Task<DescribeLoadBalancersResponse> DescribeLoadBalancersAsync(DescribeLoadBalancersRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)); #endregion #region DescribeLoadBalancerTargetGroups /// <summary> /// <note> /// <para> /// This API operation is superseded by <a>DescribeTrafficSources</a>, which can describe /// multiple traffic sources types. We recommend using <code>DetachTrafficSources</code> /// to simplify how you manage traffic sources. However, we continue to support <code>DescribeLoadBalancerTargetGroups</code>. /// You can use both the original <code>DescribeLoadBalancerTargetGroups</code> API operation /// and <code>DescribeTrafficSources</code> on the same Auto Scaling group. /// </para> /// </note> /// <para> /// Gets information about the Elastic Load Balancing target groups for the specified /// Auto Scaling group. /// </para> /// /// <para> /// To determine the attachment status of the target group, use the <code>State</code> /// element in the response. When you attach a target group to an Auto Scaling group, /// the initial <code>State</code> value is <code>Adding</code>. The state transitions /// to <code>Added</code> after all Auto Scaling instances are registered with the target /// group. If Elastic Load Balancing health checks are enabled for the Auto Scaling group, /// the state transitions to <code>InService</code> after at least one Auto Scaling instance /// passes the health check. When the target group is in the <code>InService</code> state, /// Amazon EC2 Auto Scaling can terminate and replace any instances that are reported /// as unhealthy. If no registered instances pass the health checks, the target group /// doesn't enter the <code>InService</code> state. /// </para> /// /// <para> /// Target groups also have an <code>InService</code> state if you attach them in the /// <a>CreateAutoScalingGroup</a> API call. If your target group state is <code>InService</code>, /// but it is not working properly, check the scaling activities by calling <a>DescribeScalingActivities</a> /// and take any corrective actions necessary. /// </para> /// /// <para> /// For help with failed health checks, see <a href="https://docs.aws.amazon.com/autoscaling/ec2/userguide/ts-as-healthchecks.html">Troubleshooting /// Amazon EC2 Auto Scaling: Health checks</a> in the <i>Amazon EC2 Auto Scaling User /// Guide</i>. For more information, see <a href="https://docs.aws.amazon.com/autoscaling/ec2/userguide/autoscaling-load-balancer.html">Use /// Elastic Load Balancing to distribute traffic across the instances in your Auto Scaling /// group</a> in the <i>Amazon EC2 Auto Scaling User Guide</i>. /// </para> /// <note> /// <para> /// You can use this operation to describe target groups that were attached by using <a>AttachLoadBalancerTargetGroups</a>, /// but not for target groups that were attached by using <a>AttachTrafficSources</a>. /// </para> /// </note> /// </summary> /// <param name="request">Container for the necessary parameters to execute the DescribeLoadBalancerTargetGroups service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the DescribeLoadBalancerTargetGroups service method, as returned by AutoScaling.</returns> /// <exception cref="Amazon.AutoScaling.Model.InvalidNextTokenException"> /// The <code>NextToken</code> value is not valid. /// </exception> /// <exception cref="Amazon.AutoScaling.Model.ResourceContentionException"> /// You already have a pending update to an Amazon EC2 Auto Scaling resource (for example, /// an Auto Scaling group, instance, or load balancer). /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/DescribeLoadBalancerTargetGroups">REST API Reference for DescribeLoadBalancerTargetGroups Operation</seealso> Task<DescribeLoadBalancerTargetGroupsResponse> DescribeLoadBalancerTargetGroupsAsync(DescribeLoadBalancerTargetGroupsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)); #endregion #region DescribeMetricCollectionTypes /// <summary> /// Describes the available CloudWatch metrics for Amazon EC2 Auto Scaling. /// </summary> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the DescribeMetricCollectionTypes service method, as returned by AutoScaling.</returns> /// <exception cref="Amazon.AutoScaling.Model.ResourceContentionException"> /// You already have a pending update to an Amazon EC2 Auto Scaling resource (for example, /// an Auto Scaling group, instance, or load balancer). /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/DescribeMetricCollectionTypes">REST API Reference for DescribeMetricCollectionTypes Operation</seealso> Task<DescribeMetricCollectionTypesResponse> DescribeMetricCollectionTypesAsync(System.Threading.CancellationToken cancellationToken = default(CancellationToken)); /// <summary> /// Describes the available CloudWatch metrics for Amazon EC2 Auto Scaling. /// </summary> /// <param name="request">Container for the necessary parameters to execute the DescribeMetricCollectionTypes service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the DescribeMetricCollectionTypes service method, as returned by AutoScaling.</returns> /// <exception cref="Amazon.AutoScaling.Model.ResourceContentionException"> /// You already have a pending update to an Amazon EC2 Auto Scaling resource (for example, /// an Auto Scaling group, instance, or load balancer). /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/DescribeMetricCollectionTypes">REST API Reference for DescribeMetricCollectionTypes Operation</seealso> Task<DescribeMetricCollectionTypesResponse> DescribeMetricCollectionTypesAsync(DescribeMetricCollectionTypesRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)); #endregion #region DescribeNotificationConfigurations /// <summary> /// Gets information about the Amazon SNS notifications that are configured for one or /// more Auto Scaling groups. /// </summary> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the DescribeNotificationConfigurations service method, as returned by AutoScaling.</returns> /// <exception cref="Amazon.AutoScaling.Model.InvalidNextTokenException"> /// The <code>NextToken</code> value is not valid. /// </exception> /// <exception cref="Amazon.AutoScaling.Model.ResourceContentionException"> /// You already have a pending update to an Amazon EC2 Auto Scaling resource (for example, /// an Auto Scaling group, instance, or load balancer). /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/DescribeNotificationConfigurations">REST API Reference for DescribeNotificationConfigurations Operation</seealso> Task<DescribeNotificationConfigurationsResponse> DescribeNotificationConfigurationsAsync(System.Threading.CancellationToken cancellationToken = default(CancellationToken)); /// <summary> /// Gets information about the Amazon SNS notifications that are configured for one or /// more Auto Scaling groups. /// </summary> /// <param name="request">Container for the necessary parameters to execute the DescribeNotificationConfigurations service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the DescribeNotificationConfigurations service method, as returned by AutoScaling.</returns> /// <exception cref="Amazon.AutoScaling.Model.InvalidNextTokenException"> /// The <code>NextToken</code> value is not valid. /// </exception> /// <exception cref="Amazon.AutoScaling.Model.ResourceContentionException"> /// You already have a pending update to an Amazon EC2 Auto Scaling resource (for example, /// an Auto Scaling group, instance, or load balancer). /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/DescribeNotificationConfigurations">REST API Reference for DescribeNotificationConfigurations Operation</seealso> Task<DescribeNotificationConfigurationsResponse> DescribeNotificationConfigurationsAsync(DescribeNotificationConfigurationsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)); #endregion #region DescribePolicies /// <summary> /// Gets information about the scaling policies in the account and Region. /// </summary> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the DescribePolicies service method, as returned by AutoScaling.</returns> /// <exception cref="Amazon.AutoScaling.Model.InvalidNextTokenException"> /// The <code>NextToken</code> value is not valid. /// </exception> /// <exception cref="Amazon.AutoScaling.Model.ResourceContentionException"> /// You already have a pending update to an Amazon EC2 Auto Scaling resource (for example, /// an Auto Scaling group, instance, or load balancer). /// </exception> /// <exception cref="Amazon.AutoScaling.Model.ServiceLinkedRoleFailureException"> /// The service-linked role is not yet ready for use. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/DescribePolicies">REST API Reference for DescribePolicies Operation</seealso> Task<DescribePoliciesResponse> DescribePoliciesAsync(System.Threading.CancellationToken cancellationToken = default(CancellationToken)); /// <summary> /// Gets information about the scaling policies in the account and Region. /// </summary> /// <param name="request">Container for the necessary parameters to execute the DescribePolicies service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the DescribePolicies service method, as returned by AutoScaling.</returns> /// <exception cref="Amazon.AutoScaling.Model.InvalidNextTokenException"> /// The <code>NextToken</code> value is not valid. /// </exception> /// <exception cref="Amazon.AutoScaling.Model.ResourceContentionException"> /// You already have a pending update to an Amazon EC2 Auto Scaling resource (for example, /// an Auto Scaling group, instance, or load balancer). /// </exception> /// <exception cref="Amazon.AutoScaling.Model.ServiceLinkedRoleFailureException"> /// The service-linked role is not yet ready for use. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/DescribePolicies">REST API Reference for DescribePolicies Operation</seealso> Task<DescribePoliciesResponse> DescribePoliciesAsync(DescribePoliciesRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)); #endregion #region DescribeScalingActivities /// <summary> /// Gets information about the scaling activities in the account and Region. /// /// /// <para> /// When scaling events occur, you see a record of the scaling activity in the scaling /// activities. For more information, see <a href="https://docs.aws.amazon.com/autoscaling/ec2/userguide/as-verify-scaling-activity.html">Verifying /// a scaling activity for an Auto Scaling group</a> in the <i>Amazon EC2 Auto Scaling /// User Guide</i>. /// </para> /// /// <para> /// If the scaling event succeeds, the value of the <code>StatusCode</code> element in /// the response is <code>Successful</code>. If an attempt to launch instances failed, /// the <code>StatusCode</code> value is <code>Failed</code> or <code>Cancelled</code> /// and the <code>StatusMessage</code> element in the response indicates the cause of /// the failure. For help interpreting the <code>StatusMessage</code>, see <a href="https://docs.aws.amazon.com/autoscaling/ec2/userguide/CHAP_Troubleshooting.html">Troubleshooting /// Amazon EC2 Auto Scaling</a> in the <i>Amazon EC2 Auto Scaling User Guide</i>. /// </para> /// </summary> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the DescribeScalingActivities service method, as returned by AutoScaling.</returns> /// <exception cref="Amazon.AutoScaling.Model.InvalidNextTokenException"> /// The <code>NextToken</code> value is not valid. /// </exception> /// <exception cref="Amazon.AutoScaling.Model.ResourceContentionException"> /// You already have a pending update to an Amazon EC2 Auto Scaling resource (for example, /// an Auto Scaling group, instance, or load balancer). /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/DescribeScalingActivities">REST API Reference for DescribeScalingActivities Operation</seealso> Task<DescribeScalingActivitiesResponse> DescribeScalingActivitiesAsync(System.Threading.CancellationToken cancellationToken = default(CancellationToken)); /// <summary> /// Gets information about the scaling activities in the account and Region. /// /// /// <para> /// When scaling events occur, you see a record of the scaling activity in the scaling /// activities. For more information, see <a href="https://docs.aws.amazon.com/autoscaling/ec2/userguide/as-verify-scaling-activity.html">Verifying /// a scaling activity for an Auto Scaling group</a> in the <i>Amazon EC2 Auto Scaling /// User Guide</i>. /// </para> /// /// <para> /// If the scaling event succeeds, the value of the <code>StatusCode</code> element in /// the response is <code>Successful</code>. If an attempt to launch instances failed, /// the <code>StatusCode</code> value is <code>Failed</code> or <code>Cancelled</code> /// and the <code>StatusMessage</code> element in the response indicates the cause of /// the failure. For help interpreting the <code>StatusMessage</code>, see <a href="https://docs.aws.amazon.com/autoscaling/ec2/userguide/CHAP_Troubleshooting.html">Troubleshooting /// Amazon EC2 Auto Scaling</a> in the <i>Amazon EC2 Auto Scaling User Guide</i>. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the DescribeScalingActivities service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the DescribeScalingActivities service method, as returned by AutoScaling.</returns> /// <exception cref="Amazon.AutoScaling.Model.InvalidNextTokenException"> /// The <code>NextToken</code> value is not valid. /// </exception> /// <exception cref="Amazon.AutoScaling.Model.ResourceContentionException"> /// You already have a pending update to an Amazon EC2 Auto Scaling resource (for example, /// an Auto Scaling group, instance, or load balancer). /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/DescribeScalingActivities">REST API Reference for DescribeScalingActivities Operation</seealso> Task<DescribeScalingActivitiesResponse> DescribeScalingActivitiesAsync(DescribeScalingActivitiesRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)); #endregion #region DescribeScalingProcessTypes /// <summary> /// Describes the scaling process types for use with the <a>ResumeProcesses</a> and <a>SuspendProcesses</a> /// APIs. /// </summary> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the DescribeScalingProcessTypes service method, as returned by AutoScaling.</returns> /// <exception cref="Amazon.AutoScaling.Model.ResourceContentionException"> /// You already have a pending update to an Amazon EC2 Auto Scaling resource (for example, /// an Auto Scaling group, instance, or load balancer). /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/DescribeScalingProcessTypes">REST API Reference for DescribeScalingProcessTypes Operation</seealso> Task<DescribeScalingProcessTypesResponse> DescribeScalingProcessTypesAsync(System.Threading.CancellationToken cancellationToken = default(CancellationToken)); /// <summary> /// Describes the scaling process types for use with the <a>ResumeProcesses</a> and <a>SuspendProcesses</a> /// APIs. /// </summary> /// <param name="request">Container for the necessary parameters to execute the DescribeScalingProcessTypes service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the DescribeScalingProcessTypes service method, as returned by AutoScaling.</returns> /// <exception cref="Amazon.AutoScaling.Model.ResourceContentionException"> /// You already have a pending update to an Amazon EC2 Auto Scaling resource (for example, /// an Auto Scaling group, instance, or load balancer). /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/DescribeScalingProcessTypes">REST API Reference for DescribeScalingProcessTypes Operation</seealso> Task<DescribeScalingProcessTypesResponse> DescribeScalingProcessTypesAsync(DescribeScalingProcessTypesRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)); #endregion #region DescribeScheduledActions /// <summary> /// Gets information about the scheduled actions that haven't run or that have not reached /// their end time. /// /// /// <para> /// To describe the scaling activities for scheduled actions that have already run, call /// the <a>DescribeScalingActivities</a> API. /// </para> /// </summary> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the DescribeScheduledActions service method, as returned by AutoScaling.</returns> /// <exception cref="Amazon.AutoScaling.Model.InvalidNextTokenException"> /// The <code>NextToken</code> value is not valid. /// </exception> /// <exception cref="Amazon.AutoScaling.Model.ResourceContentionException"> /// You already have a pending update to an Amazon EC2 Auto Scaling resource (for example, /// an Auto Scaling group, instance, or load balancer). /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/DescribeScheduledActions">REST API Reference for DescribeScheduledActions Operation</seealso> Task<DescribeScheduledActionsResponse> DescribeScheduledActionsAsync(System.Threading.CancellationToken cancellationToken = default(CancellationToken)); /// <summary> /// Gets information about the scheduled actions that haven't run or that have not reached /// their end time. /// /// /// <para> /// To describe the scaling activities for scheduled actions that have already run, call /// the <a>DescribeScalingActivities</a> API. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the DescribeScheduledActions service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the DescribeScheduledActions service method, as returned by AutoScaling.</returns> /// <exception cref="Amazon.AutoScaling.Model.InvalidNextTokenException"> /// The <code>NextToken</code> value is not valid. /// </exception> /// <exception cref="Amazon.AutoScaling.Model.ResourceContentionException"> /// You already have a pending update to an Amazon EC2 Auto Scaling resource (for example, /// an Auto Scaling group, instance, or load balancer). /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/DescribeScheduledActions">REST API Reference for DescribeScheduledActions Operation</seealso> Task<DescribeScheduledActionsResponse> DescribeScheduledActionsAsync(DescribeScheduledActionsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)); #endregion #region DescribeTags /// <summary> /// Describes the specified tags. /// /// /// <para> /// You can use filters to limit the results. For example, you can query for the tags /// for a specific Auto Scaling group. You can specify multiple values for a filter. A /// tag must match at least one of the specified values for it to be included in the results. /// </para> /// /// <para> /// You can also specify multiple filters. The result includes information for a particular /// tag only if it matches all the filters. If there's no match, no special message is /// returned. /// </para> /// /// <para> /// For more information, see <a href="https://docs.aws.amazon.com/autoscaling/ec2/userguide/ec2-auto-scaling-tagging.html">Tag /// Auto Scaling groups and instances</a> in the <i>Amazon EC2 Auto Scaling User Guide</i>. /// </para> /// </summary> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the DescribeTags service method, as returned by AutoScaling.</returns> /// <exception cref="Amazon.AutoScaling.Model.InvalidNextTokenException"> /// The <code>NextToken</code> value is not valid. /// </exception> /// <exception cref="Amazon.AutoScaling.Model.ResourceContentionException"> /// You already have a pending update to an Amazon EC2 Auto Scaling resource (for example, /// an Auto Scaling group, instance, or load balancer). /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/DescribeTags">REST API Reference for DescribeTags Operation</seealso> Task<DescribeTagsResponse> DescribeTagsAsync(System.Threading.CancellationToken cancellationToken = default(CancellationToken)); /// <summary> /// Describes the specified tags. /// /// /// <para> /// You can use filters to limit the results. For example, you can query for the tags /// for a specific Auto Scaling group. You can specify multiple values for a filter. A /// tag must match at least one of the specified values for it to be included in the results. /// </para> /// /// <para> /// You can also specify multiple filters. The result includes information for a particular /// tag only if it matches all the filters. If there's no match, no special message is /// returned. /// </para> /// /// <para> /// For more information, see <a href="https://docs.aws.amazon.com/autoscaling/ec2/userguide/ec2-auto-scaling-tagging.html">Tag /// Auto Scaling groups and instances</a> in the <i>Amazon EC2 Auto Scaling User Guide</i>. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the DescribeTags service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the DescribeTags service method, as returned by AutoScaling.</returns> /// <exception cref="Amazon.AutoScaling.Model.InvalidNextTokenException"> /// The <code>NextToken</code> value is not valid. /// </exception> /// <exception cref="Amazon.AutoScaling.Model.ResourceContentionException"> /// You already have a pending update to an Amazon EC2 Auto Scaling resource (for example, /// an Auto Scaling group, instance, or load balancer). /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/DescribeTags">REST API Reference for DescribeTags Operation</seealso> Task<DescribeTagsResponse> DescribeTagsAsync(DescribeTagsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)); #endregion #region DescribeTerminationPolicyTypes /// <summary> /// Describes the termination policies supported by Amazon EC2 Auto Scaling. /// /// /// <para> /// 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> /// </summary> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the DescribeTerminationPolicyTypes service method, as returned by AutoScaling.</returns> /// <exception cref="Amazon.AutoScaling.Model.ResourceContentionException"> /// You already have a pending update to an Amazon EC2 Auto Scaling resource (for example, /// an Auto Scaling group, instance, or load balancer). /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/DescribeTerminationPolicyTypes">REST API Reference for DescribeTerminationPolicyTypes Operation</seealso> Task<DescribeTerminationPolicyTypesResponse> DescribeTerminationPolicyTypesAsync(System.Threading.CancellationToken cancellationToken = default(CancellationToken)); /// <summary> /// Describes the termination policies supported by Amazon EC2 Auto Scaling. /// /// /// <para> /// 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> /// </summary> /// <param name="request">Container for the necessary parameters to execute the DescribeTerminationPolicyTypes service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the DescribeTerminationPolicyTypes service method, as returned by AutoScaling.</returns> /// <exception cref="Amazon.AutoScaling.Model.ResourceContentionException"> /// You already have a pending update to an Amazon EC2 Auto Scaling resource (for example, /// an Auto Scaling group, instance, or load balancer). /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/DescribeTerminationPolicyTypes">REST API Reference for DescribeTerminationPolicyTypes Operation</seealso> Task<DescribeTerminationPolicyTypesResponse> DescribeTerminationPolicyTypesAsync(DescribeTerminationPolicyTypesRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)); #endregion #region DescribeTrafficSources /// <summary> /// Gets information about the traffic sources for the specified Auto Scaling group. /// /// /// <para> /// You can optionally provide a traffic source type. If you provide a traffic source /// type, then the results only include that traffic source type. /// </para> /// /// <para> /// If you do not provide a traffic source type, then the results include all the traffic /// sources for the specified Auto Scaling group. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the DescribeTrafficSources service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the DescribeTrafficSources service method, as returned by AutoScaling.</returns> /// <exception cref="Amazon.AutoScaling.Model.InvalidNextTokenException"> /// The <code>NextToken</code> value is not valid. /// </exception> /// <exception cref="Amazon.AutoScaling.Model.ResourceContentionException"> /// You already have a pending update to an Amazon EC2 Auto Scaling resource (for example, /// an Auto Scaling group, instance, or load balancer). /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/DescribeTrafficSources">REST API Reference for DescribeTrafficSources Operation</seealso> Task<DescribeTrafficSourcesResponse> DescribeTrafficSourcesAsync(DescribeTrafficSourcesRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)); #endregion #region DescribeWarmPool /// <summary> /// Gets information about a warm pool and its instances. /// /// /// <para> /// For more information, 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> /// </summary> /// <param name="request">Container for the necessary parameters to execute the DescribeWarmPool service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the DescribeWarmPool service method, as returned by AutoScaling.</returns> /// <exception cref="Amazon.AutoScaling.Model.InvalidNextTokenException"> /// The <code>NextToken</code> value is not valid. /// </exception> /// <exception cref="Amazon.AutoScaling.Model.LimitExceededException"> /// You have already reached a limit for your Amazon EC2 Auto Scaling resources (for example, /// Auto Scaling groups, launch configurations, or lifecycle hooks). For more information, /// see <a href="https://docs.aws.amazon.com/autoscaling/ec2/APIReference/API_DescribeAccountLimits.html">DescribeAccountLimits</a> /// in the <i>Amazon EC2 Auto Scaling API Reference</i>. /// </exception> /// <exception cref="Amazon.AutoScaling.Model.ResourceContentionException"> /// You already have a pending update to an Amazon EC2 Auto Scaling resource (for example, /// an Auto Scaling group, instance, or load balancer). /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/DescribeWarmPool">REST API Reference for DescribeWarmPool Operation</seealso> Task<DescribeWarmPoolResponse> DescribeWarmPoolAsync(DescribeWarmPoolRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)); #endregion #region DetachInstances /// <summary> /// Removes one or more instances from the specified Auto Scaling group. /// /// /// <para> /// After the instances are detached, you can manage them independent of the Auto Scaling /// group. /// </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 detached. /// </para> /// /// <para> /// If there is a Classic Load Balancer attached to the Auto Scaling group, the instances /// are deregistered from the load balancer. If there are target groups attached to the /// Auto Scaling group, the instances are deregistered from the target groups. /// </para> /// /// <para> /// For more information, see <a href="https://docs.aws.amazon.com/autoscaling/ec2/userguide/detach-instance-asg.html">Detach /// EC2 instances from your Auto Scaling group</a> in the <i>Amazon EC2 Auto Scaling User /// Guide</i>. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the DetachInstances service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the DetachInstances service method, as returned by AutoScaling.</returns> /// <exception cref="Amazon.AutoScaling.Model.ResourceContentionException"> /// You already have a pending update to an Amazon EC2 Auto Scaling resource (for example, /// an Auto Scaling group, instance, or load balancer). /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/DetachInstances">REST API Reference for DetachInstances Operation</seealso> Task<DetachInstancesResponse> DetachInstancesAsync(DetachInstancesRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)); #endregion #region DetachLoadBalancers /// <summary> /// <note> /// <para> /// This API operation is superseded by <a>DetachTrafficSources</a>, which can detach /// multiple traffic sources types. We recommend using <code>DetachTrafficSources</code> /// to simplify how you manage traffic sources. However, we continue to support <code>DetachLoadBalancers</code>. /// You can use both the original <code>DetachLoadBalancers</code> API operation and <code>DetachTrafficSources</code> /// on the same Auto Scaling group. /// </para> /// </note> /// <para> /// Detaches one or more Classic Load Balancers from the specified Auto Scaling group. /// </para> /// /// <para> /// This operation detaches only Classic Load Balancers. If you have Application Load /// Balancers, Network Load Balancers, or Gateway Load Balancers, use the <a>DetachLoadBalancerTargetGroups</a> /// API instead. /// </para> /// /// <para> /// When you detach a load balancer, it enters the <code>Removing</code> state while deregistering /// the instances in the group. When all instances are deregistered, then you can no longer /// describe the load balancer using the <a>DescribeLoadBalancers</a> API call. The instances /// remain running. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the DetachLoadBalancers service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the DetachLoadBalancers service method, as returned by AutoScaling.</returns> /// <exception cref="Amazon.AutoScaling.Model.ResourceContentionException"> /// You already have a pending update to an Amazon EC2 Auto Scaling resource (for example, /// an Auto Scaling group, instance, or load balancer). /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/DetachLoadBalancers">REST API Reference for DetachLoadBalancers Operation</seealso> Task<DetachLoadBalancersResponse> DetachLoadBalancersAsync(DetachLoadBalancersRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)); #endregion #region DetachLoadBalancerTargetGroups /// <summary> /// <note> /// <para> /// This API operation is superseded by <a>DetachTrafficSources</a>, which can detach /// multiple traffic sources types. We recommend using <code>DetachTrafficSources</code> /// to simplify how you manage traffic sources. However, we continue to support <code>DetachLoadBalancerTargetGroups</code>. /// You can use both the original <code>DetachLoadBalancerTargetGroups</code> API operation /// and <code>DetachTrafficSources</code> on the same Auto Scaling group. /// </para> /// </note> /// <para> /// Detaches one or more target groups from the specified Auto Scaling group. /// </para> /// /// <para> /// When you detach a target group, it enters the <code>Removing</code> state while deregistering /// the instances in the group. When all instances are deregistered, then you can no longer /// describe the target group using the <a>DescribeLoadBalancerTargetGroups</a> API call. /// The instances remain running. /// </para> /// <note> /// <para> /// You can use this operation to detach target groups that were attached by using <a>AttachLoadBalancerTargetGroups</a>, /// but not for target groups that were attached by using <a>AttachTrafficSources</a>. /// </para> /// </note> /// </summary> /// <param name="request">Container for the necessary parameters to execute the DetachLoadBalancerTargetGroups service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the DetachLoadBalancerTargetGroups service method, as returned by AutoScaling.</returns> /// <exception cref="Amazon.AutoScaling.Model.ResourceContentionException"> /// You already have a pending update to an Amazon EC2 Auto Scaling resource (for example, /// an Auto Scaling group, instance, or load balancer). /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/DetachLoadBalancerTargetGroups">REST API Reference for DetachLoadBalancerTargetGroups Operation</seealso> Task<DetachLoadBalancerTargetGroupsResponse> DetachLoadBalancerTargetGroupsAsync(DetachLoadBalancerTargetGroupsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)); #endregion #region DetachTrafficSources /// <summary> /// Detaches one or more traffic sources from the specified Auto Scaling group. /// /// /// <para> /// When you detach a taffic, it enters the <code>Removing</code> state while deregistering /// the instances in the group. When all instances are deregistered, then you can no longer /// describe the traffic source using the <a>DescribeTrafficSources</a> API call. The /// instances continue to run. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the DetachTrafficSources service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the DetachTrafficSources service method, as returned by AutoScaling.</returns> /// <exception cref="Amazon.AutoScaling.Model.ResourceContentionException"> /// You already have a pending update to an Amazon EC2 Auto Scaling resource (for example, /// an Auto Scaling group, instance, or load balancer). /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/DetachTrafficSources">REST API Reference for DetachTrafficSources Operation</seealso> Task<DetachTrafficSourcesResponse> DetachTrafficSourcesAsync(DetachTrafficSourcesRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)); #endregion #region DisableMetricsCollection /// <summary> /// Disables group metrics collection for the specified Auto Scaling group. /// </summary> /// <param name="request">Container for the necessary parameters to execute the DisableMetricsCollection service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the DisableMetricsCollection service method, as returned by AutoScaling.</returns> /// <exception cref="Amazon.AutoScaling.Model.ResourceContentionException"> /// You already have a pending update to an Amazon EC2 Auto Scaling resource (for example, /// an Auto Scaling group, instance, or load balancer). /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/DisableMetricsCollection">REST API Reference for DisableMetricsCollection Operation</seealso> Task<DisableMetricsCollectionResponse> DisableMetricsCollectionAsync(DisableMetricsCollectionRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)); #endregion #region EnableMetricsCollection /// <summary> /// Enables group metrics collection for the specified Auto Scaling group. /// /// /// <para> /// You can use these metrics to track changes in an Auto Scaling group and to set alarms /// on threshold values. You can view group metrics using the Amazon EC2 Auto Scaling /// console or the CloudWatch console. For more information, see <a href="https://docs.aws.amazon.com/autoscaling/ec2/userguide/ec2-auto-scaling-cloudwatch-monitoring.html">Monitor /// CloudWatch metrics for your Auto Scaling groups and instances</a> in the <i>Amazon /// EC2 Auto Scaling User Guide</i>. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the EnableMetricsCollection service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the EnableMetricsCollection service method, as returned by AutoScaling.</returns> /// <exception cref="Amazon.AutoScaling.Model.ResourceContentionException"> /// You already have a pending update to an Amazon EC2 Auto Scaling resource (for example, /// an Auto Scaling group, instance, or load balancer). /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/EnableMetricsCollection">REST API Reference for EnableMetricsCollection Operation</seealso> Task<EnableMetricsCollectionResponse> EnableMetricsCollectionAsync(EnableMetricsCollectionRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)); #endregion #region EnterStandby /// <summary> /// Moves the specified instances into the standby state. /// /// /// <para> /// If you choose to decrement the desired capacity of the Auto Scaling group, the instances /// can enter standby as long as the desired capacity of the Auto Scaling group after /// the instances are placed into standby is equal to or greater than the minimum capacity /// of the group. /// </para> /// /// <para> /// If you choose not to decrement the desired capacity of the Auto Scaling group, the /// Auto Scaling group launches new instances to replace the instances on standby. /// </para> /// /// <para> /// For more information, see <a href="https://docs.aws.amazon.com/autoscaling/ec2/userguide/as-enter-exit-standby.html">Temporarily /// removing instances from your Auto Scaling group</a> in the <i>Amazon EC2 Auto Scaling /// User Guide</i>. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the EnterStandby service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the EnterStandby service method, as returned by AutoScaling.</returns> /// <exception cref="Amazon.AutoScaling.Model.ResourceContentionException"> /// You already have a pending update to an Amazon EC2 Auto Scaling resource (for example, /// an Auto Scaling group, instance, or load balancer). /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/EnterStandby">REST API Reference for EnterStandby Operation</seealso> Task<EnterStandbyResponse> EnterStandbyAsync(EnterStandbyRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)); #endregion #region ExecutePolicy /// <summary> /// Executes the specified policy. This can be useful for testing the design of your scaling /// policy. /// </summary> /// <param name="request">Container for the necessary parameters to execute the ExecutePolicy service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the ExecutePolicy service method, as returned by AutoScaling.</returns> /// <exception cref="Amazon.AutoScaling.Model.ResourceContentionException"> /// You already have a pending update to an Amazon EC2 Auto Scaling resource (for example, /// an Auto Scaling group, instance, or load balancer). /// </exception> /// <exception cref="Amazon.AutoScaling.Model.ScalingActivityInProgressException"> /// The operation can't be performed because there are scaling activities in progress. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/ExecutePolicy">REST API Reference for ExecutePolicy Operation</seealso> Task<ExecutePolicyResponse> ExecutePolicyAsync(ExecutePolicyRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)); #endregion #region ExitStandby /// <summary> /// Moves the specified instances out of the standby state. /// /// /// <para> /// After you put the instances back in service, the desired capacity is incremented. /// </para> /// /// <para> /// For more information, see <a href="https://docs.aws.amazon.com/autoscaling/ec2/userguide/as-enter-exit-standby.html">Temporarily /// removing instances from your Auto Scaling group</a> in the <i>Amazon EC2 Auto Scaling /// User Guide</i>. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the ExitStandby service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the ExitStandby service method, as returned by AutoScaling.</returns> /// <exception cref="Amazon.AutoScaling.Model.ResourceContentionException"> /// You already have a pending update to an Amazon EC2 Auto Scaling resource (for example, /// an Auto Scaling group, instance, or load balancer). /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/ExitStandby">REST API Reference for ExitStandby Operation</seealso> Task<ExitStandbyResponse> ExitStandbyAsync(ExitStandbyRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)); #endregion #region GetPredictiveScalingForecast /// <summary> /// Retrieves the forecast data for a predictive scaling policy. /// /// /// <para> /// Load forecasts are predictions of the hourly load values using historical load data /// from CloudWatch and an analysis of historical trends. Capacity forecasts are represented /// as predicted values for the minimum capacity that is needed on an hourly basis, based /// on the hourly load forecast. /// </para> /// /// <para> /// A minimum of 24 hours of data is required to create the initial forecasts. However, /// having a full 14 days of historical data results in more accurate forecasts. /// </para> /// /// <para> /// For more information, 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> /// </summary> /// <param name="request">Container for the necessary parameters to execute the GetPredictiveScalingForecast service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the GetPredictiveScalingForecast service method, as returned by AutoScaling.</returns> /// <exception cref="Amazon.AutoScaling.Model.ResourceContentionException"> /// You already have a pending update to an Amazon EC2 Auto Scaling resource (for example, /// an Auto Scaling group, instance, or load balancer). /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/GetPredictiveScalingForecast">REST API Reference for GetPredictiveScalingForecast Operation</seealso> Task<GetPredictiveScalingForecastResponse> GetPredictiveScalingForecastAsync(GetPredictiveScalingForecastRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)); #endregion #region PutLifecycleHook /// <summary> /// 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> /// <param name="request">Container for the necessary parameters to execute the PutLifecycleHook service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the PutLifecycleHook service method, as returned by AutoScaling.</returns> /// <exception cref="Amazon.AutoScaling.Model.LimitExceededException"> /// You have already reached a limit for your Amazon EC2 Auto Scaling resources (for example, /// Auto Scaling groups, launch configurations, or lifecycle hooks). For more information, /// see <a href="https://docs.aws.amazon.com/autoscaling/ec2/APIReference/API_DescribeAccountLimits.html">DescribeAccountLimits</a> /// in the <i>Amazon EC2 Auto Scaling API Reference</i>. /// </exception> /// <exception cref="Amazon.AutoScaling.Model.ResourceContentionException"> /// You already have a pending update to an Amazon EC2 Auto Scaling resource (for example, /// an Auto Scaling group, instance, or load balancer). /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/PutLifecycleHook">REST API Reference for PutLifecycleHook Operation</seealso> Task<PutLifecycleHookResponse> PutLifecycleHookAsync(PutLifecycleHookRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)); #endregion #region PutNotificationConfiguration /// <summary> /// 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> /// <param name="request">Container for the necessary parameters to execute the PutNotificationConfiguration service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the PutNotificationConfiguration service method, as returned by AutoScaling.</returns> /// <exception cref="Amazon.AutoScaling.Model.LimitExceededException"> /// You have already reached a limit for your Amazon EC2 Auto Scaling resources (for example, /// Auto Scaling groups, launch configurations, or lifecycle hooks). For more information, /// see <a href="https://docs.aws.amazon.com/autoscaling/ec2/APIReference/API_DescribeAccountLimits.html">DescribeAccountLimits</a> /// in the <i>Amazon EC2 Auto Scaling API Reference</i>. /// </exception> /// <exception cref="Amazon.AutoScaling.Model.ResourceContentionException"> /// You already have a pending update to an Amazon EC2 Auto Scaling resource (for example, /// an Auto Scaling group, instance, or load balancer). /// </exception> /// <exception cref="Amazon.AutoScaling.Model.ServiceLinkedRoleFailureException"> /// The service-linked role is not yet ready for use. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/PutNotificationConfiguration">REST API Reference for PutNotificationConfiguration Operation</seealso> Task<PutNotificationConfigurationResponse> PutNotificationConfigurationAsync(PutNotificationConfigurationRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)); #endregion #region PutScalingPolicy /// <summary> /// 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> /// <param name="request">Container for the necessary parameters to execute the PutScalingPolicy service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the PutScalingPolicy service method, as returned by AutoScaling.</returns> /// <exception cref="Amazon.AutoScaling.Model.LimitExceededException"> /// You have already reached a limit for your Amazon EC2 Auto Scaling resources (for example, /// Auto Scaling groups, launch configurations, or lifecycle hooks). For more information, /// see <a href="https://docs.aws.amazon.com/autoscaling/ec2/APIReference/API_DescribeAccountLimits.html">DescribeAccountLimits</a> /// in the <i>Amazon EC2 Auto Scaling API Reference</i>. /// </exception> /// <exception cref="Amazon.AutoScaling.Model.ResourceContentionException"> /// You already have a pending update to an Amazon EC2 Auto Scaling resource (for example, /// an Auto Scaling group, instance, or load balancer). /// </exception> /// <exception cref="Amazon.AutoScaling.Model.ServiceLinkedRoleFailureException"> /// The service-linked role is not yet ready for use. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/PutScalingPolicy">REST API Reference for PutScalingPolicy Operation</seealso> Task<PutScalingPolicyResponse> PutScalingPolicyAsync(PutScalingPolicyRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)); #endregion #region PutScheduledUpdateGroupAction /// <summary> /// 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> /// <param name="request">Container for the necessary parameters to execute the PutScheduledUpdateGroupAction service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the PutScheduledUpdateGroupAction service method, as returned by AutoScaling.</returns> /// <exception cref="Amazon.AutoScaling.Model.AlreadyExistsException"> /// You already have an Auto Scaling group or launch configuration with this name. /// </exception> /// <exception cref="Amazon.AutoScaling.Model.LimitExceededException"> /// You have already reached a limit for your Amazon EC2 Auto Scaling resources (for example, /// Auto Scaling groups, launch configurations, or lifecycle hooks). For more information, /// see <a href="https://docs.aws.amazon.com/autoscaling/ec2/APIReference/API_DescribeAccountLimits.html">DescribeAccountLimits</a> /// in the <i>Amazon EC2 Auto Scaling API Reference</i>. /// </exception> /// <exception cref="Amazon.AutoScaling.Model.ResourceContentionException"> /// You already have a pending update to an Amazon EC2 Auto Scaling resource (for example, /// an Auto Scaling group, instance, or load balancer). /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/PutScheduledUpdateGroupAction">REST API Reference for PutScheduledUpdateGroupAction Operation</seealso> Task<PutScheduledUpdateGroupActionResponse> PutScheduledUpdateGroupActionAsync(PutScheduledUpdateGroupActionRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)); #endregion #region PutWarmPool /// <summary> /// 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> /// <param name="request">Container for the necessary parameters to execute the PutWarmPool service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the PutWarmPool service method, as returned by AutoScaling.</returns> /// <exception cref="Amazon.AutoScaling.Model.LimitExceededException"> /// You have already reached a limit for your Amazon EC2 Auto Scaling resources (for example, /// Auto Scaling groups, launch configurations, or lifecycle hooks). For more information, /// see <a href="https://docs.aws.amazon.com/autoscaling/ec2/APIReference/API_DescribeAccountLimits.html">DescribeAccountLimits</a> /// in the <i>Amazon EC2 Auto Scaling API Reference</i>. /// </exception> /// <exception cref="Amazon.AutoScaling.Model.ResourceContentionException"> /// You already have a pending update to an Amazon EC2 Auto Scaling resource (for example, /// an Auto Scaling group, instance, or load balancer). /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/PutWarmPool">REST API Reference for PutWarmPool Operation</seealso> Task<PutWarmPoolResponse> PutWarmPoolAsync(PutWarmPoolRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)); #endregion #region RecordLifecycleActionHeartbeat /// <summary> /// 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> /// <param name="request">Container for the necessary parameters to execute the RecordLifecycleActionHeartbeat service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the RecordLifecycleActionHeartbeat service method, as returned by AutoScaling.</returns> /// <exception cref="Amazon.AutoScaling.Model.ResourceContentionException"> /// You already have a pending update to an Amazon EC2 Auto Scaling resource (for example, /// an Auto Scaling group, instance, or load balancer). /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/RecordLifecycleActionHeartbeat">REST API Reference for RecordLifecycleActionHeartbeat Operation</seealso> Task<RecordLifecycleActionHeartbeatResponse> RecordLifecycleActionHeartbeatAsync(RecordLifecycleActionHeartbeatRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)); #endregion #region ResumeProcesses /// <summary> /// 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> /// <param name="request">Container for the necessary parameters to execute the ResumeProcesses service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the ResumeProcesses service method, as returned by AutoScaling.</returns> /// <exception cref="Amazon.AutoScaling.Model.ResourceContentionException"> /// You already have a pending update to an Amazon EC2 Auto Scaling resource (for example, /// an Auto Scaling group, instance, or load balancer). /// </exception> /// <exception cref="Amazon.AutoScaling.Model.ResourceInUseException"> /// The operation can't be performed because the resource is in use. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/ResumeProcesses">REST API Reference for ResumeProcesses Operation</seealso> Task<ResumeProcessesResponse> ResumeProcessesAsync(ResumeProcessesRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)); #endregion #region RollbackInstanceRefresh /// <summary> /// 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> /// <param name="request">Container for the necessary parameters to execute the RollbackInstanceRefresh service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the RollbackInstanceRefresh service method, as returned by AutoScaling.</returns> /// <exception cref="Amazon.AutoScaling.Model.ActiveInstanceRefreshNotFoundException"> /// The request failed because an active instance refresh or rollback for the specified /// Auto Scaling group was not found. /// </exception> /// <exception cref="Amazon.AutoScaling.Model.IrreversibleInstanceRefreshException"> /// The request failed because a desired configuration was not found or an incompatible /// launch template (uses a Systems Manager parameter instead of an AMI ID) or launch /// template version (<code>$Latest</code> or <code>$Default</code>) is present on the /// Auto Scaling group. /// </exception> /// <exception cref="Amazon.AutoScaling.Model.LimitExceededException"> /// You have already reached a limit for your Amazon EC2 Auto Scaling resources (for example, /// Auto Scaling groups, launch configurations, or lifecycle hooks). For more information, /// see <a href="https://docs.aws.amazon.com/autoscaling/ec2/APIReference/API_DescribeAccountLimits.html">DescribeAccountLimits</a> /// in the <i>Amazon EC2 Auto Scaling API Reference</i>. /// </exception> /// <exception cref="Amazon.AutoScaling.Model.ResourceContentionException"> /// You already have a pending update to an Amazon EC2 Auto Scaling resource (for example, /// an Auto Scaling group, instance, or load balancer). /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/RollbackInstanceRefresh">REST API Reference for RollbackInstanceRefresh Operation</seealso> Task<RollbackInstanceRefreshResponse> RollbackInstanceRefreshAsync(RollbackInstanceRefreshRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)); #endregion #region SetDesiredCapacity /// <summary> /// 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> /// <param name="request">Container for the necessary parameters to execute the SetDesiredCapacity service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the SetDesiredCapacity service method, as returned by AutoScaling.</returns> /// <exception cref="Amazon.AutoScaling.Model.ResourceContentionException"> /// You already have a pending update to an Amazon EC2 Auto Scaling resource (for example, /// an Auto Scaling group, instance, or load balancer). /// </exception> /// <exception cref="Amazon.AutoScaling.Model.ScalingActivityInProgressException"> /// The operation can't be performed because there are scaling activities in progress. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/SetDesiredCapacity">REST API Reference for SetDesiredCapacity Operation</seealso> Task<SetDesiredCapacityResponse> SetDesiredCapacityAsync(SetDesiredCapacityRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)); #endregion #region SetInstanceHealth /// <summary> /// 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> /// <param name="request">Container for the necessary parameters to execute the SetInstanceHealth service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the SetInstanceHealth service method, as returned by AutoScaling.</returns> /// <exception cref="Amazon.AutoScaling.Model.ResourceContentionException"> /// You already have a pending update to an Amazon EC2 Auto Scaling resource (for example, /// an Auto Scaling group, instance, or load balancer). /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/SetInstanceHealth">REST API Reference for SetInstanceHealth Operation</seealso> Task<SetInstanceHealthResponse> SetInstanceHealthAsync(SetInstanceHealthRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)); #endregion #region SetInstanceProtection /// <summary> /// 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> /// <param name="request">Container for the necessary parameters to execute the SetInstanceProtection service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the SetInstanceProtection service method, as returned by AutoScaling.</returns> /// <exception cref="Amazon.AutoScaling.Model.LimitExceededException"> /// You have already reached a limit for your Amazon EC2 Auto Scaling resources (for example, /// Auto Scaling groups, launch configurations, or lifecycle hooks). For more information, /// see <a href="https://docs.aws.amazon.com/autoscaling/ec2/APIReference/API_DescribeAccountLimits.html">DescribeAccountLimits</a> /// in the <i>Amazon EC2 Auto Scaling API Reference</i>. /// </exception> /// <exception cref="Amazon.AutoScaling.Model.ResourceContentionException"> /// You already have a pending update to an Amazon EC2 Auto Scaling resource (for example, /// an Auto Scaling group, instance, or load balancer). /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/SetInstanceProtection">REST API Reference for SetInstanceProtection Operation</seealso> Task<SetInstanceProtectionResponse> SetInstanceProtectionAsync(SetInstanceProtectionRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)); #endregion #region StartInstanceRefresh /// <summary> /// 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> /// <param name="request">Container for the necessary parameters to execute the StartInstanceRefresh service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the StartInstanceRefresh service method, as returned by AutoScaling.</returns> /// <exception cref="Amazon.AutoScaling.Model.InstanceRefreshInProgressException"> /// The request failed because an active instance refresh already exists for the specified /// Auto Scaling group. /// </exception> /// <exception cref="Amazon.AutoScaling.Model.LimitExceededException"> /// You have already reached a limit for your Amazon EC2 Auto Scaling resources (for example, /// Auto Scaling groups, launch configurations, or lifecycle hooks). For more information, /// see <a href="https://docs.aws.amazon.com/autoscaling/ec2/APIReference/API_DescribeAccountLimits.html">DescribeAccountLimits</a> /// in the <i>Amazon EC2 Auto Scaling API Reference</i>. /// </exception> /// <exception cref="Amazon.AutoScaling.Model.ResourceContentionException"> /// You already have a pending update to an Amazon EC2 Auto Scaling resource (for example, /// an Auto Scaling group, instance, or load balancer). /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/StartInstanceRefresh">REST API Reference for StartInstanceRefresh Operation</seealso> Task<StartInstanceRefreshResponse> StartInstanceRefreshAsync(StartInstanceRefreshRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)); #endregion #region SuspendProcesses /// <summary> /// 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> /// <param name="request">Container for the necessary parameters to execute the SuspendProcesses service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the SuspendProcesses service method, as returned by AutoScaling.</returns> /// <exception cref="Amazon.AutoScaling.Model.ResourceContentionException"> /// You already have a pending update to an Amazon EC2 Auto Scaling resource (for example, /// an Auto Scaling group, instance, or load balancer). /// </exception> /// <exception cref="Amazon.AutoScaling.Model.ResourceInUseException"> /// The operation can't be performed because the resource is in use. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/SuspendProcesses">REST API Reference for SuspendProcesses Operation</seealso> Task<SuspendProcessesResponse> SuspendProcessesAsync(SuspendProcessesRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)); #endregion #region TerminateInstanceInAutoScalingGroup /// <summary> /// 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> /// <param name="request">Container for the necessary parameters to execute the TerminateInstanceInAutoScalingGroup service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the TerminateInstanceInAutoScalingGroup service method, as returned by AutoScaling.</returns> /// <exception cref="Amazon.AutoScaling.Model.ResourceContentionException"> /// You already have a pending update to an Amazon EC2 Auto Scaling resource (for example, /// an Auto Scaling group, instance, or load balancer). /// </exception> /// <exception cref="Amazon.AutoScaling.Model.ScalingActivityInProgressException"> /// The operation can't be performed because there are scaling activities in progress. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/TerminateInstanceInAutoScalingGroup">REST API Reference for TerminateInstanceInAutoScalingGroup Operation</seealso> Task<TerminateInstanceInAutoScalingGroupResponse> TerminateInstanceInAutoScalingGroupAsync(TerminateInstanceInAutoScalingGroupRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)); #endregion #region UpdateAutoScalingGroup /// <summary> /// <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> /// <param name="request">Container for the necessary parameters to execute the UpdateAutoScalingGroup service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the UpdateAutoScalingGroup service method, as returned by AutoScaling.</returns> /// <exception cref="Amazon.AutoScaling.Model.ResourceContentionException"> /// You already have a pending update to an Amazon EC2 Auto Scaling resource (for example, /// an Auto Scaling group, instance, or load balancer). /// </exception> /// <exception cref="Amazon.AutoScaling.Model.ScalingActivityInProgressException"> /// The operation can't be performed because there are scaling activities in progress. /// </exception> /// <exception cref="Amazon.AutoScaling.Model.ServiceLinkedRoleFailureException"> /// The service-linked role is not yet ready for use. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/UpdateAutoScalingGroup">REST API Reference for UpdateAutoScalingGroup Operation</seealso> Task<UpdateAutoScalingGroupResponse> UpdateAutoScalingGroupAsync(UpdateAutoScalingGroupRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)); #endregion } }
3,120
aws-sdk-net
aws
C#
using System; using System.Reflection; using System.Runtime.InteropServices; using System.Runtime.CompilerServices; // General Information about an assembly is controlled through the following // set of attributes. Change these attribute values to modify the information // associated with an assembly. [assembly: AssemblyTitle("AWSSDK.AutoScaling")] #if BCL35 [assembly: AssemblyDescription("The Amazon Web Services SDK for .NET (3.5) - Auto Scaling. Auto Scaling helps you maintain application availability and allows you to scale your capacity up or down automatically according to conditions you define.")] #elif BCL45 [assembly: AssemblyDescription("The Amazon Web Services SDK for .NET (4.5) - Auto Scaling. Auto Scaling helps you maintain application availability and allows you to scale your capacity up or down automatically according to conditions you define.")] #elif NETSTANDARD20 [assembly: AssemblyDescription("The Amazon Web Services SDK for .NET (NetStandard 2.0) - Auto Scaling. Auto Scaling helps you maintain application availability and allows you to scale your capacity up or down automatically according to conditions you define.")] #elif NETCOREAPP3_1 [assembly: AssemblyDescription("The Amazon Web Services SDK for .NET (.NET Core 3.1) - Auto Scaling. Auto Scaling helps you maintain application availability and allows you to scale your capacity up or down automatically according to conditions you define.")] #else #error Unknown platform constant - unable to set correct AssemblyDescription #endif [assembly: AssemblyConfiguration("")] [assembly: AssemblyProduct("Amazon Web Services SDK for .NET")] [assembly: AssemblyCompany("Amazon.com, Inc")] [assembly: AssemblyCopyright("Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.")] [assembly: AssemblyTrademark("")] [assembly: AssemblyCulture("")] // Setting ComVisible to false makes the types in this assembly not visible // to COM components. If you need to access a type in this assembly from // COM, set the ComVisible attribute to true on that type. [assembly: ComVisible(false)] // Version information for an assembly consists of the following four values: // // Major Version // Minor Version // Build Number // Revision // // You can specify all the values or you can default the Build and Revision Numbers // by using the '*' as shown below: // [assembly: AssemblyVersion("1.0.*")] [assembly: AssemblyVersion("3.3")] [assembly: AssemblyFileVersion("3.7.104.45")] [assembly: System.CLSCompliant(true)] #if BCL [assembly: System.Security.AllowPartiallyTrustedCallers] #endif
51
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-plans-2018-01-06.normal.json service model. */ using System; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Util.Internal; using Amazon.AutoScalingPlans.Internal; namespace Amazon.AutoScalingPlans { /// <summary> /// Configuration for accessing Amazon AutoScalingPlans service /// </summary> [AWSSignerType("v4")] public partial class AmazonAutoScalingPlansConfig : ClientConfig { private static readonly string UserAgentString = InternalSDKUtils.BuildUserAgentString("3.7.100.147"); private string _userAgent = UserAgentString; /// <summary> /// Default constructor /// </summary> public AmazonAutoScalingPlansConfig() : base(new Amazon.Runtime.Internal.DefaultConfigurationProvider(AmazonAutoScalingPlansDefaultConfiguration.GetAllConfigurations())) { this.AuthenticationServiceName = "autoscaling-plans"; this.EndpointProvider = new AmazonAutoScalingPlansEndpointProvider(); } /// <summary> /// The constant used to lookup in the region hash the endpoint. /// </summary> public override string RegionEndpointServiceName { get { return "autoscaling-plans"; } } /// <summary> /// Gets the ServiceVersion property. /// </summary> public override string ServiceVersion { get { return "2018-01-06"; } } /// <summary> /// Gets the value of UserAgent property. /// </summary> public override string UserAgent { get { return _userAgent; } } } }
83
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-plans-2018-01-06.normal.json service model. */ using System; using System.Collections.Generic; using System.Collections.ObjectModel; using Amazon.Runtime; namespace Amazon.AutoScalingPlans { /// <summary> /// Configuration for accessing Amazon AutoScalingPlans service /// </summary> public static class AmazonAutoScalingPlansDefaultConfiguration { /// <summary> /// Collection of all <see cref="DefaultConfiguration"/>s supported by /// AutoScalingPlans /// </summary> public static ReadOnlyCollection<IDefaultConfiguration> GetAllConfigurations() { return new ReadOnlyCollection<IDefaultConfiguration>(new List<IDefaultConfiguration> { Standard, InRegion, CrossRegion, Mobile, Auto, Legacy }); } /// <summary> /// <p>The STANDARD mode provides the latest recommended default values that should be safe to run in most scenarios</p><p>Note that the default values vended from this mode might change as best practices may evolve. As a result, it is encouraged to perform tests when upgrading the SDK</p> /// </summary> public static IDefaultConfiguration Standard {get;} = new DefaultConfiguration { Name = DefaultConfigurationMode.Standard, RetryMode = RequestRetryMode.Standard, StsRegionalEndpoints = StsRegionalEndpointsValue.Regional, S3UsEast1RegionalEndpoint = S3UsEast1RegionalEndpointValue.Regional, // 0:00:03.1 ConnectTimeout = TimeSpan.FromMilliseconds(3100L), // 0:00:03.1 TlsNegotiationTimeout = TimeSpan.FromMilliseconds(3100L), TimeToFirstByteTimeout = null, HttpRequestTimeout = null }; /// <summary> /// <p>The IN_REGION mode builds on the standard mode and includes optimization tailored for applications which call AWS services from within the same AWS region</p><p>Note that the default values vended from this mode might change as best practices may evolve. As a result, it is encouraged to perform tests when upgrading the SDK</p> /// </summary> public static IDefaultConfiguration InRegion {get;} = new DefaultConfiguration { Name = DefaultConfigurationMode.InRegion, RetryMode = RequestRetryMode.Standard, StsRegionalEndpoints = StsRegionalEndpointsValue.Regional, S3UsEast1RegionalEndpoint = S3UsEast1RegionalEndpointValue.Regional, // 0:00:01.1 ConnectTimeout = TimeSpan.FromMilliseconds(1100L), // 0:00:01.1 TlsNegotiationTimeout = TimeSpan.FromMilliseconds(1100L), TimeToFirstByteTimeout = null, HttpRequestTimeout = null }; /// <summary> /// <p>The CROSS_REGION mode builds on the standard mode and includes optimization tailored for applications which call AWS services in a different region</p><p>Note that the default values vended from this mode might change as best practices may evolve. As a result, it is encouraged to perform tests when upgrading the SDK</p> /// </summary> public static IDefaultConfiguration CrossRegion {get;} = new DefaultConfiguration { Name = DefaultConfigurationMode.CrossRegion, RetryMode = RequestRetryMode.Standard, StsRegionalEndpoints = StsRegionalEndpointsValue.Regional, S3UsEast1RegionalEndpoint = S3UsEast1RegionalEndpointValue.Regional, // 0:00:03.1 ConnectTimeout = TimeSpan.FromMilliseconds(3100L), // 0:00:03.1 TlsNegotiationTimeout = TimeSpan.FromMilliseconds(3100L), TimeToFirstByteTimeout = null, HttpRequestTimeout = null }; /// <summary> /// <p>The MOBILE mode builds on the standard mode and includes optimization tailored for mobile applications</p><p>Note that the default values vended from this mode might change as best practices may evolve. As a result, it is encouraged to perform tests when upgrading the SDK</p> /// </summary> public static IDefaultConfiguration Mobile {get;} = new DefaultConfiguration { Name = DefaultConfigurationMode.Mobile, RetryMode = RequestRetryMode.Standard, StsRegionalEndpoints = StsRegionalEndpointsValue.Regional, S3UsEast1RegionalEndpoint = S3UsEast1RegionalEndpointValue.Regional, // 0:00:30 ConnectTimeout = TimeSpan.FromMilliseconds(30000L), // 0:00:30 TlsNegotiationTimeout = TimeSpan.FromMilliseconds(30000L), TimeToFirstByteTimeout = null, HttpRequestTimeout = null }; /// <summary> /// <p>The AUTO mode is an experimental mode that builds on the standard mode. The SDK will attempt to discover the execution environment to determine the appropriate settings automatically.</p><p>Note that the auto detection is heuristics-based and does not guarantee 100% accuracy. STANDARD mode will be used if the execution environment cannot be determined. The auto detection might query <a href="https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-instance-metadata.html">EC2 Instance Metadata service</a>, which might introduce latency. Therefore we recommend choosing an explicit defaults_mode instead if startup latency is critical to your application</p> /// </summary> public static IDefaultConfiguration Auto {get;} = new DefaultConfiguration { Name = DefaultConfigurationMode.Auto, RetryMode = RequestRetryMode.Standard, StsRegionalEndpoints = StsRegionalEndpointsValue.Regional, S3UsEast1RegionalEndpoint = S3UsEast1RegionalEndpointValue.Regional, // 0:00:01.1 ConnectTimeout = TimeSpan.FromMilliseconds(1100L), // 0:00:01.1 TlsNegotiationTimeout = TimeSpan.FromMilliseconds(1100L), TimeToFirstByteTimeout = null, HttpRequestTimeout = null }; /// <summary> /// <p>The LEGACY mode provides default settings that vary per SDK and were used prior to establishment of defaults_mode</p> /// </summary> public static IDefaultConfiguration Legacy {get;} = new DefaultConfiguration { Name = DefaultConfigurationMode.Legacy, RetryMode = RequestRetryMode.Legacy, StsRegionalEndpoints = StsRegionalEndpointsValue.Legacy, S3UsEast1RegionalEndpoint = S3UsEast1RegionalEndpointValue.Legacy, ConnectTimeout = null, TlsNegotiationTimeout = null, TimeToFirstByteTimeout = null, HttpRequestTimeout = null }; } }
146
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-plans-2018-01-06.normal.json service model. */ using Amazon.Runtime; using Amazon.Runtime.Endpoints; namespace Amazon.AutoScalingPlans.Endpoints { /// <summary> /// Contains parameters used for resolving AutoScalingPlans endpoints /// Parameters can be sourced from client config and service operations /// Used by internal AutoScalingPlansEndpointProvider and AutoScalingPlansEndpointResolver /// Can be used by custom EndpointProvider, see ClientConfig.EndpointProvider /// </summary> public class AutoScalingPlansEndpointParameters : EndpointParameters { /// <summary> /// AutoScalingPlansEndpointParameters constructor /// </summary> public AutoScalingPlansEndpointParameters() { UseDualStack = false; UseFIPS = false; } /// <summary> /// Region parameter /// </summary> public string Region { get { return (string)this["Region"]; } set { this["Region"] = value; } } /// <summary> /// UseDualStack parameter /// </summary> public bool? UseDualStack { get { return (bool?)this["UseDualStack"]; } set { this["UseDualStack"] = value; } } /// <summary> /// UseFIPS parameter /// </summary> public bool? UseFIPS { get { return (bool?)this["UseFIPS"]; } set { this["UseFIPS"] = value; } } /// <summary> /// Endpoint parameter /// </summary> public string Endpoint { get { return (string)this["Endpoint"]; } set { this["Endpoint"] = value; } } } }
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-plans-2018-01-06.normal.json service model. */ using System; using System.Collections.Generic; using System.Net; using System.Text; using Amazon.Runtime; namespace Amazon.AutoScalingPlans { ///<summary> /// Common exception for the AutoScalingPlans service. /// </summary> #if !NETSTANDARD [Serializable] #endif public partial class AmazonAutoScalingPlansException : AmazonServiceException { /// <summary> /// Construct instance of AmazonAutoScalingPlansException /// </summary> /// <param name="message"></param> public AmazonAutoScalingPlansException(string message) : base(message) { } /// <summary> /// Construct instance of AmazonAutoScalingPlansException /// </summary> /// <param name="message"></param> /// <param name="innerException"></param> public AmazonAutoScalingPlansException(string message, Exception innerException) : base(message, innerException) { } /// <summary> /// Construct instance of AmazonAutoScalingPlansException /// </summary> /// <param name="innerException"></param> public AmazonAutoScalingPlansException(Exception innerException) : base(innerException.Message, innerException) { } /// <summary> /// Construct instance of AmazonAutoScalingPlansException /// </summary> /// <param name="message"></param> /// <param name="errorType"></param> /// <param name="errorCode"></param> /// <param name="requestId"></param> /// <param name="statusCode"></param> public AmazonAutoScalingPlansException(string message, ErrorType errorType, string errorCode, string requestId, HttpStatusCode statusCode) : base(message, errorType, errorCode, requestId, statusCode) { } /// <summary> /// Construct instance of AmazonAutoScalingPlansException /// </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 AmazonAutoScalingPlansException(string message, Exception innerException, ErrorType errorType, string errorCode, string requestId, HttpStatusCode statusCode) : base(message, innerException, errorType, errorCode, requestId, statusCode) { } #if !NETSTANDARD /// <summary> /// Constructs a new instance of the AmazonAutoScalingPlansException 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 AmazonAutoScalingPlansException(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context) : base(info, context) { } #endif } }
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-plans-2018-01-06.normal.json service model. */ using System; using Amazon.Runtime; namespace Amazon.AutoScalingPlans { /// <summary> /// Constants used for properties of type ForecastDataType. /// </summary> public class ForecastDataType : ConstantClass { /// <summary> /// Constant CapacityForecast for ForecastDataType /// </summary> public static readonly ForecastDataType CapacityForecast = new ForecastDataType("CapacityForecast"); /// <summary> /// Constant LoadForecast for ForecastDataType /// </summary> public static readonly ForecastDataType LoadForecast = new ForecastDataType("LoadForecast"); /// <summary> /// Constant ScheduledActionMaxCapacity for ForecastDataType /// </summary> public static readonly ForecastDataType ScheduledActionMaxCapacity = new ForecastDataType("ScheduledActionMaxCapacity"); /// <summary> /// Constant ScheduledActionMinCapacity for ForecastDataType /// </summary> public static readonly ForecastDataType ScheduledActionMinCapacity = new ForecastDataType("ScheduledActionMinCapacity"); /// <summary> /// This constant constructor does not need to be called if the constant /// you are attempting to use is already defined as a static instance of /// this class. /// This constructor should be used to construct constants that are not /// defined as statics, for instance if attempting to use a feature that is /// newer than the current version of the SDK. /// </summary> public ForecastDataType(string value) : base(value) { } /// <summary> /// Finds the constant for the unique value. /// </summary> /// <param name="value">The unique value for the constant</param> /// <returns>The constant for the unique value</returns> public static ForecastDataType FindValue(string value) { return FindValue<ForecastDataType>(value); } /// <summary> /// Utility method to convert strings to the constant class. /// </summary> /// <param name="value">The string value to convert to the constant class.</param> /// <returns></returns> public static implicit operator ForecastDataType(string value) { return FindValue(value); } } /// <summary> /// Constants used for properties of type LoadMetricType. /// </summary> public class LoadMetricType : ConstantClass { /// <summary> /// Constant ALBTargetGroupRequestCount for LoadMetricType /// </summary> public static readonly LoadMetricType ALBTargetGroupRequestCount = new LoadMetricType("ALBTargetGroupRequestCount"); /// <summary> /// Constant ASGTotalCPUUtilization for LoadMetricType /// </summary> public static readonly LoadMetricType ASGTotalCPUUtilization = new LoadMetricType("ASGTotalCPUUtilization"); /// <summary> /// Constant ASGTotalNetworkIn for LoadMetricType /// </summary> public static readonly LoadMetricType ASGTotalNetworkIn = new LoadMetricType("ASGTotalNetworkIn"); /// <summary> /// Constant ASGTotalNetworkOut for LoadMetricType /// </summary> public static readonly LoadMetricType ASGTotalNetworkOut = new LoadMetricType("ASGTotalNetworkOut"); /// <summary> /// This constant constructor does not need to be called if the constant /// you are attempting to use is already defined as a static instance of /// this class. /// This constructor should be used to construct constants that are not /// defined as statics, for instance if attempting to use a feature that is /// newer than the current version of the SDK. /// </summary> public LoadMetricType(string value) : base(value) { } /// <summary> /// Finds the constant for the unique value. /// </summary> /// <param name="value">The unique value for the constant</param> /// <returns>The constant for the unique value</returns> public static LoadMetricType FindValue(string value) { return FindValue<LoadMetricType>(value); } /// <summary> /// Utility method to convert strings to the constant class. /// </summary> /// <param name="value">The string value to convert to the constant class.</param> /// <returns></returns> public static implicit operator LoadMetricType(string value) { return FindValue(value); } } /// <summary> /// Constants used for properties of type MetricStatistic. /// </summary> public class MetricStatistic : ConstantClass { /// <summary> /// Constant Average for MetricStatistic /// </summary> public static readonly MetricStatistic Average = new MetricStatistic("Average"); /// <summary> /// Constant Maximum for MetricStatistic /// </summary> public static readonly MetricStatistic Maximum = new MetricStatistic("Maximum"); /// <summary> /// Constant Minimum for MetricStatistic /// </summary> public static readonly MetricStatistic Minimum = new MetricStatistic("Minimum"); /// <summary> /// Constant SampleCount for MetricStatistic /// </summary> public static readonly MetricStatistic SampleCount = new MetricStatistic("SampleCount"); /// <summary> /// Constant Sum for MetricStatistic /// </summary> public static readonly MetricStatistic Sum = new MetricStatistic("Sum"); /// <summary> /// This constant constructor does not need to be called if the constant /// you are attempting to use is already defined as a static instance of /// this class. /// This constructor should be used to construct constants that are not /// defined as statics, for instance if attempting to use a feature that is /// newer than the current version of the SDK. /// </summary> public MetricStatistic(string value) : base(value) { } /// <summary> /// Finds the constant for the unique value. /// </summary> /// <param name="value">The unique value for the constant</param> /// <returns>The constant for the unique value</returns> public static MetricStatistic FindValue(string value) { return FindValue<MetricStatistic>(value); } /// <summary> /// Utility method to convert strings to the constant class. /// </summary> /// <param name="value">The string value to convert to the constant class.</param> /// <returns></returns> public static implicit operator MetricStatistic(string value) { return FindValue(value); } } /// <summary> /// Constants used for properties of type PolicyType. /// </summary> public class PolicyType : ConstantClass { /// <summary> /// Constant TargetTrackingScaling for PolicyType /// </summary> public static readonly PolicyType TargetTrackingScaling = new PolicyType("TargetTrackingScaling"); /// <summary> /// This constant constructor does not need to be called if the constant /// you are attempting to use is already defined as a static instance of /// this class. /// This constructor should be used to construct constants that are not /// defined as statics, for instance if attempting to use a feature that is /// newer than the current version of the SDK. /// </summary> public PolicyType(string value) : base(value) { } /// <summary> /// Finds the constant for the unique value. /// </summary> /// <param name="value">The unique value for the constant</param> /// <returns>The constant for the unique value</returns> public static PolicyType FindValue(string value) { return FindValue<PolicyType>(value); } /// <summary> /// Utility method to convert strings to the constant class. /// </summary> /// <param name="value">The string value to convert to the constant class.</param> /// <returns></returns> public static implicit operator PolicyType(string value) { return FindValue(value); } } /// <summary> /// Constants used for properties of type PredictiveScalingMaxCapacityBehavior. /// </summary> public class PredictiveScalingMaxCapacityBehavior : ConstantClass { /// <summary> /// Constant SetForecastCapacityToMaxCapacity for PredictiveScalingMaxCapacityBehavior /// </summary> public static readonly PredictiveScalingMaxCapacityBehavior SetForecastCapacityToMaxCapacity = new PredictiveScalingMaxCapacityBehavior("SetForecastCapacityToMaxCapacity"); /// <summary> /// Constant SetMaxCapacityAboveForecastCapacity for PredictiveScalingMaxCapacityBehavior /// </summary> public static readonly PredictiveScalingMaxCapacityBehavior SetMaxCapacityAboveForecastCapacity = new PredictiveScalingMaxCapacityBehavior("SetMaxCapacityAboveForecastCapacity"); /// <summary> /// Constant SetMaxCapacityToForecastCapacity for PredictiveScalingMaxCapacityBehavior /// </summary> public static readonly PredictiveScalingMaxCapacityBehavior SetMaxCapacityToForecastCapacity = new PredictiveScalingMaxCapacityBehavior("SetMaxCapacityToForecastCapacity"); /// <summary> /// This constant constructor does not need to be called if the constant /// you are attempting to use is already defined as a static instance of /// this class. /// This constructor should be used to construct constants that are not /// defined as statics, for instance if attempting to use a feature that is /// newer than the current version of the SDK. /// </summary> public PredictiveScalingMaxCapacityBehavior(string value) : base(value) { } /// <summary> /// Finds the constant for the unique value. /// </summary> /// <param name="value">The unique value for the constant</param> /// <returns>The constant for the unique value</returns> public static PredictiveScalingMaxCapacityBehavior FindValue(string value) { return FindValue<PredictiveScalingMaxCapacityBehavior>(value); } /// <summary> /// Utility method to convert strings to the constant class. /// </summary> /// <param name="value">The string value to convert to the constant class.</param> /// <returns></returns> public static implicit operator PredictiveScalingMaxCapacityBehavior(string value) { return FindValue(value); } } /// <summary> /// Constants used for properties of type PredictiveScalingMode. /// </summary> public class PredictiveScalingMode : ConstantClass { /// <summary> /// Constant ForecastAndScale for PredictiveScalingMode /// </summary> public static readonly PredictiveScalingMode ForecastAndScale = new PredictiveScalingMode("ForecastAndScale"); /// <summary> /// Constant ForecastOnly for PredictiveScalingMode /// </summary> public static readonly PredictiveScalingMode ForecastOnly = new PredictiveScalingMode("ForecastOnly"); /// <summary> /// This constant constructor does not need to be called if the constant /// you are attempting to use is already defined as a static instance of /// this class. /// This constructor should be used to construct constants that are not /// defined as statics, for instance if attempting to use a feature that is /// newer than the current version of the SDK. /// </summary> public PredictiveScalingMode(string value) : base(value) { } /// <summary> /// Finds the constant for the unique value. /// </summary> /// <param name="value">The unique value for the constant</param> /// <returns>The constant for the unique value</returns> public static PredictiveScalingMode FindValue(string value) { return FindValue<PredictiveScalingMode>(value); } /// <summary> /// Utility method to convert strings to the constant class. /// </summary> /// <param name="value">The string value to convert to the constant class.</param> /// <returns></returns> public static implicit operator PredictiveScalingMode(string value) { return FindValue(value); } } /// <summary> /// Constants used for properties of type ScalableDimension. /// </summary> public class ScalableDimension : ConstantClass { /// <summary> /// Constant AutoscalingAutoScalingGroupDesiredCapacity for ScalableDimension /// </summary> public static readonly ScalableDimension AutoscalingAutoScalingGroupDesiredCapacity = new ScalableDimension("autoscaling:autoScalingGroup:DesiredCapacity"); /// <summary> /// Constant DynamodbIndexReadCapacityUnits for ScalableDimension /// </summary> public static readonly ScalableDimension DynamodbIndexReadCapacityUnits = new ScalableDimension("dynamodb:index:ReadCapacityUnits"); /// <summary> /// Constant DynamodbIndexWriteCapacityUnits for ScalableDimension /// </summary> public static readonly ScalableDimension DynamodbIndexWriteCapacityUnits = new ScalableDimension("dynamodb:index:WriteCapacityUnits"); /// <summary> /// Constant DynamodbTableReadCapacityUnits for ScalableDimension /// </summary> public static readonly ScalableDimension DynamodbTableReadCapacityUnits = new ScalableDimension("dynamodb:table:ReadCapacityUnits"); /// <summary> /// Constant DynamodbTableWriteCapacityUnits for ScalableDimension /// </summary> public static readonly ScalableDimension DynamodbTableWriteCapacityUnits = new ScalableDimension("dynamodb:table:WriteCapacityUnits"); /// <summary> /// Constant Ec2SpotFleetRequestTargetCapacity for ScalableDimension /// </summary> public static readonly ScalableDimension Ec2SpotFleetRequestTargetCapacity = new ScalableDimension("ec2:spot-fleet-request:TargetCapacity"); /// <summary> /// Constant EcsServiceDesiredCount for ScalableDimension /// </summary> public static readonly ScalableDimension EcsServiceDesiredCount = new ScalableDimension("ecs:service:DesiredCount"); /// <summary> /// Constant RdsClusterReadReplicaCount for ScalableDimension /// </summary> public static readonly ScalableDimension RdsClusterReadReplicaCount = new ScalableDimension("rds:cluster:ReadReplicaCount"); /// <summary> /// This constant constructor does not need to be called if the constant /// you are attempting to use is already defined as a static instance of /// this class. /// This constructor should be used to construct constants that are not /// defined as statics, for instance if attempting to use a feature that is /// newer than the current version of the SDK. /// </summary> public ScalableDimension(string value) : base(value) { } /// <summary> /// Finds the constant for the unique value. /// </summary> /// <param name="value">The unique value for the constant</param> /// <returns>The constant for the unique value</returns> public static ScalableDimension FindValue(string value) { return FindValue<ScalableDimension>(value); } /// <summary> /// Utility method to convert strings to the constant class. /// </summary> /// <param name="value">The string value to convert to the constant class.</param> /// <returns></returns> public static implicit operator ScalableDimension(string value) { return FindValue(value); } } /// <summary> /// Constants used for properties of type ScalingMetricType. /// </summary> public class ScalingMetricType : ConstantClass { /// <summary> /// Constant ALBRequestCountPerTarget for ScalingMetricType /// </summary> public static readonly ScalingMetricType ALBRequestCountPerTarget = new ScalingMetricType("ALBRequestCountPerTarget"); /// <summary> /// Constant ASGAverageCPUUtilization for ScalingMetricType /// </summary> public static readonly ScalingMetricType ASGAverageCPUUtilization = new ScalingMetricType("ASGAverageCPUUtilization"); /// <summary> /// Constant ASGAverageNetworkIn for ScalingMetricType /// </summary> public static readonly ScalingMetricType ASGAverageNetworkIn = new ScalingMetricType("ASGAverageNetworkIn"); /// <summary> /// Constant ASGAverageNetworkOut for ScalingMetricType /// </summary> public static readonly ScalingMetricType ASGAverageNetworkOut = new ScalingMetricType("ASGAverageNetworkOut"); /// <summary> /// Constant DynamoDBReadCapacityUtilization for ScalingMetricType /// </summary> public static readonly ScalingMetricType DynamoDBReadCapacityUtilization = new ScalingMetricType("DynamoDBReadCapacityUtilization"); /// <summary> /// Constant DynamoDBWriteCapacityUtilization for ScalingMetricType /// </summary> public static readonly ScalingMetricType DynamoDBWriteCapacityUtilization = new ScalingMetricType("DynamoDBWriteCapacityUtilization"); /// <summary> /// Constant EC2SpotFleetRequestAverageCPUUtilization for ScalingMetricType /// </summary> public static readonly ScalingMetricType EC2SpotFleetRequestAverageCPUUtilization = new ScalingMetricType("EC2SpotFleetRequestAverageCPUUtilization"); /// <summary> /// Constant EC2SpotFleetRequestAverageNetworkIn for ScalingMetricType /// </summary> public static readonly ScalingMetricType EC2SpotFleetRequestAverageNetworkIn = new ScalingMetricType("EC2SpotFleetRequestAverageNetworkIn"); /// <summary> /// Constant EC2SpotFleetRequestAverageNetworkOut for ScalingMetricType /// </summary> public static readonly ScalingMetricType EC2SpotFleetRequestAverageNetworkOut = new ScalingMetricType("EC2SpotFleetRequestAverageNetworkOut"); /// <summary> /// Constant ECSServiceAverageCPUUtilization for ScalingMetricType /// </summary> public static readonly ScalingMetricType ECSServiceAverageCPUUtilization = new ScalingMetricType("ECSServiceAverageCPUUtilization"); /// <summary> /// Constant ECSServiceAverageMemoryUtilization for ScalingMetricType /// </summary> public static readonly ScalingMetricType ECSServiceAverageMemoryUtilization = new ScalingMetricType("ECSServiceAverageMemoryUtilization"); /// <summary> /// Constant RDSReaderAverageCPUUtilization for ScalingMetricType /// </summary> public static readonly ScalingMetricType RDSReaderAverageCPUUtilization = new ScalingMetricType("RDSReaderAverageCPUUtilization"); /// <summary> /// Constant RDSReaderAverageDatabaseConnections for ScalingMetricType /// </summary> public static readonly ScalingMetricType RDSReaderAverageDatabaseConnections = new ScalingMetricType("RDSReaderAverageDatabaseConnections"); /// <summary> /// This constant constructor does not need to be called if the constant /// you are attempting to use is already defined as a static instance of /// this class. /// This constructor should be used to construct constants that are not /// defined as statics, for instance if attempting to use a feature that is /// newer than the current version of the SDK. /// </summary> public ScalingMetricType(string value) : base(value) { } /// <summary> /// Finds the constant for the unique value. /// </summary> /// <param name="value">The unique value for the constant</param> /// <returns>The constant for the unique value</returns> public static ScalingMetricType FindValue(string value) { return FindValue<ScalingMetricType>(value); } /// <summary> /// Utility method to convert strings to the constant class. /// </summary> /// <param name="value">The string value to convert to the constant class.</param> /// <returns></returns> public static implicit operator ScalingMetricType(string value) { return FindValue(value); } } /// <summary> /// Constants used for properties of type ScalingPlanStatusCode. /// </summary> public class ScalingPlanStatusCode : ConstantClass { /// <summary> /// Constant Active for ScalingPlanStatusCode /// </summary> public static readonly ScalingPlanStatusCode Active = new ScalingPlanStatusCode("Active"); /// <summary> /// Constant ActiveWithProblems for ScalingPlanStatusCode /// </summary> public static readonly ScalingPlanStatusCode ActiveWithProblems = new ScalingPlanStatusCode("ActiveWithProblems"); /// <summary> /// Constant CreationFailed for ScalingPlanStatusCode /// </summary> public static readonly ScalingPlanStatusCode CreationFailed = new ScalingPlanStatusCode("CreationFailed"); /// <summary> /// Constant CreationInProgress for ScalingPlanStatusCode /// </summary> public static readonly ScalingPlanStatusCode CreationInProgress = new ScalingPlanStatusCode("CreationInProgress"); /// <summary> /// Constant DeletionFailed for ScalingPlanStatusCode /// </summary> public static readonly ScalingPlanStatusCode DeletionFailed = new ScalingPlanStatusCode("DeletionFailed"); /// <summary> /// Constant DeletionInProgress for ScalingPlanStatusCode /// </summary> public static readonly ScalingPlanStatusCode DeletionInProgress = new ScalingPlanStatusCode("DeletionInProgress"); /// <summary> /// Constant UpdateFailed for ScalingPlanStatusCode /// </summary> public static readonly ScalingPlanStatusCode UpdateFailed = new ScalingPlanStatusCode("UpdateFailed"); /// <summary> /// Constant UpdateInProgress for ScalingPlanStatusCode /// </summary> public static readonly ScalingPlanStatusCode UpdateInProgress = new ScalingPlanStatusCode("UpdateInProgress"); /// <summary> /// This constant constructor does not need to be called if the constant /// you are attempting to use is already defined as a static instance of /// this class. /// This constructor should be used to construct constants that are not /// defined as statics, for instance if attempting to use a feature that is /// newer than the current version of the SDK. /// </summary> public ScalingPlanStatusCode(string value) : base(value) { } /// <summary> /// Finds the constant for the unique value. /// </summary> /// <param name="value">The unique value for the constant</param> /// <returns>The constant for the unique value</returns> public static ScalingPlanStatusCode FindValue(string value) { return FindValue<ScalingPlanStatusCode>(value); } /// <summary> /// Utility method to convert strings to the constant class. /// </summary> /// <param name="value">The string value to convert to the constant class.</param> /// <returns></returns> public static implicit operator ScalingPlanStatusCode(string value) { return FindValue(value); } } /// <summary> /// Constants used for properties of type ScalingPolicyUpdateBehavior. /// </summary> public class ScalingPolicyUpdateBehavior : ConstantClass { /// <summary> /// Constant KeepExternalPolicies for ScalingPolicyUpdateBehavior /// </summary> public static readonly ScalingPolicyUpdateBehavior KeepExternalPolicies = new ScalingPolicyUpdateBehavior("KeepExternalPolicies"); /// <summary> /// Constant ReplaceExternalPolicies for ScalingPolicyUpdateBehavior /// </summary> public static readonly ScalingPolicyUpdateBehavior ReplaceExternalPolicies = new ScalingPolicyUpdateBehavior("ReplaceExternalPolicies"); /// <summary> /// This constant constructor does not need to be called if the constant /// you are attempting to use is already defined as a static instance of /// this class. /// This constructor should be used to construct constants that are not /// defined as statics, for instance if attempting to use a feature that is /// newer than the current version of the SDK. /// </summary> public ScalingPolicyUpdateBehavior(string value) : base(value) { } /// <summary> /// Finds the constant for the unique value. /// </summary> /// <param name="value">The unique value for the constant</param> /// <returns>The constant for the unique value</returns> public static ScalingPolicyUpdateBehavior FindValue(string value) { return FindValue<ScalingPolicyUpdateBehavior>(value); } /// <summary> /// Utility method to convert strings to the constant class. /// </summary> /// <param name="value">The string value to convert to the constant class.</param> /// <returns></returns> public static implicit operator ScalingPolicyUpdateBehavior(string value) { return FindValue(value); } } /// <summary> /// Constants used for properties of type ScalingStatusCode. /// </summary> public class ScalingStatusCode : ConstantClass { /// <summary> /// Constant Active for ScalingStatusCode /// </summary> public static readonly ScalingStatusCode Active = new ScalingStatusCode("Active"); /// <summary> /// Constant Inactive for ScalingStatusCode /// </summary> public static readonly ScalingStatusCode Inactive = new ScalingStatusCode("Inactive"); /// <summary> /// Constant PartiallyActive for ScalingStatusCode /// </summary> public static readonly ScalingStatusCode PartiallyActive = new ScalingStatusCode("PartiallyActive"); /// <summary> /// This constant constructor does not need to be called if the constant /// you are attempting to use is already defined as a static instance of /// this class. /// This constructor should be used to construct constants that are not /// defined as statics, for instance if attempting to use a feature that is /// newer than the current version of the SDK. /// </summary> public ScalingStatusCode(string value) : base(value) { } /// <summary> /// Finds the constant for the unique value. /// </summary> /// <param name="value">The unique value for the constant</param> /// <returns>The constant for the unique value</returns> public static ScalingStatusCode FindValue(string value) { return FindValue<ScalingStatusCode>(value); } /// <summary> /// Utility method to convert strings to the constant class. /// </summary> /// <param name="value">The string value to convert to the constant class.</param> /// <returns></returns> public static implicit operator ScalingStatusCode(string value) { return FindValue(value); } } /// <summary> /// Constants used for properties of type ServiceNamespace. /// </summary> public class ServiceNamespace : ConstantClass { /// <summary> /// Constant Autoscaling for ServiceNamespace /// </summary> public static readonly ServiceNamespace Autoscaling = new ServiceNamespace("autoscaling"); /// <summary> /// Constant Dynamodb for ServiceNamespace /// </summary> public static readonly ServiceNamespace Dynamodb = new ServiceNamespace("dynamodb"); /// <summary> /// Constant Ec2 for ServiceNamespace /// </summary> public static readonly ServiceNamespace Ec2 = new ServiceNamespace("ec2"); /// <summary> /// Constant Ecs for ServiceNamespace /// </summary> public static readonly ServiceNamespace Ecs = new ServiceNamespace("ecs"); /// <summary> /// Constant Rds for ServiceNamespace /// </summary> public static readonly ServiceNamespace Rds = new ServiceNamespace("rds"); /// <summary> /// This constant constructor does not need to be called if the constant /// you are attempting to use is already defined as a static instance of /// this class. /// This constructor should be used to construct constants that are not /// defined as statics, for instance if attempting to use a feature that is /// newer than the current version of the SDK. /// </summary> public ServiceNamespace(string value) : base(value) { } /// <summary> /// Finds the constant for the unique value. /// </summary> /// <param name="value">The unique value for the constant</param> /// <returns>The constant for the unique value</returns> public static ServiceNamespace FindValue(string value) { return FindValue<ServiceNamespace>(value); } /// <summary> /// Utility method to convert strings to the constant class. /// </summary> /// <param name="value">The string value to convert to the constant class.</param> /// <returns></returns> public static implicit operator ServiceNamespace(string value) { return FindValue(value); } } }
762
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-plans-2018-01-06.normal.json service model. */ using System; using System.Collections.Generic; using Amazon.Runtime; using Amazon.Runtime.Endpoints; using static Amazon.Runtime.Internal.Endpoints.StandardLibrary.Fn; namespace Amazon.AutoScalingPlans.Internal { /// <summary> /// Amazon AutoScalingPlans endpoint provider. /// Resolves endpoint for given set of AutoScalingPlansEndpointParameters. /// Can throw AmazonClientException if endpoint resolution is unsuccessful. /// </summary> public class AmazonAutoScalingPlansEndpointProvider : IEndpointProvider { /// <summary> /// Resolve endpoint for AutoScalingPlansEndpointParameters /// </summary> public Endpoint ResolveEndpoint(EndpointParameters parameters) { if (parameters == null) throw new ArgumentNullException("parameters"); if (parameters["UseDualStack"] == null) throw new AmazonClientException("UseDualStack parameter must be set for endpoint resolution"); if (parameters["UseFIPS"] == null) throw new AmazonClientException("UseFIPS parameter must be set for endpoint resolution"); var refs = new Dictionary<string, object>() { ["Region"] = parameters["Region"], ["UseDualStack"] = parameters["UseDualStack"], ["UseFIPS"] = parameters["UseFIPS"], ["Endpoint"] = parameters["Endpoint"], }; if ((refs["PartitionResult"] = Partition((string)refs["Region"])) != null) { if (IsSet(refs["Endpoint"]) && (refs["url"] = ParseURL((string)refs["Endpoint"])) != null) { if (Equals(refs["UseFIPS"], true)) { throw new AmazonClientException("Invalid Configuration: FIPS and custom endpoint are not supported"); } if (Equals(refs["UseDualStack"], true)) { throw new AmazonClientException("Invalid Configuration: Dualstack and custom endpoint are not supported"); } return new Endpoint((string)refs["Endpoint"], InterpolateJson(@"", refs), InterpolateJson(@"", refs)); } if (Equals(refs["UseFIPS"], true) && Equals(refs["UseDualStack"], true)) { if (Equals(true, GetAttr(refs["PartitionResult"], "supportsFIPS")) && Equals(true, GetAttr(refs["PartitionResult"], "supportsDualStack"))) { return new Endpoint(Interpolate(@"https://autoscaling-plans-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", refs), InterpolateJson(@"", refs), InterpolateJson(@"", refs)); } throw new AmazonClientException("FIPS and DualStack are enabled, but this partition does not support one or both"); } if (Equals(refs["UseFIPS"], true)) { if (Equals(true, GetAttr(refs["PartitionResult"], "supportsFIPS"))) { return new Endpoint(Interpolate(@"https://autoscaling-plans-fips.{Region}.{PartitionResult#dnsSuffix}", refs), InterpolateJson(@"", refs), InterpolateJson(@"", refs)); } throw new AmazonClientException("FIPS is enabled but this partition does not support FIPS"); } if (Equals(refs["UseDualStack"], true)) { if (Equals(true, GetAttr(refs["PartitionResult"], "supportsDualStack"))) { return new Endpoint(Interpolate(@"https://autoscaling-plans.{Region}.{PartitionResult#dualStackDnsSuffix}", refs), InterpolateJson(@"", refs), InterpolateJson(@"", refs)); } throw new AmazonClientException("DualStack is enabled but this partition does not support DualStack"); } return new Endpoint(Interpolate(@"https://autoscaling-plans.{Region}.{PartitionResult#dnsSuffix}", refs), InterpolateJson(@"", refs), InterpolateJson(@"", refs)); } throw new AmazonClientException("Cannot resolve endpoint"); } } }
99
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-plans-2018-01-06.normal.json service model. */ using System; using Amazon.AutoScalingPlans.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Endpoints; using Amazon.Util; using Amazon.AutoScalingPlans.Endpoints; #pragma warning disable 1591 namespace Amazon.AutoScalingPlans.Internal { /// <summary> /// Amazon AutoScalingPlans endpoint resolver. /// Custom PipelineHandler responsible for resolving endpoint and setting authentication parameters for AutoScalingPlans service requests. /// Collects values for AutoScalingPlansEndpointParameters and then tries to resolve endpoint by calling /// ResolveEndpoint method on GlobalEndpoints.Provider if present, otherwise uses AutoScalingPlansEndpointProvider. /// Responsible for setting authentication and http headers provided by resolved endpoint. /// </summary> public class AmazonAutoScalingPlansEndpointResolver : BaseEndpointResolver { protected override void ServiceSpecificHandler(IExecutionContext executionContext, EndpointParameters parameters) { InjectHostPrefix(executionContext.RequestContext); } protected override EndpointParameters MapEndpointsParameters(IRequestContext requestContext) { var config = (AmazonAutoScalingPlansConfig)requestContext.ClientConfig; var result = new AutoScalingPlansEndpointParameters(); result.Region = config.RegionEndpoint?.SystemName; result.UseDualStack = config.UseDualstackEndpoint; result.UseFIPS = config.UseFIPSEndpoint; result.Endpoint = config.ServiceURL; // The region needs to be determined from the ServiceURL if not set. var regionEndpoint = config.RegionEndpoint; if (regionEndpoint == null && !string.IsNullOrEmpty(config.ServiceURL)) { var regionName = AWSSDKUtils.DetermineRegion(config.ServiceURL); result.Region = RegionEndpoint.GetBySystemName(regionName).SystemName; } // To support legacy endpoint overridding rules in the endpoints.json if (result.Region == "us-east-1-regional") { result.Region = "us-east-1"; } // Use AlternateEndpoint region override if set if (requestContext.Request.AlternateEndpoint != null) { result.Region = requestContext.Request.AlternateEndpoint.SystemName; } // Assign staticContextParams and contextParam per operation return result; } } }
83
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-plans-2018-01-06.normal.json service model. */ using Amazon.Runtime.Internal; namespace Amazon.AutoScalingPlans.Internal { /// <summary> /// Service metadata for Amazon AutoScalingPlans service /// </summary> public partial class AmazonAutoScalingPlansMetadata : IServiceMetadata { /// <summary> /// Gets the value of the Service Id. /// </summary> public string ServiceId { get { return "Auto Scaling Plans"; } } /// <summary> /// Gets the dictionary that gives mapping of renamed operations /// </summary> public System.Collections.Generic.IDictionary<string, string> OperationNameMapping { get { return new System.Collections.Generic.Dictionary<string, string>(0) { }; } } } }
55
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-plans-2018-01-06.normal.json service model. */ using Amazon.Runtime; namespace Amazon.AutoScalingPlans { /// <summary> /// Base class for AutoScalingPlans operation requests. /// </summary> public partial class AmazonAutoScalingPlansRequest : AmazonWebServiceRequest { } }
30
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-plans-2018-01-06.normal.json service model. */ using System; using System.Collections.Generic; using System.Xml.Serialization; using System.Text; using System.IO; using System.Net; using Amazon.Runtime; using Amazon.Runtime.Internal; namespace Amazon.AutoScalingPlans.Model { /// <summary> /// Represents an application source. /// </summary> public partial class ApplicationSource { private string _cloudFormationStackARN; private List<TagFilter> _tagFilters = new List<TagFilter>(); /// <summary> /// Gets and sets the property CloudFormationStackARN. /// <para> /// The Amazon Resource Name (ARN) of a AWS CloudFormation stack. /// </para> /// </summary> public string CloudFormationStackARN { get { return this._cloudFormationStackARN; } set { this._cloudFormationStackARN = value; } } // Check to see if CloudFormationStackARN property is set internal bool IsSetCloudFormationStackARN() { return this._cloudFormationStackARN != null; } /// <summary> /// Gets and sets the property TagFilters. /// <para> /// A set of tags (up to 50). /// </para> /// </summary> public List<TagFilter> TagFilters { get { return this._tagFilters; } set { this._tagFilters = value; } } // Check to see if TagFilters property is set internal bool IsSetTagFilters() { return this._tagFilters != null && this._tagFilters.Count > 0; } } }
76
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-plans-2018-01-06.normal.json service model. */ using System; using System.Collections.Generic; using System.Xml.Serialization; using System.Text; using System.IO; using System.Net; using Amazon.Runtime; using Amazon.Runtime.Internal; namespace Amazon.AutoScalingPlans.Model { /// <summary> /// Concurrent updates caused an exception, for example, if you request an update to a /// scaling plan that already has a pending update. /// </summary> #if !NETSTANDARD [Serializable] #endif public partial class ConcurrentUpdateException : AmazonAutoScalingPlansException { /// <summary> /// Constructs a new ConcurrentUpdateException with the specified error /// message. /// </summary> /// <param name="message"> /// Describes the error encountered. /// </param> public ConcurrentUpdateException(string message) : base(message) {} /// <summary> /// Construct instance of ConcurrentUpdateException /// </summary> /// <param name="message"></param> /// <param name="innerException"></param> public ConcurrentUpdateException(string message, Exception innerException) : base(message, innerException) {} /// <summary> /// Construct instance of ConcurrentUpdateException /// </summary> /// <param name="innerException"></param> public ConcurrentUpdateException(Exception innerException) : base(innerException) {} /// <summary> /// Construct instance of ConcurrentUpdateException /// </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 ConcurrentUpdateException(string message, Exception innerException, ErrorType errorType, string errorCode, string requestId, HttpStatusCode statusCode) : base(message, innerException, errorType, errorCode, requestId, statusCode) {} /// <summary> /// Construct instance of ConcurrentUpdateException /// </summary> /// <param name="message"></param> /// <param name="errorType"></param> /// <param name="errorCode"></param> /// <param name="requestId"></param> /// <param name="statusCode"></param> public ConcurrentUpdateException(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 ConcurrentUpdateException 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 ConcurrentUpdateException(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-plans-2018-01-06.normal.json service model. */ using System; using System.Collections.Generic; using System.Xml.Serialization; using System.Text; using System.IO; using System.Net; using Amazon.Runtime; using Amazon.Runtime.Internal; namespace Amazon.AutoScalingPlans.Model { /// <summary> /// Container for the parameters to the CreateScalingPlan operation. /// Creates a scaling plan. /// </summary> public partial class CreateScalingPlanRequest : AmazonAutoScalingPlansRequest { private ApplicationSource _applicationSource; private List<ScalingInstruction> _scalingInstructions = new List<ScalingInstruction>(); private string _scalingPlanName; /// <summary> /// Gets and sets the property ApplicationSource. /// <para> /// A CloudFormation stack or set of tags. You can create one scaling plan per application /// source. /// </para> /// /// <para> /// For more information, see <a href="https://docs.aws.amazon.com/autoscaling/plans/APIReference/API_ApplicationSource.html">ApplicationSource</a> /// in the <i>AWS Auto Scaling API Reference</i>. /// </para> /// </summary> [AWSProperty(Required=true)] public ApplicationSource ApplicationSource { get { return this._applicationSource; } set { this._applicationSource = value; } } // Check to see if ApplicationSource property is set internal bool IsSetApplicationSource() { return this._applicationSource != null; } /// <summary> /// Gets and sets the property ScalingInstructions. /// <para> /// The scaling instructions. /// </para> /// /// <para> /// For more information, see <a href="https://docs.aws.amazon.com/autoscaling/plans/APIReference/API_ScalingInstruction.html">ScalingInstruction</a> /// in the <i>AWS Auto Scaling API Reference</i>. /// </para> /// </summary> [AWSProperty(Required=true)] public List<ScalingInstruction> ScalingInstructions { get { return this._scalingInstructions; } set { this._scalingInstructions = value; } } // Check to see if ScalingInstructions property is set internal bool IsSetScalingInstructions() { return this._scalingInstructions != null && this._scalingInstructions.Count > 0; } /// <summary> /// Gets and sets the property ScalingPlanName. /// <para> /// The name of the scaling plan. Names cannot contain vertical bars, colons, or forward /// slashes. /// </para> /// </summary> [AWSProperty(Required=true, Min=1, Max=128)] public string ScalingPlanName { get { return this._scalingPlanName; } set { this._scalingPlanName = value; } } // Check to see if ScalingPlanName property is set internal bool IsSetScalingPlanName() { return this._scalingPlanName != null; } } }
111
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-plans-2018-01-06.normal.json service model. */ using System; using System.Collections.Generic; using System.Xml.Serialization; using System.Text; using System.IO; using System.Net; using Amazon.Runtime; using Amazon.Runtime.Internal; namespace Amazon.AutoScalingPlans.Model { /// <summary> /// This is the response object from the CreateScalingPlan operation. /// </summary> public partial class CreateScalingPlanResponse : AmazonWebServiceResponse { private long? _scalingPlanVersion; /// <summary> /// Gets and sets the property ScalingPlanVersion. /// <para> /// The version number of the scaling plan. This value is always <code>1</code>. Currently, /// you cannot have multiple scaling plan versions. /// </para> /// </summary> [AWSProperty(Required=true)] public long ScalingPlanVersion { get { return this._scalingPlanVersion.GetValueOrDefault(); } set { this._scalingPlanVersion = value; } } // Check to see if ScalingPlanVersion property is set internal bool IsSetScalingPlanVersion() { return this._scalingPlanVersion.HasValue; } } }
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-plans-2018-01-06.normal.json service model. */ using System; using System.Collections.Generic; using System.Xml.Serialization; using System.Text; using System.IO; using System.Net; using Amazon.Runtime; using Amazon.Runtime.Internal; namespace Amazon.AutoScalingPlans.Model { /// <summary> /// Represents a CloudWatch metric of your choosing that can be used for predictive scaling. /// /// /// /// <para> /// For predictive scaling to work with a customized load metric specification, AWS Auto /// Scaling needs access to the <code>Sum</code> and <code>Average</code> statistics that /// CloudWatch computes from metric data. /// </para> /// /// <para> /// When you choose a load metric, make sure that the required <code>Sum</code> and <code>Average</code> /// statistics for your metric are available in CloudWatch and that they provide relevant /// data for predictive scaling. The <code>Sum</code> statistic must represent the total /// load on the resource, and the <code>Average</code> statistic must represent the average /// load per capacity unit of the resource. For example, there is a metric that counts /// the number of requests processed by your Auto Scaling group. If the <code>Sum</code> /// statistic represents the total request count processed by the group, then the <code>Average</code> /// statistic for the specified metric must represent the average request count processed /// by each instance of the group. /// </para> /// /// <para> /// If you publish your own metrics, you can aggregate the data points at a given interval /// and then publish the aggregated data points to CloudWatch. Before AWS Auto Scaling /// generates the forecast, it sums up all the metric data points that occurred within /// each hour to match the granularity period that is used in the forecast (60 minutes). /// </para> /// /// <para> /// For information about terminology, available metrics, or how to publish new metrics, /// 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> /// /// <para> /// After creating your scaling plan, you can use the AWS Auto Scaling console to visualize /// forecasts for the specified metric. For more information, see <a href="https://docs.aws.amazon.com/autoscaling/plans/userguide/gs-create-scaling-plan.html#gs-view-resource">View /// Scaling Information for a Resource</a> in the <i>AWS Auto Scaling User Guide</i>. /// </para> /// </summary> public partial class CustomizedLoadMetricSpecification { private List<MetricDimension> _dimensions = new List<MetricDimension>(); private string _metricName; private string _awsNamespace; private MetricStatistic _statistic; private string _unit; /// <summary> /// Gets and sets the property Dimensions. /// <para> /// The dimensions of the metric. /// </para> /// /// <para> /// Conditional: If you published your metric with dimensions, you must specify the same /// dimensions in your customized load metric specification. /// </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. /// </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; } /// <summary> /// Gets and sets the property Statistic. /// <para> /// The statistic of the metric. The only valid value is <code>Sum</code>. /// </para> /// </summary> [AWSProperty(Required=true)] public MetricStatistic Statistic { get { return this._statistic; } set { this._statistic = value; } } // Check to see if Statistic property is set internal bool IsSetStatistic() { return this._statistic != null; } /// <summary> /// Gets and sets the property Unit. /// <para> /// The unit of the metric. /// </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; } } }
180
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-plans-2018-01-06.normal.json service model. */ using System; using System.Collections.Generic; using System.Xml.Serialization; using System.Text; using System.IO; using System.Net; using Amazon.Runtime; using Amazon.Runtime.Internal; namespace Amazon.AutoScalingPlans.Model { /// <summary> /// Represents a CloudWatch metric of your choosing that can be used for dynamic scaling /// as part of a target tracking scaling policy. /// /// /// <para> /// To create your customized scaling metric specification: /// </para> /// <ul> <li> /// <para> /// Add values for each required parameter from CloudWatch. You can use an existing metric, /// or a new metric that you create. To use your own metric, you must first publish the /// metric to CloudWatch. For more information, see <a href="https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/publishingMetrics.html">Publish /// Custom Metrics</a> in the <i>Amazon CloudWatch User Guide</i>. /// </para> /// </li> <li> /// <para> /// Choose a metric that changes proportionally with capacity. The value of the metric /// should increase or decrease in inverse proportion to the number of capacity units. /// That is, the value of the metric should decrease when capacity increases. /// </para> /// </li> </ul> /// <para> /// For information about terminology, available metrics, or how to publish new metrics, /// 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 CustomizedScalingMetricSpecification { private List<MetricDimension> _dimensions = new List<MetricDimension>(); private string _metricName; private string _awsNamespace; private MetricStatistic _statistic; private string _unit; /// <summary> /// Gets and sets the property Dimensions. /// <para> /// The dimensions of the metric. /// </para> /// /// <para> /// Conditional: If you published your metric with dimensions, you must specify the same /// dimensions in your customized scaling metric specification. /// </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. /// </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; } /// <summary> /// Gets and sets the property Statistic. /// <para> /// The statistic of the metric. /// </para> /// </summary> [AWSProperty(Required=true)] public MetricStatistic Statistic { get { return this._statistic; } set { this._statistic = value; } } // Check to see if Statistic property is set internal bool IsSetStatistic() { return this._statistic != null; } /// <summary> /// Gets and sets the property Unit. /// <para> /// The unit of the metric. /// </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; } } }
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-plans-2018-01-06.normal.json service model. */ using System; using System.Collections.Generic; using System.Xml.Serialization; using System.Text; using System.IO; using System.Net; using Amazon.Runtime; using Amazon.Runtime.Internal; namespace Amazon.AutoScalingPlans.Model { /// <summary> /// Represents a single value in the forecast data used for predictive scaling. /// </summary> public partial class Datapoint { private DateTime? _timestamp; private double? _value; /// <summary> /// Gets and sets the property Timestamp. /// <para> /// The time stamp for the data point in UTC format. /// </para> /// </summary> public DateTime Timestamp { get { return this._timestamp.GetValueOrDefault(); } set { this._timestamp = value; } } // Check to see if Timestamp property is set internal bool IsSetTimestamp() { return this._timestamp.HasValue; } /// <summary> /// Gets and sets the property Value. /// <para> /// The value of the data point. /// </para> /// </summary> public double Value { get { return this._value.GetValueOrDefault(); } set { this._value = value; } } // Check to see if Value property is set internal bool IsSetValue() { return this._value.HasValue; } } }
76
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-plans-2018-01-06.normal.json service model. */ using System; using System.Collections.Generic; using System.Xml.Serialization; using System.Text; using System.IO; using System.Net; using Amazon.Runtime; using Amazon.Runtime.Internal; namespace Amazon.AutoScalingPlans.Model { /// <summary> /// Container for the parameters to the DeleteScalingPlan operation. /// Deletes the specified scaling plan. /// /// /// <para> /// Deleting a scaling plan deletes the underlying <a>ScalingInstruction</a> for all of /// the scalable resources that are covered by the plan. /// </para> /// /// <para> /// If the plan has launched resources or has scaling activities in progress, you must /// delete those resources separately. /// </para> /// </summary> public partial class DeleteScalingPlanRequest : AmazonAutoScalingPlansRequest { private string _scalingPlanName; private long? _scalingPlanVersion; /// <summary> /// Gets and sets the property ScalingPlanName. /// <para> /// The name of the scaling plan. /// </para> /// </summary> [AWSProperty(Required=true, Min=1, Max=128)] public string ScalingPlanName { get { return this._scalingPlanName; } set { this._scalingPlanName = value; } } // Check to see if ScalingPlanName property is set internal bool IsSetScalingPlanName() { return this._scalingPlanName != null; } /// <summary> /// Gets and sets the property ScalingPlanVersion. /// <para> /// The version number of the scaling plan. Currently, the only valid value is <code>1</code>. /// </para> /// </summary> [AWSProperty(Required=true)] public long ScalingPlanVersion { get { return this._scalingPlanVersion.GetValueOrDefault(); } set { this._scalingPlanVersion = value; } } // Check to see if ScalingPlanVersion property is set internal bool IsSetScalingPlanVersion() { return this._scalingPlanVersion.HasValue; } } }
90
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-plans-2018-01-06.normal.json service model. */ using System; using System.Collections.Generic; using System.Xml.Serialization; using System.Text; using System.IO; using System.Net; using Amazon.Runtime; using Amazon.Runtime.Internal; namespace Amazon.AutoScalingPlans.Model { /// <summary> /// This is the response object from the DeleteScalingPlan operation. /// </summary> public partial class DeleteScalingPlanResponse : 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-plans-2018-01-06.normal.json service model. */ using System; using System.Collections.Generic; using System.Xml.Serialization; using System.Text; using System.IO; using System.Net; using Amazon.Runtime; using Amazon.Runtime.Internal; namespace Amazon.AutoScalingPlans.Model { /// <summary> /// Container for the parameters to the DescribeScalingPlanResources operation. /// Describes the scalable resources in the specified scaling plan. /// </summary> public partial class DescribeScalingPlanResourcesRequest : AmazonAutoScalingPlansRequest { private int? _maxResults; private string _nextToken; private string _scalingPlanName; private long? _scalingPlanVersion; /// <summary> /// Gets and sets the property MaxResults. /// <para> /// The maximum number of scalable resources to return. The value must be between 1 and /// 50. The default value is 50. /// </para> /// </summary> public int MaxResults { get { return this._maxResults.GetValueOrDefault(); } set { this._maxResults = value; } } // Check to see if MaxResults property is set internal bool IsSetMaxResults() { return this._maxResults.HasValue; } /// <summary> /// Gets and sets the property NextToken. /// <para> /// The token for the next set of results. /// </para> /// </summary> public string NextToken { get { return this._nextToken; } set { this._nextToken = value; } } // Check to see if NextToken property is set internal bool IsSetNextToken() { return this._nextToken != null; } /// <summary> /// Gets and sets the property ScalingPlanName. /// <para> /// The name of the scaling plan. /// </para> /// </summary> [AWSProperty(Required=true, Min=1, Max=128)] public string ScalingPlanName { get { return this._scalingPlanName; } set { this._scalingPlanName = value; } } // Check to see if ScalingPlanName property is set internal bool IsSetScalingPlanName() { return this._scalingPlanName != null; } /// <summary> /// Gets and sets the property ScalingPlanVersion. /// <para> /// The version number of the scaling plan. Currently, the only valid value is <code>1</code>. /// </para> /// </summary> [AWSProperty(Required=true)] public long ScalingPlanVersion { get { return this._scalingPlanVersion.GetValueOrDefault(); } set { this._scalingPlanVersion = value; } } // Check to see if ScalingPlanVersion property is set internal bool IsSetScalingPlanVersion() { return this._scalingPlanVersion.HasValue; } } }
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-plans-2018-01-06.normal.json service model. */ using System; using System.Collections.Generic; using System.Xml.Serialization; using System.Text; using System.IO; using System.Net; using Amazon.Runtime; using Amazon.Runtime.Internal; namespace Amazon.AutoScalingPlans.Model { /// <summary> /// This is the response object from the DescribeScalingPlanResources operation. /// </summary> public partial class DescribeScalingPlanResourcesResponse : AmazonWebServiceResponse { private string _nextToken; private List<ScalingPlanResource> _scalingPlanResources = new List<ScalingPlanResource>(); /// <summary> /// Gets and sets the property NextToken. /// <para> /// The token required to get the next set of results. This value is <code>null</code> /// if there are no more results to return. /// </para> /// </summary> public string NextToken { get { return this._nextToken; } set { this._nextToken = value; } } // Check to see if NextToken property is set internal bool IsSetNextToken() { return this._nextToken != null; } /// <summary> /// Gets and sets the property ScalingPlanResources. /// <para> /// Information about the scalable resources. /// </para> /// </summary> public List<ScalingPlanResource> ScalingPlanResources { get { return this._scalingPlanResources; } set { this._scalingPlanResources = value; } } // Check to see if ScalingPlanResources property is set internal bool IsSetScalingPlanResources() { return this._scalingPlanResources != null && this._scalingPlanResources.Count > 0; } } }
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-plans-2018-01-06.normal.json service model. */ using System; using System.Collections.Generic; using System.Xml.Serialization; using System.Text; using System.IO; using System.Net; using Amazon.Runtime; using Amazon.Runtime.Internal; namespace Amazon.AutoScalingPlans.Model { /// <summary> /// Container for the parameters to the DescribeScalingPlans operation. /// Describes one or more of your scaling plans. /// </summary> public partial class DescribeScalingPlansRequest : AmazonAutoScalingPlansRequest { private List<ApplicationSource> _applicationSources = new List<ApplicationSource>(); private int? _maxResults; private string _nextToken; private List<string> _scalingPlanNames = new List<string>(); private long? _scalingPlanVersion; /// <summary> /// Gets and sets the property ApplicationSources. /// <para> /// The sources for the applications (up to 10). If you specify scaling plan names, you /// cannot specify application sources. /// </para> /// </summary> public List<ApplicationSource> ApplicationSources { get { return this._applicationSources; } set { this._applicationSources = value; } } // Check to see if ApplicationSources property is set internal bool IsSetApplicationSources() { return this._applicationSources != null && this._applicationSources.Count > 0; } /// <summary> /// Gets and sets the property MaxResults. /// <para> /// The maximum number of scalable resources to return. This value can be between 1 and /// 50. The default value is 50. /// </para> /// </summary> public int MaxResults { get { return this._maxResults.GetValueOrDefault(); } set { this._maxResults = value; } } // Check to see if MaxResults property is set internal bool IsSetMaxResults() { return this._maxResults.HasValue; } /// <summary> /// Gets and sets the property NextToken. /// <para> /// The token for the next set of results. /// </para> /// </summary> public string NextToken { get { return this._nextToken; } set { this._nextToken = value; } } // Check to see if NextToken property is set internal bool IsSetNextToken() { return this._nextToken != null; } /// <summary> /// Gets and sets the property ScalingPlanNames. /// <para> /// The names of the scaling plans (up to 10). If you specify application sources, you /// cannot specify scaling plan names. /// </para> /// </summary> public List<string> ScalingPlanNames { get { return this._scalingPlanNames; } set { this._scalingPlanNames = value; } } // Check to see if ScalingPlanNames property is set internal bool IsSetScalingPlanNames() { return this._scalingPlanNames != null && this._scalingPlanNames.Count > 0; } /// <summary> /// Gets and sets the property ScalingPlanVersion. /// <para> /// The version number of the scaling plan. Currently, the only valid value is <code>1</code>. /// </para> /// <note> /// <para> /// If you specify a scaling plan version, you must also specify a scaling plan name. /// </para> /// </note> /// </summary> public long ScalingPlanVersion { get { return this._scalingPlanVersion.GetValueOrDefault(); } set { this._scalingPlanVersion = value; } } // Check to see if ScalingPlanVersion property is set internal bool IsSetScalingPlanVersion() { return this._scalingPlanVersion.HasValue; } } }
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-plans-2018-01-06.normal.json service model. */ using System; using System.Collections.Generic; using System.Xml.Serialization; using System.Text; using System.IO; using System.Net; using Amazon.Runtime; using Amazon.Runtime.Internal; namespace Amazon.AutoScalingPlans.Model { /// <summary> /// This is the response object from the DescribeScalingPlans operation. /// </summary> public partial class DescribeScalingPlansResponse : AmazonWebServiceResponse { private string _nextToken; private List<ScalingPlan> _scalingPlans = new List<ScalingPlan>(); /// <summary> /// Gets and sets the property NextToken. /// <para> /// The token required to get the next set of results. This value is <code>null</code> /// if there are no more results to return. /// </para> /// </summary> public string NextToken { get { return this._nextToken; } set { this._nextToken = value; } } // Check to see if NextToken property is set internal bool IsSetNextToken() { return this._nextToken != null; } /// <summary> /// Gets and sets the property ScalingPlans. /// <para> /// Information about the scaling plans. /// </para> /// </summary> public List<ScalingPlan> ScalingPlans { get { return this._scalingPlans; } set { this._scalingPlans = value; } } // Check to see if ScalingPlans property is set internal bool IsSetScalingPlans() { return this._scalingPlans != null && this._scalingPlans.Count > 0; } } }
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-plans-2018-01-06.normal.json service model. */ using System; using System.Collections.Generic; using System.Xml.Serialization; using System.Text; using System.IO; using System.Net; using Amazon.Runtime; using Amazon.Runtime.Internal; namespace Amazon.AutoScalingPlans.Model { /// <summary> /// Container for the parameters to the GetScalingPlanResourceForecastData operation. /// Retrieves the forecast data for a scalable resource. /// /// /// <para> /// Capacity forecasts are represented as predicted values, or data points, that are calculated /// using historical data points from a specified CloudWatch load metric. Data points /// are available for up to 56 days. /// </para> /// </summary> public partial class GetScalingPlanResourceForecastDataRequest : AmazonAutoScalingPlansRequest { private DateTime? _endTime; private ForecastDataType _forecastDataType; private string _resourceId; private ScalableDimension _scalableDimension; private string _scalingPlanName; private long? _scalingPlanVersion; private ServiceNamespace _serviceNamespace; private DateTime? _startTime; /// <summary> /// Gets and sets the property EndTime. /// <para> /// The exclusive end time of the time range for the forecast data to get. The maximum /// time duration between the start and end time is seven days. /// </para> /// /// <para> /// Although this parameter can accept a date and time that is more than two days in the /// future, the availability of forecast data has limits. AWS Auto Scaling only issues /// forecasts for periods of two days in advance. /// </para> /// </summary> [AWSProperty(Required=true)] 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 ForecastDataType. /// <para> /// The type of forecast data to get. /// </para> /// <ul> <li> /// <para> /// <code>LoadForecast</code>: The load metric forecast. /// </para> /// </li> <li> /// <para> /// <code>CapacityForecast</code>: The capacity forecast. /// </para> /// </li> <li> /// <para> /// <code>ScheduledActionMinCapacity</code>: The minimum capacity for each scheduled /// scaling action. This data is calculated as the larger of two values: the capacity /// forecast or the minimum capacity in the scaling instruction. /// </para> /// </li> <li> /// <para> /// <code>ScheduledActionMaxCapacity</code>: The maximum capacity for each scheduled /// scaling action. The calculation used is determined by the predictive scaling maximum /// capacity behavior setting in the scaling instruction. /// </para> /// </li> </ul> /// </summary> [AWSProperty(Required=true)] public ForecastDataType ForecastDataType { get { return this._forecastDataType; } set { this._forecastDataType = value; } } // Check to see if ForecastDataType property is set internal bool IsSetForecastDataType() { return this._forecastDataType != null; } /// <summary> /// Gets and sets the property ResourceId. /// <para> /// The ID of the resource. This string consists of a prefix (<code>autoScalingGroup</code>) /// followed by the name of a specified Auto Scaling group (<code>my-asg</code>). Example: /// <code>autoScalingGroup/my-asg</code>. /// </para> /// </summary> [AWSProperty(Required=true)] 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 ScalableDimension. /// <para> /// The scalable dimension for the resource. The only valid value is <code>autoscaling:autoScalingGroup:DesiredCapacity</code>. /// /// </para> /// </summary> [AWSProperty(Required=true)] public ScalableDimension ScalableDimension { get { return this._scalableDimension; } set { this._scalableDimension = value; } } // Check to see if ScalableDimension property is set internal bool IsSetScalableDimension() { return this._scalableDimension != null; } /// <summary> /// Gets and sets the property ScalingPlanName. /// <para> /// The name of the scaling plan. /// </para> /// </summary> [AWSProperty(Required=true, Min=1, Max=128)] public string ScalingPlanName { get { return this._scalingPlanName; } set { this._scalingPlanName = value; } } // Check to see if ScalingPlanName property is set internal bool IsSetScalingPlanName() { return this._scalingPlanName != null; } /// <summary> /// Gets and sets the property ScalingPlanVersion. /// <para> /// The version number of the scaling plan. Currently, the only valid value is <code>1</code>. /// </para> /// </summary> [AWSProperty(Required=true)] public long ScalingPlanVersion { get { return this._scalingPlanVersion.GetValueOrDefault(); } set { this._scalingPlanVersion = value; } } // Check to see if ScalingPlanVersion property is set internal bool IsSetScalingPlanVersion() { return this._scalingPlanVersion.HasValue; } /// <summary> /// Gets and sets the property ServiceNamespace. /// <para> /// The namespace of the AWS service. The only valid value is <code>autoscaling</code>. /// /// </para> /// </summary> [AWSProperty(Required=true)] public ServiceNamespace ServiceNamespace { get { return this._serviceNamespace; } set { this._serviceNamespace = value; } } // Check to see if ServiceNamespace property is set internal bool IsSetServiceNamespace() { return this._serviceNamespace != null; } /// <summary> /// Gets and sets the property StartTime. /// <para> /// The inclusive start time of the time range for the forecast data to get. The date /// and time can be at most 56 days before the current date and time. /// </para> /// </summary> [AWSProperty(Required=true)] 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; } } }
239
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-plans-2018-01-06.normal.json service model. */ using System; using System.Collections.Generic; using System.Xml.Serialization; using System.Text; using System.IO; using System.Net; using Amazon.Runtime; using Amazon.Runtime.Internal; namespace Amazon.AutoScalingPlans.Model { /// <summary> /// This is the response object from the GetScalingPlanResourceForecastData operation. /// </summary> public partial class GetScalingPlanResourceForecastDataResponse : AmazonWebServiceResponse { private List<Datapoint> _datapoints = new List<Datapoint>(); /// <summary> /// Gets and sets the property Datapoints. /// <para> /// The data points to return. /// </para> /// </summary> [AWSProperty(Required=true)] public List<Datapoint> Datapoints { get { return this._datapoints; } set { this._datapoints = value; } } // Check to see if Datapoints property is set internal bool IsSetDatapoints() { return this._datapoints != null && this._datapoints.Count > 0; } } }
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-plans-2018-01-06.normal.json service model. */ using System; using System.Collections.Generic; using System.Xml.Serialization; using System.Text; using System.IO; using System.Net; using Amazon.Runtime; using Amazon.Runtime.Internal; namespace Amazon.AutoScalingPlans.Model { /// <summary> /// The service encountered an internal error. /// </summary> #if !NETSTANDARD [Serializable] #endif public partial class InternalServiceException : AmazonAutoScalingPlansException { /// <summary> /// Constructs a new InternalServiceException with the specified error /// message. /// </summary> /// <param name="message"> /// Describes the error encountered. /// </param> public InternalServiceException(string message) : base(message) {} /// <summary> /// Construct instance of InternalServiceException /// </summary> /// <param name="message"></param> /// <param name="innerException"></param> public InternalServiceException(string message, Exception innerException) : base(message, innerException) {} /// <summary> /// Construct instance of InternalServiceException /// </summary> /// <param name="innerException"></param> public InternalServiceException(Exception innerException) : base(innerException) {} /// <summary> /// Construct instance of InternalServiceException /// </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 InternalServiceException(string message, Exception innerException, ErrorType errorType, string errorCode, string requestId, HttpStatusCode statusCode) : base(message, innerException, errorType, errorCode, requestId, statusCode) {} /// <summary> /// Construct instance of InternalServiceException /// </summary> /// <param name="message"></param> /// <param name="errorType"></param> /// <param name="errorCode"></param> /// <param name="requestId"></param> /// <param name="statusCode"></param> public InternalServiceException(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 InternalServiceException 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 InternalServiceException(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-plans-2018-01-06.normal.json service model. */ using System; using System.Collections.Generic; using System.Xml.Serialization; using System.Text; using System.IO; using System.Net; using Amazon.Runtime; using Amazon.Runtime.Internal; namespace Amazon.AutoScalingPlans.Model { /// <summary> /// The token provided is not valid. /// </summary> #if !NETSTANDARD [Serializable] #endif public partial class InvalidNextTokenException : AmazonAutoScalingPlansException { /// <summary> /// Constructs a new InvalidNextTokenException with the specified error /// message. /// </summary> /// <param name="message"> /// Describes the error encountered. /// </param> public InvalidNextTokenException(string message) : base(message) {} /// <summary> /// Construct instance of InvalidNextTokenException /// </summary> /// <param name="message"></param> /// <param name="innerException"></param> public InvalidNextTokenException(string message, Exception innerException) : base(message, innerException) {} /// <summary> /// Construct instance of InvalidNextTokenException /// </summary> /// <param name="innerException"></param> public InvalidNextTokenException(Exception innerException) : base(innerException) {} /// <summary> /// Construct instance of InvalidNextTokenException /// </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 InvalidNextTokenException(string message, Exception innerException, ErrorType errorType, string errorCode, string requestId, HttpStatusCode statusCode) : base(message, innerException, errorType, errorCode, requestId, statusCode) {} /// <summary> /// Construct instance of InvalidNextTokenException /// </summary> /// <param name="message"></param> /// <param name="errorType"></param> /// <param name="errorCode"></param> /// <param name="requestId"></param> /// <param name="statusCode"></param> public InvalidNextTokenException(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 InvalidNextTokenException 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 InvalidNextTokenException(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-plans-2018-01-06.normal.json service model. */ using System; using System.Collections.Generic; using System.Xml.Serialization; using System.Text; using System.IO; using System.Net; using Amazon.Runtime; using Amazon.Runtime.Internal; namespace Amazon.AutoScalingPlans.Model { /// <summary> /// Your account exceeded a limit. This exception is thrown when a per-account resource /// limit is exceeded. /// </summary> #if !NETSTANDARD [Serializable] #endif public partial class LimitExceededException : AmazonAutoScalingPlansException { /// <summary> /// Constructs a new LimitExceededException with the specified error /// message. /// </summary> /// <param name="message"> /// Describes the error encountered. /// </param> public LimitExceededException(string message) : base(message) {} /// <summary> /// Construct instance of LimitExceededException /// </summary> /// <param name="message"></param> /// <param name="innerException"></param> public LimitExceededException(string message, Exception innerException) : base(message, innerException) {} /// <summary> /// Construct instance of LimitExceededException /// </summary> /// <param name="innerException"></param> public LimitExceededException(Exception innerException) : base(innerException) {} /// <summary> /// Construct instance of LimitExceededException /// </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 LimitExceededException(string message, Exception innerException, ErrorType errorType, string errorCode, string requestId, HttpStatusCode statusCode) : base(message, innerException, errorType, errorCode, requestId, statusCode) {} /// <summary> /// Construct instance of LimitExceededException /// </summary> /// <param name="message"></param> /// <param name="errorType"></param> /// <param name="errorCode"></param> /// <param name="requestId"></param> /// <param name="statusCode"></param> public LimitExceededException(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 LimitExceededException 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 LimitExceededException(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-plans-2018-01-06.normal.json service model. */ using System; using System.Collections.Generic; using System.Xml.Serialization; using System.Text; using System.IO; using System.Net; using Amazon.Runtime; using Amazon.Runtime.Internal; namespace Amazon.AutoScalingPlans.Model { /// <summary> /// Represents a dimension for a customized 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-plans-2018-01-06.normal.json service model. */ using System; using System.Collections.Generic; using System.Xml.Serialization; using System.Text; using System.IO; using System.Net; using Amazon.Runtime; using Amazon.Runtime.Internal; namespace Amazon.AutoScalingPlans.Model { /// <summary> /// The specified object could not be found. /// </summary> #if !NETSTANDARD [Serializable] #endif public partial class ObjectNotFoundException : AmazonAutoScalingPlansException { /// <summary> /// Constructs a new ObjectNotFoundException with the specified error /// message. /// </summary> /// <param name="message"> /// Describes the error encountered. /// </param> public ObjectNotFoundException(string message) : base(message) {} /// <summary> /// Construct instance of ObjectNotFoundException /// </summary> /// <param name="message"></param> /// <param name="innerException"></param> public ObjectNotFoundException(string message, Exception innerException) : base(message, innerException) {} /// <summary> /// Construct instance of ObjectNotFoundException /// </summary> /// <param name="innerException"></param> public ObjectNotFoundException(Exception innerException) : base(innerException) {} /// <summary> /// Construct instance of ObjectNotFoundException /// </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 ObjectNotFoundException(string message, Exception innerException, ErrorType errorType, string errorCode, string requestId, HttpStatusCode statusCode) : base(message, innerException, errorType, errorCode, requestId, statusCode) {} /// <summary> /// Construct instance of ObjectNotFoundException /// </summary> /// <param name="message"></param> /// <param name="errorType"></param> /// <param name="errorCode"></param> /// <param name="requestId"></param> /// <param name="statusCode"></param> public ObjectNotFoundException(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 ObjectNotFoundException 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 ObjectNotFoundException(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-plans-2018-01-06.normal.json service model. */ using System; using System.Collections.Generic; using System.Xml.Serialization; using System.Text; using System.IO; using System.Net; using Amazon.Runtime; using Amazon.Runtime.Internal; namespace Amazon.AutoScalingPlans.Model { /// <summary> /// Represents a predefined metric that can be used for predictive scaling. /// /// /// <para> /// After creating your scaling plan, you can use the AWS Auto Scaling console to visualize /// forecasts for the specified metric. For more information, see <a href="https://docs.aws.amazon.com/autoscaling/plans/userguide/gs-create-scaling-plan.html#gs-view-resource">View /// Scaling Information for a Resource</a> in the <i>AWS Auto Scaling User Guide</i>. /// </para> /// </summary> public partial class PredefinedLoadMetricSpecification { private LoadMetricType _predefinedLoadMetricType; private string _resourceLabel; /// <summary> /// Gets and sets the property PredefinedLoadMetricType. /// <para> /// The metric type. /// </para> /// </summary> [AWSProperty(Required=true)] public LoadMetricType PredefinedLoadMetricType { get { return this._predefinedLoadMetricType; } set { this._predefinedLoadMetricType = value; } } // Check to see if PredefinedLoadMetricType property is set internal bool IsSetPredefinedLoadMetricType() { return this._predefinedLoadMetricType != null; } /// <summary> /// Gets and sets the property ResourceLabel. /// <para> /// Identifies the resource associated with the metric type. You can't specify a resource /// label unless the metric type is <code>ALBTargetGroupRequestCount</code> and there /// is a target group for an Application Load Balancer 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 is app/&lt;load-balancer-name&gt;/&lt;load-balancer-id&gt;/targetgroup/&lt;target-group-name&gt;/&lt;target-group-id&gt;, /// where: /// </para> /// <ul> <li> /// <para> /// app/&lt;load-balancer-name&gt;/&lt;load-balancer-id&gt; is the final portion of the /// load balancer ARN /// </para> /// </li> <li> /// <para> /// targetgroup/&lt;target-group-name&gt;/&lt;target-group-id&gt; is the final portion /// of the target group ARN. /// </para> /// </li> </ul> /// <para> /// This is an example: app/EC2Co-EcsEl-1TKLTMITMM0EO/f37c06a68c1748aa/targetgroup/EC2Co-Defau-LDNM7Q3ZH1ZN/6d4ea56ca2d6a18d. /// </para> /// /// <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; } } }
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-plans-2018-01-06.normal.json service model. */ using System; using System.Collections.Generic; using System.Xml.Serialization; using System.Text; using System.IO; using System.Net; using Amazon.Runtime; using Amazon.Runtime.Internal; namespace Amazon.AutoScalingPlans.Model { /// <summary> /// Represents a predefined metric that can be used for dynamic scaling as part of a target /// tracking scaling policy. /// </summary> public partial class PredefinedScalingMetricSpecification { private ScalingMetricType _predefinedScalingMetricType; private string _resourceLabel; /// <summary> /// Gets and sets the property PredefinedScalingMetricType. /// <para> /// The metric type. The <code>ALBRequestCountPerTarget</code> metric type applies only /// to Auto Scaling groups, Spot Fleet requests, and ECS services. /// </para> /// </summary> [AWSProperty(Required=true)] public ScalingMetricType PredefinedScalingMetricType { get { return this._predefinedScalingMetricType; } set { this._predefinedScalingMetricType = value; } } // Check to see if PredefinedScalingMetricType property is set internal bool IsSetPredefinedScalingMetricType() { return this._predefinedScalingMetricType != null; } /// <summary> /// Gets and sets the property ResourceLabel. /// <para> /// Identifies the resource associated with the metric type. You can't specify a resource /// label unless the metric type is <code>ALBRequestCountPerTarget</code> and there is /// a target group for an Application Load Balancer attached to the Auto Scaling group, /// Spot Fleet request, or ECS service. /// </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 is app/&lt;load-balancer-name&gt;/&lt;load-balancer-id&gt;/targetgroup/&lt;target-group-name&gt;/&lt;target-group-id&gt;, /// where: /// </para> /// <ul> <li> /// <para> /// app/&lt;load-balancer-name&gt;/&lt;load-balancer-id&gt; is the final portion of the /// load balancer ARN /// </para> /// </li> <li> /// <para> /// targetgroup/&lt;target-group-name&gt;/&lt;target-group-id&gt; is the final portion /// of the target group ARN. /// </para> /// </li> </ul> /// <para> /// This is an example: app/EC2Co-EcsEl-1TKLTMITMM0EO/f37c06a68c1748aa/targetgroup/EC2Co-Defau-LDNM7Q3ZH1ZN/6d4ea56ca2d6a18d. /// </para> /// /// <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; } } }
110
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-plans-2018-01-06.normal.json service model. */ using System; using System.Collections.Generic; using System.Xml.Serialization; using System.Text; using System.IO; using System.Net; using Amazon.Runtime; using Amazon.Runtime.Internal; namespace Amazon.AutoScalingPlans.Model { /// <summary> /// Describes a scaling instruction for a scalable resource in a scaling plan. Each scaling /// instruction applies to one resource. /// /// /// <para> /// AWS Auto Scaling creates target tracking scaling policies based on the scaling instructions. /// Target tracking scaling policies adjust the capacity of your scalable resource as /// required to maintain resource utilization at the target value that you specified. /// /// </para> /// /// <para> /// AWS Auto Scaling also configures predictive scaling for your Amazon EC2 Auto Scaling /// groups using a subset of parameters, including the load metric, the scaling metric, /// the target value for the scaling metric, the predictive scaling mode (forecast and /// scale or forecast only), and the desired behavior when the forecast capacity exceeds /// the maximum capacity of the resource. With predictive scaling, AWS Auto Scaling generates /// forecasts with traffic predictions for the two days ahead and schedules scaling actions /// that proactively add and remove resource capacity to match the forecast. /// </para> /// <important> /// <para> /// We recommend waiting a minimum of 24 hours after creating an Auto Scaling group to /// configure predictive scaling. At minimum, there must be 24 hours of historical data /// to generate a forecast. For more information, see <a href="https://docs.aws.amazon.com/autoscaling/plans/userguide/gs-best-practices.html">Best /// Practices for AWS Auto Scaling</a> in the <i>AWS Auto Scaling User Guide</i>. /// </para> /// </important> /// </summary> public partial class ScalingInstruction { private CustomizedLoadMetricSpecification _customizedLoadMetricSpecification; private bool? _disableDynamicScaling; private int? _maxCapacity; private int? _minCapacity; private PredefinedLoadMetricSpecification _predefinedLoadMetricSpecification; private PredictiveScalingMaxCapacityBehavior _predictiveScalingMaxCapacityBehavior; private int? _predictiveScalingMaxCapacityBuffer; private PredictiveScalingMode _predictiveScalingMode; private string _resourceId; private ScalableDimension _scalableDimension; private ScalingPolicyUpdateBehavior _scalingPolicyUpdateBehavior; private int? _scheduledActionBufferTime; private ServiceNamespace _serviceNamespace; private List<TargetTrackingConfiguration> _targetTrackingConfigurations = new List<TargetTrackingConfiguration>(); /// <summary> /// Gets and sets the property CustomizedLoadMetricSpecification. /// <para> /// The customized load metric to use for predictive scaling. This parameter or a <b>PredefinedLoadMetricSpecification</b> /// is required when configuring predictive scaling, and cannot be used otherwise. /// </para> /// </summary> public CustomizedLoadMetricSpecification 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 DisableDynamicScaling. /// <para> /// Controls whether dynamic scaling by AWS Auto Scaling is disabled. When dynamic scaling /// is enabled, AWS Auto Scaling creates target tracking scaling policies based on the /// specified target tracking configurations. /// </para> /// /// <para> /// The default is enabled (<code>false</code>). /// </para> /// </summary> public bool DisableDynamicScaling { get { return this._disableDynamicScaling.GetValueOrDefault(); } set { this._disableDynamicScaling = value; } } // Check to see if DisableDynamicScaling property is set internal bool IsSetDisableDynamicScaling() { return this._disableDynamicScaling.HasValue; } /// <summary> /// Gets and sets the property MaxCapacity. /// <para> /// The maximum capacity of the resource. The exception to this upper limit is if you /// specify a non-default setting for <b>PredictiveScalingMaxCapacityBehavior</b>. /// </para> /// </summary> [AWSProperty(Required=true)] public int MaxCapacity { get { return this._maxCapacity.GetValueOrDefault(); } set { this._maxCapacity = value; } } // Check to see if MaxCapacity property is set internal bool IsSetMaxCapacity() { return this._maxCapacity.HasValue; } /// <summary> /// Gets and sets the property MinCapacity. /// <para> /// The minimum capacity of the resource. /// </para> /// </summary> [AWSProperty(Required=true)] public int MinCapacity { get { return this._minCapacity.GetValueOrDefault(); } set { this._minCapacity = value; } } // Check to see if MinCapacity property is set internal bool IsSetMinCapacity() { return this._minCapacity.HasValue; } /// <summary> /// Gets and sets the property PredefinedLoadMetricSpecification. /// <para> /// The predefined load metric to use for predictive scaling. This parameter or a <b>CustomizedLoadMetricSpecification</b> /// is required when configuring predictive scaling, and cannot be used otherwise. /// </para> /// </summary> public PredefinedLoadMetricSpecification 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 PredictiveScalingMaxCapacityBehavior. /// <para> /// Defines the behavior that should be applied if the forecast capacity approaches or /// exceeds the maximum capacity specified for the resource. The default value is <code>SetForecastCapacityToMaxCapacity</code>. /// </para> /// /// <para> /// The following are possible values: /// </para> /// <ul> <li> /// <para> /// <code>SetForecastCapacityToMaxCapacity</code> - AWS Auto Scaling cannot scale resource /// capacity higher than the maximum capacity. The maximum capacity is enforced as a hard /// limit. /// </para> /// </li> <li> /// <para> /// <code>SetMaxCapacityToForecastCapacity</code> - AWS Auto Scaling may scale resource /// capacity higher than the maximum capacity to equal but not exceed forecast capacity. /// </para> /// </li> <li> /// <para> /// <code>SetMaxCapacityAboveForecastCapacity</code> - AWS Auto Scaling may scale resource /// capacity higher than the maximum capacity by a specified buffer value. The intention /// is to give the target tracking scaling policy extra capacity if unexpected traffic /// occurs. /// </para> /// </li> </ul> /// <para> /// Only valid when configuring predictive scaling. /// </para> /// </summary> public PredictiveScalingMaxCapacityBehavior PredictiveScalingMaxCapacityBehavior { get { return this._predictiveScalingMaxCapacityBehavior; } set { this._predictiveScalingMaxCapacityBehavior = value; } } // Check to see if PredictiveScalingMaxCapacityBehavior property is set internal bool IsSetPredictiveScalingMaxCapacityBehavior() { return this._predictiveScalingMaxCapacityBehavior != null; } /// <summary> /// Gets and sets the property PredictiveScalingMaxCapacityBuffer. /// <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> /// Only valid when configuring predictive scaling. Required if the <b>PredictiveScalingMaxCapacityBehavior</b> /// is set to <code>SetMaxCapacityAboveForecastCapacity</code>, and cannot be used otherwise. /// </para> /// /// <para> /// The range is 1-100. /// </para> /// </summary> public int PredictiveScalingMaxCapacityBuffer { get { return this._predictiveScalingMaxCapacityBuffer.GetValueOrDefault(); } set { this._predictiveScalingMaxCapacityBuffer = value; } } // Check to see if PredictiveScalingMaxCapacityBuffer property is set internal bool IsSetPredictiveScalingMaxCapacityBuffer() { return this._predictiveScalingMaxCapacityBuffer.HasValue; } /// <summary> /// Gets and sets the property PredictiveScalingMode. /// <para> /// The predictive scaling mode. The default value is <code>ForecastAndScale</code>. Otherwise, /// AWS Auto Scaling forecasts capacity but does not create any scheduled scaling actions /// based on the capacity forecast. /// </para> /// </summary> public PredictiveScalingMode PredictiveScalingMode { get { return this._predictiveScalingMode; } set { this._predictiveScalingMode = value; } } // Check to see if PredictiveScalingMode property is set internal bool IsSetPredictiveScalingMode() { return this._predictiveScalingMode != null; } /// <summary> /// Gets and sets the property ResourceId. /// <para> /// The ID of the resource. This string consists of the resource type and unique identifier. /// </para> /// <ul> <li> /// <para> /// Auto Scaling group - The resource type is <code>autoScalingGroup</code> and the unique /// identifier is the name of the Auto Scaling group. Example: <code>autoScalingGroup/my-asg</code>. /// </para> /// </li> <li> /// <para> /// ECS service - The resource type is <code>service</code> and the unique identifier /// is the cluster name and service name. Example: <code>service/default/sample-webapp</code>. /// </para> /// </li> <li> /// <para> /// Spot Fleet request - The resource type is <code>spot-fleet-request</code> and the /// unique identifier is the Spot Fleet request ID. Example: <code>spot-fleet-request/sfr-73fbd2ce-aa30-494c-8788-1cee4EXAMPLE</code>. /// </para> /// </li> <li> /// <para> /// DynamoDB table - The resource type is <code>table</code> and the unique identifier /// is the resource ID. Example: <code>table/my-table</code>. /// </para> /// </li> <li> /// <para> /// DynamoDB global secondary index - The resource type is <code>index</code> and the /// unique identifier is the resource ID. Example: <code>table/my-table/index/my-table-index</code>. /// </para> /// </li> <li> /// <para> /// Aurora DB cluster - The resource type is <code>cluster</code> and the unique identifier /// is the cluster name. Example: <code>cluster:my-db-cluster</code>. /// </para> /// </li> </ul> /// </summary> [AWSProperty(Required=true, Min=1, Max=1600)] 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 ScalableDimension. /// <para> /// The scalable dimension associated with the resource. /// </para> /// <ul> <li> /// <para> /// <code>autoscaling:autoScalingGroup:DesiredCapacity</code> - The desired capacity /// of an Auto Scaling group. /// </para> /// </li> <li> /// <para> /// <code>ecs:service:DesiredCount</code> - The desired task count of an ECS service. /// </para> /// </li> <li> /// <para> /// <code>ec2:spot-fleet-request:TargetCapacity</code> - The target capacity of a Spot /// Fleet request. /// </para> /// </li> <li> /// <para> /// <code>dynamodb:table:ReadCapacityUnits</code> - The provisioned read capacity for /// a DynamoDB table. /// </para> /// </li> <li> /// <para> /// <code>dynamodb:table:WriteCapacityUnits</code> - The provisioned write capacity for /// a DynamoDB table. /// </para> /// </li> <li> /// <para> /// <code>dynamodb:index:ReadCapacityUnits</code> - The provisioned read capacity for /// a DynamoDB global secondary index. /// </para> /// </li> <li> /// <para> /// <code>dynamodb:index:WriteCapacityUnits</code> - The provisioned write capacity for /// a DynamoDB global secondary index. /// </para> /// </li> <li> /// <para> /// <code>rds:cluster:ReadReplicaCount</code> - The count of Aurora Replicas in an Aurora /// DB cluster. Available for Aurora MySQL-compatible edition and Aurora PostgreSQL-compatible /// edition. /// </para> /// </li> </ul> /// </summary> [AWSProperty(Required=true)] public ScalableDimension ScalableDimension { get { return this._scalableDimension; } set { this._scalableDimension = value; } } // Check to see if ScalableDimension property is set internal bool IsSetScalableDimension() { return this._scalableDimension != null; } /// <summary> /// Gets and sets the property ScalingPolicyUpdateBehavior. /// <para> /// Controls whether a resource's externally created scaling policies are kept or replaced. /// /// </para> /// /// <para> /// The default value is <code>KeepExternalPolicies</code>. If the parameter is set to /// <code>ReplaceExternalPolicies</code>, any scaling policies that are external to AWS /// Auto Scaling are deleted and new target tracking scaling policies created. /// </para> /// /// <para> /// Only valid when configuring dynamic scaling. /// </para> /// /// <para> /// Condition: The number of existing policies to be replaced must be less than or equal /// to 50. If there are more than 50 policies to be replaced, AWS Auto Scaling keeps all /// existing policies and does not create new ones. /// </para> /// </summary> public ScalingPolicyUpdateBehavior ScalingPolicyUpdateBehavior { get { return this._scalingPolicyUpdateBehavior; } set { this._scalingPolicyUpdateBehavior = value; } } // Check to see if ScalingPolicyUpdateBehavior property is set internal bool IsSetScalingPolicyUpdateBehavior() { return this._scalingPolicyUpdateBehavior != null; } /// <summary> /// Gets and sets the property ScheduledActionBufferTime. /// <para> /// The amount of time, in seconds, to buffer the run time of scheduled scaling actions /// when scaling out. For example, if the forecast says to add capacity at 10:00 AM, and /// the buffer time is 5 minutes, then the run time of the corresponding scheduled scaling /// action will be 9:55 AM. The intention is to give resources time to be provisioned. /// For example, 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). /// The default is 300 seconds. /// </para> /// /// <para> /// Only valid when configuring predictive scaling. /// </para> /// </summary> [AWSProperty(Min=0)] public int ScheduledActionBufferTime { get { return this._scheduledActionBufferTime.GetValueOrDefault(); } set { this._scheduledActionBufferTime = value; } } // Check to see if ScheduledActionBufferTime property is set internal bool IsSetScheduledActionBufferTime() { return this._scheduledActionBufferTime.HasValue; } /// <summary> /// Gets and sets the property ServiceNamespace. /// <para> /// The namespace of the AWS service. /// </para> /// </summary> [AWSProperty(Required=true)] public ServiceNamespace ServiceNamespace { get { return this._serviceNamespace; } set { this._serviceNamespace = value; } } // Check to see if ServiceNamespace property is set internal bool IsSetServiceNamespace() { return this._serviceNamespace != null; } /// <summary> /// Gets and sets the property TargetTrackingConfigurations. /// <para> /// The target tracking configurations (up to 10). Each of these structures must specify /// a unique scaling metric and a target value for the metric. /// </para> /// </summary> [AWSProperty(Required=true)] public List<TargetTrackingConfiguration> TargetTrackingConfigurations { get { return this._targetTrackingConfigurations; } set { this._targetTrackingConfigurations = value; } } // Check to see if TargetTrackingConfigurations property is set internal bool IsSetTargetTrackingConfigurations() { return this._targetTrackingConfigurations != null && this._targetTrackingConfigurations.Count > 0; } } }
494
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-plans-2018-01-06.normal.json service model. */ using System; using System.Collections.Generic; using System.Xml.Serialization; using System.Text; using System.IO; using System.Net; using Amazon.Runtime; using Amazon.Runtime.Internal; namespace Amazon.AutoScalingPlans.Model { /// <summary> /// Represents a scaling plan. /// </summary> public partial class ScalingPlan { private ApplicationSource _applicationSource; private DateTime? _creationTime; private List<ScalingInstruction> _scalingInstructions = new List<ScalingInstruction>(); private string _scalingPlanName; private long? _scalingPlanVersion; private ScalingPlanStatusCode _statusCode; private string _statusMessage; private DateTime? _statusStartTime; /// <summary> /// Gets and sets the property ApplicationSource. /// <para> /// A CloudFormation stack or a set of tags. You can create one scaling plan per application /// source. /// </para> /// </summary> [AWSProperty(Required=true)] public ApplicationSource ApplicationSource { get { return this._applicationSource; } set { this._applicationSource = value; } } // Check to see if ApplicationSource property is set internal bool IsSetApplicationSource() { return this._applicationSource != null; } /// <summary> /// Gets and sets the property CreationTime. /// <para> /// The Unix time stamp when the scaling plan was created. /// </para> /// </summary> public DateTime CreationTime { get { return this._creationTime.GetValueOrDefault(); } set { this._creationTime = value; } } // Check to see if CreationTime property is set internal bool IsSetCreationTime() { return this._creationTime.HasValue; } /// <summary> /// Gets and sets the property ScalingInstructions. /// <para> /// The scaling instructions. /// </para> /// </summary> [AWSProperty(Required=true)] public List<ScalingInstruction> ScalingInstructions { get { return this._scalingInstructions; } set { this._scalingInstructions = value; } } // Check to see if ScalingInstructions property is set internal bool IsSetScalingInstructions() { return this._scalingInstructions != null && this._scalingInstructions.Count > 0; } /// <summary> /// Gets and sets the property ScalingPlanName. /// <para> /// The name of the scaling plan. /// </para> /// </summary> [AWSProperty(Required=true, Min=1, Max=128)] public string ScalingPlanName { get { return this._scalingPlanName; } set { this._scalingPlanName = value; } } // Check to see if ScalingPlanName property is set internal bool IsSetScalingPlanName() { return this._scalingPlanName != null; } /// <summary> /// Gets and sets the property ScalingPlanVersion. /// <para> /// The version number of the scaling plan. /// </para> /// </summary> [AWSProperty(Required=true)] public long ScalingPlanVersion { get { return this._scalingPlanVersion.GetValueOrDefault(); } set { this._scalingPlanVersion = value; } } // Check to see if ScalingPlanVersion property is set internal bool IsSetScalingPlanVersion() { return this._scalingPlanVersion.HasValue; } /// <summary> /// Gets and sets the property StatusCode. /// <para> /// The status of the scaling plan. /// </para> /// <ul> <li> /// <para> /// <code>Active</code> - The scaling plan is active. /// </para> /// </li> <li> /// <para> /// <code>ActiveWithProblems</code> - The scaling plan is active, but the scaling configuration /// for one or more resources could not be applied. /// </para> /// </li> <li> /// <para> /// <code>CreationInProgress</code> - The scaling plan is being created. /// </para> /// </li> <li> /// <para> /// <code>CreationFailed</code> - The scaling plan could not be created. /// </para> /// </li> <li> /// <para> /// <code>DeletionInProgress</code> - The scaling plan is being deleted. /// </para> /// </li> <li> /// <para> /// <code>DeletionFailed</code> - The scaling plan could not be deleted. /// </para> /// </li> <li> /// <para> /// <code>UpdateInProgress</code> - The scaling plan is being updated. /// </para> /// </li> <li> /// <para> /// <code>UpdateFailed</code> - The scaling plan could not be updated. /// </para> /// </li> </ul> /// </summary> [AWSProperty(Required=true)] public ScalingPlanStatusCode StatusCode { get { return this._statusCode; } set { this._statusCode = value; } } // Check to see if StatusCode property is set internal bool IsSetStatusCode() { return this._statusCode != null; } /// <summary> /// Gets and sets the property StatusMessage. /// <para> /// A simple message about the current status of the scaling plan. /// </para> /// </summary> public string StatusMessage { get { return this._statusMessage; } set { this._statusMessage = value; } } // Check to see if StatusMessage property is set internal bool IsSetStatusMessage() { return this._statusMessage != null; } /// <summary> /// Gets and sets the property StatusStartTime. /// <para> /// The Unix time stamp when the scaling plan entered the current status. /// </para> /// </summary> public DateTime StatusStartTime { get { return this._statusStartTime.GetValueOrDefault(); } set { this._statusStartTime = value; } } // Check to see if StatusStartTime property is set internal bool IsSetStatusStartTime() { return this._statusStartTime.HasValue; } } }
230
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-plans-2018-01-06.normal.json service model. */ using System; using System.Collections.Generic; using System.Xml.Serialization; using System.Text; using System.IO; using System.Net; using Amazon.Runtime; using Amazon.Runtime.Internal; namespace Amazon.AutoScalingPlans.Model { /// <summary> /// Represents a scalable resource. /// </summary> public partial class ScalingPlanResource { private string _resourceId; private ScalableDimension _scalableDimension; private string _scalingPlanName; private long? _scalingPlanVersion; private List<ScalingPolicy> _scalingPolicies = new List<ScalingPolicy>(); private ScalingStatusCode _scalingStatusCode; private string _scalingStatusMessage; private ServiceNamespace _serviceNamespace; /// <summary> /// Gets and sets the property ResourceId. /// <para> /// The ID of the resource. This string consists of the resource type and unique identifier. /// </para> /// <ul> <li> /// <para> /// Auto Scaling group - The resource type is <code>autoScalingGroup</code> and the unique /// identifier is the name of the Auto Scaling group. Example: <code>autoScalingGroup/my-asg</code>. /// </para> /// </li> <li> /// <para> /// ECS service - The resource type is <code>service</code> and the unique identifier /// is the cluster name and service name. Example: <code>service/default/sample-webapp</code>. /// </para> /// </li> <li> /// <para> /// Spot Fleet request - The resource type is <code>spot-fleet-request</code> and the /// unique identifier is the Spot Fleet request ID. Example: <code>spot-fleet-request/sfr-73fbd2ce-aa30-494c-8788-1cee4EXAMPLE</code>. /// </para> /// </li> <li> /// <para> /// DynamoDB table - The resource type is <code>table</code> and the unique identifier /// is the resource ID. Example: <code>table/my-table</code>. /// </para> /// </li> <li> /// <para> /// DynamoDB global secondary index - The resource type is <code>index</code> and the /// unique identifier is the resource ID. Example: <code>table/my-table/index/my-table-index</code>. /// </para> /// </li> <li> /// <para> /// Aurora DB cluster - The resource type is <code>cluster</code> and the unique identifier /// is the cluster name. Example: <code>cluster:my-db-cluster</code>. /// </para> /// </li> </ul> /// </summary> [AWSProperty(Required=true, Min=1, Max=1600)] 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 ScalableDimension. /// <para> /// The scalable dimension for the resource. /// </para> /// <ul> <li> /// <para> /// <code>autoscaling:autoScalingGroup:DesiredCapacity</code> - The desired capacity /// of an Auto Scaling group. /// </para> /// </li> <li> /// <para> /// <code>ecs:service:DesiredCount</code> - The desired task count of an ECS service. /// </para> /// </li> <li> /// <para> /// <code>ec2:spot-fleet-request:TargetCapacity</code> - The target capacity of a Spot /// Fleet request. /// </para> /// </li> <li> /// <para> /// <code>dynamodb:table:ReadCapacityUnits</code> - The provisioned read capacity for /// a DynamoDB table. /// </para> /// </li> <li> /// <para> /// <code>dynamodb:table:WriteCapacityUnits</code> - The provisioned write capacity for /// a DynamoDB table. /// </para> /// </li> <li> /// <para> /// <code>dynamodb:index:ReadCapacityUnits</code> - The provisioned read capacity for /// a DynamoDB global secondary index. /// </para> /// </li> <li> /// <para> /// <code>dynamodb:index:WriteCapacityUnits</code> - The provisioned write capacity for /// a DynamoDB global secondary index. /// </para> /// </li> <li> /// <para> /// <code>rds:cluster:ReadReplicaCount</code> - The count of Aurora Replicas in an Aurora /// DB cluster. Available for Aurora MySQL-compatible edition and Aurora PostgreSQL-compatible /// edition. /// </para> /// </li> </ul> /// </summary> [AWSProperty(Required=true)] public ScalableDimension ScalableDimension { get { return this._scalableDimension; } set { this._scalableDimension = value; } } // Check to see if ScalableDimension property is set internal bool IsSetScalableDimension() { return this._scalableDimension != null; } /// <summary> /// Gets and sets the property ScalingPlanName. /// <para> /// The name of the scaling plan. /// </para> /// </summary> [AWSProperty(Required=true, Min=1, Max=128)] public string ScalingPlanName { get { return this._scalingPlanName; } set { this._scalingPlanName = value; } } // Check to see if ScalingPlanName property is set internal bool IsSetScalingPlanName() { return this._scalingPlanName != null; } /// <summary> /// Gets and sets the property ScalingPlanVersion. /// <para> /// The version number of the scaling plan. /// </para> /// </summary> [AWSProperty(Required=true)] public long ScalingPlanVersion { get { return this._scalingPlanVersion.GetValueOrDefault(); } set { this._scalingPlanVersion = value; } } // Check to see if ScalingPlanVersion property is set internal bool IsSetScalingPlanVersion() { return this._scalingPlanVersion.HasValue; } /// <summary> /// Gets and sets the property ScalingPolicies. /// <para> /// The scaling policies. /// </para> /// </summary> public List<ScalingPolicy> ScalingPolicies { get { return this._scalingPolicies; } set { this._scalingPolicies = value; } } // Check to see if ScalingPolicies property is set internal bool IsSetScalingPolicies() { return this._scalingPolicies != null && this._scalingPolicies.Count > 0; } /// <summary> /// Gets and sets the property ScalingStatusCode. /// <para> /// The scaling status of the resource. /// </para> /// <ul> <li> /// <para> /// <code>Active</code> - The scaling configuration is active. /// </para> /// </li> <li> /// <para> /// <code>Inactive</code> - The scaling configuration is not active because the scaling /// plan is being created or the scaling configuration could not be applied. Check the /// status message for more information. /// </para> /// </li> <li> /// <para> /// <code>PartiallyActive</code> - The scaling configuration is partially active because /// the scaling plan is being created or deleted or the scaling configuration could not /// be fully applied. Check the status message for more information. /// </para> /// </li> </ul> /// </summary> [AWSProperty(Required=true)] public ScalingStatusCode ScalingStatusCode { get { return this._scalingStatusCode; } set { this._scalingStatusCode = value; } } // Check to see if ScalingStatusCode property is set internal bool IsSetScalingStatusCode() { return this._scalingStatusCode != null; } /// <summary> /// Gets and sets the property ScalingStatusMessage. /// <para> /// A simple message about the current scaling status of the resource. /// </para> /// </summary> public string ScalingStatusMessage { get { return this._scalingStatusMessage; } set { this._scalingStatusMessage = value; } } // Check to see if ScalingStatusMessage property is set internal bool IsSetScalingStatusMessage() { return this._scalingStatusMessage != null; } /// <summary> /// Gets and sets the property ServiceNamespace. /// <para> /// The namespace of the AWS service. /// </para> /// </summary> [AWSProperty(Required=true)] public ServiceNamespace ServiceNamespace { get { return this._serviceNamespace; } set { this._serviceNamespace = value; } } // Check to see if ServiceNamespace property is set internal bool IsSetServiceNamespace() { return this._serviceNamespace != null; } } }
285
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-plans-2018-01-06.normal.json service model. */ using System; using System.Collections.Generic; using System.Xml.Serialization; using System.Text; using System.IO; using System.Net; using Amazon.Runtime; using Amazon.Runtime.Internal; namespace Amazon.AutoScalingPlans.Model { /// <summary> /// Represents a scaling policy. /// </summary> public partial class ScalingPolicy { private string _policyName; private PolicyType _policyType; private TargetTrackingConfiguration _targetTrackingConfiguration; /// <summary> /// Gets and sets the property PolicyName. /// <para> /// The name of the scaling policy. /// </para> /// </summary> [AWSProperty(Required=true, Min=1, Max=256)] 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> /// The type of scaling policy. /// </para> /// </summary> [AWSProperty(Required=true)] public PolicyType 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 TargetTrackingConfiguration. /// <para> /// The target tracking scaling policy. Includes support for predefined or customized /// metrics. /// </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; } } }
98
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-plans-2018-01-06.normal.json service model. */ using System; using System.Collections.Generic; using System.Xml.Serialization; using System.Text; using System.IO; using System.Net; using Amazon.Runtime; using Amazon.Runtime.Internal; namespace Amazon.AutoScalingPlans.Model { /// <summary> /// Represents a tag. /// </summary> public partial class TagFilter { private string _key; private List<string> _values = new List<string>(); /// <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 Values. /// <para> /// The tag values (0 to 20). /// </para> /// </summary> public List<string> Values { get { return this._values; } set { this._values = value; } } // Check to see if Values property is set internal bool IsSetValues() { return this._values != null && this._values.Count > 0; } } }
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-plans-2018-01-06.normal.json service model. */ using System; using System.Collections.Generic; using System.Xml.Serialization; using System.Text; using System.IO; using System.Net; using Amazon.Runtime; using Amazon.Runtime.Internal; namespace Amazon.AutoScalingPlans.Model { /// <summary> /// Describes a target tracking configuration to use with AWS Auto Scaling. Used with /// <a>ScalingInstruction</a> and <a>ScalingPolicy</a>. /// </summary> public partial class TargetTrackingConfiguration { private CustomizedScalingMetricSpecification _customizedScalingMetricSpecification; private bool? _disableScaleIn; private int? _estimatedInstanceWarmup; private PredefinedScalingMetricSpecification _predefinedScalingMetricSpecification; private int? _scaleInCooldown; private int? _scaleOutCooldown; private double? _targetValue; /// <summary> /// Gets and sets the property CustomizedScalingMetricSpecification. /// <para> /// A customized metric. You can specify either a predefined metric or a customized metric. /// /// </para> /// </summary> public CustomizedScalingMetricSpecification 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 DisableScaleIn. /// <para> /// Indicates whether scale in by the target tracking scaling policy is disabled. If the /// value is <code>true</code>, scale in is disabled and the target tracking scaling policy /// doesn't remove capacity from the scalable resource. Otherwise, scale in is enabled /// and the target tracking scaling policy can remove capacity from the scalable resource. /// /// </para> /// /// <para> /// The default value 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 EstimatedInstanceWarmup. /// <para> /// The estimated time, in seconds, until a newly launched instance can contribute to /// the CloudWatch metrics. This value is used only if the resource is an Auto Scaling /// group. /// </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 PredefinedScalingMetricSpecification. /// <para> /// A predefined metric. You can specify either a predefined metric or a customized metric. /// </para> /// </summary> public PredefinedScalingMetricSpecification 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 ScaleInCooldown. /// <para> /// The amount of time, in seconds, after a scale-in activity completes before another /// scale-in activity can start. This property is not used if the scalable resource is /// an Auto Scaling group. /// </para> /// /// <para> /// With the <i>scale-in cooldown period</i>, the intention is to scale in conservatively /// to protect your application’s availability, so scale-in activities are blocked until /// the cooldown period has expired. However, if another alarm triggers a scale-out activity /// during the scale-in cooldown period, Auto Scaling scales out the target immediately. /// In this case, the scale-in cooldown period stops and doesn't complete. /// </para> /// </summary> public int ScaleInCooldown { get { return this._scaleInCooldown.GetValueOrDefault(); } set { this._scaleInCooldown = value; } } // Check to see if ScaleInCooldown property is set internal bool IsSetScaleInCooldown() { return this._scaleInCooldown.HasValue; } /// <summary> /// Gets and sets the property ScaleOutCooldown. /// <para> /// The amount of time, in seconds, to wait for a previous scale-out activity to take /// effect. This property is not used if the scalable resource is an Auto Scaling group. /// </para> /// /// <para> /// With the <i>scale-out cooldown period</i>, the intention is to continuously (but not /// excessively) scale out. After Auto Scaling successfully scales out using a target /// tracking scaling policy, it starts to calculate the cooldown time. The scaling policy /// won't increase the desired capacity again unless either a larger scale out is triggered /// or the cooldown period ends. /// </para> /// </summary> public int ScaleOutCooldown { get { return this._scaleOutCooldown.GetValueOrDefault(); } set { this._scaleOutCooldown = value; } } // Check to see if ScaleOutCooldown property is set internal bool IsSetScaleOutCooldown() { return this._scaleOutCooldown.HasValue; } /// <summary> /// Gets and sets the property TargetValue. /// <para> /// The target value for the metric. Although this property accepts numbers of type Double, /// it won't accept values that are either too small or too large. Values must be in the /// range of -2^360 to 2^360. /// </para> /// </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; } } }
205
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-plans-2018-01-06.normal.json service model. */ using System; using System.Collections.Generic; using System.Xml.Serialization; using System.Text; using System.IO; using System.Net; using Amazon.Runtime; using Amazon.Runtime.Internal; namespace Amazon.AutoScalingPlans.Model { /// <summary> /// Container for the parameters to the UpdateScalingPlan operation. /// Updates the specified scaling plan. /// /// /// <para> /// You cannot update a scaling plan if it is in the process of being created, updated, /// or deleted. /// </para> /// </summary> public partial class UpdateScalingPlanRequest : AmazonAutoScalingPlansRequest { private ApplicationSource _applicationSource; private List<ScalingInstruction> _scalingInstructions = new List<ScalingInstruction>(); private string _scalingPlanName; private long? _scalingPlanVersion; /// <summary> /// Gets and sets the property ApplicationSource. /// <para> /// A CloudFormation stack or set of tags. /// </para> /// /// <para> /// For more information, see <a href="https://docs.aws.amazon.com/autoscaling/plans/APIReference/API_ApplicationSource.html">ApplicationSource</a> /// in the <i>AWS Auto Scaling API Reference</i>. /// </para> /// </summary> public ApplicationSource ApplicationSource { get { return this._applicationSource; } set { this._applicationSource = value; } } // Check to see if ApplicationSource property is set internal bool IsSetApplicationSource() { return this._applicationSource != null; } /// <summary> /// Gets and sets the property ScalingInstructions. /// <para> /// The scaling instructions. /// </para> /// /// <para> /// For more information, see <a href="https://docs.aws.amazon.com/autoscaling/plans/APIReference/API_ScalingInstruction.html">ScalingInstruction</a> /// in the <i>AWS Auto Scaling API Reference</i>. /// </para> /// </summary> public List<ScalingInstruction> ScalingInstructions { get { return this._scalingInstructions; } set { this._scalingInstructions = value; } } // Check to see if ScalingInstructions property is set internal bool IsSetScalingInstructions() { return this._scalingInstructions != null && this._scalingInstructions.Count > 0; } /// <summary> /// Gets and sets the property ScalingPlanName. /// <para> /// The name of the scaling plan. /// </para> /// </summary> [AWSProperty(Required=true, Min=1, Max=128)] public string ScalingPlanName { get { return this._scalingPlanName; } set { this._scalingPlanName = value; } } // Check to see if ScalingPlanName property is set internal bool IsSetScalingPlanName() { return this._scalingPlanName != null; } /// <summary> /// Gets and sets the property ScalingPlanVersion. /// <para> /// The version number of the scaling plan. The only valid value is <code>1</code>. Currently, /// you cannot have multiple scaling plan versions. /// </para> /// </summary> [AWSProperty(Required=true)] public long ScalingPlanVersion { get { return this._scalingPlanVersion.GetValueOrDefault(); } set { this._scalingPlanVersion = value; } } // Check to see if ScalingPlanVersion property is set internal bool IsSetScalingPlanVersion() { return this._scalingPlanVersion.HasValue; } } }
134
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-plans-2018-01-06.normal.json service model. */ using System; using System.Collections.Generic; using System.Xml.Serialization; using System.Text; using System.IO; using System.Net; using Amazon.Runtime; using Amazon.Runtime.Internal; namespace Amazon.AutoScalingPlans.Model { /// <summary> /// This is the response object from the UpdateScalingPlan operation. /// </summary> public partial class UpdateScalingPlanResponse : 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-plans-2018-01-06.normal.json service model. */ using System; using System.Collections.Generic; using System.Xml.Serialization; using System.Text; using System.IO; using System.Net; using Amazon.Runtime; using Amazon.Runtime.Internal; namespace Amazon.AutoScalingPlans.Model { /// <summary> /// An exception was thrown for a validation issue. Review the parameters provided. /// </summary> #if !NETSTANDARD [Serializable] #endif public partial class ValidationException : AmazonAutoScalingPlansException { /// <summary> /// Constructs a new ValidationException with the specified error /// message. /// </summary> /// <param name="message"> /// Describes the error encountered. /// </param> public ValidationException(string message) : base(message) {} /// <summary> /// Construct instance of ValidationException /// </summary> /// <param name="message"></param> /// <param name="innerException"></param> public ValidationException(string message, Exception innerException) : base(message, innerException) {} /// <summary> /// Construct instance of ValidationException /// </summary> /// <param name="innerException"></param> public ValidationException(Exception innerException) : base(innerException) {} /// <summary> /// Construct instance of ValidationException /// </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 ValidationException(string message, Exception innerException, ErrorType errorType, string errorCode, string requestId, HttpStatusCode statusCode) : base(message, innerException, errorType, errorCode, requestId, statusCode) {} /// <summary> /// Construct instance of ValidationException /// </summary> /// <param name="message"></param> /// <param name="errorType"></param> /// <param name="errorCode"></param> /// <param name="requestId"></param> /// <param name="statusCode"></param> public ValidationException(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 ValidationException 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 ValidationException(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-plans-2018-01-06.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.AutoScalingPlans.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.AutoScalingPlans.Model.Internal.MarshallTransformations { /// <summary> /// ApplicationSource Marshaller /// </summary> public class ApplicationSourceMarshaller : IRequestMarshaller<ApplicationSource, JsonMarshallerContext> { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="requestObject"></param> /// <param name="context"></param> /// <returns></returns> public void Marshall(ApplicationSource requestObject, JsonMarshallerContext context) { if(requestObject.IsSetCloudFormationStackARN()) { context.Writer.WritePropertyName("CloudFormationStackARN"); context.Writer.Write(requestObject.CloudFormationStackARN); } if(requestObject.IsSetTagFilters()) { context.Writer.WritePropertyName("TagFilters"); context.Writer.WriteArrayStart(); foreach(var requestObjectTagFiltersListValue in requestObject.TagFilters) { context.Writer.WriteObjectStart(); var marshaller = TagFilterMarshaller.Instance; marshaller.Marshall(requestObjectTagFiltersListValue, context); context.Writer.WriteObjectEnd(); } context.Writer.WriteArrayEnd(); } } /// <summary> /// Singleton Marshaller. /// </summary> public readonly static ApplicationSourceMarshaller Instance = new ApplicationSourceMarshaller(); } }
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-plans-2018-01-06.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.AutoScalingPlans.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.AutoScalingPlans.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for ApplicationSource Object /// </summary> public class ApplicationSourceUnmarshaller : IUnmarshaller<ApplicationSource, XmlUnmarshallerContext>, IUnmarshaller<ApplicationSource, JsonUnmarshallerContext> { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> ApplicationSource IUnmarshaller<ApplicationSource, XmlUnmarshallerContext>.Unmarshall(XmlUnmarshallerContext context) { throw new NotImplementedException(); } /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> public ApplicationSource Unmarshall(JsonUnmarshallerContext context) { context.Read(); if (context.CurrentTokenType == JsonToken.Null) return null; ApplicationSource unmarshalledObject = new ApplicationSource(); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { if (context.TestExpression("CloudFormationStackARN", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.CloudFormationStackARN = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("TagFilters", targetDepth)) { var unmarshaller = new ListUnmarshaller<TagFilter, TagFilterUnmarshaller>(TagFilterUnmarshaller.Instance); unmarshalledObject.TagFilters = unmarshaller.Unmarshall(context); continue; } } return unmarshalledObject; } private static ApplicationSourceUnmarshaller _instance = new ApplicationSourceUnmarshaller(); /// <summary> /// Gets the singleton. /// </summary> public static ApplicationSourceUnmarshaller Instance { get { return _instance; } } } }
98
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-plans-2018-01-06.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.AutoScalingPlans.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.AutoScalingPlans.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for ConcurrentUpdateException Object /// </summary> public class ConcurrentUpdateExceptionUnmarshaller : IErrorResponseUnmarshaller<ConcurrentUpdateException, JsonUnmarshallerContext> { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> public ConcurrentUpdateException Unmarshall(JsonUnmarshallerContext context) { return this.Unmarshall(context, new Amazon.Runtime.Internal.ErrorResponse()); } /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <param name="errorResponse"></param> /// <returns></returns> public ConcurrentUpdateException Unmarshall(JsonUnmarshallerContext context, Amazon.Runtime.Internal.ErrorResponse errorResponse) { context.Read(); ConcurrentUpdateException unmarshalledObject = new ConcurrentUpdateException(errorResponse.Message, errorResponse.InnerException, errorResponse.Type, errorResponse.Code, errorResponse.RequestId, errorResponse.StatusCode); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { } return unmarshalledObject; } private static ConcurrentUpdateExceptionUnmarshaller _instance = new ConcurrentUpdateExceptionUnmarshaller(); /// <summary> /// Gets the singleton. /// </summary> public static ConcurrentUpdateExceptionUnmarshaller Instance { get { return _instance; } } } }
85
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-plans-2018-01-06.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.AutoScalingPlans.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.AutoScalingPlans.Model.Internal.MarshallTransformations { /// <summary> /// CreateScalingPlan Request Marshaller /// </summary> public class CreateScalingPlanRequestMarshaller : IMarshaller<IRequest, CreateScalingPlanRequest> , 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((CreateScalingPlanRequest)input); } /// <summary> /// Marshaller the request object to the HTTP request. /// </summary> /// <param name="publicRequest"></param> /// <returns></returns> public IRequest Marshall(CreateScalingPlanRequest publicRequest) { IRequest request = new DefaultRequest(publicRequest, "Amazon.AutoScalingPlans"); string target = "AnyScaleScalingPlannerFrontendService.CreateScalingPlan"; request.Headers["X-Amz-Target"] = target; request.Headers["Content-Type"] = "application/x-amz-json-1.1"; request.Headers[Amazon.Util.HeaderKeys.XAmzApiVersion] = "2018-01-06"; request.HttpMethod = "POST"; request.ResourcePath = "/"; using (StringWriter stringWriter = new StringWriter(CultureInfo.InvariantCulture)) { JsonWriter writer = new JsonWriter(stringWriter); writer.WriteObjectStart(); var context = new JsonMarshallerContext(request, writer); if(publicRequest.IsSetApplicationSource()) { context.Writer.WritePropertyName("ApplicationSource"); context.Writer.WriteObjectStart(); var marshaller = ApplicationSourceMarshaller.Instance; marshaller.Marshall(publicRequest.ApplicationSource, context); context.Writer.WriteObjectEnd(); } if(publicRequest.IsSetScalingInstructions()) { context.Writer.WritePropertyName("ScalingInstructions"); context.Writer.WriteArrayStart(); foreach(var publicRequestScalingInstructionsListValue in publicRequest.ScalingInstructions) { context.Writer.WriteObjectStart(); var marshaller = ScalingInstructionMarshaller.Instance; marshaller.Marshall(publicRequestScalingInstructionsListValue, context); context.Writer.WriteObjectEnd(); } context.Writer.WriteArrayEnd(); } if(publicRequest.IsSetScalingPlanName()) { context.Writer.WritePropertyName("ScalingPlanName"); context.Writer.Write(publicRequest.ScalingPlanName); } writer.WriteObjectEnd(); string snippet = stringWriter.ToString(); request.Content = System.Text.Encoding.UTF8.GetBytes(snippet); } return request; } private static CreateScalingPlanRequestMarshaller _instance = new CreateScalingPlanRequestMarshaller(); internal static CreateScalingPlanRequestMarshaller GetInstance() { return _instance; } /// <summary> /// Gets the singleton. /// </summary> public static CreateScalingPlanRequestMarshaller Instance { get { return _instance; } } } }
130
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-plans-2018-01-06.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.AutoScalingPlans.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.AutoScalingPlans.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for CreateScalingPlan operation /// </summary> public class CreateScalingPlanResponseUnmarshaller : JsonResponseUnmarshaller { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> public override AmazonWebServiceResponse Unmarshall(JsonUnmarshallerContext context) { CreateScalingPlanResponse response = new CreateScalingPlanResponse(); context.Read(); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { if (context.TestExpression("ScalingPlanVersion", targetDepth)) { var unmarshaller = LongUnmarshaller.Instance; response.ScalingPlanVersion = unmarshaller.Unmarshall(context); continue; } } return response; } /// <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(JsonUnmarshallerContext context, Exception innerException, HttpStatusCode statusCode) { var errorResponse = JsonErrorResponseUnmarshaller.GetInstance().Unmarshall(context); errorResponse.InnerException = innerException; errorResponse.StatusCode = statusCode; var responseBodyBytes = context.GetResponseBodyBytes(); using (var streamCopy = new MemoryStream(responseBodyBytes)) using (var contextCopy = new JsonUnmarshallerContext(streamCopy, false, null)) { if (errorResponse.Code != null && errorResponse.Code.Equals("ConcurrentUpdateException")) { return ConcurrentUpdateExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("InternalServiceException")) { return InternalServiceExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("LimitExceededException")) { return LimitExceededExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("ValidationException")) { return ValidationExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } } return new AmazonAutoScalingPlansException(errorResponse.Message, errorResponse.InnerException, errorResponse.Type, errorResponse.Code, errorResponse.RequestId, errorResponse.StatusCode); } private static CreateScalingPlanResponseUnmarshaller _instance = new CreateScalingPlanResponseUnmarshaller(); internal static CreateScalingPlanResponseUnmarshaller GetInstance() { return _instance; } /// <summary> /// Gets the singleton. /// </summary> public static CreateScalingPlanResponseUnmarshaller Instance { get { return _instance; } } } }
122
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-plans-2018-01-06.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.AutoScalingPlans.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.AutoScalingPlans.Model.Internal.MarshallTransformations { /// <summary> /// CustomizedLoadMetricSpecification Marshaller /// </summary> public class CustomizedLoadMetricSpecificationMarshaller : IRequestMarshaller<CustomizedLoadMetricSpecification, JsonMarshallerContext> { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="requestObject"></param> /// <param name="context"></param> /// <returns></returns> public void Marshall(CustomizedLoadMetricSpecification requestObject, JsonMarshallerContext context) { if(requestObject.IsSetDimensions()) { context.Writer.WritePropertyName("Dimensions"); context.Writer.WriteArrayStart(); foreach(var requestObjectDimensionsListValue in requestObject.Dimensions) { context.Writer.WriteObjectStart(); var marshaller = MetricDimensionMarshaller.Instance; marshaller.Marshall(requestObjectDimensionsListValue, context); context.Writer.WriteObjectEnd(); } context.Writer.WriteArrayEnd(); } if(requestObject.IsSetMetricName()) { context.Writer.WritePropertyName("MetricName"); context.Writer.Write(requestObject.MetricName); } if(requestObject.IsSetNamespace()) { context.Writer.WritePropertyName("Namespace"); context.Writer.Write(requestObject.Namespace); } if(requestObject.IsSetStatistic()) { context.Writer.WritePropertyName("Statistic"); context.Writer.Write(requestObject.Statistic); } if(requestObject.IsSetUnit()) { context.Writer.WritePropertyName("Unit"); context.Writer.Write(requestObject.Unit); } } /// <summary> /// Singleton Marshaller. /// </summary> public readonly static CustomizedLoadMetricSpecificationMarshaller Instance = new CustomizedLoadMetricSpecificationMarshaller(); } }
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-plans-2018-01-06.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.AutoScalingPlans.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.AutoScalingPlans.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for CustomizedLoadMetricSpecification Object /// </summary> public class CustomizedLoadMetricSpecificationUnmarshaller : IUnmarshaller<CustomizedLoadMetricSpecification, XmlUnmarshallerContext>, IUnmarshaller<CustomizedLoadMetricSpecification, JsonUnmarshallerContext> { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> CustomizedLoadMetricSpecification IUnmarshaller<CustomizedLoadMetricSpecification, XmlUnmarshallerContext>.Unmarshall(XmlUnmarshallerContext context) { throw new NotImplementedException(); } /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> public CustomizedLoadMetricSpecification Unmarshall(JsonUnmarshallerContext context) { context.Read(); if (context.CurrentTokenType == JsonToken.Null) return null; CustomizedLoadMetricSpecification unmarshalledObject = new CustomizedLoadMetricSpecification(); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { if (context.TestExpression("Dimensions", targetDepth)) { var unmarshaller = new ListUnmarshaller<MetricDimension, MetricDimensionUnmarshaller>(MetricDimensionUnmarshaller.Instance); unmarshalledObject.Dimensions = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("MetricName", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.MetricName = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("Namespace", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.Namespace = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("Statistic", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.Statistic = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("Unit", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.Unit = unmarshaller.Unmarshall(context); continue; } } return unmarshalledObject; } private static CustomizedLoadMetricSpecificationUnmarshaller _instance = new CustomizedLoadMetricSpecificationUnmarshaller(); /// <summary> /// Gets the singleton. /// </summary> public static CustomizedLoadMetricSpecificationUnmarshaller Instance { get { return _instance; } } } }
116
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-plans-2018-01-06.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.AutoScalingPlans.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.AutoScalingPlans.Model.Internal.MarshallTransformations { /// <summary> /// CustomizedScalingMetricSpecification Marshaller /// </summary> public class CustomizedScalingMetricSpecificationMarshaller : IRequestMarshaller<CustomizedScalingMetricSpecification, JsonMarshallerContext> { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="requestObject"></param> /// <param name="context"></param> /// <returns></returns> public void Marshall(CustomizedScalingMetricSpecification requestObject, JsonMarshallerContext context) { if(requestObject.IsSetDimensions()) { context.Writer.WritePropertyName("Dimensions"); context.Writer.WriteArrayStart(); foreach(var requestObjectDimensionsListValue in requestObject.Dimensions) { context.Writer.WriteObjectStart(); var marshaller = MetricDimensionMarshaller.Instance; marshaller.Marshall(requestObjectDimensionsListValue, context); context.Writer.WriteObjectEnd(); } context.Writer.WriteArrayEnd(); } if(requestObject.IsSetMetricName()) { context.Writer.WritePropertyName("MetricName"); context.Writer.Write(requestObject.MetricName); } if(requestObject.IsSetNamespace()) { context.Writer.WritePropertyName("Namespace"); context.Writer.Write(requestObject.Namespace); } if(requestObject.IsSetStatistic()) { context.Writer.WritePropertyName("Statistic"); context.Writer.Write(requestObject.Statistic); } if(requestObject.IsSetUnit()) { context.Writer.WritePropertyName("Unit"); context.Writer.Write(requestObject.Unit); } } /// <summary> /// Singleton Marshaller. /// </summary> public readonly static CustomizedScalingMetricSpecificationMarshaller Instance = new CustomizedScalingMetricSpecificationMarshaller(); } }
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-plans-2018-01-06.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.AutoScalingPlans.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.AutoScalingPlans.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for CustomizedScalingMetricSpecification Object /// </summary> public class CustomizedScalingMetricSpecificationUnmarshaller : IUnmarshaller<CustomizedScalingMetricSpecification, XmlUnmarshallerContext>, IUnmarshaller<CustomizedScalingMetricSpecification, JsonUnmarshallerContext> { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> CustomizedScalingMetricSpecification IUnmarshaller<CustomizedScalingMetricSpecification, XmlUnmarshallerContext>.Unmarshall(XmlUnmarshallerContext context) { throw new NotImplementedException(); } /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> public CustomizedScalingMetricSpecification Unmarshall(JsonUnmarshallerContext context) { context.Read(); if (context.CurrentTokenType == JsonToken.Null) return null; CustomizedScalingMetricSpecification unmarshalledObject = new CustomizedScalingMetricSpecification(); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { if (context.TestExpression("Dimensions", targetDepth)) { var unmarshaller = new ListUnmarshaller<MetricDimension, MetricDimensionUnmarshaller>(MetricDimensionUnmarshaller.Instance); unmarshalledObject.Dimensions = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("MetricName", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.MetricName = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("Namespace", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.Namespace = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("Statistic", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.Statistic = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("Unit", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.Unit = unmarshaller.Unmarshall(context); continue; } } return unmarshalledObject; } private static CustomizedScalingMetricSpecificationUnmarshaller _instance = new CustomizedScalingMetricSpecificationUnmarshaller(); /// <summary> /// Gets the singleton. /// </summary> public static CustomizedScalingMetricSpecificationUnmarshaller Instance { get { return _instance; } } } }
116
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-plans-2018-01-06.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.AutoScalingPlans.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.AutoScalingPlans.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for Datapoint Object /// </summary> public class DatapointUnmarshaller : IUnmarshaller<Datapoint, XmlUnmarshallerContext>, IUnmarshaller<Datapoint, JsonUnmarshallerContext> { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> Datapoint IUnmarshaller<Datapoint, XmlUnmarshallerContext>.Unmarshall(XmlUnmarshallerContext context) { throw new NotImplementedException(); } /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> public Datapoint Unmarshall(JsonUnmarshallerContext context) { context.Read(); if (context.CurrentTokenType == JsonToken.Null) return null; Datapoint unmarshalledObject = new Datapoint(); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { if (context.TestExpression("Timestamp", targetDepth)) { var unmarshaller = DateTimeUnmarshaller.Instance; unmarshalledObject.Timestamp = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("Value", targetDepth)) { var unmarshaller = DoubleUnmarshaller.Instance; unmarshalledObject.Value = unmarshaller.Unmarshall(context); continue; } } return unmarshalledObject; } private static DatapointUnmarshaller _instance = new DatapointUnmarshaller(); /// <summary> /// Gets the singleton. /// </summary> public static DatapointUnmarshaller Instance { get { return _instance; } } } }
98
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-plans-2018-01-06.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.AutoScalingPlans.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.AutoScalingPlans.Model.Internal.MarshallTransformations { /// <summary> /// DeleteScalingPlan Request Marshaller /// </summary> public class DeleteScalingPlanRequestMarshaller : IMarshaller<IRequest, DeleteScalingPlanRequest> , 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((DeleteScalingPlanRequest)input); } /// <summary> /// Marshaller the request object to the HTTP request. /// </summary> /// <param name="publicRequest"></param> /// <returns></returns> public IRequest Marshall(DeleteScalingPlanRequest publicRequest) { IRequest request = new DefaultRequest(publicRequest, "Amazon.AutoScalingPlans"); string target = "AnyScaleScalingPlannerFrontendService.DeleteScalingPlan"; request.Headers["X-Amz-Target"] = target; request.Headers["Content-Type"] = "application/x-amz-json-1.1"; request.Headers[Amazon.Util.HeaderKeys.XAmzApiVersion] = "2018-01-06"; request.HttpMethod = "POST"; request.ResourcePath = "/"; using (StringWriter stringWriter = new StringWriter(CultureInfo.InvariantCulture)) { JsonWriter writer = new JsonWriter(stringWriter); writer.WriteObjectStart(); var context = new JsonMarshallerContext(request, writer); if(publicRequest.IsSetScalingPlanName()) { context.Writer.WritePropertyName("ScalingPlanName"); context.Writer.Write(publicRequest.ScalingPlanName); } if(publicRequest.IsSetScalingPlanVersion()) { context.Writer.WritePropertyName("ScalingPlanVersion"); context.Writer.Write(publicRequest.ScalingPlanVersion); } writer.WriteObjectEnd(); string snippet = stringWriter.ToString(); request.Content = System.Text.Encoding.UTF8.GetBytes(snippet); } return request; } private static DeleteScalingPlanRequestMarshaller _instance = new DeleteScalingPlanRequestMarshaller(); internal static DeleteScalingPlanRequestMarshaller GetInstance() { return _instance; } /// <summary> /// Gets the singleton. /// </summary> public static DeleteScalingPlanRequestMarshaller Instance { get { return _instance; } } } }
109
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-plans-2018-01-06.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.AutoScalingPlans.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.AutoScalingPlans.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for DeleteScalingPlan operation /// </summary> public class DeleteScalingPlanResponseUnmarshaller : JsonResponseUnmarshaller { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> public override AmazonWebServiceResponse Unmarshall(JsonUnmarshallerContext context) { DeleteScalingPlanResponse response = new DeleteScalingPlanResponse(); return response; } /// <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(JsonUnmarshallerContext context, Exception innerException, HttpStatusCode statusCode) { var errorResponse = JsonErrorResponseUnmarshaller.GetInstance().Unmarshall(context); errorResponse.InnerException = innerException; errorResponse.StatusCode = statusCode; var responseBodyBytes = context.GetResponseBodyBytes(); using (var streamCopy = new MemoryStream(responseBodyBytes)) using (var contextCopy = new JsonUnmarshallerContext(streamCopy, false, null)) { if (errorResponse.Code != null && errorResponse.Code.Equals("ConcurrentUpdateException")) { return ConcurrentUpdateExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("InternalServiceException")) { return InternalServiceExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("ObjectNotFoundException")) { return ObjectNotFoundExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("ValidationException")) { return ValidationExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } } return new AmazonAutoScalingPlansException(errorResponse.Message, errorResponse.InnerException, errorResponse.Type, errorResponse.Code, errorResponse.RequestId, errorResponse.StatusCode); } private static DeleteScalingPlanResponseUnmarshaller _instance = new DeleteScalingPlanResponseUnmarshaller(); internal static DeleteScalingPlanResponseUnmarshaller GetInstance() { return _instance; } /// <summary> /// Gets the singleton. /// </summary> public static DeleteScalingPlanResponseUnmarshaller Instance { get { return _instance; } } } }
111
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-plans-2018-01-06.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.AutoScalingPlans.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.AutoScalingPlans.Model.Internal.MarshallTransformations { /// <summary> /// DescribeScalingPlanResources Request Marshaller /// </summary> public class DescribeScalingPlanResourcesRequestMarshaller : IMarshaller<IRequest, DescribeScalingPlanResourcesRequest> , 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((DescribeScalingPlanResourcesRequest)input); } /// <summary> /// Marshaller the request object to the HTTP request. /// </summary> /// <param name="publicRequest"></param> /// <returns></returns> public IRequest Marshall(DescribeScalingPlanResourcesRequest publicRequest) { IRequest request = new DefaultRequest(publicRequest, "Amazon.AutoScalingPlans"); string target = "AnyScaleScalingPlannerFrontendService.DescribeScalingPlanResources"; request.Headers["X-Amz-Target"] = target; request.Headers["Content-Type"] = "application/x-amz-json-1.1"; request.Headers[Amazon.Util.HeaderKeys.XAmzApiVersion] = "2018-01-06"; request.HttpMethod = "POST"; request.ResourcePath = "/"; using (StringWriter stringWriter = new StringWriter(CultureInfo.InvariantCulture)) { JsonWriter writer = new JsonWriter(stringWriter); writer.WriteObjectStart(); var context = new JsonMarshallerContext(request, writer); if(publicRequest.IsSetMaxResults()) { context.Writer.WritePropertyName("MaxResults"); context.Writer.Write(publicRequest.MaxResults); } if(publicRequest.IsSetNextToken()) { context.Writer.WritePropertyName("NextToken"); context.Writer.Write(publicRequest.NextToken); } if(publicRequest.IsSetScalingPlanName()) { context.Writer.WritePropertyName("ScalingPlanName"); context.Writer.Write(publicRequest.ScalingPlanName); } if(publicRequest.IsSetScalingPlanVersion()) { context.Writer.WritePropertyName("ScalingPlanVersion"); context.Writer.Write(publicRequest.ScalingPlanVersion); } writer.WriteObjectEnd(); string snippet = stringWriter.ToString(); request.Content = System.Text.Encoding.UTF8.GetBytes(snippet); } return request; } private static DescribeScalingPlanResourcesRequestMarshaller _instance = new DescribeScalingPlanResourcesRequestMarshaller(); internal static DescribeScalingPlanResourcesRequestMarshaller GetInstance() { return _instance; } /// <summary> /// Gets the singleton. /// </summary> public static DescribeScalingPlanResourcesRequestMarshaller Instance { get { return _instance; } } } }
121
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-plans-2018-01-06.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.AutoScalingPlans.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.AutoScalingPlans.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for DescribeScalingPlanResources operation /// </summary> public class DescribeScalingPlanResourcesResponseUnmarshaller : JsonResponseUnmarshaller { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> public override AmazonWebServiceResponse Unmarshall(JsonUnmarshallerContext context) { DescribeScalingPlanResourcesResponse response = new DescribeScalingPlanResourcesResponse(); context.Read(); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { if (context.TestExpression("NextToken", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; response.NextToken = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("ScalingPlanResources", targetDepth)) { var unmarshaller = new ListUnmarshaller<ScalingPlanResource, ScalingPlanResourceUnmarshaller>(ScalingPlanResourceUnmarshaller.Instance); response.ScalingPlanResources = unmarshaller.Unmarshall(context); continue; } } return response; } /// <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(JsonUnmarshallerContext context, Exception innerException, HttpStatusCode statusCode) { var errorResponse = JsonErrorResponseUnmarshaller.GetInstance().Unmarshall(context); errorResponse.InnerException = innerException; errorResponse.StatusCode = statusCode; var responseBodyBytes = context.GetResponseBodyBytes(); using (var streamCopy = new MemoryStream(responseBodyBytes)) using (var contextCopy = new JsonUnmarshallerContext(streamCopy, false, null)) { if (errorResponse.Code != null && errorResponse.Code.Equals("ConcurrentUpdateException")) { return ConcurrentUpdateExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("InternalServiceException")) { return InternalServiceExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("InvalidNextTokenException")) { return InvalidNextTokenExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("ValidationException")) { return ValidationExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } } return new AmazonAutoScalingPlansException(errorResponse.Message, errorResponse.InnerException, errorResponse.Type, errorResponse.Code, errorResponse.RequestId, errorResponse.StatusCode); } private static DescribeScalingPlanResourcesResponseUnmarshaller _instance = new DescribeScalingPlanResourcesResponseUnmarshaller(); internal static DescribeScalingPlanResourcesResponseUnmarshaller GetInstance() { return _instance; } /// <summary> /// Gets the singleton. /// </summary> public static DescribeScalingPlanResourcesResponseUnmarshaller Instance { get { return _instance; } } } }
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-plans-2018-01-06.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.AutoScalingPlans.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.AutoScalingPlans.Model.Internal.MarshallTransformations { /// <summary> /// DescribeScalingPlans Request Marshaller /// </summary> public class DescribeScalingPlansRequestMarshaller : IMarshaller<IRequest, DescribeScalingPlansRequest> , 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((DescribeScalingPlansRequest)input); } /// <summary> /// Marshaller the request object to the HTTP request. /// </summary> /// <param name="publicRequest"></param> /// <returns></returns> public IRequest Marshall(DescribeScalingPlansRequest publicRequest) { IRequest request = new DefaultRequest(publicRequest, "Amazon.AutoScalingPlans"); string target = "AnyScaleScalingPlannerFrontendService.DescribeScalingPlans"; request.Headers["X-Amz-Target"] = target; request.Headers["Content-Type"] = "application/x-amz-json-1.1"; request.Headers[Amazon.Util.HeaderKeys.XAmzApiVersion] = "2018-01-06"; request.HttpMethod = "POST"; request.ResourcePath = "/"; using (StringWriter stringWriter = new StringWriter(CultureInfo.InvariantCulture)) { JsonWriter writer = new JsonWriter(stringWriter); writer.WriteObjectStart(); var context = new JsonMarshallerContext(request, writer); if(publicRequest.IsSetApplicationSources()) { context.Writer.WritePropertyName("ApplicationSources"); context.Writer.WriteArrayStart(); foreach(var publicRequestApplicationSourcesListValue in publicRequest.ApplicationSources) { context.Writer.WriteObjectStart(); var marshaller = ApplicationSourceMarshaller.Instance; marshaller.Marshall(publicRequestApplicationSourcesListValue, context); context.Writer.WriteObjectEnd(); } context.Writer.WriteArrayEnd(); } if(publicRequest.IsSetMaxResults()) { context.Writer.WritePropertyName("MaxResults"); context.Writer.Write(publicRequest.MaxResults); } if(publicRequest.IsSetNextToken()) { context.Writer.WritePropertyName("NextToken"); context.Writer.Write(publicRequest.NextToken); } if(publicRequest.IsSetScalingPlanNames()) { context.Writer.WritePropertyName("ScalingPlanNames"); context.Writer.WriteArrayStart(); foreach(var publicRequestScalingPlanNamesListValue in publicRequest.ScalingPlanNames) { context.Writer.Write(publicRequestScalingPlanNamesListValue); } context.Writer.WriteArrayEnd(); } if(publicRequest.IsSetScalingPlanVersion()) { context.Writer.WritePropertyName("ScalingPlanVersion"); context.Writer.Write(publicRequest.ScalingPlanVersion); } writer.WriteObjectEnd(); string snippet = stringWriter.ToString(); request.Content = System.Text.Encoding.UTF8.GetBytes(snippet); } return request; } private static DescribeScalingPlansRequestMarshaller _instance = new DescribeScalingPlansRequestMarshaller(); internal static DescribeScalingPlansRequestMarshaller GetInstance() { return _instance; } /// <summary> /// Gets the singleton. /// </summary> public static DescribeScalingPlansRequestMarshaller 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-plans-2018-01-06.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.AutoScalingPlans.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.AutoScalingPlans.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for DescribeScalingPlans operation /// </summary> public class DescribeScalingPlansResponseUnmarshaller : JsonResponseUnmarshaller { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> public override AmazonWebServiceResponse Unmarshall(JsonUnmarshallerContext context) { DescribeScalingPlansResponse response = new DescribeScalingPlansResponse(); context.Read(); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { if (context.TestExpression("NextToken", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; response.NextToken = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("ScalingPlans", targetDepth)) { var unmarshaller = new ListUnmarshaller<ScalingPlan, ScalingPlanUnmarshaller>(ScalingPlanUnmarshaller.Instance); response.ScalingPlans = unmarshaller.Unmarshall(context); continue; } } return response; } /// <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(JsonUnmarshallerContext context, Exception innerException, HttpStatusCode statusCode) { var errorResponse = JsonErrorResponseUnmarshaller.GetInstance().Unmarshall(context); errorResponse.InnerException = innerException; errorResponse.StatusCode = statusCode; var responseBodyBytes = context.GetResponseBodyBytes(); using (var streamCopy = new MemoryStream(responseBodyBytes)) using (var contextCopy = new JsonUnmarshallerContext(streamCopy, false, null)) { if (errorResponse.Code != null && errorResponse.Code.Equals("ConcurrentUpdateException")) { return ConcurrentUpdateExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("InternalServiceException")) { return InternalServiceExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("InvalidNextTokenException")) { return InvalidNextTokenExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("ValidationException")) { return ValidationExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } } return new AmazonAutoScalingPlansException(errorResponse.Message, errorResponse.InnerException, errorResponse.Type, errorResponse.Code, errorResponse.RequestId, errorResponse.StatusCode); } private static DescribeScalingPlansResponseUnmarshaller _instance = new DescribeScalingPlansResponseUnmarshaller(); internal static DescribeScalingPlansResponseUnmarshaller GetInstance() { return _instance; } /// <summary> /// Gets the singleton. /// </summary> public static DescribeScalingPlansResponseUnmarshaller Instance { get { return _instance; } } } }
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-plans-2018-01-06.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.AutoScalingPlans.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.AutoScalingPlans.Model.Internal.MarshallTransformations { /// <summary> /// GetScalingPlanResourceForecastData Request Marshaller /// </summary> public class GetScalingPlanResourceForecastDataRequestMarshaller : IMarshaller<IRequest, GetScalingPlanResourceForecastDataRequest> , 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((GetScalingPlanResourceForecastDataRequest)input); } /// <summary> /// Marshaller the request object to the HTTP request. /// </summary> /// <param name="publicRequest"></param> /// <returns></returns> public IRequest Marshall(GetScalingPlanResourceForecastDataRequest publicRequest) { IRequest request = new DefaultRequest(publicRequest, "Amazon.AutoScalingPlans"); string target = "AnyScaleScalingPlannerFrontendService.GetScalingPlanResourceForecastData"; request.Headers["X-Amz-Target"] = target; request.Headers["Content-Type"] = "application/x-amz-json-1.1"; request.Headers[Amazon.Util.HeaderKeys.XAmzApiVersion] = "2018-01-06"; request.HttpMethod = "POST"; request.ResourcePath = "/"; using (StringWriter stringWriter = new StringWriter(CultureInfo.InvariantCulture)) { JsonWriter writer = new JsonWriter(stringWriter); writer.WriteObjectStart(); var context = new JsonMarshallerContext(request, writer); if(publicRequest.IsSetEndTime()) { context.Writer.WritePropertyName("EndTime"); context.Writer.Write(publicRequest.EndTime); } if(publicRequest.IsSetForecastDataType()) { context.Writer.WritePropertyName("ForecastDataType"); context.Writer.Write(publicRequest.ForecastDataType); } if(publicRequest.IsSetResourceId()) { context.Writer.WritePropertyName("ResourceId"); context.Writer.Write(publicRequest.ResourceId); } if(publicRequest.IsSetScalableDimension()) { context.Writer.WritePropertyName("ScalableDimension"); context.Writer.Write(publicRequest.ScalableDimension); } if(publicRequest.IsSetScalingPlanName()) { context.Writer.WritePropertyName("ScalingPlanName"); context.Writer.Write(publicRequest.ScalingPlanName); } if(publicRequest.IsSetScalingPlanVersion()) { context.Writer.WritePropertyName("ScalingPlanVersion"); context.Writer.Write(publicRequest.ScalingPlanVersion); } if(publicRequest.IsSetServiceNamespace()) { context.Writer.WritePropertyName("ServiceNamespace"); context.Writer.Write(publicRequest.ServiceNamespace); } if(publicRequest.IsSetStartTime()) { context.Writer.WritePropertyName("StartTime"); context.Writer.Write(publicRequest.StartTime); } writer.WriteObjectEnd(); string snippet = stringWriter.ToString(); request.Content = System.Text.Encoding.UTF8.GetBytes(snippet); } return request; } private static GetScalingPlanResourceForecastDataRequestMarshaller _instance = new GetScalingPlanResourceForecastDataRequestMarshaller(); internal static GetScalingPlanResourceForecastDataRequestMarshaller GetInstance() { return _instance; } /// <summary> /// Gets the singleton. /// </summary> public static GetScalingPlanResourceForecastDataRequestMarshaller Instance { get { return _instance; } } } }
145
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-plans-2018-01-06.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.AutoScalingPlans.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.AutoScalingPlans.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for GetScalingPlanResourceForecastData operation /// </summary> public class GetScalingPlanResourceForecastDataResponseUnmarshaller : JsonResponseUnmarshaller { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> public override AmazonWebServiceResponse Unmarshall(JsonUnmarshallerContext context) { GetScalingPlanResourceForecastDataResponse response = new GetScalingPlanResourceForecastDataResponse(); context.Read(); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { if (context.TestExpression("Datapoints", targetDepth)) { var unmarshaller = new ListUnmarshaller<Datapoint, DatapointUnmarshaller>(DatapointUnmarshaller.Instance); response.Datapoints = unmarshaller.Unmarshall(context); continue; } } return response; } /// <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(JsonUnmarshallerContext context, Exception innerException, HttpStatusCode statusCode) { var errorResponse = JsonErrorResponseUnmarshaller.GetInstance().Unmarshall(context); errorResponse.InnerException = innerException; errorResponse.StatusCode = statusCode; var responseBodyBytes = context.GetResponseBodyBytes(); using (var streamCopy = new MemoryStream(responseBodyBytes)) using (var contextCopy = new JsonUnmarshallerContext(streamCopy, false, null)) { if (errorResponse.Code != null && errorResponse.Code.Equals("InternalServiceException")) { return InternalServiceExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("ValidationException")) { return ValidationExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } } return new AmazonAutoScalingPlansException(errorResponse.Message, errorResponse.InnerException, errorResponse.Type, errorResponse.Code, errorResponse.RequestId, errorResponse.StatusCode); } private static GetScalingPlanResourceForecastDataResponseUnmarshaller _instance = new GetScalingPlanResourceForecastDataResponseUnmarshaller(); internal static GetScalingPlanResourceForecastDataResponseUnmarshaller GetInstance() { return _instance; } /// <summary> /// Gets the singleton. /// </summary> public static GetScalingPlanResourceForecastDataResponseUnmarshaller Instance { get { return _instance; } } } }
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-plans-2018-01-06.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.AutoScalingPlans.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.AutoScalingPlans.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for InternalServiceException Object /// </summary> public class InternalServiceExceptionUnmarshaller : IErrorResponseUnmarshaller<InternalServiceException, JsonUnmarshallerContext> { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> public InternalServiceException Unmarshall(JsonUnmarshallerContext context) { return this.Unmarshall(context, new Amazon.Runtime.Internal.ErrorResponse()); } /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <param name="errorResponse"></param> /// <returns></returns> public InternalServiceException Unmarshall(JsonUnmarshallerContext context, Amazon.Runtime.Internal.ErrorResponse errorResponse) { context.Read(); InternalServiceException unmarshalledObject = new InternalServiceException(errorResponse.Message, errorResponse.InnerException, errorResponse.Type, errorResponse.Code, errorResponse.RequestId, errorResponse.StatusCode); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { } return unmarshalledObject; } private static InternalServiceExceptionUnmarshaller _instance = new InternalServiceExceptionUnmarshaller(); /// <summary> /// Gets the singleton. /// </summary> public static InternalServiceExceptionUnmarshaller Instance { get { return _instance; } } } }
85
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-plans-2018-01-06.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.AutoScalingPlans.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.AutoScalingPlans.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for InvalidNextTokenException Object /// </summary> public class InvalidNextTokenExceptionUnmarshaller : IErrorResponseUnmarshaller<InvalidNextTokenException, JsonUnmarshallerContext> { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> public InvalidNextTokenException Unmarshall(JsonUnmarshallerContext context) { return this.Unmarshall(context, new Amazon.Runtime.Internal.ErrorResponse()); } /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <param name="errorResponse"></param> /// <returns></returns> public InvalidNextTokenException Unmarshall(JsonUnmarshallerContext context, Amazon.Runtime.Internal.ErrorResponse errorResponse) { context.Read(); InvalidNextTokenException unmarshalledObject = new InvalidNextTokenException(errorResponse.Message, errorResponse.InnerException, errorResponse.Type, errorResponse.Code, errorResponse.RequestId, errorResponse.StatusCode); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { } return unmarshalledObject; } private static InvalidNextTokenExceptionUnmarshaller _instance = new InvalidNextTokenExceptionUnmarshaller(); /// <summary> /// Gets the singleton. /// </summary> public static InvalidNextTokenExceptionUnmarshaller Instance { get { return _instance; } } } }
85
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-plans-2018-01-06.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.AutoScalingPlans.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.AutoScalingPlans.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for LimitExceededException Object /// </summary> public class LimitExceededExceptionUnmarshaller : IErrorResponseUnmarshaller<LimitExceededException, JsonUnmarshallerContext> { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> public LimitExceededException Unmarshall(JsonUnmarshallerContext context) { return this.Unmarshall(context, new Amazon.Runtime.Internal.ErrorResponse()); } /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <param name="errorResponse"></param> /// <returns></returns> public LimitExceededException Unmarshall(JsonUnmarshallerContext context, Amazon.Runtime.Internal.ErrorResponse errorResponse) { context.Read(); LimitExceededException unmarshalledObject = new LimitExceededException(errorResponse.Message, errorResponse.InnerException, errorResponse.Type, errorResponse.Code, errorResponse.RequestId, errorResponse.StatusCode); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { } return unmarshalledObject; } private static LimitExceededExceptionUnmarshaller _instance = new LimitExceededExceptionUnmarshaller(); /// <summary> /// Gets the singleton. /// </summary> public static LimitExceededExceptionUnmarshaller Instance { get { return _instance; } } } }
85
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-plans-2018-01-06.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.AutoScalingPlans.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.AutoScalingPlans.Model.Internal.MarshallTransformations { /// <summary> /// MetricDimension Marshaller /// </summary> public class MetricDimensionMarshaller : IRequestMarshaller<MetricDimension, JsonMarshallerContext> { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="requestObject"></param> /// <param name="context"></param> /// <returns></returns> public void Marshall(MetricDimension requestObject, JsonMarshallerContext context) { if(requestObject.IsSetName()) { context.Writer.WritePropertyName("Name"); context.Writer.Write(requestObject.Name); } if(requestObject.IsSetValue()) { context.Writer.WritePropertyName("Value"); context.Writer.Write(requestObject.Value); } } /// <summary> /// Singleton Marshaller. /// </summary> public readonly static MetricDimensionMarshaller Instance = new MetricDimensionMarshaller(); } }
68
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-plans-2018-01-06.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.AutoScalingPlans.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.AutoScalingPlans.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for MetricDimension Object /// </summary> public class MetricDimensionUnmarshaller : IUnmarshaller<MetricDimension, XmlUnmarshallerContext>, IUnmarshaller<MetricDimension, JsonUnmarshallerContext> { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> MetricDimension IUnmarshaller<MetricDimension, XmlUnmarshallerContext>.Unmarshall(XmlUnmarshallerContext context) { throw new NotImplementedException(); } /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> public MetricDimension Unmarshall(JsonUnmarshallerContext context) { context.Read(); if (context.CurrentTokenType == JsonToken.Null) return null; MetricDimension unmarshalledObject = new MetricDimension(); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { if (context.TestExpression("Name", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.Name = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("Value", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.Value = unmarshaller.Unmarshall(context); continue; } } return unmarshalledObject; } private static MetricDimensionUnmarshaller _instance = new MetricDimensionUnmarshaller(); /// <summary> /// Gets the singleton. /// </summary> public static MetricDimensionUnmarshaller Instance { get { return _instance; } } } }
98
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-plans-2018-01-06.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.AutoScalingPlans.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.AutoScalingPlans.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for ObjectNotFoundException Object /// </summary> public class ObjectNotFoundExceptionUnmarshaller : IErrorResponseUnmarshaller<ObjectNotFoundException, JsonUnmarshallerContext> { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> public ObjectNotFoundException Unmarshall(JsonUnmarshallerContext context) { return this.Unmarshall(context, new Amazon.Runtime.Internal.ErrorResponse()); } /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <param name="errorResponse"></param> /// <returns></returns> public ObjectNotFoundException Unmarshall(JsonUnmarshallerContext context, Amazon.Runtime.Internal.ErrorResponse errorResponse) { context.Read(); ObjectNotFoundException unmarshalledObject = new ObjectNotFoundException(errorResponse.Message, errorResponse.InnerException, errorResponse.Type, errorResponse.Code, errorResponse.RequestId, errorResponse.StatusCode); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { } return unmarshalledObject; } private static ObjectNotFoundExceptionUnmarshaller _instance = new ObjectNotFoundExceptionUnmarshaller(); /// <summary> /// Gets the singleton. /// </summary> public static ObjectNotFoundExceptionUnmarshaller Instance { get { return _instance; } } } }
85
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-plans-2018-01-06.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.AutoScalingPlans.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.AutoScalingPlans.Model.Internal.MarshallTransformations { /// <summary> /// PredefinedLoadMetricSpecification Marshaller /// </summary> public class PredefinedLoadMetricSpecificationMarshaller : IRequestMarshaller<PredefinedLoadMetricSpecification, JsonMarshallerContext> { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="requestObject"></param> /// <param name="context"></param> /// <returns></returns> public void Marshall(PredefinedLoadMetricSpecification requestObject, JsonMarshallerContext context) { if(requestObject.IsSetPredefinedLoadMetricType()) { context.Writer.WritePropertyName("PredefinedLoadMetricType"); context.Writer.Write(requestObject.PredefinedLoadMetricType); } if(requestObject.IsSetResourceLabel()) { context.Writer.WritePropertyName("ResourceLabel"); context.Writer.Write(requestObject.ResourceLabel); } } /// <summary> /// Singleton Marshaller. /// </summary> public readonly static PredefinedLoadMetricSpecificationMarshaller Instance = new PredefinedLoadMetricSpecificationMarshaller(); } }
68
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-plans-2018-01-06.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.AutoScalingPlans.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.AutoScalingPlans.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for PredefinedLoadMetricSpecification Object /// </summary> public class PredefinedLoadMetricSpecificationUnmarshaller : IUnmarshaller<PredefinedLoadMetricSpecification, XmlUnmarshallerContext>, IUnmarshaller<PredefinedLoadMetricSpecification, JsonUnmarshallerContext> { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> PredefinedLoadMetricSpecification IUnmarshaller<PredefinedLoadMetricSpecification, XmlUnmarshallerContext>.Unmarshall(XmlUnmarshallerContext context) { throw new NotImplementedException(); } /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> public PredefinedLoadMetricSpecification Unmarshall(JsonUnmarshallerContext context) { context.Read(); if (context.CurrentTokenType == JsonToken.Null) return null; PredefinedLoadMetricSpecification unmarshalledObject = new PredefinedLoadMetricSpecification(); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { if (context.TestExpression("PredefinedLoadMetricType", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.PredefinedLoadMetricType = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("ResourceLabel", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.ResourceLabel = unmarshaller.Unmarshall(context); continue; } } return unmarshalledObject; } private static PredefinedLoadMetricSpecificationUnmarshaller _instance = new PredefinedLoadMetricSpecificationUnmarshaller(); /// <summary> /// Gets the singleton. /// </summary> public static PredefinedLoadMetricSpecificationUnmarshaller Instance { get { return _instance; } } } }
98
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-plans-2018-01-06.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.AutoScalingPlans.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.AutoScalingPlans.Model.Internal.MarshallTransformations { /// <summary> /// PredefinedScalingMetricSpecification Marshaller /// </summary> public class PredefinedScalingMetricSpecificationMarshaller : IRequestMarshaller<PredefinedScalingMetricSpecification, JsonMarshallerContext> { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="requestObject"></param> /// <param name="context"></param> /// <returns></returns> public void Marshall(PredefinedScalingMetricSpecification requestObject, JsonMarshallerContext context) { if(requestObject.IsSetPredefinedScalingMetricType()) { context.Writer.WritePropertyName("PredefinedScalingMetricType"); context.Writer.Write(requestObject.PredefinedScalingMetricType); } if(requestObject.IsSetResourceLabel()) { context.Writer.WritePropertyName("ResourceLabel"); context.Writer.Write(requestObject.ResourceLabel); } } /// <summary> /// Singleton Marshaller. /// </summary> public readonly static PredefinedScalingMetricSpecificationMarshaller Instance = new PredefinedScalingMetricSpecificationMarshaller(); } }
68
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-plans-2018-01-06.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.AutoScalingPlans.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.AutoScalingPlans.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for PredefinedScalingMetricSpecification Object /// </summary> public class PredefinedScalingMetricSpecificationUnmarshaller : IUnmarshaller<PredefinedScalingMetricSpecification, XmlUnmarshallerContext>, IUnmarshaller<PredefinedScalingMetricSpecification, JsonUnmarshallerContext> { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> PredefinedScalingMetricSpecification IUnmarshaller<PredefinedScalingMetricSpecification, XmlUnmarshallerContext>.Unmarshall(XmlUnmarshallerContext context) { throw new NotImplementedException(); } /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> public PredefinedScalingMetricSpecification Unmarshall(JsonUnmarshallerContext context) { context.Read(); if (context.CurrentTokenType == JsonToken.Null) return null; PredefinedScalingMetricSpecification unmarshalledObject = new PredefinedScalingMetricSpecification(); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { if (context.TestExpression("PredefinedScalingMetricType", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.PredefinedScalingMetricType = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("ResourceLabel", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.ResourceLabel = unmarshaller.Unmarshall(context); continue; } } return unmarshalledObject; } private static PredefinedScalingMetricSpecificationUnmarshaller _instance = new PredefinedScalingMetricSpecificationUnmarshaller(); /// <summary> /// Gets the singleton. /// </summary> public static PredefinedScalingMetricSpecificationUnmarshaller Instance { get { return _instance; } } } }
98
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-plans-2018-01-06.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.AutoScalingPlans.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.AutoScalingPlans.Model.Internal.MarshallTransformations { /// <summary> /// ScalingInstruction Marshaller /// </summary> public class ScalingInstructionMarshaller : IRequestMarshaller<ScalingInstruction, JsonMarshallerContext> { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="requestObject"></param> /// <param name="context"></param> /// <returns></returns> public void Marshall(ScalingInstruction requestObject, JsonMarshallerContext context) { if(requestObject.IsSetCustomizedLoadMetricSpecification()) { context.Writer.WritePropertyName("CustomizedLoadMetricSpecification"); context.Writer.WriteObjectStart(); var marshaller = CustomizedLoadMetricSpecificationMarshaller.Instance; marshaller.Marshall(requestObject.CustomizedLoadMetricSpecification, context); context.Writer.WriteObjectEnd(); } if(requestObject.IsSetDisableDynamicScaling()) { context.Writer.WritePropertyName("DisableDynamicScaling"); context.Writer.Write(requestObject.DisableDynamicScaling); } if(requestObject.IsSetMaxCapacity()) { context.Writer.WritePropertyName("MaxCapacity"); context.Writer.Write(requestObject.MaxCapacity); } if(requestObject.IsSetMinCapacity()) { context.Writer.WritePropertyName("MinCapacity"); context.Writer.Write(requestObject.MinCapacity); } if(requestObject.IsSetPredefinedLoadMetricSpecification()) { context.Writer.WritePropertyName("PredefinedLoadMetricSpecification"); context.Writer.WriteObjectStart(); var marshaller = PredefinedLoadMetricSpecificationMarshaller.Instance; marshaller.Marshall(requestObject.PredefinedLoadMetricSpecification, context); context.Writer.WriteObjectEnd(); } if(requestObject.IsSetPredictiveScalingMaxCapacityBehavior()) { context.Writer.WritePropertyName("PredictiveScalingMaxCapacityBehavior"); context.Writer.Write(requestObject.PredictiveScalingMaxCapacityBehavior); } if(requestObject.IsSetPredictiveScalingMaxCapacityBuffer()) { context.Writer.WritePropertyName("PredictiveScalingMaxCapacityBuffer"); context.Writer.Write(requestObject.PredictiveScalingMaxCapacityBuffer); } if(requestObject.IsSetPredictiveScalingMode()) { context.Writer.WritePropertyName("PredictiveScalingMode"); context.Writer.Write(requestObject.PredictiveScalingMode); } if(requestObject.IsSetResourceId()) { context.Writer.WritePropertyName("ResourceId"); context.Writer.Write(requestObject.ResourceId); } if(requestObject.IsSetScalableDimension()) { context.Writer.WritePropertyName("ScalableDimension"); context.Writer.Write(requestObject.ScalableDimension); } if(requestObject.IsSetScalingPolicyUpdateBehavior()) { context.Writer.WritePropertyName("ScalingPolicyUpdateBehavior"); context.Writer.Write(requestObject.ScalingPolicyUpdateBehavior); } if(requestObject.IsSetScheduledActionBufferTime()) { context.Writer.WritePropertyName("ScheduledActionBufferTime"); context.Writer.Write(requestObject.ScheduledActionBufferTime); } if(requestObject.IsSetServiceNamespace()) { context.Writer.WritePropertyName("ServiceNamespace"); context.Writer.Write(requestObject.ServiceNamespace); } if(requestObject.IsSetTargetTrackingConfigurations()) { context.Writer.WritePropertyName("TargetTrackingConfigurations"); context.Writer.WriteArrayStart(); foreach(var requestObjectTargetTrackingConfigurationsListValue in requestObject.TargetTrackingConfigurations) { context.Writer.WriteObjectStart(); var marshaller = TargetTrackingConfigurationMarshaller.Instance; marshaller.Marshall(requestObjectTargetTrackingConfigurationsListValue, context); context.Writer.WriteObjectEnd(); } context.Writer.WriteArrayEnd(); } } /// <summary> /// Singleton Marshaller. /// </summary> public readonly static ScalingInstructionMarshaller Instance = new ScalingInstructionMarshaller(); } }
160
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-plans-2018-01-06.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.AutoScalingPlans.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.AutoScalingPlans.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for ScalingInstruction Object /// </summary> public class ScalingInstructionUnmarshaller : IUnmarshaller<ScalingInstruction, XmlUnmarshallerContext>, IUnmarshaller<ScalingInstruction, JsonUnmarshallerContext> { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> ScalingInstruction IUnmarshaller<ScalingInstruction, XmlUnmarshallerContext>.Unmarshall(XmlUnmarshallerContext context) { throw new NotImplementedException(); } /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> public ScalingInstruction Unmarshall(JsonUnmarshallerContext context) { context.Read(); if (context.CurrentTokenType == JsonToken.Null) return null; ScalingInstruction unmarshalledObject = new ScalingInstruction(); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { if (context.TestExpression("CustomizedLoadMetricSpecification", targetDepth)) { var unmarshaller = CustomizedLoadMetricSpecificationUnmarshaller.Instance; unmarshalledObject.CustomizedLoadMetricSpecification = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("DisableDynamicScaling", targetDepth)) { var unmarshaller = BoolUnmarshaller.Instance; unmarshalledObject.DisableDynamicScaling = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("MaxCapacity", targetDepth)) { var unmarshaller = IntUnmarshaller.Instance; unmarshalledObject.MaxCapacity = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("MinCapacity", targetDepth)) { var unmarshaller = IntUnmarshaller.Instance; unmarshalledObject.MinCapacity = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("PredefinedLoadMetricSpecification", targetDepth)) { var unmarshaller = PredefinedLoadMetricSpecificationUnmarshaller.Instance; unmarshalledObject.PredefinedLoadMetricSpecification = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("PredictiveScalingMaxCapacityBehavior", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.PredictiveScalingMaxCapacityBehavior = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("PredictiveScalingMaxCapacityBuffer", targetDepth)) { var unmarshaller = IntUnmarshaller.Instance; unmarshalledObject.PredictiveScalingMaxCapacityBuffer = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("PredictiveScalingMode", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.PredictiveScalingMode = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("ResourceId", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.ResourceId = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("ScalableDimension", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.ScalableDimension = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("ScalingPolicyUpdateBehavior", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.ScalingPolicyUpdateBehavior = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("ScheduledActionBufferTime", targetDepth)) { var unmarshaller = IntUnmarshaller.Instance; unmarshalledObject.ScheduledActionBufferTime = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("ServiceNamespace", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.ServiceNamespace = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("TargetTrackingConfigurations", targetDepth)) { var unmarshaller = new ListUnmarshaller<TargetTrackingConfiguration, TargetTrackingConfigurationUnmarshaller>(TargetTrackingConfigurationUnmarshaller.Instance); unmarshalledObject.TargetTrackingConfigurations = unmarshaller.Unmarshall(context); continue; } } return unmarshalledObject; } private static ScalingInstructionUnmarshaller _instance = new ScalingInstructionUnmarshaller(); /// <summary> /// Gets the singleton. /// </summary> public static ScalingInstructionUnmarshaller Instance { get { return _instance; } } } }
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-plans-2018-01-06.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.AutoScalingPlans.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.AutoScalingPlans.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for ScalingPlanResource Object /// </summary> public class ScalingPlanResourceUnmarshaller : IUnmarshaller<ScalingPlanResource, XmlUnmarshallerContext>, IUnmarshaller<ScalingPlanResource, JsonUnmarshallerContext> { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> ScalingPlanResource IUnmarshaller<ScalingPlanResource, XmlUnmarshallerContext>.Unmarshall(XmlUnmarshallerContext context) { throw new NotImplementedException(); } /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> public ScalingPlanResource Unmarshall(JsonUnmarshallerContext context) { context.Read(); if (context.CurrentTokenType == JsonToken.Null) return null; ScalingPlanResource unmarshalledObject = new ScalingPlanResource(); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { if (context.TestExpression("ResourceId", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.ResourceId = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("ScalableDimension", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.ScalableDimension = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("ScalingPlanName", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.ScalingPlanName = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("ScalingPlanVersion", targetDepth)) { var unmarshaller = LongUnmarshaller.Instance; unmarshalledObject.ScalingPlanVersion = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("ScalingPolicies", targetDepth)) { var unmarshaller = new ListUnmarshaller<ScalingPolicy, ScalingPolicyUnmarshaller>(ScalingPolicyUnmarshaller.Instance); unmarshalledObject.ScalingPolicies = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("ScalingStatusCode", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.ScalingStatusCode = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("ScalingStatusMessage", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.ScalingStatusMessage = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("ServiceNamespace", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.ServiceNamespace = unmarshaller.Unmarshall(context); continue; } } return unmarshalledObject; } private static ScalingPlanResourceUnmarshaller _instance = new ScalingPlanResourceUnmarshaller(); /// <summary> /// Gets the singleton. /// </summary> public static ScalingPlanResourceUnmarshaller Instance { get { return _instance; } } } }
134
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-plans-2018-01-06.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.AutoScalingPlans.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.AutoScalingPlans.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for ScalingPlan Object /// </summary> public class ScalingPlanUnmarshaller : IUnmarshaller<ScalingPlan, XmlUnmarshallerContext>, IUnmarshaller<ScalingPlan, JsonUnmarshallerContext> { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> ScalingPlan IUnmarshaller<ScalingPlan, XmlUnmarshallerContext>.Unmarshall(XmlUnmarshallerContext context) { throw new NotImplementedException(); } /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> public ScalingPlan Unmarshall(JsonUnmarshallerContext context) { context.Read(); if (context.CurrentTokenType == JsonToken.Null) return null; ScalingPlan unmarshalledObject = new ScalingPlan(); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { if (context.TestExpression("ApplicationSource", targetDepth)) { var unmarshaller = ApplicationSourceUnmarshaller.Instance; unmarshalledObject.ApplicationSource = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("CreationTime", targetDepth)) { var unmarshaller = DateTimeUnmarshaller.Instance; unmarshalledObject.CreationTime = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("ScalingInstructions", targetDepth)) { var unmarshaller = new ListUnmarshaller<ScalingInstruction, ScalingInstructionUnmarshaller>(ScalingInstructionUnmarshaller.Instance); unmarshalledObject.ScalingInstructions = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("ScalingPlanName", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.ScalingPlanName = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("ScalingPlanVersion", targetDepth)) { var unmarshaller = LongUnmarshaller.Instance; unmarshalledObject.ScalingPlanVersion = 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; } if (context.TestExpression("StatusStartTime", targetDepth)) { var unmarshaller = DateTimeUnmarshaller.Instance; unmarshalledObject.StatusStartTime = unmarshaller.Unmarshall(context); continue; } } return unmarshalledObject; } private static ScalingPlanUnmarshaller _instance = new ScalingPlanUnmarshaller(); /// <summary> /// Gets the singleton. /// </summary> public static ScalingPlanUnmarshaller Instance { get { return _instance; } } } }
134
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-plans-2018-01-06.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.AutoScalingPlans.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.AutoScalingPlans.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for ScalingPolicy Object /// </summary> public class ScalingPolicyUnmarshaller : IUnmarshaller<ScalingPolicy, XmlUnmarshallerContext>, IUnmarshaller<ScalingPolicy, JsonUnmarshallerContext> { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> ScalingPolicy IUnmarshaller<ScalingPolicy, XmlUnmarshallerContext>.Unmarshall(XmlUnmarshallerContext context) { throw new NotImplementedException(); } /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> public ScalingPolicy Unmarshall(JsonUnmarshallerContext context) { context.Read(); if (context.CurrentTokenType == JsonToken.Null) return null; ScalingPolicy unmarshalledObject = new ScalingPolicy(); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { if (context.TestExpression("PolicyName", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.PolicyName = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("PolicyType", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.PolicyType = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("TargetTrackingConfiguration", targetDepth)) { var unmarshaller = TargetTrackingConfigurationUnmarshaller.Instance; unmarshalledObject.TargetTrackingConfiguration = unmarshaller.Unmarshall(context); continue; } } return unmarshalledObject; } private static ScalingPolicyUnmarshaller _instance = new ScalingPolicyUnmarshaller(); /// <summary> /// Gets the singleton. /// </summary> public static ScalingPolicyUnmarshaller Instance { get { return _instance; } } } }
104
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-plans-2018-01-06.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.AutoScalingPlans.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.AutoScalingPlans.Model.Internal.MarshallTransformations { /// <summary> /// TagFilter Marshaller /// </summary> public class TagFilterMarshaller : IRequestMarshaller<TagFilter, JsonMarshallerContext> { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="requestObject"></param> /// <param name="context"></param> /// <returns></returns> public void Marshall(TagFilter requestObject, JsonMarshallerContext context) { if(requestObject.IsSetKey()) { context.Writer.WritePropertyName("Key"); context.Writer.Write(requestObject.Key); } if(requestObject.IsSetValues()) { context.Writer.WritePropertyName("Values"); context.Writer.WriteArrayStart(); foreach(var requestObjectValuesListValue in requestObject.Values) { context.Writer.Write(requestObjectValuesListValue); } context.Writer.WriteArrayEnd(); } } /// <summary> /// Singleton Marshaller. /// </summary> public readonly static TagFilterMarshaller Instance = new TagFilterMarshaller(); } }
73
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-plans-2018-01-06.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.AutoScalingPlans.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.AutoScalingPlans.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for TagFilter Object /// </summary> public class TagFilterUnmarshaller : IUnmarshaller<TagFilter, XmlUnmarshallerContext>, IUnmarshaller<TagFilter, JsonUnmarshallerContext> { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> TagFilter IUnmarshaller<TagFilter, XmlUnmarshallerContext>.Unmarshall(XmlUnmarshallerContext context) { throw new NotImplementedException(); } /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> public TagFilter Unmarshall(JsonUnmarshallerContext context) { context.Read(); if (context.CurrentTokenType == JsonToken.Null) return null; TagFilter unmarshalledObject = new TagFilter(); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { if (context.TestExpression("Key", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.Key = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("Values", targetDepth)) { var unmarshaller = new ListUnmarshaller<string, StringUnmarshaller>(StringUnmarshaller.Instance); unmarshalledObject.Values = unmarshaller.Unmarshall(context); continue; } } return unmarshalledObject; } private static TagFilterUnmarshaller _instance = new TagFilterUnmarshaller(); /// <summary> /// Gets the singleton. /// </summary> public static TagFilterUnmarshaller Instance { get { return _instance; } } } }
98
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-plans-2018-01-06.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.AutoScalingPlans.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.AutoScalingPlans.Model.Internal.MarshallTransformations { /// <summary> /// TargetTrackingConfiguration Marshaller /// </summary> public class TargetTrackingConfigurationMarshaller : IRequestMarshaller<TargetTrackingConfiguration, JsonMarshallerContext> { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="requestObject"></param> /// <param name="context"></param> /// <returns></returns> public void Marshall(TargetTrackingConfiguration requestObject, JsonMarshallerContext context) { if(requestObject.IsSetCustomizedScalingMetricSpecification()) { context.Writer.WritePropertyName("CustomizedScalingMetricSpecification"); context.Writer.WriteObjectStart(); var marshaller = CustomizedScalingMetricSpecificationMarshaller.Instance; marshaller.Marshall(requestObject.CustomizedScalingMetricSpecification, context); context.Writer.WriteObjectEnd(); } if(requestObject.IsSetDisableScaleIn()) { context.Writer.WritePropertyName("DisableScaleIn"); context.Writer.Write(requestObject.DisableScaleIn); } if(requestObject.IsSetEstimatedInstanceWarmup()) { context.Writer.WritePropertyName("EstimatedInstanceWarmup"); context.Writer.Write(requestObject.EstimatedInstanceWarmup); } if(requestObject.IsSetPredefinedScalingMetricSpecification()) { context.Writer.WritePropertyName("PredefinedScalingMetricSpecification"); context.Writer.WriteObjectStart(); var marshaller = PredefinedScalingMetricSpecificationMarshaller.Instance; marshaller.Marshall(requestObject.PredefinedScalingMetricSpecification, context); context.Writer.WriteObjectEnd(); } if(requestObject.IsSetScaleInCooldown()) { context.Writer.WritePropertyName("ScaleInCooldown"); context.Writer.Write(requestObject.ScaleInCooldown); } if(requestObject.IsSetScaleOutCooldown()) { context.Writer.WritePropertyName("ScaleOutCooldown"); context.Writer.Write(requestObject.ScaleOutCooldown); } if(requestObject.IsSetTargetValue()) { context.Writer.WritePropertyName("TargetValue"); context.Writer.Write(requestObject.TargetValue); } } /// <summary> /// Singleton Marshaller. /// </summary> public readonly static TargetTrackingConfigurationMarshaller Instance = new TargetTrackingConfigurationMarshaller(); } }
108
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-plans-2018-01-06.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.AutoScalingPlans.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.AutoScalingPlans.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for TargetTrackingConfiguration Object /// </summary> public class TargetTrackingConfigurationUnmarshaller : IUnmarshaller<TargetTrackingConfiguration, XmlUnmarshallerContext>, IUnmarshaller<TargetTrackingConfiguration, JsonUnmarshallerContext> { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> TargetTrackingConfiguration IUnmarshaller<TargetTrackingConfiguration, XmlUnmarshallerContext>.Unmarshall(XmlUnmarshallerContext context) { throw new NotImplementedException(); } /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> public TargetTrackingConfiguration Unmarshall(JsonUnmarshallerContext context) { context.Read(); if (context.CurrentTokenType == JsonToken.Null) return null; TargetTrackingConfiguration unmarshalledObject = new TargetTrackingConfiguration(); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { if (context.TestExpression("CustomizedScalingMetricSpecification", targetDepth)) { var unmarshaller = CustomizedScalingMetricSpecificationUnmarshaller.Instance; unmarshalledObject.CustomizedScalingMetricSpecification = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("DisableScaleIn", targetDepth)) { var unmarshaller = BoolUnmarshaller.Instance; unmarshalledObject.DisableScaleIn = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("EstimatedInstanceWarmup", targetDepth)) { var unmarshaller = IntUnmarshaller.Instance; unmarshalledObject.EstimatedInstanceWarmup = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("PredefinedScalingMetricSpecification", targetDepth)) { var unmarshaller = PredefinedScalingMetricSpecificationUnmarshaller.Instance; unmarshalledObject.PredefinedScalingMetricSpecification = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("ScaleInCooldown", targetDepth)) { var unmarshaller = IntUnmarshaller.Instance; unmarshalledObject.ScaleInCooldown = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("ScaleOutCooldown", targetDepth)) { var unmarshaller = IntUnmarshaller.Instance; unmarshalledObject.ScaleOutCooldown = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("TargetValue", targetDepth)) { var unmarshaller = DoubleUnmarshaller.Instance; unmarshalledObject.TargetValue = unmarshaller.Unmarshall(context); continue; } } return unmarshalledObject; } private static TargetTrackingConfigurationUnmarshaller _instance = new TargetTrackingConfigurationUnmarshaller(); /// <summary> /// Gets the singleton. /// </summary> public static TargetTrackingConfigurationUnmarshaller Instance { get { return _instance; } } } }
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-plans-2018-01-06.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.AutoScalingPlans.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.AutoScalingPlans.Model.Internal.MarshallTransformations { /// <summary> /// UpdateScalingPlan Request Marshaller /// </summary> public class UpdateScalingPlanRequestMarshaller : IMarshaller<IRequest, UpdateScalingPlanRequest> , 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((UpdateScalingPlanRequest)input); } /// <summary> /// Marshaller the request object to the HTTP request. /// </summary> /// <param name="publicRequest"></param> /// <returns></returns> public IRequest Marshall(UpdateScalingPlanRequest publicRequest) { IRequest request = new DefaultRequest(publicRequest, "Amazon.AutoScalingPlans"); string target = "AnyScaleScalingPlannerFrontendService.UpdateScalingPlan"; request.Headers["X-Amz-Target"] = target; request.Headers["Content-Type"] = "application/x-amz-json-1.1"; request.Headers[Amazon.Util.HeaderKeys.XAmzApiVersion] = "2018-01-06"; request.HttpMethod = "POST"; request.ResourcePath = "/"; using (StringWriter stringWriter = new StringWriter(CultureInfo.InvariantCulture)) { JsonWriter writer = new JsonWriter(stringWriter); writer.WriteObjectStart(); var context = new JsonMarshallerContext(request, writer); if(publicRequest.IsSetApplicationSource()) { context.Writer.WritePropertyName("ApplicationSource"); context.Writer.WriteObjectStart(); var marshaller = ApplicationSourceMarshaller.Instance; marshaller.Marshall(publicRequest.ApplicationSource, context); context.Writer.WriteObjectEnd(); } if(publicRequest.IsSetScalingInstructions()) { context.Writer.WritePropertyName("ScalingInstructions"); context.Writer.WriteArrayStart(); foreach(var publicRequestScalingInstructionsListValue in publicRequest.ScalingInstructions) { context.Writer.WriteObjectStart(); var marshaller = ScalingInstructionMarshaller.Instance; marshaller.Marshall(publicRequestScalingInstructionsListValue, context); context.Writer.WriteObjectEnd(); } context.Writer.WriteArrayEnd(); } if(publicRequest.IsSetScalingPlanName()) { context.Writer.WritePropertyName("ScalingPlanName"); context.Writer.Write(publicRequest.ScalingPlanName); } if(publicRequest.IsSetScalingPlanVersion()) { context.Writer.WritePropertyName("ScalingPlanVersion"); context.Writer.Write(publicRequest.ScalingPlanVersion); } writer.WriteObjectEnd(); string snippet = stringWriter.ToString(); request.Content = System.Text.Encoding.UTF8.GetBytes(snippet); } return request; } private static UpdateScalingPlanRequestMarshaller _instance = new UpdateScalingPlanRequestMarshaller(); internal static UpdateScalingPlanRequestMarshaller GetInstance() { return _instance; } /// <summary> /// Gets the singleton. /// </summary> public static UpdateScalingPlanRequestMarshaller Instance { get { return _instance; } } } }
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-plans-2018-01-06.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.AutoScalingPlans.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.AutoScalingPlans.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for UpdateScalingPlan operation /// </summary> public class UpdateScalingPlanResponseUnmarshaller : JsonResponseUnmarshaller { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> public override AmazonWebServiceResponse Unmarshall(JsonUnmarshallerContext context) { UpdateScalingPlanResponse response = new UpdateScalingPlanResponse(); return response; } /// <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(JsonUnmarshallerContext context, Exception innerException, HttpStatusCode statusCode) { var errorResponse = JsonErrorResponseUnmarshaller.GetInstance().Unmarshall(context); errorResponse.InnerException = innerException; errorResponse.StatusCode = statusCode; var responseBodyBytes = context.GetResponseBodyBytes(); using (var streamCopy = new MemoryStream(responseBodyBytes)) using (var contextCopy = new JsonUnmarshallerContext(streamCopy, false, null)) { if (errorResponse.Code != null && errorResponse.Code.Equals("ConcurrentUpdateException")) { return ConcurrentUpdateExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("InternalServiceException")) { return InternalServiceExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("ObjectNotFoundException")) { return ObjectNotFoundExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("ValidationException")) { return ValidationExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } } return new AmazonAutoScalingPlansException(errorResponse.Message, errorResponse.InnerException, errorResponse.Type, errorResponse.Code, errorResponse.RequestId, errorResponse.StatusCode); } private static UpdateScalingPlanResponseUnmarshaller _instance = new UpdateScalingPlanResponseUnmarshaller(); internal static UpdateScalingPlanResponseUnmarshaller GetInstance() { return _instance; } /// <summary> /// Gets the singleton. /// </summary> public static UpdateScalingPlanResponseUnmarshaller Instance { get { return _instance; } } } }
111
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-plans-2018-01-06.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.AutoScalingPlans.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.AutoScalingPlans.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for ValidationException Object /// </summary> public class ValidationExceptionUnmarshaller : IErrorResponseUnmarshaller<ValidationException, JsonUnmarshallerContext> { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> public ValidationException Unmarshall(JsonUnmarshallerContext context) { return this.Unmarshall(context, new Amazon.Runtime.Internal.ErrorResponse()); } /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <param name="errorResponse"></param> /// <returns></returns> public ValidationException Unmarshall(JsonUnmarshallerContext context, Amazon.Runtime.Internal.ErrorResponse errorResponse) { context.Read(); ValidationException unmarshalledObject = new ValidationException(errorResponse.Message, errorResponse.InnerException, errorResponse.Type, errorResponse.Code, errorResponse.RequestId, errorResponse.StatusCode); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { } return unmarshalledObject; } private static ValidationExceptionUnmarshaller _instance = new ValidationExceptionUnmarshaller(); /// <summary> /// Gets the singleton. /// </summary> public static ValidationExceptionUnmarshaller Instance { get { return _instance; } } } }
85
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-plans-2018-01-06.normal.json service model. */ using System; using System.Collections.Generic; using System.Net; using Amazon.AutoScalingPlans.Model; using Amazon.AutoScalingPlans.Model.Internal.MarshallTransformations; using Amazon.AutoScalingPlans.Internal; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Auth; using Amazon.Runtime.Internal.Transform; namespace Amazon.AutoScalingPlans { /// <summary> /// Implementation for accessing AutoScalingPlans /// /// AWS Auto Scaling /// <para> /// Use AWS Auto Scaling to create scaling plans for your applications to automatically /// scale your scalable AWS resources. /// </para> /// /// <para> /// <b>API Summary</b> /// </para> /// /// <para> /// You can use the AWS Auto Scaling service API to accomplish the following tasks: /// </para> /// <ul> <li> /// <para> /// Create and manage scaling plans /// </para> /// </li> <li> /// <para> /// Define target tracking scaling policies to dynamically scale your resources based /// on utilization /// </para> /// </li> <li> /// <para> /// Scale Amazon EC2 Auto Scaling groups using predictive scaling and dynamic scaling /// to scale your Amazon EC2 capacity faster /// </para> /// </li> <li> /// <para> /// Set minimum and maximum capacity limits /// </para> /// </li> <li> /// <para> /// Retrieve information on existing scaling plans /// </para> /// </li> <li> /// <para> /// Access current forecast data and historical forecast data for up to 56 days previous /// </para> /// </li> </ul> /// <para> /// To learn more about AWS Auto Scaling, including information about granting IAM users /// required permissions for AWS Auto Scaling actions, see the <a href="https://docs.aws.amazon.com/autoscaling/plans/userguide/what-is-aws-auto-scaling.html">AWS /// Auto Scaling User Guide</a>. /// </para> /// </summary> public partial class AmazonAutoScalingPlansClient : AmazonServiceClient, IAmazonAutoScalingPlans { private static IServiceMetadata serviceMetadata = new AmazonAutoScalingPlansMetadata(); #region Constructors /// <summary> /// Constructs AmazonAutoScalingPlansClient with the credentials loaded from the application's /// default configuration, and if unsuccessful from the Instance Profile service on an EC2 instance. /// /// Example App.config with credentials set. /// <code> /// &lt;?xml version="1.0" encoding="utf-8" ?&gt; /// &lt;configuration&gt; /// &lt;appSettings&gt; /// &lt;add key="AWSProfileName" value="AWS Default"/&gt; /// &lt;/appSettings&gt; /// &lt;/configuration&gt; /// </code> /// /// </summary> public AmazonAutoScalingPlansClient() : base(FallbackCredentialsFactory.GetCredentials(), new AmazonAutoScalingPlansConfig()) { } /// <summary> /// Constructs AmazonAutoScalingPlansClient with the credentials loaded from the application's /// default configuration, and if unsuccessful from the Instance Profile service on an EC2 instance. /// /// Example App.config with credentials set. /// <code> /// &lt;?xml version="1.0" encoding="utf-8" ?&gt; /// &lt;configuration&gt; /// &lt;appSettings&gt; /// &lt;add key="AWSProfileName" value="AWS Default"/&gt; /// &lt;/appSettings&gt; /// &lt;/configuration&gt; /// </code> /// /// </summary> /// <param name="region">The region to connect.</param> public AmazonAutoScalingPlansClient(RegionEndpoint region) : base(FallbackCredentialsFactory.GetCredentials(), new AmazonAutoScalingPlansConfig{RegionEndpoint = region}) { } /// <summary> /// Constructs AmazonAutoScalingPlansClient with the credentials loaded from the application's /// default configuration, and if unsuccessful from the Instance Profile service on an EC2 instance. /// /// Example App.config with credentials set. /// <code> /// &lt;?xml version="1.0" encoding="utf-8" ?&gt; /// &lt;configuration&gt; /// &lt;appSettings&gt; /// &lt;add key="AWSProfileName" value="AWS Default"/&gt; /// &lt;/appSettings&gt; /// &lt;/configuration&gt; /// </code> /// /// </summary> /// <param name="config">The AmazonAutoScalingPlansClient Configuration Object</param> public AmazonAutoScalingPlansClient(AmazonAutoScalingPlansConfig config) : base(FallbackCredentialsFactory.GetCredentials(), config) { } /// <summary> /// Constructs AmazonAutoScalingPlansClient with AWS Credentials /// </summary> /// <param name="credentials">AWS Credentials</param> public AmazonAutoScalingPlansClient(AWSCredentials credentials) : this(credentials, new AmazonAutoScalingPlansConfig()) { } /// <summary> /// Constructs AmazonAutoScalingPlansClient with AWS Credentials /// </summary> /// <param name="credentials">AWS Credentials</param> /// <param name="region">The region to connect.</param> public AmazonAutoScalingPlansClient(AWSCredentials credentials, RegionEndpoint region) : this(credentials, new AmazonAutoScalingPlansConfig{RegionEndpoint = region}) { } /// <summary> /// Constructs AmazonAutoScalingPlansClient with AWS Credentials and an /// AmazonAutoScalingPlansClient Configuration object. /// </summary> /// <param name="credentials">AWS Credentials</param> /// <param name="clientConfig">The AmazonAutoScalingPlansClient Configuration Object</param> public AmazonAutoScalingPlansClient(AWSCredentials credentials, AmazonAutoScalingPlansConfig clientConfig) : base(credentials, clientConfig) { } /// <summary> /// Constructs AmazonAutoScalingPlansClient with AWS Access Key ID and AWS Secret Key /// </summary> /// <param name="awsAccessKeyId">AWS Access Key ID</param> /// <param name="awsSecretAccessKey">AWS Secret Access Key</param> public AmazonAutoScalingPlansClient(string awsAccessKeyId, string awsSecretAccessKey) : this(awsAccessKeyId, awsSecretAccessKey, new AmazonAutoScalingPlansConfig()) { } /// <summary> /// Constructs AmazonAutoScalingPlansClient with AWS Access Key ID and AWS Secret Key /// </summary> /// <param name="awsAccessKeyId">AWS Access Key ID</param> /// <param name="awsSecretAccessKey">AWS Secret Access Key</param> /// <param name="region">The region to connect.</param> public AmazonAutoScalingPlansClient(string awsAccessKeyId, string awsSecretAccessKey, RegionEndpoint region) : this(awsAccessKeyId, awsSecretAccessKey, new AmazonAutoScalingPlansConfig() {RegionEndpoint=region}) { } /// <summary> /// Constructs AmazonAutoScalingPlansClient with AWS Access Key ID, AWS Secret Key and an /// AmazonAutoScalingPlansClient Configuration object. /// </summary> /// <param name="awsAccessKeyId">AWS Access Key ID</param> /// <param name="awsSecretAccessKey">AWS Secret Access Key</param> /// <param name="clientConfig">The AmazonAutoScalingPlansClient Configuration Object</param> public AmazonAutoScalingPlansClient(string awsAccessKeyId, string awsSecretAccessKey, AmazonAutoScalingPlansConfig clientConfig) : base(awsAccessKeyId, awsSecretAccessKey, clientConfig) { } /// <summary> /// Constructs AmazonAutoScalingPlansClient with AWS Access Key ID and AWS Secret Key /// </summary> /// <param name="awsAccessKeyId">AWS Access Key ID</param> /// <param name="awsSecretAccessKey">AWS Secret Access Key</param> /// <param name="awsSessionToken">AWS Session Token</param> public AmazonAutoScalingPlansClient(string awsAccessKeyId, string awsSecretAccessKey, string awsSessionToken) : this(awsAccessKeyId, awsSecretAccessKey, awsSessionToken, new AmazonAutoScalingPlansConfig()) { } /// <summary> /// Constructs AmazonAutoScalingPlansClient with AWS Access Key ID and AWS Secret Key /// </summary> /// <param name="awsAccessKeyId">AWS Access Key ID</param> /// <param name="awsSecretAccessKey">AWS Secret Access Key</param> /// <param name="awsSessionToken">AWS Session Token</param> /// <param name="region">The region to connect.</param> public AmazonAutoScalingPlansClient(string awsAccessKeyId, string awsSecretAccessKey, string awsSessionToken, RegionEndpoint region) : this(awsAccessKeyId, awsSecretAccessKey, awsSessionToken, new AmazonAutoScalingPlansConfig{RegionEndpoint = region}) { } /// <summary> /// Constructs AmazonAutoScalingPlansClient with AWS Access Key ID, AWS Secret Key and an /// AmazonAutoScalingPlansClient Configuration object. /// </summary> /// <param name="awsAccessKeyId">AWS Access Key ID</param> /// <param name="awsSecretAccessKey">AWS Secret Access Key</param> /// <param name="awsSessionToken">AWS Session Token</param> /// <param name="clientConfig">The AmazonAutoScalingPlansClient Configuration Object</param> public AmazonAutoScalingPlansClient(string awsAccessKeyId, string awsSecretAccessKey, string awsSessionToken, AmazonAutoScalingPlansConfig clientConfig) : base(awsAccessKeyId, awsSecretAccessKey, awsSessionToken, clientConfig) { } #endregion #region Overrides /// <summary> /// Creates the signer for the service. /// </summary> protected override AbstractAWSSigner CreateSigner() { return new AWS4Signer(); } /// <summary> /// Customize the pipeline /// </summary> /// <param name="pipeline"></param> protected override void CustomizeRuntimePipeline(RuntimePipeline pipeline) { pipeline.RemoveHandler<Amazon.Runtime.Internal.EndpointResolver>(); pipeline.AddHandlerAfter<Amazon.Runtime.Internal.Marshaller>(new AmazonAutoScalingPlansEndpointResolver()); } /// <summary> /// Capture metadata for the service. /// </summary> protected override IServiceMetadata ServiceMetadata { get { return serviceMetadata; } } #endregion #region Dispose /// <summary> /// Disposes the service client. /// </summary> protected override void Dispose(bool disposing) { base.Dispose(disposing); } #endregion #region CreateScalingPlan /// <summary> /// Creates a scaling plan. /// </summary> /// <param name="request">Container for the necessary parameters to execute the CreateScalingPlan service method.</param> /// /// <returns>The response from the CreateScalingPlan service method, as returned by AutoScalingPlans.</returns> /// <exception cref="Amazon.AutoScalingPlans.Model.ConcurrentUpdateException"> /// Concurrent updates caused an exception, for example, if you request an update to a /// scaling plan that already has a pending update. /// </exception> /// <exception cref="Amazon.AutoScalingPlans.Model.InternalServiceException"> /// The service encountered an internal error. /// </exception> /// <exception cref="Amazon.AutoScalingPlans.Model.LimitExceededException"> /// Your account exceeded a limit. This exception is thrown when a per-account resource /// limit is exceeded. /// </exception> /// <exception cref="Amazon.AutoScalingPlans.Model.ValidationException"> /// An exception was thrown for a validation issue. Review the parameters provided. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-plans-2018-01-06/CreateScalingPlan">REST API Reference for CreateScalingPlan Operation</seealso> public virtual CreateScalingPlanResponse CreateScalingPlan(CreateScalingPlanRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = CreateScalingPlanRequestMarshaller.Instance; options.ResponseUnmarshaller = CreateScalingPlanResponseUnmarshaller.Instance; return Invoke<CreateScalingPlanResponse>(request, options); } /// <summary> /// Initiates the asynchronous execution of the CreateScalingPlan operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the CreateScalingPlan operation on AmazonAutoScalingPlansClient.</param> /// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param> /// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property.</param> /// /// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndCreateScalingPlan /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-plans-2018-01-06/CreateScalingPlan">REST API Reference for CreateScalingPlan Operation</seealso> public virtual IAsyncResult BeginCreateScalingPlan(CreateScalingPlanRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = CreateScalingPlanRequestMarshaller.Instance; options.ResponseUnmarshaller = CreateScalingPlanResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// <summary> /// Finishes the asynchronous execution of the CreateScalingPlan operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginCreateScalingPlan.</param> /// /// <returns>Returns a CreateScalingPlanResult from AutoScalingPlans.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-plans-2018-01-06/CreateScalingPlan">REST API Reference for CreateScalingPlan Operation</seealso> public virtual CreateScalingPlanResponse EndCreateScalingPlan(IAsyncResult asyncResult) { return EndInvoke<CreateScalingPlanResponse>(asyncResult); } #endregion #region DeleteScalingPlan /// <summary> /// Deletes the specified scaling plan. /// /// /// <para> /// Deleting a scaling plan deletes the underlying <a>ScalingInstruction</a> for all of /// the scalable resources that are covered by the plan. /// </para> /// /// <para> /// If the plan has launched resources or has scaling activities in progress, you must /// delete those resources separately. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the DeleteScalingPlan service method.</param> /// /// <returns>The response from the DeleteScalingPlan service method, as returned by AutoScalingPlans.</returns> /// <exception cref="Amazon.AutoScalingPlans.Model.ConcurrentUpdateException"> /// Concurrent updates caused an exception, for example, if you request an update to a /// scaling plan that already has a pending update. /// </exception> /// <exception cref="Amazon.AutoScalingPlans.Model.InternalServiceException"> /// The service encountered an internal error. /// </exception> /// <exception cref="Amazon.AutoScalingPlans.Model.ObjectNotFoundException"> /// The specified object could not be found. /// </exception> /// <exception cref="Amazon.AutoScalingPlans.Model.ValidationException"> /// An exception was thrown for a validation issue. Review the parameters provided. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-plans-2018-01-06/DeleteScalingPlan">REST API Reference for DeleteScalingPlan Operation</seealso> public virtual DeleteScalingPlanResponse DeleteScalingPlan(DeleteScalingPlanRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DeleteScalingPlanRequestMarshaller.Instance; options.ResponseUnmarshaller = DeleteScalingPlanResponseUnmarshaller.Instance; return Invoke<DeleteScalingPlanResponse>(request, options); } /// <summary> /// Initiates the asynchronous execution of the DeleteScalingPlan operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the DeleteScalingPlan operation on AmazonAutoScalingPlansClient.</param> /// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param> /// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property.</param> /// /// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndDeleteScalingPlan /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-plans-2018-01-06/DeleteScalingPlan">REST API Reference for DeleteScalingPlan Operation</seealso> public virtual IAsyncResult BeginDeleteScalingPlan(DeleteScalingPlanRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = DeleteScalingPlanRequestMarshaller.Instance; options.ResponseUnmarshaller = DeleteScalingPlanResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// <summary> /// Finishes the asynchronous execution of the DeleteScalingPlan operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginDeleteScalingPlan.</param> /// /// <returns>Returns a DeleteScalingPlanResult from AutoScalingPlans.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-plans-2018-01-06/DeleteScalingPlan">REST API Reference for DeleteScalingPlan Operation</seealso> public virtual DeleteScalingPlanResponse EndDeleteScalingPlan(IAsyncResult asyncResult) { return EndInvoke<DeleteScalingPlanResponse>(asyncResult); } #endregion #region DescribeScalingPlanResources /// <summary> /// Describes the scalable resources in the specified scaling plan. /// </summary> /// <param name="request">Container for the necessary parameters to execute the DescribeScalingPlanResources service method.</param> /// /// <returns>The response from the DescribeScalingPlanResources service method, as returned by AutoScalingPlans.</returns> /// <exception cref="Amazon.AutoScalingPlans.Model.ConcurrentUpdateException"> /// Concurrent updates caused an exception, for example, if you request an update to a /// scaling plan that already has a pending update. /// </exception> /// <exception cref="Amazon.AutoScalingPlans.Model.InternalServiceException"> /// The service encountered an internal error. /// </exception> /// <exception cref="Amazon.AutoScalingPlans.Model.InvalidNextTokenException"> /// The token provided is not valid. /// </exception> /// <exception cref="Amazon.AutoScalingPlans.Model.ValidationException"> /// An exception was thrown for a validation issue. Review the parameters provided. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-plans-2018-01-06/DescribeScalingPlanResources">REST API Reference for DescribeScalingPlanResources Operation</seealso> public virtual DescribeScalingPlanResourcesResponse DescribeScalingPlanResources(DescribeScalingPlanResourcesRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DescribeScalingPlanResourcesRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribeScalingPlanResourcesResponseUnmarshaller.Instance; return Invoke<DescribeScalingPlanResourcesResponse>(request, options); } /// <summary> /// Initiates the asynchronous execution of the DescribeScalingPlanResources operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the DescribeScalingPlanResources operation on AmazonAutoScalingPlansClient.</param> /// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param> /// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property.</param> /// /// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndDescribeScalingPlanResources /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-plans-2018-01-06/DescribeScalingPlanResources">REST API Reference for DescribeScalingPlanResources Operation</seealso> public virtual IAsyncResult BeginDescribeScalingPlanResources(DescribeScalingPlanResourcesRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = DescribeScalingPlanResourcesRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribeScalingPlanResourcesResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// <summary> /// Finishes the asynchronous execution of the DescribeScalingPlanResources operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginDescribeScalingPlanResources.</param> /// /// <returns>Returns a DescribeScalingPlanResourcesResult from AutoScalingPlans.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-plans-2018-01-06/DescribeScalingPlanResources">REST API Reference for DescribeScalingPlanResources Operation</seealso> public virtual DescribeScalingPlanResourcesResponse EndDescribeScalingPlanResources(IAsyncResult asyncResult) { return EndInvoke<DescribeScalingPlanResourcesResponse>(asyncResult); } #endregion #region DescribeScalingPlans /// <summary> /// Describes one or more of your scaling plans. /// </summary> /// <param name="request">Container for the necessary parameters to execute the DescribeScalingPlans service method.</param> /// /// <returns>The response from the DescribeScalingPlans service method, as returned by AutoScalingPlans.</returns> /// <exception cref="Amazon.AutoScalingPlans.Model.ConcurrentUpdateException"> /// Concurrent updates caused an exception, for example, if you request an update to a /// scaling plan that already has a pending update. /// </exception> /// <exception cref="Amazon.AutoScalingPlans.Model.InternalServiceException"> /// The service encountered an internal error. /// </exception> /// <exception cref="Amazon.AutoScalingPlans.Model.InvalidNextTokenException"> /// The token provided is not valid. /// </exception> /// <exception cref="Amazon.AutoScalingPlans.Model.ValidationException"> /// An exception was thrown for a validation issue. Review the parameters provided. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-plans-2018-01-06/DescribeScalingPlans">REST API Reference for DescribeScalingPlans Operation</seealso> public virtual DescribeScalingPlansResponse DescribeScalingPlans(DescribeScalingPlansRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DescribeScalingPlansRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribeScalingPlansResponseUnmarshaller.Instance; return Invoke<DescribeScalingPlansResponse>(request, options); } /// <summary> /// Initiates the asynchronous execution of the DescribeScalingPlans operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the DescribeScalingPlans operation on AmazonAutoScalingPlansClient.</param> /// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param> /// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property.</param> /// /// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndDescribeScalingPlans /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-plans-2018-01-06/DescribeScalingPlans">REST API Reference for DescribeScalingPlans Operation</seealso> public virtual IAsyncResult BeginDescribeScalingPlans(DescribeScalingPlansRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = DescribeScalingPlansRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribeScalingPlansResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// <summary> /// Finishes the asynchronous execution of the DescribeScalingPlans operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginDescribeScalingPlans.</param> /// /// <returns>Returns a DescribeScalingPlansResult from AutoScalingPlans.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-plans-2018-01-06/DescribeScalingPlans">REST API Reference for DescribeScalingPlans Operation</seealso> public virtual DescribeScalingPlansResponse EndDescribeScalingPlans(IAsyncResult asyncResult) { return EndInvoke<DescribeScalingPlansResponse>(asyncResult); } #endregion #region GetScalingPlanResourceForecastData /// <summary> /// Retrieves the forecast data for a scalable resource. /// /// /// <para> /// Capacity forecasts are represented as predicted values, or data points, that are calculated /// using historical data points from a specified CloudWatch load metric. Data points /// are available for up to 56 days. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the GetScalingPlanResourceForecastData service method.</param> /// /// <returns>The response from the GetScalingPlanResourceForecastData service method, as returned by AutoScalingPlans.</returns> /// <exception cref="Amazon.AutoScalingPlans.Model.InternalServiceException"> /// The service encountered an internal error. /// </exception> /// <exception cref="Amazon.AutoScalingPlans.Model.ValidationException"> /// An exception was thrown for a validation issue. Review the parameters provided. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-plans-2018-01-06/GetScalingPlanResourceForecastData">REST API Reference for GetScalingPlanResourceForecastData Operation</seealso> public virtual GetScalingPlanResourceForecastDataResponse GetScalingPlanResourceForecastData(GetScalingPlanResourceForecastDataRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = GetScalingPlanResourceForecastDataRequestMarshaller.Instance; options.ResponseUnmarshaller = GetScalingPlanResourceForecastDataResponseUnmarshaller.Instance; return Invoke<GetScalingPlanResourceForecastDataResponse>(request, options); } /// <summary> /// Initiates the asynchronous execution of the GetScalingPlanResourceForecastData operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the GetScalingPlanResourceForecastData operation on AmazonAutoScalingPlansClient.</param> /// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param> /// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property.</param> /// /// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndGetScalingPlanResourceForecastData /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-plans-2018-01-06/GetScalingPlanResourceForecastData">REST API Reference for GetScalingPlanResourceForecastData Operation</seealso> public virtual IAsyncResult BeginGetScalingPlanResourceForecastData(GetScalingPlanResourceForecastDataRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = GetScalingPlanResourceForecastDataRequestMarshaller.Instance; options.ResponseUnmarshaller = GetScalingPlanResourceForecastDataResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// <summary> /// Finishes the asynchronous execution of the GetScalingPlanResourceForecastData operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginGetScalingPlanResourceForecastData.</param> /// /// <returns>Returns a GetScalingPlanResourceForecastDataResult from AutoScalingPlans.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-plans-2018-01-06/GetScalingPlanResourceForecastData">REST API Reference for GetScalingPlanResourceForecastData Operation</seealso> public virtual GetScalingPlanResourceForecastDataResponse EndGetScalingPlanResourceForecastData(IAsyncResult asyncResult) { return EndInvoke<GetScalingPlanResourceForecastDataResponse>(asyncResult); } #endregion #region UpdateScalingPlan /// <summary> /// Updates the specified scaling plan. /// /// /// <para> /// You cannot update a scaling plan if it is in the process of being created, updated, /// or deleted. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the UpdateScalingPlan service method.</param> /// /// <returns>The response from the UpdateScalingPlan service method, as returned by AutoScalingPlans.</returns> /// <exception cref="Amazon.AutoScalingPlans.Model.ConcurrentUpdateException"> /// Concurrent updates caused an exception, for example, if you request an update to a /// scaling plan that already has a pending update. /// </exception> /// <exception cref="Amazon.AutoScalingPlans.Model.InternalServiceException"> /// The service encountered an internal error. /// </exception> /// <exception cref="Amazon.AutoScalingPlans.Model.ObjectNotFoundException"> /// The specified object could not be found. /// </exception> /// <exception cref="Amazon.AutoScalingPlans.Model.ValidationException"> /// An exception was thrown for a validation issue. Review the parameters provided. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-plans-2018-01-06/UpdateScalingPlan">REST API Reference for UpdateScalingPlan Operation</seealso> public virtual UpdateScalingPlanResponse UpdateScalingPlan(UpdateScalingPlanRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = UpdateScalingPlanRequestMarshaller.Instance; options.ResponseUnmarshaller = UpdateScalingPlanResponseUnmarshaller.Instance; return Invoke<UpdateScalingPlanResponse>(request, options); } /// <summary> /// Initiates the asynchronous execution of the UpdateScalingPlan operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the UpdateScalingPlan operation on AmazonAutoScalingPlansClient.</param> /// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param> /// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property.</param> /// /// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndUpdateScalingPlan /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-plans-2018-01-06/UpdateScalingPlan">REST API Reference for UpdateScalingPlan Operation</seealso> public virtual IAsyncResult BeginUpdateScalingPlan(UpdateScalingPlanRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = UpdateScalingPlanRequestMarshaller.Instance; options.ResponseUnmarshaller = UpdateScalingPlanResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// <summary> /// Finishes the asynchronous execution of the UpdateScalingPlan operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginUpdateScalingPlan.</param> /// /// <returns>Returns a UpdateScalingPlanResult from AutoScalingPlans.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-plans-2018-01-06/UpdateScalingPlan">REST API Reference for UpdateScalingPlan Operation</seealso> public virtual UpdateScalingPlanResponse EndUpdateScalingPlan(IAsyncResult asyncResult) { return EndInvoke<UpdateScalingPlanResponse>(asyncResult); } #endregion } }
714
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-plans-2018-01-06.normal.json service model. */ using System; using System.Collections.Generic; using Amazon.Runtime; using Amazon.AutoScalingPlans.Model; namespace Amazon.AutoScalingPlans { /// <summary> /// Interface for accessing AutoScalingPlans /// /// AWS Auto Scaling /// <para> /// Use AWS Auto Scaling to create scaling plans for your applications to automatically /// scale your scalable AWS resources. /// </para> /// /// <para> /// <b>API Summary</b> /// </para> /// /// <para> /// You can use the AWS Auto Scaling service API to accomplish the following tasks: /// </para> /// <ul> <li> /// <para> /// Create and manage scaling plans /// </para> /// </li> <li> /// <para> /// Define target tracking scaling policies to dynamically scale your resources based /// on utilization /// </para> /// </li> <li> /// <para> /// Scale Amazon EC2 Auto Scaling groups using predictive scaling and dynamic scaling /// to scale your Amazon EC2 capacity faster /// </para> /// </li> <li> /// <para> /// Set minimum and maximum capacity limits /// </para> /// </li> <li> /// <para> /// Retrieve information on existing scaling plans /// </para> /// </li> <li> /// <para> /// Access current forecast data and historical forecast data for up to 56 days previous /// </para> /// </li> </ul> /// <para> /// To learn more about AWS Auto Scaling, including information about granting IAM users /// required permissions for AWS Auto Scaling actions, see the <a href="https://docs.aws.amazon.com/autoscaling/plans/userguide/what-is-aws-auto-scaling.html">AWS /// Auto Scaling User Guide</a>. /// </para> /// </summary> public partial interface IAmazonAutoScalingPlans : IAmazonService, IDisposable { #region CreateScalingPlan /// <summary> /// Creates a scaling plan. /// </summary> /// <param name="request">Container for the necessary parameters to execute the CreateScalingPlan service method.</param> /// /// <returns>The response from the CreateScalingPlan service method, as returned by AutoScalingPlans.</returns> /// <exception cref="Amazon.AutoScalingPlans.Model.ConcurrentUpdateException"> /// Concurrent updates caused an exception, for example, if you request an update to a /// scaling plan that already has a pending update. /// </exception> /// <exception cref="Amazon.AutoScalingPlans.Model.InternalServiceException"> /// The service encountered an internal error. /// </exception> /// <exception cref="Amazon.AutoScalingPlans.Model.LimitExceededException"> /// Your account exceeded a limit. This exception is thrown when a per-account resource /// limit is exceeded. /// </exception> /// <exception cref="Amazon.AutoScalingPlans.Model.ValidationException"> /// An exception was thrown for a validation issue. Review the parameters provided. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-plans-2018-01-06/CreateScalingPlan">REST API Reference for CreateScalingPlan Operation</seealso> CreateScalingPlanResponse CreateScalingPlan(CreateScalingPlanRequest request); /// <summary> /// Initiates the asynchronous execution of the CreateScalingPlan operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the CreateScalingPlan operation on AmazonAutoScalingPlansClient.</param> /// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param> /// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property.</param> /// /// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndCreateScalingPlan /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-plans-2018-01-06/CreateScalingPlan">REST API Reference for CreateScalingPlan Operation</seealso> IAsyncResult BeginCreateScalingPlan(CreateScalingPlanRequest request, AsyncCallback callback, object state); /// <summary> /// Finishes the asynchronous execution of the CreateScalingPlan operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginCreateScalingPlan.</param> /// /// <returns>Returns a CreateScalingPlanResult from AutoScalingPlans.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-plans-2018-01-06/CreateScalingPlan">REST API Reference for CreateScalingPlan Operation</seealso> CreateScalingPlanResponse EndCreateScalingPlan(IAsyncResult asyncResult); #endregion #region DeleteScalingPlan /// <summary> /// Deletes the specified scaling plan. /// /// /// <para> /// Deleting a scaling plan deletes the underlying <a>ScalingInstruction</a> for all of /// the scalable resources that are covered by the plan. /// </para> /// /// <para> /// If the plan has launched resources or has scaling activities in progress, you must /// delete those resources separately. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the DeleteScalingPlan service method.</param> /// /// <returns>The response from the DeleteScalingPlan service method, as returned by AutoScalingPlans.</returns> /// <exception cref="Amazon.AutoScalingPlans.Model.ConcurrentUpdateException"> /// Concurrent updates caused an exception, for example, if you request an update to a /// scaling plan that already has a pending update. /// </exception> /// <exception cref="Amazon.AutoScalingPlans.Model.InternalServiceException"> /// The service encountered an internal error. /// </exception> /// <exception cref="Amazon.AutoScalingPlans.Model.ObjectNotFoundException"> /// The specified object could not be found. /// </exception> /// <exception cref="Amazon.AutoScalingPlans.Model.ValidationException"> /// An exception was thrown for a validation issue. Review the parameters provided. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-plans-2018-01-06/DeleteScalingPlan">REST API Reference for DeleteScalingPlan Operation</seealso> DeleteScalingPlanResponse DeleteScalingPlan(DeleteScalingPlanRequest request); /// <summary> /// Initiates the asynchronous execution of the DeleteScalingPlan operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the DeleteScalingPlan operation on AmazonAutoScalingPlansClient.</param> /// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param> /// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property.</param> /// /// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndDeleteScalingPlan /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-plans-2018-01-06/DeleteScalingPlan">REST API Reference for DeleteScalingPlan Operation</seealso> IAsyncResult BeginDeleteScalingPlan(DeleteScalingPlanRequest request, AsyncCallback callback, object state); /// <summary> /// Finishes the asynchronous execution of the DeleteScalingPlan operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginDeleteScalingPlan.</param> /// /// <returns>Returns a DeleteScalingPlanResult from AutoScalingPlans.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-plans-2018-01-06/DeleteScalingPlan">REST API Reference for DeleteScalingPlan Operation</seealso> DeleteScalingPlanResponse EndDeleteScalingPlan(IAsyncResult asyncResult); #endregion #region DescribeScalingPlanResources /// <summary> /// Describes the scalable resources in the specified scaling plan. /// </summary> /// <param name="request">Container for the necessary parameters to execute the DescribeScalingPlanResources service method.</param> /// /// <returns>The response from the DescribeScalingPlanResources service method, as returned by AutoScalingPlans.</returns> /// <exception cref="Amazon.AutoScalingPlans.Model.ConcurrentUpdateException"> /// Concurrent updates caused an exception, for example, if you request an update to a /// scaling plan that already has a pending update. /// </exception> /// <exception cref="Amazon.AutoScalingPlans.Model.InternalServiceException"> /// The service encountered an internal error. /// </exception> /// <exception cref="Amazon.AutoScalingPlans.Model.InvalidNextTokenException"> /// The token provided is not valid. /// </exception> /// <exception cref="Amazon.AutoScalingPlans.Model.ValidationException"> /// An exception was thrown for a validation issue. Review the parameters provided. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-plans-2018-01-06/DescribeScalingPlanResources">REST API Reference for DescribeScalingPlanResources Operation</seealso> DescribeScalingPlanResourcesResponse DescribeScalingPlanResources(DescribeScalingPlanResourcesRequest request); /// <summary> /// Initiates the asynchronous execution of the DescribeScalingPlanResources operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the DescribeScalingPlanResources operation on AmazonAutoScalingPlansClient.</param> /// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param> /// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property.</param> /// /// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndDescribeScalingPlanResources /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-plans-2018-01-06/DescribeScalingPlanResources">REST API Reference for DescribeScalingPlanResources Operation</seealso> IAsyncResult BeginDescribeScalingPlanResources(DescribeScalingPlanResourcesRequest request, AsyncCallback callback, object state); /// <summary> /// Finishes the asynchronous execution of the DescribeScalingPlanResources operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginDescribeScalingPlanResources.</param> /// /// <returns>Returns a DescribeScalingPlanResourcesResult from AutoScalingPlans.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-plans-2018-01-06/DescribeScalingPlanResources">REST API Reference for DescribeScalingPlanResources Operation</seealso> DescribeScalingPlanResourcesResponse EndDescribeScalingPlanResources(IAsyncResult asyncResult); #endregion #region DescribeScalingPlans /// <summary> /// Describes one or more of your scaling plans. /// </summary> /// <param name="request">Container for the necessary parameters to execute the DescribeScalingPlans service method.</param> /// /// <returns>The response from the DescribeScalingPlans service method, as returned by AutoScalingPlans.</returns> /// <exception cref="Amazon.AutoScalingPlans.Model.ConcurrentUpdateException"> /// Concurrent updates caused an exception, for example, if you request an update to a /// scaling plan that already has a pending update. /// </exception> /// <exception cref="Amazon.AutoScalingPlans.Model.InternalServiceException"> /// The service encountered an internal error. /// </exception> /// <exception cref="Amazon.AutoScalingPlans.Model.InvalidNextTokenException"> /// The token provided is not valid. /// </exception> /// <exception cref="Amazon.AutoScalingPlans.Model.ValidationException"> /// An exception was thrown for a validation issue. Review the parameters provided. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-plans-2018-01-06/DescribeScalingPlans">REST API Reference for DescribeScalingPlans Operation</seealso> DescribeScalingPlansResponse DescribeScalingPlans(DescribeScalingPlansRequest request); /// <summary> /// Initiates the asynchronous execution of the DescribeScalingPlans operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the DescribeScalingPlans operation on AmazonAutoScalingPlansClient.</param> /// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param> /// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property.</param> /// /// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndDescribeScalingPlans /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-plans-2018-01-06/DescribeScalingPlans">REST API Reference for DescribeScalingPlans Operation</seealso> IAsyncResult BeginDescribeScalingPlans(DescribeScalingPlansRequest request, AsyncCallback callback, object state); /// <summary> /// Finishes the asynchronous execution of the DescribeScalingPlans operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginDescribeScalingPlans.</param> /// /// <returns>Returns a DescribeScalingPlansResult from AutoScalingPlans.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-plans-2018-01-06/DescribeScalingPlans">REST API Reference for DescribeScalingPlans Operation</seealso> DescribeScalingPlansResponse EndDescribeScalingPlans(IAsyncResult asyncResult); #endregion #region GetScalingPlanResourceForecastData /// <summary> /// Retrieves the forecast data for a scalable resource. /// /// /// <para> /// Capacity forecasts are represented as predicted values, or data points, that are calculated /// using historical data points from a specified CloudWatch load metric. Data points /// are available for up to 56 days. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the GetScalingPlanResourceForecastData service method.</param> /// /// <returns>The response from the GetScalingPlanResourceForecastData service method, as returned by AutoScalingPlans.</returns> /// <exception cref="Amazon.AutoScalingPlans.Model.InternalServiceException"> /// The service encountered an internal error. /// </exception> /// <exception cref="Amazon.AutoScalingPlans.Model.ValidationException"> /// An exception was thrown for a validation issue. Review the parameters provided. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-plans-2018-01-06/GetScalingPlanResourceForecastData">REST API Reference for GetScalingPlanResourceForecastData Operation</seealso> GetScalingPlanResourceForecastDataResponse GetScalingPlanResourceForecastData(GetScalingPlanResourceForecastDataRequest request); /// <summary> /// Initiates the asynchronous execution of the GetScalingPlanResourceForecastData operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the GetScalingPlanResourceForecastData operation on AmazonAutoScalingPlansClient.</param> /// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param> /// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property.</param> /// /// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndGetScalingPlanResourceForecastData /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-plans-2018-01-06/GetScalingPlanResourceForecastData">REST API Reference for GetScalingPlanResourceForecastData Operation</seealso> IAsyncResult BeginGetScalingPlanResourceForecastData(GetScalingPlanResourceForecastDataRequest request, AsyncCallback callback, object state); /// <summary> /// Finishes the asynchronous execution of the GetScalingPlanResourceForecastData operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginGetScalingPlanResourceForecastData.</param> /// /// <returns>Returns a GetScalingPlanResourceForecastDataResult from AutoScalingPlans.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-plans-2018-01-06/GetScalingPlanResourceForecastData">REST API Reference for GetScalingPlanResourceForecastData Operation</seealso> GetScalingPlanResourceForecastDataResponse EndGetScalingPlanResourceForecastData(IAsyncResult asyncResult); #endregion #region UpdateScalingPlan /// <summary> /// Updates the specified scaling plan. /// /// /// <para> /// You cannot update a scaling plan if it is in the process of being created, updated, /// or deleted. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the UpdateScalingPlan service method.</param> /// /// <returns>The response from the UpdateScalingPlan service method, as returned by AutoScalingPlans.</returns> /// <exception cref="Amazon.AutoScalingPlans.Model.ConcurrentUpdateException"> /// Concurrent updates caused an exception, for example, if you request an update to a /// scaling plan that already has a pending update. /// </exception> /// <exception cref="Amazon.AutoScalingPlans.Model.InternalServiceException"> /// The service encountered an internal error. /// </exception> /// <exception cref="Amazon.AutoScalingPlans.Model.ObjectNotFoundException"> /// The specified object could not be found. /// </exception> /// <exception cref="Amazon.AutoScalingPlans.Model.ValidationException"> /// An exception was thrown for a validation issue. Review the parameters provided. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-plans-2018-01-06/UpdateScalingPlan">REST API Reference for UpdateScalingPlan Operation</seealso> UpdateScalingPlanResponse UpdateScalingPlan(UpdateScalingPlanRequest request); /// <summary> /// Initiates the asynchronous execution of the UpdateScalingPlan operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the UpdateScalingPlan operation on AmazonAutoScalingPlansClient.</param> /// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param> /// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property.</param> /// /// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndUpdateScalingPlan /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-plans-2018-01-06/UpdateScalingPlan">REST API Reference for UpdateScalingPlan Operation</seealso> IAsyncResult BeginUpdateScalingPlan(UpdateScalingPlanRequest request, AsyncCallback callback, object state); /// <summary> /// Finishes the asynchronous execution of the UpdateScalingPlan operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginUpdateScalingPlan.</param> /// /// <returns>Returns a UpdateScalingPlanResult from AutoScalingPlans.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-plans-2018-01-06/UpdateScalingPlan">REST API Reference for UpdateScalingPlan Operation</seealso> UpdateScalingPlanResponse EndUpdateScalingPlan(IAsyncResult asyncResult); #endregion } }
422
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-plans-2018-01-06.normal.json service model. */ using System; using System.Runtime.ExceptionServices; using System.Threading; using System.Threading.Tasks; using System.Collections.Generic; using System.Net; using Amazon.AutoScalingPlans.Model; using Amazon.AutoScalingPlans.Model.Internal.MarshallTransformations; using Amazon.AutoScalingPlans.Internal; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Auth; using Amazon.Runtime.Internal.Transform; namespace Amazon.AutoScalingPlans { /// <summary> /// Implementation for accessing AutoScalingPlans /// /// AWS Auto Scaling /// <para> /// Use AWS Auto Scaling to create scaling plans for your applications to automatically /// scale your scalable AWS resources. /// </para> /// /// <para> /// <b>API Summary</b> /// </para> /// /// <para> /// You can use the AWS Auto Scaling service API to accomplish the following tasks: /// </para> /// <ul> <li> /// <para> /// Create and manage scaling plans /// </para> /// </li> <li> /// <para> /// Define target tracking scaling policies to dynamically scale your resources based /// on utilization /// </para> /// </li> <li> /// <para> /// Scale Amazon EC2 Auto Scaling groups using predictive scaling and dynamic scaling /// to scale your Amazon EC2 capacity faster /// </para> /// </li> <li> /// <para> /// Set minimum and maximum capacity limits /// </para> /// </li> <li> /// <para> /// Retrieve information on existing scaling plans /// </para> /// </li> <li> /// <para> /// Access current forecast data and historical forecast data for up to 56 days previous /// </para> /// </li> </ul> /// <para> /// To learn more about AWS Auto Scaling, including information about granting IAM users /// required permissions for AWS Auto Scaling actions, see the <a href="https://docs.aws.amazon.com/autoscaling/plans/userguide/what-is-aws-auto-scaling.html">AWS /// Auto Scaling User Guide</a>. /// </para> /// </summary> public partial class AmazonAutoScalingPlansClient : AmazonServiceClient, IAmazonAutoScalingPlans { private static IServiceMetadata serviceMetadata = new AmazonAutoScalingPlansMetadata(); #region Constructors /// <summary> /// Constructs AmazonAutoScalingPlansClient with the credentials loaded from the application's /// default configuration, and if unsuccessful from the Instance Profile service on an EC2 instance. /// /// Example App.config with credentials set. /// <code> /// &lt;?xml version="1.0" encoding="utf-8" ?&gt; /// &lt;configuration&gt; /// &lt;appSettings&gt; /// &lt;add key="AWSProfileName" value="AWS Default"/&gt; /// &lt;/appSettings&gt; /// &lt;/configuration&gt; /// </code> /// /// </summary> public AmazonAutoScalingPlansClient() : base(FallbackCredentialsFactory.GetCredentials(), new AmazonAutoScalingPlansConfig()) { } /// <summary> /// Constructs AmazonAutoScalingPlansClient with the credentials loaded from the application's /// default configuration, and if unsuccessful from the Instance Profile service on an EC2 instance. /// /// Example App.config with credentials set. /// <code> /// &lt;?xml version="1.0" encoding="utf-8" ?&gt; /// &lt;configuration&gt; /// &lt;appSettings&gt; /// &lt;add key="AWSProfileName" value="AWS Default"/&gt; /// &lt;/appSettings&gt; /// &lt;/configuration&gt; /// </code> /// /// </summary> /// <param name="region">The region to connect.</param> public AmazonAutoScalingPlansClient(RegionEndpoint region) : base(FallbackCredentialsFactory.GetCredentials(), new AmazonAutoScalingPlansConfig{RegionEndpoint = region}) { } /// <summary> /// Constructs AmazonAutoScalingPlansClient with the credentials loaded from the application's /// default configuration, and if unsuccessful from the Instance Profile service on an EC2 instance. /// /// Example App.config with credentials set. /// <code> /// &lt;?xml version="1.0" encoding="utf-8" ?&gt; /// &lt;configuration&gt; /// &lt;appSettings&gt; /// &lt;add key="AWSProfileName" value="AWS Default"/&gt; /// &lt;/appSettings&gt; /// &lt;/configuration&gt; /// </code> /// /// </summary> /// <param name="config">The AmazonAutoScalingPlansClient Configuration Object</param> public AmazonAutoScalingPlansClient(AmazonAutoScalingPlansConfig config) : base(FallbackCredentialsFactory.GetCredentials(), config) { } /// <summary> /// Constructs AmazonAutoScalingPlansClient with AWS Credentials /// </summary> /// <param name="credentials">AWS Credentials</param> public AmazonAutoScalingPlansClient(AWSCredentials credentials) : this(credentials, new AmazonAutoScalingPlansConfig()) { } /// <summary> /// Constructs AmazonAutoScalingPlansClient with AWS Credentials /// </summary> /// <param name="credentials">AWS Credentials</param> /// <param name="region">The region to connect.</param> public AmazonAutoScalingPlansClient(AWSCredentials credentials, RegionEndpoint region) : this(credentials, new AmazonAutoScalingPlansConfig{RegionEndpoint = region}) { } /// <summary> /// Constructs AmazonAutoScalingPlansClient with AWS Credentials and an /// AmazonAutoScalingPlansClient Configuration object. /// </summary> /// <param name="credentials">AWS Credentials</param> /// <param name="clientConfig">The AmazonAutoScalingPlansClient Configuration Object</param> public AmazonAutoScalingPlansClient(AWSCredentials credentials, AmazonAutoScalingPlansConfig clientConfig) : base(credentials, clientConfig) { } /// <summary> /// Constructs AmazonAutoScalingPlansClient with AWS Access Key ID and AWS Secret Key /// </summary> /// <param name="awsAccessKeyId">AWS Access Key ID</param> /// <param name="awsSecretAccessKey">AWS Secret Access Key</param> public AmazonAutoScalingPlansClient(string awsAccessKeyId, string awsSecretAccessKey) : this(awsAccessKeyId, awsSecretAccessKey, new AmazonAutoScalingPlansConfig()) { } /// <summary> /// Constructs AmazonAutoScalingPlansClient with AWS Access Key ID and AWS Secret Key /// </summary> /// <param name="awsAccessKeyId">AWS Access Key ID</param> /// <param name="awsSecretAccessKey">AWS Secret Access Key</param> /// <param name="region">The region to connect.</param> public AmazonAutoScalingPlansClient(string awsAccessKeyId, string awsSecretAccessKey, RegionEndpoint region) : this(awsAccessKeyId, awsSecretAccessKey, new AmazonAutoScalingPlansConfig() {RegionEndpoint=region}) { } /// <summary> /// Constructs AmazonAutoScalingPlansClient with AWS Access Key ID, AWS Secret Key and an /// AmazonAutoScalingPlansClient Configuration object. /// </summary> /// <param name="awsAccessKeyId">AWS Access Key ID</param> /// <param name="awsSecretAccessKey">AWS Secret Access Key</param> /// <param name="clientConfig">The AmazonAutoScalingPlansClient Configuration Object</param> public AmazonAutoScalingPlansClient(string awsAccessKeyId, string awsSecretAccessKey, AmazonAutoScalingPlansConfig clientConfig) : base(awsAccessKeyId, awsSecretAccessKey, clientConfig) { } /// <summary> /// Constructs AmazonAutoScalingPlansClient with AWS Access Key ID and AWS Secret Key /// </summary> /// <param name="awsAccessKeyId">AWS Access Key ID</param> /// <param name="awsSecretAccessKey">AWS Secret Access Key</param> /// <param name="awsSessionToken">AWS Session Token</param> public AmazonAutoScalingPlansClient(string awsAccessKeyId, string awsSecretAccessKey, string awsSessionToken) : this(awsAccessKeyId, awsSecretAccessKey, awsSessionToken, new AmazonAutoScalingPlansConfig()) { } /// <summary> /// Constructs AmazonAutoScalingPlansClient with AWS Access Key ID and AWS Secret Key /// </summary> /// <param name="awsAccessKeyId">AWS Access Key ID</param> /// <param name="awsSecretAccessKey">AWS Secret Access Key</param> /// <param name="awsSessionToken">AWS Session Token</param> /// <param name="region">The region to connect.</param> public AmazonAutoScalingPlansClient(string awsAccessKeyId, string awsSecretAccessKey, string awsSessionToken, RegionEndpoint region) : this(awsAccessKeyId, awsSecretAccessKey, awsSessionToken, new AmazonAutoScalingPlansConfig{RegionEndpoint = region}) { } /// <summary> /// Constructs AmazonAutoScalingPlansClient with AWS Access Key ID, AWS Secret Key and an /// AmazonAutoScalingPlansClient Configuration object. /// </summary> /// <param name="awsAccessKeyId">AWS Access Key ID</param> /// <param name="awsSecretAccessKey">AWS Secret Access Key</param> /// <param name="awsSessionToken">AWS Session Token</param> /// <param name="clientConfig">The AmazonAutoScalingPlansClient Configuration Object</param> public AmazonAutoScalingPlansClient(string awsAccessKeyId, string awsSecretAccessKey, string awsSessionToken, AmazonAutoScalingPlansConfig clientConfig) : base(awsAccessKeyId, awsSecretAccessKey, awsSessionToken, clientConfig) { } #endregion #region Overrides /// <summary> /// Creates the signer for the service. /// </summary> protected override AbstractAWSSigner CreateSigner() { return new AWS4Signer(); } /// <summary> /// Customize the pipeline /// </summary> /// <param name="pipeline"></param> protected override void CustomizeRuntimePipeline(RuntimePipeline pipeline) { pipeline.RemoveHandler<Amazon.Runtime.Internal.EndpointResolver>(); pipeline.AddHandlerAfter<Amazon.Runtime.Internal.Marshaller>(new AmazonAutoScalingPlansEndpointResolver()); } /// <summary> /// Capture metadata for the service. /// </summary> protected override IServiceMetadata ServiceMetadata { get { return serviceMetadata; } } #endregion #region Dispose /// <summary> /// Disposes the service client. /// </summary> protected override void Dispose(bool disposing) { base.Dispose(disposing); } #endregion #region CreateScalingPlan /// <summary> /// Creates a scaling plan. /// </summary> /// <param name="request">Container for the necessary parameters to execute the CreateScalingPlan service method.</param> /// /// <returns>The response from the CreateScalingPlan service method, as returned by AutoScalingPlans.</returns> /// <exception cref="Amazon.AutoScalingPlans.Model.ConcurrentUpdateException"> /// Concurrent updates caused an exception, for example, if you request an update to a /// scaling plan that already has a pending update. /// </exception> /// <exception cref="Amazon.AutoScalingPlans.Model.InternalServiceException"> /// The service encountered an internal error. /// </exception> /// <exception cref="Amazon.AutoScalingPlans.Model.LimitExceededException"> /// Your account exceeded a limit. This exception is thrown when a per-account resource /// limit is exceeded. /// </exception> /// <exception cref="Amazon.AutoScalingPlans.Model.ValidationException"> /// An exception was thrown for a validation issue. Review the parameters provided. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-plans-2018-01-06/CreateScalingPlan">REST API Reference for CreateScalingPlan Operation</seealso> public virtual CreateScalingPlanResponse CreateScalingPlan(CreateScalingPlanRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = CreateScalingPlanRequestMarshaller.Instance; options.ResponseUnmarshaller = CreateScalingPlanResponseUnmarshaller.Instance; return Invoke<CreateScalingPlanResponse>(request, options); } /// <summary> /// Creates a scaling plan. /// </summary> /// <param name="request">Container for the necessary parameters to execute the CreateScalingPlan service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the CreateScalingPlan service method, as returned by AutoScalingPlans.</returns> /// <exception cref="Amazon.AutoScalingPlans.Model.ConcurrentUpdateException"> /// Concurrent updates caused an exception, for example, if you request an update to a /// scaling plan that already has a pending update. /// </exception> /// <exception cref="Amazon.AutoScalingPlans.Model.InternalServiceException"> /// The service encountered an internal error. /// </exception> /// <exception cref="Amazon.AutoScalingPlans.Model.LimitExceededException"> /// Your account exceeded a limit. This exception is thrown when a per-account resource /// limit is exceeded. /// </exception> /// <exception cref="Amazon.AutoScalingPlans.Model.ValidationException"> /// An exception was thrown for a validation issue. Review the parameters provided. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-plans-2018-01-06/CreateScalingPlan">REST API Reference for CreateScalingPlan Operation</seealso> public virtual Task<CreateScalingPlanResponse> CreateScalingPlanAsync(CreateScalingPlanRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = CreateScalingPlanRequestMarshaller.Instance; options.ResponseUnmarshaller = CreateScalingPlanResponseUnmarshaller.Instance; return InvokeAsync<CreateScalingPlanResponse>(request, options, cancellationToken); } #endregion #region DeleteScalingPlan /// <summary> /// Deletes the specified scaling plan. /// /// /// <para> /// Deleting a scaling plan deletes the underlying <a>ScalingInstruction</a> for all of /// the scalable resources that are covered by the plan. /// </para> /// /// <para> /// If the plan has launched resources or has scaling activities in progress, you must /// delete those resources separately. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the DeleteScalingPlan service method.</param> /// /// <returns>The response from the DeleteScalingPlan service method, as returned by AutoScalingPlans.</returns> /// <exception cref="Amazon.AutoScalingPlans.Model.ConcurrentUpdateException"> /// Concurrent updates caused an exception, for example, if you request an update to a /// scaling plan that already has a pending update. /// </exception> /// <exception cref="Amazon.AutoScalingPlans.Model.InternalServiceException"> /// The service encountered an internal error. /// </exception> /// <exception cref="Amazon.AutoScalingPlans.Model.ObjectNotFoundException"> /// The specified object could not be found. /// </exception> /// <exception cref="Amazon.AutoScalingPlans.Model.ValidationException"> /// An exception was thrown for a validation issue. Review the parameters provided. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-plans-2018-01-06/DeleteScalingPlan">REST API Reference for DeleteScalingPlan Operation</seealso> public virtual DeleteScalingPlanResponse DeleteScalingPlan(DeleteScalingPlanRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DeleteScalingPlanRequestMarshaller.Instance; options.ResponseUnmarshaller = DeleteScalingPlanResponseUnmarshaller.Instance; return Invoke<DeleteScalingPlanResponse>(request, options); } /// <summary> /// Deletes the specified scaling plan. /// /// /// <para> /// Deleting a scaling plan deletes the underlying <a>ScalingInstruction</a> for all of /// the scalable resources that are covered by the plan. /// </para> /// /// <para> /// If the plan has launched resources or has scaling activities in progress, you must /// delete those resources separately. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the DeleteScalingPlan service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the DeleteScalingPlan service method, as returned by AutoScalingPlans.</returns> /// <exception cref="Amazon.AutoScalingPlans.Model.ConcurrentUpdateException"> /// Concurrent updates caused an exception, for example, if you request an update to a /// scaling plan that already has a pending update. /// </exception> /// <exception cref="Amazon.AutoScalingPlans.Model.InternalServiceException"> /// The service encountered an internal error. /// </exception> /// <exception cref="Amazon.AutoScalingPlans.Model.ObjectNotFoundException"> /// The specified object could not be found. /// </exception> /// <exception cref="Amazon.AutoScalingPlans.Model.ValidationException"> /// An exception was thrown for a validation issue. Review the parameters provided. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-plans-2018-01-06/DeleteScalingPlan">REST API Reference for DeleteScalingPlan Operation</seealso> public virtual Task<DeleteScalingPlanResponse> DeleteScalingPlanAsync(DeleteScalingPlanRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = DeleteScalingPlanRequestMarshaller.Instance; options.ResponseUnmarshaller = DeleteScalingPlanResponseUnmarshaller.Instance; return InvokeAsync<DeleteScalingPlanResponse>(request, options, cancellationToken); } #endregion #region DescribeScalingPlanResources /// <summary> /// Describes the scalable resources in the specified scaling plan. /// </summary> /// <param name="request">Container for the necessary parameters to execute the DescribeScalingPlanResources service method.</param> /// /// <returns>The response from the DescribeScalingPlanResources service method, as returned by AutoScalingPlans.</returns> /// <exception cref="Amazon.AutoScalingPlans.Model.ConcurrentUpdateException"> /// Concurrent updates caused an exception, for example, if you request an update to a /// scaling plan that already has a pending update. /// </exception> /// <exception cref="Amazon.AutoScalingPlans.Model.InternalServiceException"> /// The service encountered an internal error. /// </exception> /// <exception cref="Amazon.AutoScalingPlans.Model.InvalidNextTokenException"> /// The token provided is not valid. /// </exception> /// <exception cref="Amazon.AutoScalingPlans.Model.ValidationException"> /// An exception was thrown for a validation issue. Review the parameters provided. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-plans-2018-01-06/DescribeScalingPlanResources">REST API Reference for DescribeScalingPlanResources Operation</seealso> public virtual DescribeScalingPlanResourcesResponse DescribeScalingPlanResources(DescribeScalingPlanResourcesRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DescribeScalingPlanResourcesRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribeScalingPlanResourcesResponseUnmarshaller.Instance; return Invoke<DescribeScalingPlanResourcesResponse>(request, options); } /// <summary> /// Describes the scalable resources in the specified scaling plan. /// </summary> /// <param name="request">Container for the necessary parameters to execute the DescribeScalingPlanResources service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the DescribeScalingPlanResources service method, as returned by AutoScalingPlans.</returns> /// <exception cref="Amazon.AutoScalingPlans.Model.ConcurrentUpdateException"> /// Concurrent updates caused an exception, for example, if you request an update to a /// scaling plan that already has a pending update. /// </exception> /// <exception cref="Amazon.AutoScalingPlans.Model.InternalServiceException"> /// The service encountered an internal error. /// </exception> /// <exception cref="Amazon.AutoScalingPlans.Model.InvalidNextTokenException"> /// The token provided is not valid. /// </exception> /// <exception cref="Amazon.AutoScalingPlans.Model.ValidationException"> /// An exception was thrown for a validation issue. Review the parameters provided. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-plans-2018-01-06/DescribeScalingPlanResources">REST API Reference for DescribeScalingPlanResources Operation</seealso> public virtual Task<DescribeScalingPlanResourcesResponse> DescribeScalingPlanResourcesAsync(DescribeScalingPlanResourcesRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = DescribeScalingPlanResourcesRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribeScalingPlanResourcesResponseUnmarshaller.Instance; return InvokeAsync<DescribeScalingPlanResourcesResponse>(request, options, cancellationToken); } #endregion #region DescribeScalingPlans /// <summary> /// Describes one or more of your scaling plans. /// </summary> /// <param name="request">Container for the necessary parameters to execute the DescribeScalingPlans service method.</param> /// /// <returns>The response from the DescribeScalingPlans service method, as returned by AutoScalingPlans.</returns> /// <exception cref="Amazon.AutoScalingPlans.Model.ConcurrentUpdateException"> /// Concurrent updates caused an exception, for example, if you request an update to a /// scaling plan that already has a pending update. /// </exception> /// <exception cref="Amazon.AutoScalingPlans.Model.InternalServiceException"> /// The service encountered an internal error. /// </exception> /// <exception cref="Amazon.AutoScalingPlans.Model.InvalidNextTokenException"> /// The token provided is not valid. /// </exception> /// <exception cref="Amazon.AutoScalingPlans.Model.ValidationException"> /// An exception was thrown for a validation issue. Review the parameters provided. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-plans-2018-01-06/DescribeScalingPlans">REST API Reference for DescribeScalingPlans Operation</seealso> public virtual DescribeScalingPlansResponse DescribeScalingPlans(DescribeScalingPlansRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DescribeScalingPlansRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribeScalingPlansResponseUnmarshaller.Instance; return Invoke<DescribeScalingPlansResponse>(request, options); } /// <summary> /// Describes one or more of your scaling plans. /// </summary> /// <param name="request">Container for the necessary parameters to execute the DescribeScalingPlans service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the DescribeScalingPlans service method, as returned by AutoScalingPlans.</returns> /// <exception cref="Amazon.AutoScalingPlans.Model.ConcurrentUpdateException"> /// Concurrent updates caused an exception, for example, if you request an update to a /// scaling plan that already has a pending update. /// </exception> /// <exception cref="Amazon.AutoScalingPlans.Model.InternalServiceException"> /// The service encountered an internal error. /// </exception> /// <exception cref="Amazon.AutoScalingPlans.Model.InvalidNextTokenException"> /// The token provided is not valid. /// </exception> /// <exception cref="Amazon.AutoScalingPlans.Model.ValidationException"> /// An exception was thrown for a validation issue. Review the parameters provided. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-plans-2018-01-06/DescribeScalingPlans">REST API Reference for DescribeScalingPlans Operation</seealso> public virtual Task<DescribeScalingPlansResponse> DescribeScalingPlansAsync(DescribeScalingPlansRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = DescribeScalingPlansRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribeScalingPlansResponseUnmarshaller.Instance; return InvokeAsync<DescribeScalingPlansResponse>(request, options, cancellationToken); } #endregion #region GetScalingPlanResourceForecastData /// <summary> /// Retrieves the forecast data for a scalable resource. /// /// /// <para> /// Capacity forecasts are represented as predicted values, or data points, that are calculated /// using historical data points from a specified CloudWatch load metric. Data points /// are available for up to 56 days. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the GetScalingPlanResourceForecastData service method.</param> /// /// <returns>The response from the GetScalingPlanResourceForecastData service method, as returned by AutoScalingPlans.</returns> /// <exception cref="Amazon.AutoScalingPlans.Model.InternalServiceException"> /// The service encountered an internal error. /// </exception> /// <exception cref="Amazon.AutoScalingPlans.Model.ValidationException"> /// An exception was thrown for a validation issue. Review the parameters provided. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-plans-2018-01-06/GetScalingPlanResourceForecastData">REST API Reference for GetScalingPlanResourceForecastData Operation</seealso> public virtual GetScalingPlanResourceForecastDataResponse GetScalingPlanResourceForecastData(GetScalingPlanResourceForecastDataRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = GetScalingPlanResourceForecastDataRequestMarshaller.Instance; options.ResponseUnmarshaller = GetScalingPlanResourceForecastDataResponseUnmarshaller.Instance; return Invoke<GetScalingPlanResourceForecastDataResponse>(request, options); } /// <summary> /// Retrieves the forecast data for a scalable resource. /// /// /// <para> /// Capacity forecasts are represented as predicted values, or data points, that are calculated /// using historical data points from a specified CloudWatch load metric. Data points /// are available for up to 56 days. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the GetScalingPlanResourceForecastData service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the GetScalingPlanResourceForecastData service method, as returned by AutoScalingPlans.</returns> /// <exception cref="Amazon.AutoScalingPlans.Model.InternalServiceException"> /// The service encountered an internal error. /// </exception> /// <exception cref="Amazon.AutoScalingPlans.Model.ValidationException"> /// An exception was thrown for a validation issue. Review the parameters provided. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-plans-2018-01-06/GetScalingPlanResourceForecastData">REST API Reference for GetScalingPlanResourceForecastData Operation</seealso> public virtual Task<GetScalingPlanResourceForecastDataResponse> GetScalingPlanResourceForecastDataAsync(GetScalingPlanResourceForecastDataRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = GetScalingPlanResourceForecastDataRequestMarshaller.Instance; options.ResponseUnmarshaller = GetScalingPlanResourceForecastDataResponseUnmarshaller.Instance; return InvokeAsync<GetScalingPlanResourceForecastDataResponse>(request, options, cancellationToken); } #endregion #region UpdateScalingPlan /// <summary> /// Updates the specified scaling plan. /// /// /// <para> /// You cannot update a scaling plan if it is in the process of being created, updated, /// or deleted. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the UpdateScalingPlan service method.</param> /// /// <returns>The response from the UpdateScalingPlan service method, as returned by AutoScalingPlans.</returns> /// <exception cref="Amazon.AutoScalingPlans.Model.ConcurrentUpdateException"> /// Concurrent updates caused an exception, for example, if you request an update to a /// scaling plan that already has a pending update. /// </exception> /// <exception cref="Amazon.AutoScalingPlans.Model.InternalServiceException"> /// The service encountered an internal error. /// </exception> /// <exception cref="Amazon.AutoScalingPlans.Model.ObjectNotFoundException"> /// The specified object could not be found. /// </exception> /// <exception cref="Amazon.AutoScalingPlans.Model.ValidationException"> /// An exception was thrown for a validation issue. Review the parameters provided. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-plans-2018-01-06/UpdateScalingPlan">REST API Reference for UpdateScalingPlan Operation</seealso> public virtual UpdateScalingPlanResponse UpdateScalingPlan(UpdateScalingPlanRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = UpdateScalingPlanRequestMarshaller.Instance; options.ResponseUnmarshaller = UpdateScalingPlanResponseUnmarshaller.Instance; return Invoke<UpdateScalingPlanResponse>(request, options); } /// <summary> /// Updates the specified scaling plan. /// /// /// <para> /// You cannot update a scaling plan if it is in the process of being created, updated, /// or deleted. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the UpdateScalingPlan service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the UpdateScalingPlan service method, as returned by AutoScalingPlans.</returns> /// <exception cref="Amazon.AutoScalingPlans.Model.ConcurrentUpdateException"> /// Concurrent updates caused an exception, for example, if you request an update to a /// scaling plan that already has a pending update. /// </exception> /// <exception cref="Amazon.AutoScalingPlans.Model.InternalServiceException"> /// The service encountered an internal error. /// </exception> /// <exception cref="Amazon.AutoScalingPlans.Model.ObjectNotFoundException"> /// The specified object could not be found. /// </exception> /// <exception cref="Amazon.AutoScalingPlans.Model.ValidationException"> /// An exception was thrown for a validation issue. Review the parameters provided. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-plans-2018-01-06/UpdateScalingPlan">REST API Reference for UpdateScalingPlan Operation</seealso> public virtual Task<UpdateScalingPlanResponse> UpdateScalingPlanAsync(UpdateScalingPlanRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = UpdateScalingPlanRequestMarshaller.Instance; options.ResponseUnmarshaller = UpdateScalingPlanResponseUnmarshaller.Instance; return InvokeAsync<UpdateScalingPlanResponse>(request, options, cancellationToken); } #endregion } }
733
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-plans-2018-01-06.normal.json service model. */ using System; using System.Threading; using System.Threading.Tasks; using System.Collections.Generic; using Amazon.Runtime; using Amazon.AutoScalingPlans.Model; namespace Amazon.AutoScalingPlans { /// <summary> /// Interface for accessing AutoScalingPlans /// /// AWS Auto Scaling /// <para> /// Use AWS Auto Scaling to create scaling plans for your applications to automatically /// scale your scalable AWS resources. /// </para> /// /// <para> /// <b>API Summary</b> /// </para> /// /// <para> /// You can use the AWS Auto Scaling service API to accomplish the following tasks: /// </para> /// <ul> <li> /// <para> /// Create and manage scaling plans /// </para> /// </li> <li> /// <para> /// Define target tracking scaling policies to dynamically scale your resources based /// on utilization /// </para> /// </li> <li> /// <para> /// Scale Amazon EC2 Auto Scaling groups using predictive scaling and dynamic scaling /// to scale your Amazon EC2 capacity faster /// </para> /// </li> <li> /// <para> /// Set minimum and maximum capacity limits /// </para> /// </li> <li> /// <para> /// Retrieve information on existing scaling plans /// </para> /// </li> <li> /// <para> /// Access current forecast data and historical forecast data for up to 56 days previous /// </para> /// </li> </ul> /// <para> /// To learn more about AWS Auto Scaling, including information about granting IAM users /// required permissions for AWS Auto Scaling actions, see the <a href="https://docs.aws.amazon.com/autoscaling/plans/userguide/what-is-aws-auto-scaling.html">AWS /// Auto Scaling User Guide</a>. /// </para> /// </summary> public partial interface IAmazonAutoScalingPlans : IAmazonService, IDisposable { #region CreateScalingPlan /// <summary> /// Creates a scaling plan. /// </summary> /// <param name="request">Container for the necessary parameters to execute the CreateScalingPlan service method.</param> /// /// <returns>The response from the CreateScalingPlan service method, as returned by AutoScalingPlans.</returns> /// <exception cref="Amazon.AutoScalingPlans.Model.ConcurrentUpdateException"> /// Concurrent updates caused an exception, for example, if you request an update to a /// scaling plan that already has a pending update. /// </exception> /// <exception cref="Amazon.AutoScalingPlans.Model.InternalServiceException"> /// The service encountered an internal error. /// </exception> /// <exception cref="Amazon.AutoScalingPlans.Model.LimitExceededException"> /// Your account exceeded a limit. This exception is thrown when a per-account resource /// limit is exceeded. /// </exception> /// <exception cref="Amazon.AutoScalingPlans.Model.ValidationException"> /// An exception was thrown for a validation issue. Review the parameters provided. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-plans-2018-01-06/CreateScalingPlan">REST API Reference for CreateScalingPlan Operation</seealso> CreateScalingPlanResponse CreateScalingPlan(CreateScalingPlanRequest request); /// <summary> /// Creates a scaling plan. /// </summary> /// <param name="request">Container for the necessary parameters to execute the CreateScalingPlan service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the CreateScalingPlan service method, as returned by AutoScalingPlans.</returns> /// <exception cref="Amazon.AutoScalingPlans.Model.ConcurrentUpdateException"> /// Concurrent updates caused an exception, for example, if you request an update to a /// scaling plan that already has a pending update. /// </exception> /// <exception cref="Amazon.AutoScalingPlans.Model.InternalServiceException"> /// The service encountered an internal error. /// </exception> /// <exception cref="Amazon.AutoScalingPlans.Model.LimitExceededException"> /// Your account exceeded a limit. This exception is thrown when a per-account resource /// limit is exceeded. /// </exception> /// <exception cref="Amazon.AutoScalingPlans.Model.ValidationException"> /// An exception was thrown for a validation issue. Review the parameters provided. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-plans-2018-01-06/CreateScalingPlan">REST API Reference for CreateScalingPlan Operation</seealso> Task<CreateScalingPlanResponse> CreateScalingPlanAsync(CreateScalingPlanRequest request, CancellationToken cancellationToken = default(CancellationToken)); #endregion #region DeleteScalingPlan /// <summary> /// Deletes the specified scaling plan. /// /// /// <para> /// Deleting a scaling plan deletes the underlying <a>ScalingInstruction</a> for all of /// the scalable resources that are covered by the plan. /// </para> /// /// <para> /// If the plan has launched resources or has scaling activities in progress, you must /// delete those resources separately. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the DeleteScalingPlan service method.</param> /// /// <returns>The response from the DeleteScalingPlan service method, as returned by AutoScalingPlans.</returns> /// <exception cref="Amazon.AutoScalingPlans.Model.ConcurrentUpdateException"> /// Concurrent updates caused an exception, for example, if you request an update to a /// scaling plan that already has a pending update. /// </exception> /// <exception cref="Amazon.AutoScalingPlans.Model.InternalServiceException"> /// The service encountered an internal error. /// </exception> /// <exception cref="Amazon.AutoScalingPlans.Model.ObjectNotFoundException"> /// The specified object could not be found. /// </exception> /// <exception cref="Amazon.AutoScalingPlans.Model.ValidationException"> /// An exception was thrown for a validation issue. Review the parameters provided. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-plans-2018-01-06/DeleteScalingPlan">REST API Reference for DeleteScalingPlan Operation</seealso> DeleteScalingPlanResponse DeleteScalingPlan(DeleteScalingPlanRequest request); /// <summary> /// Deletes the specified scaling plan. /// /// /// <para> /// Deleting a scaling plan deletes the underlying <a>ScalingInstruction</a> for all of /// the scalable resources that are covered by the plan. /// </para> /// /// <para> /// If the plan has launched resources or has scaling activities in progress, you must /// delete those resources separately. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the DeleteScalingPlan service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the DeleteScalingPlan service method, as returned by AutoScalingPlans.</returns> /// <exception cref="Amazon.AutoScalingPlans.Model.ConcurrentUpdateException"> /// Concurrent updates caused an exception, for example, if you request an update to a /// scaling plan that already has a pending update. /// </exception> /// <exception cref="Amazon.AutoScalingPlans.Model.InternalServiceException"> /// The service encountered an internal error. /// </exception> /// <exception cref="Amazon.AutoScalingPlans.Model.ObjectNotFoundException"> /// The specified object could not be found. /// </exception> /// <exception cref="Amazon.AutoScalingPlans.Model.ValidationException"> /// An exception was thrown for a validation issue. Review the parameters provided. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-plans-2018-01-06/DeleteScalingPlan">REST API Reference for DeleteScalingPlan Operation</seealso> Task<DeleteScalingPlanResponse> DeleteScalingPlanAsync(DeleteScalingPlanRequest request, CancellationToken cancellationToken = default(CancellationToken)); #endregion #region DescribeScalingPlanResources /// <summary> /// Describes the scalable resources in the specified scaling plan. /// </summary> /// <param name="request">Container for the necessary parameters to execute the DescribeScalingPlanResources service method.</param> /// /// <returns>The response from the DescribeScalingPlanResources service method, as returned by AutoScalingPlans.</returns> /// <exception cref="Amazon.AutoScalingPlans.Model.ConcurrentUpdateException"> /// Concurrent updates caused an exception, for example, if you request an update to a /// scaling plan that already has a pending update. /// </exception> /// <exception cref="Amazon.AutoScalingPlans.Model.InternalServiceException"> /// The service encountered an internal error. /// </exception> /// <exception cref="Amazon.AutoScalingPlans.Model.InvalidNextTokenException"> /// The token provided is not valid. /// </exception> /// <exception cref="Amazon.AutoScalingPlans.Model.ValidationException"> /// An exception was thrown for a validation issue. Review the parameters provided. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-plans-2018-01-06/DescribeScalingPlanResources">REST API Reference for DescribeScalingPlanResources Operation</seealso> DescribeScalingPlanResourcesResponse DescribeScalingPlanResources(DescribeScalingPlanResourcesRequest request); /// <summary> /// Describes the scalable resources in the specified scaling plan. /// </summary> /// <param name="request">Container for the necessary parameters to execute the DescribeScalingPlanResources service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the DescribeScalingPlanResources service method, as returned by AutoScalingPlans.</returns> /// <exception cref="Amazon.AutoScalingPlans.Model.ConcurrentUpdateException"> /// Concurrent updates caused an exception, for example, if you request an update to a /// scaling plan that already has a pending update. /// </exception> /// <exception cref="Amazon.AutoScalingPlans.Model.InternalServiceException"> /// The service encountered an internal error. /// </exception> /// <exception cref="Amazon.AutoScalingPlans.Model.InvalidNextTokenException"> /// The token provided is not valid. /// </exception> /// <exception cref="Amazon.AutoScalingPlans.Model.ValidationException"> /// An exception was thrown for a validation issue. Review the parameters provided. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-plans-2018-01-06/DescribeScalingPlanResources">REST API Reference for DescribeScalingPlanResources Operation</seealso> Task<DescribeScalingPlanResourcesResponse> DescribeScalingPlanResourcesAsync(DescribeScalingPlanResourcesRequest request, CancellationToken cancellationToken = default(CancellationToken)); #endregion #region DescribeScalingPlans /// <summary> /// Describes one or more of your scaling plans. /// </summary> /// <param name="request">Container for the necessary parameters to execute the DescribeScalingPlans service method.</param> /// /// <returns>The response from the DescribeScalingPlans service method, as returned by AutoScalingPlans.</returns> /// <exception cref="Amazon.AutoScalingPlans.Model.ConcurrentUpdateException"> /// Concurrent updates caused an exception, for example, if you request an update to a /// scaling plan that already has a pending update. /// </exception> /// <exception cref="Amazon.AutoScalingPlans.Model.InternalServiceException"> /// The service encountered an internal error. /// </exception> /// <exception cref="Amazon.AutoScalingPlans.Model.InvalidNextTokenException"> /// The token provided is not valid. /// </exception> /// <exception cref="Amazon.AutoScalingPlans.Model.ValidationException"> /// An exception was thrown for a validation issue. Review the parameters provided. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-plans-2018-01-06/DescribeScalingPlans">REST API Reference for DescribeScalingPlans Operation</seealso> DescribeScalingPlansResponse DescribeScalingPlans(DescribeScalingPlansRequest request); /// <summary> /// Describes one or more of your scaling plans. /// </summary> /// <param name="request">Container for the necessary parameters to execute the DescribeScalingPlans service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the DescribeScalingPlans service method, as returned by AutoScalingPlans.</returns> /// <exception cref="Amazon.AutoScalingPlans.Model.ConcurrentUpdateException"> /// Concurrent updates caused an exception, for example, if you request an update to a /// scaling plan that already has a pending update. /// </exception> /// <exception cref="Amazon.AutoScalingPlans.Model.InternalServiceException"> /// The service encountered an internal error. /// </exception> /// <exception cref="Amazon.AutoScalingPlans.Model.InvalidNextTokenException"> /// The token provided is not valid. /// </exception> /// <exception cref="Amazon.AutoScalingPlans.Model.ValidationException"> /// An exception was thrown for a validation issue. Review the parameters provided. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-plans-2018-01-06/DescribeScalingPlans">REST API Reference for DescribeScalingPlans Operation</seealso> Task<DescribeScalingPlansResponse> DescribeScalingPlansAsync(DescribeScalingPlansRequest request, CancellationToken cancellationToken = default(CancellationToken)); #endregion #region GetScalingPlanResourceForecastData /// <summary> /// Retrieves the forecast data for a scalable resource. /// /// /// <para> /// Capacity forecasts are represented as predicted values, or data points, that are calculated /// using historical data points from a specified CloudWatch load metric. Data points /// are available for up to 56 days. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the GetScalingPlanResourceForecastData service method.</param> /// /// <returns>The response from the GetScalingPlanResourceForecastData service method, as returned by AutoScalingPlans.</returns> /// <exception cref="Amazon.AutoScalingPlans.Model.InternalServiceException"> /// The service encountered an internal error. /// </exception> /// <exception cref="Amazon.AutoScalingPlans.Model.ValidationException"> /// An exception was thrown for a validation issue. Review the parameters provided. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-plans-2018-01-06/GetScalingPlanResourceForecastData">REST API Reference for GetScalingPlanResourceForecastData Operation</seealso> GetScalingPlanResourceForecastDataResponse GetScalingPlanResourceForecastData(GetScalingPlanResourceForecastDataRequest request); /// <summary> /// Retrieves the forecast data for a scalable resource. /// /// /// <para> /// Capacity forecasts are represented as predicted values, or data points, that are calculated /// using historical data points from a specified CloudWatch load metric. Data points /// are available for up to 56 days. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the GetScalingPlanResourceForecastData service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the GetScalingPlanResourceForecastData service method, as returned by AutoScalingPlans.</returns> /// <exception cref="Amazon.AutoScalingPlans.Model.InternalServiceException"> /// The service encountered an internal error. /// </exception> /// <exception cref="Amazon.AutoScalingPlans.Model.ValidationException"> /// An exception was thrown for a validation issue. Review the parameters provided. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-plans-2018-01-06/GetScalingPlanResourceForecastData">REST API Reference for GetScalingPlanResourceForecastData Operation</seealso> Task<GetScalingPlanResourceForecastDataResponse> GetScalingPlanResourceForecastDataAsync(GetScalingPlanResourceForecastDataRequest request, CancellationToken cancellationToken = default(CancellationToken)); #endregion #region UpdateScalingPlan /// <summary> /// Updates the specified scaling plan. /// /// /// <para> /// You cannot update a scaling plan if it is in the process of being created, updated, /// or deleted. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the UpdateScalingPlan service method.</param> /// /// <returns>The response from the UpdateScalingPlan service method, as returned by AutoScalingPlans.</returns> /// <exception cref="Amazon.AutoScalingPlans.Model.ConcurrentUpdateException"> /// Concurrent updates caused an exception, for example, if you request an update to a /// scaling plan that already has a pending update. /// </exception> /// <exception cref="Amazon.AutoScalingPlans.Model.InternalServiceException"> /// The service encountered an internal error. /// </exception> /// <exception cref="Amazon.AutoScalingPlans.Model.ObjectNotFoundException"> /// The specified object could not be found. /// </exception> /// <exception cref="Amazon.AutoScalingPlans.Model.ValidationException"> /// An exception was thrown for a validation issue. Review the parameters provided. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-plans-2018-01-06/UpdateScalingPlan">REST API Reference for UpdateScalingPlan Operation</seealso> UpdateScalingPlanResponse UpdateScalingPlan(UpdateScalingPlanRequest request); /// <summary> /// Updates the specified scaling plan. /// /// /// <para> /// You cannot update a scaling plan if it is in the process of being created, updated, /// or deleted. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the UpdateScalingPlan service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the UpdateScalingPlan service method, as returned by AutoScalingPlans.</returns> /// <exception cref="Amazon.AutoScalingPlans.Model.ConcurrentUpdateException"> /// Concurrent updates caused an exception, for example, if you request an update to a /// scaling plan that already has a pending update. /// </exception> /// <exception cref="Amazon.AutoScalingPlans.Model.InternalServiceException"> /// The service encountered an internal error. /// </exception> /// <exception cref="Amazon.AutoScalingPlans.Model.ObjectNotFoundException"> /// The specified object could not be found. /// </exception> /// <exception cref="Amazon.AutoScalingPlans.Model.ValidationException"> /// An exception was thrown for a validation issue. Review the parameters provided. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-plans-2018-01-06/UpdateScalingPlan">REST API Reference for UpdateScalingPlan Operation</seealso> Task<UpdateScalingPlanResponse> UpdateScalingPlanAsync(UpdateScalingPlanRequest request, CancellationToken cancellationToken = default(CancellationToken)); #endregion } }
446
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-plans-2018-01-06.normal.json service model. */ using System; using System.Runtime.ExceptionServices; using System.Threading; using System.Threading.Tasks; using System.Collections.Generic; using System.Net; using Amazon.AutoScalingPlans.Model; using Amazon.AutoScalingPlans.Model.Internal.MarshallTransformations; using Amazon.AutoScalingPlans.Internal; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Auth; using Amazon.Runtime.Internal.Transform; namespace Amazon.AutoScalingPlans { /// <summary> /// Implementation for accessing AutoScalingPlans /// /// AWS Auto Scaling /// <para> /// Use AWS Auto Scaling to create scaling plans for your applications to automatically /// scale your scalable AWS resources. /// </para> /// /// <para> /// <b>API Summary</b> /// </para> /// /// <para> /// You can use the AWS Auto Scaling service API to accomplish the following tasks: /// </para> /// <ul> <li> /// <para> /// Create and manage scaling plans /// </para> /// </li> <li> /// <para> /// Define target tracking scaling policies to dynamically scale your resources based /// on utilization /// </para> /// </li> <li> /// <para> /// Scale Amazon EC2 Auto Scaling groups using predictive scaling and dynamic scaling /// to scale your Amazon EC2 capacity faster /// </para> /// </li> <li> /// <para> /// Set minimum and maximum capacity limits /// </para> /// </li> <li> /// <para> /// Retrieve information on existing scaling plans /// </para> /// </li> <li> /// <para> /// Access current forecast data and historical forecast data for up to 56 days previous /// </para> /// </li> </ul> /// <para> /// To learn more about AWS Auto Scaling, including information about granting IAM users /// required permissions for AWS Auto Scaling actions, see the <a href="https://docs.aws.amazon.com/autoscaling/plans/userguide/what-is-aws-auto-scaling.html">AWS /// Auto Scaling User Guide</a>. /// </para> /// </summary> public partial class AmazonAutoScalingPlansClient : AmazonServiceClient, IAmazonAutoScalingPlans { private static IServiceMetadata serviceMetadata = new AmazonAutoScalingPlansMetadata(); #region Constructors /// <summary> /// Constructs AmazonAutoScalingPlansClient with the credentials loaded from the application's /// default configuration, and if unsuccessful from the Instance Profile service on an EC2 instance. /// /// Example App.config with credentials set. /// <code> /// &lt;?xml version="1.0" encoding="utf-8" ?&gt; /// &lt;configuration&gt; /// &lt;appSettings&gt; /// &lt;add key="AWSProfileName" value="AWS Default"/&gt; /// &lt;/appSettings&gt; /// &lt;/configuration&gt; /// </code> /// /// </summary> public AmazonAutoScalingPlansClient() : base(FallbackCredentialsFactory.GetCredentials(), new AmazonAutoScalingPlansConfig()) { } /// <summary> /// Constructs AmazonAutoScalingPlansClient with the credentials loaded from the application's /// default configuration, and if unsuccessful from the Instance Profile service on an EC2 instance. /// /// Example App.config with credentials set. /// <code> /// &lt;?xml version="1.0" encoding="utf-8" ?&gt; /// &lt;configuration&gt; /// &lt;appSettings&gt; /// &lt;add key="AWSProfileName" value="AWS Default"/&gt; /// &lt;/appSettings&gt; /// &lt;/configuration&gt; /// </code> /// /// </summary> /// <param name="region">The region to connect.</param> public AmazonAutoScalingPlansClient(RegionEndpoint region) : base(FallbackCredentialsFactory.GetCredentials(), new AmazonAutoScalingPlansConfig{RegionEndpoint = region}) { } /// <summary> /// Constructs AmazonAutoScalingPlansClient with the credentials loaded from the application's /// default configuration, and if unsuccessful from the Instance Profile service on an EC2 instance. /// /// Example App.config with credentials set. /// <code> /// &lt;?xml version="1.0" encoding="utf-8" ?&gt; /// &lt;configuration&gt; /// &lt;appSettings&gt; /// &lt;add key="AWSProfileName" value="AWS Default"/&gt; /// &lt;/appSettings&gt; /// &lt;/configuration&gt; /// </code> /// /// </summary> /// <param name="config">The AmazonAutoScalingPlansClient Configuration Object</param> public AmazonAutoScalingPlansClient(AmazonAutoScalingPlansConfig config) : base(FallbackCredentialsFactory.GetCredentials(), config) { } /// <summary> /// Constructs AmazonAutoScalingPlansClient with AWS Credentials /// </summary> /// <param name="credentials">AWS Credentials</param> public AmazonAutoScalingPlansClient(AWSCredentials credentials) : this(credentials, new AmazonAutoScalingPlansConfig()) { } /// <summary> /// Constructs AmazonAutoScalingPlansClient with AWS Credentials /// </summary> /// <param name="credentials">AWS Credentials</param> /// <param name="region">The region to connect.</param> public AmazonAutoScalingPlansClient(AWSCredentials credentials, RegionEndpoint region) : this(credentials, new AmazonAutoScalingPlansConfig{RegionEndpoint = region}) { } /// <summary> /// Constructs AmazonAutoScalingPlansClient with AWS Credentials and an /// AmazonAutoScalingPlansClient Configuration object. /// </summary> /// <param name="credentials">AWS Credentials</param> /// <param name="clientConfig">The AmazonAutoScalingPlansClient Configuration Object</param> public AmazonAutoScalingPlansClient(AWSCredentials credentials, AmazonAutoScalingPlansConfig clientConfig) : base(credentials, clientConfig) { } /// <summary> /// Constructs AmazonAutoScalingPlansClient with AWS Access Key ID and AWS Secret Key /// </summary> /// <param name="awsAccessKeyId">AWS Access Key ID</param> /// <param name="awsSecretAccessKey">AWS Secret Access Key</param> public AmazonAutoScalingPlansClient(string awsAccessKeyId, string awsSecretAccessKey) : this(awsAccessKeyId, awsSecretAccessKey, new AmazonAutoScalingPlansConfig()) { } /// <summary> /// Constructs AmazonAutoScalingPlansClient with AWS Access Key ID and AWS Secret Key /// </summary> /// <param name="awsAccessKeyId">AWS Access Key ID</param> /// <param name="awsSecretAccessKey">AWS Secret Access Key</param> /// <param name="region">The region to connect.</param> public AmazonAutoScalingPlansClient(string awsAccessKeyId, string awsSecretAccessKey, RegionEndpoint region) : this(awsAccessKeyId, awsSecretAccessKey, new AmazonAutoScalingPlansConfig() {RegionEndpoint=region}) { } /// <summary> /// Constructs AmazonAutoScalingPlansClient with AWS Access Key ID, AWS Secret Key and an /// AmazonAutoScalingPlansClient Configuration object. /// </summary> /// <param name="awsAccessKeyId">AWS Access Key ID</param> /// <param name="awsSecretAccessKey">AWS Secret Access Key</param> /// <param name="clientConfig">The AmazonAutoScalingPlansClient Configuration Object</param> public AmazonAutoScalingPlansClient(string awsAccessKeyId, string awsSecretAccessKey, AmazonAutoScalingPlansConfig clientConfig) : base(awsAccessKeyId, awsSecretAccessKey, clientConfig) { } /// <summary> /// Constructs AmazonAutoScalingPlansClient with AWS Access Key ID and AWS Secret Key /// </summary> /// <param name="awsAccessKeyId">AWS Access Key ID</param> /// <param name="awsSecretAccessKey">AWS Secret Access Key</param> /// <param name="awsSessionToken">AWS Session Token</param> public AmazonAutoScalingPlansClient(string awsAccessKeyId, string awsSecretAccessKey, string awsSessionToken) : this(awsAccessKeyId, awsSecretAccessKey, awsSessionToken, new AmazonAutoScalingPlansConfig()) { } /// <summary> /// Constructs AmazonAutoScalingPlansClient with AWS Access Key ID and AWS Secret Key /// </summary> /// <param name="awsAccessKeyId">AWS Access Key ID</param> /// <param name="awsSecretAccessKey">AWS Secret Access Key</param> /// <param name="awsSessionToken">AWS Session Token</param> /// <param name="region">The region to connect.</param> public AmazonAutoScalingPlansClient(string awsAccessKeyId, string awsSecretAccessKey, string awsSessionToken, RegionEndpoint region) : this(awsAccessKeyId, awsSecretAccessKey, awsSessionToken, new AmazonAutoScalingPlansConfig{RegionEndpoint = region}) { } /// <summary> /// Constructs AmazonAutoScalingPlansClient with AWS Access Key ID, AWS Secret Key and an /// AmazonAutoScalingPlansClient Configuration object. /// </summary> /// <param name="awsAccessKeyId">AWS Access Key ID</param> /// <param name="awsSecretAccessKey">AWS Secret Access Key</param> /// <param name="awsSessionToken">AWS Session Token</param> /// <param name="clientConfig">The AmazonAutoScalingPlansClient Configuration Object</param> public AmazonAutoScalingPlansClient(string awsAccessKeyId, string awsSecretAccessKey, string awsSessionToken, AmazonAutoScalingPlansConfig clientConfig) : base(awsAccessKeyId, awsSecretAccessKey, awsSessionToken, clientConfig) { } #endregion #region Overrides /// <summary> /// Creates the signer for the service. /// </summary> protected override AbstractAWSSigner CreateSigner() { return new AWS4Signer(); } /// <summary> /// Customizes the runtime pipeline. /// </summary> /// <param name="pipeline">Runtime pipeline for the current client.</param> protected override void CustomizeRuntimePipeline(RuntimePipeline pipeline) { pipeline.RemoveHandler<Amazon.Runtime.Internal.EndpointResolver>(); pipeline.AddHandlerAfter<Amazon.Runtime.Internal.Marshaller>(new AmazonAutoScalingPlansEndpointResolver()); } /// <summary> /// Capture metadata for the service. /// </summary> protected override IServiceMetadata ServiceMetadata { get { return serviceMetadata; } } #endregion #region Dispose /// <summary> /// Disposes the service client. /// </summary> protected override void Dispose(bool disposing) { base.Dispose(disposing); } #endregion #region CreateScalingPlan internal virtual CreateScalingPlanResponse CreateScalingPlan(CreateScalingPlanRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = CreateScalingPlanRequestMarshaller.Instance; options.ResponseUnmarshaller = CreateScalingPlanResponseUnmarshaller.Instance; return Invoke<CreateScalingPlanResponse>(request, options); } /// <summary> /// Creates a scaling plan. /// </summary> /// <param name="request">Container for the necessary parameters to execute the CreateScalingPlan service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the CreateScalingPlan service method, as returned by AutoScalingPlans.</returns> /// <exception cref="Amazon.AutoScalingPlans.Model.ConcurrentUpdateException"> /// Concurrent updates caused an exception, for example, if you request an update to a /// scaling plan that already has a pending update. /// </exception> /// <exception cref="Amazon.AutoScalingPlans.Model.InternalServiceException"> /// The service encountered an internal error. /// </exception> /// <exception cref="Amazon.AutoScalingPlans.Model.LimitExceededException"> /// Your account exceeded a limit. This exception is thrown when a per-account resource /// limit is exceeded. /// </exception> /// <exception cref="Amazon.AutoScalingPlans.Model.ValidationException"> /// An exception was thrown for a validation issue. Review the parameters provided. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-plans-2018-01-06/CreateScalingPlan">REST API Reference for CreateScalingPlan Operation</seealso> public virtual Task<CreateScalingPlanResponse> CreateScalingPlanAsync(CreateScalingPlanRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = CreateScalingPlanRequestMarshaller.Instance; options.ResponseUnmarshaller = CreateScalingPlanResponseUnmarshaller.Instance; return InvokeAsync<CreateScalingPlanResponse>(request, options, cancellationToken); } #endregion #region DeleteScalingPlan internal virtual DeleteScalingPlanResponse DeleteScalingPlan(DeleteScalingPlanRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DeleteScalingPlanRequestMarshaller.Instance; options.ResponseUnmarshaller = DeleteScalingPlanResponseUnmarshaller.Instance; return Invoke<DeleteScalingPlanResponse>(request, options); } /// <summary> /// Deletes the specified scaling plan. /// /// /// <para> /// Deleting a scaling plan deletes the underlying <a>ScalingInstruction</a> for all of /// the scalable resources that are covered by the plan. /// </para> /// /// <para> /// If the plan has launched resources or has scaling activities in progress, you must /// delete those resources separately. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the DeleteScalingPlan service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the DeleteScalingPlan service method, as returned by AutoScalingPlans.</returns> /// <exception cref="Amazon.AutoScalingPlans.Model.ConcurrentUpdateException"> /// Concurrent updates caused an exception, for example, if you request an update to a /// scaling plan that already has a pending update. /// </exception> /// <exception cref="Amazon.AutoScalingPlans.Model.InternalServiceException"> /// The service encountered an internal error. /// </exception> /// <exception cref="Amazon.AutoScalingPlans.Model.ObjectNotFoundException"> /// The specified object could not be found. /// </exception> /// <exception cref="Amazon.AutoScalingPlans.Model.ValidationException"> /// An exception was thrown for a validation issue. Review the parameters provided. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-plans-2018-01-06/DeleteScalingPlan">REST API Reference for DeleteScalingPlan Operation</seealso> public virtual Task<DeleteScalingPlanResponse> DeleteScalingPlanAsync(DeleteScalingPlanRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = DeleteScalingPlanRequestMarshaller.Instance; options.ResponseUnmarshaller = DeleteScalingPlanResponseUnmarshaller.Instance; return InvokeAsync<DeleteScalingPlanResponse>(request, options, cancellationToken); } #endregion #region DescribeScalingPlanResources internal virtual DescribeScalingPlanResourcesResponse DescribeScalingPlanResources(DescribeScalingPlanResourcesRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DescribeScalingPlanResourcesRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribeScalingPlanResourcesResponseUnmarshaller.Instance; return Invoke<DescribeScalingPlanResourcesResponse>(request, options); } /// <summary> /// Describes the scalable resources in the specified scaling plan. /// </summary> /// <param name="request">Container for the necessary parameters to execute the DescribeScalingPlanResources service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the DescribeScalingPlanResources service method, as returned by AutoScalingPlans.</returns> /// <exception cref="Amazon.AutoScalingPlans.Model.ConcurrentUpdateException"> /// Concurrent updates caused an exception, for example, if you request an update to a /// scaling plan that already has a pending update. /// </exception> /// <exception cref="Amazon.AutoScalingPlans.Model.InternalServiceException"> /// The service encountered an internal error. /// </exception> /// <exception cref="Amazon.AutoScalingPlans.Model.InvalidNextTokenException"> /// The token provided is not valid. /// </exception> /// <exception cref="Amazon.AutoScalingPlans.Model.ValidationException"> /// An exception was thrown for a validation issue. Review the parameters provided. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-plans-2018-01-06/DescribeScalingPlanResources">REST API Reference for DescribeScalingPlanResources Operation</seealso> public virtual Task<DescribeScalingPlanResourcesResponse> DescribeScalingPlanResourcesAsync(DescribeScalingPlanResourcesRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = DescribeScalingPlanResourcesRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribeScalingPlanResourcesResponseUnmarshaller.Instance; return InvokeAsync<DescribeScalingPlanResourcesResponse>(request, options, cancellationToken); } #endregion #region DescribeScalingPlans internal virtual DescribeScalingPlansResponse DescribeScalingPlans(DescribeScalingPlansRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DescribeScalingPlansRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribeScalingPlansResponseUnmarshaller.Instance; return Invoke<DescribeScalingPlansResponse>(request, options); } /// <summary> /// Describes one or more of your scaling plans. /// </summary> /// <param name="request">Container for the necessary parameters to execute the DescribeScalingPlans service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the DescribeScalingPlans service method, as returned by AutoScalingPlans.</returns> /// <exception cref="Amazon.AutoScalingPlans.Model.ConcurrentUpdateException"> /// Concurrent updates caused an exception, for example, if you request an update to a /// scaling plan that already has a pending update. /// </exception> /// <exception cref="Amazon.AutoScalingPlans.Model.InternalServiceException"> /// The service encountered an internal error. /// </exception> /// <exception cref="Amazon.AutoScalingPlans.Model.InvalidNextTokenException"> /// The token provided is not valid. /// </exception> /// <exception cref="Amazon.AutoScalingPlans.Model.ValidationException"> /// An exception was thrown for a validation issue. Review the parameters provided. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-plans-2018-01-06/DescribeScalingPlans">REST API Reference for DescribeScalingPlans Operation</seealso> public virtual Task<DescribeScalingPlansResponse> DescribeScalingPlansAsync(DescribeScalingPlansRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = DescribeScalingPlansRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribeScalingPlansResponseUnmarshaller.Instance; return InvokeAsync<DescribeScalingPlansResponse>(request, options, cancellationToken); } #endregion #region GetScalingPlanResourceForecastData internal virtual GetScalingPlanResourceForecastDataResponse GetScalingPlanResourceForecastData(GetScalingPlanResourceForecastDataRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = GetScalingPlanResourceForecastDataRequestMarshaller.Instance; options.ResponseUnmarshaller = GetScalingPlanResourceForecastDataResponseUnmarshaller.Instance; return Invoke<GetScalingPlanResourceForecastDataResponse>(request, options); } /// <summary> /// Retrieves the forecast data for a scalable resource. /// /// /// <para> /// Capacity forecasts are represented as predicted values, or data points, that are calculated /// using historical data points from a specified CloudWatch load metric. Data points /// are available for up to 56 days. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the GetScalingPlanResourceForecastData service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the GetScalingPlanResourceForecastData service method, as returned by AutoScalingPlans.</returns> /// <exception cref="Amazon.AutoScalingPlans.Model.InternalServiceException"> /// The service encountered an internal error. /// </exception> /// <exception cref="Amazon.AutoScalingPlans.Model.ValidationException"> /// An exception was thrown for a validation issue. Review the parameters provided. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-plans-2018-01-06/GetScalingPlanResourceForecastData">REST API Reference for GetScalingPlanResourceForecastData Operation</seealso> public virtual Task<GetScalingPlanResourceForecastDataResponse> GetScalingPlanResourceForecastDataAsync(GetScalingPlanResourceForecastDataRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = GetScalingPlanResourceForecastDataRequestMarshaller.Instance; options.ResponseUnmarshaller = GetScalingPlanResourceForecastDataResponseUnmarshaller.Instance; return InvokeAsync<GetScalingPlanResourceForecastDataResponse>(request, options, cancellationToken); } #endregion #region UpdateScalingPlan internal virtual UpdateScalingPlanResponse UpdateScalingPlan(UpdateScalingPlanRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = UpdateScalingPlanRequestMarshaller.Instance; options.ResponseUnmarshaller = UpdateScalingPlanResponseUnmarshaller.Instance; return Invoke<UpdateScalingPlanResponse>(request, options); } /// <summary> /// Updates the specified scaling plan. /// /// /// <para> /// You cannot update a scaling plan if it is in the process of being created, updated, /// or deleted. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the UpdateScalingPlan service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the UpdateScalingPlan service method, as returned by AutoScalingPlans.</returns> /// <exception cref="Amazon.AutoScalingPlans.Model.ConcurrentUpdateException"> /// Concurrent updates caused an exception, for example, if you request an update to a /// scaling plan that already has a pending update. /// </exception> /// <exception cref="Amazon.AutoScalingPlans.Model.InternalServiceException"> /// The service encountered an internal error. /// </exception> /// <exception cref="Amazon.AutoScalingPlans.Model.ObjectNotFoundException"> /// The specified object could not be found. /// </exception> /// <exception cref="Amazon.AutoScalingPlans.Model.ValidationException"> /// An exception was thrown for a validation issue. Review the parameters provided. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-plans-2018-01-06/UpdateScalingPlan">REST API Reference for UpdateScalingPlan Operation</seealso> public virtual Task<UpdateScalingPlanResponse> UpdateScalingPlanAsync(UpdateScalingPlanRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = UpdateScalingPlanRequestMarshaller.Instance; options.ResponseUnmarshaller = UpdateScalingPlanResponseUnmarshaller.Instance; return InvokeAsync<UpdateScalingPlanResponse>(request, options, cancellationToken); } #endregion } }
597
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-plans-2018-01-06.normal.json service model. */ using System; using System.Threading; using System.Threading.Tasks; using System.Collections.Generic; using Amazon.Runtime; using Amazon.AutoScalingPlans.Model; namespace Amazon.AutoScalingPlans { /// <summary> /// Interface for accessing AutoScalingPlans /// /// AWS Auto Scaling /// <para> /// Use AWS Auto Scaling to create scaling plans for your applications to automatically /// scale your scalable AWS resources. /// </para> /// /// <para> /// <b>API Summary</b> /// </para> /// /// <para> /// You can use the AWS Auto Scaling service API to accomplish the following tasks: /// </para> /// <ul> <li> /// <para> /// Create and manage scaling plans /// </para> /// </li> <li> /// <para> /// Define target tracking scaling policies to dynamically scale your resources based /// on utilization /// </para> /// </li> <li> /// <para> /// Scale Amazon EC2 Auto Scaling groups using predictive scaling and dynamic scaling /// to scale your Amazon EC2 capacity faster /// </para> /// </li> <li> /// <para> /// Set minimum and maximum capacity limits /// </para> /// </li> <li> /// <para> /// Retrieve information on existing scaling plans /// </para> /// </li> <li> /// <para> /// Access current forecast data and historical forecast data for up to 56 days previous /// </para> /// </li> </ul> /// <para> /// To learn more about AWS Auto Scaling, including information about granting IAM users /// required permissions for AWS Auto Scaling actions, see the <a href="https://docs.aws.amazon.com/autoscaling/plans/userguide/what-is-aws-auto-scaling.html">AWS /// Auto Scaling User Guide</a>. /// </para> /// </summary> public partial interface IAmazonAutoScalingPlans : IAmazonService, IDisposable { #region CreateScalingPlan /// <summary> /// Creates a scaling plan. /// </summary> /// <param name="request">Container for the necessary parameters to execute the CreateScalingPlan service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the CreateScalingPlan service method, as returned by AutoScalingPlans.</returns> /// <exception cref="Amazon.AutoScalingPlans.Model.ConcurrentUpdateException"> /// Concurrent updates caused an exception, for example, if you request an update to a /// scaling plan that already has a pending update. /// </exception> /// <exception cref="Amazon.AutoScalingPlans.Model.InternalServiceException"> /// The service encountered an internal error. /// </exception> /// <exception cref="Amazon.AutoScalingPlans.Model.LimitExceededException"> /// Your account exceeded a limit. This exception is thrown when a per-account resource /// limit is exceeded. /// </exception> /// <exception cref="Amazon.AutoScalingPlans.Model.ValidationException"> /// An exception was thrown for a validation issue. Review the parameters provided. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-plans-2018-01-06/CreateScalingPlan">REST API Reference for CreateScalingPlan Operation</seealso> Task<CreateScalingPlanResponse> CreateScalingPlanAsync(CreateScalingPlanRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)); #endregion #region DeleteScalingPlan /// <summary> /// Deletes the specified scaling plan. /// /// /// <para> /// Deleting a scaling plan deletes the underlying <a>ScalingInstruction</a> for all of /// the scalable resources that are covered by the plan. /// </para> /// /// <para> /// If the plan has launched resources or has scaling activities in progress, you must /// delete those resources separately. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the DeleteScalingPlan service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the DeleteScalingPlan service method, as returned by AutoScalingPlans.</returns> /// <exception cref="Amazon.AutoScalingPlans.Model.ConcurrentUpdateException"> /// Concurrent updates caused an exception, for example, if you request an update to a /// scaling plan that already has a pending update. /// </exception> /// <exception cref="Amazon.AutoScalingPlans.Model.InternalServiceException"> /// The service encountered an internal error. /// </exception> /// <exception cref="Amazon.AutoScalingPlans.Model.ObjectNotFoundException"> /// The specified object could not be found. /// </exception> /// <exception cref="Amazon.AutoScalingPlans.Model.ValidationException"> /// An exception was thrown for a validation issue. Review the parameters provided. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-plans-2018-01-06/DeleteScalingPlan">REST API Reference for DeleteScalingPlan Operation</seealso> Task<DeleteScalingPlanResponse> DeleteScalingPlanAsync(DeleteScalingPlanRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)); #endregion #region DescribeScalingPlanResources /// <summary> /// Describes the scalable resources in the specified scaling plan. /// </summary> /// <param name="request">Container for the necessary parameters to execute the DescribeScalingPlanResources service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the DescribeScalingPlanResources service method, as returned by AutoScalingPlans.</returns> /// <exception cref="Amazon.AutoScalingPlans.Model.ConcurrentUpdateException"> /// Concurrent updates caused an exception, for example, if you request an update to a /// scaling plan that already has a pending update. /// </exception> /// <exception cref="Amazon.AutoScalingPlans.Model.InternalServiceException"> /// The service encountered an internal error. /// </exception> /// <exception cref="Amazon.AutoScalingPlans.Model.InvalidNextTokenException"> /// The token provided is not valid. /// </exception> /// <exception cref="Amazon.AutoScalingPlans.Model.ValidationException"> /// An exception was thrown for a validation issue. Review the parameters provided. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-plans-2018-01-06/DescribeScalingPlanResources">REST API Reference for DescribeScalingPlanResources Operation</seealso> Task<DescribeScalingPlanResourcesResponse> DescribeScalingPlanResourcesAsync(DescribeScalingPlanResourcesRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)); #endregion #region DescribeScalingPlans /// <summary> /// Describes one or more of your scaling plans. /// </summary> /// <param name="request">Container for the necessary parameters to execute the DescribeScalingPlans service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the DescribeScalingPlans service method, as returned by AutoScalingPlans.</returns> /// <exception cref="Amazon.AutoScalingPlans.Model.ConcurrentUpdateException"> /// Concurrent updates caused an exception, for example, if you request an update to a /// scaling plan that already has a pending update. /// </exception> /// <exception cref="Amazon.AutoScalingPlans.Model.InternalServiceException"> /// The service encountered an internal error. /// </exception> /// <exception cref="Amazon.AutoScalingPlans.Model.InvalidNextTokenException"> /// The token provided is not valid. /// </exception> /// <exception cref="Amazon.AutoScalingPlans.Model.ValidationException"> /// An exception was thrown for a validation issue. Review the parameters provided. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-plans-2018-01-06/DescribeScalingPlans">REST API Reference for DescribeScalingPlans Operation</seealso> Task<DescribeScalingPlansResponse> DescribeScalingPlansAsync(DescribeScalingPlansRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)); #endregion #region GetScalingPlanResourceForecastData /// <summary> /// Retrieves the forecast data for a scalable resource. /// /// /// <para> /// Capacity forecasts are represented as predicted values, or data points, that are calculated /// using historical data points from a specified CloudWatch load metric. Data points /// are available for up to 56 days. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the GetScalingPlanResourceForecastData service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the GetScalingPlanResourceForecastData service method, as returned by AutoScalingPlans.</returns> /// <exception cref="Amazon.AutoScalingPlans.Model.InternalServiceException"> /// The service encountered an internal error. /// </exception> /// <exception cref="Amazon.AutoScalingPlans.Model.ValidationException"> /// An exception was thrown for a validation issue. Review the parameters provided. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-plans-2018-01-06/GetScalingPlanResourceForecastData">REST API Reference for GetScalingPlanResourceForecastData Operation</seealso> Task<GetScalingPlanResourceForecastDataResponse> GetScalingPlanResourceForecastDataAsync(GetScalingPlanResourceForecastDataRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)); #endregion #region UpdateScalingPlan /// <summary> /// Updates the specified scaling plan. /// /// /// <para> /// You cannot update a scaling plan if it is in the process of being created, updated, /// or deleted. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the UpdateScalingPlan service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the UpdateScalingPlan service method, as returned by AutoScalingPlans.</returns> /// <exception cref="Amazon.AutoScalingPlans.Model.ConcurrentUpdateException"> /// Concurrent updates caused an exception, for example, if you request an update to a /// scaling plan that already has a pending update. /// </exception> /// <exception cref="Amazon.AutoScalingPlans.Model.InternalServiceException"> /// The service encountered an internal error. /// </exception> /// <exception cref="Amazon.AutoScalingPlans.Model.ObjectNotFoundException"> /// The specified object could not be found. /// </exception> /// <exception cref="Amazon.AutoScalingPlans.Model.ValidationException"> /// An exception was thrown for a validation issue. Review the parameters provided. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-plans-2018-01-06/UpdateScalingPlan">REST API Reference for UpdateScalingPlan Operation</seealso> Task<UpdateScalingPlanResponse> UpdateScalingPlanAsync(UpdateScalingPlanRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)); #endregion } }
288
aws-sdk-net
aws
C#
using System; using System.Reflection; using System.Runtime.InteropServices; using System.Runtime.CompilerServices; // General Information about an assembly is controlled through the following // set of attributes. Change these attribute values to modify the information // associated with an assembly. [assembly: AssemblyTitle("AWSSDK.AutoScalingPlans")] #if BCL35 [assembly: AssemblyDescription("The Amazon Web Services SDK for .NET (3.5) - AWS Auto Scaling Plans. AWS Auto Scaling enables you to quickly discover all of the scalable resources underlying your application and set up application scaling in minutes using built-in scaling recommendations.")] #elif BCL45 [assembly: AssemblyDescription("The Amazon Web Services SDK for .NET (4.5) - AWS Auto Scaling Plans. AWS Auto Scaling enables you to quickly discover all of the scalable resources underlying your application and set up application scaling in minutes using built-in scaling recommendations.")] #elif NETSTANDARD20 [assembly: AssemblyDescription("The Amazon Web Services SDK for .NET (NetStandard 2.0) - AWS Auto Scaling Plans. AWS Auto Scaling enables you to quickly discover all of the scalable resources underlying your application and set up application scaling in minutes using built-in scaling recommendations.")] #elif NETCOREAPP3_1 [assembly: AssemblyDescription("The Amazon Web Services SDK for .NET (.NET Core 3.1) - AWS Auto Scaling Plans. AWS Auto Scaling enables you to quickly discover all of the scalable resources underlying your application and set up application scaling in minutes using built-in scaling recommendations.")] #else #error Unknown platform constant - unable to set correct AssemblyDescription #endif [assembly: AssemblyConfiguration("")] [assembly: AssemblyProduct("Amazon Web Services SDK for .NET")] [assembly: AssemblyCompany("Amazon.com, Inc")] [assembly: AssemblyCopyright("Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.")] [assembly: AssemblyTrademark("")] [assembly: AssemblyCulture("")] // Setting ComVisible to false makes the types in this assembly not visible // to COM components. If you need to access a type in this assembly from // COM, set the ComVisible attribute to true on that type. [assembly: ComVisible(false)] // Version information for an assembly consists of the following four values: // // Major Version // Minor Version // Build Number // Revision // // You can specify all the values or you can default the Build and Revision Numbers // by using the '*' as shown below: // [assembly: AssemblyVersion("1.0.*")] [assembly: AssemblyVersion("3.3")] [assembly: AssemblyFileVersion("3.7.100.147")] [assembly: System.CLSCompliant(true)] #if BCL [assembly: System.Security.AllowPartiallyTrustedCallers] #endif
51
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. */ using System.Diagnostics.CodeAnalysis; // Identifier should not match keywords [module: SuppressMessage("Microsoft.Naming", "CA1716:IdentifiersShouldNotMatchKeywords", Scope="type", Target="Amazon.AWSHealth.Model.Event", MessageId="Event")] // Nested generic types [module: SuppressMessage("Microsoft.Design", "CA1006:DoNotNestGenericTypesInMemberSignatures", Scope="member", Target="Amazon.AWSHealth.Model.EventFilter.#Tags")] [module: SuppressMessage("Microsoft.Design", "CA1006:DoNotNestGenericTypesInMemberSignatures", Scope="member", Target="Amazon.AWSHealth.Model.EntityFilter.#Tags")]
24
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 health-2016-08-04.normal.json service model. */ using System; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Util.Internal; using Amazon.AWSHealth.Internal; namespace Amazon.AWSHealth { /// <summary> /// Configuration for accessing Amazon AWSHealth service /// </summary> [AWSSignerType("v4")] public partial class AmazonAWSHealthConfig : ClientConfig { private static readonly string UserAgentString = InternalSDKUtils.BuildUserAgentString("3.7.101.19"); private string _userAgent = UserAgentString; /// <summary> /// Default constructor /// </summary> public AmazonAWSHealthConfig() : base(new Amazon.Runtime.Internal.DefaultConfigurationProvider(AmazonAWSHealthDefaultConfiguration.GetAllConfigurations())) { this.AuthenticationServiceName = "health"; this.EndpointProvider = new AmazonAWSHealthEndpointProvider(); } /// <summary> /// The constant used to lookup in the region hash the endpoint. /// </summary> public override string RegionEndpointServiceName { get { return "health"; } } /// <summary> /// Gets the ServiceVersion property. /// </summary> public override string ServiceVersion { get { return "2016-08-04"; } } /// <summary> /// Gets the value of UserAgent property. /// </summary> public override string UserAgent { get { return _userAgent; } } } }
83
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 health-2016-08-04.normal.json service model. */ using System; using System.Collections.Generic; using System.Collections.ObjectModel; using Amazon.Runtime; namespace Amazon.AWSHealth { /// <summary> /// Configuration for accessing Amazon AWSHealth service /// </summary> public static class AmazonAWSHealthDefaultConfiguration { /// <summary> /// Collection of all <see cref="DefaultConfiguration"/>s supported by /// AWSHealth /// </summary> public static ReadOnlyCollection<IDefaultConfiguration> GetAllConfigurations() { return new ReadOnlyCollection<IDefaultConfiguration>(new List<IDefaultConfiguration> { Standard, InRegion, CrossRegion, Mobile, Auto, Legacy }); } /// <summary> /// <p>The STANDARD mode provides the latest recommended default values that should be safe to run in most scenarios</p><p>Note that the default values vended from this mode might change as best practices may evolve. As a result, it is encouraged to perform tests when upgrading the SDK</p> /// </summary> public static IDefaultConfiguration Standard {get;} = new DefaultConfiguration { Name = DefaultConfigurationMode.Standard, RetryMode = RequestRetryMode.Standard, StsRegionalEndpoints = StsRegionalEndpointsValue.Regional, S3UsEast1RegionalEndpoint = S3UsEast1RegionalEndpointValue.Regional, // 0:00:03.1 ConnectTimeout = TimeSpan.FromMilliseconds(3100L), // 0:00:03.1 TlsNegotiationTimeout = TimeSpan.FromMilliseconds(3100L), TimeToFirstByteTimeout = null, HttpRequestTimeout = null }; /// <summary> /// <p>The IN_REGION mode builds on the standard mode and includes optimization tailored for applications which call AWS services from within the same AWS region</p><p>Note that the default values vended from this mode might change as best practices may evolve. As a result, it is encouraged to perform tests when upgrading the SDK</p> /// </summary> public static IDefaultConfiguration InRegion {get;} = new DefaultConfiguration { Name = DefaultConfigurationMode.InRegion, RetryMode = RequestRetryMode.Standard, StsRegionalEndpoints = StsRegionalEndpointsValue.Regional, S3UsEast1RegionalEndpoint = S3UsEast1RegionalEndpointValue.Regional, // 0:00:01.1 ConnectTimeout = TimeSpan.FromMilliseconds(1100L), // 0:00:01.1 TlsNegotiationTimeout = TimeSpan.FromMilliseconds(1100L), TimeToFirstByteTimeout = null, HttpRequestTimeout = null }; /// <summary> /// <p>The CROSS_REGION mode builds on the standard mode and includes optimization tailored for applications which call AWS services in a different region</p><p>Note that the default values vended from this mode might change as best practices may evolve. As a result, it is encouraged to perform tests when upgrading the SDK</p> /// </summary> public static IDefaultConfiguration CrossRegion {get;} = new DefaultConfiguration { Name = DefaultConfigurationMode.CrossRegion, RetryMode = RequestRetryMode.Standard, StsRegionalEndpoints = StsRegionalEndpointsValue.Regional, S3UsEast1RegionalEndpoint = S3UsEast1RegionalEndpointValue.Regional, // 0:00:03.1 ConnectTimeout = TimeSpan.FromMilliseconds(3100L), // 0:00:03.1 TlsNegotiationTimeout = TimeSpan.FromMilliseconds(3100L), TimeToFirstByteTimeout = null, HttpRequestTimeout = null }; /// <summary> /// <p>The MOBILE mode builds on the standard mode and includes optimization tailored for mobile applications</p><p>Note that the default values vended from this mode might change as best practices may evolve. As a result, it is encouraged to perform tests when upgrading the SDK</p> /// </summary> public static IDefaultConfiguration Mobile {get;} = new DefaultConfiguration { Name = DefaultConfigurationMode.Mobile, RetryMode = RequestRetryMode.Standard, StsRegionalEndpoints = StsRegionalEndpointsValue.Regional, S3UsEast1RegionalEndpoint = S3UsEast1RegionalEndpointValue.Regional, // 0:00:30 ConnectTimeout = TimeSpan.FromMilliseconds(30000L), // 0:00:30 TlsNegotiationTimeout = TimeSpan.FromMilliseconds(30000L), TimeToFirstByteTimeout = null, HttpRequestTimeout = null }; /// <summary> /// <p>The AUTO mode is an experimental mode that builds on the standard mode. The SDK will attempt to discover the execution environment to determine the appropriate settings automatically.</p><p>Note that the auto detection is heuristics-based and does not guarantee 100% accuracy. STANDARD mode will be used if the execution environment cannot be determined. The auto detection might query <a href="https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-instance-metadata.html">EC2 Instance Metadata service</a>, which might introduce latency. Therefore we recommend choosing an explicit defaults_mode instead if startup latency is critical to your application</p> /// </summary> public static IDefaultConfiguration Auto {get;} = new DefaultConfiguration { Name = DefaultConfigurationMode.Auto, RetryMode = RequestRetryMode.Standard, StsRegionalEndpoints = StsRegionalEndpointsValue.Regional, S3UsEast1RegionalEndpoint = S3UsEast1RegionalEndpointValue.Regional, // 0:00:01.1 ConnectTimeout = TimeSpan.FromMilliseconds(1100L), // 0:00:01.1 TlsNegotiationTimeout = TimeSpan.FromMilliseconds(1100L), TimeToFirstByteTimeout = null, HttpRequestTimeout = null }; /// <summary> /// <p>The LEGACY mode provides default settings that vary per SDK and were used prior to establishment of defaults_mode</p> /// </summary> public static IDefaultConfiguration Legacy {get;} = new DefaultConfiguration { Name = DefaultConfigurationMode.Legacy, RetryMode = RequestRetryMode.Legacy, StsRegionalEndpoints = StsRegionalEndpointsValue.Legacy, S3UsEast1RegionalEndpoint = S3UsEast1RegionalEndpointValue.Legacy, ConnectTimeout = null, TlsNegotiationTimeout = null, TimeToFirstByteTimeout = null, HttpRequestTimeout = null }; } }
146