/* * Copyright 2012-2017 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. */ package com.amazonaws.services.autoscaling; import javax.annotation.Generated; import com.amazonaws.*; import com.amazonaws.regions.*; import com.amazonaws.services.autoscaling.model.*; import com.amazonaws.services.autoscaling.waiters.AmazonAutoScalingWaiters; /** * Interface for accessing Auto Scaling. * <p> * <b>Note:</b> Do not directly implement this interface, new methods are added to it regularly. Extend from * {@link com.amazonaws.services.autoscaling.AbstractAmazonAutoScaling} instead. * </p> * <p> * <fullname>Auto Scaling</fullname> * <p> * Auto Scaling is designed to automatically launch or terminate EC2 instances based on user-defined policies, * schedules, and health checks. Use this service in conjunction with the Amazon CloudWatch and Elastic Load Balancing * services. * </p> */ @Generated("com.amazonaws:aws-java-sdk-code-generator") public interface AmazonAutoScaling { /** * The region metadata service name for computing region endpoints. You can use this value to retrieve metadata * (such as supported regions) of the service. * * @see RegionUtils#getRegionsForService(String) */ String ENDPOINT_PREFIX = "autoscaling"; /** * Overrides the default endpoint for this client ("https://autoscaling.amazonaws.com"). Callers can use this method * to control which AWS region they want to work with. * <p> * Callers can pass in just the endpoint (ex: "autoscaling.amazonaws.com") or a full URL, including the protocol * (ex: "https://autoscaling.amazonaws.com"). If the protocol is not specified here, the default protocol from this * client's {@link ClientConfiguration} will be used, which by default is HTTPS. * <p> * For more information on using AWS regions with the AWS SDK for Java, and a complete list of all available * endpoints for all AWS services, see: <a * href="http://developer.amazonwebservices.com/connect/entry.jspa?externalID=3912"> * http://developer.amazonwebservices.com/connect/entry.jspa?externalID=3912</a> * <p> * <b>This method is not threadsafe. An endpoint should be configured when the client is created and before any * service requests are made. Changing it afterwards creates inevitable race conditions for any service requests in * transit or retrying.</b> * * @param endpoint * The endpoint (ex: "autoscaling.amazonaws.com") or a full URL, including the protocol (ex: * "https://autoscaling.amazonaws.com") of the region specific AWS endpoint this client will communicate * with. * @deprecated use {@link AwsClientBuilder#setEndpointConfiguration(AwsClientBuilder.EndpointConfiguration)} for * example: * {@code builder.setEndpointConfiguration(new EndpointConfiguration(endpoint, signingRegion));} */ @Deprecated void setEndpoint(String endpoint); /** * An alternative to {@link AmazonAutoScaling#setEndpoint(String)}, sets the regional endpoint for this client's * service calls. Callers can use this method to control which AWS region they want to work with. * <p> * By default, all service endpoints in all regions use the https protocol. To use http instead, specify it in the * {@link ClientConfiguration} supplied at construction. * <p> * <b>This method is not threadsafe. A region should be configured when the client is created and before any service * requests are made. Changing it afterwards creates inevitable race conditions for any service requests in transit * or retrying.</b> * * @param region * The region this client will communicate with. See {@link Region#getRegion(com.amazonaws.regions.Regions)} * for accessing a given region. Must not be null and must be a region where the service is available. * * @see Region#getRegion(com.amazonaws.regions.Regions) * @see Region#createClient(Class, com.amazonaws.auth.AWSCredentialsProvider, ClientConfiguration) * @see Region#isServiceSupported(String) * @deprecated use {@link AwsClientBuilder#setRegion(String)} */ @Deprecated void setRegion(Region region); /** * <p> * Attaches one or more EC2 instances to the specified Auto Scaling group. * </p> * <p> * When you attach instances, 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. * </p> * <p> * 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. * </p> * <p> * For more information, see <a * href="http://docs.aws.amazon.com/autoscaling/latest/userguide/attach-instance-asg.html">Attach EC2 Instances to * Your Auto Scaling Group</a> in the <i>Auto Scaling User Guide</i>. * </p> * * @param attachInstancesRequest * @return Result of the AttachInstances operation returned by the service. * @throws ResourceContentionException * You already have a pending update to an Auto Scaling resource (for example, a group, instance, or load * balancer). * @sample AmazonAutoScaling.AttachInstances * @see <a href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/AttachInstances" target="_top">AWS * API Documentation</a> */ AttachInstancesResult attachInstances(AttachInstancesRequest attachInstancesRequest); /** * <p> * Attaches one or more target groups to the specified Auto Scaling group. * </p> * <p> * To describe the target groups for an Auto Scaling group, use <a>DescribeLoadBalancerTargetGroups</a>. To detach * the target group from the Auto Scaling group, use <a>DetachLoadBalancerTargetGroups</a>. * </p> * <p> * For more information, see <a * href="http://docs.aws.amazon.com/autoscaling/latest/userguide/attach-load-balancer-asg.html">Attach a Load * Balancer to Your Auto Scaling Group</a> in the <i>Auto Scaling User Guide</i>. * </p> * * @param attachLoadBalancerTargetGroupsRequest * @return Result of the AttachLoadBalancerTargetGroups operation returned by the service. * @throws ResourceContentionException * You already have a pending update to an Auto Scaling resource (for example, a group, instance, or load * balancer). * @sample AmazonAutoScaling.AttachLoadBalancerTargetGroups * @see <a href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/AttachLoadBalancerTargetGroups" * target="_top">AWS API Documentation</a> */ AttachLoadBalancerTargetGroupsResult attachLoadBalancerTargetGroups(AttachLoadBalancerTargetGroupsRequest attachLoadBalancerTargetGroupsRequest); /** * <p> * Attaches one or more Classic Load Balancers to the specified Auto Scaling group. * </p> * <p> * To attach an Application Load Balancer instead, see <a>AttachLoadBalancerTargetGroups</a>. * </p> * <p> * To describe the load balancers for an Auto Scaling group, use <a>DescribeLoadBalancers</a>. To detach the load * balancer from the Auto Scaling group, use <a>DetachLoadBalancers</a>. * </p> * <p> * For more information, see <a * href="http://docs.aws.amazon.com/autoscaling/latest/userguide/attach-load-balancer-asg.html">Attach a Load * Balancer to Your Auto Scaling Group</a> in the <i>Auto Scaling User Guide</i>. * </p> * * @param attachLoadBalancersRequest * @return Result of the AttachLoadBalancers operation returned by the service. * @throws ResourceContentionException * You already have a pending update to an Auto Scaling resource (for example, a group, instance, or load * balancer). * @sample AmazonAutoScaling.AttachLoadBalancers * @see <a href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/AttachLoadBalancers" * target="_top">AWS API Documentation</a> */ AttachLoadBalancersResult attachLoadBalancers(AttachLoadBalancersRequest attachLoadBalancersRequest); /** * Simplified method form for invoking the AttachLoadBalancers operation. * * @see #attachLoadBalancers(AttachLoadBalancersRequest) */ AttachLoadBalancersResult attachLoadBalancers(); /** * <p> * Completes the lifecycle action for the specified token or instance with the specified result. * </p> * <p> * This step is a part of the procedure for adding a lifecycle hook to an Auto Scaling group: * </p> * <ol> * <li> * <p> * (Optional) Create a Lambda function and a rule that allows CloudWatch Events to invoke your Lambda function when * Auto Scaling launches or terminates instances. * </p> * </li> * <li> * <p> * (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 Auto Scaling to publish lifecycle notifications to the target. * </p> * </li> * <li> * <p> * Create the lifecycle hook. Specify whether the hook is used when the instances launch or terminate. * </p> * </li> * <li> * <p> * If you need more time, record the lifecycle action heartbeat to keep the instance in a pending state. * </p> * </li> * <li> * <p> * <b>If you finish before the timeout period ends, complete the lifecycle action.</b> * </p> * </li> * </ol> * <p> * For more information, see <a * href="http://docs.aws.amazon.com/autoscaling/latest/userguide/AutoScalingGroupLifecycle.html">Auto Scaling * Lifecycle</a> in the <i>Auto Scaling User Guide</i>. * </p> * * @param completeLifecycleActionRequest * @return Result of the CompleteLifecycleAction operation returned by the service. * @throws ResourceContentionException * You already have a pending update to an Auto Scaling resource (for example, a group, instance, or load * balancer). * @sample AmazonAutoScaling.CompleteLifecycleAction * @see <a href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/CompleteLifecycleAction" * target="_top">AWS API Documentation</a> */ CompleteLifecycleActionResult completeLifecycleAction(CompleteLifecycleActionRequest completeLifecycleActionRequest); /** * <p> * Creates an Auto Scaling group with the specified name and attributes. * </p> * <p> * If you exceed your maximum limit of Auto Scaling groups, which by default is 20 per region, the call fails. For * information about viewing and updating this limit, see <a>DescribeAccountLimits</a>. * </p> * <p> * For more information, see <a * href="http://docs.aws.amazon.com/autoscaling/latest/userguide/AutoScalingGroup.html">Auto Scaling Groups</a> in * the <i>Auto Scaling User Guide</i>. * </p> * * @param createAutoScalingGroupRequest * @return Result of the CreateAutoScalingGroup operation returned by the service. * @throws AlreadyExistsException * You already have an Auto Scaling group or launch configuration with this name. * @throws LimitExceededException * You have already reached a limit for your Auto Scaling resources (for example, groups, launch * configurations, or lifecycle hooks). For more information, see <a>DescribeAccountLimits</a>. * @throws ResourceContentionException * You already have a pending update to an Auto Scaling resource (for example, a group, instance, or load * balancer). * @sample AmazonAutoScaling.CreateAutoScalingGroup * @see <a href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/CreateAutoScalingGroup" * target="_top">AWS API Documentation</a> */ CreateAutoScalingGroupResult createAutoScalingGroup(CreateAutoScalingGroupRequest createAutoScalingGroupRequest); /** * <p> * Creates a launch configuration. * </p> * <p> * If you exceed your maximum limit of launch configurations, which by default is 100 per region, the call fails. * For information about viewing and updating this limit, see <a>DescribeAccountLimits</a>. * </p> * <p> * For more information, see <a * href="http://docs.aws.amazon.com/autoscaling/latest/userguide/LaunchConfiguration.html">Launch Configurations</a> * in the <i>Auto Scaling User Guide</i>. * </p> * * @param createLaunchConfigurationRequest * @return Result of the CreateLaunchConfiguration operation returned by the service. * @throws AlreadyExistsException * You already have an Auto Scaling group or launch configuration with this name. * @throws LimitExceededException * You have already reached a limit for your Auto Scaling resources (for example, groups, launch * configurations, or lifecycle hooks). For more information, see <a>DescribeAccountLimits</a>. * @throws ResourceContentionException * You already have a pending update to an Auto Scaling resource (for example, a group, instance, or load * balancer). * @sample AmazonAutoScaling.CreateLaunchConfiguration * @see <a href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/CreateLaunchConfiguration" * target="_top">AWS API Documentation</a> */ CreateLaunchConfigurationResult createLaunchConfiguration(CreateLaunchConfigurationRequest createLaunchConfigurationRequest); /** * <p> * Creates or updates tags for the specified Auto Scaling group. * </p> * <p> * 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. * </p> * <p> * For more information, see <a * href="http://docs.aws.amazon.com/autoscaling/latest/userguide/autoscaling-tagging.html">Tagging Auto Scaling * Groups and Instances</a> in the <i>Auto Scaling User Guide</i>. * </p> * * @param createOrUpdateTagsRequest * @return Result of the CreateOrUpdateTags operation returned by the service. * @throws LimitExceededException * You have already reached a limit for your Auto Scaling resources (for example, groups, launch * configurations, or lifecycle hooks). For more information, see <a>DescribeAccountLimits</a>. * @throws AlreadyExistsException * You already have an Auto Scaling group or launch configuration with this name. * @throws ResourceContentionException * You already have a pending update to an Auto Scaling resource (for example, a group, instance, or load * balancer). * @sample AmazonAutoScaling.CreateOrUpdateTags * @see <a href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/CreateOrUpdateTags" target="_top">AWS * API Documentation</a> */ CreateOrUpdateTagsResult createOrUpdateTags(CreateOrUpdateTagsRequest createOrUpdateTagsRequest); /** * <p> * Deletes the specified Auto Scaling group. * </p> * <p> * 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. * </p> * <p> * If the group has policies, deleting the group deletes the policies, the underlying alarm actions, and any alarm * that no longer has an associated action. * </p> * <p> * To remove instances from the Auto Scaling group before deleting it, call <a>DetachInstances</a> with the list of * instances and the option to decrement the desired capacity so that Auto Scaling does not launch replacement * instances. * </p> * <p> * To terminate all instances before deleting the Auto Scaling group, call <a>UpdateAutoScalingGroup</a> and set the * minimum size and desired capacity of the Auto Scaling group to zero. * </p> * * @param deleteAutoScalingGroupRequest * @return Result of the DeleteAutoScalingGroup operation returned by the service. * @throws ScalingActivityInProgressException * The operation can't be performed because there are scaling activities in progress. * @throws ResourceInUseException * The operation can't be performed because the resource is in use. * @throws ResourceContentionException * You already have a pending update to an Auto Scaling resource (for example, a group, instance, or load * balancer). * @sample AmazonAutoScaling.DeleteAutoScalingGroup * @see <a href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/DeleteAutoScalingGroup" * target="_top">AWS API Documentation</a> */ DeleteAutoScalingGroupResult deleteAutoScalingGroup(DeleteAutoScalingGroupRequest deleteAutoScalingGroupRequest); /** * <p> * Deletes the specified launch configuration. * </p> * <p> * 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. * </p> * * @param deleteLaunchConfigurationRequest * @return Result of the DeleteLaunchConfiguration operation returned by the service. * @throws ResourceInUseException * The operation can't be performed because the resource is in use. * @throws ResourceContentionException * You already have a pending update to an Auto Scaling resource (for example, a group, instance, or load * balancer). * @sample AmazonAutoScaling.DeleteLaunchConfiguration * @see <a href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/DeleteLaunchConfiguration" * target="_top">AWS API Documentation</a> */ DeleteLaunchConfigurationResult deleteLaunchConfiguration(DeleteLaunchConfigurationRequest deleteLaunchConfigurationRequest); /** * <p> * Deletes the specified lifecycle hook. * </p> * <p> * If there are any outstanding lifecycle actions, they are completed first (<code>ABANDON</code> for launching * instances, <code>CONTINUE</code> for terminating instances). * </p> * * @param deleteLifecycleHookRequest * @return Result of the DeleteLifecycleHook operation returned by the service. * @throws ResourceContentionException * You already have a pending update to an Auto Scaling resource (for example, a group, instance, or load * balancer). * @sample AmazonAutoScaling.DeleteLifecycleHook * @see <a href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/DeleteLifecycleHook" * target="_top">AWS API Documentation</a> */ DeleteLifecycleHookResult deleteLifecycleHook(DeleteLifecycleHookRequest deleteLifecycleHookRequest); /** * <p> * Deletes the specified notification. * </p> * * @param deleteNotificationConfigurationRequest * @return Result of the DeleteNotificationConfiguration operation returned by the service. * @throws ResourceContentionException * You already have a pending update to an Auto Scaling resource (for example, a group, instance, or load * balancer). * @sample AmazonAutoScaling.DeleteNotificationConfiguration * @see <a href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/DeleteNotificationConfiguration" * target="_top">AWS API Documentation</a> */ DeleteNotificationConfigurationResult deleteNotificationConfiguration(DeleteNotificationConfigurationRequest deleteNotificationConfigurationRequest); /** * <p> * Deletes the specified Auto Scaling policy. * </p> * <p> * Deleting a policy deletes the underlying alarm action, but does not delete the alarm, even if it no longer has an * associated action. * </p> * * @param deletePolicyRequest * @return Result of the DeletePolicy operation returned by the service. * @throws ResourceContentionException * You already have a pending update to an Auto Scaling resource (for example, a group, instance, or load * balancer). * @sample AmazonAutoScaling.DeletePolicy * @see <a href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/DeletePolicy" target="_top">AWS API * Documentation</a> */ DeletePolicyResult deletePolicy(DeletePolicyRequest deletePolicyRequest); /** * <p> * Deletes the specified scheduled action. * </p> * * @param deleteScheduledActionRequest * @return Result of the DeleteScheduledAction operation returned by the service. * @throws ResourceContentionException * You already have a pending update to an Auto Scaling resource (for example, a group, instance, or load * balancer). * @sample AmazonAutoScaling.DeleteScheduledAction * @see <a href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/DeleteScheduledAction" * target="_top">AWS API Documentation</a> */ DeleteScheduledActionResult deleteScheduledAction(DeleteScheduledActionRequest deleteScheduledActionRequest); /** * <p> * Deletes the specified tags. * </p> * * @param deleteTagsRequest * @return Result of the DeleteTags operation returned by the service. * @throws ResourceContentionException * You already have a pending update to an Auto Scaling resource (for example, a group, instance, or load * balancer). * @sample AmazonAutoScaling.DeleteTags * @see <a href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/DeleteTags" target="_top">AWS API * Documentation</a> */ DeleteTagsResult deleteTags(DeleteTagsRequest deleteTagsRequest); /** * <p> * Describes the current Auto Scaling resource limits for your AWS account. * </p> * <p> * For information about requesting an increase in these limits, see <a * href="http://docs.aws.amazon.com/general/latest/gr/aws_service_limits.html">AWS Service Limits</a> in the * <i>Amazon Web Services General Reference</i>. * </p> * * @param describeAccountLimitsRequest * @return Result of the DescribeAccountLimits operation returned by the service. * @throws ResourceContentionException * You already have a pending update to an Auto Scaling resource (for example, a group, instance, or load * balancer). * @sample AmazonAutoScaling.DescribeAccountLimits * @see <a href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/DescribeAccountLimits" * target="_top">AWS API Documentation</a> */ DescribeAccountLimitsResult describeAccountLimits(DescribeAccountLimitsRequest describeAccountLimitsRequest); /** * Simplified method form for invoking the DescribeAccountLimits operation. * * @see #describeAccountLimits(DescribeAccountLimitsRequest) */ DescribeAccountLimitsResult describeAccountLimits(); /** * <p> * Describes the policy adjustment types for use with <a>PutScalingPolicy</a>. * </p> * * @param describeAdjustmentTypesRequest * @return Result of the DescribeAdjustmentTypes operation returned by the service. * @throws ResourceContentionException * You already have a pending update to an Auto Scaling resource (for example, a group, instance, or load * balancer). * @sample AmazonAutoScaling.DescribeAdjustmentTypes * @see <a href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/DescribeAdjustmentTypes" * target="_top">AWS API Documentation</a> */ DescribeAdjustmentTypesResult describeAdjustmentTypes(DescribeAdjustmentTypesRequest describeAdjustmentTypesRequest); /** * Simplified method form for invoking the DescribeAdjustmentTypes operation. * * @see #describeAdjustmentTypes(DescribeAdjustmentTypesRequest) */ DescribeAdjustmentTypesResult describeAdjustmentTypes(); /** * <p> * Describes one or more Auto Scaling groups. * </p> * * @param describeAutoScalingGroupsRequest * @return Result of the DescribeAutoScalingGroups operation returned by the service. * @throws InvalidNextTokenException * The <code>NextToken</code> value is not valid. * @throws ResourceContentionException * You already have a pending update to an Auto Scaling resource (for example, a group, instance, or load * balancer). * @sample AmazonAutoScaling.DescribeAutoScalingGroups * @see <a href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/DescribeAutoScalingGroups" * target="_top">AWS API Documentation</a> */ DescribeAutoScalingGroupsResult describeAutoScalingGroups(DescribeAutoScalingGroupsRequest describeAutoScalingGroupsRequest); /** * Simplified method form for invoking the DescribeAutoScalingGroups operation. * * @see #describeAutoScalingGroups(DescribeAutoScalingGroupsRequest) */ DescribeAutoScalingGroupsResult describeAutoScalingGroups(); /** * <p> * Describes one or more Auto Scaling instances. * </p> * * @param describeAutoScalingInstancesRequest * @return Result of the DescribeAutoScalingInstances operation returned by the service. * @throws InvalidNextTokenException * The <code>NextToken</code> value is not valid. * @throws ResourceContentionException * You already have a pending update to an Auto Scaling resource (for example, a group, instance, or load * balancer). * @sample AmazonAutoScaling.DescribeAutoScalingInstances * @see <a href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/DescribeAutoScalingInstances" * target="_top">AWS API Documentation</a> */ DescribeAutoScalingInstancesResult describeAutoScalingInstances(DescribeAutoScalingInstancesRequest describeAutoScalingInstancesRequest); /** * Simplified method form for invoking the DescribeAutoScalingInstances operation. * * @see #describeAutoScalingInstances(DescribeAutoScalingInstancesRequest) */ DescribeAutoScalingInstancesResult describeAutoScalingInstances(); /** * <p> * Describes the notification types that are supported by Auto Scaling. * </p> * * @param describeAutoScalingNotificationTypesRequest * @return Result of the DescribeAutoScalingNotificationTypes operation returned by the service. * @throws ResourceContentionException * You already have a pending update to an Auto Scaling resource (for example, a group, instance, or load * balancer). * @sample AmazonAutoScaling.DescribeAutoScalingNotificationTypes * @see <a href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/DescribeAutoScalingNotificationTypes" * target="_top">AWS API Documentation</a> */ DescribeAutoScalingNotificationTypesResult describeAutoScalingNotificationTypes( DescribeAutoScalingNotificationTypesRequest describeAutoScalingNotificationTypesRequest); /** * Simplified method form for invoking the DescribeAutoScalingNotificationTypes operation. * * @see #describeAutoScalingNotificationTypes(DescribeAutoScalingNotificationTypesRequest) */ DescribeAutoScalingNotificationTypesResult describeAutoScalingNotificationTypes(); /** * <p> * Describes one or more launch configurations. * </p> * * @param describeLaunchConfigurationsRequest * @return Result of the DescribeLaunchConfigurations operation returned by the service. * @throws InvalidNextTokenException * The <code>NextToken</code> value is not valid. * @throws ResourceContentionException * You already have a pending update to an Auto Scaling resource (for example, a group, instance, or load * balancer). * @sample AmazonAutoScaling.DescribeLaunchConfigurations * @see <a href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/DescribeLaunchConfigurations" * target="_top">AWS API Documentation</a> */ DescribeLaunchConfigurationsResult describeLaunchConfigurations(DescribeLaunchConfigurationsRequest describeLaunchConfigurationsRequest); /** * Simplified method form for invoking the DescribeLaunchConfigurations operation. * * @see #describeLaunchConfigurations(DescribeLaunchConfigurationsRequest) */ DescribeLaunchConfigurationsResult describeLaunchConfigurations(); /** * <p> * Describes the available types of lifecycle hooks. * </p> * * @param describeLifecycleHookTypesRequest * @return Result of the DescribeLifecycleHookTypes operation returned by the service. * @throws ResourceContentionException * You already have a pending update to an Auto Scaling resource (for example, a group, instance, or load * balancer). * @sample AmazonAutoScaling.DescribeLifecycleHookTypes * @see <a href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/DescribeLifecycleHookTypes" * target="_top">AWS API Documentation</a> */ DescribeLifecycleHookTypesResult describeLifecycleHookTypes(DescribeLifecycleHookTypesRequest describeLifecycleHookTypesRequest); /** * Simplified method form for invoking the DescribeLifecycleHookTypes operation. * * @see #describeLifecycleHookTypes(DescribeLifecycleHookTypesRequest) */ DescribeLifecycleHookTypesResult describeLifecycleHookTypes(); /** * <p> * Describes the lifecycle hooks for the specified Auto Scaling group. * </p> * * @param describeLifecycleHooksRequest * @return Result of the DescribeLifecycleHooks operation returned by the service. * @throws ResourceContentionException * You already have a pending update to an Auto Scaling resource (for example, a group, instance, or load * balancer). * @sample AmazonAutoScaling.DescribeLifecycleHooks * @see <a href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/DescribeLifecycleHooks" * target="_top">AWS API Documentation</a> */ DescribeLifecycleHooksResult describeLifecycleHooks(DescribeLifecycleHooksRequest describeLifecycleHooksRequest); /** * <p> * Describes the target groups for the specified Auto Scaling group. * </p> * * @param describeLoadBalancerTargetGroupsRequest * @return Result of the DescribeLoadBalancerTargetGroups operation returned by the service. * @throws ResourceContentionException * You already have a pending update to an Auto Scaling resource (for example, a group, instance, or load * balancer). * @sample AmazonAutoScaling.DescribeLoadBalancerTargetGroups * @see <a href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/DescribeLoadBalancerTargetGroups" * target="_top">AWS API Documentation</a> */ DescribeLoadBalancerTargetGroupsResult describeLoadBalancerTargetGroups(DescribeLoadBalancerTargetGroupsRequest describeLoadBalancerTargetGroupsRequest); /** * <p> * Describes the load balancers for the specified Auto Scaling group. * </p> * <p> * Note that this operation describes only Classic Load Balancers. If you have Application Load Balancers, use * <a>DescribeLoadBalancerTargetGroups</a> instead. * </p> * * @param describeLoadBalancersRequest * @return Result of the DescribeLoadBalancers operation returned by the service. * @throws ResourceContentionException * You already have a pending update to an Auto Scaling resource (for example, a group, instance, or load * balancer). * @sample AmazonAutoScaling.DescribeLoadBalancers * @see <a href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/DescribeLoadBalancers" * target="_top">AWS API Documentation</a> */ DescribeLoadBalancersResult describeLoadBalancers(DescribeLoadBalancersRequest describeLoadBalancersRequest); /** * <p> * Describes the available CloudWatch metrics for Auto Scaling. * </p> * <p> * Note that the <code>GroupStandbyInstances</code> metric is not returned by default. You must explicitly request * this metric when calling <a>EnableMetricsCollection</a>. * </p> * * @param describeMetricCollectionTypesRequest * @return Result of the DescribeMetricCollectionTypes operation returned by the service. * @throws ResourceContentionException * You already have a pending update to an Auto Scaling resource (for example, a group, instance, or load * balancer). * @sample AmazonAutoScaling.DescribeMetricCollectionTypes * @see <a href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/DescribeMetricCollectionTypes" * target="_top">AWS API Documentation</a> */ DescribeMetricCollectionTypesResult describeMetricCollectionTypes(DescribeMetricCollectionTypesRequest describeMetricCollectionTypesRequest); /** * Simplified method form for invoking the DescribeMetricCollectionTypes operation. * * @see #describeMetricCollectionTypes(DescribeMetricCollectionTypesRequest) */ DescribeMetricCollectionTypesResult describeMetricCollectionTypes(); /** * <p> * Describes the notification actions associated with the specified Auto Scaling group. * </p> * * @param describeNotificationConfigurationsRequest * @return Result of the DescribeNotificationConfigurations operation returned by the service. * @throws InvalidNextTokenException * The <code>NextToken</code> value is not valid. * @throws ResourceContentionException * You already have a pending update to an Auto Scaling resource (for example, a group, instance, or load * balancer). * @sample AmazonAutoScaling.DescribeNotificationConfigurations * @see <a href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/DescribeNotificationConfigurations" * target="_top">AWS API Documentation</a> */ DescribeNotificationConfigurationsResult describeNotificationConfigurations( DescribeNotificationConfigurationsRequest describeNotificationConfigurationsRequest); /** * Simplified method form for invoking the DescribeNotificationConfigurations operation. * * @see #describeNotificationConfigurations(DescribeNotificationConfigurationsRequest) */ DescribeNotificationConfigurationsResult describeNotificationConfigurations(); /** * <p> * Describes the policies for the specified Auto Scaling group. * </p> * * @param describePoliciesRequest * @return Result of the DescribePolicies operation returned by the service. * @throws InvalidNextTokenException * The <code>NextToken</code> value is not valid. * @throws ResourceContentionException * You already have a pending update to an Auto Scaling resource (for example, a group, instance, or load * balancer). * @sample AmazonAutoScaling.DescribePolicies * @see <a href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/DescribePolicies" target="_top">AWS * API Documentation</a> */ DescribePoliciesResult describePolicies(DescribePoliciesRequest describePoliciesRequest); /** * Simplified method form for invoking the DescribePolicies operation. * * @see #describePolicies(DescribePoliciesRequest) */ DescribePoliciesResult describePolicies(); /** * <p> * Describes one or more scaling activities for the specified Auto Scaling group. * </p> * * @param describeScalingActivitiesRequest * @return Result of the DescribeScalingActivities operation returned by the service. * @throws InvalidNextTokenException * The <code>NextToken</code> value is not valid. * @throws ResourceContentionException * You already have a pending update to an Auto Scaling resource (for example, a group, instance, or load * balancer). * @sample AmazonAutoScaling.DescribeScalingActivities * @see <a href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/DescribeScalingActivities" * target="_top">AWS API Documentation</a> */ DescribeScalingActivitiesResult describeScalingActivities(DescribeScalingActivitiesRequest describeScalingActivitiesRequest); /** * Simplified method form for invoking the DescribeScalingActivities operation. * * @see #describeScalingActivities(DescribeScalingActivitiesRequest) */ DescribeScalingActivitiesResult describeScalingActivities(); /** * <p> * Describes the scaling process types for use with <a>ResumeProcesses</a> and <a>SuspendProcesses</a>. * </p> * * @param describeScalingProcessTypesRequest * @return Result of the DescribeScalingProcessTypes operation returned by the service. * @throws ResourceContentionException * You already have a pending update to an Auto Scaling resource (for example, a group, instance, or load * balancer). * @sample AmazonAutoScaling.DescribeScalingProcessTypes * @see <a href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/DescribeScalingProcessTypes" * target="_top">AWS API Documentation</a> */ DescribeScalingProcessTypesResult describeScalingProcessTypes(DescribeScalingProcessTypesRequest describeScalingProcessTypesRequest); /** * Simplified method form for invoking the DescribeScalingProcessTypes operation. * * @see #describeScalingProcessTypes(DescribeScalingProcessTypesRequest) */ DescribeScalingProcessTypesResult describeScalingProcessTypes(); /** * <p> * Describes the actions scheduled for your Auto Scaling group that haven't run. To describe the actions that have * already run, use <a>DescribeScalingActivities</a>. * </p> * * @param describeScheduledActionsRequest * @return Result of the DescribeScheduledActions operation returned by the service. * @throws InvalidNextTokenException * The <code>NextToken</code> value is not valid. * @throws ResourceContentionException * You already have a pending update to an Auto Scaling resource (for example, a group, instance, or load * balancer). * @sample AmazonAutoScaling.DescribeScheduledActions * @see <a href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/DescribeScheduledActions" * target="_top">AWS API Documentation</a> */ DescribeScheduledActionsResult describeScheduledActions(DescribeScheduledActionsRequest describeScheduledActionsRequest); /** * Simplified method form for invoking the DescribeScheduledActions operation. * * @see #describeScheduledActions(DescribeScheduledActionsRequest) */ DescribeScheduledActionsResult describeScheduledActions(); /** * <p> * Describes the specified tags. * </p> * <p> * 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. * </p> * <p> * 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. * </p> * * @param describeTagsRequest * @return Result of the DescribeTags operation returned by the service. * @throws InvalidNextTokenException * The <code>NextToken</code> value is not valid. * @throws ResourceContentionException * You already have a pending update to an Auto Scaling resource (for example, a group, instance, or load * balancer). * @sample AmazonAutoScaling.DescribeTags * @see <a href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/DescribeTags" target="_top">AWS API * Documentation</a> */ DescribeTagsResult describeTags(DescribeTagsRequest describeTagsRequest); /** * Simplified method form for invoking the DescribeTags operation. * * @see #describeTags(DescribeTagsRequest) */ DescribeTagsResult describeTags(); /** * <p> * Describes the termination policies supported by Auto Scaling. * </p> * * @param describeTerminationPolicyTypesRequest * @return Result of the DescribeTerminationPolicyTypes operation returned by the service. * @throws ResourceContentionException * You already have a pending update to an Auto Scaling resource (for example, a group, instance, or load * balancer). * @sample AmazonAutoScaling.DescribeTerminationPolicyTypes * @see <a href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/DescribeTerminationPolicyTypes" * target="_top">AWS API Documentation</a> */ DescribeTerminationPolicyTypesResult describeTerminationPolicyTypes(DescribeTerminationPolicyTypesRequest describeTerminationPolicyTypesRequest); /** * Simplified method form for invoking the DescribeTerminationPolicyTypes operation. * * @see #describeTerminationPolicyTypes(DescribeTerminationPolicyTypesRequest) */ DescribeTerminationPolicyTypesResult describeTerminationPolicyTypes(); /** * <p> * Removes one or more instances from the specified Auto Scaling group. * </p> * <p> * After the instances are detached, you can manage them independent of the Auto Scaling group. * </p> * <p> * If you do not specify the option to decrement the desired capacity, Auto Scaling launches instances to replace * the ones that are detached. * </p> * <p> * 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. * </p> * <p> * For more information, see <a * href="http://docs.aws.amazon.com/autoscaling/latest/userguide/detach-instance-asg.html">Detach EC2 Instances from * Your Auto Scaling Group</a> in the <i>Auto Scaling User Guide</i>. * </p> * * @param detachInstancesRequest * @return Result of the DetachInstances operation returned by the service. * @throws ResourceContentionException * You already have a pending update to an Auto Scaling resource (for example, a group, instance, or load * balancer). * @sample AmazonAutoScaling.DetachInstances * @see <a href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/DetachInstances" target="_top">AWS * API Documentation</a> */ DetachInstancesResult detachInstances(DetachInstancesRequest detachInstancesRequest); /** * <p> * Detaches one or more target groups from the specified Auto Scaling group. * </p> * * @param detachLoadBalancerTargetGroupsRequest * @return Result of the DetachLoadBalancerTargetGroups operation returned by the service. * @throws ResourceContentionException * You already have a pending update to an Auto Scaling resource (for example, a group, instance, or load * balancer). * @sample AmazonAutoScaling.DetachLoadBalancerTargetGroups * @see <a href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/DetachLoadBalancerTargetGroups" * target="_top">AWS API Documentation</a> */ DetachLoadBalancerTargetGroupsResult detachLoadBalancerTargetGroups(DetachLoadBalancerTargetGroupsRequest detachLoadBalancerTargetGroupsRequest); /** * <p> * Detaches one or more Classic Load Balancers from the specified Auto Scaling group. * </p> * <p> * Note that this operation detaches only Classic Load Balancers. If you have Application Load Balancers, use * <a>DetachLoadBalancerTargetGroups</a> instead. * </p> * <p> * 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 * <a>DescribeLoadBalancers</a>. Note that the instances remain running. * </p> * * @param detachLoadBalancersRequest * @return Result of the DetachLoadBalancers operation returned by the service. * @throws ResourceContentionException * You already have a pending update to an Auto Scaling resource (for example, a group, instance, or load * balancer). * @sample AmazonAutoScaling.DetachLoadBalancers * @see <a href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/DetachLoadBalancers" * target="_top">AWS API Documentation</a> */ DetachLoadBalancersResult detachLoadBalancers(DetachLoadBalancersRequest detachLoadBalancersRequest); /** * Simplified method form for invoking the DetachLoadBalancers operation. * * @see #detachLoadBalancers(DetachLoadBalancersRequest) */ DetachLoadBalancersResult detachLoadBalancers(); /** * <p> * Disables group metrics for the specified Auto Scaling group. * </p> * * @param disableMetricsCollectionRequest * @return Result of the DisableMetricsCollection operation returned by the service. * @throws ResourceContentionException * You already have a pending update to an Auto Scaling resource (for example, a group, instance, or load * balancer). * @sample AmazonAutoScaling.DisableMetricsCollection * @see <a href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/DisableMetricsCollection" * target="_top">AWS API Documentation</a> */ DisableMetricsCollectionResult disableMetricsCollection(DisableMetricsCollectionRequest disableMetricsCollectionRequest); /** * <p> * Enables group metrics for the specified Auto Scaling group. For more information, see <a * href="http://docs.aws.amazon.com/autoscaling/latest/userguide/as-instance-monitoring.html">Monitoring Your Auto * Scaling Groups and Instances</a> in the <i>Auto Scaling User Guide</i>. * </p> * * @param enableMetricsCollectionRequest * @return Result of the EnableMetricsCollection operation returned by the service. * @throws ResourceContentionException * You already have a pending update to an Auto Scaling resource (for example, a group, instance, or load * balancer). * @sample AmazonAutoScaling.EnableMetricsCollection * @see <a href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/EnableMetricsCollection" * target="_top">AWS API Documentation</a> */ EnableMetricsCollectionResult enableMetricsCollection(EnableMetricsCollectionRequest enableMetricsCollectionRequest); /** * <p> * Moves the specified instances into the standby state. * </p> * <p> * For more information, see <a * href="http://docs.aws.amazon.com/autoscaling/latest/userguide/as-enter-exit-standby.html">Temporarily Removing * Instances from Your Auto Scaling Group</a> in the <i>Auto Scaling User Guide</i>. * </p> * * @param enterStandbyRequest * @return Result of the EnterStandby operation returned by the service. * @throws ResourceContentionException * You already have a pending update to an Auto Scaling resource (for example, a group, instance, or load * balancer). * @sample AmazonAutoScaling.EnterStandby * @see <a href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/EnterStandby" target="_top">AWS API * Documentation</a> */ EnterStandbyResult enterStandby(EnterStandbyRequest enterStandbyRequest); /** * <p> * Executes the specified policy. * </p> * * @param executePolicyRequest * @return Result of the ExecutePolicy operation returned by the service. * @throws ScalingActivityInProgressException * The operation can't be performed because there are scaling activities in progress. * @throws ResourceContentionException * You already have a pending update to an Auto Scaling resource (for example, a group, instance, or load * balancer). * @sample AmazonAutoScaling.ExecutePolicy * @see <a href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/ExecutePolicy" target="_top">AWS API * Documentation</a> */ ExecutePolicyResult executePolicy(ExecutePolicyRequest executePolicyRequest); /** * <p> * Moves the specified instances out of the standby state. * </p> * <p> * For more information, see <a * href="http://docs.aws.amazon.com/autoscaling/latest/userguide/as-enter-exit-standby.html">Temporarily Removing * Instances from Your Auto Scaling Group</a> in the <i>Auto Scaling User Guide</i>. * </p> * * @param exitStandbyRequest * @return Result of the ExitStandby operation returned by the service. * @throws ResourceContentionException * You already have a pending update to an Auto Scaling resource (for example, a group, instance, or load * balancer). * @sample AmazonAutoScaling.ExitStandby * @see <a href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/ExitStandby" target="_top">AWS API * Documentation</a> */ ExitStandbyResult exitStandby(ExitStandbyRequest exitStandbyRequest); /** * <p> * Creates or updates a lifecycle hook for the specified Auto Scaling Group. * </p> * <p> * A lifecycle hook tells Auto Scaling that you want to perform an action on an instance that is not actively in * service; for example, either when the instance launches or before the instance terminates. * </p> * <p> * This step is a part of the procedure for adding a lifecycle hook to an Auto Scaling group: * </p> * <ol> * <li> * <p> * (Optional) Create a Lambda function and a rule that allows CloudWatch Events to invoke your Lambda function when * Auto Scaling launches or terminates instances. * </p> * </li> * <li> * <p> * (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 Auto Scaling to publish lifecycle notifications to the target. * </p> * </li> * <li> * <p> * <b>Create the lifecycle hook. Specify whether the hook is used when the instances launch or terminate.</b> * </p> * </li> * <li> * <p> * If you need more time, record the lifecycle action heartbeat to keep the instance in a pending state. * </p> * </li> * <li> * <p> * If you finish before the timeout period ends, complete the lifecycle action. * </p> * </li> * </ol> * <p> * For more information, see <a * href="http://docs.aws.amazon.com/autoscaling/latest/userguide/lifecycle-hooks.html">Auto Scaling Lifecycle * Hooks</a> in the <i>Auto Scaling User Guide</i>. * </p> * <p> * If you exceed your maximum limit of lifecycle hooks, which by default is 50 per Auto Scaling group, the call * fails. For information about updating this limit, see <a * href="http://docs.aws.amazon.com/general/latest/gr/aws_service_limits.html">AWS Service Limits</a> in the * <i>Amazon Web Services General Reference</i>. * </p> * * @param putLifecycleHookRequest * @return Result of the PutLifecycleHook operation returned by the service. * @throws LimitExceededException * You have already reached a limit for your Auto Scaling resources (for example, groups, launch * configurations, or lifecycle hooks). For more information, see <a>DescribeAccountLimits</a>. * @throws ResourceContentionException * You already have a pending update to an Auto Scaling resource (for example, a group, instance, or load * balancer). * @sample AmazonAutoScaling.PutLifecycleHook * @see <a href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/PutLifecycleHook" target="_top">AWS * API Documentation</a> */ PutLifecycleHookResult putLifecycleHook(PutLifecycleHookRequest putLifecycleHookRequest); /** * <p> * 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. * </p> * <p> * This configuration overwrites any existing configuration. * </p> * <p> * For more information see <a * href="http://docs.aws.amazon.com/autoscaling/latest/userguide/ASGettingNotifications.html">Getting SNS * Notifications When Your Auto Scaling Group Scales</a> in the <i>Auto Scaling User Guide</i>. * </p> * * @param putNotificationConfigurationRequest * @return Result of the PutNotificationConfiguration operation returned by the service. * @throws LimitExceededException * You have already reached a limit for your Auto Scaling resources (for example, groups, launch * configurations, or lifecycle hooks). For more information, see <a>DescribeAccountLimits</a>. * @throws ResourceContentionException * You already have a pending update to an Auto Scaling resource (for example, a group, instance, or load * balancer). * @sample AmazonAutoScaling.PutNotificationConfiguration * @see <a href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/PutNotificationConfiguration" * target="_top">AWS API Documentation</a> */ PutNotificationConfigurationResult putNotificationConfiguration(PutNotificationConfigurationRequest putNotificationConfigurationRequest); /** * <p> * Creates or updates a policy for an Auto Scaling group. To update an existing policy, use the existing policy name * and set the parameters you want to change. Any existing parameter not changed in an update to an existing policy * is not changed in this update request. * </p> * <p> * If you exceed your maximum limit of step adjustments, which by default is 20 per region, the call fails. For * information about updating this limit, see <a * href="http://docs.aws.amazon.com/general/latest/gr/aws_service_limits.html">AWS Service Limits</a> in the * <i>Amazon Web Services General Reference</i>. * </p> * * @param putScalingPolicyRequest * @return Result of the PutScalingPolicy operation returned by the service. * @throws LimitExceededException * You have already reached a limit for your Auto Scaling resources (for example, groups, launch * configurations, or lifecycle hooks). For more information, see <a>DescribeAccountLimits</a>. * @throws ResourceContentionException * You already have a pending update to an Auto Scaling resource (for example, a group, instance, or load * balancer). * @sample AmazonAutoScaling.PutScalingPolicy * @see <a href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/PutScalingPolicy" target="_top">AWS * API Documentation</a> */ PutScalingPolicyResult putScalingPolicy(PutScalingPolicyRequest putScalingPolicyRequest); /** * <p> * Creates or updates a scheduled scaling action for an Auto Scaling group. When updating a scheduled scaling * action, if you leave a parameter unspecified, the corresponding value remains unchanged. * </p> * <p> * For more information, see <a * href="http://docs.aws.amazon.com/autoscaling/latest/userguide/schedule_time.html">Scheduled Scaling</a> in the * <i>Auto Scaling User Guide</i>. * </p> * * @param putScheduledUpdateGroupActionRequest * @return Result of the PutScheduledUpdateGroupAction operation returned by the service. * @throws AlreadyExistsException * You already have an Auto Scaling group or launch configuration with this name. * @throws LimitExceededException * You have already reached a limit for your Auto Scaling resources (for example, groups, launch * configurations, or lifecycle hooks). For more information, see <a>DescribeAccountLimits</a>. * @throws ResourceContentionException * You already have a pending update to an Auto Scaling resource (for example, a group, instance, or load * balancer). * @sample AmazonAutoScaling.PutScheduledUpdateGroupAction * @see <a href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/PutScheduledUpdateGroupAction" * target="_top">AWS API Documentation</a> */ PutScheduledUpdateGroupActionResult putScheduledUpdateGroupAction(PutScheduledUpdateGroupActionRequest putScheduledUpdateGroupActionRequest); /** * <p> * 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 <a>PutLifecycleHook</a>. * </p> * <p> * This step is a part of the procedure for adding a lifecycle hook to an Auto Scaling group: * </p> * <ol> * <li> * <p> * (Optional) Create a Lambda function and a rule that allows CloudWatch Events to invoke your Lambda function when * Auto Scaling launches or terminates instances. * </p> * </li> * <li> * <p> * (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 Auto Scaling to publish lifecycle notifications to the target. * </p> * </li> * <li> * <p> * Create the lifecycle hook. Specify whether the hook is used when the instances launch or terminate. * </p> * </li> * <li> * <p> * <b>If you need more time, record the lifecycle action heartbeat to keep the instance in a pending state.</b> * </p> * </li> * <li> * <p> * If you finish before the timeout period ends, complete the lifecycle action. * </p> * </li> * </ol> * <p> * For more information, see <a * href="http://docs.aws.amazon.com/autoscaling/latest/userguide/AutoScalingGroupLifecycle.html">Auto Scaling * Lifecycle</a> in the <i>Auto Scaling User Guide</i>. * </p> * * @param recordLifecycleActionHeartbeatRequest * @return Result of the RecordLifecycleActionHeartbeat operation returned by the service. * @throws ResourceContentionException * You already have a pending update to an Auto Scaling resource (for example, a group, instance, or load * balancer). * @sample AmazonAutoScaling.RecordLifecycleActionHeartbeat * @see <a href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/RecordLifecycleActionHeartbeat" * target="_top">AWS API Documentation</a> */ RecordLifecycleActionHeartbeatResult recordLifecycleActionHeartbeat(RecordLifecycleActionHeartbeatRequest recordLifecycleActionHeartbeatRequest); /** * <p> * Resumes the specified suspended Auto Scaling processes, or all suspended process, for the specified Auto Scaling * group. * </p> * <p> * For more information, see <a * href="http://docs.aws.amazon.com/autoscaling/latest/userguide/as-suspend-resume-processes.html">Suspending and * Resuming Auto Scaling Processes</a> in the <i>Auto Scaling User Guide</i>. * </p> * * @param resumeProcessesRequest * @return Result of the ResumeProcesses operation returned by the service. * @throws ResourceInUseException * The operation can't be performed because the resource is in use. * @throws ResourceContentionException * You already have a pending update to an Auto Scaling resource (for example, a group, instance, or load * balancer). * @sample AmazonAutoScaling.ResumeProcesses * @see <a href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/ResumeProcesses" target="_top">AWS * API Documentation</a> */ ResumeProcessesResult resumeProcesses(ResumeProcessesRequest resumeProcessesRequest); /** * <p> * Sets the size of the specified Auto Scaling group. * </p> * <p> * For more information about desired capacity, see <a * href="http://docs.aws.amazon.com/autoscaling/latest/userguide/WhatIsAutoScaling.html">What Is Auto Scaling?</a> * in the <i>Auto Scaling User Guide</i>. * </p> * * @param setDesiredCapacityRequest * @return Result of the SetDesiredCapacity operation returned by the service. * @throws ScalingActivityInProgressException * The operation can't be performed because there are scaling activities in progress. * @throws ResourceContentionException * You already have a pending update to an Auto Scaling resource (for example, a group, instance, or load * balancer). * @sample AmazonAutoScaling.SetDesiredCapacity * @see <a href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/SetDesiredCapacity" target="_top">AWS * API Documentation</a> */ SetDesiredCapacityResult setDesiredCapacity(SetDesiredCapacityRequest setDesiredCapacityRequest); /** * <p> * Sets the health status of the specified instance. * </p> * <p> * For more information, see <a * href="http://docs.aws.amazon.com/autoscaling/latest/userguide/healthcheck.html">Health Checks</a> in the <i>Auto * Scaling User Guide</i>. * </p> * * @param setInstanceHealthRequest * @return Result of the SetInstanceHealth operation returned by the service. * @throws ResourceContentionException * You already have a pending update to an Auto Scaling resource (for example, a group, instance, or load * balancer). * @sample AmazonAutoScaling.SetInstanceHealth * @see <a href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/SetInstanceHealth" target="_top">AWS * API Documentation</a> */ SetInstanceHealthResult setInstanceHealth(SetInstanceHealthRequest setInstanceHealthRequest); /** * <p> * Updates the instance protection settings of the specified instances. * </p> * <p> * For more information, see <a * href="http://docs.aws.amazon.com/autoscaling/latest/userguide/as-instance-termination.html#instance-protection" * >Instance Protection</a> in the <i>Auto Scaling User Guide</i>. * </p> * * @param setInstanceProtectionRequest * @return Result of the SetInstanceProtection operation returned by the service. * @throws LimitExceededException * You have already reached a limit for your Auto Scaling resources (for example, groups, launch * configurations, or lifecycle hooks). For more information, see <a>DescribeAccountLimits</a>. * @throws ResourceContentionException * You already have a pending update to an Auto Scaling resource (for example, a group, instance, or load * balancer). * @sample AmazonAutoScaling.SetInstanceProtection * @see <a href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/SetInstanceProtection" * target="_top">AWS API Documentation</a> */ SetInstanceProtectionResult setInstanceProtection(SetInstanceProtectionRequest setInstanceProtectionRequest); /** * <p> * Suspends the specified Auto Scaling processes, or all processes, for the specified Auto Scaling group. * </p> * <p> * Note that if you suspend either the <code>Launch</code> or <code>Terminate</code> process types, it can prevent * other process types from functioning properly. * </p> * <p> * To resume processes that have been suspended, use <a>ResumeProcesses</a>. * </p> * <p> * For more information, see <a * href="http://docs.aws.amazon.com/autoscaling/latest/userguide/as-suspend-resume-processes.html">Suspending and * Resuming Auto Scaling Processes</a> in the <i>Auto Scaling User Guide</i>. * </p> * * @param suspendProcessesRequest * @return Result of the SuspendProcesses operation returned by the service. * @throws ResourceInUseException * The operation can't be performed because the resource is in use. * @throws ResourceContentionException * You already have a pending update to an Auto Scaling resource (for example, a group, instance, or load * balancer). * @sample AmazonAutoScaling.SuspendProcesses * @see <a href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/SuspendProcesses" target="_top">AWS * API Documentation</a> */ SuspendProcessesResult suspendProcesses(SuspendProcessesRequest suspendProcessesRequest); /** * <p> * Terminates the specified instance and optionally adjusts the desired group size. * </p> * <p> * This call simply makes a termination request. The instance is not terminated immediately. * </p> * * @param terminateInstanceInAutoScalingGroupRequest * @return Result of the TerminateInstanceInAutoScalingGroup operation returned by the service. * @throws ScalingActivityInProgressException * The operation can't be performed because there are scaling activities in progress. * @throws ResourceContentionException * You already have a pending update to an Auto Scaling resource (for example, a group, instance, or load * balancer). * @sample AmazonAutoScaling.TerminateInstanceInAutoScalingGroup * @see <a href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/TerminateInstanceInAutoScalingGroup" * target="_top">AWS API Documentation</a> */ TerminateInstanceInAutoScalingGroupResult terminateInstanceInAutoScalingGroup( TerminateInstanceInAutoScalingGroupRequest terminateInstanceInAutoScalingGroupRequest); /** * <p> * Updates the configuration for the specified Auto Scaling group. * </p> * <p> * The new settings take effect on any scaling activities after this call returns. Scaling activities that are * currently in progress aren't affected. * </p> * <p> * To update an Auto Scaling group with a launch configuration with <code>InstanceMonitoring</code> set to * <code>false</code>, you must first disable the collection of group metrics. Otherwise, you will get an error. If * you have previously enabled the collection of group metrics, you can disable it using * <a>DisableMetricsCollection</a>. * </p> * <p> * Note the following: * </p> * <ul> * <li> * <p> * 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, we implicitly call * <a>SetDesiredCapacity</a> to set the size of the group to the new value of <code>MinSize</code>. * </p> * </li> * <li> * <p> * 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, we implicitly call * <a>SetDesiredCapacity</a> to set the size of the group to the new value of <code>MaxSize</code>. * </p> * </li> * <li> * <p> * All other optional parameters are left unchanged if not specified. * </p> * </li> * </ul> * * @param updateAutoScalingGroupRequest * @return Result of the UpdateAutoScalingGroup operation returned by the service. * @throws ScalingActivityInProgressException * The operation can't be performed because there are scaling activities in progress. * @throws ResourceContentionException * You already have a pending update to an Auto Scaling resource (for example, a group, instance, or load * balancer). * @sample AmazonAutoScaling.UpdateAutoScalingGroup * @see <a href="http://docs.aws.amazon.com/goto/WebAPI/autoscaling-2011-01-01/UpdateAutoScalingGroup" * target="_top">AWS API Documentation</a> */ UpdateAutoScalingGroupResult updateAutoScalingGroup(UpdateAutoScalingGroupRequest updateAutoScalingGroupRequest); /** * Shuts down this client object, releasing any resources that might be held open. This is an optional method, and * callers are not expected to call it, but can if they want to explicitly release any open resources. Once a client * has been shutdown, it should not be used to make any more requests. */ void shutdown(); /** * Returns additional metadata for a previously executed successful request, typically used for debugging issues * where a service isn't acting as expected. This data isn't considered part of the result data returned by an * operation, so it's available through this separate, diagnostic interface. * <p> * Response metadata is only cached for a limited period of time, so if you need to access this extra diagnostic * information for an executed request, you should use this method to retrieve it as soon as possible after * executing a request. * * @param request * The originally executed request. * * @return The response metadata for the specified request, or null if none is available. */ ResponseMetadata getCachedResponseMetadata(AmazonWebServiceRequest request); AmazonAutoScalingWaiters waiters(); }