All Downloads are FREE. Search and download functionalities are using the official Maven repository.

software.amazon.awssdk.services.autoscaling.AutoScalingClient Maven / Gradle / Ivy

Go to download

The AWS Java SDK for Auto Scaling module holds the client classes that are used for communicating with Auto Scaling Service

There is a newer version: 2.29.15
Show newest version
/*
 * 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.
 */

package software.amazon.awssdk.services.autoscaling;

import java.util.function.Consumer;
import software.amazon.awssdk.annotations.Generated;
import software.amazon.awssdk.annotations.SdkPublicApi;
import software.amazon.awssdk.annotations.ThreadSafe;
import software.amazon.awssdk.awscore.AwsClient;
import software.amazon.awssdk.awscore.exception.AwsServiceException;
import software.amazon.awssdk.core.exception.SdkClientException;
import software.amazon.awssdk.regions.ServiceMetadata;
import software.amazon.awssdk.services.autoscaling.model.ActiveInstanceRefreshNotFoundException;
import software.amazon.awssdk.services.autoscaling.model.AlreadyExistsException;
import software.amazon.awssdk.services.autoscaling.model.AttachInstancesRequest;
import software.amazon.awssdk.services.autoscaling.model.AttachInstancesResponse;
import software.amazon.awssdk.services.autoscaling.model.AttachLoadBalancerTargetGroupsRequest;
import software.amazon.awssdk.services.autoscaling.model.AttachLoadBalancerTargetGroupsResponse;
import software.amazon.awssdk.services.autoscaling.model.AttachLoadBalancersRequest;
import software.amazon.awssdk.services.autoscaling.model.AttachLoadBalancersResponse;
import software.amazon.awssdk.services.autoscaling.model.AttachTrafficSourcesRequest;
import software.amazon.awssdk.services.autoscaling.model.AttachTrafficSourcesResponse;
import software.amazon.awssdk.services.autoscaling.model.AutoScalingException;
import software.amazon.awssdk.services.autoscaling.model.BatchDeleteScheduledActionRequest;
import software.amazon.awssdk.services.autoscaling.model.BatchDeleteScheduledActionResponse;
import software.amazon.awssdk.services.autoscaling.model.BatchPutScheduledUpdateGroupActionRequest;
import software.amazon.awssdk.services.autoscaling.model.BatchPutScheduledUpdateGroupActionResponse;
import software.amazon.awssdk.services.autoscaling.model.CancelInstanceRefreshRequest;
import software.amazon.awssdk.services.autoscaling.model.CancelInstanceRefreshResponse;
import software.amazon.awssdk.services.autoscaling.model.CompleteLifecycleActionRequest;
import software.amazon.awssdk.services.autoscaling.model.CompleteLifecycleActionResponse;
import software.amazon.awssdk.services.autoscaling.model.CreateAutoScalingGroupRequest;
import software.amazon.awssdk.services.autoscaling.model.CreateAutoScalingGroupResponse;
import software.amazon.awssdk.services.autoscaling.model.CreateLaunchConfigurationRequest;
import software.amazon.awssdk.services.autoscaling.model.CreateLaunchConfigurationResponse;
import software.amazon.awssdk.services.autoscaling.model.CreateOrUpdateTagsRequest;
import software.amazon.awssdk.services.autoscaling.model.CreateOrUpdateTagsResponse;
import software.amazon.awssdk.services.autoscaling.model.DeleteAutoScalingGroupRequest;
import software.amazon.awssdk.services.autoscaling.model.DeleteAutoScalingGroupResponse;
import software.amazon.awssdk.services.autoscaling.model.DeleteLaunchConfigurationRequest;
import software.amazon.awssdk.services.autoscaling.model.DeleteLaunchConfigurationResponse;
import software.amazon.awssdk.services.autoscaling.model.DeleteLifecycleHookRequest;
import software.amazon.awssdk.services.autoscaling.model.DeleteLifecycleHookResponse;
import software.amazon.awssdk.services.autoscaling.model.DeleteNotificationConfigurationRequest;
import software.amazon.awssdk.services.autoscaling.model.DeleteNotificationConfigurationResponse;
import software.amazon.awssdk.services.autoscaling.model.DeletePolicyRequest;
import software.amazon.awssdk.services.autoscaling.model.DeletePolicyResponse;
import software.amazon.awssdk.services.autoscaling.model.DeleteScheduledActionRequest;
import software.amazon.awssdk.services.autoscaling.model.DeleteScheduledActionResponse;
import software.amazon.awssdk.services.autoscaling.model.DeleteTagsRequest;
import software.amazon.awssdk.services.autoscaling.model.DeleteTagsResponse;
import software.amazon.awssdk.services.autoscaling.model.DeleteWarmPoolRequest;
import software.amazon.awssdk.services.autoscaling.model.DeleteWarmPoolResponse;
import software.amazon.awssdk.services.autoscaling.model.DescribeAccountLimitsRequest;
import software.amazon.awssdk.services.autoscaling.model.DescribeAccountLimitsResponse;
import software.amazon.awssdk.services.autoscaling.model.DescribeAdjustmentTypesRequest;
import software.amazon.awssdk.services.autoscaling.model.DescribeAdjustmentTypesResponse;
import software.amazon.awssdk.services.autoscaling.model.DescribeAutoScalingGroupsRequest;
import software.amazon.awssdk.services.autoscaling.model.DescribeAutoScalingGroupsResponse;
import software.amazon.awssdk.services.autoscaling.model.DescribeAutoScalingInstancesRequest;
import software.amazon.awssdk.services.autoscaling.model.DescribeAutoScalingInstancesResponse;
import software.amazon.awssdk.services.autoscaling.model.DescribeAutoScalingNotificationTypesRequest;
import software.amazon.awssdk.services.autoscaling.model.DescribeAutoScalingNotificationTypesResponse;
import software.amazon.awssdk.services.autoscaling.model.DescribeInstanceRefreshesRequest;
import software.amazon.awssdk.services.autoscaling.model.DescribeInstanceRefreshesResponse;
import software.amazon.awssdk.services.autoscaling.model.DescribeLaunchConfigurationsRequest;
import software.amazon.awssdk.services.autoscaling.model.DescribeLaunchConfigurationsResponse;
import software.amazon.awssdk.services.autoscaling.model.DescribeLifecycleHookTypesRequest;
import software.amazon.awssdk.services.autoscaling.model.DescribeLifecycleHookTypesResponse;
import software.amazon.awssdk.services.autoscaling.model.DescribeLifecycleHooksRequest;
import software.amazon.awssdk.services.autoscaling.model.DescribeLifecycleHooksResponse;
import software.amazon.awssdk.services.autoscaling.model.DescribeLoadBalancerTargetGroupsRequest;
import software.amazon.awssdk.services.autoscaling.model.DescribeLoadBalancerTargetGroupsResponse;
import software.amazon.awssdk.services.autoscaling.model.DescribeLoadBalancersRequest;
import software.amazon.awssdk.services.autoscaling.model.DescribeLoadBalancersResponse;
import software.amazon.awssdk.services.autoscaling.model.DescribeMetricCollectionTypesRequest;
import software.amazon.awssdk.services.autoscaling.model.DescribeMetricCollectionTypesResponse;
import software.amazon.awssdk.services.autoscaling.model.DescribeNotificationConfigurationsRequest;
import software.amazon.awssdk.services.autoscaling.model.DescribeNotificationConfigurationsResponse;
import software.amazon.awssdk.services.autoscaling.model.DescribePoliciesRequest;
import software.amazon.awssdk.services.autoscaling.model.DescribePoliciesResponse;
import software.amazon.awssdk.services.autoscaling.model.DescribeScalingActivitiesRequest;
import software.amazon.awssdk.services.autoscaling.model.DescribeScalingActivitiesResponse;
import software.amazon.awssdk.services.autoscaling.model.DescribeScalingProcessTypesRequest;
import software.amazon.awssdk.services.autoscaling.model.DescribeScalingProcessTypesResponse;
import software.amazon.awssdk.services.autoscaling.model.DescribeScheduledActionsRequest;
import software.amazon.awssdk.services.autoscaling.model.DescribeScheduledActionsResponse;
import software.amazon.awssdk.services.autoscaling.model.DescribeTagsRequest;
import software.amazon.awssdk.services.autoscaling.model.DescribeTagsResponse;
import software.amazon.awssdk.services.autoscaling.model.DescribeTerminationPolicyTypesRequest;
import software.amazon.awssdk.services.autoscaling.model.DescribeTerminationPolicyTypesResponse;
import software.amazon.awssdk.services.autoscaling.model.DescribeTrafficSourcesRequest;
import software.amazon.awssdk.services.autoscaling.model.DescribeTrafficSourcesResponse;
import software.amazon.awssdk.services.autoscaling.model.DescribeWarmPoolRequest;
import software.amazon.awssdk.services.autoscaling.model.DescribeWarmPoolResponse;
import software.amazon.awssdk.services.autoscaling.model.DetachInstancesRequest;
import software.amazon.awssdk.services.autoscaling.model.DetachInstancesResponse;
import software.amazon.awssdk.services.autoscaling.model.DetachLoadBalancerTargetGroupsRequest;
import software.amazon.awssdk.services.autoscaling.model.DetachLoadBalancerTargetGroupsResponse;
import software.amazon.awssdk.services.autoscaling.model.DetachLoadBalancersRequest;
import software.amazon.awssdk.services.autoscaling.model.DetachLoadBalancersResponse;
import software.amazon.awssdk.services.autoscaling.model.DetachTrafficSourcesRequest;
import software.amazon.awssdk.services.autoscaling.model.DetachTrafficSourcesResponse;
import software.amazon.awssdk.services.autoscaling.model.DisableMetricsCollectionRequest;
import software.amazon.awssdk.services.autoscaling.model.DisableMetricsCollectionResponse;
import software.amazon.awssdk.services.autoscaling.model.EnableMetricsCollectionRequest;
import software.amazon.awssdk.services.autoscaling.model.EnableMetricsCollectionResponse;
import software.amazon.awssdk.services.autoscaling.model.EnterStandbyRequest;
import software.amazon.awssdk.services.autoscaling.model.EnterStandbyResponse;
import software.amazon.awssdk.services.autoscaling.model.ExecutePolicyRequest;
import software.amazon.awssdk.services.autoscaling.model.ExecutePolicyResponse;
import software.amazon.awssdk.services.autoscaling.model.ExitStandbyRequest;
import software.amazon.awssdk.services.autoscaling.model.ExitStandbyResponse;
import software.amazon.awssdk.services.autoscaling.model.GetPredictiveScalingForecastRequest;
import software.amazon.awssdk.services.autoscaling.model.GetPredictiveScalingForecastResponse;
import software.amazon.awssdk.services.autoscaling.model.InstanceRefreshInProgressException;
import software.amazon.awssdk.services.autoscaling.model.InvalidNextTokenException;
import software.amazon.awssdk.services.autoscaling.model.IrreversibleInstanceRefreshException;
import software.amazon.awssdk.services.autoscaling.model.LimitExceededException;
import software.amazon.awssdk.services.autoscaling.model.PutLifecycleHookRequest;
import software.amazon.awssdk.services.autoscaling.model.PutLifecycleHookResponse;
import software.amazon.awssdk.services.autoscaling.model.PutNotificationConfigurationRequest;
import software.amazon.awssdk.services.autoscaling.model.PutNotificationConfigurationResponse;
import software.amazon.awssdk.services.autoscaling.model.PutScalingPolicyRequest;
import software.amazon.awssdk.services.autoscaling.model.PutScalingPolicyResponse;
import software.amazon.awssdk.services.autoscaling.model.PutScheduledUpdateGroupActionRequest;
import software.amazon.awssdk.services.autoscaling.model.PutScheduledUpdateGroupActionResponse;
import software.amazon.awssdk.services.autoscaling.model.PutWarmPoolRequest;
import software.amazon.awssdk.services.autoscaling.model.PutWarmPoolResponse;
import software.amazon.awssdk.services.autoscaling.model.RecordLifecycleActionHeartbeatRequest;
import software.amazon.awssdk.services.autoscaling.model.RecordLifecycleActionHeartbeatResponse;
import software.amazon.awssdk.services.autoscaling.model.ResourceContentionException;
import software.amazon.awssdk.services.autoscaling.model.ResourceInUseException;
import software.amazon.awssdk.services.autoscaling.model.ResumeProcessesRequest;
import software.amazon.awssdk.services.autoscaling.model.ResumeProcessesResponse;
import software.amazon.awssdk.services.autoscaling.model.RollbackInstanceRefreshRequest;
import software.amazon.awssdk.services.autoscaling.model.RollbackInstanceRefreshResponse;
import software.amazon.awssdk.services.autoscaling.model.ScalingActivityInProgressException;
import software.amazon.awssdk.services.autoscaling.model.ServiceLinkedRoleFailureException;
import software.amazon.awssdk.services.autoscaling.model.SetDesiredCapacityRequest;
import software.amazon.awssdk.services.autoscaling.model.SetDesiredCapacityResponse;
import software.amazon.awssdk.services.autoscaling.model.SetInstanceHealthRequest;
import software.amazon.awssdk.services.autoscaling.model.SetInstanceHealthResponse;
import software.amazon.awssdk.services.autoscaling.model.SetInstanceProtectionRequest;
import software.amazon.awssdk.services.autoscaling.model.SetInstanceProtectionResponse;
import software.amazon.awssdk.services.autoscaling.model.StartInstanceRefreshRequest;
import software.amazon.awssdk.services.autoscaling.model.StartInstanceRefreshResponse;
import software.amazon.awssdk.services.autoscaling.model.SuspendProcessesRequest;
import software.amazon.awssdk.services.autoscaling.model.SuspendProcessesResponse;
import software.amazon.awssdk.services.autoscaling.model.TerminateInstanceInAutoScalingGroupRequest;
import software.amazon.awssdk.services.autoscaling.model.TerminateInstanceInAutoScalingGroupResponse;
import software.amazon.awssdk.services.autoscaling.model.UpdateAutoScalingGroupRequest;
import software.amazon.awssdk.services.autoscaling.model.UpdateAutoScalingGroupResponse;
import software.amazon.awssdk.services.autoscaling.paginators.DescribeAutoScalingGroupsIterable;
import software.amazon.awssdk.services.autoscaling.paginators.DescribeAutoScalingInstancesIterable;
import software.amazon.awssdk.services.autoscaling.paginators.DescribeInstanceRefreshesIterable;
import software.amazon.awssdk.services.autoscaling.paginators.DescribeLaunchConfigurationsIterable;
import software.amazon.awssdk.services.autoscaling.paginators.DescribeLoadBalancerTargetGroupsIterable;
import software.amazon.awssdk.services.autoscaling.paginators.DescribeLoadBalancersIterable;
import software.amazon.awssdk.services.autoscaling.paginators.DescribeNotificationConfigurationsIterable;
import software.amazon.awssdk.services.autoscaling.paginators.DescribePoliciesIterable;
import software.amazon.awssdk.services.autoscaling.paginators.DescribeScalingActivitiesIterable;
import software.amazon.awssdk.services.autoscaling.paginators.DescribeScheduledActionsIterable;
import software.amazon.awssdk.services.autoscaling.paginators.DescribeTagsIterable;
import software.amazon.awssdk.services.autoscaling.paginators.DescribeTrafficSourcesIterable;
import software.amazon.awssdk.services.autoscaling.paginators.DescribeWarmPoolIterable;
import software.amazon.awssdk.services.autoscaling.waiters.AutoScalingWaiter;

/**
 * Service client for accessing Auto Scaling. This can be created using the static {@link #builder()} method.
 *
 * Amazon EC2 Auto Scaling
 * 

* Amazon EC2 Auto Scaling is designed to automatically launch and terminate EC2 instances based on user-defined scaling * policies, scheduled actions, and health checks. *

*

* For more information, see the Amazon EC2 Auto * Scaling User Guide and the Amazon * EC2 Auto Scaling API Reference. *

*/ @Generated("software.amazon.awssdk:codegen") @SdkPublicApi @ThreadSafe public interface AutoScalingClient extends AwsClient { String SERVICE_NAME = "autoscaling"; /** * Value for looking up the service's metadata from the * {@link software.amazon.awssdk.regions.ServiceMetadataProvider}. */ String SERVICE_METADATA_ID = "autoscaling"; /** *

* Attaches one or more EC2 instances to the specified Auto Scaling group. *

*

* 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. *

*

* 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. *

*

* For more information, see Detach * or attach instances in the Amazon EC2 Auto Scaling User Guide. *

* * @param attachInstancesRequest * @return Result of the AttachInstances operation returned by the service. * @throws ResourceContentionException * You already have a pending update to an Amazon EC2 Auto Scaling resource (for example, an Auto Scaling * group, instance, or load balancer). * @throws ServiceLinkedRoleFailureException * The service-linked role is not yet ready for use. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws AutoScalingException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample AutoScalingClient.AttachInstances * @see AWS * API Documentation */ default AttachInstancesResponse attachInstances(AttachInstancesRequest attachInstancesRequest) throws ResourceContentionException, ServiceLinkedRoleFailureException, AwsServiceException, SdkClientException, AutoScalingException { throw new UnsupportedOperationException(); } /** *

* Attaches one or more EC2 instances to the specified Auto Scaling group. *

*

* 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. *

*

* 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. *

*

* For more information, see Detach * or attach instances in the Amazon EC2 Auto Scaling User Guide. *

*
*

* This is a convenience which creates an instance of the {@link AttachInstancesRequest.Builder} avoiding the need * to create one manually via {@link AttachInstancesRequest#builder()} *

* * @param attachInstancesRequest * A {@link Consumer} that will call methods on * {@link software.amazon.awssdk.services.autoscaling.model.AttachInstancesRequest.Builder} to create a * request. * @return Result of the AttachInstances operation returned by the service. * @throws ResourceContentionException * You already have a pending update to an Amazon EC2 Auto Scaling resource (for example, an Auto Scaling * group, instance, or load balancer). * @throws ServiceLinkedRoleFailureException * The service-linked role is not yet ready for use. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws AutoScalingException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample AutoScalingClient.AttachInstances * @see AWS * API Documentation */ default AttachInstancesResponse attachInstances(Consumer attachInstancesRequest) throws ResourceContentionException, ServiceLinkedRoleFailureException, AwsServiceException, SdkClientException, AutoScalingException { return attachInstances(AttachInstancesRequest.builder().applyMutation(attachInstancesRequest).build()); } /** * *

* This API operation is superseded by AttachTrafficSources, which can attach multiple traffic sources types. We recommend using * AttachTrafficSources to simplify how you manage traffic sources. However, we continue to support * AttachLoadBalancerTargetGroups. You can use both the original * AttachLoadBalancerTargetGroups API operation and AttachTrafficSources on the same Auto * Scaling group. *

*
*

* Attaches one or more target groups to the specified Auto Scaling group. *

*

* This operation is used with the following load balancer types: *

*
    *
  • *

    * Application Load Balancer - Operates at the application layer (layer 7) and supports HTTP and HTTPS. *

    *
  • *
  • *

    * Network Load Balancer - Operates at the transport layer (layer 4) and supports TCP, TLS, and UDP. *

    *
  • *
  • *

    * Gateway Load Balancer - Operates at the network layer (layer 3). *

    *
  • *
*

* To describe the target groups for an Auto Scaling group, call the DescribeLoadBalancerTargetGroups API. To detach the target group from the Auto Scaling group, call the * DetachLoadBalancerTargetGroups API. *

*

* This operation is additive and does not detach existing target groups or Classic Load Balancers from the Auto * Scaling group. *

*

* For more information, see Use Elastic Load * Balancing to distribute traffic across the instances in your Auto Scaling group in the Amazon EC2 Auto * Scaling User Guide. *

* * @param attachLoadBalancerTargetGroupsRequest * @return Result of the AttachLoadBalancerTargetGroups operation returned by the service. * @throws ResourceContentionException * You already have a pending update to an Amazon EC2 Auto Scaling resource (for example, an Auto Scaling * group, instance, or load balancer). * @throws ServiceLinkedRoleFailureException * The service-linked role is not yet ready for use. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws AutoScalingException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample AutoScalingClient.AttachLoadBalancerTargetGroups * @see AWS API Documentation */ default AttachLoadBalancerTargetGroupsResponse attachLoadBalancerTargetGroups( AttachLoadBalancerTargetGroupsRequest attachLoadBalancerTargetGroupsRequest) throws ResourceContentionException, ServiceLinkedRoleFailureException, AwsServiceException, SdkClientException, AutoScalingException { throw new UnsupportedOperationException(); } /** * *

* This API operation is superseded by AttachTrafficSources, which can attach multiple traffic sources types. We recommend using * AttachTrafficSources to simplify how you manage traffic sources. However, we continue to support * AttachLoadBalancerTargetGroups. You can use both the original * AttachLoadBalancerTargetGroups API operation and AttachTrafficSources on the same Auto * Scaling group. *

*
*

* Attaches one or more target groups to the specified Auto Scaling group. *

*

* This operation is used with the following load balancer types: *

*
    *
  • *

    * Application Load Balancer - Operates at the application layer (layer 7) and supports HTTP and HTTPS. *

    *
  • *
  • *

    * Network Load Balancer - Operates at the transport layer (layer 4) and supports TCP, TLS, and UDP. *

    *
  • *
  • *

    * Gateway Load Balancer - Operates at the network layer (layer 3). *

    *
  • *
*

* To describe the target groups for an Auto Scaling group, call the DescribeLoadBalancerTargetGroups API. To detach the target group from the Auto Scaling group, call the * DetachLoadBalancerTargetGroups API. *

*

* This operation is additive and does not detach existing target groups or Classic Load Balancers from the Auto * Scaling group. *

*

* For more information, see Use Elastic Load * Balancing to distribute traffic across the instances in your Auto Scaling group in the Amazon EC2 Auto * Scaling User Guide. *

*
*

* This is a convenience which creates an instance of the {@link AttachLoadBalancerTargetGroupsRequest.Builder} * avoiding the need to create one manually via {@link AttachLoadBalancerTargetGroupsRequest#builder()} *

* * @param attachLoadBalancerTargetGroupsRequest * A {@link Consumer} that will call methods on * {@link software.amazon.awssdk.services.autoscaling.model.AttachLoadBalancerTargetGroupsRequest.Builder} to * create a request. * @return Result of the AttachLoadBalancerTargetGroups operation returned by the service. * @throws ResourceContentionException * You already have a pending update to an Amazon EC2 Auto Scaling resource (for example, an Auto Scaling * group, instance, or load balancer). * @throws ServiceLinkedRoleFailureException * The service-linked role is not yet ready for use. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws AutoScalingException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample AutoScalingClient.AttachLoadBalancerTargetGroups * @see AWS API Documentation */ default AttachLoadBalancerTargetGroupsResponse attachLoadBalancerTargetGroups( Consumer attachLoadBalancerTargetGroupsRequest) throws ResourceContentionException, ServiceLinkedRoleFailureException, AwsServiceException, SdkClientException, AutoScalingException { return attachLoadBalancerTargetGroups(AttachLoadBalancerTargetGroupsRequest.builder() .applyMutation(attachLoadBalancerTargetGroupsRequest).build()); } /** * *

* This API operation is superseded by https://docs.aws.amazon.com/autoscaling/ec2/APIReference/API_AttachTrafficSources.html, which can attach * multiple traffic sources types. We recommend using AttachTrafficSources to simplify how you manage * traffic sources. However, we continue to support AttachLoadBalancers. You can use both the original * AttachLoadBalancers API operation and AttachTrafficSources on the same Auto Scaling * group. *

*
*

* 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. *

*

* To describe the load balancers for an Auto Scaling group, call the DescribeLoadBalancers API. To detach a load balancer from the Auto Scaling group, call the DetachLoadBalancers API. *

*

* This operation is additive and does not detach existing Classic Load Balancers or target groups from the Auto * Scaling group. *

*

* For more information, see Use Elastic Load * Balancing to distribute traffic across the instances in your Auto Scaling group in the Amazon EC2 Auto * Scaling User Guide. *

* * @param attachLoadBalancersRequest * @return Result of the AttachLoadBalancers operation returned by the service. * @throws ResourceContentionException * You already have a pending update to an Amazon EC2 Auto Scaling resource (for example, an Auto Scaling * group, instance, or load balancer). * @throws ServiceLinkedRoleFailureException * The service-linked role is not yet ready for use. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws AutoScalingException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample AutoScalingClient.AttachLoadBalancers * @see AWS API Documentation */ default AttachLoadBalancersResponse attachLoadBalancers(AttachLoadBalancersRequest attachLoadBalancersRequest) throws ResourceContentionException, ServiceLinkedRoleFailureException, AwsServiceException, SdkClientException, AutoScalingException { throw new UnsupportedOperationException(); } /** * *

* This API operation is superseded by https://docs.aws.amazon.com/autoscaling/ec2/APIReference/API_AttachTrafficSources.html, which can attach * multiple traffic sources types. We recommend using AttachTrafficSources to simplify how you manage * traffic sources. However, we continue to support AttachLoadBalancers. You can use both the original * AttachLoadBalancers API operation and AttachTrafficSources on the same Auto Scaling * group. *

*
*

* 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. *

*

* To describe the load balancers for an Auto Scaling group, call the DescribeLoadBalancers API. To detach a load balancer from the Auto Scaling group, call the DetachLoadBalancers API. *

*

* This operation is additive and does not detach existing Classic Load Balancers or target groups from the Auto * Scaling group. *

*

* For more information, see Use Elastic Load * Balancing to distribute traffic across the instances in your Auto Scaling group in the Amazon EC2 Auto * Scaling User Guide. *

*
*

* This is a convenience which creates an instance of the {@link AttachLoadBalancersRequest.Builder} avoiding the * need to create one manually via {@link AttachLoadBalancersRequest#builder()} *

* * @param attachLoadBalancersRequest * A {@link Consumer} that will call methods on * {@link software.amazon.awssdk.services.autoscaling.model.AttachLoadBalancersRequest.Builder} to create a * request. * @return Result of the AttachLoadBalancers operation returned by the service. * @throws ResourceContentionException * You already have a pending update to an Amazon EC2 Auto Scaling resource (for example, an Auto Scaling * group, instance, or load balancer). * @throws ServiceLinkedRoleFailureException * The service-linked role is not yet ready for use. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws AutoScalingException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample AutoScalingClient.AttachLoadBalancers * @see AWS API Documentation */ default AttachLoadBalancersResponse attachLoadBalancers( Consumer attachLoadBalancersRequest) throws ResourceContentionException, ServiceLinkedRoleFailureException, AwsServiceException, SdkClientException, AutoScalingException { return attachLoadBalancers(AttachLoadBalancersRequest.builder().applyMutation(attachLoadBalancersRequest).build()); } /** *

* Attaches one or more traffic sources to the specified Auto Scaling group. *

*

* You can use any of the following as traffic sources for an Auto Scaling group: *

*
    *
  • *

    * Application Load Balancer *

    *
  • *
  • *

    * Classic Load Balancer *

    *
  • *
  • *

    * Gateway Load Balancer *

    *
  • *
  • *

    * Network Load Balancer *

    *
  • *
  • *

    * VPC Lattice *

    *
  • *
*

* This operation is additive and does not detach existing traffic sources from the Auto Scaling group. *

*

* After the operation completes, use the DescribeTrafficSources 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 DetachTrafficSources API. *

* * @param attachTrafficSourcesRequest * @return Result of the AttachTrafficSources operation returned by the service. * @throws ResourceContentionException * You already have a pending update to an Amazon EC2 Auto Scaling resource (for example, an Auto Scaling * group, instance, or load balancer). * @throws ServiceLinkedRoleFailureException * The service-linked role is not yet ready for use. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws AutoScalingException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample AutoScalingClient.AttachTrafficSources * @see AWS API Documentation */ default AttachTrafficSourcesResponse attachTrafficSources(AttachTrafficSourcesRequest attachTrafficSourcesRequest) throws ResourceContentionException, ServiceLinkedRoleFailureException, AwsServiceException, SdkClientException, AutoScalingException { throw new UnsupportedOperationException(); } /** *

* Attaches one or more traffic sources to the specified Auto Scaling group. *

*

* You can use any of the following as traffic sources for an Auto Scaling group: *

*
    *
  • *

    * Application Load Balancer *

    *
  • *
  • *

    * Classic Load Balancer *

    *
  • *
  • *

    * Gateway Load Balancer *

    *
  • *
  • *

    * Network Load Balancer *

    *
  • *
  • *

    * VPC Lattice *

    *
  • *
*

* This operation is additive and does not detach existing traffic sources from the Auto Scaling group. *

*

* After the operation completes, use the DescribeTrafficSources 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 DetachTrafficSources API. *

*
*

* This is a convenience which creates an instance of the {@link AttachTrafficSourcesRequest.Builder} avoiding the * need to create one manually via {@link AttachTrafficSourcesRequest#builder()} *

* * @param attachTrafficSourcesRequest * A {@link Consumer} that will call methods on * {@link software.amazon.awssdk.services.autoscaling.model.AttachTrafficSourcesRequest.Builder} to create a * request. * @return Result of the AttachTrafficSources operation returned by the service. * @throws ResourceContentionException * You already have a pending update to an Amazon EC2 Auto Scaling resource (for example, an Auto Scaling * group, instance, or load balancer). * @throws ServiceLinkedRoleFailureException * The service-linked role is not yet ready for use. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws AutoScalingException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample AutoScalingClient.AttachTrafficSources * @see AWS API Documentation */ default AttachTrafficSourcesResponse attachTrafficSources( Consumer attachTrafficSourcesRequest) throws ResourceContentionException, ServiceLinkedRoleFailureException, AwsServiceException, SdkClientException, AutoScalingException { return attachTrafficSources(AttachTrafficSourcesRequest.builder().applyMutation(attachTrafficSourcesRequest).build()); } /** *

* Deletes one or more scheduled actions for the specified Auto Scaling group. *

* * @param batchDeleteScheduledActionRequest * @return Result of the BatchDeleteScheduledAction operation returned by the service. * @throws ResourceContentionException * You already have a pending update to an Amazon EC2 Auto Scaling resource (for example, an Auto Scaling * group, instance, or load balancer). * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws AutoScalingException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample AutoScalingClient.BatchDeleteScheduledAction * @see AWS API Documentation */ default BatchDeleteScheduledActionResponse batchDeleteScheduledAction( BatchDeleteScheduledActionRequest batchDeleteScheduledActionRequest) throws ResourceContentionException, AwsServiceException, SdkClientException, AutoScalingException { throw new UnsupportedOperationException(); } /** *

* Deletes one or more scheduled actions for the specified Auto Scaling group. *

*
*

* This is a convenience which creates an instance of the {@link BatchDeleteScheduledActionRequest.Builder} avoiding * the need to create one manually via {@link BatchDeleteScheduledActionRequest#builder()} *

* * @param batchDeleteScheduledActionRequest * A {@link Consumer} that will call methods on * {@link software.amazon.awssdk.services.autoscaling.model.BatchDeleteScheduledActionRequest.Builder} to * create a request. * @return Result of the BatchDeleteScheduledAction operation returned by the service. * @throws ResourceContentionException * You already have a pending update to an Amazon EC2 Auto Scaling resource (for example, an Auto Scaling * group, instance, or load balancer). * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws AutoScalingException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample AutoScalingClient.BatchDeleteScheduledAction * @see AWS API Documentation */ default BatchDeleteScheduledActionResponse batchDeleteScheduledAction( Consumer batchDeleteScheduledActionRequest) throws ResourceContentionException, AwsServiceException, SdkClientException, AutoScalingException { return batchDeleteScheduledAction(BatchDeleteScheduledActionRequest.builder() .applyMutation(batchDeleteScheduledActionRequest).build()); } /** *

* Creates or updates one or more scheduled scaling actions for an Auto Scaling group. *

* * @param batchPutScheduledUpdateGroupActionRequest * @return Result of the BatchPutScheduledUpdateGroupAction 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 Amazon EC2 Auto Scaling resources (for example, Auto Scaling * groups, launch configurations, or lifecycle hooks). For more information, see DescribeAccountLimits in the Amazon EC2 Auto Scaling API Reference. * @throws ResourceContentionException * You already have a pending update to an Amazon EC2 Auto Scaling resource (for example, an Auto Scaling * group, instance, or load balancer). * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws AutoScalingException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample AutoScalingClient.BatchPutScheduledUpdateGroupAction * @see AWS API Documentation */ default BatchPutScheduledUpdateGroupActionResponse batchPutScheduledUpdateGroupAction( BatchPutScheduledUpdateGroupActionRequest batchPutScheduledUpdateGroupActionRequest) throws AlreadyExistsException, LimitExceededException, ResourceContentionException, AwsServiceException, SdkClientException, AutoScalingException { throw new UnsupportedOperationException(); } /** *

* Creates or updates one or more scheduled scaling actions for an Auto Scaling group. *

*
*

* This is a convenience which creates an instance of the {@link BatchPutScheduledUpdateGroupActionRequest.Builder} * avoiding the need to create one manually via {@link BatchPutScheduledUpdateGroupActionRequest#builder()} *

* * @param batchPutScheduledUpdateGroupActionRequest * A {@link Consumer} that will call methods on * {@link software.amazon.awssdk.services.autoscaling.model.BatchPutScheduledUpdateGroupActionRequest.Builder} * to create a request. * @return Result of the BatchPutScheduledUpdateGroupAction 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 Amazon EC2 Auto Scaling resources (for example, Auto Scaling * groups, launch configurations, or lifecycle hooks). For more information, see DescribeAccountLimits in the Amazon EC2 Auto Scaling API Reference. * @throws ResourceContentionException * You already have a pending update to an Amazon EC2 Auto Scaling resource (for example, an Auto Scaling * group, instance, or load balancer). * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws AutoScalingException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample AutoScalingClient.BatchPutScheduledUpdateGroupAction * @see AWS API Documentation */ default BatchPutScheduledUpdateGroupActionResponse batchPutScheduledUpdateGroupAction( Consumer batchPutScheduledUpdateGroupActionRequest) throws AlreadyExistsException, LimitExceededException, ResourceContentionException, AwsServiceException, SdkClientException, AutoScalingException { return batchPutScheduledUpdateGroupAction(BatchPutScheduledUpdateGroupActionRequest.builder() .applyMutation(batchPutScheduledUpdateGroupActionRequest).build()); } /** *

* Cancels an instance refresh or rollback that is in progress. If an instance refresh or rollback is not in * progress, an ActiveInstanceRefreshNotFound error occurs. *

*

* This operation is part of the instance refresh * feature in Amazon EC2 Auto Scaling, which helps you update instances in your Auto Scaling group after you * make configuration changes. *

*

* When you cancel an instance refresh, this does not roll back any changes that it made. Use the RollbackInstanceRefresh API to roll back instead. *

* * @param cancelInstanceRefreshRequest * @return Result of the CancelInstanceRefresh operation returned by the service. * @throws 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 DescribeAccountLimits in the Amazon EC2 Auto Scaling API Reference. * @throws ResourceContentionException * You already have a pending update to an Amazon EC2 Auto Scaling resource (for example, an Auto Scaling * group, instance, or load balancer). * @throws ActiveInstanceRefreshNotFoundException * The request failed because an active instance refresh or rollback for the specified Auto Scaling group * was not found. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws AutoScalingException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample AutoScalingClient.CancelInstanceRefresh * @see AWS API Documentation */ default CancelInstanceRefreshResponse cancelInstanceRefresh(CancelInstanceRefreshRequest cancelInstanceRefreshRequest) throws LimitExceededException, ResourceContentionException, ActiveInstanceRefreshNotFoundException, AwsServiceException, SdkClientException, AutoScalingException { throw new UnsupportedOperationException(); } /** *

* Cancels an instance refresh or rollback that is in progress. If an instance refresh or rollback is not in * progress, an ActiveInstanceRefreshNotFound error occurs. *

*

* This operation is part of the instance refresh * feature in Amazon EC2 Auto Scaling, which helps you update instances in your Auto Scaling group after you * make configuration changes. *

*

* When you cancel an instance refresh, this does not roll back any changes that it made. Use the RollbackInstanceRefresh API to roll back instead. *

*
*

* This is a convenience which creates an instance of the {@link CancelInstanceRefreshRequest.Builder} avoiding the * need to create one manually via {@link CancelInstanceRefreshRequest#builder()} *

* * @param cancelInstanceRefreshRequest * A {@link Consumer} that will call methods on * {@link software.amazon.awssdk.services.autoscaling.model.CancelInstanceRefreshRequest.Builder} to create a * request. * @return Result of the CancelInstanceRefresh operation returned by the service. * @throws 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 DescribeAccountLimits in the Amazon EC2 Auto Scaling API Reference. * @throws ResourceContentionException * You already have a pending update to an Amazon EC2 Auto Scaling resource (for example, an Auto Scaling * group, instance, or load balancer). * @throws ActiveInstanceRefreshNotFoundException * The request failed because an active instance refresh or rollback for the specified Auto Scaling group * was not found. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws AutoScalingException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample AutoScalingClient.CancelInstanceRefresh * @see AWS API Documentation */ default CancelInstanceRefreshResponse cancelInstanceRefresh( Consumer cancelInstanceRefreshRequest) throws LimitExceededException, ResourceContentionException, ActiveInstanceRefreshNotFoundException, AwsServiceException, SdkClientException, AutoScalingException { return cancelInstanceRefresh(CancelInstanceRefreshRequest.builder().applyMutation(cancelInstanceRefreshRequest).build()); } /** *

* Completes the lifecycle action for the specified token or instance with the specified result. *

*

* This step is a part of the procedure for adding a lifecycle hook to an Auto Scaling group: *

*
    *
  1. *

    * (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. *

    *
  2. *
  3. *

    * (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. *

    *
  4. *
  5. *

    * (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. *

    *
  6. *
  7. *

    * Create the lifecycle hook. Specify whether the hook is used when the instances launch or terminate. *

    *
  8. *
  9. *

    * If you need more time, record the lifecycle action heartbeat to keep the instance in a wait state. *

    *
  10. *
  11. *

    * If you finish before the timeout period ends, send a callback by using the CompleteLifecycleAction API call. *

    *
  12. *
*

* For more information, see Complete a lifecycle * action in the Amazon EC2 Auto Scaling User Guide. *

* * @param completeLifecycleActionRequest * @return Result of the CompleteLifecycleAction operation returned by the service. * @throws ResourceContentionException * You already have a pending update to an Amazon EC2 Auto Scaling resource (for example, an Auto Scaling * group, instance, or load balancer). * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws AutoScalingException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample AutoScalingClient.CompleteLifecycleAction * @see AWS API Documentation */ default CompleteLifecycleActionResponse completeLifecycleAction(CompleteLifecycleActionRequest completeLifecycleActionRequest) throws ResourceContentionException, AwsServiceException, SdkClientException, AutoScalingException { throw new UnsupportedOperationException(); } /** *

* Completes the lifecycle action for the specified token or instance with the specified result. *

*

* This step is a part of the procedure for adding a lifecycle hook to an Auto Scaling group: *

*
    *
  1. *

    * (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. *

    *
  2. *
  3. *

    * (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. *

    *
  4. *
  5. *

    * (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. *

    *
  6. *
  7. *

    * Create the lifecycle hook. Specify whether the hook is used when the instances launch or terminate. *

    *
  8. *
  9. *

    * If you need more time, record the lifecycle action heartbeat to keep the instance in a wait state. *

    *
  10. *
  11. *

    * If you finish before the timeout period ends, send a callback by using the CompleteLifecycleAction API call. *

    *
  12. *
*

* For more information, see Complete a lifecycle * action in the Amazon EC2 Auto Scaling User Guide. *

*
*

* This is a convenience which creates an instance of the {@link CompleteLifecycleActionRequest.Builder} avoiding * the need to create one manually via {@link CompleteLifecycleActionRequest#builder()} *

* * @param completeLifecycleActionRequest * A {@link Consumer} that will call methods on * {@link software.amazon.awssdk.services.autoscaling.model.CompleteLifecycleActionRequest.Builder} to create * a request. * @return Result of the CompleteLifecycleAction operation returned by the service. * @throws ResourceContentionException * You already have a pending update to an Amazon EC2 Auto Scaling resource (for example, an Auto Scaling * group, instance, or load balancer). * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws AutoScalingException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample AutoScalingClient.CompleteLifecycleAction * @see AWS API Documentation */ default CompleteLifecycleActionResponse completeLifecycleAction( Consumer completeLifecycleActionRequest) throws ResourceContentionException, AwsServiceException, SdkClientException, AutoScalingException { return completeLifecycleAction(CompleteLifecycleActionRequest.builder().applyMutation(completeLifecycleActionRequest) .build()); } /** *

* We strongly recommend using a launch template when calling this operation to ensure full functionality for * Amazon EC2 Auto Scaling and Amazon EC2. *

*

* Creates an Auto Scaling group with the specified name and attributes. *

*

* If you exceed your maximum limit of Auto Scaling groups, the call fails. To query this limit, call the DescribeAccountLimits API. For information about updating this limit, see Quotas for Amazon EC2 * Auto Scaling in the Amazon EC2 Auto Scaling User Guide. *

*

* If you're new to Amazon EC2 Auto Scaling, see the introductory tutorials in Get started * with Amazon EC2 Auto Scaling in the Amazon EC2 Auto Scaling User Guide. *

*

* Every Auto Scaling group has three size properties (DesiredCapacity, MaxSize, and * MinSize). 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. *

* * @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 Amazon EC2 Auto Scaling resources (for example, Auto Scaling * groups, launch configurations, or lifecycle hooks). For more information, see DescribeAccountLimits in the Amazon EC2 Auto Scaling API Reference. * @throws ResourceContentionException * You already have a pending update to an Amazon EC2 Auto Scaling resource (for example, an Auto Scaling * group, instance, or load balancer). * @throws ServiceLinkedRoleFailureException * The service-linked role is not yet ready for use. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws AutoScalingException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample AutoScalingClient.CreateAutoScalingGroup * @see AWS API Documentation */ default CreateAutoScalingGroupResponse createAutoScalingGroup(CreateAutoScalingGroupRequest createAutoScalingGroupRequest) throws AlreadyExistsException, LimitExceededException, ResourceContentionException, ServiceLinkedRoleFailureException, AwsServiceException, SdkClientException, AutoScalingException { throw new UnsupportedOperationException(); } /** *

* We strongly recommend using a launch template when calling this operation to ensure full functionality for * Amazon EC2 Auto Scaling and Amazon EC2. *

*

* Creates an Auto Scaling group with the specified name and attributes. *

*

* If you exceed your maximum limit of Auto Scaling groups, the call fails. To query this limit, call the DescribeAccountLimits API. For information about updating this limit, see Quotas for Amazon EC2 * Auto Scaling in the Amazon EC2 Auto Scaling User Guide. *

*

* If you're new to Amazon EC2 Auto Scaling, see the introductory tutorials in Get started * with Amazon EC2 Auto Scaling in the Amazon EC2 Auto Scaling User Guide. *

*

* Every Auto Scaling group has three size properties (DesiredCapacity, MaxSize, and * MinSize). 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. *

*
*

* This is a convenience which creates an instance of the {@link CreateAutoScalingGroupRequest.Builder} avoiding the * need to create one manually via {@link CreateAutoScalingGroupRequest#builder()} *

* * @param createAutoScalingGroupRequest * A {@link Consumer} that will call methods on * {@link software.amazon.awssdk.services.autoscaling.model.CreateAutoScalingGroupRequest.Builder} to create * a request. * @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 Amazon EC2 Auto Scaling resources (for example, Auto Scaling * groups, launch configurations, or lifecycle hooks). For more information, see DescribeAccountLimits in the Amazon EC2 Auto Scaling API Reference. * @throws ResourceContentionException * You already have a pending update to an Amazon EC2 Auto Scaling resource (for example, an Auto Scaling * group, instance, or load balancer). * @throws ServiceLinkedRoleFailureException * The service-linked role is not yet ready for use. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws AutoScalingException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample AutoScalingClient.CreateAutoScalingGroup * @see AWS API Documentation */ default CreateAutoScalingGroupResponse createAutoScalingGroup( Consumer createAutoScalingGroupRequest) throws AlreadyExistsException, LimitExceededException, ResourceContentionException, ServiceLinkedRoleFailureException, AwsServiceException, SdkClientException, AutoScalingException { return createAutoScalingGroup(CreateAutoScalingGroupRequest.builder().applyMutation(createAutoScalingGroupRequest) .build()); } /** *

* Creates a launch configuration. *

*

* If you exceed your maximum limit of launch configurations, the call fails. To query this limit, call the DescribeAccountLimits API. For information about updating this limit, see Quotas for Amazon EC2 * Auto Scaling in the Amazon EC2 Auto Scaling User Guide. *

*

* For more information, see Launch configurations * in the Amazon EC2 Auto Scaling User Guide. *

* *

* 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 Launch * templates in the Amazon EC2 Auto Scaling User Guide. *

*
* * @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 Amazon EC2 Auto Scaling resources (for example, Auto Scaling * groups, launch configurations, or lifecycle hooks). For more information, see DescribeAccountLimits in the Amazon EC2 Auto Scaling API Reference. * @throws ResourceContentionException * You already have a pending update to an Amazon EC2 Auto Scaling resource (for example, an Auto Scaling * group, instance, or load balancer). * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws AutoScalingException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample AutoScalingClient.CreateLaunchConfiguration * @see AWS API Documentation */ default CreateLaunchConfigurationResponse createLaunchConfiguration( CreateLaunchConfigurationRequest createLaunchConfigurationRequest) throws AlreadyExistsException, LimitExceededException, ResourceContentionException, AwsServiceException, SdkClientException, AutoScalingException { throw new UnsupportedOperationException(); } /** *

* Creates a launch configuration. *

*

* If you exceed your maximum limit of launch configurations, the call fails. To query this limit, call the DescribeAccountLimits API. For information about updating this limit, see Quotas for Amazon EC2 * Auto Scaling in the Amazon EC2 Auto Scaling User Guide. *

*

* For more information, see Launch configurations * in the Amazon EC2 Auto Scaling User Guide. *

* *

* 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 Launch * templates in the Amazon EC2 Auto Scaling User Guide. *

*

*

* This is a convenience which creates an instance of the {@link CreateLaunchConfigurationRequest.Builder} avoiding * the need to create one manually via {@link CreateLaunchConfigurationRequest#builder()} *

* * @param createLaunchConfigurationRequest * A {@link Consumer} that will call methods on * {@link software.amazon.awssdk.services.autoscaling.model.CreateLaunchConfigurationRequest.Builder} to * create a request. * @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 Amazon EC2 Auto Scaling resources (for example, Auto Scaling * groups, launch configurations, or lifecycle hooks). For more information, see DescribeAccountLimits in the Amazon EC2 Auto Scaling API Reference. * @throws ResourceContentionException * You already have a pending update to an Amazon EC2 Auto Scaling resource (for example, an Auto Scaling * group, instance, or load balancer). * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws AutoScalingException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample AutoScalingClient.CreateLaunchConfiguration * @see AWS API Documentation */ default CreateLaunchConfigurationResponse createLaunchConfiguration( Consumer createLaunchConfigurationRequest) throws AlreadyExistsException, LimitExceededException, ResourceContentionException, AwsServiceException, SdkClientException, AutoScalingException { return createLaunchConfiguration(CreateLaunchConfigurationRequest.builder() .applyMutation(createLaunchConfigurationRequest).build()); } /** *

* Creates or updates tags for the specified Auto Scaling group. *

*

* 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. *

*

* For more information, see Tag Auto Scaling * groups and instances in the Amazon EC2 Auto Scaling User Guide. *

* * @param createOrUpdateTagsRequest * @return Result of the CreateOrUpdateTags operation returned by the service. * @throws 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 DescribeAccountLimits in the Amazon EC2 Auto Scaling API Reference. * @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 Amazon EC2 Auto Scaling resource (for example, an Auto Scaling * group, instance, or load balancer). * @throws ResourceInUseException * The operation can't be performed because the resource is in use. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws AutoScalingException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample AutoScalingClient.CreateOrUpdateTags * @see AWS API Documentation */ default CreateOrUpdateTagsResponse createOrUpdateTags(CreateOrUpdateTagsRequest createOrUpdateTagsRequest) throws LimitExceededException, AlreadyExistsException, ResourceContentionException, ResourceInUseException, AwsServiceException, SdkClientException, AutoScalingException { throw new UnsupportedOperationException(); } /** *

* Creates or updates tags for the specified Auto Scaling group. *

*

* 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. *

*

* For more information, see Tag Auto Scaling * groups and instances in the Amazon EC2 Auto Scaling User Guide. *

*
*

* This is a convenience which creates an instance of the {@link CreateOrUpdateTagsRequest.Builder} avoiding the * need to create one manually via {@link CreateOrUpdateTagsRequest#builder()} *

* * @param createOrUpdateTagsRequest * A {@link Consumer} that will call methods on * {@link software.amazon.awssdk.services.autoscaling.model.CreateOrUpdateTagsRequest.Builder} to create a * request. * @return Result of the CreateOrUpdateTags operation returned by the service. * @throws 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 DescribeAccountLimits in the Amazon EC2 Auto Scaling API Reference. * @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 Amazon EC2 Auto Scaling resource (for example, an Auto Scaling * group, instance, or load balancer). * @throws ResourceInUseException * The operation can't be performed because the resource is in use. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws AutoScalingException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample AutoScalingClient.CreateOrUpdateTags * @see AWS API Documentation */ default CreateOrUpdateTagsResponse createOrUpdateTags(Consumer createOrUpdateTagsRequest) throws LimitExceededException, AlreadyExistsException, ResourceContentionException, ResourceInUseException, AwsServiceException, SdkClientException, AutoScalingException { return createOrUpdateTags(CreateOrUpdateTagsRequest.builder().applyMutation(createOrUpdateTagsRequest).build()); } /** *

* Deletes the specified Auto Scaling group. *

*

* 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. *

*

* To remove instances from the Auto Scaling group before deleting it, call the DetachInstances 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. *

*

* To terminate all instances before deleting the Auto Scaling group, call the UpdateAutoScalingGroup API and set the minimum size and desired capacity of the Auto Scaling group to zero. *

*

* 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. *

*

* For more information, see Delete your Auto Scaling * infrastructure in the Amazon EC2 Auto Scaling User Guide. *

* * @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 Amazon EC2 Auto Scaling resource (for example, an Auto Scaling * group, instance, or load balancer). * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws AutoScalingException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample AutoScalingClient.DeleteAutoScalingGroup * @see AWS API Documentation */ default DeleteAutoScalingGroupResponse deleteAutoScalingGroup(DeleteAutoScalingGroupRequest deleteAutoScalingGroupRequest) throws ScalingActivityInProgressException, ResourceInUseException, ResourceContentionException, AwsServiceException, SdkClientException, AutoScalingException { throw new UnsupportedOperationException(); } /** *

* Deletes the specified Auto Scaling group. *

*

* 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. *

*

* To remove instances from the Auto Scaling group before deleting it, call the DetachInstances 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. *

*

* To terminate all instances before deleting the Auto Scaling group, call the UpdateAutoScalingGroup API and set the minimum size and desired capacity of the Auto Scaling group to zero. *

*

* 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. *

*

* For more information, see Delete your Auto Scaling * infrastructure in the Amazon EC2 Auto Scaling User Guide. *

*
*

* This is a convenience which creates an instance of the {@link DeleteAutoScalingGroupRequest.Builder} avoiding the * need to create one manually via {@link DeleteAutoScalingGroupRequest#builder()} *

* * @param deleteAutoScalingGroupRequest * A {@link Consumer} that will call methods on * {@link software.amazon.awssdk.services.autoscaling.model.DeleteAutoScalingGroupRequest.Builder} to create * a request. * @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 Amazon EC2 Auto Scaling resource (for example, an Auto Scaling * group, instance, or load balancer). * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws AutoScalingException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample AutoScalingClient.DeleteAutoScalingGroup * @see AWS API Documentation */ default DeleteAutoScalingGroupResponse deleteAutoScalingGroup( Consumer deleteAutoScalingGroupRequest) throws ScalingActivityInProgressException, ResourceInUseException, ResourceContentionException, AwsServiceException, SdkClientException, AutoScalingException { return deleteAutoScalingGroup(DeleteAutoScalingGroupRequest.builder().applyMutation(deleteAutoScalingGroupRequest) .build()); } /** *

* Deletes the specified launch configuration. *

*

* 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. *

* * @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 Amazon EC2 Auto Scaling resource (for example, an Auto Scaling * group, instance, or load balancer). * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws AutoScalingException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample AutoScalingClient.DeleteLaunchConfiguration * @see AWS API Documentation */ default DeleteLaunchConfigurationResponse deleteLaunchConfiguration( DeleteLaunchConfigurationRequest deleteLaunchConfigurationRequest) throws ResourceInUseException, ResourceContentionException, AwsServiceException, SdkClientException, AutoScalingException { throw new UnsupportedOperationException(); } /** *

* Deletes the specified launch configuration. *

*

* 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. *

*
*

* This is a convenience which creates an instance of the {@link DeleteLaunchConfigurationRequest.Builder} avoiding * the need to create one manually via {@link DeleteLaunchConfigurationRequest#builder()} *

* * @param deleteLaunchConfigurationRequest * A {@link Consumer} that will call methods on * {@link software.amazon.awssdk.services.autoscaling.model.DeleteLaunchConfigurationRequest.Builder} to * create a request. * @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 Amazon EC2 Auto Scaling resource (for example, an Auto Scaling * group, instance, or load balancer). * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws AutoScalingException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample AutoScalingClient.DeleteLaunchConfiguration * @see AWS API Documentation */ default DeleteLaunchConfigurationResponse deleteLaunchConfiguration( Consumer deleteLaunchConfigurationRequest) throws ResourceInUseException, ResourceContentionException, AwsServiceException, SdkClientException, AutoScalingException { return deleteLaunchConfiguration(DeleteLaunchConfigurationRequest.builder() .applyMutation(deleteLaunchConfigurationRequest).build()); } /** *

* Deletes the specified lifecycle hook. *

*

* If there are any outstanding lifecycle actions, they are completed first (ABANDON for launching * instances, CONTINUE for terminating instances). *

* * @param deleteLifecycleHookRequest * @return Result of the DeleteLifecycleHook operation returned by the service. * @throws ResourceContentionException * You already have a pending update to an Amazon EC2 Auto Scaling resource (for example, an Auto Scaling * group, instance, or load balancer). * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws AutoScalingException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample AutoScalingClient.DeleteLifecycleHook * @see AWS API Documentation */ default DeleteLifecycleHookResponse deleteLifecycleHook(DeleteLifecycleHookRequest deleteLifecycleHookRequest) throws ResourceContentionException, AwsServiceException, SdkClientException, AutoScalingException { throw new UnsupportedOperationException(); } /** *

* Deletes the specified lifecycle hook. *

*

* If there are any outstanding lifecycle actions, they are completed first (ABANDON for launching * instances, CONTINUE for terminating instances). *

*
*

* This is a convenience which creates an instance of the {@link DeleteLifecycleHookRequest.Builder} avoiding the * need to create one manually via {@link DeleteLifecycleHookRequest#builder()} *

* * @param deleteLifecycleHookRequest * A {@link Consumer} that will call methods on * {@link software.amazon.awssdk.services.autoscaling.model.DeleteLifecycleHookRequest.Builder} to create a * request. * @return Result of the DeleteLifecycleHook operation returned by the service. * @throws ResourceContentionException * You already have a pending update to an Amazon EC2 Auto Scaling resource (for example, an Auto Scaling * group, instance, or load balancer). * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws AutoScalingException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample AutoScalingClient.DeleteLifecycleHook * @see AWS API Documentation */ default DeleteLifecycleHookResponse deleteLifecycleHook( Consumer deleteLifecycleHookRequest) throws ResourceContentionException, AwsServiceException, SdkClientException, AutoScalingException { return deleteLifecycleHook(DeleteLifecycleHookRequest.builder().applyMutation(deleteLifecycleHookRequest).build()); } /** *

* Deletes the specified notification. *

* * @param deleteNotificationConfigurationRequest * @return Result of the DeleteNotificationConfiguration operation returned by the service. * @throws ResourceContentionException * You already have a pending update to an Amazon EC2 Auto Scaling resource (for example, an Auto Scaling * group, instance, or load balancer). * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws AutoScalingException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample AutoScalingClient.DeleteNotificationConfiguration * @see AWS API Documentation */ default DeleteNotificationConfigurationResponse deleteNotificationConfiguration( DeleteNotificationConfigurationRequest deleteNotificationConfigurationRequest) throws ResourceContentionException, AwsServiceException, SdkClientException, AutoScalingException { throw new UnsupportedOperationException(); } /** *

* Deletes the specified notification. *

*
*

* This is a convenience which creates an instance of the {@link DeleteNotificationConfigurationRequest.Builder} * avoiding the need to create one manually via {@link DeleteNotificationConfigurationRequest#builder()} *

* * @param deleteNotificationConfigurationRequest * A {@link Consumer} that will call methods on * {@link software.amazon.awssdk.services.autoscaling.model.DeleteNotificationConfigurationRequest.Builder} * to create a request. * @return Result of the DeleteNotificationConfiguration operation returned by the service. * @throws ResourceContentionException * You already have a pending update to an Amazon EC2 Auto Scaling resource (for example, an Auto Scaling * group, instance, or load balancer). * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws AutoScalingException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample AutoScalingClient.DeleteNotificationConfiguration * @see AWS API Documentation */ default DeleteNotificationConfigurationResponse deleteNotificationConfiguration( Consumer deleteNotificationConfigurationRequest) throws ResourceContentionException, AwsServiceException, SdkClientException, AutoScalingException { return deleteNotificationConfiguration(DeleteNotificationConfigurationRequest.builder() .applyMutation(deleteNotificationConfigurationRequest).build()); } /** *

* Deletes the specified scaling policy. *

*

* 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. *

*

* For more information, see Delete a scaling * policy in the Amazon EC2 Auto Scaling User Guide. *

* * @param deletePolicyRequest * @return Result of the DeletePolicy operation returned by the service. * @throws ResourceContentionException * You already have a pending update to an Amazon EC2 Auto Scaling resource (for example, an Auto Scaling * group, instance, or load balancer). * @throws ServiceLinkedRoleFailureException * The service-linked role is not yet ready for use. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws AutoScalingException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample AutoScalingClient.DeletePolicy * @see AWS API * Documentation */ default DeletePolicyResponse deletePolicy(DeletePolicyRequest deletePolicyRequest) throws ResourceContentionException, ServiceLinkedRoleFailureException, AwsServiceException, SdkClientException, AutoScalingException { throw new UnsupportedOperationException(); } /** *

* Deletes the specified scaling policy. *

*

* 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. *

*

* For more information, see Delete a scaling * policy in the Amazon EC2 Auto Scaling User Guide. *

*
*

* This is a convenience which creates an instance of the {@link DeletePolicyRequest.Builder} avoiding the need to * create one manually via {@link DeletePolicyRequest#builder()} *

* * @param deletePolicyRequest * A {@link Consumer} that will call methods on * {@link software.amazon.awssdk.services.autoscaling.model.DeletePolicyRequest.Builder} to create a request. * @return Result of the DeletePolicy operation returned by the service. * @throws ResourceContentionException * You already have a pending update to an Amazon EC2 Auto Scaling resource (for example, an Auto Scaling * group, instance, or load balancer). * @throws ServiceLinkedRoleFailureException * The service-linked role is not yet ready for use. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws AutoScalingException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample AutoScalingClient.DeletePolicy * @see AWS API * Documentation */ default DeletePolicyResponse deletePolicy(Consumer deletePolicyRequest) throws ResourceContentionException, ServiceLinkedRoleFailureException, AwsServiceException, SdkClientException, AutoScalingException { return deletePolicy(DeletePolicyRequest.builder().applyMutation(deletePolicyRequest).build()); } /** *

* Deletes the specified scheduled action. *

* * @param deleteScheduledActionRequest * @return Result of the DeleteScheduledAction operation returned by the service. * @throws ResourceContentionException * You already have a pending update to an Amazon EC2 Auto Scaling resource (for example, an Auto Scaling * group, instance, or load balancer). * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws AutoScalingException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample AutoScalingClient.DeleteScheduledAction * @see AWS API Documentation */ default DeleteScheduledActionResponse deleteScheduledAction(DeleteScheduledActionRequest deleteScheduledActionRequest) throws ResourceContentionException, AwsServiceException, SdkClientException, AutoScalingException { throw new UnsupportedOperationException(); } /** *

* Deletes the specified scheduled action. *

*
*

* This is a convenience which creates an instance of the {@link DeleteScheduledActionRequest.Builder} avoiding the * need to create one manually via {@link DeleteScheduledActionRequest#builder()} *

* * @param deleteScheduledActionRequest * A {@link Consumer} that will call methods on * {@link software.amazon.awssdk.services.autoscaling.model.DeleteScheduledActionRequest.Builder} to create a * request. * @return Result of the DeleteScheduledAction operation returned by the service. * @throws ResourceContentionException * You already have a pending update to an Amazon EC2 Auto Scaling resource (for example, an Auto Scaling * group, instance, or load balancer). * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws AutoScalingException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample AutoScalingClient.DeleteScheduledAction * @see AWS API Documentation */ default DeleteScheduledActionResponse deleteScheduledAction( Consumer deleteScheduledActionRequest) throws ResourceContentionException, AwsServiceException, SdkClientException, AutoScalingException { return deleteScheduledAction(DeleteScheduledActionRequest.builder().applyMutation(deleteScheduledActionRequest).build()); } /** *

* Deletes the specified tags. *

* * @param deleteTagsRequest * @return Result of the DeleteTags operation returned by the service. * @throws ResourceContentionException * You already have a pending update to an Amazon EC2 Auto Scaling resource (for example, an Auto Scaling * group, instance, or load balancer). * @throws ResourceInUseException * The operation can't be performed because the resource is in use. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws AutoScalingException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample AutoScalingClient.DeleteTags * @see AWS API * Documentation */ default DeleteTagsResponse deleteTags(DeleteTagsRequest deleteTagsRequest) throws ResourceContentionException, ResourceInUseException, AwsServiceException, SdkClientException, AutoScalingException { throw new UnsupportedOperationException(); } /** *

* Deletes the specified tags. *

*
*

* This is a convenience which creates an instance of the {@link DeleteTagsRequest.Builder} avoiding the need to * create one manually via {@link DeleteTagsRequest#builder()} *

* * @param deleteTagsRequest * A {@link Consumer} that will call methods on * {@link software.amazon.awssdk.services.autoscaling.model.DeleteTagsRequest.Builder} to create a request. * @return Result of the DeleteTags operation returned by the service. * @throws ResourceContentionException * You already have a pending update to an Amazon EC2 Auto Scaling resource (for example, an Auto Scaling * group, instance, or load balancer). * @throws ResourceInUseException * The operation can't be performed because the resource is in use. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws AutoScalingException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample AutoScalingClient.DeleteTags * @see AWS API * Documentation */ default DeleteTagsResponse deleteTags(Consumer deleteTagsRequest) throws ResourceContentionException, ResourceInUseException, AwsServiceException, SdkClientException, AutoScalingException { return deleteTags(DeleteTagsRequest.builder().applyMutation(deleteTagsRequest).build()); } /** *

* Deletes the warm pool for the specified Auto Scaling group. *

*

* For more information, see Warm pools for * Amazon EC2 Auto Scaling in the Amazon EC2 Auto Scaling User Guide. *

* * @param deleteWarmPoolRequest * @return Result of the DeleteWarmPool operation returned by the service. * @throws 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 DescribeAccountLimits in the Amazon EC2 Auto Scaling API Reference. * @throws ResourceContentionException * You already have a pending update to an Amazon EC2 Auto Scaling resource (for example, an Auto Scaling * group, instance, or load balancer). * @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 SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws AutoScalingException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample AutoScalingClient.DeleteWarmPool * @see AWS * API Documentation */ default DeleteWarmPoolResponse deleteWarmPool(DeleteWarmPoolRequest deleteWarmPoolRequest) throws LimitExceededException, ResourceContentionException, ScalingActivityInProgressException, ResourceInUseException, AwsServiceException, SdkClientException, AutoScalingException { throw new UnsupportedOperationException(); } /** *

* Deletes the warm pool for the specified Auto Scaling group. *

*

* For more information, see Warm pools for * Amazon EC2 Auto Scaling in the Amazon EC2 Auto Scaling User Guide. *

*
*

* This is a convenience which creates an instance of the {@link DeleteWarmPoolRequest.Builder} avoiding the need to * create one manually via {@link DeleteWarmPoolRequest#builder()} *

* * @param deleteWarmPoolRequest * A {@link Consumer} that will call methods on * {@link software.amazon.awssdk.services.autoscaling.model.DeleteWarmPoolRequest.Builder} to create a * request. * @return Result of the DeleteWarmPool operation returned by the service. * @throws 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 DescribeAccountLimits in the Amazon EC2 Auto Scaling API Reference. * @throws ResourceContentionException * You already have a pending update to an Amazon EC2 Auto Scaling resource (for example, an Auto Scaling * group, instance, or load balancer). * @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 SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws AutoScalingException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample AutoScalingClient.DeleteWarmPool * @see AWS * API Documentation */ default DeleteWarmPoolResponse deleteWarmPool(Consumer deleteWarmPoolRequest) throws LimitExceededException, ResourceContentionException, ScalingActivityInProgressException, ResourceInUseException, AwsServiceException, SdkClientException, AutoScalingException { return deleteWarmPool(DeleteWarmPoolRequest.builder().applyMutation(deleteWarmPoolRequest).build()); } /** *

* Describes the current Amazon EC2 Auto Scaling resource quotas for your account. *

*

* 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 Quotas for Amazon EC2 * Auto Scaling in the Amazon EC2 Auto Scaling User Guide. *

* * @param describeAccountLimitsRequest * @return Result of the DescribeAccountLimits operation returned by the service. * @throws ResourceContentionException * You already have a pending update to an Amazon EC2 Auto Scaling resource (for example, an Auto Scaling * group, instance, or load balancer). * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws AutoScalingException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample AutoScalingClient.DescribeAccountLimits * @see AWS API Documentation */ default DescribeAccountLimitsResponse describeAccountLimits(DescribeAccountLimitsRequest describeAccountLimitsRequest) throws ResourceContentionException, AwsServiceException, SdkClientException, AutoScalingException { throw new UnsupportedOperationException(); } /** *

* Describes the current Amazon EC2 Auto Scaling resource quotas for your account. *

*

* 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 Quotas for Amazon EC2 * Auto Scaling in the Amazon EC2 Auto Scaling User Guide. *

*
*

* This is a convenience which creates an instance of the {@link DescribeAccountLimitsRequest.Builder} avoiding the * need to create one manually via {@link DescribeAccountLimitsRequest#builder()} *

* * @param describeAccountLimitsRequest * A {@link Consumer} that will call methods on * {@link software.amazon.awssdk.services.autoscaling.model.DescribeAccountLimitsRequest.Builder} to create a * request. * @return Result of the DescribeAccountLimits operation returned by the service. * @throws ResourceContentionException * You already have a pending update to an Amazon EC2 Auto Scaling resource (for example, an Auto Scaling * group, instance, or load balancer). * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws AutoScalingException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample AutoScalingClient.DescribeAccountLimits * @see AWS API Documentation */ default DescribeAccountLimitsResponse describeAccountLimits( Consumer describeAccountLimitsRequest) throws ResourceContentionException, AwsServiceException, SdkClientException, AutoScalingException { return describeAccountLimits(DescribeAccountLimitsRequest.builder().applyMutation(describeAccountLimitsRequest).build()); } /** *

* Describes the current Amazon EC2 Auto Scaling resource quotas for your account. *

*

* 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 Quotas for Amazon EC2 * Auto Scaling in the Amazon EC2 Auto Scaling User Guide. *

* * @return Result of the DescribeAccountLimits operation returned by the service. * @throws ResourceContentionException * You already have a pending update to an Amazon EC2 Auto Scaling resource (for example, an Auto Scaling * group, instance, or load balancer). * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws AutoScalingException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample AutoScalingClient.DescribeAccountLimits * @see #describeAccountLimits(DescribeAccountLimitsRequest) * @see AWS API Documentation */ default DescribeAccountLimitsResponse describeAccountLimits() throws ResourceContentionException, AwsServiceException, SdkClientException, AutoScalingException { return describeAccountLimits(DescribeAccountLimitsRequest.builder().build()); } /** *

* Describes the available adjustment types for step scaling and simple scaling policies. *

*

* The following adjustment types are supported: *

*
    *
  • *

    * ChangeInCapacity *

    *
  • *
  • *

    * ExactCapacity *

    *
  • *
  • *

    * PercentChangeInCapacity *

    *
  • *
* * @param describeAdjustmentTypesRequest * @return Result of the DescribeAdjustmentTypes operation returned by the service. * @throws ResourceContentionException * You already have a pending update to an Amazon EC2 Auto Scaling resource (for example, an Auto Scaling * group, instance, or load balancer). * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws AutoScalingException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample AutoScalingClient.DescribeAdjustmentTypes * @see AWS API Documentation */ default DescribeAdjustmentTypesResponse describeAdjustmentTypes(DescribeAdjustmentTypesRequest describeAdjustmentTypesRequest) throws ResourceContentionException, AwsServiceException, SdkClientException, AutoScalingException { throw new UnsupportedOperationException(); } /** *

* Describes the available adjustment types for step scaling and simple scaling policies. *

*

* The following adjustment types are supported: *

*
    *
  • *

    * ChangeInCapacity *

    *
  • *
  • *

    * ExactCapacity *

    *
  • *
  • *

    * PercentChangeInCapacity *

    *
  • *
*
*

* This is a convenience which creates an instance of the {@link DescribeAdjustmentTypesRequest.Builder} avoiding * the need to create one manually via {@link DescribeAdjustmentTypesRequest#builder()} *

* * @param describeAdjustmentTypesRequest * A {@link Consumer} that will call methods on * {@link software.amazon.awssdk.services.autoscaling.model.DescribeAdjustmentTypesRequest.Builder} to create * a request. * @return Result of the DescribeAdjustmentTypes operation returned by the service. * @throws ResourceContentionException * You already have a pending update to an Amazon EC2 Auto Scaling resource (for example, an Auto Scaling * group, instance, or load balancer). * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws AutoScalingException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample AutoScalingClient.DescribeAdjustmentTypes * @see AWS API Documentation */ default DescribeAdjustmentTypesResponse describeAdjustmentTypes( Consumer describeAdjustmentTypesRequest) throws ResourceContentionException, AwsServiceException, SdkClientException, AutoScalingException { return describeAdjustmentTypes(DescribeAdjustmentTypesRequest.builder().applyMutation(describeAdjustmentTypesRequest) .build()); } /** *

* Describes the available adjustment types for step scaling and simple scaling policies. *

*

* The following adjustment types are supported: *

*
    *
  • *

    * ChangeInCapacity *

    *
  • *
  • *

    * ExactCapacity *

    *
  • *
  • *

    * PercentChangeInCapacity *

    *
  • *
* * @return Result of the DescribeAdjustmentTypes operation returned by the service. * @throws ResourceContentionException * You already have a pending update to an Amazon EC2 Auto Scaling resource (for example, an Auto Scaling * group, instance, or load balancer). * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws AutoScalingException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample AutoScalingClient.DescribeAdjustmentTypes * @see #describeAdjustmentTypes(DescribeAdjustmentTypesRequest) * @see AWS API Documentation */ default DescribeAdjustmentTypesResponse describeAdjustmentTypes() throws ResourceContentionException, AwsServiceException, SdkClientException, AutoScalingException { return describeAdjustmentTypes(DescribeAdjustmentTypesRequest.builder().build()); } /** *

* Gets information about the Auto Scaling groups in the account and Region. *

*

* 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. *

*

* 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 DescribeWarmPool * API. *

* * @param describeAutoScalingGroupsRequest * @return Result of the DescribeAutoScalingGroups operation returned by the service. * @throws InvalidNextTokenException * The NextToken value is not valid. * @throws ResourceContentionException * You already have a pending update to an Amazon EC2 Auto Scaling resource (for example, an Auto Scaling * group, instance, or load balancer). * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws AutoScalingException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample AutoScalingClient.DescribeAutoScalingGroups * @see AWS API Documentation */ default DescribeAutoScalingGroupsResponse describeAutoScalingGroups( DescribeAutoScalingGroupsRequest describeAutoScalingGroupsRequest) throws InvalidNextTokenException, ResourceContentionException, AwsServiceException, SdkClientException, AutoScalingException { throw new UnsupportedOperationException(); } /** *

* Gets information about the Auto Scaling groups in the account and Region. *

*

* 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. *

*

* 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 DescribeWarmPool * API. *

*
*

* This is a convenience which creates an instance of the {@link DescribeAutoScalingGroupsRequest.Builder} avoiding * the need to create one manually via {@link DescribeAutoScalingGroupsRequest#builder()} *

* * @param describeAutoScalingGroupsRequest * A {@link Consumer} that will call methods on * {@link software.amazon.awssdk.services.autoscaling.model.DescribeAutoScalingGroupsRequest.Builder} to * create a request. * @return Result of the DescribeAutoScalingGroups operation returned by the service. * @throws InvalidNextTokenException * The NextToken value is not valid. * @throws ResourceContentionException * You already have a pending update to an Amazon EC2 Auto Scaling resource (for example, an Auto Scaling * group, instance, or load balancer). * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws AutoScalingException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample AutoScalingClient.DescribeAutoScalingGroups * @see AWS API Documentation */ default DescribeAutoScalingGroupsResponse describeAutoScalingGroups( Consumer describeAutoScalingGroupsRequest) throws InvalidNextTokenException, ResourceContentionException, AwsServiceException, SdkClientException, AutoScalingException { return describeAutoScalingGroups(DescribeAutoScalingGroupsRequest.builder() .applyMutation(describeAutoScalingGroupsRequest).build()); } /** *

* Gets information about the Auto Scaling groups in the account and Region. *

*

* 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. *

*

* 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 DescribeWarmPool * API. *

* * @return Result of the DescribeAutoScalingGroups operation returned by the service. * @throws InvalidNextTokenException * The NextToken value is not valid. * @throws ResourceContentionException * You already have a pending update to an Amazon EC2 Auto Scaling resource (for example, an Auto Scaling * group, instance, or load balancer). * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws AutoScalingException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample AutoScalingClient.DescribeAutoScalingGroups * @see #describeAutoScalingGroups(DescribeAutoScalingGroupsRequest) * @see AWS API Documentation */ default DescribeAutoScalingGroupsResponse describeAutoScalingGroups() throws InvalidNextTokenException, ResourceContentionException, AwsServiceException, SdkClientException, AutoScalingException { return describeAutoScalingGroups(DescribeAutoScalingGroupsRequest.builder().build()); } /** *

* This is a variant of * {@link #describeAutoScalingGroups(software.amazon.awssdk.services.autoscaling.model.DescribeAutoScalingGroupsRequest)} * operation. The return type is a custom iterable that can be used to iterate through all the pages. SDK will * internally handle making service calls for you. *

*

* When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no * guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response * pages by making service calls until there are no pages left or your iteration stops. If there are errors in your * request, you will see the failures only after you start iterating through the iterable. *

* *

* The following are few ways to iterate through the response pages: *

* 1) Using a Stream * *
     * {@code
     * software.amazon.awssdk.services.autoscaling.paginators.DescribeAutoScalingGroupsIterable responses = client.describeAutoScalingGroupsPaginator(request);
     * responses.stream().forEach(....);
     * }
     * 
* * 2) Using For loop * *
     * {
     *     @code
     *     software.amazon.awssdk.services.autoscaling.paginators.DescribeAutoScalingGroupsIterable responses = client
     *             .describeAutoScalingGroupsPaginator(request);
     *     for (software.amazon.awssdk.services.autoscaling.model.DescribeAutoScalingGroupsResponse response : responses) {
     *         // do something;
     *     }
     * }
     * 
* * 3) Use iterator directly * *
     * {@code
     * software.amazon.awssdk.services.autoscaling.paginators.DescribeAutoScalingGroupsIterable responses = client.describeAutoScalingGroupsPaginator(request);
     * responses.iterator().forEachRemaining(....);
     * }
     * 
*

* Please notice that the configuration of MaxRecords won't limit the number of results you get with the * paginator. It only limits the number of results in each page. *

*

* Note: If you prefer to have control on service calls, use the * {@link #describeAutoScalingGroups(software.amazon.awssdk.services.autoscaling.model.DescribeAutoScalingGroupsRequest)} * operation. *

* * @return A custom iterable that can be used to iterate through all the response pages. * @throws InvalidNextTokenException * The NextToken value is not valid. * @throws ResourceContentionException * You already have a pending update to an Amazon EC2 Auto Scaling resource (for example, an Auto Scaling * group, instance, or load balancer). * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws AutoScalingException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample AutoScalingClient.DescribeAutoScalingGroups * @see #describeAutoScalingGroupsPaginator(DescribeAutoScalingGroupsRequest) * @see AWS API Documentation */ default DescribeAutoScalingGroupsIterable describeAutoScalingGroupsPaginator() throws InvalidNextTokenException, ResourceContentionException, AwsServiceException, SdkClientException, AutoScalingException { return describeAutoScalingGroupsPaginator(DescribeAutoScalingGroupsRequest.builder().build()); } /** *

* This is a variant of * {@link #describeAutoScalingGroups(software.amazon.awssdk.services.autoscaling.model.DescribeAutoScalingGroupsRequest)} * operation. The return type is a custom iterable that can be used to iterate through all the pages. SDK will * internally handle making service calls for you. *

*

* When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no * guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response * pages by making service calls until there are no pages left or your iteration stops. If there are errors in your * request, you will see the failures only after you start iterating through the iterable. *

* *

* The following are few ways to iterate through the response pages: *

* 1) Using a Stream * *
     * {@code
     * software.amazon.awssdk.services.autoscaling.paginators.DescribeAutoScalingGroupsIterable responses = client.describeAutoScalingGroupsPaginator(request);
     * responses.stream().forEach(....);
     * }
     * 
* * 2) Using For loop * *
     * {
     *     @code
     *     software.amazon.awssdk.services.autoscaling.paginators.DescribeAutoScalingGroupsIterable responses = client
     *             .describeAutoScalingGroupsPaginator(request);
     *     for (software.amazon.awssdk.services.autoscaling.model.DescribeAutoScalingGroupsResponse response : responses) {
     *         // do something;
     *     }
     * }
     * 
* * 3) Use iterator directly * *
     * {@code
     * software.amazon.awssdk.services.autoscaling.paginators.DescribeAutoScalingGroupsIterable responses = client.describeAutoScalingGroupsPaginator(request);
     * responses.iterator().forEachRemaining(....);
     * }
     * 
*

* Please notice that the configuration of MaxRecords won't limit the number of results you get with the * paginator. It only limits the number of results in each page. *

*

* Note: If you prefer to have control on service calls, use the * {@link #describeAutoScalingGroups(software.amazon.awssdk.services.autoscaling.model.DescribeAutoScalingGroupsRequest)} * operation. *

* * @param describeAutoScalingGroupsRequest * @return A custom iterable that can be used to iterate through all the response pages. * @throws InvalidNextTokenException * The NextToken value is not valid. * @throws ResourceContentionException * You already have a pending update to an Amazon EC2 Auto Scaling resource (for example, an Auto Scaling * group, instance, or load balancer). * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws AutoScalingException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample AutoScalingClient.DescribeAutoScalingGroups * @see AWS API Documentation */ default DescribeAutoScalingGroupsIterable describeAutoScalingGroupsPaginator( DescribeAutoScalingGroupsRequest describeAutoScalingGroupsRequest) throws InvalidNextTokenException, ResourceContentionException, AwsServiceException, SdkClientException, AutoScalingException { return new DescribeAutoScalingGroupsIterable(this, describeAutoScalingGroupsRequest); } /** *

* This is a variant of * {@link #describeAutoScalingGroups(software.amazon.awssdk.services.autoscaling.model.DescribeAutoScalingGroupsRequest)} * operation. The return type is a custom iterable that can be used to iterate through all the pages. SDK will * internally handle making service calls for you. *

*

* When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no * guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response * pages by making service calls until there are no pages left or your iteration stops. If there are errors in your * request, you will see the failures only after you start iterating through the iterable. *

* *

* The following are few ways to iterate through the response pages: *

* 1) Using a Stream * *
     * {@code
     * software.amazon.awssdk.services.autoscaling.paginators.DescribeAutoScalingGroupsIterable responses = client.describeAutoScalingGroupsPaginator(request);
     * responses.stream().forEach(....);
     * }
     * 
* * 2) Using For loop * *
     * {
     *     @code
     *     software.amazon.awssdk.services.autoscaling.paginators.DescribeAutoScalingGroupsIterable responses = client
     *             .describeAutoScalingGroupsPaginator(request);
     *     for (software.amazon.awssdk.services.autoscaling.model.DescribeAutoScalingGroupsResponse response : responses) {
     *         // do something;
     *     }
     * }
     * 
* * 3) Use iterator directly * *
     * {@code
     * software.amazon.awssdk.services.autoscaling.paginators.DescribeAutoScalingGroupsIterable responses = client.describeAutoScalingGroupsPaginator(request);
     * responses.iterator().forEachRemaining(....);
     * }
     * 
*

* Please notice that the configuration of MaxRecords won't limit the number of results you get with the * paginator. It only limits the number of results in each page. *

*

* Note: If you prefer to have control on service calls, use the * {@link #describeAutoScalingGroups(software.amazon.awssdk.services.autoscaling.model.DescribeAutoScalingGroupsRequest)} * operation. *

*
*

* This is a convenience which creates an instance of the {@link DescribeAutoScalingGroupsRequest.Builder} avoiding * the need to create one manually via {@link DescribeAutoScalingGroupsRequest#builder()} *

* * @param describeAutoScalingGroupsRequest * A {@link Consumer} that will call methods on * {@link software.amazon.awssdk.services.autoscaling.model.DescribeAutoScalingGroupsRequest.Builder} to * create a request. * @return A custom iterable that can be used to iterate through all the response pages. * @throws InvalidNextTokenException * The NextToken value is not valid. * @throws ResourceContentionException * You already have a pending update to an Amazon EC2 Auto Scaling resource (for example, an Auto Scaling * group, instance, or load balancer). * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws AutoScalingException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample AutoScalingClient.DescribeAutoScalingGroups * @see AWS API Documentation */ default DescribeAutoScalingGroupsIterable describeAutoScalingGroupsPaginator( Consumer describeAutoScalingGroupsRequest) throws InvalidNextTokenException, ResourceContentionException, AwsServiceException, SdkClientException, AutoScalingException { return describeAutoScalingGroupsPaginator(DescribeAutoScalingGroupsRequest.builder() .applyMutation(describeAutoScalingGroupsRequest).build()); } /** *

* Gets information about the Auto Scaling instances in the account and Region. *

* * @param describeAutoScalingInstancesRequest * @return Result of the DescribeAutoScalingInstances operation returned by the service. * @throws InvalidNextTokenException * The NextToken value is not valid. * @throws ResourceContentionException * You already have a pending update to an Amazon EC2 Auto Scaling resource (for example, an Auto Scaling * group, instance, or load balancer). * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws AutoScalingException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample AutoScalingClient.DescribeAutoScalingInstances * @see AWS API Documentation */ default DescribeAutoScalingInstancesResponse describeAutoScalingInstances( DescribeAutoScalingInstancesRequest describeAutoScalingInstancesRequest) throws InvalidNextTokenException, ResourceContentionException, AwsServiceException, SdkClientException, AutoScalingException { throw new UnsupportedOperationException(); } /** *

* Gets information about the Auto Scaling instances in the account and Region. *

*
*

* This is a convenience which creates an instance of the {@link DescribeAutoScalingInstancesRequest.Builder} * avoiding the need to create one manually via {@link DescribeAutoScalingInstancesRequest#builder()} *

* * @param describeAutoScalingInstancesRequest * A {@link Consumer} that will call methods on * {@link software.amazon.awssdk.services.autoscaling.model.DescribeAutoScalingInstancesRequest.Builder} to * create a request. * @return Result of the DescribeAutoScalingInstances operation returned by the service. * @throws InvalidNextTokenException * The NextToken value is not valid. * @throws ResourceContentionException * You already have a pending update to an Amazon EC2 Auto Scaling resource (for example, an Auto Scaling * group, instance, or load balancer). * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws AutoScalingException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample AutoScalingClient.DescribeAutoScalingInstances * @see AWS API Documentation */ default DescribeAutoScalingInstancesResponse describeAutoScalingInstances( Consumer describeAutoScalingInstancesRequest) throws InvalidNextTokenException, ResourceContentionException, AwsServiceException, SdkClientException, AutoScalingException { return describeAutoScalingInstances(DescribeAutoScalingInstancesRequest.builder() .applyMutation(describeAutoScalingInstancesRequest).build()); } /** *

* Gets information about the Auto Scaling instances in the account and Region. *

* * @return Result of the DescribeAutoScalingInstances operation returned by the service. * @throws InvalidNextTokenException * The NextToken value is not valid. * @throws ResourceContentionException * You already have a pending update to an Amazon EC2 Auto Scaling resource (for example, an Auto Scaling * group, instance, or load balancer). * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws AutoScalingException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample AutoScalingClient.DescribeAutoScalingInstances * @see #describeAutoScalingInstances(DescribeAutoScalingInstancesRequest) * @see AWS API Documentation */ default DescribeAutoScalingInstancesResponse describeAutoScalingInstances() throws InvalidNextTokenException, ResourceContentionException, AwsServiceException, SdkClientException, AutoScalingException { return describeAutoScalingInstances(DescribeAutoScalingInstancesRequest.builder().build()); } /** *

* This is a variant of * {@link #describeAutoScalingInstances(software.amazon.awssdk.services.autoscaling.model.DescribeAutoScalingInstancesRequest)} * operation. The return type is a custom iterable that can be used to iterate through all the pages. SDK will * internally handle making service calls for you. *

*

* When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no * guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response * pages by making service calls until there are no pages left or your iteration stops. If there are errors in your * request, you will see the failures only after you start iterating through the iterable. *

* *

* The following are few ways to iterate through the response pages: *

* 1) Using a Stream * *
     * {@code
     * software.amazon.awssdk.services.autoscaling.paginators.DescribeAutoScalingInstancesIterable responses = client.describeAutoScalingInstancesPaginator(request);
     * responses.stream().forEach(....);
     * }
     * 
* * 2) Using For loop * *
     * {
     *     @code
     *     software.amazon.awssdk.services.autoscaling.paginators.DescribeAutoScalingInstancesIterable responses = client
     *             .describeAutoScalingInstancesPaginator(request);
     *     for (software.amazon.awssdk.services.autoscaling.model.DescribeAutoScalingInstancesResponse response : responses) {
     *         // do something;
     *     }
     * }
     * 
* * 3) Use iterator directly * *
     * {@code
     * software.amazon.awssdk.services.autoscaling.paginators.DescribeAutoScalingInstancesIterable responses = client.describeAutoScalingInstancesPaginator(request);
     * responses.iterator().forEachRemaining(....);
     * }
     * 
*

* Please notice that the configuration of MaxRecords won't limit the number of results you get with the * paginator. It only limits the number of results in each page. *

*

* Note: If you prefer to have control on service calls, use the * {@link #describeAutoScalingInstances(software.amazon.awssdk.services.autoscaling.model.DescribeAutoScalingInstancesRequest)} * operation. *

* * @return A custom iterable that can be used to iterate through all the response pages. * @throws InvalidNextTokenException * The NextToken value is not valid. * @throws ResourceContentionException * You already have a pending update to an Amazon EC2 Auto Scaling resource (for example, an Auto Scaling * group, instance, or load balancer). * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws AutoScalingException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample AutoScalingClient.DescribeAutoScalingInstances * @see #describeAutoScalingInstancesPaginator(DescribeAutoScalingInstancesRequest) * @see AWS API Documentation */ default DescribeAutoScalingInstancesIterable describeAutoScalingInstancesPaginator() throws InvalidNextTokenException, ResourceContentionException, AwsServiceException, SdkClientException, AutoScalingException { return describeAutoScalingInstancesPaginator(DescribeAutoScalingInstancesRequest.builder().build()); } /** *

* This is a variant of * {@link #describeAutoScalingInstances(software.amazon.awssdk.services.autoscaling.model.DescribeAutoScalingInstancesRequest)} * operation. The return type is a custom iterable that can be used to iterate through all the pages. SDK will * internally handle making service calls for you. *

*

* When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no * guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response * pages by making service calls until there are no pages left or your iteration stops. If there are errors in your * request, you will see the failures only after you start iterating through the iterable. *

* *

* The following are few ways to iterate through the response pages: *

* 1) Using a Stream * *
     * {@code
     * software.amazon.awssdk.services.autoscaling.paginators.DescribeAutoScalingInstancesIterable responses = client.describeAutoScalingInstancesPaginator(request);
     * responses.stream().forEach(....);
     * }
     * 
* * 2) Using For loop * *
     * {
     *     @code
     *     software.amazon.awssdk.services.autoscaling.paginators.DescribeAutoScalingInstancesIterable responses = client
     *             .describeAutoScalingInstancesPaginator(request);
     *     for (software.amazon.awssdk.services.autoscaling.model.DescribeAutoScalingInstancesResponse response : responses) {
     *         // do something;
     *     }
     * }
     * 
* * 3) Use iterator directly * *
     * {@code
     * software.amazon.awssdk.services.autoscaling.paginators.DescribeAutoScalingInstancesIterable responses = client.describeAutoScalingInstancesPaginator(request);
     * responses.iterator().forEachRemaining(....);
     * }
     * 
*

* Please notice that the configuration of MaxRecords won't limit the number of results you get with the * paginator. It only limits the number of results in each page. *

*

* Note: If you prefer to have control on service calls, use the * {@link #describeAutoScalingInstances(software.amazon.awssdk.services.autoscaling.model.DescribeAutoScalingInstancesRequest)} * operation. *

* * @param describeAutoScalingInstancesRequest * @return A custom iterable that can be used to iterate through all the response pages. * @throws InvalidNextTokenException * The NextToken value is not valid. * @throws ResourceContentionException * You already have a pending update to an Amazon EC2 Auto Scaling resource (for example, an Auto Scaling * group, instance, or load balancer). * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws AutoScalingException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample AutoScalingClient.DescribeAutoScalingInstances * @see AWS API Documentation */ default DescribeAutoScalingInstancesIterable describeAutoScalingInstancesPaginator( DescribeAutoScalingInstancesRequest describeAutoScalingInstancesRequest) throws InvalidNextTokenException, ResourceContentionException, AwsServiceException, SdkClientException, AutoScalingException { return new DescribeAutoScalingInstancesIterable(this, describeAutoScalingInstancesRequest); } /** *

* This is a variant of * {@link #describeAutoScalingInstances(software.amazon.awssdk.services.autoscaling.model.DescribeAutoScalingInstancesRequest)} * operation. The return type is a custom iterable that can be used to iterate through all the pages. SDK will * internally handle making service calls for you. *

*

* When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no * guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response * pages by making service calls until there are no pages left or your iteration stops. If there are errors in your * request, you will see the failures only after you start iterating through the iterable. *

* *

* The following are few ways to iterate through the response pages: *

* 1) Using a Stream * *
     * {@code
     * software.amazon.awssdk.services.autoscaling.paginators.DescribeAutoScalingInstancesIterable responses = client.describeAutoScalingInstancesPaginator(request);
     * responses.stream().forEach(....);
     * }
     * 
* * 2) Using For loop * *
     * {
     *     @code
     *     software.amazon.awssdk.services.autoscaling.paginators.DescribeAutoScalingInstancesIterable responses = client
     *             .describeAutoScalingInstancesPaginator(request);
     *     for (software.amazon.awssdk.services.autoscaling.model.DescribeAutoScalingInstancesResponse response : responses) {
     *         // do something;
     *     }
     * }
     * 
* * 3) Use iterator directly * *
     * {@code
     * software.amazon.awssdk.services.autoscaling.paginators.DescribeAutoScalingInstancesIterable responses = client.describeAutoScalingInstancesPaginator(request);
     * responses.iterator().forEachRemaining(....);
     * }
     * 
*

* Please notice that the configuration of MaxRecords won't limit the number of results you get with the * paginator. It only limits the number of results in each page. *

*

* Note: If you prefer to have control on service calls, use the * {@link #describeAutoScalingInstances(software.amazon.awssdk.services.autoscaling.model.DescribeAutoScalingInstancesRequest)} * operation. *

*
*

* This is a convenience which creates an instance of the {@link DescribeAutoScalingInstancesRequest.Builder} * avoiding the need to create one manually via {@link DescribeAutoScalingInstancesRequest#builder()} *

* * @param describeAutoScalingInstancesRequest * A {@link Consumer} that will call methods on * {@link software.amazon.awssdk.services.autoscaling.model.DescribeAutoScalingInstancesRequest.Builder} to * create a request. * @return A custom iterable that can be used to iterate through all the response pages. * @throws InvalidNextTokenException * The NextToken value is not valid. * @throws ResourceContentionException * You already have a pending update to an Amazon EC2 Auto Scaling resource (for example, an Auto Scaling * group, instance, or load balancer). * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws AutoScalingException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample AutoScalingClient.DescribeAutoScalingInstances * @see AWS API Documentation */ default DescribeAutoScalingInstancesIterable describeAutoScalingInstancesPaginator( Consumer describeAutoScalingInstancesRequest) throws InvalidNextTokenException, ResourceContentionException, AwsServiceException, SdkClientException, AutoScalingException { return describeAutoScalingInstancesPaginator(DescribeAutoScalingInstancesRequest.builder() .applyMutation(describeAutoScalingInstancesRequest).build()); } /** *

* Describes the notification types that are supported by Amazon EC2 Auto Scaling. *

* * @param describeAutoScalingNotificationTypesRequest * @return Result of the DescribeAutoScalingNotificationTypes operation returned by the service. * @throws ResourceContentionException * You already have a pending update to an Amazon EC2 Auto Scaling resource (for example, an Auto Scaling * group, instance, or load balancer). * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws AutoScalingException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample AutoScalingClient.DescribeAutoScalingNotificationTypes * @see AWS API Documentation */ default DescribeAutoScalingNotificationTypesResponse describeAutoScalingNotificationTypes( DescribeAutoScalingNotificationTypesRequest describeAutoScalingNotificationTypesRequest) throws ResourceContentionException, AwsServiceException, SdkClientException, AutoScalingException { throw new UnsupportedOperationException(); } /** *

* Describes the notification types that are supported by Amazon EC2 Auto Scaling. *

*
*

* This is a convenience which creates an instance of the * {@link DescribeAutoScalingNotificationTypesRequest.Builder} avoiding the need to create one manually via * {@link DescribeAutoScalingNotificationTypesRequest#builder()} *

* * @param describeAutoScalingNotificationTypesRequest * A {@link Consumer} that will call methods on * {@link software.amazon.awssdk.services.autoscaling.model.DescribeAutoScalingNotificationTypesRequest.Builder} * to create a request. * @return Result of the DescribeAutoScalingNotificationTypes operation returned by the service. * @throws ResourceContentionException * You already have a pending update to an Amazon EC2 Auto Scaling resource (for example, an Auto Scaling * group, instance, or load balancer). * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws AutoScalingException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample AutoScalingClient.DescribeAutoScalingNotificationTypes * @see AWS API Documentation */ default DescribeAutoScalingNotificationTypesResponse describeAutoScalingNotificationTypes( Consumer describeAutoScalingNotificationTypesRequest) throws ResourceContentionException, AwsServiceException, SdkClientException, AutoScalingException { return describeAutoScalingNotificationTypes(DescribeAutoScalingNotificationTypesRequest.builder() .applyMutation(describeAutoScalingNotificationTypesRequest).build()); } /** *

* Describes the notification types that are supported by Amazon EC2 Auto Scaling. *

* * @return Result of the DescribeAutoScalingNotificationTypes operation returned by the service. * @throws ResourceContentionException * You already have a pending update to an Amazon EC2 Auto Scaling resource (for example, an Auto Scaling * group, instance, or load balancer). * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws AutoScalingException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample AutoScalingClient.DescribeAutoScalingNotificationTypes * @see #describeAutoScalingNotificationTypes(DescribeAutoScalingNotificationTypesRequest) * @see AWS API Documentation */ default DescribeAutoScalingNotificationTypesResponse describeAutoScalingNotificationTypes() throws ResourceContentionException, AwsServiceException, SdkClientException, AutoScalingException { return describeAutoScalingNotificationTypes(DescribeAutoScalingNotificationTypesRequest.builder().build()); } /** *

* Gets information about the instance refreshes for the specified Auto Scaling group from the previous six weeks. *

*

* This operation is part of the instance refresh * feature in Amazon EC2 Auto Scaling, which helps you update instances in your Auto Scaling group after you * make configuration changes. *

*

* 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. *

* * @param describeInstanceRefreshesRequest * @return Result of the DescribeInstanceRefreshes operation returned by the service. * @throws InvalidNextTokenException * The NextToken value is not valid. * @throws ResourceContentionException * You already have a pending update to an Amazon EC2 Auto Scaling resource (for example, an Auto Scaling * group, instance, or load balancer). * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws AutoScalingException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample AutoScalingClient.DescribeInstanceRefreshes * @see AWS API Documentation */ default DescribeInstanceRefreshesResponse describeInstanceRefreshes( DescribeInstanceRefreshesRequest describeInstanceRefreshesRequest) throws InvalidNextTokenException, ResourceContentionException, AwsServiceException, SdkClientException, AutoScalingException { throw new UnsupportedOperationException(); } /** *

* Gets information about the instance refreshes for the specified Auto Scaling group from the previous six weeks. *

*

* This operation is part of the instance refresh * feature in Amazon EC2 Auto Scaling, which helps you update instances in your Auto Scaling group after you * make configuration changes. *

*

* 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. *

*
*

* This is a convenience which creates an instance of the {@link DescribeInstanceRefreshesRequest.Builder} avoiding * the need to create one manually via {@link DescribeInstanceRefreshesRequest#builder()} *

* * @param describeInstanceRefreshesRequest * A {@link Consumer} that will call methods on * {@link software.amazon.awssdk.services.autoscaling.model.DescribeInstanceRefreshesRequest.Builder} to * create a request. * @return Result of the DescribeInstanceRefreshes operation returned by the service. * @throws InvalidNextTokenException * The NextToken value is not valid. * @throws ResourceContentionException * You already have a pending update to an Amazon EC2 Auto Scaling resource (for example, an Auto Scaling * group, instance, or load balancer). * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws AutoScalingException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample AutoScalingClient.DescribeInstanceRefreshes * @see AWS API Documentation */ default DescribeInstanceRefreshesResponse describeInstanceRefreshes( Consumer describeInstanceRefreshesRequest) throws InvalidNextTokenException, ResourceContentionException, AwsServiceException, SdkClientException, AutoScalingException { return describeInstanceRefreshes(DescribeInstanceRefreshesRequest.builder() .applyMutation(describeInstanceRefreshesRequest).build()); } /** *

* This is a variant of * {@link #describeInstanceRefreshes(software.amazon.awssdk.services.autoscaling.model.DescribeInstanceRefreshesRequest)} * operation. The return type is a custom iterable that can be used to iterate through all the pages. SDK will * internally handle making service calls for you. *

*

* When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no * guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response * pages by making service calls until there are no pages left or your iteration stops. If there are errors in your * request, you will see the failures only after you start iterating through the iterable. *

* *

* The following are few ways to iterate through the response pages: *

* 1) Using a Stream * *
     * {@code
     * software.amazon.awssdk.services.autoscaling.paginators.DescribeInstanceRefreshesIterable responses = client.describeInstanceRefreshesPaginator(request);
     * responses.stream().forEach(....);
     * }
     * 
* * 2) Using For loop * *
     * {
     *     @code
     *     software.amazon.awssdk.services.autoscaling.paginators.DescribeInstanceRefreshesIterable responses = client
     *             .describeInstanceRefreshesPaginator(request);
     *     for (software.amazon.awssdk.services.autoscaling.model.DescribeInstanceRefreshesResponse response : responses) {
     *         // do something;
     *     }
     * }
     * 
* * 3) Use iterator directly * *
     * {@code
     * software.amazon.awssdk.services.autoscaling.paginators.DescribeInstanceRefreshesIterable responses = client.describeInstanceRefreshesPaginator(request);
     * responses.iterator().forEachRemaining(....);
     * }
     * 
*

* Please notice that the configuration of MaxRecords won't limit the number of results you get with the * paginator. It only limits the number of results in each page. *

*

* Note: If you prefer to have control on service calls, use the * {@link #describeInstanceRefreshes(software.amazon.awssdk.services.autoscaling.model.DescribeInstanceRefreshesRequest)} * operation. *

* * @param describeInstanceRefreshesRequest * @return A custom iterable that can be used to iterate through all the response pages. * @throws InvalidNextTokenException * The NextToken value is not valid. * @throws ResourceContentionException * You already have a pending update to an Amazon EC2 Auto Scaling resource (for example, an Auto Scaling * group, instance, or load balancer). * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws AutoScalingException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample AutoScalingClient.DescribeInstanceRefreshes * @see AWS API Documentation */ default DescribeInstanceRefreshesIterable describeInstanceRefreshesPaginator( DescribeInstanceRefreshesRequest describeInstanceRefreshesRequest) throws InvalidNextTokenException, ResourceContentionException, AwsServiceException, SdkClientException, AutoScalingException { return new DescribeInstanceRefreshesIterable(this, describeInstanceRefreshesRequest); } /** *

* This is a variant of * {@link #describeInstanceRefreshes(software.amazon.awssdk.services.autoscaling.model.DescribeInstanceRefreshesRequest)} * operation. The return type is a custom iterable that can be used to iterate through all the pages. SDK will * internally handle making service calls for you. *

*

* When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no * guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response * pages by making service calls until there are no pages left or your iteration stops. If there are errors in your * request, you will see the failures only after you start iterating through the iterable. *

* *

* The following are few ways to iterate through the response pages: *

* 1) Using a Stream * *
     * {@code
     * software.amazon.awssdk.services.autoscaling.paginators.DescribeInstanceRefreshesIterable responses = client.describeInstanceRefreshesPaginator(request);
     * responses.stream().forEach(....);
     * }
     * 
* * 2) Using For loop * *
     * {
     *     @code
     *     software.amazon.awssdk.services.autoscaling.paginators.DescribeInstanceRefreshesIterable responses = client
     *             .describeInstanceRefreshesPaginator(request);
     *     for (software.amazon.awssdk.services.autoscaling.model.DescribeInstanceRefreshesResponse response : responses) {
     *         // do something;
     *     }
     * }
     * 
* * 3) Use iterator directly * *
     * {@code
     * software.amazon.awssdk.services.autoscaling.paginators.DescribeInstanceRefreshesIterable responses = client.describeInstanceRefreshesPaginator(request);
     * responses.iterator().forEachRemaining(....);
     * }
     * 
*

* Please notice that the configuration of MaxRecords won't limit the number of results you get with the * paginator. It only limits the number of results in each page. *

*

* Note: If you prefer to have control on service calls, use the * {@link #describeInstanceRefreshes(software.amazon.awssdk.services.autoscaling.model.DescribeInstanceRefreshesRequest)} * operation. *

*
*

* This is a convenience which creates an instance of the {@link DescribeInstanceRefreshesRequest.Builder} avoiding * the need to create one manually via {@link DescribeInstanceRefreshesRequest#builder()} *

* * @param describeInstanceRefreshesRequest * A {@link Consumer} that will call methods on * {@link software.amazon.awssdk.services.autoscaling.model.DescribeInstanceRefreshesRequest.Builder} to * create a request. * @return A custom iterable that can be used to iterate through all the response pages. * @throws InvalidNextTokenException * The NextToken value is not valid. * @throws ResourceContentionException * You already have a pending update to an Amazon EC2 Auto Scaling resource (for example, an Auto Scaling * group, instance, or load balancer). * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws AutoScalingException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample AutoScalingClient.DescribeInstanceRefreshes * @see AWS API Documentation */ default DescribeInstanceRefreshesIterable describeInstanceRefreshesPaginator( Consumer describeInstanceRefreshesRequest) throws InvalidNextTokenException, ResourceContentionException, AwsServiceException, SdkClientException, AutoScalingException { return describeInstanceRefreshesPaginator(DescribeInstanceRefreshesRequest.builder() .applyMutation(describeInstanceRefreshesRequest).build()); } /** *

* Gets information about the launch configurations in the account and Region. *

* * @param describeLaunchConfigurationsRequest * @return Result of the DescribeLaunchConfigurations operation returned by the service. * @throws InvalidNextTokenException * The NextToken value is not valid. * @throws ResourceContentionException * You already have a pending update to an Amazon EC2 Auto Scaling resource (for example, an Auto Scaling * group, instance, or load balancer). * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws AutoScalingException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample AutoScalingClient.DescribeLaunchConfigurations * @see AWS API Documentation */ default DescribeLaunchConfigurationsResponse describeLaunchConfigurations( DescribeLaunchConfigurationsRequest describeLaunchConfigurationsRequest) throws InvalidNextTokenException, ResourceContentionException, AwsServiceException, SdkClientException, AutoScalingException { throw new UnsupportedOperationException(); } /** *

* Gets information about the launch configurations in the account and Region. *

*
*

* This is a convenience which creates an instance of the {@link DescribeLaunchConfigurationsRequest.Builder} * avoiding the need to create one manually via {@link DescribeLaunchConfigurationsRequest#builder()} *

* * @param describeLaunchConfigurationsRequest * A {@link Consumer} that will call methods on * {@link software.amazon.awssdk.services.autoscaling.model.DescribeLaunchConfigurationsRequest.Builder} to * create a request. * @return Result of the DescribeLaunchConfigurations operation returned by the service. * @throws InvalidNextTokenException * The NextToken value is not valid. * @throws ResourceContentionException * You already have a pending update to an Amazon EC2 Auto Scaling resource (for example, an Auto Scaling * group, instance, or load balancer). * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws AutoScalingException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample AutoScalingClient.DescribeLaunchConfigurations * @see AWS API Documentation */ default DescribeLaunchConfigurationsResponse describeLaunchConfigurations( Consumer describeLaunchConfigurationsRequest) throws InvalidNextTokenException, ResourceContentionException, AwsServiceException, SdkClientException, AutoScalingException { return describeLaunchConfigurations(DescribeLaunchConfigurationsRequest.builder() .applyMutation(describeLaunchConfigurationsRequest).build()); } /** *

* Gets information about the launch configurations in the account and Region. *

* * @return Result of the DescribeLaunchConfigurations operation returned by the service. * @throws InvalidNextTokenException * The NextToken value is not valid. * @throws ResourceContentionException * You already have a pending update to an Amazon EC2 Auto Scaling resource (for example, an Auto Scaling * group, instance, or load balancer). * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws AutoScalingException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample AutoScalingClient.DescribeLaunchConfigurations * @see #describeLaunchConfigurations(DescribeLaunchConfigurationsRequest) * @see AWS API Documentation */ default DescribeLaunchConfigurationsResponse describeLaunchConfigurations() throws InvalidNextTokenException, ResourceContentionException, AwsServiceException, SdkClientException, AutoScalingException { return describeLaunchConfigurations(DescribeLaunchConfigurationsRequest.builder().build()); } /** *

* This is a variant of * {@link #describeLaunchConfigurations(software.amazon.awssdk.services.autoscaling.model.DescribeLaunchConfigurationsRequest)} * operation. The return type is a custom iterable that can be used to iterate through all the pages. SDK will * internally handle making service calls for you. *

*

* When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no * guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response * pages by making service calls until there are no pages left or your iteration stops. If there are errors in your * request, you will see the failures only after you start iterating through the iterable. *

* *

* The following are few ways to iterate through the response pages: *

* 1) Using a Stream * *
     * {@code
     * software.amazon.awssdk.services.autoscaling.paginators.DescribeLaunchConfigurationsIterable responses = client.describeLaunchConfigurationsPaginator(request);
     * responses.stream().forEach(....);
     * }
     * 
* * 2) Using For loop * *
     * {
     *     @code
     *     software.amazon.awssdk.services.autoscaling.paginators.DescribeLaunchConfigurationsIterable responses = client
     *             .describeLaunchConfigurationsPaginator(request);
     *     for (software.amazon.awssdk.services.autoscaling.model.DescribeLaunchConfigurationsResponse response : responses) {
     *         // do something;
     *     }
     * }
     * 
* * 3) Use iterator directly * *
     * {@code
     * software.amazon.awssdk.services.autoscaling.paginators.DescribeLaunchConfigurationsIterable responses = client.describeLaunchConfigurationsPaginator(request);
     * responses.iterator().forEachRemaining(....);
     * }
     * 
*

* Please notice that the configuration of MaxRecords won't limit the number of results you get with the * paginator. It only limits the number of results in each page. *

*

* Note: If you prefer to have control on service calls, use the * {@link #describeLaunchConfigurations(software.amazon.awssdk.services.autoscaling.model.DescribeLaunchConfigurationsRequest)} * operation. *

* * @return A custom iterable that can be used to iterate through all the response pages. * @throws InvalidNextTokenException * The NextToken value is not valid. * @throws ResourceContentionException * You already have a pending update to an Amazon EC2 Auto Scaling resource (for example, an Auto Scaling * group, instance, or load balancer). * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws AutoScalingException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample AutoScalingClient.DescribeLaunchConfigurations * @see #describeLaunchConfigurationsPaginator(DescribeLaunchConfigurationsRequest) * @see AWS API Documentation */ default DescribeLaunchConfigurationsIterable describeLaunchConfigurationsPaginator() throws InvalidNextTokenException, ResourceContentionException, AwsServiceException, SdkClientException, AutoScalingException { return describeLaunchConfigurationsPaginator(DescribeLaunchConfigurationsRequest.builder().build()); } /** *

* This is a variant of * {@link #describeLaunchConfigurations(software.amazon.awssdk.services.autoscaling.model.DescribeLaunchConfigurationsRequest)} * operation. The return type is a custom iterable that can be used to iterate through all the pages. SDK will * internally handle making service calls for you. *

*

* When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no * guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response * pages by making service calls until there are no pages left or your iteration stops. If there are errors in your * request, you will see the failures only after you start iterating through the iterable. *

* *

* The following are few ways to iterate through the response pages: *

* 1) Using a Stream * *
     * {@code
     * software.amazon.awssdk.services.autoscaling.paginators.DescribeLaunchConfigurationsIterable responses = client.describeLaunchConfigurationsPaginator(request);
     * responses.stream().forEach(....);
     * }
     * 
* * 2) Using For loop * *
     * {
     *     @code
     *     software.amazon.awssdk.services.autoscaling.paginators.DescribeLaunchConfigurationsIterable responses = client
     *             .describeLaunchConfigurationsPaginator(request);
     *     for (software.amazon.awssdk.services.autoscaling.model.DescribeLaunchConfigurationsResponse response : responses) {
     *         // do something;
     *     }
     * }
     * 
* * 3) Use iterator directly * *
     * {@code
     * software.amazon.awssdk.services.autoscaling.paginators.DescribeLaunchConfigurationsIterable responses = client.describeLaunchConfigurationsPaginator(request);
     * responses.iterator().forEachRemaining(....);
     * }
     * 
*

* Please notice that the configuration of MaxRecords won't limit the number of results you get with the * paginator. It only limits the number of results in each page. *

*

* Note: If you prefer to have control on service calls, use the * {@link #describeLaunchConfigurations(software.amazon.awssdk.services.autoscaling.model.DescribeLaunchConfigurationsRequest)} * operation. *

* * @param describeLaunchConfigurationsRequest * @return A custom iterable that can be used to iterate through all the response pages. * @throws InvalidNextTokenException * The NextToken value is not valid. * @throws ResourceContentionException * You already have a pending update to an Amazon EC2 Auto Scaling resource (for example, an Auto Scaling * group, instance, or load balancer). * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws AutoScalingException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample AutoScalingClient.DescribeLaunchConfigurations * @see AWS API Documentation */ default DescribeLaunchConfigurationsIterable describeLaunchConfigurationsPaginator( DescribeLaunchConfigurationsRequest describeLaunchConfigurationsRequest) throws InvalidNextTokenException, ResourceContentionException, AwsServiceException, SdkClientException, AutoScalingException { return new DescribeLaunchConfigurationsIterable(this, describeLaunchConfigurationsRequest); } /** *

* This is a variant of * {@link #describeLaunchConfigurations(software.amazon.awssdk.services.autoscaling.model.DescribeLaunchConfigurationsRequest)} * operation. The return type is a custom iterable that can be used to iterate through all the pages. SDK will * internally handle making service calls for you. *

*

* When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no * guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response * pages by making service calls until there are no pages left or your iteration stops. If there are errors in your * request, you will see the failures only after you start iterating through the iterable. *

* *

* The following are few ways to iterate through the response pages: *

* 1) Using a Stream * *
     * {@code
     * software.amazon.awssdk.services.autoscaling.paginators.DescribeLaunchConfigurationsIterable responses = client.describeLaunchConfigurationsPaginator(request);
     * responses.stream().forEach(....);
     * }
     * 
* * 2) Using For loop * *
     * {
     *     @code
     *     software.amazon.awssdk.services.autoscaling.paginators.DescribeLaunchConfigurationsIterable responses = client
     *             .describeLaunchConfigurationsPaginator(request);
     *     for (software.amazon.awssdk.services.autoscaling.model.DescribeLaunchConfigurationsResponse response : responses) {
     *         // do something;
     *     }
     * }
     * 
* * 3) Use iterator directly * *
     * {@code
     * software.amazon.awssdk.services.autoscaling.paginators.DescribeLaunchConfigurationsIterable responses = client.describeLaunchConfigurationsPaginator(request);
     * responses.iterator().forEachRemaining(....);
     * }
     * 
*

* Please notice that the configuration of MaxRecords won't limit the number of results you get with the * paginator. It only limits the number of results in each page. *

*

* Note: If you prefer to have control on service calls, use the * {@link #describeLaunchConfigurations(software.amazon.awssdk.services.autoscaling.model.DescribeLaunchConfigurationsRequest)} * operation. *

*
*

* This is a convenience which creates an instance of the {@link DescribeLaunchConfigurationsRequest.Builder} * avoiding the need to create one manually via {@link DescribeLaunchConfigurationsRequest#builder()} *

* * @param describeLaunchConfigurationsRequest * A {@link Consumer} that will call methods on * {@link software.amazon.awssdk.services.autoscaling.model.DescribeLaunchConfigurationsRequest.Builder} to * create a request. * @return A custom iterable that can be used to iterate through all the response pages. * @throws InvalidNextTokenException * The NextToken value is not valid. * @throws ResourceContentionException * You already have a pending update to an Amazon EC2 Auto Scaling resource (for example, an Auto Scaling * group, instance, or load balancer). * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws AutoScalingException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample AutoScalingClient.DescribeLaunchConfigurations * @see AWS API Documentation */ default DescribeLaunchConfigurationsIterable describeLaunchConfigurationsPaginator( Consumer describeLaunchConfigurationsRequest) throws InvalidNextTokenException, ResourceContentionException, AwsServiceException, SdkClientException, AutoScalingException { return describeLaunchConfigurationsPaginator(DescribeLaunchConfigurationsRequest.builder() .applyMutation(describeLaunchConfigurationsRequest).build()); } /** *

* Describes the available types of lifecycle hooks. *

*

* The following hook types are supported: *

*
    *
  • *

    * autoscaling:EC2_INSTANCE_LAUNCHING *

    *
  • *
  • *

    * autoscaling:EC2_INSTANCE_TERMINATING *

    *
  • *
* * @param describeLifecycleHookTypesRequest * @return Result of the DescribeLifecycleHookTypes operation returned by the service. * @throws ResourceContentionException * You already have a pending update to an Amazon EC2 Auto Scaling resource (for example, an Auto Scaling * group, instance, or load balancer). * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws AutoScalingException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample AutoScalingClient.DescribeLifecycleHookTypes * @see AWS API Documentation */ default DescribeLifecycleHookTypesResponse describeLifecycleHookTypes( DescribeLifecycleHookTypesRequest describeLifecycleHookTypesRequest) throws ResourceContentionException, AwsServiceException, SdkClientException, AutoScalingException { throw new UnsupportedOperationException(); } /** *

* Describes the available types of lifecycle hooks. *

*

* The following hook types are supported: *

*
    *
  • *

    * autoscaling:EC2_INSTANCE_LAUNCHING *

    *
  • *
  • *

    * autoscaling:EC2_INSTANCE_TERMINATING *

    *
  • *
*
*

* This is a convenience which creates an instance of the {@link DescribeLifecycleHookTypesRequest.Builder} avoiding * the need to create one manually via {@link DescribeLifecycleHookTypesRequest#builder()} *

* * @param describeLifecycleHookTypesRequest * A {@link Consumer} that will call methods on * {@link software.amazon.awssdk.services.autoscaling.model.DescribeLifecycleHookTypesRequest.Builder} to * create a request. * @return Result of the DescribeLifecycleHookTypes operation returned by the service. * @throws ResourceContentionException * You already have a pending update to an Amazon EC2 Auto Scaling resource (for example, an Auto Scaling * group, instance, or load balancer). * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws AutoScalingException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample AutoScalingClient.DescribeLifecycleHookTypes * @see AWS API Documentation */ default DescribeLifecycleHookTypesResponse describeLifecycleHookTypes( Consumer describeLifecycleHookTypesRequest) throws ResourceContentionException, AwsServiceException, SdkClientException, AutoScalingException { return describeLifecycleHookTypes(DescribeLifecycleHookTypesRequest.builder() .applyMutation(describeLifecycleHookTypesRequest).build()); } /** *

* Describes the available types of lifecycle hooks. *

*

* The following hook types are supported: *

*
    *
  • *

    * autoscaling:EC2_INSTANCE_LAUNCHING *

    *
  • *
  • *

    * autoscaling:EC2_INSTANCE_TERMINATING *

    *
  • *
* * @return Result of the DescribeLifecycleHookTypes operation returned by the service. * @throws ResourceContentionException * You already have a pending update to an Amazon EC2 Auto Scaling resource (for example, an Auto Scaling * group, instance, or load balancer). * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws AutoScalingException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample AutoScalingClient.DescribeLifecycleHookTypes * @see #describeLifecycleHookTypes(DescribeLifecycleHookTypesRequest) * @see AWS API Documentation */ default DescribeLifecycleHookTypesResponse describeLifecycleHookTypes() throws ResourceContentionException, AwsServiceException, SdkClientException, AutoScalingException { return describeLifecycleHookTypes(DescribeLifecycleHookTypesRequest.builder().build()); } /** *

* Gets information about the lifecycle hooks for the specified Auto Scaling group. *

* * @param describeLifecycleHooksRequest * @return Result of the DescribeLifecycleHooks operation returned by the service. * @throws ResourceContentionException * You already have a pending update to an Amazon EC2 Auto Scaling resource (for example, an Auto Scaling * group, instance, or load balancer). * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws AutoScalingException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample AutoScalingClient.DescribeLifecycleHooks * @see AWS API Documentation */ default DescribeLifecycleHooksResponse describeLifecycleHooks(DescribeLifecycleHooksRequest describeLifecycleHooksRequest) throws ResourceContentionException, AwsServiceException, SdkClientException, AutoScalingException { throw new UnsupportedOperationException(); } /** *

* Gets information about the lifecycle hooks for the specified Auto Scaling group. *

*
*

* This is a convenience which creates an instance of the {@link DescribeLifecycleHooksRequest.Builder} avoiding the * need to create one manually via {@link DescribeLifecycleHooksRequest#builder()} *

* * @param describeLifecycleHooksRequest * A {@link Consumer} that will call methods on * {@link software.amazon.awssdk.services.autoscaling.model.DescribeLifecycleHooksRequest.Builder} to create * a request. * @return Result of the DescribeLifecycleHooks operation returned by the service. * @throws ResourceContentionException * You already have a pending update to an Amazon EC2 Auto Scaling resource (for example, an Auto Scaling * group, instance, or load balancer). * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws AutoScalingException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample AutoScalingClient.DescribeLifecycleHooks * @see AWS API Documentation */ default DescribeLifecycleHooksResponse describeLifecycleHooks( Consumer describeLifecycleHooksRequest) throws ResourceContentionException, AwsServiceException, SdkClientException, AutoScalingException { return describeLifecycleHooks(DescribeLifecycleHooksRequest.builder().applyMutation(describeLifecycleHooksRequest) .build()); } /** * *

* This API operation is superseded by DescribeTrafficSources, which can describe multiple traffic sources types. We recommend using * DetachTrafficSources to simplify how you manage traffic sources. However, we continue to support * DescribeLoadBalancerTargetGroups. You can use both the original * DescribeLoadBalancerTargetGroups API operation and DescribeTrafficSources on the same * Auto Scaling group. *

*
*

* Gets information about the Elastic Load Balancing target groups for the specified Auto Scaling group. *

*

* To determine the attachment status of the target group, use the State element in the response. When * you attach a target group to an Auto Scaling group, the initial State value is Adding. * The state transitions to Added 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 * InService after at least one Auto Scaling instance passes the health check. When the target group is * in the InService 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 * InService state. *

*

* Target groups also have an InService state if you attach them in the CreateAutoScalingGroup API call. If your target group state is InService, but it is not working * properly, check the scaling activities by calling DescribeScalingActivities and take any corrective actions necessary. *

*

* For help with failed health checks, see Troubleshooting Amazon EC2 * Auto Scaling: Health checks in the Amazon EC2 Auto Scaling User Guide. For more information, see Use Elastic Load * Balancing to distribute traffic across the instances in your Auto Scaling group in the Amazon EC2 Auto * Scaling User Guide. *

* *

* You can use this operation to describe target groups that were attached by using AttachLoadBalancerTargetGroups, but not for target groups that were attached by using AttachTrafficSources. *

*
* * @param describeLoadBalancerTargetGroupsRequest * @return Result of the DescribeLoadBalancerTargetGroups operation returned by the service. * @throws ResourceContentionException * You already have a pending update to an Amazon EC2 Auto Scaling resource (for example, an Auto Scaling * group, instance, or load balancer). * @throws InvalidNextTokenException * The NextToken value is not valid. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws AutoScalingException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample AutoScalingClient.DescribeLoadBalancerTargetGroups * @see AWS API Documentation */ default DescribeLoadBalancerTargetGroupsResponse describeLoadBalancerTargetGroups( DescribeLoadBalancerTargetGroupsRequest describeLoadBalancerTargetGroupsRequest) throws ResourceContentionException, InvalidNextTokenException, AwsServiceException, SdkClientException, AutoScalingException { throw new UnsupportedOperationException(); } /** * *

* This API operation is superseded by DescribeTrafficSources, which can describe multiple traffic sources types. We recommend using * DetachTrafficSources to simplify how you manage traffic sources. However, we continue to support * DescribeLoadBalancerTargetGroups. You can use both the original * DescribeLoadBalancerTargetGroups API operation and DescribeTrafficSources on the same * Auto Scaling group. *

*
*

* Gets information about the Elastic Load Balancing target groups for the specified Auto Scaling group. *

*

* To determine the attachment status of the target group, use the State element in the response. When * you attach a target group to an Auto Scaling group, the initial State value is Adding. * The state transitions to Added 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 * InService after at least one Auto Scaling instance passes the health check. When the target group is * in the InService 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 * InService state. *

*

* Target groups also have an InService state if you attach them in the CreateAutoScalingGroup API call. If your target group state is InService, but it is not working * properly, check the scaling activities by calling DescribeScalingActivities and take any corrective actions necessary. *

*

* For help with failed health checks, see Troubleshooting Amazon EC2 * Auto Scaling: Health checks in the Amazon EC2 Auto Scaling User Guide. For more information, see Use Elastic Load * Balancing to distribute traffic across the instances in your Auto Scaling group in the Amazon EC2 Auto * Scaling User Guide. *

* *

* You can use this operation to describe target groups that were attached by using AttachLoadBalancerTargetGroups, but not for target groups that were attached by using AttachTrafficSources. *

*

*

* This is a convenience which creates an instance of the {@link DescribeLoadBalancerTargetGroupsRequest.Builder} * avoiding the need to create one manually via {@link DescribeLoadBalancerTargetGroupsRequest#builder()} *

* * @param describeLoadBalancerTargetGroupsRequest * A {@link Consumer} that will call methods on * {@link software.amazon.awssdk.services.autoscaling.model.DescribeLoadBalancerTargetGroupsRequest.Builder} * to create a request. * @return Result of the DescribeLoadBalancerTargetGroups operation returned by the service. * @throws ResourceContentionException * You already have a pending update to an Amazon EC2 Auto Scaling resource (for example, an Auto Scaling * group, instance, or load balancer). * @throws InvalidNextTokenException * The NextToken value is not valid. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws AutoScalingException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample AutoScalingClient.DescribeLoadBalancerTargetGroups * @see AWS API Documentation */ default DescribeLoadBalancerTargetGroupsResponse describeLoadBalancerTargetGroups( Consumer describeLoadBalancerTargetGroupsRequest) throws ResourceContentionException, InvalidNextTokenException, AwsServiceException, SdkClientException, AutoScalingException { return describeLoadBalancerTargetGroups(DescribeLoadBalancerTargetGroupsRequest.builder() .applyMutation(describeLoadBalancerTargetGroupsRequest).build()); } /** *

* This is a variant of * {@link #describeLoadBalancerTargetGroups(software.amazon.awssdk.services.autoscaling.model.DescribeLoadBalancerTargetGroupsRequest)} * operation. The return type is a custom iterable that can be used to iterate through all the pages. SDK will * internally handle making service calls for you. *

*

* When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no * guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response * pages by making service calls until there are no pages left or your iteration stops. If there are errors in your * request, you will see the failures only after you start iterating through the iterable. *

* *

* The following are few ways to iterate through the response pages: *

* 1) Using a Stream * *
     * {@code
     * software.amazon.awssdk.services.autoscaling.paginators.DescribeLoadBalancerTargetGroupsIterable responses = client.describeLoadBalancerTargetGroupsPaginator(request);
     * responses.stream().forEach(....);
     * }
     * 
* * 2) Using For loop * *
     * {
     *     @code
     *     software.amazon.awssdk.services.autoscaling.paginators.DescribeLoadBalancerTargetGroupsIterable responses = client
     *             .describeLoadBalancerTargetGroupsPaginator(request);
     *     for (software.amazon.awssdk.services.autoscaling.model.DescribeLoadBalancerTargetGroupsResponse response : responses) {
     *         // do something;
     *     }
     * }
     * 
* * 3) Use iterator directly * *
     * {@code
     * software.amazon.awssdk.services.autoscaling.paginators.DescribeLoadBalancerTargetGroupsIterable responses = client.describeLoadBalancerTargetGroupsPaginator(request);
     * responses.iterator().forEachRemaining(....);
     * }
     * 
*

* Please notice that the configuration of MaxRecords won't limit the number of results you get with the * paginator. It only limits the number of results in each page. *

*

* Note: If you prefer to have control on service calls, use the * {@link #describeLoadBalancerTargetGroups(software.amazon.awssdk.services.autoscaling.model.DescribeLoadBalancerTargetGroupsRequest)} * operation. *

* * @param describeLoadBalancerTargetGroupsRequest * @return A custom iterable that can be used to iterate through all the response pages. * @throws ResourceContentionException * You already have a pending update to an Amazon EC2 Auto Scaling resource (for example, an Auto Scaling * group, instance, or load balancer). * @throws InvalidNextTokenException * The NextToken value is not valid. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws AutoScalingException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample AutoScalingClient.DescribeLoadBalancerTargetGroups * @see AWS API Documentation */ default DescribeLoadBalancerTargetGroupsIterable describeLoadBalancerTargetGroupsPaginator( DescribeLoadBalancerTargetGroupsRequest describeLoadBalancerTargetGroupsRequest) throws ResourceContentionException, InvalidNextTokenException, AwsServiceException, SdkClientException, AutoScalingException { return new DescribeLoadBalancerTargetGroupsIterable(this, describeLoadBalancerTargetGroupsRequest); } /** *

* This is a variant of * {@link #describeLoadBalancerTargetGroups(software.amazon.awssdk.services.autoscaling.model.DescribeLoadBalancerTargetGroupsRequest)} * operation. The return type is a custom iterable that can be used to iterate through all the pages. SDK will * internally handle making service calls for you. *

*

* When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no * guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response * pages by making service calls until there are no pages left or your iteration stops. If there are errors in your * request, you will see the failures only after you start iterating through the iterable. *

* *

* The following are few ways to iterate through the response pages: *

* 1) Using a Stream * *
     * {@code
     * software.amazon.awssdk.services.autoscaling.paginators.DescribeLoadBalancerTargetGroupsIterable responses = client.describeLoadBalancerTargetGroupsPaginator(request);
     * responses.stream().forEach(....);
     * }
     * 
* * 2) Using For loop * *
     * {
     *     @code
     *     software.amazon.awssdk.services.autoscaling.paginators.DescribeLoadBalancerTargetGroupsIterable responses = client
     *             .describeLoadBalancerTargetGroupsPaginator(request);
     *     for (software.amazon.awssdk.services.autoscaling.model.DescribeLoadBalancerTargetGroupsResponse response : responses) {
     *         // do something;
     *     }
     * }
     * 
* * 3) Use iterator directly * *
     * {@code
     * software.amazon.awssdk.services.autoscaling.paginators.DescribeLoadBalancerTargetGroupsIterable responses = client.describeLoadBalancerTargetGroupsPaginator(request);
     * responses.iterator().forEachRemaining(....);
     * }
     * 
*

* Please notice that the configuration of MaxRecords won't limit the number of results you get with the * paginator. It only limits the number of results in each page. *

*

* Note: If you prefer to have control on service calls, use the * {@link #describeLoadBalancerTargetGroups(software.amazon.awssdk.services.autoscaling.model.DescribeLoadBalancerTargetGroupsRequest)} * operation. *

*
*

* This is a convenience which creates an instance of the {@link DescribeLoadBalancerTargetGroupsRequest.Builder} * avoiding the need to create one manually via {@link DescribeLoadBalancerTargetGroupsRequest#builder()} *

* * @param describeLoadBalancerTargetGroupsRequest * A {@link Consumer} that will call methods on * {@link software.amazon.awssdk.services.autoscaling.model.DescribeLoadBalancerTargetGroupsRequest.Builder} * to create a request. * @return A custom iterable that can be used to iterate through all the response pages. * @throws ResourceContentionException * You already have a pending update to an Amazon EC2 Auto Scaling resource (for example, an Auto Scaling * group, instance, or load balancer). * @throws InvalidNextTokenException * The NextToken value is not valid. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws AutoScalingException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample AutoScalingClient.DescribeLoadBalancerTargetGroups * @see AWS API Documentation */ default DescribeLoadBalancerTargetGroupsIterable describeLoadBalancerTargetGroupsPaginator( Consumer describeLoadBalancerTargetGroupsRequest) throws ResourceContentionException, InvalidNextTokenException, AwsServiceException, SdkClientException, AutoScalingException { return describeLoadBalancerTargetGroupsPaginator(DescribeLoadBalancerTargetGroupsRequest.builder() .applyMutation(describeLoadBalancerTargetGroupsRequest).build()); } /** * *

* This API operation is superseded by DescribeTrafficSources, which can describe multiple traffic sources types. We recommend using * DescribeTrafficSources to simplify how you manage traffic sources. However, we continue to support * DescribeLoadBalancers. You can use both the original DescribeLoadBalancers API * operation and DescribeTrafficSources on the same Auto Scaling group. *

*
*

* Gets information about the load balancers for the specified Auto Scaling group. *

*

* This operation describes only Classic Load Balancers. If you have Application Load Balancers, Network Load * Balancers, or Gateway Load Balancers, use the DescribeLoadBalancerTargetGroups API instead. *

*

* To determine the attachment status of the load balancer, use the State element in the response. When * you attach a load balancer to an Auto Scaling group, the initial State value is Adding. * The state transitions to Added 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 InService after at least one Auto Scaling instance passes the health check. When the load * balancer is in the InService 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 InService state. *

*

* Load balancers also have an InService state if you attach them in the CreateAutoScalingGroup API call. If your load balancer state is InService, but it is not * working properly, check the scaling activities by calling DescribeScalingActivities and take any corrective actions necessary. *

*

* For help with failed health checks, see Troubleshooting Amazon EC2 * Auto Scaling: Health checks in the Amazon EC2 Auto Scaling User Guide. For more information, see Use Elastic Load * Balancing to distribute traffic across the instances in your Auto Scaling group in the Amazon EC2 Auto * Scaling User Guide. *

* * @param describeLoadBalancersRequest * @return Result of the DescribeLoadBalancers operation returned by the service. * @throws ResourceContentionException * You already have a pending update to an Amazon EC2 Auto Scaling resource (for example, an Auto Scaling * group, instance, or load balancer). * @throws InvalidNextTokenException * The NextToken value is not valid. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws AutoScalingException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample AutoScalingClient.DescribeLoadBalancers * @see AWS API Documentation */ default DescribeLoadBalancersResponse describeLoadBalancers(DescribeLoadBalancersRequest describeLoadBalancersRequest) throws ResourceContentionException, InvalidNextTokenException, AwsServiceException, SdkClientException, AutoScalingException { throw new UnsupportedOperationException(); } /** * *

* This API operation is superseded by DescribeTrafficSources, which can describe multiple traffic sources types. We recommend using * DescribeTrafficSources to simplify how you manage traffic sources. However, we continue to support * DescribeLoadBalancers. You can use both the original DescribeLoadBalancers API * operation and DescribeTrafficSources on the same Auto Scaling group. *

*
*

* Gets information about the load balancers for the specified Auto Scaling group. *

*

* This operation describes only Classic Load Balancers. If you have Application Load Balancers, Network Load * Balancers, or Gateway Load Balancers, use the DescribeLoadBalancerTargetGroups API instead. *

*

* To determine the attachment status of the load balancer, use the State element in the response. When * you attach a load balancer to an Auto Scaling group, the initial State value is Adding. * The state transitions to Added 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 InService after at least one Auto Scaling instance passes the health check. When the load * balancer is in the InService 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 InService state. *

*

* Load balancers also have an InService state if you attach them in the CreateAutoScalingGroup API call. If your load balancer state is InService, but it is not * working properly, check the scaling activities by calling DescribeScalingActivities and take any corrective actions necessary. *

*

* For help with failed health checks, see Troubleshooting Amazon EC2 * Auto Scaling: Health checks in the Amazon EC2 Auto Scaling User Guide. For more information, see Use Elastic Load * Balancing to distribute traffic across the instances in your Auto Scaling group in the Amazon EC2 Auto * Scaling User Guide. *

*
*

* This is a convenience which creates an instance of the {@link DescribeLoadBalancersRequest.Builder} avoiding the * need to create one manually via {@link DescribeLoadBalancersRequest#builder()} *

* * @param describeLoadBalancersRequest * A {@link Consumer} that will call methods on * {@link software.amazon.awssdk.services.autoscaling.model.DescribeLoadBalancersRequest.Builder} to create a * request. * @return Result of the DescribeLoadBalancers operation returned by the service. * @throws ResourceContentionException * You already have a pending update to an Amazon EC2 Auto Scaling resource (for example, an Auto Scaling * group, instance, or load balancer). * @throws InvalidNextTokenException * The NextToken value is not valid. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws AutoScalingException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample AutoScalingClient.DescribeLoadBalancers * @see AWS API Documentation */ default DescribeLoadBalancersResponse describeLoadBalancers( Consumer describeLoadBalancersRequest) throws ResourceContentionException, InvalidNextTokenException, AwsServiceException, SdkClientException, AutoScalingException { return describeLoadBalancers(DescribeLoadBalancersRequest.builder().applyMutation(describeLoadBalancersRequest).build()); } /** *

* This is a variant of * {@link #describeLoadBalancers(software.amazon.awssdk.services.autoscaling.model.DescribeLoadBalancersRequest)} * operation. The return type is a custom iterable that can be used to iterate through all the pages. SDK will * internally handle making service calls for you. *

*

* When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no * guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response * pages by making service calls until there are no pages left or your iteration stops. If there are errors in your * request, you will see the failures only after you start iterating through the iterable. *

* *

* The following are few ways to iterate through the response pages: *

* 1) Using a Stream * *
     * {@code
     * software.amazon.awssdk.services.autoscaling.paginators.DescribeLoadBalancersIterable responses = client.describeLoadBalancersPaginator(request);
     * responses.stream().forEach(....);
     * }
     * 
* * 2) Using For loop * *
     * {
     *     @code
     *     software.amazon.awssdk.services.autoscaling.paginators.DescribeLoadBalancersIterable responses = client
     *             .describeLoadBalancersPaginator(request);
     *     for (software.amazon.awssdk.services.autoscaling.model.DescribeLoadBalancersResponse response : responses) {
     *         // do something;
     *     }
     * }
     * 
* * 3) Use iterator directly * *
     * {@code
     * software.amazon.awssdk.services.autoscaling.paginators.DescribeLoadBalancersIterable responses = client.describeLoadBalancersPaginator(request);
     * responses.iterator().forEachRemaining(....);
     * }
     * 
*

* Please notice that the configuration of MaxRecords won't limit the number of results you get with the * paginator. It only limits the number of results in each page. *

*

* Note: If you prefer to have control on service calls, use the * {@link #describeLoadBalancers(software.amazon.awssdk.services.autoscaling.model.DescribeLoadBalancersRequest)} * operation. *

* * @param describeLoadBalancersRequest * @return A custom iterable that can be used to iterate through all the response pages. * @throws ResourceContentionException * You already have a pending update to an Amazon EC2 Auto Scaling resource (for example, an Auto Scaling * group, instance, or load balancer). * @throws InvalidNextTokenException * The NextToken value is not valid. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws AutoScalingException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample AutoScalingClient.DescribeLoadBalancers * @see AWS API Documentation */ default DescribeLoadBalancersIterable describeLoadBalancersPaginator(DescribeLoadBalancersRequest describeLoadBalancersRequest) throws ResourceContentionException, InvalidNextTokenException, AwsServiceException, SdkClientException, AutoScalingException { return new DescribeLoadBalancersIterable(this, describeLoadBalancersRequest); } /** *

* This is a variant of * {@link #describeLoadBalancers(software.amazon.awssdk.services.autoscaling.model.DescribeLoadBalancersRequest)} * operation. The return type is a custom iterable that can be used to iterate through all the pages. SDK will * internally handle making service calls for you. *

*

* When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no * guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response * pages by making service calls until there are no pages left or your iteration stops. If there are errors in your * request, you will see the failures only after you start iterating through the iterable. *

* *

* The following are few ways to iterate through the response pages: *

* 1) Using a Stream * *
     * {@code
     * software.amazon.awssdk.services.autoscaling.paginators.DescribeLoadBalancersIterable responses = client.describeLoadBalancersPaginator(request);
     * responses.stream().forEach(....);
     * }
     * 
* * 2) Using For loop * *
     * {
     *     @code
     *     software.amazon.awssdk.services.autoscaling.paginators.DescribeLoadBalancersIterable responses = client
     *             .describeLoadBalancersPaginator(request);
     *     for (software.amazon.awssdk.services.autoscaling.model.DescribeLoadBalancersResponse response : responses) {
     *         // do something;
     *     }
     * }
     * 
* * 3) Use iterator directly * *
     * {@code
     * software.amazon.awssdk.services.autoscaling.paginators.DescribeLoadBalancersIterable responses = client.describeLoadBalancersPaginator(request);
     * responses.iterator().forEachRemaining(....);
     * }
     * 
*

* Please notice that the configuration of MaxRecords won't limit the number of results you get with the * paginator. It only limits the number of results in each page. *

*

* Note: If you prefer to have control on service calls, use the * {@link #describeLoadBalancers(software.amazon.awssdk.services.autoscaling.model.DescribeLoadBalancersRequest)} * operation. *

*
*

* This is a convenience which creates an instance of the {@link DescribeLoadBalancersRequest.Builder} avoiding the * need to create one manually via {@link DescribeLoadBalancersRequest#builder()} *

* * @param describeLoadBalancersRequest * A {@link Consumer} that will call methods on * {@link software.amazon.awssdk.services.autoscaling.model.DescribeLoadBalancersRequest.Builder} to create a * request. * @return A custom iterable that can be used to iterate through all the response pages. * @throws ResourceContentionException * You already have a pending update to an Amazon EC2 Auto Scaling resource (for example, an Auto Scaling * group, instance, or load balancer). * @throws InvalidNextTokenException * The NextToken value is not valid. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws AutoScalingException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample AutoScalingClient.DescribeLoadBalancers * @see AWS API Documentation */ default DescribeLoadBalancersIterable describeLoadBalancersPaginator( Consumer describeLoadBalancersRequest) throws ResourceContentionException, InvalidNextTokenException, AwsServiceException, SdkClientException, AutoScalingException { return describeLoadBalancersPaginator(DescribeLoadBalancersRequest.builder().applyMutation(describeLoadBalancersRequest) .build()); } /** *

* Describes the available CloudWatch metrics for Amazon EC2 Auto Scaling. *

* * @param describeMetricCollectionTypesRequest * @return Result of the DescribeMetricCollectionTypes operation returned by the service. * @throws ResourceContentionException * You already have a pending update to an Amazon EC2 Auto Scaling resource (for example, an Auto Scaling * group, instance, or load balancer). * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws AutoScalingException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample AutoScalingClient.DescribeMetricCollectionTypes * @see AWS API Documentation */ default DescribeMetricCollectionTypesResponse describeMetricCollectionTypes( DescribeMetricCollectionTypesRequest describeMetricCollectionTypesRequest) throws ResourceContentionException, AwsServiceException, SdkClientException, AutoScalingException { throw new UnsupportedOperationException(); } /** *

* Describes the available CloudWatch metrics for Amazon EC2 Auto Scaling. *

*
*

* This is a convenience which creates an instance of the {@link DescribeMetricCollectionTypesRequest.Builder} * avoiding the need to create one manually via {@link DescribeMetricCollectionTypesRequest#builder()} *

* * @param describeMetricCollectionTypesRequest * A {@link Consumer} that will call methods on * {@link software.amazon.awssdk.services.autoscaling.model.DescribeMetricCollectionTypesRequest.Builder} to * create a request. * @return Result of the DescribeMetricCollectionTypes operation returned by the service. * @throws ResourceContentionException * You already have a pending update to an Amazon EC2 Auto Scaling resource (for example, an Auto Scaling * group, instance, or load balancer). * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws AutoScalingException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample AutoScalingClient.DescribeMetricCollectionTypes * @see AWS API Documentation */ default DescribeMetricCollectionTypesResponse describeMetricCollectionTypes( Consumer describeMetricCollectionTypesRequest) throws ResourceContentionException, AwsServiceException, SdkClientException, AutoScalingException { return describeMetricCollectionTypes(DescribeMetricCollectionTypesRequest.builder() .applyMutation(describeMetricCollectionTypesRequest).build()); } /** *

* Describes the available CloudWatch metrics for Amazon EC2 Auto Scaling. *

* * @return Result of the DescribeMetricCollectionTypes operation returned by the service. * @throws ResourceContentionException * You already have a pending update to an Amazon EC2 Auto Scaling resource (for example, an Auto Scaling * group, instance, or load balancer). * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws AutoScalingException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample AutoScalingClient.DescribeMetricCollectionTypes * @see #describeMetricCollectionTypes(DescribeMetricCollectionTypesRequest) * @see AWS API Documentation */ default DescribeMetricCollectionTypesResponse describeMetricCollectionTypes() throws ResourceContentionException, AwsServiceException, SdkClientException, AutoScalingException { return describeMetricCollectionTypes(DescribeMetricCollectionTypesRequest.builder().build()); } /** *

* Gets information about the Amazon SNS notifications that are configured for one or more Auto Scaling groups. *

* * @param describeNotificationConfigurationsRequest * @return Result of the DescribeNotificationConfigurations operation returned by the service. * @throws InvalidNextTokenException * The NextToken value is not valid. * @throws ResourceContentionException * You already have a pending update to an Amazon EC2 Auto Scaling resource (for example, an Auto Scaling * group, instance, or load balancer). * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws AutoScalingException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample AutoScalingClient.DescribeNotificationConfigurations * @see AWS API Documentation */ default DescribeNotificationConfigurationsResponse describeNotificationConfigurations( DescribeNotificationConfigurationsRequest describeNotificationConfigurationsRequest) throws InvalidNextTokenException, ResourceContentionException, AwsServiceException, SdkClientException, AutoScalingException { throw new UnsupportedOperationException(); } /** *

* Gets information about the Amazon SNS notifications that are configured for one or more Auto Scaling groups. *

*
*

* This is a convenience which creates an instance of the {@link DescribeNotificationConfigurationsRequest.Builder} * avoiding the need to create one manually via {@link DescribeNotificationConfigurationsRequest#builder()} *

* * @param describeNotificationConfigurationsRequest * A {@link Consumer} that will call methods on * {@link software.amazon.awssdk.services.autoscaling.model.DescribeNotificationConfigurationsRequest.Builder} * to create a request. * @return Result of the DescribeNotificationConfigurations operation returned by the service. * @throws InvalidNextTokenException * The NextToken value is not valid. * @throws ResourceContentionException * You already have a pending update to an Amazon EC2 Auto Scaling resource (for example, an Auto Scaling * group, instance, or load balancer). * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws AutoScalingException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample AutoScalingClient.DescribeNotificationConfigurations * @see AWS API Documentation */ default DescribeNotificationConfigurationsResponse describeNotificationConfigurations( Consumer describeNotificationConfigurationsRequest) throws InvalidNextTokenException, ResourceContentionException, AwsServiceException, SdkClientException, AutoScalingException { return describeNotificationConfigurations(DescribeNotificationConfigurationsRequest.builder() .applyMutation(describeNotificationConfigurationsRequest).build()); } /** *

* Gets information about the Amazon SNS notifications that are configured for one or more Auto Scaling groups. *

* * @return Result of the DescribeNotificationConfigurations operation returned by the service. * @throws InvalidNextTokenException * The NextToken value is not valid. * @throws ResourceContentionException * You already have a pending update to an Amazon EC2 Auto Scaling resource (for example, an Auto Scaling * group, instance, or load balancer). * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws AutoScalingException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample AutoScalingClient.DescribeNotificationConfigurations * @see #describeNotificationConfigurations(DescribeNotificationConfigurationsRequest) * @see AWS API Documentation */ default DescribeNotificationConfigurationsResponse describeNotificationConfigurations() throws InvalidNextTokenException, ResourceContentionException, AwsServiceException, SdkClientException, AutoScalingException { return describeNotificationConfigurations(DescribeNotificationConfigurationsRequest.builder().build()); } /** *

* This is a variant of * {@link #describeNotificationConfigurations(software.amazon.awssdk.services.autoscaling.model.DescribeNotificationConfigurationsRequest)} * operation. The return type is a custom iterable that can be used to iterate through all the pages. SDK will * internally handle making service calls for you. *

*

* When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no * guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response * pages by making service calls until there are no pages left or your iteration stops. If there are errors in your * request, you will see the failures only after you start iterating through the iterable. *

* *

* The following are few ways to iterate through the response pages: *

* 1) Using a Stream * *
     * {@code
     * software.amazon.awssdk.services.autoscaling.paginators.DescribeNotificationConfigurationsIterable responses = client.describeNotificationConfigurationsPaginator(request);
     * responses.stream().forEach(....);
     * }
     * 
* * 2) Using For loop * *
     * {
     *     @code
     *     software.amazon.awssdk.services.autoscaling.paginators.DescribeNotificationConfigurationsIterable responses = client
     *             .describeNotificationConfigurationsPaginator(request);
     *     for (software.amazon.awssdk.services.autoscaling.model.DescribeNotificationConfigurationsResponse response : responses) {
     *         // do something;
     *     }
     * }
     * 
* * 3) Use iterator directly * *
     * {@code
     * software.amazon.awssdk.services.autoscaling.paginators.DescribeNotificationConfigurationsIterable responses = client.describeNotificationConfigurationsPaginator(request);
     * responses.iterator().forEachRemaining(....);
     * }
     * 
*

* Please notice that the configuration of MaxRecords won't limit the number of results you get with the * paginator. It only limits the number of results in each page. *

*

* Note: If you prefer to have control on service calls, use the * {@link #describeNotificationConfigurations(software.amazon.awssdk.services.autoscaling.model.DescribeNotificationConfigurationsRequest)} * operation. *

* * @return A custom iterable that can be used to iterate through all the response pages. * @throws InvalidNextTokenException * The NextToken value is not valid. * @throws ResourceContentionException * You already have a pending update to an Amazon EC2 Auto Scaling resource (for example, an Auto Scaling * group, instance, or load balancer). * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws AutoScalingException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample AutoScalingClient.DescribeNotificationConfigurations * @see #describeNotificationConfigurationsPaginator(DescribeNotificationConfigurationsRequest) * @see AWS API Documentation */ default DescribeNotificationConfigurationsIterable describeNotificationConfigurationsPaginator() throws InvalidNextTokenException, ResourceContentionException, AwsServiceException, SdkClientException, AutoScalingException { return describeNotificationConfigurationsPaginator(DescribeNotificationConfigurationsRequest.builder().build()); } /** *

* This is a variant of * {@link #describeNotificationConfigurations(software.amazon.awssdk.services.autoscaling.model.DescribeNotificationConfigurationsRequest)} * operation. The return type is a custom iterable that can be used to iterate through all the pages. SDK will * internally handle making service calls for you. *

*

* When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no * guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response * pages by making service calls until there are no pages left or your iteration stops. If there are errors in your * request, you will see the failures only after you start iterating through the iterable. *

* *

* The following are few ways to iterate through the response pages: *

* 1) Using a Stream * *
     * {@code
     * software.amazon.awssdk.services.autoscaling.paginators.DescribeNotificationConfigurationsIterable responses = client.describeNotificationConfigurationsPaginator(request);
     * responses.stream().forEach(....);
     * }
     * 
* * 2) Using For loop * *
     * {
     *     @code
     *     software.amazon.awssdk.services.autoscaling.paginators.DescribeNotificationConfigurationsIterable responses = client
     *             .describeNotificationConfigurationsPaginator(request);
     *     for (software.amazon.awssdk.services.autoscaling.model.DescribeNotificationConfigurationsResponse response : responses) {
     *         // do something;
     *     }
     * }
     * 
* * 3) Use iterator directly * *
     * {@code
     * software.amazon.awssdk.services.autoscaling.paginators.DescribeNotificationConfigurationsIterable responses = client.describeNotificationConfigurationsPaginator(request);
     * responses.iterator().forEachRemaining(....);
     * }
     * 
*

* Please notice that the configuration of MaxRecords won't limit the number of results you get with the * paginator. It only limits the number of results in each page. *

*

* Note: If you prefer to have control on service calls, use the * {@link #describeNotificationConfigurations(software.amazon.awssdk.services.autoscaling.model.DescribeNotificationConfigurationsRequest)} * operation. *

* * @param describeNotificationConfigurationsRequest * @return A custom iterable that can be used to iterate through all the response pages. * @throws InvalidNextTokenException * The NextToken value is not valid. * @throws ResourceContentionException * You already have a pending update to an Amazon EC2 Auto Scaling resource (for example, an Auto Scaling * group, instance, or load balancer). * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws AutoScalingException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample AutoScalingClient.DescribeNotificationConfigurations * @see AWS API Documentation */ default DescribeNotificationConfigurationsIterable describeNotificationConfigurationsPaginator( DescribeNotificationConfigurationsRequest describeNotificationConfigurationsRequest) throws InvalidNextTokenException, ResourceContentionException, AwsServiceException, SdkClientException, AutoScalingException { return new DescribeNotificationConfigurationsIterable(this, describeNotificationConfigurationsRequest); } /** *

* This is a variant of * {@link #describeNotificationConfigurations(software.amazon.awssdk.services.autoscaling.model.DescribeNotificationConfigurationsRequest)} * operation. The return type is a custom iterable that can be used to iterate through all the pages. SDK will * internally handle making service calls for you. *

*

* When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no * guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response * pages by making service calls until there are no pages left or your iteration stops. If there are errors in your * request, you will see the failures only after you start iterating through the iterable. *

* *

* The following are few ways to iterate through the response pages: *

* 1) Using a Stream * *
     * {@code
     * software.amazon.awssdk.services.autoscaling.paginators.DescribeNotificationConfigurationsIterable responses = client.describeNotificationConfigurationsPaginator(request);
     * responses.stream().forEach(....);
     * }
     * 
* * 2) Using For loop * *
     * {
     *     @code
     *     software.amazon.awssdk.services.autoscaling.paginators.DescribeNotificationConfigurationsIterable responses = client
     *             .describeNotificationConfigurationsPaginator(request);
     *     for (software.amazon.awssdk.services.autoscaling.model.DescribeNotificationConfigurationsResponse response : responses) {
     *         // do something;
     *     }
     * }
     * 
* * 3) Use iterator directly * *
     * {@code
     * software.amazon.awssdk.services.autoscaling.paginators.DescribeNotificationConfigurationsIterable responses = client.describeNotificationConfigurationsPaginator(request);
     * responses.iterator().forEachRemaining(....);
     * }
     * 
*

* Please notice that the configuration of MaxRecords won't limit the number of results you get with the * paginator. It only limits the number of results in each page. *

*

* Note: If you prefer to have control on service calls, use the * {@link #describeNotificationConfigurations(software.amazon.awssdk.services.autoscaling.model.DescribeNotificationConfigurationsRequest)} * operation. *

*
*

* This is a convenience which creates an instance of the {@link DescribeNotificationConfigurationsRequest.Builder} * avoiding the need to create one manually via {@link DescribeNotificationConfigurationsRequest#builder()} *

* * @param describeNotificationConfigurationsRequest * A {@link Consumer} that will call methods on * {@link software.amazon.awssdk.services.autoscaling.model.DescribeNotificationConfigurationsRequest.Builder} * to create a request. * @return A custom iterable that can be used to iterate through all the response pages. * @throws InvalidNextTokenException * The NextToken value is not valid. * @throws ResourceContentionException * You already have a pending update to an Amazon EC2 Auto Scaling resource (for example, an Auto Scaling * group, instance, or load balancer). * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws AutoScalingException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample AutoScalingClient.DescribeNotificationConfigurations * @see AWS API Documentation */ default DescribeNotificationConfigurationsIterable describeNotificationConfigurationsPaginator( Consumer describeNotificationConfigurationsRequest) throws InvalidNextTokenException, ResourceContentionException, AwsServiceException, SdkClientException, AutoScalingException { return describeNotificationConfigurationsPaginator(DescribeNotificationConfigurationsRequest.builder() .applyMutation(describeNotificationConfigurationsRequest).build()); } /** *

* Gets information about the scaling policies in the account and Region. *

* * @param describePoliciesRequest * @return Result of the DescribePolicies operation returned by the service. * @throws InvalidNextTokenException * The NextToken value is not valid. * @throws ResourceContentionException * You already have a pending update to an Amazon EC2 Auto Scaling resource (for example, an Auto Scaling * group, instance, or load balancer). * @throws ServiceLinkedRoleFailureException * The service-linked role is not yet ready for use. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws AutoScalingException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample AutoScalingClient.DescribePolicies * @see AWS * API Documentation */ default DescribePoliciesResponse describePolicies(DescribePoliciesRequest describePoliciesRequest) throws InvalidNextTokenException, ResourceContentionException, ServiceLinkedRoleFailureException, AwsServiceException, SdkClientException, AutoScalingException { throw new UnsupportedOperationException(); } /** *

* Gets information about the scaling policies in the account and Region. *

*
*

* This is a convenience which creates an instance of the {@link DescribePoliciesRequest.Builder} avoiding the need * to create one manually via {@link DescribePoliciesRequest#builder()} *

* * @param describePoliciesRequest * A {@link Consumer} that will call methods on * {@link software.amazon.awssdk.services.autoscaling.model.DescribePoliciesRequest.Builder} to create a * request. * @return Result of the DescribePolicies operation returned by the service. * @throws InvalidNextTokenException * The NextToken value is not valid. * @throws ResourceContentionException * You already have a pending update to an Amazon EC2 Auto Scaling resource (for example, an Auto Scaling * group, instance, or load balancer). * @throws ServiceLinkedRoleFailureException * The service-linked role is not yet ready for use. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws AutoScalingException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample AutoScalingClient.DescribePolicies * @see AWS * API Documentation */ default DescribePoliciesResponse describePolicies(Consumer describePoliciesRequest) throws InvalidNextTokenException, ResourceContentionException, ServiceLinkedRoleFailureException, AwsServiceException, SdkClientException, AutoScalingException { return describePolicies(DescribePoliciesRequest.builder().applyMutation(describePoliciesRequest).build()); } /** *

* Gets information about the scaling policies in the account and Region. *

* * @return Result of the DescribePolicies operation returned by the service. * @throws InvalidNextTokenException * The NextToken value is not valid. * @throws ResourceContentionException * You already have a pending update to an Amazon EC2 Auto Scaling resource (for example, an Auto Scaling * group, instance, or load balancer). * @throws ServiceLinkedRoleFailureException * The service-linked role is not yet ready for use. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws AutoScalingException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample AutoScalingClient.DescribePolicies * @see #describePolicies(DescribePoliciesRequest) * @see AWS * API Documentation */ default DescribePoliciesResponse describePolicies() throws InvalidNextTokenException, ResourceContentionException, ServiceLinkedRoleFailureException, AwsServiceException, SdkClientException, AutoScalingException { return describePolicies(DescribePoliciesRequest.builder().build()); } /** *

* This is a variant of * {@link #describePolicies(software.amazon.awssdk.services.autoscaling.model.DescribePoliciesRequest)} operation. * The return type is a custom iterable that can be used to iterate through all the pages. SDK will internally * handle making service calls for you. *

*

* When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no * guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response * pages by making service calls until there are no pages left or your iteration stops. If there are errors in your * request, you will see the failures only after you start iterating through the iterable. *

* *

* The following are few ways to iterate through the response pages: *

* 1) Using a Stream * *
     * {@code
     * software.amazon.awssdk.services.autoscaling.paginators.DescribePoliciesIterable responses = client.describePoliciesPaginator(request);
     * responses.stream().forEach(....);
     * }
     * 
* * 2) Using For loop * *
     * {
     *     @code
     *     software.amazon.awssdk.services.autoscaling.paginators.DescribePoliciesIterable responses = client
     *             .describePoliciesPaginator(request);
     *     for (software.amazon.awssdk.services.autoscaling.model.DescribePoliciesResponse response : responses) {
     *         // do something;
     *     }
     * }
     * 
* * 3) Use iterator directly * *
     * {@code
     * software.amazon.awssdk.services.autoscaling.paginators.DescribePoliciesIterable responses = client.describePoliciesPaginator(request);
     * responses.iterator().forEachRemaining(....);
     * }
     * 
*

* Please notice that the configuration of MaxRecords won't limit the number of results you get with the * paginator. It only limits the number of results in each page. *

*

* Note: If you prefer to have control on service calls, use the * {@link #describePolicies(software.amazon.awssdk.services.autoscaling.model.DescribePoliciesRequest)} * operation. *

* * @return A custom iterable that can be used to iterate through all the response pages. * @throws InvalidNextTokenException * The NextToken value is not valid. * @throws ResourceContentionException * You already have a pending update to an Amazon EC2 Auto Scaling resource (for example, an Auto Scaling * group, instance, or load balancer). * @throws ServiceLinkedRoleFailureException * The service-linked role is not yet ready for use. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws AutoScalingException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample AutoScalingClient.DescribePolicies * @see #describePoliciesPaginator(DescribePoliciesRequest) * @see AWS * API Documentation */ default DescribePoliciesIterable describePoliciesPaginator() throws InvalidNextTokenException, ResourceContentionException, ServiceLinkedRoleFailureException, AwsServiceException, SdkClientException, AutoScalingException { return describePoliciesPaginator(DescribePoliciesRequest.builder().build()); } /** *

* This is a variant of * {@link #describePolicies(software.amazon.awssdk.services.autoscaling.model.DescribePoliciesRequest)} operation. * The return type is a custom iterable that can be used to iterate through all the pages. SDK will internally * handle making service calls for you. *

*

* When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no * guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response * pages by making service calls until there are no pages left or your iteration stops. If there are errors in your * request, you will see the failures only after you start iterating through the iterable. *

* *

* The following are few ways to iterate through the response pages: *

* 1) Using a Stream * *
     * {@code
     * software.amazon.awssdk.services.autoscaling.paginators.DescribePoliciesIterable responses = client.describePoliciesPaginator(request);
     * responses.stream().forEach(....);
     * }
     * 
* * 2) Using For loop * *
     * {
     *     @code
     *     software.amazon.awssdk.services.autoscaling.paginators.DescribePoliciesIterable responses = client
     *             .describePoliciesPaginator(request);
     *     for (software.amazon.awssdk.services.autoscaling.model.DescribePoliciesResponse response : responses) {
     *         // do something;
     *     }
     * }
     * 
* * 3) Use iterator directly * *
     * {@code
     * software.amazon.awssdk.services.autoscaling.paginators.DescribePoliciesIterable responses = client.describePoliciesPaginator(request);
     * responses.iterator().forEachRemaining(....);
     * }
     * 
*

* Please notice that the configuration of MaxRecords won't limit the number of results you get with the * paginator. It only limits the number of results in each page. *

*

* Note: If you prefer to have control on service calls, use the * {@link #describePolicies(software.amazon.awssdk.services.autoscaling.model.DescribePoliciesRequest)} * operation. *

* * @param describePoliciesRequest * @return A custom iterable that can be used to iterate through all the response pages. * @throws InvalidNextTokenException * The NextToken value is not valid. * @throws ResourceContentionException * You already have a pending update to an Amazon EC2 Auto Scaling resource (for example, an Auto Scaling * group, instance, or load balancer). * @throws ServiceLinkedRoleFailureException * The service-linked role is not yet ready for use. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws AutoScalingException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample AutoScalingClient.DescribePolicies * @see AWS * API Documentation */ default DescribePoliciesIterable describePoliciesPaginator(DescribePoliciesRequest describePoliciesRequest) throws InvalidNextTokenException, ResourceContentionException, ServiceLinkedRoleFailureException, AwsServiceException, SdkClientException, AutoScalingException { return new DescribePoliciesIterable(this, describePoliciesRequest); } /** *

* This is a variant of * {@link #describePolicies(software.amazon.awssdk.services.autoscaling.model.DescribePoliciesRequest)} operation. * The return type is a custom iterable that can be used to iterate through all the pages. SDK will internally * handle making service calls for you. *

*

* When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no * guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response * pages by making service calls until there are no pages left or your iteration stops. If there are errors in your * request, you will see the failures only after you start iterating through the iterable. *

* *

* The following are few ways to iterate through the response pages: *

* 1) Using a Stream * *
     * {@code
     * software.amazon.awssdk.services.autoscaling.paginators.DescribePoliciesIterable responses = client.describePoliciesPaginator(request);
     * responses.stream().forEach(....);
     * }
     * 
* * 2) Using For loop * *
     * {
     *     @code
     *     software.amazon.awssdk.services.autoscaling.paginators.DescribePoliciesIterable responses = client
     *             .describePoliciesPaginator(request);
     *     for (software.amazon.awssdk.services.autoscaling.model.DescribePoliciesResponse response : responses) {
     *         // do something;
     *     }
     * }
     * 
* * 3) Use iterator directly * *
     * {@code
     * software.amazon.awssdk.services.autoscaling.paginators.DescribePoliciesIterable responses = client.describePoliciesPaginator(request);
     * responses.iterator().forEachRemaining(....);
     * }
     * 
*

* Please notice that the configuration of MaxRecords won't limit the number of results you get with the * paginator. It only limits the number of results in each page. *

*

* Note: If you prefer to have control on service calls, use the * {@link #describePolicies(software.amazon.awssdk.services.autoscaling.model.DescribePoliciesRequest)} * operation. *

*
*

* This is a convenience which creates an instance of the {@link DescribePoliciesRequest.Builder} avoiding the need * to create one manually via {@link DescribePoliciesRequest#builder()} *

* * @param describePoliciesRequest * A {@link Consumer} that will call methods on * {@link software.amazon.awssdk.services.autoscaling.model.DescribePoliciesRequest.Builder} to create a * request. * @return A custom iterable that can be used to iterate through all the response pages. * @throws InvalidNextTokenException * The NextToken value is not valid. * @throws ResourceContentionException * You already have a pending update to an Amazon EC2 Auto Scaling resource (for example, an Auto Scaling * group, instance, or load balancer). * @throws ServiceLinkedRoleFailureException * The service-linked role is not yet ready for use. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws AutoScalingException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample AutoScalingClient.DescribePolicies * @see AWS * API Documentation */ default DescribePoliciesIterable describePoliciesPaginator(Consumer describePoliciesRequest) throws InvalidNextTokenException, ResourceContentionException, ServiceLinkedRoleFailureException, AwsServiceException, SdkClientException, AutoScalingException { return describePoliciesPaginator(DescribePoliciesRequest.builder().applyMutation(describePoliciesRequest).build()); } /** *

* Gets information about the scaling activities in the account and Region. *

*

* When scaling events occur, you see a record of the scaling activity in the scaling activities. For more * information, see Verify a scaling * activity for an Auto Scaling group in the Amazon EC2 Auto Scaling User Guide. *

*

* If the scaling event succeeds, the value of the StatusCode element in the response is * Successful. If an attempt to launch instances failed, the StatusCode value is * Failed or Cancelled and the StatusMessage element in the response * indicates the cause of the failure. For help interpreting the StatusMessage, see Troubleshooting Amazon EC2 * Auto Scaling in the Amazon EC2 Auto Scaling User Guide. *

* * @param describeScalingActivitiesRequest * @return Result of the DescribeScalingActivities operation returned by the service. * @throws InvalidNextTokenException * The NextToken value is not valid. * @throws ResourceContentionException * You already have a pending update to an Amazon EC2 Auto Scaling resource (for example, an Auto Scaling * group, instance, or load balancer). * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws AutoScalingException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample AutoScalingClient.DescribeScalingActivities * @see AWS API Documentation */ default DescribeScalingActivitiesResponse describeScalingActivities( DescribeScalingActivitiesRequest describeScalingActivitiesRequest) throws InvalidNextTokenException, ResourceContentionException, AwsServiceException, SdkClientException, AutoScalingException { throw new UnsupportedOperationException(); } /** *

* Gets information about the scaling activities in the account and Region. *

*

* When scaling events occur, you see a record of the scaling activity in the scaling activities. For more * information, see Verify a scaling * activity for an Auto Scaling group in the Amazon EC2 Auto Scaling User Guide. *

*

* If the scaling event succeeds, the value of the StatusCode element in the response is * Successful. If an attempt to launch instances failed, the StatusCode value is * Failed or Cancelled and the StatusMessage element in the response * indicates the cause of the failure. For help interpreting the StatusMessage, see Troubleshooting Amazon EC2 * Auto Scaling in the Amazon EC2 Auto Scaling User Guide. *

*
*

* This is a convenience which creates an instance of the {@link DescribeScalingActivitiesRequest.Builder} avoiding * the need to create one manually via {@link DescribeScalingActivitiesRequest#builder()} *

* * @param describeScalingActivitiesRequest * A {@link Consumer} that will call methods on * {@link software.amazon.awssdk.services.autoscaling.model.DescribeScalingActivitiesRequest.Builder} to * create a request. * @return Result of the DescribeScalingActivities operation returned by the service. * @throws InvalidNextTokenException * The NextToken value is not valid. * @throws ResourceContentionException * You already have a pending update to an Amazon EC2 Auto Scaling resource (for example, an Auto Scaling * group, instance, or load balancer). * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws AutoScalingException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample AutoScalingClient.DescribeScalingActivities * @see AWS API Documentation */ default DescribeScalingActivitiesResponse describeScalingActivities( Consumer describeScalingActivitiesRequest) throws InvalidNextTokenException, ResourceContentionException, AwsServiceException, SdkClientException, AutoScalingException { return describeScalingActivities(DescribeScalingActivitiesRequest.builder() .applyMutation(describeScalingActivitiesRequest).build()); } /** *

* Gets information about the scaling activities in the account and Region. *

*

* When scaling events occur, you see a record of the scaling activity in the scaling activities. For more * information, see Verify a scaling * activity for an Auto Scaling group in the Amazon EC2 Auto Scaling User Guide. *

*

* If the scaling event succeeds, the value of the StatusCode element in the response is * Successful. If an attempt to launch instances failed, the StatusCode value is * Failed or Cancelled and the StatusMessage element in the response * indicates the cause of the failure. For help interpreting the StatusMessage, see Troubleshooting Amazon EC2 * Auto Scaling in the Amazon EC2 Auto Scaling User Guide. *

* * @return Result of the DescribeScalingActivities operation returned by the service. * @throws InvalidNextTokenException * The NextToken value is not valid. * @throws ResourceContentionException * You already have a pending update to an Amazon EC2 Auto Scaling resource (for example, an Auto Scaling * group, instance, or load balancer). * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws AutoScalingException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample AutoScalingClient.DescribeScalingActivities * @see #describeScalingActivities(DescribeScalingActivitiesRequest) * @see AWS API Documentation */ default DescribeScalingActivitiesResponse describeScalingActivities() throws InvalidNextTokenException, ResourceContentionException, AwsServiceException, SdkClientException, AutoScalingException { return describeScalingActivities(DescribeScalingActivitiesRequest.builder().build()); } /** *

* This is a variant of * {@link #describeScalingActivities(software.amazon.awssdk.services.autoscaling.model.DescribeScalingActivitiesRequest)} * operation. The return type is a custom iterable that can be used to iterate through all the pages. SDK will * internally handle making service calls for you. *

*

* When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no * guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response * pages by making service calls until there are no pages left or your iteration stops. If there are errors in your * request, you will see the failures only after you start iterating through the iterable. *

* *

* The following are few ways to iterate through the response pages: *

* 1) Using a Stream * *
     * {@code
     * software.amazon.awssdk.services.autoscaling.paginators.DescribeScalingActivitiesIterable responses = client.describeScalingActivitiesPaginator(request);
     * responses.stream().forEach(....);
     * }
     * 
* * 2) Using For loop * *
     * {
     *     @code
     *     software.amazon.awssdk.services.autoscaling.paginators.DescribeScalingActivitiesIterable responses = client
     *             .describeScalingActivitiesPaginator(request);
     *     for (software.amazon.awssdk.services.autoscaling.model.DescribeScalingActivitiesResponse response : responses) {
     *         // do something;
     *     }
     * }
     * 
* * 3) Use iterator directly * *
     * {@code
     * software.amazon.awssdk.services.autoscaling.paginators.DescribeScalingActivitiesIterable responses = client.describeScalingActivitiesPaginator(request);
     * responses.iterator().forEachRemaining(....);
     * }
     * 
*

* Please notice that the configuration of MaxRecords won't limit the number of results you get with the * paginator. It only limits the number of results in each page. *

*

* Note: If you prefer to have control on service calls, use the * {@link #describeScalingActivities(software.amazon.awssdk.services.autoscaling.model.DescribeScalingActivitiesRequest)} * operation. *

* * @return A custom iterable that can be used to iterate through all the response pages. * @throws InvalidNextTokenException * The NextToken value is not valid. * @throws ResourceContentionException * You already have a pending update to an Amazon EC2 Auto Scaling resource (for example, an Auto Scaling * group, instance, or load balancer). * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws AutoScalingException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample AutoScalingClient.DescribeScalingActivities * @see #describeScalingActivitiesPaginator(DescribeScalingActivitiesRequest) * @see AWS API Documentation */ default DescribeScalingActivitiesIterable describeScalingActivitiesPaginator() throws InvalidNextTokenException, ResourceContentionException, AwsServiceException, SdkClientException, AutoScalingException { return describeScalingActivitiesPaginator(DescribeScalingActivitiesRequest.builder().build()); } /** *

* This is a variant of * {@link #describeScalingActivities(software.amazon.awssdk.services.autoscaling.model.DescribeScalingActivitiesRequest)} * operation. The return type is a custom iterable that can be used to iterate through all the pages. SDK will * internally handle making service calls for you. *

*

* When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no * guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response * pages by making service calls until there are no pages left or your iteration stops. If there are errors in your * request, you will see the failures only after you start iterating through the iterable. *

* *

* The following are few ways to iterate through the response pages: *

* 1) Using a Stream * *
     * {@code
     * software.amazon.awssdk.services.autoscaling.paginators.DescribeScalingActivitiesIterable responses = client.describeScalingActivitiesPaginator(request);
     * responses.stream().forEach(....);
     * }
     * 
* * 2) Using For loop * *
     * {
     *     @code
     *     software.amazon.awssdk.services.autoscaling.paginators.DescribeScalingActivitiesIterable responses = client
     *             .describeScalingActivitiesPaginator(request);
     *     for (software.amazon.awssdk.services.autoscaling.model.DescribeScalingActivitiesResponse response : responses) {
     *         // do something;
     *     }
     * }
     * 
* * 3) Use iterator directly * *
     * {@code
     * software.amazon.awssdk.services.autoscaling.paginators.DescribeScalingActivitiesIterable responses = client.describeScalingActivitiesPaginator(request);
     * responses.iterator().forEachRemaining(....);
     * }
     * 
*

* Please notice that the configuration of MaxRecords won't limit the number of results you get with the * paginator. It only limits the number of results in each page. *

*

* Note: If you prefer to have control on service calls, use the * {@link #describeScalingActivities(software.amazon.awssdk.services.autoscaling.model.DescribeScalingActivitiesRequest)} * operation. *

* * @param describeScalingActivitiesRequest * @return A custom iterable that can be used to iterate through all the response pages. * @throws InvalidNextTokenException * The NextToken value is not valid. * @throws ResourceContentionException * You already have a pending update to an Amazon EC2 Auto Scaling resource (for example, an Auto Scaling * group, instance, or load balancer). * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws AutoScalingException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample AutoScalingClient.DescribeScalingActivities * @see AWS API Documentation */ default DescribeScalingActivitiesIterable describeScalingActivitiesPaginator( DescribeScalingActivitiesRequest describeScalingActivitiesRequest) throws InvalidNextTokenException, ResourceContentionException, AwsServiceException, SdkClientException, AutoScalingException { return new DescribeScalingActivitiesIterable(this, describeScalingActivitiesRequest); } /** *

* This is a variant of * {@link #describeScalingActivities(software.amazon.awssdk.services.autoscaling.model.DescribeScalingActivitiesRequest)} * operation. The return type is a custom iterable that can be used to iterate through all the pages. SDK will * internally handle making service calls for you. *

*

* When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no * guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response * pages by making service calls until there are no pages left or your iteration stops. If there are errors in your * request, you will see the failures only after you start iterating through the iterable. *

* *

* The following are few ways to iterate through the response pages: *

* 1) Using a Stream * *
     * {@code
     * software.amazon.awssdk.services.autoscaling.paginators.DescribeScalingActivitiesIterable responses = client.describeScalingActivitiesPaginator(request);
     * responses.stream().forEach(....);
     * }
     * 
* * 2) Using For loop * *
     * {
     *     @code
     *     software.amazon.awssdk.services.autoscaling.paginators.DescribeScalingActivitiesIterable responses = client
     *             .describeScalingActivitiesPaginator(request);
     *     for (software.amazon.awssdk.services.autoscaling.model.DescribeScalingActivitiesResponse response : responses) {
     *         // do something;
     *     }
     * }
     * 
* * 3) Use iterator directly * *
     * {@code
     * software.amazon.awssdk.services.autoscaling.paginators.DescribeScalingActivitiesIterable responses = client.describeScalingActivitiesPaginator(request);
     * responses.iterator().forEachRemaining(....);
     * }
     * 
*

* Please notice that the configuration of MaxRecords won't limit the number of results you get with the * paginator. It only limits the number of results in each page. *

*

* Note: If you prefer to have control on service calls, use the * {@link #describeScalingActivities(software.amazon.awssdk.services.autoscaling.model.DescribeScalingActivitiesRequest)} * operation. *

*
*

* This is a convenience which creates an instance of the {@link DescribeScalingActivitiesRequest.Builder} avoiding * the need to create one manually via {@link DescribeScalingActivitiesRequest#builder()} *

* * @param describeScalingActivitiesRequest * A {@link Consumer} that will call methods on * {@link software.amazon.awssdk.services.autoscaling.model.DescribeScalingActivitiesRequest.Builder} to * create a request. * @return A custom iterable that can be used to iterate through all the response pages. * @throws InvalidNextTokenException * The NextToken value is not valid. * @throws ResourceContentionException * You already have a pending update to an Amazon EC2 Auto Scaling resource (for example, an Auto Scaling * group, instance, or load balancer). * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws AutoScalingException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample AutoScalingClient.DescribeScalingActivities * @see AWS API Documentation */ default DescribeScalingActivitiesIterable describeScalingActivitiesPaginator( Consumer describeScalingActivitiesRequest) throws InvalidNextTokenException, ResourceContentionException, AwsServiceException, SdkClientException, AutoScalingException { return describeScalingActivitiesPaginator(DescribeScalingActivitiesRequest.builder() .applyMutation(describeScalingActivitiesRequest).build()); } /** *

* Describes the scaling process types for use with the ResumeProcesses and * SuspendProcesses * APIs. *

* * @param describeScalingProcessTypesRequest * @return Result of the DescribeScalingProcessTypes operation returned by the service. * @throws ResourceContentionException * You already have a pending update to an Amazon EC2 Auto Scaling resource (for example, an Auto Scaling * group, instance, or load balancer). * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws AutoScalingException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample AutoScalingClient.DescribeScalingProcessTypes * @see AWS API Documentation */ default DescribeScalingProcessTypesResponse describeScalingProcessTypes( DescribeScalingProcessTypesRequest describeScalingProcessTypesRequest) throws ResourceContentionException, AwsServiceException, SdkClientException, AutoScalingException { throw new UnsupportedOperationException(); } /** *

* Describes the scaling process types for use with the ResumeProcesses and * SuspendProcesses * APIs. *

*
*

* This is a convenience which creates an instance of the {@link DescribeScalingProcessTypesRequest.Builder} * avoiding the need to create one manually via {@link DescribeScalingProcessTypesRequest#builder()} *

* * @param describeScalingProcessTypesRequest * A {@link Consumer} that will call methods on * {@link software.amazon.awssdk.services.autoscaling.model.DescribeScalingProcessTypesRequest.Builder} to * create a request. * @return Result of the DescribeScalingProcessTypes operation returned by the service. * @throws ResourceContentionException * You already have a pending update to an Amazon EC2 Auto Scaling resource (for example, an Auto Scaling * group, instance, or load balancer). * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws AutoScalingException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample AutoScalingClient.DescribeScalingProcessTypes * @see AWS API Documentation */ default DescribeScalingProcessTypesResponse describeScalingProcessTypes( Consumer describeScalingProcessTypesRequest) throws ResourceContentionException, AwsServiceException, SdkClientException, AutoScalingException { return describeScalingProcessTypes(DescribeScalingProcessTypesRequest.builder() .applyMutation(describeScalingProcessTypesRequest).build()); } /** *

* Describes the scaling process types for use with the ResumeProcesses and * SuspendProcesses * APIs. *

* * @return Result of the DescribeScalingProcessTypes operation returned by the service. * @throws ResourceContentionException * You already have a pending update to an Amazon EC2 Auto Scaling resource (for example, an Auto Scaling * group, instance, or load balancer). * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws AutoScalingException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample AutoScalingClient.DescribeScalingProcessTypes * @see #describeScalingProcessTypes(DescribeScalingProcessTypesRequest) * @see AWS API Documentation */ default DescribeScalingProcessTypesResponse describeScalingProcessTypes() throws ResourceContentionException, AwsServiceException, SdkClientException, AutoScalingException { return describeScalingProcessTypes(DescribeScalingProcessTypesRequest.builder().build()); } /** *

* Gets information about the scheduled actions that haven't run or that have not reached their end time. *

*

* To describe the scaling activities for scheduled actions that have already run, call the DescribeScalingActivities API. *

* * @param describeScheduledActionsRequest * @return Result of the DescribeScheduledActions operation returned by the service. * @throws InvalidNextTokenException * The NextToken value is not valid. * @throws ResourceContentionException * You already have a pending update to an Amazon EC2 Auto Scaling resource (for example, an Auto Scaling * group, instance, or load balancer). * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws AutoScalingException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample AutoScalingClient.DescribeScheduledActions * @see AWS API Documentation */ default DescribeScheduledActionsResponse describeScheduledActions( DescribeScheduledActionsRequest describeScheduledActionsRequest) throws InvalidNextTokenException, ResourceContentionException, AwsServiceException, SdkClientException, AutoScalingException { throw new UnsupportedOperationException(); } /** *

* Gets information about the scheduled actions that haven't run or that have not reached their end time. *

*

* To describe the scaling activities for scheduled actions that have already run, call the DescribeScalingActivities API. *

*
*

* This is a convenience which creates an instance of the {@link DescribeScheduledActionsRequest.Builder} avoiding * the need to create one manually via {@link DescribeScheduledActionsRequest#builder()} *

* * @param describeScheduledActionsRequest * A {@link Consumer} that will call methods on * {@link software.amazon.awssdk.services.autoscaling.model.DescribeScheduledActionsRequest.Builder} to * create a request. * @return Result of the DescribeScheduledActions operation returned by the service. * @throws InvalidNextTokenException * The NextToken value is not valid. * @throws ResourceContentionException * You already have a pending update to an Amazon EC2 Auto Scaling resource (for example, an Auto Scaling * group, instance, or load balancer). * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws AutoScalingException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample AutoScalingClient.DescribeScheduledActions * @see AWS API Documentation */ default DescribeScheduledActionsResponse describeScheduledActions( Consumer describeScheduledActionsRequest) throws InvalidNextTokenException, ResourceContentionException, AwsServiceException, SdkClientException, AutoScalingException { return describeScheduledActions(DescribeScheduledActionsRequest.builder().applyMutation(describeScheduledActionsRequest) .build()); } /** *

* Gets information about the scheduled actions that haven't run or that have not reached their end time. *

*

* To describe the scaling activities for scheduled actions that have already run, call the DescribeScalingActivities API. *

* * @return Result of the DescribeScheduledActions operation returned by the service. * @throws InvalidNextTokenException * The NextToken value is not valid. * @throws ResourceContentionException * You already have a pending update to an Amazon EC2 Auto Scaling resource (for example, an Auto Scaling * group, instance, or load balancer). * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws AutoScalingException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample AutoScalingClient.DescribeScheduledActions * @see #describeScheduledActions(DescribeScheduledActionsRequest) * @see AWS API Documentation */ default DescribeScheduledActionsResponse describeScheduledActions() throws InvalidNextTokenException, ResourceContentionException, AwsServiceException, SdkClientException, AutoScalingException { return describeScheduledActions(DescribeScheduledActionsRequest.builder().build()); } /** *

* This is a variant of * {@link #describeScheduledActions(software.amazon.awssdk.services.autoscaling.model.DescribeScheduledActionsRequest)} * operation. The return type is a custom iterable that can be used to iterate through all the pages. SDK will * internally handle making service calls for you. *

*

* When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no * guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response * pages by making service calls until there are no pages left or your iteration stops. If there are errors in your * request, you will see the failures only after you start iterating through the iterable. *

* *

* The following are few ways to iterate through the response pages: *

* 1) Using a Stream * *
     * {@code
     * software.amazon.awssdk.services.autoscaling.paginators.DescribeScheduledActionsIterable responses = client.describeScheduledActionsPaginator(request);
     * responses.stream().forEach(....);
     * }
     * 
* * 2) Using For loop * *
     * {
     *     @code
     *     software.amazon.awssdk.services.autoscaling.paginators.DescribeScheduledActionsIterable responses = client
     *             .describeScheduledActionsPaginator(request);
     *     for (software.amazon.awssdk.services.autoscaling.model.DescribeScheduledActionsResponse response : responses) {
     *         // do something;
     *     }
     * }
     * 
* * 3) Use iterator directly * *
     * {@code
     * software.amazon.awssdk.services.autoscaling.paginators.DescribeScheduledActionsIterable responses = client.describeScheduledActionsPaginator(request);
     * responses.iterator().forEachRemaining(....);
     * }
     * 
*

* Please notice that the configuration of MaxRecords won't limit the number of results you get with the * paginator. It only limits the number of results in each page. *

*

* Note: If you prefer to have control on service calls, use the * {@link #describeScheduledActions(software.amazon.awssdk.services.autoscaling.model.DescribeScheduledActionsRequest)} * operation. *

* * @return A custom iterable that can be used to iterate through all the response pages. * @throws InvalidNextTokenException * The NextToken value is not valid. * @throws ResourceContentionException * You already have a pending update to an Amazon EC2 Auto Scaling resource (for example, an Auto Scaling * group, instance, or load balancer). * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws AutoScalingException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample AutoScalingClient.DescribeScheduledActions * @see #describeScheduledActionsPaginator(DescribeScheduledActionsRequest) * @see AWS API Documentation */ default DescribeScheduledActionsIterable describeScheduledActionsPaginator() throws InvalidNextTokenException, ResourceContentionException, AwsServiceException, SdkClientException, AutoScalingException { return describeScheduledActionsPaginator(DescribeScheduledActionsRequest.builder().build()); } /** *

* This is a variant of * {@link #describeScheduledActions(software.amazon.awssdk.services.autoscaling.model.DescribeScheduledActionsRequest)} * operation. The return type is a custom iterable that can be used to iterate through all the pages. SDK will * internally handle making service calls for you. *

*

* When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no * guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response * pages by making service calls until there are no pages left or your iteration stops. If there are errors in your * request, you will see the failures only after you start iterating through the iterable. *

* *

* The following are few ways to iterate through the response pages: *

* 1) Using a Stream * *
     * {@code
     * software.amazon.awssdk.services.autoscaling.paginators.DescribeScheduledActionsIterable responses = client.describeScheduledActionsPaginator(request);
     * responses.stream().forEach(....);
     * }
     * 
* * 2) Using For loop * *
     * {
     *     @code
     *     software.amazon.awssdk.services.autoscaling.paginators.DescribeScheduledActionsIterable responses = client
     *             .describeScheduledActionsPaginator(request);
     *     for (software.amazon.awssdk.services.autoscaling.model.DescribeScheduledActionsResponse response : responses) {
     *         // do something;
     *     }
     * }
     * 
* * 3) Use iterator directly * *
     * {@code
     * software.amazon.awssdk.services.autoscaling.paginators.DescribeScheduledActionsIterable responses = client.describeScheduledActionsPaginator(request);
     * responses.iterator().forEachRemaining(....);
     * }
     * 
*

* Please notice that the configuration of MaxRecords won't limit the number of results you get with the * paginator. It only limits the number of results in each page. *

*

* Note: If you prefer to have control on service calls, use the * {@link #describeScheduledActions(software.amazon.awssdk.services.autoscaling.model.DescribeScheduledActionsRequest)} * operation. *

* * @param describeScheduledActionsRequest * @return A custom iterable that can be used to iterate through all the response pages. * @throws InvalidNextTokenException * The NextToken value is not valid. * @throws ResourceContentionException * You already have a pending update to an Amazon EC2 Auto Scaling resource (for example, an Auto Scaling * group, instance, or load balancer). * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws AutoScalingException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample AutoScalingClient.DescribeScheduledActions * @see AWS API Documentation */ default DescribeScheduledActionsIterable describeScheduledActionsPaginator( DescribeScheduledActionsRequest describeScheduledActionsRequest) throws InvalidNextTokenException, ResourceContentionException, AwsServiceException, SdkClientException, AutoScalingException { return new DescribeScheduledActionsIterable(this, describeScheduledActionsRequest); } /** *

* This is a variant of * {@link #describeScheduledActions(software.amazon.awssdk.services.autoscaling.model.DescribeScheduledActionsRequest)} * operation. The return type is a custom iterable that can be used to iterate through all the pages. SDK will * internally handle making service calls for you. *

*

* When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no * guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response * pages by making service calls until there are no pages left or your iteration stops. If there are errors in your * request, you will see the failures only after you start iterating through the iterable. *

* *

* The following are few ways to iterate through the response pages: *

* 1) Using a Stream * *
     * {@code
     * software.amazon.awssdk.services.autoscaling.paginators.DescribeScheduledActionsIterable responses = client.describeScheduledActionsPaginator(request);
     * responses.stream().forEach(....);
     * }
     * 
* * 2) Using For loop * *
     * {
     *     @code
     *     software.amazon.awssdk.services.autoscaling.paginators.DescribeScheduledActionsIterable responses = client
     *             .describeScheduledActionsPaginator(request);
     *     for (software.amazon.awssdk.services.autoscaling.model.DescribeScheduledActionsResponse response : responses) {
     *         // do something;
     *     }
     * }
     * 
* * 3) Use iterator directly * *
     * {@code
     * software.amazon.awssdk.services.autoscaling.paginators.DescribeScheduledActionsIterable responses = client.describeScheduledActionsPaginator(request);
     * responses.iterator().forEachRemaining(....);
     * }
     * 
*

* Please notice that the configuration of MaxRecords won't limit the number of results you get with the * paginator. It only limits the number of results in each page. *

*

* Note: If you prefer to have control on service calls, use the * {@link #describeScheduledActions(software.amazon.awssdk.services.autoscaling.model.DescribeScheduledActionsRequest)} * operation. *

*
*

* This is a convenience which creates an instance of the {@link DescribeScheduledActionsRequest.Builder} avoiding * the need to create one manually via {@link DescribeScheduledActionsRequest#builder()} *

* * @param describeScheduledActionsRequest * A {@link Consumer} that will call methods on * {@link software.amazon.awssdk.services.autoscaling.model.DescribeScheduledActionsRequest.Builder} to * create a request. * @return A custom iterable that can be used to iterate through all the response pages. * @throws InvalidNextTokenException * The NextToken value is not valid. * @throws ResourceContentionException * You already have a pending update to an Amazon EC2 Auto Scaling resource (for example, an Auto Scaling * group, instance, or load balancer). * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws AutoScalingException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample AutoScalingClient.DescribeScheduledActions * @see AWS API Documentation */ default DescribeScheduledActionsIterable describeScheduledActionsPaginator( Consumer describeScheduledActionsRequest) throws InvalidNextTokenException, ResourceContentionException, AwsServiceException, SdkClientException, AutoScalingException { return describeScheduledActionsPaginator(DescribeScheduledActionsRequest.builder() .applyMutation(describeScheduledActionsRequest).build()); } /** *

* Describes the specified tags. *

*

* 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. *

*

* 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. *

*

* For more information, see Tag Auto Scaling * groups and instances in the Amazon EC2 Auto Scaling User Guide. *

* * @param describeTagsRequest * @return Result of the DescribeTags operation returned by the service. * @throws InvalidNextTokenException * The NextToken value is not valid. * @throws ResourceContentionException * You already have a pending update to an Amazon EC2 Auto Scaling resource (for example, an Auto Scaling * group, instance, or load balancer). * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws AutoScalingException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample AutoScalingClient.DescribeTags * @see AWS API * Documentation */ default DescribeTagsResponse describeTags(DescribeTagsRequest describeTagsRequest) throws InvalidNextTokenException, ResourceContentionException, AwsServiceException, SdkClientException, AutoScalingException { throw new UnsupportedOperationException(); } /** *

* Describes the specified tags. *

*

* 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. *

*

* 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. *

*

* For more information, see Tag Auto Scaling * groups and instances in the Amazon EC2 Auto Scaling User Guide. *

*
*

* This is a convenience which creates an instance of the {@link DescribeTagsRequest.Builder} avoiding the need to * create one manually via {@link DescribeTagsRequest#builder()} *

* * @param describeTagsRequest * A {@link Consumer} that will call methods on * {@link software.amazon.awssdk.services.autoscaling.model.DescribeTagsRequest.Builder} to create a request. * @return Result of the DescribeTags operation returned by the service. * @throws InvalidNextTokenException * The NextToken value is not valid. * @throws ResourceContentionException * You already have a pending update to an Amazon EC2 Auto Scaling resource (for example, an Auto Scaling * group, instance, or load balancer). * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws AutoScalingException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample AutoScalingClient.DescribeTags * @see AWS API * Documentation */ default DescribeTagsResponse describeTags(Consumer describeTagsRequest) throws InvalidNextTokenException, ResourceContentionException, AwsServiceException, SdkClientException, AutoScalingException { return describeTags(DescribeTagsRequest.builder().applyMutation(describeTagsRequest).build()); } /** *

* Describes the specified tags. *

*

* 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. *

*

* 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. *

*

* For more information, see Tag Auto Scaling * groups and instances in the Amazon EC2 Auto Scaling User Guide. *

* * @return Result of the DescribeTags operation returned by the service. * @throws InvalidNextTokenException * The NextToken value is not valid. * @throws ResourceContentionException * You already have a pending update to an Amazon EC2 Auto Scaling resource (for example, an Auto Scaling * group, instance, or load balancer). * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws AutoScalingException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample AutoScalingClient.DescribeTags * @see #describeTags(DescribeTagsRequest) * @see AWS API * Documentation */ default DescribeTagsResponse describeTags() throws InvalidNextTokenException, ResourceContentionException, AwsServiceException, SdkClientException, AutoScalingException { return describeTags(DescribeTagsRequest.builder().build()); } /** *

* This is a variant of {@link #describeTags(software.amazon.awssdk.services.autoscaling.model.DescribeTagsRequest)} * operation. The return type is a custom iterable that can be used to iterate through all the pages. SDK will * internally handle making service calls for you. *

*

* When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no * guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response * pages by making service calls until there are no pages left or your iteration stops. If there are errors in your * request, you will see the failures only after you start iterating through the iterable. *

* *

* The following are few ways to iterate through the response pages: *

* 1) Using a Stream * *
     * {@code
     * software.amazon.awssdk.services.autoscaling.paginators.DescribeTagsIterable responses = client.describeTagsPaginator(request);
     * responses.stream().forEach(....);
     * }
     * 
* * 2) Using For loop * *
     * {
     *     @code
     *     software.amazon.awssdk.services.autoscaling.paginators.DescribeTagsIterable responses = client.describeTagsPaginator(request);
     *     for (software.amazon.awssdk.services.autoscaling.model.DescribeTagsResponse response : responses) {
     *         // do something;
     *     }
     * }
     * 
* * 3) Use iterator directly * *
     * {@code
     * software.amazon.awssdk.services.autoscaling.paginators.DescribeTagsIterable responses = client.describeTagsPaginator(request);
     * responses.iterator().forEachRemaining(....);
     * }
     * 
*

* Please notice that the configuration of MaxRecords won't limit the number of results you get with the * paginator. It only limits the number of results in each page. *

*

* Note: If you prefer to have control on service calls, use the * {@link #describeTags(software.amazon.awssdk.services.autoscaling.model.DescribeTagsRequest)} operation. *

* * @return A custom iterable that can be used to iterate through all the response pages. * @throws InvalidNextTokenException * The NextToken value is not valid. * @throws ResourceContentionException * You already have a pending update to an Amazon EC2 Auto Scaling resource (for example, an Auto Scaling * group, instance, or load balancer). * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws AutoScalingException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample AutoScalingClient.DescribeTags * @see #describeTagsPaginator(DescribeTagsRequest) * @see AWS API * Documentation */ default DescribeTagsIterable describeTagsPaginator() throws InvalidNextTokenException, ResourceContentionException, AwsServiceException, SdkClientException, AutoScalingException { return describeTagsPaginator(DescribeTagsRequest.builder().build()); } /** *

* This is a variant of {@link #describeTags(software.amazon.awssdk.services.autoscaling.model.DescribeTagsRequest)} * operation. The return type is a custom iterable that can be used to iterate through all the pages. SDK will * internally handle making service calls for you. *

*

* When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no * guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response * pages by making service calls until there are no pages left or your iteration stops. If there are errors in your * request, you will see the failures only after you start iterating through the iterable. *

* *

* The following are few ways to iterate through the response pages: *

* 1) Using a Stream * *
     * {@code
     * software.amazon.awssdk.services.autoscaling.paginators.DescribeTagsIterable responses = client.describeTagsPaginator(request);
     * responses.stream().forEach(....);
     * }
     * 
* * 2) Using For loop * *
     * {
     *     @code
     *     software.amazon.awssdk.services.autoscaling.paginators.DescribeTagsIterable responses = client.describeTagsPaginator(request);
     *     for (software.amazon.awssdk.services.autoscaling.model.DescribeTagsResponse response : responses) {
     *         // do something;
     *     }
     * }
     * 
* * 3) Use iterator directly * *
     * {@code
     * software.amazon.awssdk.services.autoscaling.paginators.DescribeTagsIterable responses = client.describeTagsPaginator(request);
     * responses.iterator().forEachRemaining(....);
     * }
     * 
*

* Please notice that the configuration of MaxRecords won't limit the number of results you get with the * paginator. It only limits the number of results in each page. *

*

* Note: If you prefer to have control on service calls, use the * {@link #describeTags(software.amazon.awssdk.services.autoscaling.model.DescribeTagsRequest)} operation. *

* * @param describeTagsRequest * @return A custom iterable that can be used to iterate through all the response pages. * @throws InvalidNextTokenException * The NextToken value is not valid. * @throws ResourceContentionException * You already have a pending update to an Amazon EC2 Auto Scaling resource (for example, an Auto Scaling * group, instance, or load balancer). * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws AutoScalingException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample AutoScalingClient.DescribeTags * @see AWS API * Documentation */ default DescribeTagsIterable describeTagsPaginator(DescribeTagsRequest describeTagsRequest) throws InvalidNextTokenException, ResourceContentionException, AwsServiceException, SdkClientException, AutoScalingException { return new DescribeTagsIterable(this, describeTagsRequest); } /** *

* This is a variant of {@link #describeTags(software.amazon.awssdk.services.autoscaling.model.DescribeTagsRequest)} * operation. The return type is a custom iterable that can be used to iterate through all the pages. SDK will * internally handle making service calls for you. *

*

* When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no * guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response * pages by making service calls until there are no pages left or your iteration stops. If there are errors in your * request, you will see the failures only after you start iterating through the iterable. *

* *

* The following are few ways to iterate through the response pages: *

* 1) Using a Stream * *
     * {@code
     * software.amazon.awssdk.services.autoscaling.paginators.DescribeTagsIterable responses = client.describeTagsPaginator(request);
     * responses.stream().forEach(....);
     * }
     * 
* * 2) Using For loop * *
     * {
     *     @code
     *     software.amazon.awssdk.services.autoscaling.paginators.DescribeTagsIterable responses = client.describeTagsPaginator(request);
     *     for (software.amazon.awssdk.services.autoscaling.model.DescribeTagsResponse response : responses) {
     *         // do something;
     *     }
     * }
     * 
* * 3) Use iterator directly * *
     * {@code
     * software.amazon.awssdk.services.autoscaling.paginators.DescribeTagsIterable responses = client.describeTagsPaginator(request);
     * responses.iterator().forEachRemaining(....);
     * }
     * 
*

* Please notice that the configuration of MaxRecords won't limit the number of results you get with the * paginator. It only limits the number of results in each page. *

*

* Note: If you prefer to have control on service calls, use the * {@link #describeTags(software.amazon.awssdk.services.autoscaling.model.DescribeTagsRequest)} operation. *

*
*

* This is a convenience which creates an instance of the {@link DescribeTagsRequest.Builder} avoiding the need to * create one manually via {@link DescribeTagsRequest#builder()} *

* * @param describeTagsRequest * A {@link Consumer} that will call methods on * {@link software.amazon.awssdk.services.autoscaling.model.DescribeTagsRequest.Builder} to create a request. * @return A custom iterable that can be used to iterate through all the response pages. * @throws InvalidNextTokenException * The NextToken value is not valid. * @throws ResourceContentionException * You already have a pending update to an Amazon EC2 Auto Scaling resource (for example, an Auto Scaling * group, instance, or load balancer). * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws AutoScalingException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample AutoScalingClient.DescribeTags * @see AWS API * Documentation */ default DescribeTagsIterable describeTagsPaginator(Consumer describeTagsRequest) throws InvalidNextTokenException, ResourceContentionException, AwsServiceException, SdkClientException, AutoScalingException { return describeTagsPaginator(DescribeTagsRequest.builder().applyMutation(describeTagsRequest).build()); } /** *

* Describes the termination policies supported by Amazon EC2 Auto Scaling. *

*

* For more information, see Configure * termination policies for Amazon EC2 Auto Scaling in the Amazon EC2 Auto Scaling User Guide. *

* * @param describeTerminationPolicyTypesRequest * @return Result of the DescribeTerminationPolicyTypes operation returned by the service. * @throws ResourceContentionException * You already have a pending update to an Amazon EC2 Auto Scaling resource (for example, an Auto Scaling * group, instance, or load balancer). * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws AutoScalingException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample AutoScalingClient.DescribeTerminationPolicyTypes * @see AWS API Documentation */ default DescribeTerminationPolicyTypesResponse describeTerminationPolicyTypes( DescribeTerminationPolicyTypesRequest describeTerminationPolicyTypesRequest) throws ResourceContentionException, AwsServiceException, SdkClientException, AutoScalingException { throw new UnsupportedOperationException(); } /** *

* Describes the termination policies supported by Amazon EC2 Auto Scaling. *

*

* For more information, see Configure * termination policies for Amazon EC2 Auto Scaling in the Amazon EC2 Auto Scaling User Guide. *

*
*

* This is a convenience which creates an instance of the {@link DescribeTerminationPolicyTypesRequest.Builder} * avoiding the need to create one manually via {@link DescribeTerminationPolicyTypesRequest#builder()} *

* * @param describeTerminationPolicyTypesRequest * A {@link Consumer} that will call methods on * {@link software.amazon.awssdk.services.autoscaling.model.DescribeTerminationPolicyTypesRequest.Builder} to * create a request. * @return Result of the DescribeTerminationPolicyTypes operation returned by the service. * @throws ResourceContentionException * You already have a pending update to an Amazon EC2 Auto Scaling resource (for example, an Auto Scaling * group, instance, or load balancer). * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws AutoScalingException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample AutoScalingClient.DescribeTerminationPolicyTypes * @see AWS API Documentation */ default DescribeTerminationPolicyTypesResponse describeTerminationPolicyTypes( Consumer describeTerminationPolicyTypesRequest) throws ResourceContentionException, AwsServiceException, SdkClientException, AutoScalingException { return describeTerminationPolicyTypes(DescribeTerminationPolicyTypesRequest.builder() .applyMutation(describeTerminationPolicyTypesRequest).build()); } /** *

* Describes the termination policies supported by Amazon EC2 Auto Scaling. *

*

* For more information, see Configure * termination policies for Amazon EC2 Auto Scaling in the Amazon EC2 Auto Scaling User Guide. *

* * @return Result of the DescribeTerminationPolicyTypes operation returned by the service. * @throws ResourceContentionException * You already have a pending update to an Amazon EC2 Auto Scaling resource (for example, an Auto Scaling * group, instance, or load balancer). * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws AutoScalingException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample AutoScalingClient.DescribeTerminationPolicyTypes * @see #describeTerminationPolicyTypes(DescribeTerminationPolicyTypesRequest) * @see AWS API Documentation */ default DescribeTerminationPolicyTypesResponse describeTerminationPolicyTypes() throws ResourceContentionException, AwsServiceException, SdkClientException, AutoScalingException { return describeTerminationPolicyTypes(DescribeTerminationPolicyTypesRequest.builder().build()); } /** *

* Gets information about the traffic sources for the specified Auto Scaling group. *

*

* You can optionally provide a traffic source type. If you provide a traffic source type, then the results only * include that traffic source type. *

*

* If you do not provide a traffic source type, then the results include all the traffic sources for the specified * Auto Scaling group. *

* * @param describeTrafficSourcesRequest * @return Result of the DescribeTrafficSources operation returned by the service. * @throws ResourceContentionException * You already have a pending update to an Amazon EC2 Auto Scaling resource (for example, an Auto Scaling * group, instance, or load balancer). * @throws InvalidNextTokenException * The NextToken value is not valid. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws AutoScalingException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample AutoScalingClient.DescribeTrafficSources * @see AWS API Documentation */ default DescribeTrafficSourcesResponse describeTrafficSources(DescribeTrafficSourcesRequest describeTrafficSourcesRequest) throws ResourceContentionException, InvalidNextTokenException, AwsServiceException, SdkClientException, AutoScalingException { throw new UnsupportedOperationException(); } /** *

* Gets information about the traffic sources for the specified Auto Scaling group. *

*

* You can optionally provide a traffic source type. If you provide a traffic source type, then the results only * include that traffic source type. *

*

* If you do not provide a traffic source type, then the results include all the traffic sources for the specified * Auto Scaling group. *

*
*

* This is a convenience which creates an instance of the {@link DescribeTrafficSourcesRequest.Builder} avoiding the * need to create one manually via {@link DescribeTrafficSourcesRequest#builder()} *

* * @param describeTrafficSourcesRequest * A {@link Consumer} that will call methods on * {@link software.amazon.awssdk.services.autoscaling.model.DescribeTrafficSourcesRequest.Builder} to create * a request. * @return Result of the DescribeTrafficSources operation returned by the service. * @throws ResourceContentionException * You already have a pending update to an Amazon EC2 Auto Scaling resource (for example, an Auto Scaling * group, instance, or load balancer). * @throws InvalidNextTokenException * The NextToken value is not valid. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws AutoScalingException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample AutoScalingClient.DescribeTrafficSources * @see AWS API Documentation */ default DescribeTrafficSourcesResponse describeTrafficSources( Consumer describeTrafficSourcesRequest) throws ResourceContentionException, InvalidNextTokenException, AwsServiceException, SdkClientException, AutoScalingException { return describeTrafficSources(DescribeTrafficSourcesRequest.builder().applyMutation(describeTrafficSourcesRequest) .build()); } /** *

* This is a variant of * {@link #describeTrafficSources(software.amazon.awssdk.services.autoscaling.model.DescribeTrafficSourcesRequest)} * operation. The return type is a custom iterable that can be used to iterate through all the pages. SDK will * internally handle making service calls for you. *

*

* When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no * guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response * pages by making service calls until there are no pages left or your iteration stops. If there are errors in your * request, you will see the failures only after you start iterating through the iterable. *

* *

* The following are few ways to iterate through the response pages: *

* 1) Using a Stream * *
     * {@code
     * software.amazon.awssdk.services.autoscaling.paginators.DescribeTrafficSourcesIterable responses = client.describeTrafficSourcesPaginator(request);
     * responses.stream().forEach(....);
     * }
     * 
* * 2) Using For loop * *
     * {
     *     @code
     *     software.amazon.awssdk.services.autoscaling.paginators.DescribeTrafficSourcesIterable responses = client
     *             .describeTrafficSourcesPaginator(request);
     *     for (software.amazon.awssdk.services.autoscaling.model.DescribeTrafficSourcesResponse response : responses) {
     *         // do something;
     *     }
     * }
     * 
* * 3) Use iterator directly * *
     * {@code
     * software.amazon.awssdk.services.autoscaling.paginators.DescribeTrafficSourcesIterable responses = client.describeTrafficSourcesPaginator(request);
     * responses.iterator().forEachRemaining(....);
     * }
     * 
*

* Please notice that the configuration of MaxRecords won't limit the number of results you get with the * paginator. It only limits the number of results in each page. *

*

* Note: If you prefer to have control on service calls, use the * {@link #describeTrafficSources(software.amazon.awssdk.services.autoscaling.model.DescribeTrafficSourcesRequest)} * operation. *

* * @param describeTrafficSourcesRequest * @return A custom iterable that can be used to iterate through all the response pages. * @throws ResourceContentionException * You already have a pending update to an Amazon EC2 Auto Scaling resource (for example, an Auto Scaling * group, instance, or load balancer). * @throws InvalidNextTokenException * The NextToken value is not valid. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws AutoScalingException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample AutoScalingClient.DescribeTrafficSources * @see AWS API Documentation */ default DescribeTrafficSourcesIterable describeTrafficSourcesPaginator( DescribeTrafficSourcesRequest describeTrafficSourcesRequest) throws ResourceContentionException, InvalidNextTokenException, AwsServiceException, SdkClientException, AutoScalingException { return new DescribeTrafficSourcesIterable(this, describeTrafficSourcesRequest); } /** *

* This is a variant of * {@link #describeTrafficSources(software.amazon.awssdk.services.autoscaling.model.DescribeTrafficSourcesRequest)} * operation. The return type is a custom iterable that can be used to iterate through all the pages. SDK will * internally handle making service calls for you. *

*

* When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no * guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response * pages by making service calls until there are no pages left or your iteration stops. If there are errors in your * request, you will see the failures only after you start iterating through the iterable. *

* *

* The following are few ways to iterate through the response pages: *

* 1) Using a Stream * *
     * {@code
     * software.amazon.awssdk.services.autoscaling.paginators.DescribeTrafficSourcesIterable responses = client.describeTrafficSourcesPaginator(request);
     * responses.stream().forEach(....);
     * }
     * 
* * 2) Using For loop * *
     * {
     *     @code
     *     software.amazon.awssdk.services.autoscaling.paginators.DescribeTrafficSourcesIterable responses = client
     *             .describeTrafficSourcesPaginator(request);
     *     for (software.amazon.awssdk.services.autoscaling.model.DescribeTrafficSourcesResponse response : responses) {
     *         // do something;
     *     }
     * }
     * 
* * 3) Use iterator directly * *
     * {@code
     * software.amazon.awssdk.services.autoscaling.paginators.DescribeTrafficSourcesIterable responses = client.describeTrafficSourcesPaginator(request);
     * responses.iterator().forEachRemaining(....);
     * }
     * 
*

* Please notice that the configuration of MaxRecords won't limit the number of results you get with the * paginator. It only limits the number of results in each page. *

*

* Note: If you prefer to have control on service calls, use the * {@link #describeTrafficSources(software.amazon.awssdk.services.autoscaling.model.DescribeTrafficSourcesRequest)} * operation. *

*
*

* This is a convenience which creates an instance of the {@link DescribeTrafficSourcesRequest.Builder} avoiding the * need to create one manually via {@link DescribeTrafficSourcesRequest#builder()} *

* * @param describeTrafficSourcesRequest * A {@link Consumer} that will call methods on * {@link software.amazon.awssdk.services.autoscaling.model.DescribeTrafficSourcesRequest.Builder} to create * a request. * @return A custom iterable that can be used to iterate through all the response pages. * @throws ResourceContentionException * You already have a pending update to an Amazon EC2 Auto Scaling resource (for example, an Auto Scaling * group, instance, or load balancer). * @throws InvalidNextTokenException * The NextToken value is not valid. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws AutoScalingException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample AutoScalingClient.DescribeTrafficSources * @see AWS API Documentation */ default DescribeTrafficSourcesIterable describeTrafficSourcesPaginator( Consumer describeTrafficSourcesRequest) throws ResourceContentionException, InvalidNextTokenException, AwsServiceException, SdkClientException, AutoScalingException { return describeTrafficSourcesPaginator(DescribeTrafficSourcesRequest.builder() .applyMutation(describeTrafficSourcesRequest).build()); } /** *

* Gets information about a warm pool and its instances. *

*

* For more information, see Warm pools for * Amazon EC2 Auto Scaling in the Amazon EC2 Auto Scaling User Guide. *

* * @param describeWarmPoolRequest * @return Result of the DescribeWarmPool operation returned by the service. * @throws InvalidNextTokenException * The NextToken value is not valid. * @throws 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 DescribeAccountLimits in the Amazon EC2 Auto Scaling API Reference. * @throws ResourceContentionException * You already have a pending update to an Amazon EC2 Auto Scaling resource (for example, an Auto Scaling * group, instance, or load balancer). * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws AutoScalingException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample AutoScalingClient.DescribeWarmPool * @see AWS * API Documentation */ default DescribeWarmPoolResponse describeWarmPool(DescribeWarmPoolRequest describeWarmPoolRequest) throws InvalidNextTokenException, LimitExceededException, ResourceContentionException, AwsServiceException, SdkClientException, AutoScalingException { throw new UnsupportedOperationException(); } /** *

* Gets information about a warm pool and its instances. *

*

* For more information, see Warm pools for * Amazon EC2 Auto Scaling in the Amazon EC2 Auto Scaling User Guide. *

*
*

* This is a convenience which creates an instance of the {@link DescribeWarmPoolRequest.Builder} avoiding the need * to create one manually via {@link DescribeWarmPoolRequest#builder()} *

* * @param describeWarmPoolRequest * A {@link Consumer} that will call methods on * {@link software.amazon.awssdk.services.autoscaling.model.DescribeWarmPoolRequest.Builder} to create a * request. * @return Result of the DescribeWarmPool operation returned by the service. * @throws InvalidNextTokenException * The NextToken value is not valid. * @throws 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 DescribeAccountLimits in the Amazon EC2 Auto Scaling API Reference. * @throws ResourceContentionException * You already have a pending update to an Amazon EC2 Auto Scaling resource (for example, an Auto Scaling * group, instance, or load balancer). * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws AutoScalingException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample AutoScalingClient.DescribeWarmPool * @see AWS * API Documentation */ default DescribeWarmPoolResponse describeWarmPool(Consumer describeWarmPoolRequest) throws InvalidNextTokenException, LimitExceededException, ResourceContentionException, AwsServiceException, SdkClientException, AutoScalingException { return describeWarmPool(DescribeWarmPoolRequest.builder().applyMutation(describeWarmPoolRequest).build()); } /** *

* This is a variant of * {@link #describeWarmPool(software.amazon.awssdk.services.autoscaling.model.DescribeWarmPoolRequest)} operation. * The return type is a custom iterable that can be used to iterate through all the pages. SDK will internally * handle making service calls for you. *

*

* When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no * guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response * pages by making service calls until there are no pages left or your iteration stops. If there are errors in your * request, you will see the failures only after you start iterating through the iterable. *

* *

* The following are few ways to iterate through the response pages: *

* 1) Using a Stream * *
     * {@code
     * software.amazon.awssdk.services.autoscaling.paginators.DescribeWarmPoolIterable responses = client.describeWarmPoolPaginator(request);
     * responses.stream().forEach(....);
     * }
     * 
* * 2) Using For loop * *
     * {
     *     @code
     *     software.amazon.awssdk.services.autoscaling.paginators.DescribeWarmPoolIterable responses = client
     *             .describeWarmPoolPaginator(request);
     *     for (software.amazon.awssdk.services.autoscaling.model.DescribeWarmPoolResponse response : responses) {
     *         // do something;
     *     }
     * }
     * 
* * 3) Use iterator directly * *
     * {@code
     * software.amazon.awssdk.services.autoscaling.paginators.DescribeWarmPoolIterable responses = client.describeWarmPoolPaginator(request);
     * responses.iterator().forEachRemaining(....);
     * }
     * 
*

* Please notice that the configuration of MaxRecords won't limit the number of results you get with the * paginator. It only limits the number of results in each page. *

*

* Note: If you prefer to have control on service calls, use the * {@link #describeWarmPool(software.amazon.awssdk.services.autoscaling.model.DescribeWarmPoolRequest)} * operation. *

* * @param describeWarmPoolRequest * @return A custom iterable that can be used to iterate through all the response pages. * @throws InvalidNextTokenException * The NextToken value is not valid. * @throws 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 DescribeAccountLimits in the Amazon EC2 Auto Scaling API Reference. * @throws ResourceContentionException * You already have a pending update to an Amazon EC2 Auto Scaling resource (for example, an Auto Scaling * group, instance, or load balancer). * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws AutoScalingException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample AutoScalingClient.DescribeWarmPool * @see AWS * API Documentation */ default DescribeWarmPoolIterable describeWarmPoolPaginator(DescribeWarmPoolRequest describeWarmPoolRequest) throws InvalidNextTokenException, LimitExceededException, ResourceContentionException, AwsServiceException, SdkClientException, AutoScalingException { return new DescribeWarmPoolIterable(this, describeWarmPoolRequest); } /** *

* This is a variant of * {@link #describeWarmPool(software.amazon.awssdk.services.autoscaling.model.DescribeWarmPoolRequest)} operation. * The return type is a custom iterable that can be used to iterate through all the pages. SDK will internally * handle making service calls for you. *

*

* When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no * guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response * pages by making service calls until there are no pages left or your iteration stops. If there are errors in your * request, you will see the failures only after you start iterating through the iterable. *

* *

* The following are few ways to iterate through the response pages: *

* 1) Using a Stream * *
     * {@code
     * software.amazon.awssdk.services.autoscaling.paginators.DescribeWarmPoolIterable responses = client.describeWarmPoolPaginator(request);
     * responses.stream().forEach(....);
     * }
     * 
* * 2) Using For loop * *
     * {
     *     @code
     *     software.amazon.awssdk.services.autoscaling.paginators.DescribeWarmPoolIterable responses = client
     *             .describeWarmPoolPaginator(request);
     *     for (software.amazon.awssdk.services.autoscaling.model.DescribeWarmPoolResponse response : responses) {
     *         // do something;
     *     }
     * }
     * 
* * 3) Use iterator directly * *
     * {@code
     * software.amazon.awssdk.services.autoscaling.paginators.DescribeWarmPoolIterable responses = client.describeWarmPoolPaginator(request);
     * responses.iterator().forEachRemaining(....);
     * }
     * 
*

* Please notice that the configuration of MaxRecords won't limit the number of results you get with the * paginator. It only limits the number of results in each page. *

*

* Note: If you prefer to have control on service calls, use the * {@link #describeWarmPool(software.amazon.awssdk.services.autoscaling.model.DescribeWarmPoolRequest)} * operation. *

*
*

* This is a convenience which creates an instance of the {@link DescribeWarmPoolRequest.Builder} avoiding the need * to create one manually via {@link DescribeWarmPoolRequest#builder()} *

* * @param describeWarmPoolRequest * A {@link Consumer} that will call methods on * {@link software.amazon.awssdk.services.autoscaling.model.DescribeWarmPoolRequest.Builder} to create a * request. * @return A custom iterable that can be used to iterate through all the response pages. * @throws InvalidNextTokenException * The NextToken value is not valid. * @throws 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 DescribeAccountLimits in the Amazon EC2 Auto Scaling API Reference. * @throws ResourceContentionException * You already have a pending update to an Amazon EC2 Auto Scaling resource (for example, an Auto Scaling * group, instance, or load balancer). * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws AutoScalingException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample AutoScalingClient.DescribeWarmPool * @see AWS * API Documentation */ default DescribeWarmPoolIterable describeWarmPoolPaginator(Consumer describeWarmPoolRequest) throws InvalidNextTokenException, LimitExceededException, ResourceContentionException, AwsServiceException, SdkClientException, AutoScalingException { return describeWarmPoolPaginator(DescribeWarmPoolRequest.builder().applyMutation(describeWarmPoolRequest).build()); } /** *

* Removes one or more instances from the specified Auto Scaling group. *

*

* After the instances are detached, you can manage them independent of the Auto Scaling group. *

*

* 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. *

*

* 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. *

*

* For more information, see Detach * or attach instances in the Amazon EC2 Auto Scaling User Guide. *

* * @param detachInstancesRequest * @return Result of the DetachInstances operation returned by the service. * @throws ResourceContentionException * You already have a pending update to an Amazon EC2 Auto Scaling resource (for example, an Auto Scaling * group, instance, or load balancer). * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws AutoScalingException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample AutoScalingClient.DetachInstances * @see AWS * API Documentation */ default DetachInstancesResponse detachInstances(DetachInstancesRequest detachInstancesRequest) throws ResourceContentionException, AwsServiceException, SdkClientException, AutoScalingException { throw new UnsupportedOperationException(); } /** *

* Removes one or more instances from the specified Auto Scaling group. *

*

* After the instances are detached, you can manage them independent of the Auto Scaling group. *

*

* 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. *

*

* 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. *

*

* For more information, see Detach * or attach instances in the Amazon EC2 Auto Scaling User Guide. *

*
*

* This is a convenience which creates an instance of the {@link DetachInstancesRequest.Builder} avoiding the need * to create one manually via {@link DetachInstancesRequest#builder()} *

* * @param detachInstancesRequest * A {@link Consumer} that will call methods on * {@link software.amazon.awssdk.services.autoscaling.model.DetachInstancesRequest.Builder} to create a * request. * @return Result of the DetachInstances operation returned by the service. * @throws ResourceContentionException * You already have a pending update to an Amazon EC2 Auto Scaling resource (for example, an Auto Scaling * group, instance, or load balancer). * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws AutoScalingException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample AutoScalingClient.DetachInstances * @see AWS * API Documentation */ default DetachInstancesResponse detachInstances(Consumer detachInstancesRequest) throws ResourceContentionException, AwsServiceException, SdkClientException, AutoScalingException { return detachInstances(DetachInstancesRequest.builder().applyMutation(detachInstancesRequest).build()); } /** * *

* This API operation is superseded by DetachTrafficSources, which can detach multiple traffic sources types. We recommend using * DetachTrafficSources to simplify how you manage traffic sources. However, we continue to support * DetachLoadBalancerTargetGroups. You can use both the original * DetachLoadBalancerTargetGroups API operation and DetachTrafficSources on the same Auto * Scaling group. *

*
*

* Detaches one or more target groups from the specified Auto Scaling group. *

*

* When you detach a target group, it enters the Removing state while deregistering the instances in * the group. When all instances are deregistered, then you can no longer describe the target group using the * DescribeLoadBalancerTargetGroups API call. The instances remain running. *

* *

* You can use this operation to detach target groups that were attached by using AttachLoadBalancerTargetGroups, but not for target groups that were attached by using AttachTrafficSources. *

*
* * @param detachLoadBalancerTargetGroupsRequest * @return Result of the DetachLoadBalancerTargetGroups operation returned by the service. * @throws ResourceContentionException * You already have a pending update to an Amazon EC2 Auto Scaling resource (for example, an Auto Scaling * group, instance, or load balancer). * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws AutoScalingException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample AutoScalingClient.DetachLoadBalancerTargetGroups * @see AWS API Documentation */ default DetachLoadBalancerTargetGroupsResponse detachLoadBalancerTargetGroups( DetachLoadBalancerTargetGroupsRequest detachLoadBalancerTargetGroupsRequest) throws ResourceContentionException, AwsServiceException, SdkClientException, AutoScalingException { throw new UnsupportedOperationException(); } /** * *

* This API operation is superseded by DetachTrafficSources, which can detach multiple traffic sources types. We recommend using * DetachTrafficSources to simplify how you manage traffic sources. However, we continue to support * DetachLoadBalancerTargetGroups. You can use both the original * DetachLoadBalancerTargetGroups API operation and DetachTrafficSources on the same Auto * Scaling group. *

*
*

* Detaches one or more target groups from the specified Auto Scaling group. *

*

* When you detach a target group, it enters the Removing state while deregistering the instances in * the group. When all instances are deregistered, then you can no longer describe the target group using the * DescribeLoadBalancerTargetGroups API call. The instances remain running. *

* *

* You can use this operation to detach target groups that were attached by using AttachLoadBalancerTargetGroups, but not for target groups that were attached by using AttachTrafficSources. *

*

*

* This is a convenience which creates an instance of the {@link DetachLoadBalancerTargetGroupsRequest.Builder} * avoiding the need to create one manually via {@link DetachLoadBalancerTargetGroupsRequest#builder()} *

* * @param detachLoadBalancerTargetGroupsRequest * A {@link Consumer} that will call methods on * {@link software.amazon.awssdk.services.autoscaling.model.DetachLoadBalancerTargetGroupsRequest.Builder} to * create a request. * @return Result of the DetachLoadBalancerTargetGroups operation returned by the service. * @throws ResourceContentionException * You already have a pending update to an Amazon EC2 Auto Scaling resource (for example, an Auto Scaling * group, instance, or load balancer). * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws AutoScalingException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample AutoScalingClient.DetachLoadBalancerTargetGroups * @see AWS API Documentation */ default DetachLoadBalancerTargetGroupsResponse detachLoadBalancerTargetGroups( Consumer detachLoadBalancerTargetGroupsRequest) throws ResourceContentionException, AwsServiceException, SdkClientException, AutoScalingException { return detachLoadBalancerTargetGroups(DetachLoadBalancerTargetGroupsRequest.builder() .applyMutation(detachLoadBalancerTargetGroupsRequest).build()); } /** * *

* This API operation is superseded by DetachTrafficSources, which can detach multiple traffic sources types. We recommend using * DetachTrafficSources to simplify how you manage traffic sources. However, we continue to support * DetachLoadBalancers. You can use both the original DetachLoadBalancers API operation * and DetachTrafficSources on the same Auto Scaling group. *

*
*

* Detaches one or more Classic Load Balancers from the specified Auto Scaling group. *

*

* This operation detaches only Classic Load Balancers. If you have Application Load Balancers, Network Load * Balancers, or Gateway Load Balancers, use the DetachLoadBalancerTargetGroups API instead. *

*

* When you detach a load balancer, it enters the Removing state while deregistering the instances in * the group. When all instances are deregistered, then you can no longer describe the load balancer using the DescribeLoadBalancers * API call. The instances remain running. *

* * @param detachLoadBalancersRequest * @return Result of the DetachLoadBalancers operation returned by the service. * @throws ResourceContentionException * You already have a pending update to an Amazon EC2 Auto Scaling resource (for example, an Auto Scaling * group, instance, or load balancer). * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws AutoScalingException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample AutoScalingClient.DetachLoadBalancers * @see AWS API Documentation */ default DetachLoadBalancersResponse detachLoadBalancers(DetachLoadBalancersRequest detachLoadBalancersRequest) throws ResourceContentionException, AwsServiceException, SdkClientException, AutoScalingException { throw new UnsupportedOperationException(); } /** * *

* This API operation is superseded by DetachTrafficSources, which can detach multiple traffic sources types. We recommend using * DetachTrafficSources to simplify how you manage traffic sources. However, we continue to support * DetachLoadBalancers. You can use both the original DetachLoadBalancers API operation * and DetachTrafficSources on the same Auto Scaling group. *

*
*

* Detaches one or more Classic Load Balancers from the specified Auto Scaling group. *

*

* This operation detaches only Classic Load Balancers. If you have Application Load Balancers, Network Load * Balancers, or Gateway Load Balancers, use the DetachLoadBalancerTargetGroups API instead. *

*

* When you detach a load balancer, it enters the Removing state while deregistering the instances in * the group. When all instances are deregistered, then you can no longer describe the load balancer using the DescribeLoadBalancers * API call. The instances remain running. *

*
*

* This is a convenience which creates an instance of the {@link DetachLoadBalancersRequest.Builder} avoiding the * need to create one manually via {@link DetachLoadBalancersRequest#builder()} *

* * @param detachLoadBalancersRequest * A {@link Consumer} that will call methods on * {@link software.amazon.awssdk.services.autoscaling.model.DetachLoadBalancersRequest.Builder} to create a * request. * @return Result of the DetachLoadBalancers operation returned by the service. * @throws ResourceContentionException * You already have a pending update to an Amazon EC2 Auto Scaling resource (for example, an Auto Scaling * group, instance, or load balancer). * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws AutoScalingException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample AutoScalingClient.DetachLoadBalancers * @see AWS API Documentation */ default DetachLoadBalancersResponse detachLoadBalancers( Consumer detachLoadBalancersRequest) throws ResourceContentionException, AwsServiceException, SdkClientException, AutoScalingException { return detachLoadBalancers(DetachLoadBalancersRequest.builder().applyMutation(detachLoadBalancersRequest).build()); } /** *

* Detaches one or more traffic sources from the specified Auto Scaling group. *

*

* When you detach a traffic source, it enters the Removing state while deregistering the instances in * the group. When all instances are deregistered, then you can no longer describe the traffic source using the * DescribeTrafficSources API call. The instances continue to run. *

* * @param detachTrafficSourcesRequest * @return Result of the DetachTrafficSources operation returned by the service. * @throws ResourceContentionException * You already have a pending update to an Amazon EC2 Auto Scaling resource (for example, an Auto Scaling * group, instance, or load balancer). * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws AutoScalingException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample AutoScalingClient.DetachTrafficSources * @see AWS API Documentation */ default DetachTrafficSourcesResponse detachTrafficSources(DetachTrafficSourcesRequest detachTrafficSourcesRequest) throws ResourceContentionException, AwsServiceException, SdkClientException, AutoScalingException { throw new UnsupportedOperationException(); } /** *

* Detaches one or more traffic sources from the specified Auto Scaling group. *

*

* When you detach a traffic source, it enters the Removing state while deregistering the instances in * the group. When all instances are deregistered, then you can no longer describe the traffic source using the * DescribeTrafficSources API call. The instances continue to run. *

*
*

* This is a convenience which creates an instance of the {@link DetachTrafficSourcesRequest.Builder} avoiding the * need to create one manually via {@link DetachTrafficSourcesRequest#builder()} *

* * @param detachTrafficSourcesRequest * A {@link Consumer} that will call methods on * {@link software.amazon.awssdk.services.autoscaling.model.DetachTrafficSourcesRequest.Builder} to create a * request. * @return Result of the DetachTrafficSources operation returned by the service. * @throws ResourceContentionException * You already have a pending update to an Amazon EC2 Auto Scaling resource (for example, an Auto Scaling * group, instance, or load balancer). * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws AutoScalingException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample AutoScalingClient.DetachTrafficSources * @see AWS API Documentation */ default DetachTrafficSourcesResponse detachTrafficSources( Consumer detachTrafficSourcesRequest) throws ResourceContentionException, AwsServiceException, SdkClientException, AutoScalingException { return detachTrafficSources(DetachTrafficSourcesRequest.builder().applyMutation(detachTrafficSourcesRequest).build()); } /** *

* Disables group metrics collection for the specified Auto Scaling group. *

* * @param disableMetricsCollectionRequest * @return Result of the DisableMetricsCollection operation returned by the service. * @throws ResourceContentionException * You already have a pending update to an Amazon EC2 Auto Scaling resource (for example, an Auto Scaling * group, instance, or load balancer). * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws AutoScalingException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample AutoScalingClient.DisableMetricsCollection * @see AWS API Documentation */ default DisableMetricsCollectionResponse disableMetricsCollection( DisableMetricsCollectionRequest disableMetricsCollectionRequest) throws ResourceContentionException, AwsServiceException, SdkClientException, AutoScalingException { throw new UnsupportedOperationException(); } /** *

* Disables group metrics collection for the specified Auto Scaling group. *

*
*

* This is a convenience which creates an instance of the {@link DisableMetricsCollectionRequest.Builder} avoiding * the need to create one manually via {@link DisableMetricsCollectionRequest#builder()} *

* * @param disableMetricsCollectionRequest * A {@link Consumer} that will call methods on * {@link software.amazon.awssdk.services.autoscaling.model.DisableMetricsCollectionRequest.Builder} to * create a request. * @return Result of the DisableMetricsCollection operation returned by the service. * @throws ResourceContentionException * You already have a pending update to an Amazon EC2 Auto Scaling resource (for example, an Auto Scaling * group, instance, or load balancer). * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws AutoScalingException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample AutoScalingClient.DisableMetricsCollection * @see AWS API Documentation */ default DisableMetricsCollectionResponse disableMetricsCollection( Consumer disableMetricsCollectionRequest) throws ResourceContentionException, AwsServiceException, SdkClientException, AutoScalingException { return disableMetricsCollection(DisableMetricsCollectionRequest.builder().applyMutation(disableMetricsCollectionRequest) .build()); } /** *

* Enables group metrics collection for the specified Auto Scaling group. *

*

* 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 * Monitor CloudWatch metrics for your Auto Scaling groups and instances in the Amazon EC2 Auto Scaling User * Guide. *

* * @param enableMetricsCollectionRequest * @return Result of the EnableMetricsCollection operation returned by the service. * @throws ResourceContentionException * You already have a pending update to an Amazon EC2 Auto Scaling resource (for example, an Auto Scaling * group, instance, or load balancer). * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws AutoScalingException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample AutoScalingClient.EnableMetricsCollection * @see AWS API Documentation */ default EnableMetricsCollectionResponse enableMetricsCollection(EnableMetricsCollectionRequest enableMetricsCollectionRequest) throws ResourceContentionException, AwsServiceException, SdkClientException, AutoScalingException { throw new UnsupportedOperationException(); } /** *

* Enables group metrics collection for the specified Auto Scaling group. *

*

* 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 * Monitor CloudWatch metrics for your Auto Scaling groups and instances in the Amazon EC2 Auto Scaling User * Guide. *

*
*

* This is a convenience which creates an instance of the {@link EnableMetricsCollectionRequest.Builder} avoiding * the need to create one manually via {@link EnableMetricsCollectionRequest#builder()} *

* * @param enableMetricsCollectionRequest * A {@link Consumer} that will call methods on * {@link software.amazon.awssdk.services.autoscaling.model.EnableMetricsCollectionRequest.Builder} to create * a request. * @return Result of the EnableMetricsCollection operation returned by the service. * @throws ResourceContentionException * You already have a pending update to an Amazon EC2 Auto Scaling resource (for example, an Auto Scaling * group, instance, or load balancer). * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws AutoScalingException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample AutoScalingClient.EnableMetricsCollection * @see AWS API Documentation */ default EnableMetricsCollectionResponse enableMetricsCollection( Consumer enableMetricsCollectionRequest) throws ResourceContentionException, AwsServiceException, SdkClientException, AutoScalingException { return enableMetricsCollection(EnableMetricsCollectionRequest.builder().applyMutation(enableMetricsCollectionRequest) .build()); } /** *

* Moves the specified instances into the standby state. *

*

* 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. *

*

* 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. *

*

* For more information, see Temporarily removing * instances from your Auto Scaling group in the Amazon EC2 Auto Scaling User Guide. *

* * @param enterStandbyRequest * @return Result of the EnterStandby operation returned by the service. * @throws ResourceContentionException * You already have a pending update to an Amazon EC2 Auto Scaling resource (for example, an Auto Scaling * group, instance, or load balancer). * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws AutoScalingException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample AutoScalingClient.EnterStandby * @see AWS API * Documentation */ default EnterStandbyResponse enterStandby(EnterStandbyRequest enterStandbyRequest) throws ResourceContentionException, AwsServiceException, SdkClientException, AutoScalingException { throw new UnsupportedOperationException(); } /** *

* Moves the specified instances into the standby state. *

*

* 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. *

*

* 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. *

*

* For more information, see Temporarily removing * instances from your Auto Scaling group in the Amazon EC2 Auto Scaling User Guide. *

*
*

* This is a convenience which creates an instance of the {@link EnterStandbyRequest.Builder} avoiding the need to * create one manually via {@link EnterStandbyRequest#builder()} *

* * @param enterStandbyRequest * A {@link Consumer} that will call methods on * {@link software.amazon.awssdk.services.autoscaling.model.EnterStandbyRequest.Builder} to create a request. * @return Result of the EnterStandby operation returned by the service. * @throws ResourceContentionException * You already have a pending update to an Amazon EC2 Auto Scaling resource (for example, an Auto Scaling * group, instance, or load balancer). * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws AutoScalingException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample AutoScalingClient.EnterStandby * @see AWS API * Documentation */ default EnterStandbyResponse enterStandby(Consumer enterStandbyRequest) throws ResourceContentionException, AwsServiceException, SdkClientException, AutoScalingException { return enterStandby(EnterStandbyRequest.builder().applyMutation(enterStandbyRequest).build()); } /** *

* Executes the specified policy. This can be useful for testing the design of your scaling policy. *

* * @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 Amazon EC2 Auto Scaling resource (for example, an Auto Scaling * group, instance, or load balancer). * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws AutoScalingException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample AutoScalingClient.ExecutePolicy * @see AWS API * Documentation */ default ExecutePolicyResponse executePolicy(ExecutePolicyRequest executePolicyRequest) throws ScalingActivityInProgressException, ResourceContentionException, AwsServiceException, SdkClientException, AutoScalingException { throw new UnsupportedOperationException(); } /** *

* Executes the specified policy. This can be useful for testing the design of your scaling policy. *

*
*

* This is a convenience which creates an instance of the {@link ExecutePolicyRequest.Builder} avoiding the need to * create one manually via {@link ExecutePolicyRequest#builder()} *

* * @param executePolicyRequest * A {@link Consumer} that will call methods on * {@link software.amazon.awssdk.services.autoscaling.model.ExecutePolicyRequest.Builder} to create a * request. * @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 Amazon EC2 Auto Scaling resource (for example, an Auto Scaling * group, instance, or load balancer). * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws AutoScalingException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample AutoScalingClient.ExecutePolicy * @see AWS API * Documentation */ default ExecutePolicyResponse executePolicy(Consumer executePolicyRequest) throws ScalingActivityInProgressException, ResourceContentionException, AwsServiceException, SdkClientException, AutoScalingException { return executePolicy(ExecutePolicyRequest.builder().applyMutation(executePolicyRequest).build()); } /** *

* Moves the specified instances out of the standby state. *

*

* After you put the instances back in service, the desired capacity is incremented. *

*

* For more information, see Temporarily removing * instances from your Auto Scaling group in the Amazon EC2 Auto Scaling User Guide. *

* * @param exitStandbyRequest * @return Result of the ExitStandby operation returned by the service. * @throws ResourceContentionException * You already have a pending update to an Amazon EC2 Auto Scaling resource (for example, an Auto Scaling * group, instance, or load balancer). * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws AutoScalingException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample AutoScalingClient.ExitStandby * @see AWS API * Documentation */ default ExitStandbyResponse exitStandby(ExitStandbyRequest exitStandbyRequest) throws ResourceContentionException, AwsServiceException, SdkClientException, AutoScalingException { throw new UnsupportedOperationException(); } /** *

* Moves the specified instances out of the standby state. *

*

* After you put the instances back in service, the desired capacity is incremented. *

*

* For more information, see Temporarily removing * instances from your Auto Scaling group in the Amazon EC2 Auto Scaling User Guide. *

*
*

* This is a convenience which creates an instance of the {@link ExitStandbyRequest.Builder} avoiding the need to * create one manually via {@link ExitStandbyRequest#builder()} *

* * @param exitStandbyRequest * A {@link Consumer} that will call methods on * {@link software.amazon.awssdk.services.autoscaling.model.ExitStandbyRequest.Builder} to create a request. * @return Result of the ExitStandby operation returned by the service. * @throws ResourceContentionException * You already have a pending update to an Amazon EC2 Auto Scaling resource (for example, an Auto Scaling * group, instance, or load balancer). * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws AutoScalingException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample AutoScalingClient.ExitStandby * @see AWS API * Documentation */ default ExitStandbyResponse exitStandby(Consumer exitStandbyRequest) throws ResourceContentionException, AwsServiceException, SdkClientException, AutoScalingException { return exitStandby(ExitStandbyRequest.builder().applyMutation(exitStandbyRequest).build()); } /** *

* Retrieves the forecast data for a predictive scaling policy. *

*

* 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. *

*

* 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. *

*

* For more information, see Predictive * scaling for Amazon EC2 Auto Scaling in the Amazon EC2 Auto Scaling User Guide. *

* * @param getPredictiveScalingForecastRequest * @return Result of the GetPredictiveScalingForecast operation returned by the service. * @throws ResourceContentionException * You already have a pending update to an Amazon EC2 Auto Scaling resource (for example, an Auto Scaling * group, instance, or load balancer). * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws AutoScalingException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample AutoScalingClient.GetPredictiveScalingForecast * @see AWS API Documentation */ default GetPredictiveScalingForecastResponse getPredictiveScalingForecast( GetPredictiveScalingForecastRequest getPredictiveScalingForecastRequest) throws ResourceContentionException, AwsServiceException, SdkClientException, AutoScalingException { throw new UnsupportedOperationException(); } /** *

* Retrieves the forecast data for a predictive scaling policy. *

*

* 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. *

*

* 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. *

*

* For more information, see Predictive * scaling for Amazon EC2 Auto Scaling in the Amazon EC2 Auto Scaling User Guide. *

*
*

* This is a convenience which creates an instance of the {@link GetPredictiveScalingForecastRequest.Builder} * avoiding the need to create one manually via {@link GetPredictiveScalingForecastRequest#builder()} *

* * @param getPredictiveScalingForecastRequest * A {@link Consumer} that will call methods on * {@link software.amazon.awssdk.services.autoscaling.model.GetPredictiveScalingForecastRequest.Builder} to * create a request. * @return Result of the GetPredictiveScalingForecast operation returned by the service. * @throws ResourceContentionException * You already have a pending update to an Amazon EC2 Auto Scaling resource (for example, an Auto Scaling * group, instance, or load balancer). * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws AutoScalingException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample AutoScalingClient.GetPredictiveScalingForecast * @see AWS API Documentation */ default GetPredictiveScalingForecastResponse getPredictiveScalingForecast( Consumer getPredictiveScalingForecastRequest) throws ResourceContentionException, AwsServiceException, SdkClientException, AutoScalingException { return getPredictiveScalingForecast(GetPredictiveScalingForecastRequest.builder() .applyMutation(getPredictiveScalingForecastRequest).build()); } /** *

* Creates or updates a lifecycle hook for the specified Auto Scaling group. *

*

* 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. *

*

* This step is a part of the procedure for adding a lifecycle hook to an Auto Scaling group: *

*
    *
  1. *

    * (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. *

    *
  2. *
  3. *

    * (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. *

    *
  4. *
  5. *

    * (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. *

    *
  6. *
  7. *

    * Create the lifecycle hook. Specify whether the hook is used when the instances launch or terminate. *

    *
  8. *
  9. *

    * If you need more time, record the lifecycle action heartbeat to keep the instance in a wait state using the * RecordLifecycleActionHeartbeat API call. *

    *
  10. *
  11. *

    * If you finish before the timeout period ends, send a callback by using the CompleteLifecycleAction API call. *

    *
  12. *
*

* For more information, see Amazon EC2 Auto Scaling * lifecycle hooks in the Amazon EC2 Auto Scaling User Guide. *

*

* If you exceed your maximum limit of lifecycle hooks, which by default is 50 per Auto Scaling group, the call * fails. *

*

* You can view the lifecycle hooks for an Auto Scaling group using the DescribeLifecycleHooks API call. If you are no longer using a lifecycle hook, you can delete it by calling * the * DeleteLifecycleHook API. *

* * @param putLifecycleHookRequest * @return Result of the PutLifecycleHook operation returned by the service. * @throws 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 DescribeAccountLimits in the Amazon EC2 Auto Scaling API Reference. * @throws ResourceContentionException * You already have a pending update to an Amazon EC2 Auto Scaling resource (for example, an Auto Scaling * group, instance, or load balancer). * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws AutoScalingException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample AutoScalingClient.PutLifecycleHook * @see AWS * API Documentation */ default PutLifecycleHookResponse putLifecycleHook(PutLifecycleHookRequest putLifecycleHookRequest) throws LimitExceededException, ResourceContentionException, AwsServiceException, SdkClientException, AutoScalingException { throw new UnsupportedOperationException(); } /** *

* Creates or updates a lifecycle hook for the specified Auto Scaling group. *

*

* 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. *

*

* This step is a part of the procedure for adding a lifecycle hook to an Auto Scaling group: *

*
    *
  1. *

    * (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. *

    *
  2. *
  3. *

    * (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. *

    *
  4. *
  5. *

    * (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. *

    *
  6. *
  7. *

    * Create the lifecycle hook. Specify whether the hook is used when the instances launch or terminate. *

    *
  8. *
  9. *

    * If you need more time, record the lifecycle action heartbeat to keep the instance in a wait state using the * RecordLifecycleActionHeartbeat API call. *

    *
  10. *
  11. *

    * If you finish before the timeout period ends, send a callback by using the CompleteLifecycleAction API call. *

    *
  12. *
*

* For more information, see Amazon EC2 Auto Scaling * lifecycle hooks in the Amazon EC2 Auto Scaling User Guide. *

*

* If you exceed your maximum limit of lifecycle hooks, which by default is 50 per Auto Scaling group, the call * fails. *

*

* You can view the lifecycle hooks for an Auto Scaling group using the DescribeLifecycleHooks API call. If you are no longer using a lifecycle hook, you can delete it by calling * the * DeleteLifecycleHook API. *

*
*

* This is a convenience which creates an instance of the {@link PutLifecycleHookRequest.Builder} avoiding the need * to create one manually via {@link PutLifecycleHookRequest#builder()} *

* * @param putLifecycleHookRequest * A {@link Consumer} that will call methods on * {@link software.amazon.awssdk.services.autoscaling.model.PutLifecycleHookRequest.Builder} to create a * request. * @return Result of the PutLifecycleHook operation returned by the service. * @throws 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 DescribeAccountLimits in the Amazon EC2 Auto Scaling API Reference. * @throws ResourceContentionException * You already have a pending update to an Amazon EC2 Auto Scaling resource (for example, an Auto Scaling * group, instance, or load balancer). * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws AutoScalingException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample AutoScalingClient.PutLifecycleHook * @see AWS * API Documentation */ default PutLifecycleHookResponse putLifecycleHook(Consumer putLifecycleHookRequest) throws LimitExceededException, ResourceContentionException, AwsServiceException, SdkClientException, AutoScalingException { return putLifecycleHook(PutLifecycleHookRequest.builder().applyMutation(putLifecycleHookRequest).build()); } /** *

* 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. *

*

* This configuration overwrites any existing configuration. *

*

* For more information, see Amazon SNS * notification options for Amazon EC2 Auto Scaling in the Amazon EC2 Auto Scaling User Guide. *

*

* If you exceed your maximum limit of SNS topics, which is 10 per Auto Scaling group, the call fails. *

* * @param putNotificationConfigurationRequest * @return Result of the PutNotificationConfiguration operation returned by the service. * @throws 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 DescribeAccountLimits in the Amazon EC2 Auto Scaling API Reference. * @throws ResourceContentionException * You already have a pending update to an Amazon EC2 Auto Scaling resource (for example, an Auto Scaling * group, instance, or load balancer). * @throws ServiceLinkedRoleFailureException * The service-linked role is not yet ready for use. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws AutoScalingException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample AutoScalingClient.PutNotificationConfiguration * @see AWS API Documentation */ default PutNotificationConfigurationResponse putNotificationConfiguration( PutNotificationConfigurationRequest putNotificationConfigurationRequest) throws LimitExceededException, ResourceContentionException, ServiceLinkedRoleFailureException, AwsServiceException, SdkClientException, AutoScalingException { throw new UnsupportedOperationException(); } /** *

* 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. *

*

* This configuration overwrites any existing configuration. *

*

* For more information, see Amazon SNS * notification options for Amazon EC2 Auto Scaling in the Amazon EC2 Auto Scaling User Guide. *

*

* If you exceed your maximum limit of SNS topics, which is 10 per Auto Scaling group, the call fails. *

*
*

* This is a convenience which creates an instance of the {@link PutNotificationConfigurationRequest.Builder} * avoiding the need to create one manually via {@link PutNotificationConfigurationRequest#builder()} *

* * @param putNotificationConfigurationRequest * A {@link Consumer} that will call methods on * {@link software.amazon.awssdk.services.autoscaling.model.PutNotificationConfigurationRequest.Builder} to * create a request. * @return Result of the PutNotificationConfiguration operation returned by the service. * @throws 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 DescribeAccountLimits in the Amazon EC2 Auto Scaling API Reference. * @throws ResourceContentionException * You already have a pending update to an Amazon EC2 Auto Scaling resource (for example, an Auto Scaling * group, instance, or load balancer). * @throws ServiceLinkedRoleFailureException * The service-linked role is not yet ready for use. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws AutoScalingException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample AutoScalingClient.PutNotificationConfiguration * @see AWS API Documentation */ default PutNotificationConfigurationResponse putNotificationConfiguration( Consumer putNotificationConfigurationRequest) throws LimitExceededException, ResourceContentionException, ServiceLinkedRoleFailureException, AwsServiceException, SdkClientException, AutoScalingException { return putNotificationConfiguration(PutNotificationConfigurationRequest.builder() .applyMutation(putNotificationConfigurationRequest).build()); } /** *

* 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. *

*

* For more information about using dynamic scaling, see Target tracking * scaling policies and Step and simple scaling * policies in the Amazon EC2 Auto Scaling User Guide. *

*

* For more information about using predictive scaling, see Predictive * scaling for Amazon EC2 Auto Scaling in the Amazon EC2 Auto Scaling User Guide. *

*

* You can view the scaling policies for an Auto Scaling group using the DescribePolicies * API call. If you are no longer using a scaling policy, you can delete it by calling the DeletePolicy API. *

* * @param putScalingPolicyRequest * @return Result of the PutScalingPolicy operation returned by the service. * @throws 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 DescribeAccountLimits in the Amazon EC2 Auto Scaling API Reference. * @throws ResourceContentionException * You already have a pending update to an Amazon EC2 Auto Scaling resource (for example, an Auto Scaling * group, instance, or load balancer). * @throws ServiceLinkedRoleFailureException * The service-linked role is not yet ready for use. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws AutoScalingException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample AutoScalingClient.PutScalingPolicy * @see AWS * API Documentation */ default PutScalingPolicyResponse putScalingPolicy(PutScalingPolicyRequest putScalingPolicyRequest) throws LimitExceededException, ResourceContentionException, ServiceLinkedRoleFailureException, AwsServiceException, SdkClientException, AutoScalingException { throw new UnsupportedOperationException(); } /** *

* 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. *

*

* For more information about using dynamic scaling, see Target tracking * scaling policies and Step and simple scaling * policies in the Amazon EC2 Auto Scaling User Guide. *

*

* For more information about using predictive scaling, see Predictive * scaling for Amazon EC2 Auto Scaling in the Amazon EC2 Auto Scaling User Guide. *

*

* You can view the scaling policies for an Auto Scaling group using the DescribePolicies * API call. If you are no longer using a scaling policy, you can delete it by calling the DeletePolicy API. *

*
*

* This is a convenience which creates an instance of the {@link PutScalingPolicyRequest.Builder} avoiding the need * to create one manually via {@link PutScalingPolicyRequest#builder()} *

* * @param putScalingPolicyRequest * A {@link Consumer} that will call methods on * {@link software.amazon.awssdk.services.autoscaling.model.PutScalingPolicyRequest.Builder} to create a * request. * @return Result of the PutScalingPolicy operation returned by the service. * @throws 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 DescribeAccountLimits in the Amazon EC2 Auto Scaling API Reference. * @throws ResourceContentionException * You already have a pending update to an Amazon EC2 Auto Scaling resource (for example, an Auto Scaling * group, instance, or load balancer). * @throws ServiceLinkedRoleFailureException * The service-linked role is not yet ready for use. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws AutoScalingException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample AutoScalingClient.PutScalingPolicy * @see AWS * API Documentation */ default PutScalingPolicyResponse putScalingPolicy(Consumer putScalingPolicyRequest) throws LimitExceededException, ResourceContentionException, ServiceLinkedRoleFailureException, AwsServiceException, SdkClientException, AutoScalingException { return putScalingPolicy(PutScalingPolicyRequest.builder().applyMutation(putScalingPolicyRequest).build()); } /** *

* Creates or updates a scheduled scaling action for an Auto Scaling group. *

*

* For more information, see Scheduled * scaling in the Amazon EC2 Auto Scaling User Guide. *

*

* You can view the scheduled actions for an Auto Scaling group using the DescribeScheduledActions API call. If you are no longer using a scheduled action, you can delete it by * calling the * DeleteScheduledAction API. *

*

* If you try to schedule your action in the past, Amazon EC2 Auto Scaling returns an error message. *

* * @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 Amazon EC2 Auto Scaling resources (for example, Auto Scaling * groups, launch configurations, or lifecycle hooks). For more information, see DescribeAccountLimits in the Amazon EC2 Auto Scaling API Reference. * @throws ResourceContentionException * You already have a pending update to an Amazon EC2 Auto Scaling resource (for example, an Auto Scaling * group, instance, or load balancer). * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws AutoScalingException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample AutoScalingClient.PutScheduledUpdateGroupAction * @see AWS API Documentation */ default PutScheduledUpdateGroupActionResponse putScheduledUpdateGroupAction( PutScheduledUpdateGroupActionRequest putScheduledUpdateGroupActionRequest) throws AlreadyExistsException, LimitExceededException, ResourceContentionException, AwsServiceException, SdkClientException, AutoScalingException { throw new UnsupportedOperationException(); } /** *

* Creates or updates a scheduled scaling action for an Auto Scaling group. *

*

* For more information, see Scheduled * scaling in the Amazon EC2 Auto Scaling User Guide. *

*

* You can view the scheduled actions for an Auto Scaling group using the DescribeScheduledActions API call. If you are no longer using a scheduled action, you can delete it by * calling the * DeleteScheduledAction API. *

*

* If you try to schedule your action in the past, Amazon EC2 Auto Scaling returns an error message. *

*
*

* This is a convenience which creates an instance of the {@link PutScheduledUpdateGroupActionRequest.Builder} * avoiding the need to create one manually via {@link PutScheduledUpdateGroupActionRequest#builder()} *

* * @param putScheduledUpdateGroupActionRequest * A {@link Consumer} that will call methods on * {@link software.amazon.awssdk.services.autoscaling.model.PutScheduledUpdateGroupActionRequest.Builder} to * create a request. * @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 Amazon EC2 Auto Scaling resources (for example, Auto Scaling * groups, launch configurations, or lifecycle hooks). For more information, see DescribeAccountLimits in the Amazon EC2 Auto Scaling API Reference. * @throws ResourceContentionException * You already have a pending update to an Amazon EC2 Auto Scaling resource (for example, an Auto Scaling * group, instance, or load balancer). * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws AutoScalingException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample AutoScalingClient.PutScheduledUpdateGroupAction * @see AWS API Documentation */ default PutScheduledUpdateGroupActionResponse putScheduledUpdateGroupAction( Consumer putScheduledUpdateGroupActionRequest) throws AlreadyExistsException, LimitExceededException, ResourceContentionException, AwsServiceException, SdkClientException, AutoScalingException { return putScheduledUpdateGroupAction(PutScheduledUpdateGroupActionRequest.builder() .applyMutation(putScheduledUpdateGroupActionRequest).build()); } /** *

* 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. *

*

* This operation must be called from the Region in which the Auto Scaling group was created. *

*

* You can view the instances in the warm pool using the DescribeWarmPool * API call. If you are no longer using a warm pool, you can delete it by calling the DeleteWarmPool API. *

*

* For more information, see Warm pools for * Amazon EC2 Auto Scaling in the Amazon EC2 Auto Scaling User Guide. *

* * @param putWarmPoolRequest * @return Result of the PutWarmPool operation returned by the service. * @throws 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 DescribeAccountLimits in the Amazon EC2 Auto Scaling API Reference. * @throws ResourceContentionException * You already have a pending update to an Amazon EC2 Auto Scaling resource (for example, an Auto Scaling * group, instance, or load balancer). * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws AutoScalingException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample AutoScalingClient.PutWarmPool * @see AWS API * Documentation */ default PutWarmPoolResponse putWarmPool(PutWarmPoolRequest putWarmPoolRequest) throws LimitExceededException, ResourceContentionException, AwsServiceException, SdkClientException, AutoScalingException { throw new UnsupportedOperationException(); } /** *

* 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. *

*

* This operation must be called from the Region in which the Auto Scaling group was created. *

*

* You can view the instances in the warm pool using the DescribeWarmPool * API call. If you are no longer using a warm pool, you can delete it by calling the DeleteWarmPool API. *

*

* For more information, see Warm pools for * Amazon EC2 Auto Scaling in the Amazon EC2 Auto Scaling User Guide. *

*
*

* This is a convenience which creates an instance of the {@link PutWarmPoolRequest.Builder} avoiding the need to * create one manually via {@link PutWarmPoolRequest#builder()} *

* * @param putWarmPoolRequest * A {@link Consumer} that will call methods on * {@link software.amazon.awssdk.services.autoscaling.model.PutWarmPoolRequest.Builder} to create a request. * @return Result of the PutWarmPool operation returned by the service. * @throws 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 DescribeAccountLimits in the Amazon EC2 Auto Scaling API Reference. * @throws ResourceContentionException * You already have a pending update to an Amazon EC2 Auto Scaling resource (for example, an Auto Scaling * group, instance, or load balancer). * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws AutoScalingException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample AutoScalingClient.PutWarmPool * @see AWS API * Documentation */ default PutWarmPoolResponse putWarmPool(Consumer putWarmPoolRequest) throws LimitExceededException, ResourceContentionException, AwsServiceException, SdkClientException, AutoScalingException { return putWarmPool(PutWarmPoolRequest.builder().applyMutation(putWarmPoolRequest).build()); } /** *

* 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 PutLifecycleHook * API call. *

*

* This step is a part of the procedure for adding a lifecycle hook to an Auto Scaling group: *

*
    *
  1. *

    * (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. *

    *
  2. *
  3. *

    * (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. *

    *
  4. *
  5. *

    * (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. *

    *
  6. *
  7. *

    * Create the lifecycle hook. Specify whether the hook is used when the instances launch or terminate. *

    *
  8. *
  9. *

    * If you need more time, record the lifecycle action heartbeat to keep the instance in a wait state. *

    *
  10. *
  11. *

    * If you finish before the timeout period ends, send a callback by using the CompleteLifecycleAction API call. *

    *
  12. *
*

* For more information, see Amazon EC2 Auto Scaling * lifecycle hooks in the Amazon EC2 Auto Scaling User Guide. *

* * @param recordLifecycleActionHeartbeatRequest * @return Result of the RecordLifecycleActionHeartbeat operation returned by the service. * @throws ResourceContentionException * You already have a pending update to an Amazon EC2 Auto Scaling resource (for example, an Auto Scaling * group, instance, or load balancer). * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws AutoScalingException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample AutoScalingClient.RecordLifecycleActionHeartbeat * @see AWS API Documentation */ default RecordLifecycleActionHeartbeatResponse recordLifecycleActionHeartbeat( RecordLifecycleActionHeartbeatRequest recordLifecycleActionHeartbeatRequest) throws ResourceContentionException, AwsServiceException, SdkClientException, AutoScalingException { throw new UnsupportedOperationException(); } /** *

* 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 PutLifecycleHook * API call. *

*

* This step is a part of the procedure for adding a lifecycle hook to an Auto Scaling group: *

*
    *
  1. *

    * (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. *

    *
  2. *
  3. *

    * (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. *

    *
  4. *
  5. *

    * (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. *

    *
  6. *
  7. *

    * Create the lifecycle hook. Specify whether the hook is used when the instances launch or terminate. *

    *
  8. *
  9. *

    * If you need more time, record the lifecycle action heartbeat to keep the instance in a wait state. *

    *
  10. *
  11. *

    * If you finish before the timeout period ends, send a callback by using the CompleteLifecycleAction API call. *

    *
  12. *
*

* For more information, see Amazon EC2 Auto Scaling * lifecycle hooks in the Amazon EC2 Auto Scaling User Guide. *

*
*

* This is a convenience which creates an instance of the {@link RecordLifecycleActionHeartbeatRequest.Builder} * avoiding the need to create one manually via {@link RecordLifecycleActionHeartbeatRequest#builder()} *

* * @param recordLifecycleActionHeartbeatRequest * A {@link Consumer} that will call methods on * {@link software.amazon.awssdk.services.autoscaling.model.RecordLifecycleActionHeartbeatRequest.Builder} to * create a request. * @return Result of the RecordLifecycleActionHeartbeat operation returned by the service. * @throws ResourceContentionException * You already have a pending update to an Amazon EC2 Auto Scaling resource (for example, an Auto Scaling * group, instance, or load balancer). * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws AutoScalingException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample AutoScalingClient.RecordLifecycleActionHeartbeat * @see AWS API Documentation */ default RecordLifecycleActionHeartbeatResponse recordLifecycleActionHeartbeat( Consumer recordLifecycleActionHeartbeatRequest) throws ResourceContentionException, AwsServiceException, SdkClientException, AutoScalingException { return recordLifecycleActionHeartbeat(RecordLifecycleActionHeartbeatRequest.builder() .applyMutation(recordLifecycleActionHeartbeatRequest).build()); } /** *

* Resumes the specified suspended auto scaling processes, or all suspended process, for the specified Auto Scaling * group. *

*

* For more information, see Suspend and resume * Amazon EC2 Auto Scaling processes in the Amazon EC2 Auto Scaling User Guide. *

* * @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 Amazon EC2 Auto Scaling resource (for example, an Auto Scaling * group, instance, or load balancer). * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws AutoScalingException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample AutoScalingClient.ResumeProcesses * @see AWS * API Documentation */ default ResumeProcessesResponse resumeProcesses(ResumeProcessesRequest resumeProcessesRequest) throws ResourceInUseException, ResourceContentionException, AwsServiceException, SdkClientException, AutoScalingException { throw new UnsupportedOperationException(); } /** *

* Resumes the specified suspended auto scaling processes, or all suspended process, for the specified Auto Scaling * group. *

*

* For more information, see Suspend and resume * Amazon EC2 Auto Scaling processes in the Amazon EC2 Auto Scaling User Guide. *

*
*

* This is a convenience which creates an instance of the {@link ResumeProcessesRequest.Builder} avoiding the need * to create one manually via {@link ResumeProcessesRequest#builder()} *

* * @param resumeProcessesRequest * A {@link Consumer} that will call methods on * {@link software.amazon.awssdk.services.autoscaling.model.ResumeProcessesRequest.Builder} to create a * request. * @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 Amazon EC2 Auto Scaling resource (for example, an Auto Scaling * group, instance, or load balancer). * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws AutoScalingException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample AutoScalingClient.ResumeProcesses * @see AWS * API Documentation */ default ResumeProcessesResponse resumeProcesses(Consumer resumeProcessesRequest) throws ResourceInUseException, ResourceContentionException, AwsServiceException, SdkClientException, AutoScalingException { return resumeProcesses(ResumeProcessesRequest.builder().applyMutation(resumeProcessesRequest).build()); } /** *

* 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. *

*

* This operation is part of the instance refresh * feature in Amazon EC2 Auto Scaling, which helps you update instances in your Auto Scaling group after you * make configuration changes. *

*

* A rollback is not supported in the following situations: *

*
    *
  • *

    * There is no desired configuration specified for the instance refresh. *

    *
  • *
  • *

    * The Auto Scaling group has a launch template that uses an Amazon Web Services Systems Manager parameter instead * of an AMI ID for the ImageId property. *

    *
  • *
  • *

    * The Auto Scaling group uses the launch template's $Latest or $Default version. *

    *
  • *
*

* 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 DescribeInstanceRefreshes API operation. *

* * @param rollbackInstanceRefreshRequest * @return Result of the RollbackInstanceRefresh operation returned by the service. * @throws 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 DescribeAccountLimits in the Amazon EC2 Auto Scaling API Reference. * @throws ResourceContentionException * You already have a pending update to an Amazon EC2 Auto Scaling resource (for example, an Auto Scaling * group, instance, or load balancer). * @throws ActiveInstanceRefreshNotFoundException * The request failed because an active instance refresh or rollback for the specified Auto Scaling group * was not found. * @throws 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 ($Latest or * $Default) is present on the Auto Scaling group. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws AutoScalingException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample AutoScalingClient.RollbackInstanceRefresh * @see AWS API Documentation */ default RollbackInstanceRefreshResponse rollbackInstanceRefresh(RollbackInstanceRefreshRequest rollbackInstanceRefreshRequest) throws LimitExceededException, ResourceContentionException, ActiveInstanceRefreshNotFoundException, IrreversibleInstanceRefreshException, AwsServiceException, SdkClientException, AutoScalingException { throw new UnsupportedOperationException(); } /** *

* 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. *

*

* This operation is part of the instance refresh * feature in Amazon EC2 Auto Scaling, which helps you update instances in your Auto Scaling group after you * make configuration changes. *

*

* A rollback is not supported in the following situations: *

*
    *
  • *

    * There is no desired configuration specified for the instance refresh. *

    *
  • *
  • *

    * The Auto Scaling group has a launch template that uses an Amazon Web Services Systems Manager parameter instead * of an AMI ID for the ImageId property. *

    *
  • *
  • *

    * The Auto Scaling group uses the launch template's $Latest or $Default version. *

    *
  • *
*

* 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 DescribeInstanceRefreshes API operation. *

*
*

* This is a convenience which creates an instance of the {@link RollbackInstanceRefreshRequest.Builder} avoiding * the need to create one manually via {@link RollbackInstanceRefreshRequest#builder()} *

* * @param rollbackInstanceRefreshRequest * A {@link Consumer} that will call methods on * {@link software.amazon.awssdk.services.autoscaling.model.RollbackInstanceRefreshRequest.Builder} to create * a request. * @return Result of the RollbackInstanceRefresh operation returned by the service. * @throws 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 DescribeAccountLimits in the Amazon EC2 Auto Scaling API Reference. * @throws ResourceContentionException * You already have a pending update to an Amazon EC2 Auto Scaling resource (for example, an Auto Scaling * group, instance, or load balancer). * @throws ActiveInstanceRefreshNotFoundException * The request failed because an active instance refresh or rollback for the specified Auto Scaling group * was not found. * @throws 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 ($Latest or * $Default) is present on the Auto Scaling group. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws AutoScalingException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample AutoScalingClient.RollbackInstanceRefresh * @see AWS API Documentation */ default RollbackInstanceRefreshResponse rollbackInstanceRefresh( Consumer rollbackInstanceRefreshRequest) throws LimitExceededException, ResourceContentionException, ActiveInstanceRefreshNotFoundException, IrreversibleInstanceRefreshException, AwsServiceException, SdkClientException, AutoScalingException { return rollbackInstanceRefresh(RollbackInstanceRefreshRequest.builder().applyMutation(rollbackInstanceRefreshRequest) .build()); } /** *

* Sets the size of the specified Auto Scaling group. *

*

* If a scale-in activity occurs as a result of a new DesiredCapacity 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. *

*

* For more information, see Manual * scaling in the Amazon EC2 Auto Scaling User Guide. *

* * @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 Amazon EC2 Auto Scaling resource (for example, an Auto Scaling * group, instance, or load balancer). * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws AutoScalingException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample AutoScalingClient.SetDesiredCapacity * @see AWS API Documentation */ default SetDesiredCapacityResponse setDesiredCapacity(SetDesiredCapacityRequest setDesiredCapacityRequest) throws ScalingActivityInProgressException, ResourceContentionException, AwsServiceException, SdkClientException, AutoScalingException { throw new UnsupportedOperationException(); } /** *

* Sets the size of the specified Auto Scaling group. *

*

* If a scale-in activity occurs as a result of a new DesiredCapacity 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. *

*

* For more information, see Manual * scaling in the Amazon EC2 Auto Scaling User Guide. *

*
*

* This is a convenience which creates an instance of the {@link SetDesiredCapacityRequest.Builder} avoiding the * need to create one manually via {@link SetDesiredCapacityRequest#builder()} *

* * @param setDesiredCapacityRequest * A {@link Consumer} that will call methods on * {@link software.amazon.awssdk.services.autoscaling.model.SetDesiredCapacityRequest.Builder} to create a * request. * @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 Amazon EC2 Auto Scaling resource (for example, an Auto Scaling * group, instance, or load balancer). * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws AutoScalingException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample AutoScalingClient.SetDesiredCapacity * @see AWS API Documentation */ default SetDesiredCapacityResponse setDesiredCapacity(Consumer setDesiredCapacityRequest) throws ScalingActivityInProgressException, ResourceContentionException, AwsServiceException, SdkClientException, AutoScalingException { return setDesiredCapacity(SetDesiredCapacityRequest.builder().applyMutation(setDesiredCapacityRequest).build()); } /** *

* Sets the health status of the specified instance. *

*

* For more information, see Set up a custom * health check for your Auto Scaling group in the Amazon EC2 Auto Scaling User Guide. *

* * @param setInstanceHealthRequest * @return Result of the SetInstanceHealth operation returned by the service. * @throws ResourceContentionException * You already have a pending update to an Amazon EC2 Auto Scaling resource (for example, an Auto Scaling * group, instance, or load balancer). * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws AutoScalingException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample AutoScalingClient.SetInstanceHealth * @see AWS * API Documentation */ default SetInstanceHealthResponse setInstanceHealth(SetInstanceHealthRequest setInstanceHealthRequest) throws ResourceContentionException, AwsServiceException, SdkClientException, AutoScalingException { throw new UnsupportedOperationException(); } /** *

* Sets the health status of the specified instance. *

*

* For more information, see Set up a custom * health check for your Auto Scaling group in the Amazon EC2 Auto Scaling User Guide. *

*
*

* This is a convenience which creates an instance of the {@link SetInstanceHealthRequest.Builder} avoiding the need * to create one manually via {@link SetInstanceHealthRequest#builder()} *

* * @param setInstanceHealthRequest * A {@link Consumer} that will call methods on * {@link software.amazon.awssdk.services.autoscaling.model.SetInstanceHealthRequest.Builder} to create a * request. * @return Result of the SetInstanceHealth operation returned by the service. * @throws ResourceContentionException * You already have a pending update to an Amazon EC2 Auto Scaling resource (for example, an Auto Scaling * group, instance, or load balancer). * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws AutoScalingException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample AutoScalingClient.SetInstanceHealth * @see AWS * API Documentation */ default SetInstanceHealthResponse setInstanceHealth(Consumer setInstanceHealthRequest) throws ResourceContentionException, AwsServiceException, SdkClientException, AutoScalingException { return setInstanceHealth(SetInstanceHealthRequest.builder().applyMutation(setInstanceHealthRequest).build()); } /** *

* Updates the instance protection settings of the specified instances. This operation cannot be called on instances * in a warm pool. *

*

* For more information, see Use * instance scale-in protection in the Amazon EC2 Auto Scaling User Guide. *

*

* If you exceed your maximum limit of instance IDs, which is 50 per Auto Scaling group, the call fails. *

* * @param setInstanceProtectionRequest * @return Result of the SetInstanceProtection operation returned by the service. * @throws 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 DescribeAccountLimits in the Amazon EC2 Auto Scaling API Reference. * @throws ResourceContentionException * You already have a pending update to an Amazon EC2 Auto Scaling resource (for example, an Auto Scaling * group, instance, or load balancer). * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws AutoScalingException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample AutoScalingClient.SetInstanceProtection * @see AWS API Documentation */ default SetInstanceProtectionResponse setInstanceProtection(SetInstanceProtectionRequest setInstanceProtectionRequest) throws LimitExceededException, ResourceContentionException, AwsServiceException, SdkClientException, AutoScalingException { throw new UnsupportedOperationException(); } /** *

* Updates the instance protection settings of the specified instances. This operation cannot be called on instances * in a warm pool. *

*

* For more information, see Use * instance scale-in protection in the Amazon EC2 Auto Scaling User Guide. *

*

* If you exceed your maximum limit of instance IDs, which is 50 per Auto Scaling group, the call fails. *

*
*

* This is a convenience which creates an instance of the {@link SetInstanceProtectionRequest.Builder} avoiding the * need to create one manually via {@link SetInstanceProtectionRequest#builder()} *

* * @param setInstanceProtectionRequest * A {@link Consumer} that will call methods on * {@link software.amazon.awssdk.services.autoscaling.model.SetInstanceProtectionRequest.Builder} to create a * request. * @return Result of the SetInstanceProtection operation returned by the service. * @throws 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 DescribeAccountLimits in the Amazon EC2 Auto Scaling API Reference. * @throws ResourceContentionException * You already have a pending update to an Amazon EC2 Auto Scaling resource (for example, an Auto Scaling * group, instance, or load balancer). * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws AutoScalingException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample AutoScalingClient.SetInstanceProtection * @see AWS API Documentation */ default SetInstanceProtectionResponse setInstanceProtection( Consumer setInstanceProtectionRequest) throws LimitExceededException, ResourceContentionException, AwsServiceException, SdkClientException, AutoScalingException { return setInstanceProtection(SetInstanceProtectionRequest.builder().applyMutation(setInstanceProtectionRequest).build()); } /** *

* Starts an instance refresh. *

*

* This operation is part of the instance refresh * feature 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. *

*

* 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 DescribeInstanceRefreshes API. To describe the instance refreshes that have already run, call the DescribeInstanceRefreshes API. To cancel an instance refresh that is in progress, use the CancelInstanceRefresh API. *

*

* 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 Standby state or protected from * scale in. You can monitor for failed EC2 launches using the scaling activities. To find the scaling activities, * call the * DescribeScalingActivities API. *

*

* 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 * AutoRollback property in the instance refresh preferences. Otherwise, to roll back an instance * refresh before it finishes, use the RollbackInstanceRefresh API. *

* * @param startInstanceRefreshRequest * @return Result of the StartInstanceRefresh operation returned by the service. * @throws 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 DescribeAccountLimits in the Amazon EC2 Auto Scaling API Reference. * @throws ResourceContentionException * You already have a pending update to an Amazon EC2 Auto Scaling resource (for example, an Auto Scaling * group, instance, or load balancer). * @throws InstanceRefreshInProgressException * The request failed because an active instance refresh already exists for the specified Auto Scaling * group. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws AutoScalingException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample AutoScalingClient.StartInstanceRefresh * @see AWS API Documentation */ default StartInstanceRefreshResponse startInstanceRefresh(StartInstanceRefreshRequest startInstanceRefreshRequest) throws LimitExceededException, ResourceContentionException, InstanceRefreshInProgressException, AwsServiceException, SdkClientException, AutoScalingException { throw new UnsupportedOperationException(); } /** *

* Starts an instance refresh. *

*

* This operation is part of the instance refresh * feature 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. *

*

* 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 DescribeInstanceRefreshes API. To describe the instance refreshes that have already run, call the DescribeInstanceRefreshes API. To cancel an instance refresh that is in progress, use the CancelInstanceRefresh API. *

*

* 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 Standby state or protected from * scale in. You can monitor for failed EC2 launches using the scaling activities. To find the scaling activities, * call the * DescribeScalingActivities API. *

*

* 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 * AutoRollback property in the instance refresh preferences. Otherwise, to roll back an instance * refresh before it finishes, use the RollbackInstanceRefresh API. *

*
*

* This is a convenience which creates an instance of the {@link StartInstanceRefreshRequest.Builder} avoiding the * need to create one manually via {@link StartInstanceRefreshRequest#builder()} *

* * @param startInstanceRefreshRequest * A {@link Consumer} that will call methods on * {@link software.amazon.awssdk.services.autoscaling.model.StartInstanceRefreshRequest.Builder} to create a * request. * @return Result of the StartInstanceRefresh operation returned by the service. * @throws 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 DescribeAccountLimits in the Amazon EC2 Auto Scaling API Reference. * @throws ResourceContentionException * You already have a pending update to an Amazon EC2 Auto Scaling resource (for example, an Auto Scaling * group, instance, or load balancer). * @throws InstanceRefreshInProgressException * The request failed because an active instance refresh already exists for the specified Auto Scaling * group. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws AutoScalingException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample AutoScalingClient.StartInstanceRefresh * @see AWS API Documentation */ default StartInstanceRefreshResponse startInstanceRefresh( Consumer startInstanceRefreshRequest) throws LimitExceededException, ResourceContentionException, InstanceRefreshInProgressException, AwsServiceException, SdkClientException, AutoScalingException { return startInstanceRefresh(StartInstanceRefreshRequest.builder().applyMutation(startInstanceRefreshRequest).build()); } /** *

* Suspends the specified auto scaling processes, or all processes, for the specified Auto Scaling group. *

*

* If you suspend either the Launch or Terminate process types, it can prevent other * process types from functioning properly. For more information, see Suspend and resume * Amazon EC2 Auto Scaling processes in the Amazon EC2 Auto Scaling User Guide. *

*

* To resume processes that have been suspended, call the ResumeProcesses API. *

* * @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 Amazon EC2 Auto Scaling resource (for example, an Auto Scaling * group, instance, or load balancer). * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws AutoScalingException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample AutoScalingClient.SuspendProcesses * @see AWS * API Documentation */ default SuspendProcessesResponse suspendProcesses(SuspendProcessesRequest suspendProcessesRequest) throws ResourceInUseException, ResourceContentionException, AwsServiceException, SdkClientException, AutoScalingException { throw new UnsupportedOperationException(); } /** *

* Suspends the specified auto scaling processes, or all processes, for the specified Auto Scaling group. *

*

* If you suspend either the Launch or Terminate process types, it can prevent other * process types from functioning properly. For more information, see Suspend and resume * Amazon EC2 Auto Scaling processes in the Amazon EC2 Auto Scaling User Guide. *

*

* To resume processes that have been suspended, call the ResumeProcesses API. *

*
*

* This is a convenience which creates an instance of the {@link SuspendProcessesRequest.Builder} avoiding the need * to create one manually via {@link SuspendProcessesRequest#builder()} *

* * @param suspendProcessesRequest * A {@link Consumer} that will call methods on * {@link software.amazon.awssdk.services.autoscaling.model.SuspendProcessesRequest.Builder} to create a * request. * @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 Amazon EC2 Auto Scaling resource (for example, an Auto Scaling * group, instance, or load balancer). * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws AutoScalingException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample AutoScalingClient.SuspendProcesses * @see AWS * API Documentation */ default SuspendProcessesResponse suspendProcesses(Consumer suspendProcessesRequest) throws ResourceInUseException, ResourceContentionException, AwsServiceException, SdkClientException, AutoScalingException { return suspendProcesses(SuspendProcessesRequest.builder().applyMutation(suspendProcessesRequest).build()); } /** *

* Terminates the specified instance and optionally adjusts the desired group size. This operation cannot be called * on instances in a warm pool. *

*

* This call simply makes a termination request. The instance is not terminated immediately. When an instance is * terminated, the instance status changes to terminated. You can't connect to or start an instance * after you've terminated it. *

*

* 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. *

*

* 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 Manual * scaling in the Amazon EC2 Auto Scaling User Guide. *

* * @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 Amazon EC2 Auto Scaling resource (for example, an Auto Scaling * group, instance, or load balancer). * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws AutoScalingException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample AutoScalingClient.TerminateInstanceInAutoScalingGroup * @see AWS API Documentation */ default TerminateInstanceInAutoScalingGroupResponse terminateInstanceInAutoScalingGroup( TerminateInstanceInAutoScalingGroupRequest terminateInstanceInAutoScalingGroupRequest) throws ScalingActivityInProgressException, ResourceContentionException, AwsServiceException, SdkClientException, AutoScalingException { throw new UnsupportedOperationException(); } /** *

* Terminates the specified instance and optionally adjusts the desired group size. This operation cannot be called * on instances in a warm pool. *

*

* This call simply makes a termination request. The instance is not terminated immediately. When an instance is * terminated, the instance status changes to terminated. You can't connect to or start an instance * after you've terminated it. *

*

* 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. *

*

* 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 Manual * scaling in the Amazon EC2 Auto Scaling User Guide. *

*
*

* This is a convenience which creates an instance of the {@link TerminateInstanceInAutoScalingGroupRequest.Builder} * avoiding the need to create one manually via {@link TerminateInstanceInAutoScalingGroupRequest#builder()} *

* * @param terminateInstanceInAutoScalingGroupRequest * A {@link Consumer} that will call methods on * {@link software.amazon.awssdk.services.autoscaling.model.TerminateInstanceInAutoScalingGroupRequest.Builder} * to create a request. * @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 Amazon EC2 Auto Scaling resource (for example, an Auto Scaling * group, instance, or load balancer). * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws AutoScalingException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample AutoScalingClient.TerminateInstanceInAutoScalingGroup * @see AWS API Documentation */ default TerminateInstanceInAutoScalingGroupResponse terminateInstanceInAutoScalingGroup( Consumer terminateInstanceInAutoScalingGroupRequest) throws ScalingActivityInProgressException, ResourceContentionException, AwsServiceException, SdkClientException, AutoScalingException { return terminateInstanceInAutoScalingGroup(TerminateInstanceInAutoScalingGroupRequest.builder() .applyMutation(terminateInstanceInAutoScalingGroupRequest).build()); } /** *

* We strongly recommend that all Auto Scaling groups use launch templates to ensure full functionality for * Amazon EC2 Auto Scaling and Amazon EC2. *

*

* Updates the configuration for the specified Auto Scaling group. *

*

* 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. *

*

* 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. *

*

* Note the following about changing DesiredCapacity, MaxSize, or MinSize: *

*
    *
  • *

    * If a scale-in activity occurs as a result of a new DesiredCapacity 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. *

    *
  • *
  • *

    * If you specify a new value for MinSize without specifying a value for DesiredCapacity, * and the new MinSize is larger than the current size of the group, this sets the group's * DesiredCapacity to the new MinSize value. *

    *
  • *
  • *

    * If you specify a new value for MaxSize without specifying a value for DesiredCapacity, * and the new MaxSize is smaller than the current size of the group, this sets the group's * DesiredCapacity to the new MaxSize value. *

    *
  • *
*

* To see which properties have been set, call the DescribeAutoScalingGroups API. To view the scaling policies for an Auto Scaling group, call the DescribePolicies * API. If the group has scaling policies, you can update them by calling the PutScalingPolicy * API. *

* * @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 Amazon EC2 Auto Scaling resource (for example, an Auto Scaling * group, instance, or load balancer). * @throws ServiceLinkedRoleFailureException * The service-linked role is not yet ready for use. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws AutoScalingException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample AutoScalingClient.UpdateAutoScalingGroup * @see AWS API Documentation */ default UpdateAutoScalingGroupResponse updateAutoScalingGroup(UpdateAutoScalingGroupRequest updateAutoScalingGroupRequest) throws ScalingActivityInProgressException, ResourceContentionException, ServiceLinkedRoleFailureException, AwsServiceException, SdkClientException, AutoScalingException { throw new UnsupportedOperationException(); } /** *

* We strongly recommend that all Auto Scaling groups use launch templates to ensure full functionality for * Amazon EC2 Auto Scaling and Amazon EC2. *

*

* Updates the configuration for the specified Auto Scaling group. *

*

* 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. *

*

* 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. *

*

* Note the following about changing DesiredCapacity, MaxSize, or MinSize: *

*
    *
  • *

    * If a scale-in activity occurs as a result of a new DesiredCapacity 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. *

    *
  • *
  • *

    * If you specify a new value for MinSize without specifying a value for DesiredCapacity, * and the new MinSize is larger than the current size of the group, this sets the group's * DesiredCapacity to the new MinSize value. *

    *
  • *
  • *

    * If you specify a new value for MaxSize without specifying a value for DesiredCapacity, * and the new MaxSize is smaller than the current size of the group, this sets the group's * DesiredCapacity to the new MaxSize value. *

    *
  • *
*

* To see which properties have been set, call the DescribeAutoScalingGroups API. To view the scaling policies for an Auto Scaling group, call the DescribePolicies * API. If the group has scaling policies, you can update them by calling the PutScalingPolicy * API. *

*
*

* This is a convenience which creates an instance of the {@link UpdateAutoScalingGroupRequest.Builder} avoiding the * need to create one manually via {@link UpdateAutoScalingGroupRequest#builder()} *

* * @param updateAutoScalingGroupRequest * A {@link Consumer} that will call methods on * {@link software.amazon.awssdk.services.autoscaling.model.UpdateAutoScalingGroupRequest.Builder} to create * a request. * @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 Amazon EC2 Auto Scaling resource (for example, an Auto Scaling * group, instance, or load balancer). * @throws ServiceLinkedRoleFailureException * The service-linked role is not yet ready for use. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws AutoScalingException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample AutoScalingClient.UpdateAutoScalingGroup * @see AWS API Documentation */ default UpdateAutoScalingGroupResponse updateAutoScalingGroup( Consumer updateAutoScalingGroupRequest) throws ScalingActivityInProgressException, ResourceContentionException, ServiceLinkedRoleFailureException, AwsServiceException, SdkClientException, AutoScalingException { return updateAutoScalingGroup(UpdateAutoScalingGroupRequest.builder().applyMutation(updateAutoScalingGroupRequest) .build()); } /** * Create an instance of {@link AutoScalingWaiter} using this client. *

* Waiters created via this method are managed by the SDK and resources will be released when the service client is * closed. * * @return an instance of {@link AutoScalingWaiter} */ default AutoScalingWaiter waiter() { throw new UnsupportedOperationException(); } /** * Create a {@link AutoScalingClient} with the region loaded from the * {@link software.amazon.awssdk.regions.providers.DefaultAwsRegionProviderChain} and credentials loaded from the * {@link software.amazon.awssdk.auth.credentials.DefaultCredentialsProvider}. */ static AutoScalingClient create() { return builder().build(); } /** * Create a builder that can be used to configure and create a {@link AutoScalingClient}. */ static AutoScalingClientBuilder builder() { return new DefaultAutoScalingClientBuilder(); } static ServiceMetadata serviceMetadata() { return ServiceMetadata.of(SERVICE_METADATA_ID); } @Override default AutoScalingServiceClientConfiguration serviceClientConfiguration() { throw new UnsupportedOperationException(); } }





© 2015 - 2024 Weber Informatics LLC | Privacy Policy