Class AmazonAutoScalingAsyncClient
- All Implemented Interfaces:
AmazonAutoScaling, AmazonAutoScalingAsync
AsyncHandler can be used to receive
notification when an asynchronous operation completes.
Auto Scaling is designed to automatically launch or terminate EC2 instances based on user-defined policies, schedules, and health checks. Use this service in conjunction with the Amazon CloudWatch and Elastic Load Balancing services.
-
Field Summary
Fields inherited from class AmazonAutoScalingClient
configFactory, exceptionUnmarshallersFields inherited from class AmazonWebServiceClient
client, clientConfiguration, endpoint, LOGGING_AWS_REQUEST_METRIC, requestHandler2s, timeOffset -
Constructor Summary
ConstructorsConstructorDescriptionConstructs a new asynchronous client to invoke service methods on Auto Scaling.AmazonAutoScalingAsyncClient(AWSCredentials awsCredentials) Constructs a new asynchronous client to invoke service methods on Auto Scaling using the specified AWS account credentials.AmazonAutoScalingAsyncClient(AWSCredentialsProvider awsCredentialsProvider) Constructs a new asynchronous client to invoke service methods on Auto Scaling using the specified AWS account credentials provider.AmazonAutoScalingAsyncClient(AWSCredentialsProvider awsCredentialsProvider, ClientConfiguration clientConfiguration) Constructs a new asynchronous client to invoke service methods on Auto Scaling using the provided AWS account credentials provider and client configuration options.AmazonAutoScalingAsyncClient(AWSCredentialsProvider awsCredentialsProvider, ClientConfiguration clientConfiguration, ExecutorService executorService) Constructs a new asynchronous client to invoke service methods on Auto Scaling using the specified AWS account credentials provider, executor service, and client configuration options.AmazonAutoScalingAsyncClient(AWSCredentialsProvider awsCredentialsProvider, ExecutorService executorService) Constructs a new asynchronous client to invoke service methods on Auto Scaling using the specified AWS account credentials provider and executor service.AmazonAutoScalingAsyncClient(AWSCredentials awsCredentials, ClientConfiguration clientConfiguration, ExecutorService executorService) Constructs a new asynchronous client to invoke service methods on Auto Scaling using the specified AWS account credentials, executor service, and client configuration options.AmazonAutoScalingAsyncClient(AWSCredentials awsCredentials, ExecutorService executorService) Constructs a new asynchronous client to invoke service methods on Auto Scaling using the specified AWS account credentials and executor service.AmazonAutoScalingAsyncClient(ClientConfiguration clientConfiguration) Constructs a new asynchronous client to invoke service methods on Auto Scaling. -
Method Summary
Modifier and TypeMethodDescriptionAttaches one or more EC2 instances to the specified Auto Scaling group.attachInstancesAsync(AttachInstancesRequest request, AsyncHandler<AttachInstancesRequest, AttachInstancesResult> asyncHandler) Attaches one or more EC2 instances to the specified Auto Scaling group.Simplified method form for invoking the AttachLoadBalancers operation.attachLoadBalancersAsync(AsyncHandler<AttachLoadBalancersRequest, AttachLoadBalancersResult> asyncHandler) Simplified method form for invoking the AttachLoadBalancers operation with an AsyncHandler.Attaches one or more load balancers to the specified Auto Scaling group.attachLoadBalancersAsync(AttachLoadBalancersRequest request, AsyncHandler<AttachLoadBalancersRequest, AttachLoadBalancersResult> asyncHandler) Attaches one or more load balancers to the specified Auto Scaling group.Completes the lifecycle action for the specified token or instance with the specified result.completeLifecycleActionAsync(CompleteLifecycleActionRequest request, AsyncHandler<CompleteLifecycleActionRequest, CompleteLifecycleActionResult> asyncHandler) Completes the lifecycle action for the specified token or instance with the specified result.Creates an Auto Scaling group with the specified name and attributes.createAutoScalingGroupAsync(CreateAutoScalingGroupRequest request, AsyncHandler<CreateAutoScalingGroupRequest, CreateAutoScalingGroupResult> asyncHandler) Creates an Auto Scaling group with the specified name and attributes.Creates a launch configuration.createLaunchConfigurationAsync(CreateLaunchConfigurationRequest request, AsyncHandler<CreateLaunchConfigurationRequest, CreateLaunchConfigurationResult> asyncHandler) Creates a launch configuration.Creates or updates tags for the specified Auto Scaling group.createOrUpdateTagsAsync(CreateOrUpdateTagsRequest request, AsyncHandler<CreateOrUpdateTagsRequest, CreateOrUpdateTagsResult> asyncHandler) Creates or updates tags for the specified Auto Scaling group.Deletes the specified Auto Scaling group.deleteAutoScalingGroupAsync(DeleteAutoScalingGroupRequest request, AsyncHandler<DeleteAutoScalingGroupRequest, DeleteAutoScalingGroupResult> asyncHandler) Deletes the specified Auto Scaling group.Deletes the specified launch configuration.deleteLaunchConfigurationAsync(DeleteLaunchConfigurationRequest request, AsyncHandler<DeleteLaunchConfigurationRequest, DeleteLaunchConfigurationResult> asyncHandler) Deletes the specified launch configuration.Deletes the specified lifecycle hook.deleteLifecycleHookAsync(DeleteLifecycleHookRequest request, AsyncHandler<DeleteLifecycleHookRequest, DeleteLifecycleHookResult> asyncHandler) Deletes the specified lifecycle hook.Deletes the specified notification.deleteNotificationConfigurationAsync(DeleteNotificationConfigurationRequest request, AsyncHandler<DeleteNotificationConfigurationRequest, DeleteNotificationConfigurationResult> asyncHandler) Deletes the specified notification.deletePolicyAsync(DeletePolicyRequest request) Deletes the specified Auto Scaling policy.deletePolicyAsync(DeletePolicyRequest request, AsyncHandler<DeletePolicyRequest, DeletePolicyResult> asyncHandler) Deletes the specified Auto Scaling policy.Deletes the specified scheduled action.deleteScheduledActionAsync(DeleteScheduledActionRequest request, AsyncHandler<DeleteScheduledActionRequest, DeleteScheduledActionResult> asyncHandler) Deletes the specified scheduled action.deleteTagsAsync(DeleteTagsRequest request) Deletes the specified tags.deleteTagsAsync(DeleteTagsRequest request, AsyncHandler<DeleteTagsRequest, DeleteTagsResult> asyncHandler) Deletes the specified tags.Simplified method form for invoking the DescribeAccountLimits operation.describeAccountLimitsAsync(AsyncHandler<DescribeAccountLimitsRequest, DescribeAccountLimitsResult> asyncHandler) Simplified method form for invoking the DescribeAccountLimits operation with an AsyncHandler.Describes the current Auto Scaling resource limits for your AWS account.describeAccountLimitsAsync(DescribeAccountLimitsRequest request, AsyncHandler<DescribeAccountLimitsRequest, DescribeAccountLimitsResult> asyncHandler) Describes the current Auto Scaling resource limits for your AWS account.Simplified method form for invoking the DescribeAdjustmentTypes operation.describeAdjustmentTypesAsync(AsyncHandler<DescribeAdjustmentTypesRequest, DescribeAdjustmentTypesResult> asyncHandler) Simplified method form for invoking the DescribeAdjustmentTypes operation with an AsyncHandler.Describes the policy adjustment types for use with PutScalingPolicy.describeAdjustmentTypesAsync(DescribeAdjustmentTypesRequest request, AsyncHandler<DescribeAdjustmentTypesRequest, DescribeAdjustmentTypesResult> asyncHandler) Describes the policy adjustment types for use with PutScalingPolicy.Simplified method form for invoking the DescribeAutoScalingGroups operation.describeAutoScalingGroupsAsync(AsyncHandler<DescribeAutoScalingGroupsRequest, DescribeAutoScalingGroupsResult> asyncHandler) Simplified method form for invoking the DescribeAutoScalingGroups operation with an AsyncHandler.Describes one or more Auto Scaling groups.describeAutoScalingGroupsAsync(DescribeAutoScalingGroupsRequest request, AsyncHandler<DescribeAutoScalingGroupsRequest, DescribeAutoScalingGroupsResult> asyncHandler) Describes one or more Auto Scaling groups.Simplified method form for invoking the DescribeAutoScalingInstances operation.describeAutoScalingInstancesAsync(AsyncHandler<DescribeAutoScalingInstancesRequest, DescribeAutoScalingInstancesResult> asyncHandler) Simplified method form for invoking the DescribeAutoScalingInstances operation with an AsyncHandler.Describes one or more Auto Scaling instances.describeAutoScalingInstancesAsync(DescribeAutoScalingInstancesRequest request, AsyncHandler<DescribeAutoScalingInstancesRequest, DescribeAutoScalingInstancesResult> asyncHandler) Describes one or more Auto Scaling instances.Simplified method form for invoking the DescribeAutoScalingNotificationTypes operation.describeAutoScalingNotificationTypesAsync(AsyncHandler<DescribeAutoScalingNotificationTypesRequest, DescribeAutoScalingNotificationTypesResult> asyncHandler) Simplified method form for invoking the DescribeAutoScalingNotificationTypes operation with an AsyncHandler.Describes the notification types that are supported by Auto Scaling.describeAutoScalingNotificationTypesAsync(DescribeAutoScalingNotificationTypesRequest request, AsyncHandler<DescribeAutoScalingNotificationTypesRequest, DescribeAutoScalingNotificationTypesResult> asyncHandler) Describes the notification types that are supported by Auto Scaling.Simplified method form for invoking the DescribeLaunchConfigurations operation.describeLaunchConfigurationsAsync(AsyncHandler<DescribeLaunchConfigurationsRequest, DescribeLaunchConfigurationsResult> asyncHandler) Simplified method form for invoking the DescribeLaunchConfigurations operation with an AsyncHandler.Describes one or more launch configurations.describeLaunchConfigurationsAsync(DescribeLaunchConfigurationsRequest request, AsyncHandler<DescribeLaunchConfigurationsRequest, DescribeLaunchConfigurationsResult> asyncHandler) Describes one or more launch configurations.Describes the lifecycle hooks for the specified Auto Scaling group.describeLifecycleHooksAsync(DescribeLifecycleHooksRequest request, AsyncHandler<DescribeLifecycleHooksRequest, DescribeLifecycleHooksResult> asyncHandler) Describes the lifecycle hooks for the specified Auto Scaling group.Simplified method form for invoking the DescribeLifecycleHookTypes operation.describeLifecycleHookTypesAsync(AsyncHandler<DescribeLifecycleHookTypesRequest, DescribeLifecycleHookTypesResult> asyncHandler) Simplified method form for invoking the DescribeLifecycleHookTypes operation with an AsyncHandler.Describes the available types of lifecycle hooks.describeLifecycleHookTypesAsync(DescribeLifecycleHookTypesRequest request, AsyncHandler<DescribeLifecycleHookTypesRequest, DescribeLifecycleHookTypesResult> asyncHandler) Describes the available types of lifecycle hooks.Describes the load balancers for the specified Auto Scaling group.describeLoadBalancersAsync(DescribeLoadBalancersRequest request, AsyncHandler<DescribeLoadBalancersRequest, DescribeLoadBalancersResult> asyncHandler) Describes the load balancers for the specified Auto Scaling group.Simplified method form for invoking the DescribeMetricCollectionTypes operation.describeMetricCollectionTypesAsync(AsyncHandler<DescribeMetricCollectionTypesRequest, DescribeMetricCollectionTypesResult> asyncHandler) Simplified method form for invoking the DescribeMetricCollectionTypes operation with an AsyncHandler.Describes the available CloudWatch metrics for Auto Scaling.describeMetricCollectionTypesAsync(DescribeMetricCollectionTypesRequest request, AsyncHandler<DescribeMetricCollectionTypesRequest, DescribeMetricCollectionTypesResult> asyncHandler) Describes the available CloudWatch metrics for Auto Scaling.Simplified method form for invoking the DescribeNotificationConfigurations operation.describeNotificationConfigurationsAsync(AsyncHandler<DescribeNotificationConfigurationsRequest, DescribeNotificationConfigurationsResult> asyncHandler) Simplified method form for invoking the DescribeNotificationConfigurations operation with an AsyncHandler.Describes the notification actions associated with the specified Auto Scaling group.describeNotificationConfigurationsAsync(DescribeNotificationConfigurationsRequest request, AsyncHandler<DescribeNotificationConfigurationsRequest, DescribeNotificationConfigurationsResult> asyncHandler) Describes the notification actions associated with the specified Auto Scaling group.Simplified method form for invoking the DescribePolicies operation.Simplified method form for invoking the DescribePolicies operation with an AsyncHandler.Describes the policies for the specified Auto Scaling group.describePoliciesAsync(DescribePoliciesRequest request, AsyncHandler<DescribePoliciesRequest, DescribePoliciesResult> asyncHandler) Describes the policies for the specified Auto Scaling group.Simplified method form for invoking the DescribeScalingActivities operation.describeScalingActivitiesAsync(AsyncHandler<DescribeScalingActivitiesRequest, DescribeScalingActivitiesResult> asyncHandler) Simplified method form for invoking the DescribeScalingActivities operation with an AsyncHandler.Describes one or more scaling activities for the specified Auto Scaling group.describeScalingActivitiesAsync(DescribeScalingActivitiesRequest request, AsyncHandler<DescribeScalingActivitiesRequest, DescribeScalingActivitiesResult> asyncHandler) Describes one or more scaling activities for the specified Auto Scaling group.Simplified method form for invoking the DescribeScalingProcessTypes operation.describeScalingProcessTypesAsync(AsyncHandler<DescribeScalingProcessTypesRequest, DescribeScalingProcessTypesResult> asyncHandler) Simplified method form for invoking the DescribeScalingProcessTypes operation with an AsyncHandler.Describes the scaling process types for use with ResumeProcesses and SuspendProcesses.describeScalingProcessTypesAsync(DescribeScalingProcessTypesRequest request, AsyncHandler<DescribeScalingProcessTypesRequest, DescribeScalingProcessTypesResult> asyncHandler) Describes the scaling process types for use with ResumeProcesses and SuspendProcesses.Simplified method form for invoking the DescribeScheduledActions operation.describeScheduledActionsAsync(AsyncHandler<DescribeScheduledActionsRequest, DescribeScheduledActionsResult> asyncHandler) Simplified method form for invoking the DescribeScheduledActions operation with an AsyncHandler.Describes the actions scheduled for your Auto Scaling group that haven't run.describeScheduledActionsAsync(DescribeScheduledActionsRequest request, AsyncHandler<DescribeScheduledActionsRequest, DescribeScheduledActionsResult> asyncHandler) Describes the actions scheduled for your Auto Scaling group that haven't run.Simplified method form for invoking the DescribeTags operation.describeTagsAsync(AsyncHandler<DescribeTagsRequest, DescribeTagsResult> asyncHandler) Simplified method form for invoking the DescribeTags operation with an AsyncHandler.describeTagsAsync(DescribeTagsRequest request) Describes the specified tags.describeTagsAsync(DescribeTagsRequest request, AsyncHandler<DescribeTagsRequest, DescribeTagsResult> asyncHandler) Describes the specified tags.Simplified method form for invoking the DescribeTerminationPolicyTypes operation.describeTerminationPolicyTypesAsync(AsyncHandler<DescribeTerminationPolicyTypesRequest, DescribeTerminationPolicyTypesResult> asyncHandler) Simplified method form for invoking the DescribeTerminationPolicyTypes operation with an AsyncHandler.Describes the termination policies supported by Auto Scaling.describeTerminationPolicyTypesAsync(DescribeTerminationPolicyTypesRequest request, AsyncHandler<DescribeTerminationPolicyTypesRequest, DescribeTerminationPolicyTypesResult> asyncHandler) Describes the termination policies supported by Auto Scaling.Removes one or more instances from the specified Auto Scaling group.detachInstancesAsync(DetachInstancesRequest request, AsyncHandler<DetachInstancesRequest, DetachInstancesResult> asyncHandler) Removes one or more instances from the specified Auto Scaling group.Simplified method form for invoking the DetachLoadBalancers operation.detachLoadBalancersAsync(AsyncHandler<DetachLoadBalancersRequest, DetachLoadBalancersResult> asyncHandler) Simplified method form for invoking the DetachLoadBalancers operation with an AsyncHandler.Removes one or more load balancers from the specified Auto Scaling group.detachLoadBalancersAsync(DetachLoadBalancersRequest request, AsyncHandler<DetachLoadBalancersRequest, DetachLoadBalancersResult> asyncHandler) Removes one or more load balancers from the specified Auto Scaling group.Disables monitoring of the specified metrics for the specified Auto Scaling group.disableMetricsCollectionAsync(DisableMetricsCollectionRequest request, AsyncHandler<DisableMetricsCollectionRequest, DisableMetricsCollectionResult> asyncHandler) Disables monitoring of the specified metrics for the specified Auto Scaling group.Enables monitoring of the specified metrics for the specified Auto Scaling group.enableMetricsCollectionAsync(EnableMetricsCollectionRequest request, AsyncHandler<EnableMetricsCollectionRequest, EnableMetricsCollectionResult> asyncHandler) Enables monitoring of the specified metrics for the specified Auto Scaling group.enterStandbyAsync(EnterStandbyRequest request) Moves the specified instances intoStandbymode.enterStandbyAsync(EnterStandbyRequest request, AsyncHandler<EnterStandbyRequest, EnterStandbyResult> asyncHandler) Moves the specified instances intoStandbymode.executePolicyAsync(ExecutePolicyRequest request) Executes the specified policy.executePolicyAsync(ExecutePolicyRequest request, AsyncHandler<ExecutePolicyRequest, ExecutePolicyResult> asyncHandler) Executes the specified policy.exitStandbyAsync(ExitStandbyRequest request) Moves the specified instances out ofStandbymode.exitStandbyAsync(ExitStandbyRequest request, AsyncHandler<ExitStandbyRequest, ExitStandbyResult> asyncHandler) Moves the specified instances out ofStandbymode.Returns the executor service used by this client to execute async requests.Creates or updates a lifecycle hook for the specified Auto Scaling Group.putLifecycleHookAsync(PutLifecycleHookRequest request, AsyncHandler<PutLifecycleHookRequest, PutLifecycleHookResult> asyncHandler) Creates or updates a lifecycle hook for the specified Auto Scaling Group.Configures an Auto Scaling group to send notifications when specified events take place.putNotificationConfigurationAsync(PutNotificationConfigurationRequest request, AsyncHandler<PutNotificationConfigurationRequest, PutNotificationConfigurationResult> asyncHandler) Configures an Auto Scaling group to send notifications when specified events take place.Creates or updates a policy for an Auto Scaling group.putScalingPolicyAsync(PutScalingPolicyRequest request, AsyncHandler<PutScalingPolicyRequest, PutScalingPolicyResult> asyncHandler) Creates or updates a policy for an Auto Scaling group.Creates or updates a scheduled scaling action for an Auto Scaling group.putScheduledUpdateGroupActionAsync(PutScheduledUpdateGroupActionRequest request, AsyncHandler<PutScheduledUpdateGroupActionRequest, PutScheduledUpdateGroupActionResult> asyncHandler) Creates or updates a scheduled scaling action for an Auto Scaling group.Records a heartbeat for the lifecycle action associated with the specified token or instance.recordLifecycleActionHeartbeatAsync(RecordLifecycleActionHeartbeatRequest request, AsyncHandler<RecordLifecycleActionHeartbeatRequest, RecordLifecycleActionHeartbeatResult> asyncHandler) Records a heartbeat for the lifecycle action associated with the specified token or instance.Resumes the specified suspended Auto Scaling processes, or all suspended process, for the specified Auto Scaling group.resumeProcessesAsync(ResumeProcessesRequest request, AsyncHandler<ResumeProcessesRequest, ResumeProcessesResult> asyncHandler) Resumes the specified suspended Auto Scaling processes, or all suspended process, for the specified Auto Scaling group.Sets the size of the specified Auto Scaling group.setDesiredCapacityAsync(SetDesiredCapacityRequest request, AsyncHandler<SetDesiredCapacityRequest, SetDesiredCapacityResult> asyncHandler) Sets the size of the specified Auto Scaling group.Sets the health status of the specified instance.setInstanceHealthAsync(SetInstanceHealthRequest request, AsyncHandler<SetInstanceHealthRequest, SetInstanceHealthResult> asyncHandler) Sets the health status of the specified instance.Updates the instance protection settings of the specified instances.setInstanceProtectionAsync(SetInstanceProtectionRequest request, AsyncHandler<SetInstanceProtectionRequest, SetInstanceProtectionResult> asyncHandler) Updates the instance protection settings of the specified instances.voidshutdown()Shuts down the client, releasing all managed resources.Suspends the specified Auto Scaling processes, or all processes, for the specified Auto Scaling group.suspendProcessesAsync(SuspendProcessesRequest request, AsyncHandler<SuspendProcessesRequest, SuspendProcessesResult> asyncHandler) Suspends the specified Auto Scaling processes, or all processes, for the specified Auto Scaling group.Terminates the specified instance and optionally adjusts the desired group size.terminateInstanceInAutoScalingGroupAsync(TerminateInstanceInAutoScalingGroupRequest request, AsyncHandler<TerminateInstanceInAutoScalingGroupRequest, TerminateInstanceInAutoScalingGroupResult> asyncHandler) Terminates the specified instance and optionally adjusts the desired group size.Updates the configuration for the specified Auto Scaling group.updateAutoScalingGroupAsync(UpdateAutoScalingGroupRequest request, AsyncHandler<UpdateAutoScalingGroupRequest, UpdateAutoScalingGroupResult> asyncHandler) Updates the configuration for the specified Auto Scaling group.Methods inherited from class AmazonAutoScalingClient
attachInstances, attachLoadBalancers, attachLoadBalancers, completeLifecycleAction, createAutoScalingGroup, createLaunchConfiguration, createOrUpdateTags, deleteAutoScalingGroup, deleteLaunchConfiguration, deleteLifecycleHook, deleteNotificationConfiguration, deletePolicy, deleteScheduledAction, deleteTags, describeAccountLimits, describeAccountLimits, describeAdjustmentTypes, describeAdjustmentTypes, describeAutoScalingGroups, describeAutoScalingGroups, describeAutoScalingInstances, describeAutoScalingInstances, describeAutoScalingNotificationTypes, describeAutoScalingNotificationTypes, describeLaunchConfigurations, describeLaunchConfigurations, describeLifecycleHooks, describeLifecycleHookTypes, describeLifecycleHookTypes, describeLoadBalancers, describeMetricCollectionTypes, describeMetricCollectionTypes, describeNotificationConfigurations, describeNotificationConfigurations, describePolicies, describePolicies, describeScalingActivities, describeScalingActivities, describeScalingProcessTypes, describeScalingProcessTypes, describeScheduledActions, describeScheduledActions, describeTags, describeTags, describeTerminationPolicyTypes, describeTerminationPolicyTypes, detachInstances, detachLoadBalancers, detachLoadBalancers, disableMetricsCollection, enableMetricsCollection, enterStandby, executePolicy, exitStandby, getCachedResponseMetadata, putLifecycleHook, putNotificationConfiguration, putScalingPolicy, putScheduledUpdateGroupAction, recordLifecycleActionHeartbeat, resumeProcesses, setDesiredCapacity, setInstanceHealth, setInstanceProtection, suspendProcesses, terminateInstanceInAutoScalingGroup, updateAutoScalingGroupMethods inherited from class AmazonWebServiceClient
addRequestHandler, addRequestHandler, beforeMarshalling, configureRegion, createExecutionContext, createExecutionContext, createExecutionContext, endClientExecution, endClientExecution, findRequestMetricCollector, getEndpointPrefix, getRequestMetricsCollector, getServiceAbbreviation, getServiceName, getServiceNameIntern, getSigner, getSignerByURI, getSignerRegionOverride, getTimeOffset, isProfilingEnabled, isRequestMetricsEnabled, removeRequestHandler, removeRequestHandler, requestMetricCollector, setEndpoint, setEndpointPrefix, setRegion, setServiceNameIntern, setSignerRegionOverride, setTimeOffset, withEndpoint, withRegion, withRegion, withTimeOffsetMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface AmazonAutoScaling
attachInstances, attachLoadBalancers, attachLoadBalancers, completeLifecycleAction, createAutoScalingGroup, createLaunchConfiguration, createOrUpdateTags, deleteAutoScalingGroup, deleteLaunchConfiguration, deleteLifecycleHook, deleteNotificationConfiguration, deletePolicy, deleteScheduledAction, deleteTags, describeAccountLimits, describeAccountLimits, describeAdjustmentTypes, describeAdjustmentTypes, describeAutoScalingGroups, describeAutoScalingGroups, describeAutoScalingInstances, describeAutoScalingInstances, describeAutoScalingNotificationTypes, describeAutoScalingNotificationTypes, describeLaunchConfigurations, describeLaunchConfigurations, describeLifecycleHooks, describeLifecycleHookTypes, describeLifecycleHookTypes, describeLoadBalancers, describeMetricCollectionTypes, describeMetricCollectionTypes, describeNotificationConfigurations, describeNotificationConfigurations, describePolicies, describePolicies, describeScalingActivities, describeScalingActivities, describeScalingProcessTypes, describeScalingProcessTypes, describeScheduledActions, describeScheduledActions, describeTags, describeTags, describeTerminationPolicyTypes, describeTerminationPolicyTypes, detachInstances, detachLoadBalancers, detachLoadBalancers, disableMetricsCollection, enableMetricsCollection, enterStandby, executePolicy, exitStandby, getCachedResponseMetadata, putLifecycleHook, putNotificationConfiguration, putScalingPolicy, putScheduledUpdateGroupAction, recordLifecycleActionHeartbeat, resumeProcesses, setDesiredCapacity, setEndpoint, setInstanceHealth, setInstanceProtection, setRegion, suspendProcesses, terminateInstanceInAutoScalingGroup, updateAutoScalingGroup
-
Constructor Details
-
AmazonAutoScalingAsyncClient
public AmazonAutoScalingAsyncClient()Constructs a new asynchronous client to invoke service methods on Auto Scaling. A credentials provider chain will be used that searches for credentials in this order:- Environment Variables - AWS_ACCESS_KEY_ID and AWS_SECRET_KEY
- Java System Properties - aws.accessKeyId and aws.secretKey
- Credential profiles file at the default location (~/.aws/credentials) shared by all AWS SDKs and the AWS CLI
- Instance profile credentials delivered through the Amazon EC2 metadata service
Asynchronous methods are delegated to a fixed-size thread pool containing 50 threads (to match the default maximum number of concurrent connections to the service).
- See Also:
-
AmazonAutoScalingAsyncClient
Constructs a new asynchronous client to invoke service methods on Auto Scaling. A credentials provider chain will be used that searches for credentials in this order:- Environment Variables - AWS_ACCESS_KEY_ID and AWS_SECRET_KEY
- Java System Properties - aws.accessKeyId and aws.secretKey
- Credential profiles file at the default location (~/.aws/credentials) shared by all AWS SDKs and the AWS CLI
- Instance profile credentials delivered through the Amazon EC2 metadata service
Asynchronous methods are delegated to a fixed-size thread pool containing a number of threads equal to the maximum number of concurrent connections configured via
ClientConfiguration.getMaxConnections().- Parameters:
clientConfiguration- The client configuration options controlling how this client connects to Auto Scaling (ex: proxy settings, retry counts, etc).- See Also:
-
AmazonAutoScalingAsyncClient
Constructs a new asynchronous client to invoke service methods on Auto Scaling using the specified AWS account credentials.Asynchronous methods are delegated to a fixed-size thread pool containing 50 threads (to match the default maximum number of concurrent connections to the service).
- Parameters:
awsCredentials- The AWS credentials (access key ID and secret key) to use when authenticating with AWS services.- See Also:
-
AmazonAutoScalingAsyncClient
Constructs a new asynchronous client to invoke service methods on Auto Scaling using the specified AWS account credentials and executor service. Default client settings will be used.- Parameters:
awsCredentials- The AWS credentials (access key ID and secret key) to use when authenticating with AWS services.executorService- The executor service by which all asynchronous requests will be executed.
-
AmazonAutoScalingAsyncClient
public AmazonAutoScalingAsyncClient(AWSCredentials awsCredentials, ClientConfiguration clientConfiguration, ExecutorService executorService) Constructs a new asynchronous client to invoke service methods on Auto Scaling using the specified AWS account credentials, executor service, and client configuration options.- Parameters:
awsCredentials- The AWS credentials (access key ID and secret key) to use when authenticating with AWS services.clientConfiguration- Client configuration options (ex: max retry limit, proxy settings, etc).executorService- The executor service by which all asynchronous requests will be executed.
-
AmazonAutoScalingAsyncClient
Constructs a new asynchronous client to invoke service methods on Auto Scaling using the specified AWS account credentials provider. Default client settings will be used.Asynchronous methods are delegated to a fixed-size thread pool containing 50 threads (to match the default maximum number of concurrent connections to the service).
- Parameters:
awsCredentialsProvider- The AWS credentials provider which will provide credentials to authenticate requests with AWS services.- See Also:
-
AmazonAutoScalingAsyncClient
public AmazonAutoScalingAsyncClient(AWSCredentialsProvider awsCredentialsProvider, ClientConfiguration clientConfiguration) Constructs a new asynchronous client to invoke service methods on Auto Scaling using the provided AWS account credentials provider and client configuration options.Asynchronous methods are delegated to a fixed-size thread pool containing a number of threads equal to the maximum number of concurrent connections configured via
ClientConfiguration.getMaxConnections().- Parameters:
awsCredentialsProvider- The AWS credentials provider which will provide credentials to authenticate requests with AWS services.clientConfiguration- Client configuration options (ex: max retry limit, proxy settings, etc).- See Also:
-
AmazonAutoScalingAsyncClient
public AmazonAutoScalingAsyncClient(AWSCredentialsProvider awsCredentialsProvider, ExecutorService executorService) Constructs a new asynchronous client to invoke service methods on Auto Scaling using the specified AWS account credentials provider and executor service. Default client settings will be used.- Parameters:
awsCredentialsProvider- The AWS credentials provider which will provide credentials to authenticate requests with AWS services.executorService- The executor service by which all asynchronous requests will be executed.
-
AmazonAutoScalingAsyncClient
public AmazonAutoScalingAsyncClient(AWSCredentialsProvider awsCredentialsProvider, ClientConfiguration clientConfiguration, ExecutorService executorService) Constructs a new asynchronous client to invoke service methods on Auto Scaling using the specified AWS account credentials provider, executor service, and client configuration options.- Parameters:
awsCredentialsProvider- The AWS credentials provider which will provide credentials to authenticate requests with AWS services.clientConfiguration- Client configuration options (ex: max retry limit, proxy settings, etc).executorService- The executor service by which all asynchronous requests will be executed.
-
-
Method Details
-
getExecutorService
Returns the executor service used by this client to execute async requests.- Returns:
- The executor service used by this client to execute async requests.
-
attachInstancesAsync
Description copied from interface:AmazonAutoScalingAsyncAttaches one or more EC2 instances to the specified Auto Scaling group.
When you attach instances, Auto Scaling increases the desired capacity of the group by the number of instances being attached. If the number of instances being attached plus the desired capacity of the group exceeds the maximum size of the group, the operation fails.
For more information, see Attach EC2 Instances to Your Auto Scaling Group in the Auto Scaling Developer Guide.
- Specified by:
attachInstancesAsyncin interfaceAmazonAutoScalingAsync- Parameters:
request-- Returns:
- A Java Future containing the result of the AttachInstances operation returned by the service.
-
attachInstancesAsync
public Future<AttachInstancesResult> attachInstancesAsync(AttachInstancesRequest request, AsyncHandler<AttachInstancesRequest, AttachInstancesResult> asyncHandler) Description copied from interface:AmazonAutoScalingAsyncAttaches one or more EC2 instances to the specified Auto Scaling group.
When you attach instances, Auto Scaling increases the desired capacity of the group by the number of instances being attached. If the number of instances being attached plus the desired capacity of the group exceeds the maximum size of the group, the operation fails.
For more information, see Attach EC2 Instances to Your Auto Scaling Group in the Auto Scaling Developer Guide.
- Specified by:
attachInstancesAsyncin interfaceAmazonAutoScalingAsync- Parameters:
request-asyncHandler- Asynchronous callback handler for events in the lifecycle of the request. Users can provide an implementation of the callback methods in this interface to receive notification of successful or unsuccessful completion of the operation.- Returns:
- A Java Future containing the result of the AttachInstances operation returned by the service.
-
attachLoadBalancersAsync
public Future<AttachLoadBalancersResult> attachLoadBalancersAsync(AttachLoadBalancersRequest request) Description copied from interface:AmazonAutoScalingAsyncAttaches one or more load balancers to the specified Auto Scaling group.
To describe the load balancers for an Auto Scaling group, use DescribeLoadBalancers. To detach the load balancer from the Auto Scaling group, use DetachLoadBalancers.
For more information, see Attach a Load Balancer to Your Auto Scaling Group in the Auto Scaling Developer Guide.
- Specified by:
attachLoadBalancersAsyncin interfaceAmazonAutoScalingAsync- Parameters:
request-- Returns:
- A Java Future containing the result of the AttachLoadBalancers operation returned by the service.
-
attachLoadBalancersAsync
public Future<AttachLoadBalancersResult> attachLoadBalancersAsync(AttachLoadBalancersRequest request, AsyncHandler<AttachLoadBalancersRequest, AttachLoadBalancersResult> asyncHandler) Description copied from interface:AmazonAutoScalingAsyncAttaches one or more load balancers to the specified Auto Scaling group.
To describe the load balancers for an Auto Scaling group, use DescribeLoadBalancers. To detach the load balancer from the Auto Scaling group, use DetachLoadBalancers.
For more information, see Attach a Load Balancer to Your Auto Scaling Group in the Auto Scaling Developer Guide.
- Specified by:
attachLoadBalancersAsyncin interfaceAmazonAutoScalingAsync- Parameters:
request-asyncHandler- Asynchronous callback handler for events in the lifecycle of the request. Users can provide an implementation of the callback methods in this interface to receive notification of successful or unsuccessful completion of the operation.- Returns:
- A Java Future containing the result of the AttachLoadBalancers operation returned by the service.
-
attachLoadBalancersAsync
Simplified method form for invoking the AttachLoadBalancers operation.- Specified by:
attachLoadBalancersAsyncin interfaceAmazonAutoScalingAsync- See Also:
-
attachLoadBalancersAsync
public Future<AttachLoadBalancersResult> attachLoadBalancersAsync(AsyncHandler<AttachLoadBalancersRequest, AttachLoadBalancersResult> asyncHandler) Simplified method form for invoking the AttachLoadBalancers operation with an AsyncHandler.- Specified by:
attachLoadBalancersAsyncin interfaceAmazonAutoScalingAsync- See Also:
-
completeLifecycleActionAsync
public Future<CompleteLifecycleActionResult> completeLifecycleActionAsync(CompleteLifecycleActionRequest request) Description copied from interface:AmazonAutoScalingAsyncCompletes 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:
- (Optional) Create a Lambda function and a rule that allows CloudWatch Events to invoke your Lambda function when Auto Scaling launches or terminates instances.
- (Optional) Create a notification target and an IAM role. The target can be either an Amazon SQS queue or an Amazon SNS topic. The role allows Auto Scaling to publish lifecycle notifications to the target.
- Create the lifecycle hook. Specify whether the hook is used when the instances launch or terminate.
- If you need more time, record the lifecycle action heartbeat to keep the instance in a pending state.
- If you finish before the timeout period ends, complete the lifecycle action.
For more information, see Auto Scaling Lifecycle in the Auto Scaling Developer Guide.
- Specified by:
completeLifecycleActionAsyncin interfaceAmazonAutoScalingAsync- Parameters:
request-- Returns:
- A Java Future containing the result of the CompleteLifecycleAction operation returned by the service.
-
completeLifecycleActionAsync
public Future<CompleteLifecycleActionResult> completeLifecycleActionAsync(CompleteLifecycleActionRequest request, AsyncHandler<CompleteLifecycleActionRequest, CompleteLifecycleActionResult> asyncHandler) Description copied from interface:AmazonAutoScalingAsyncCompletes 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:
- (Optional) Create a Lambda function and a rule that allows CloudWatch Events to invoke your Lambda function when Auto Scaling launches or terminates instances.
- (Optional) Create a notification target and an IAM role. The target can be either an Amazon SQS queue or an Amazon SNS topic. The role allows Auto Scaling to publish lifecycle notifications to the target.
- Create the lifecycle hook. Specify whether the hook is used when the instances launch or terminate.
- If you need more time, record the lifecycle action heartbeat to keep the instance in a pending state.
- If you finish before the timeout period ends, complete the lifecycle action.
For more information, see Auto Scaling Lifecycle in the Auto Scaling Developer Guide.
- Specified by:
completeLifecycleActionAsyncin interfaceAmazonAutoScalingAsync- Parameters:
request-asyncHandler- Asynchronous callback handler for events in the lifecycle of the request. Users can provide an implementation of the callback methods in this interface to receive notification of successful or unsuccessful completion of the operation.- Returns:
- A Java Future containing the result of the CompleteLifecycleAction operation returned by the service.
-
createAutoScalingGroupAsync
public Future<CreateAutoScalingGroupResult> createAutoScalingGroupAsync(CreateAutoScalingGroupRequest request) Description copied from interface:AmazonAutoScalingAsyncCreates an Auto Scaling group with the specified name and attributes.
If you exceed your maximum limit of Auto Scaling groups, which by default is 20 per region, the call fails. For information about viewing and updating this limit, see DescribeAccountLimits.
For more information, see Auto Scaling Groups in the Auto Scaling Developer Guide.
- Specified by:
createAutoScalingGroupAsyncin interfaceAmazonAutoScalingAsync- Parameters:
request-- Returns:
- A Java Future containing the result of the CreateAutoScalingGroup operation returned by the service.
-
createAutoScalingGroupAsync
public Future<CreateAutoScalingGroupResult> createAutoScalingGroupAsync(CreateAutoScalingGroupRequest request, AsyncHandler<CreateAutoScalingGroupRequest, CreateAutoScalingGroupResult> asyncHandler) Description copied from interface:AmazonAutoScalingAsyncCreates an Auto Scaling group with the specified name and attributes.
If you exceed your maximum limit of Auto Scaling groups, which by default is 20 per region, the call fails. For information about viewing and updating this limit, see DescribeAccountLimits.
For more information, see Auto Scaling Groups in the Auto Scaling Developer Guide.
- Specified by:
createAutoScalingGroupAsyncin interfaceAmazonAutoScalingAsync- Parameters:
request-asyncHandler- Asynchronous callback handler for events in the lifecycle of the request. Users can provide an implementation of the callback methods in this interface to receive notification of successful or unsuccessful completion of the operation.- Returns:
- A Java Future containing the result of the CreateAutoScalingGroup operation returned by the service.
-
createLaunchConfigurationAsync
public Future<CreateLaunchConfigurationResult> createLaunchConfigurationAsync(CreateLaunchConfigurationRequest request) Description copied from interface:AmazonAutoScalingAsyncCreates a launch configuration.
If you exceed your maximum limit of launch configurations, which by default is 100 per region, the call fails. For information about viewing and updating this limit, see DescribeAccountLimits.
For more information, see Launch Configurations in the Auto Scaling Developer Guide.
- Specified by:
createLaunchConfigurationAsyncin interfaceAmazonAutoScalingAsync- Parameters:
request-- Returns:
- A Java Future containing the result of the CreateLaunchConfiguration operation returned by the service.
-
createLaunchConfigurationAsync
public Future<CreateLaunchConfigurationResult> createLaunchConfigurationAsync(CreateLaunchConfigurationRequest request, AsyncHandler<CreateLaunchConfigurationRequest, CreateLaunchConfigurationResult> asyncHandler) Description copied from interface:AmazonAutoScalingAsyncCreates a launch configuration.
If you exceed your maximum limit of launch configurations, which by default is 100 per region, the call fails. For information about viewing and updating this limit, see DescribeAccountLimits.
For more information, see Launch Configurations in the Auto Scaling Developer Guide.
- Specified by:
createLaunchConfigurationAsyncin interfaceAmazonAutoScalingAsync- Parameters:
request-asyncHandler- Asynchronous callback handler for events in the lifecycle of the request. Users can provide an implementation of the callback methods in this interface to receive notification of successful or unsuccessful completion of the operation.- Returns:
- A Java Future containing the result of the CreateLaunchConfiguration operation returned by the service.
-
createOrUpdateTagsAsync
Description copied from interface:AmazonAutoScalingAsyncCreates 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 Tagging Auto Scaling Groups and Instances in the Auto Scaling Developer Guide.
- Specified by:
createOrUpdateTagsAsyncin interfaceAmazonAutoScalingAsync- Parameters:
request-- Returns:
- A Java Future containing the result of the CreateOrUpdateTags operation returned by the service.
-
createOrUpdateTagsAsync
public Future<CreateOrUpdateTagsResult> createOrUpdateTagsAsync(CreateOrUpdateTagsRequest request, AsyncHandler<CreateOrUpdateTagsRequest, CreateOrUpdateTagsResult> asyncHandler) Description copied from interface:AmazonAutoScalingAsyncCreates 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 Tagging Auto Scaling Groups and Instances in the Auto Scaling Developer Guide.
- Specified by:
createOrUpdateTagsAsyncin interfaceAmazonAutoScalingAsync- Parameters:
request-asyncHandler- Asynchronous callback handler for events in the lifecycle of the request. Users can provide an implementation of the callback methods in this interface to receive notification of successful or unsuccessful completion of the operation.- Returns:
- A Java Future containing the result of the CreateOrUpdateTags operation returned by the service.
-
deleteAutoScalingGroupAsync
public Future<DeleteAutoScalingGroupResult> deleteAutoScalingGroupAsync(DeleteAutoScalingGroupRequest request) Description copied from interface:AmazonAutoScalingAsyncDeletes 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.
If the group has policies, deleting the group deletes the policies, the underlying alarm actions, and any alarm that no longer has an associated action.
To remove instances from the Auto Scaling group before deleting it, call DetachInstances with the list of instances and the option to decrement the desired capacity so that Auto Scaling does not launch replacement instances.
To terminate all instances before deleting the Auto Scaling group, call UpdateAutoScalingGroup and set the minimum size and desired capacity of the Auto Scaling group to zero.
- Specified by:
deleteAutoScalingGroupAsyncin interfaceAmazonAutoScalingAsync- Parameters:
request-- Returns:
- A Java Future containing the result of the DeleteAutoScalingGroup operation returned by the service.
-
deleteAutoScalingGroupAsync
public Future<DeleteAutoScalingGroupResult> deleteAutoScalingGroupAsync(DeleteAutoScalingGroupRequest request, AsyncHandler<DeleteAutoScalingGroupRequest, DeleteAutoScalingGroupResult> asyncHandler) Description copied from interface:AmazonAutoScalingAsyncDeletes 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.
If the group has policies, deleting the group deletes the policies, the underlying alarm actions, and any alarm that no longer has an associated action.
To remove instances from the Auto Scaling group before deleting it, call DetachInstances with the list of instances and the option to decrement the desired capacity so that Auto Scaling does not launch replacement instances.
To terminate all instances before deleting the Auto Scaling group, call UpdateAutoScalingGroup and set the minimum size and desired capacity of the Auto Scaling group to zero.
- Specified by:
deleteAutoScalingGroupAsyncin interfaceAmazonAutoScalingAsync- Parameters:
request-asyncHandler- Asynchronous callback handler for events in the lifecycle of the request. Users can provide an implementation of the callback methods in this interface to receive notification of successful or unsuccessful completion of the operation.- Returns:
- A Java Future containing the result of the DeleteAutoScalingGroup operation returned by the service.
-
deleteLaunchConfigurationAsync
public Future<DeleteLaunchConfigurationResult> deleteLaunchConfigurationAsync(DeleteLaunchConfigurationRequest request) Description copied from interface:AmazonAutoScalingAsyncDeletes 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.
- Specified by:
deleteLaunchConfigurationAsyncin interfaceAmazonAutoScalingAsync- Parameters:
request-- Returns:
- A Java Future containing the result of the DeleteLaunchConfiguration operation returned by the service.
-
deleteLaunchConfigurationAsync
public Future<DeleteLaunchConfigurationResult> deleteLaunchConfigurationAsync(DeleteLaunchConfigurationRequest request, AsyncHandler<DeleteLaunchConfigurationRequest, DeleteLaunchConfigurationResult> asyncHandler) Description copied from interface:AmazonAutoScalingAsyncDeletes 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.
- Specified by:
deleteLaunchConfigurationAsyncin interfaceAmazonAutoScalingAsync- Parameters:
request-asyncHandler- Asynchronous callback handler for events in the lifecycle of the request. Users can provide an implementation of the callback methods in this interface to receive notification of successful or unsuccessful completion of the operation.- Returns:
- A Java Future containing the result of the DeleteLaunchConfiguration operation returned by the service.
-
deleteLifecycleHookAsync
public Future<DeleteLifecycleHookResult> deleteLifecycleHookAsync(DeleteLifecycleHookRequest request) Description copied from interface:AmazonAutoScalingAsyncDeletes the specified lifecycle hook.
If there are any outstanding lifecycle actions, they are completed first (
ABANDONfor launching instances,CONTINUEfor terminating instances).- Specified by:
deleteLifecycleHookAsyncin interfaceAmazonAutoScalingAsync- Parameters:
request-- Returns:
- A Java Future containing the result of the DeleteLifecycleHook operation returned by the service.
-
deleteLifecycleHookAsync
public Future<DeleteLifecycleHookResult> deleteLifecycleHookAsync(DeleteLifecycleHookRequest request, AsyncHandler<DeleteLifecycleHookRequest, DeleteLifecycleHookResult> asyncHandler) Description copied from interface:AmazonAutoScalingAsyncDeletes the specified lifecycle hook.
If there are any outstanding lifecycle actions, they are completed first (
ABANDONfor launching instances,CONTINUEfor terminating instances).- Specified by:
deleteLifecycleHookAsyncin interfaceAmazonAutoScalingAsync- Parameters:
request-asyncHandler- Asynchronous callback handler for events in the lifecycle of the request. Users can provide an implementation of the callback methods in this interface to receive notification of successful or unsuccessful completion of the operation.- Returns:
- A Java Future containing the result of the DeleteLifecycleHook operation returned by the service.
-
deleteNotificationConfigurationAsync
public Future<DeleteNotificationConfigurationResult> deleteNotificationConfigurationAsync(DeleteNotificationConfigurationRequest request) Description copied from interface:AmazonAutoScalingAsyncDeletes the specified notification.
- Specified by:
deleteNotificationConfigurationAsyncin interfaceAmazonAutoScalingAsync- Parameters:
request-- Returns:
- A Java Future containing the result of the DeleteNotificationConfiguration operation returned by the service.
-
deleteNotificationConfigurationAsync
public Future<DeleteNotificationConfigurationResult> deleteNotificationConfigurationAsync(DeleteNotificationConfigurationRequest request, AsyncHandler<DeleteNotificationConfigurationRequest, DeleteNotificationConfigurationResult> asyncHandler) Description copied from interface:AmazonAutoScalingAsyncDeletes the specified notification.
- Specified by:
deleteNotificationConfigurationAsyncin interfaceAmazonAutoScalingAsync- Parameters:
request-asyncHandler- Asynchronous callback handler for events in the lifecycle of the request. Users can provide an implementation of the callback methods in this interface to receive notification of successful or unsuccessful completion of the operation.- Returns:
- A Java Future containing the result of the DeleteNotificationConfiguration operation returned by the service.
-
deletePolicyAsync
Description copied from interface:AmazonAutoScalingAsyncDeletes the specified Auto Scaling policy.
Deleting a policy deletes the underlying alarm action, but does not delete the alarm, even if it no longer has an associated action.
- Specified by:
deletePolicyAsyncin interfaceAmazonAutoScalingAsync- Parameters:
request-- Returns:
- A Java Future containing the result of the DeletePolicy operation returned by the service.
-
deletePolicyAsync
public Future<DeletePolicyResult> deletePolicyAsync(DeletePolicyRequest request, AsyncHandler<DeletePolicyRequest, DeletePolicyResult> asyncHandler) Description copied from interface:AmazonAutoScalingAsyncDeletes the specified Auto Scaling policy.
Deleting a policy deletes the underlying alarm action, but does not delete the alarm, even if it no longer has an associated action.
- Specified by:
deletePolicyAsyncin interfaceAmazonAutoScalingAsync- Parameters:
request-asyncHandler- Asynchronous callback handler for events in the lifecycle of the request. Users can provide an implementation of the callback methods in this interface to receive notification of successful or unsuccessful completion of the operation.- Returns:
- A Java Future containing the result of the DeletePolicy operation returned by the service.
-
deleteScheduledActionAsync
public Future<DeleteScheduledActionResult> deleteScheduledActionAsync(DeleteScheduledActionRequest request) Description copied from interface:AmazonAutoScalingAsyncDeletes the specified scheduled action.
- Specified by:
deleteScheduledActionAsyncin interfaceAmazonAutoScalingAsync- Parameters:
request-- Returns:
- A Java Future containing the result of the DeleteScheduledAction operation returned by the service.
-
deleteScheduledActionAsync
public Future<DeleteScheduledActionResult> deleteScheduledActionAsync(DeleteScheduledActionRequest request, AsyncHandler<DeleteScheduledActionRequest, DeleteScheduledActionResult> asyncHandler) Description copied from interface:AmazonAutoScalingAsyncDeletes the specified scheduled action.
- Specified by:
deleteScheduledActionAsyncin interfaceAmazonAutoScalingAsync- Parameters:
request-asyncHandler- Asynchronous callback handler for events in the lifecycle of the request. Users can provide an implementation of the callback methods in this interface to receive notification of successful or unsuccessful completion of the operation.- Returns:
- A Java Future containing the result of the DeleteScheduledAction operation returned by the service.
-
deleteTagsAsync
Description copied from interface:AmazonAutoScalingAsyncDeletes the specified tags.
- Specified by:
deleteTagsAsyncin interfaceAmazonAutoScalingAsync- Parameters:
request-- Returns:
- A Java Future containing the result of the DeleteTags operation returned by the service.
-
deleteTagsAsync
public Future<DeleteTagsResult> deleteTagsAsync(DeleteTagsRequest request, AsyncHandler<DeleteTagsRequest, DeleteTagsResult> asyncHandler) Description copied from interface:AmazonAutoScalingAsyncDeletes the specified tags.
- Specified by:
deleteTagsAsyncin interfaceAmazonAutoScalingAsync- Parameters:
request-asyncHandler- Asynchronous callback handler for events in the lifecycle of the request. Users can provide an implementation of the callback methods in this interface to receive notification of successful or unsuccessful completion of the operation.- Returns:
- A Java Future containing the result of the DeleteTags operation returned by the service.
-
describeAccountLimitsAsync
public Future<DescribeAccountLimitsResult> describeAccountLimitsAsync(DescribeAccountLimitsRequest request) Description copied from interface:AmazonAutoScalingAsyncDescribes the current Auto Scaling resource limits for your AWS account.
For information about requesting an increase in these limits, see AWS Service Limits in the Amazon Web Services General Reference.
- Specified by:
describeAccountLimitsAsyncin interfaceAmazonAutoScalingAsync- Parameters:
request-- Returns:
- A Java Future containing the result of the DescribeAccountLimits operation returned by the service.
-
describeAccountLimitsAsync
public Future<DescribeAccountLimitsResult> describeAccountLimitsAsync(DescribeAccountLimitsRequest request, AsyncHandler<DescribeAccountLimitsRequest, DescribeAccountLimitsResult> asyncHandler) Description copied from interface:AmazonAutoScalingAsyncDescribes the current Auto Scaling resource limits for your AWS account.
For information about requesting an increase in these limits, see AWS Service Limits in the Amazon Web Services General Reference.
- Specified by:
describeAccountLimitsAsyncin interfaceAmazonAutoScalingAsync- Parameters:
request-asyncHandler- Asynchronous callback handler for events in the lifecycle of the request. Users can provide an implementation of the callback methods in this interface to receive notification of successful or unsuccessful completion of the operation.- Returns:
- A Java Future containing the result of the DescribeAccountLimits operation returned by the service.
-
describeAccountLimitsAsync
Simplified method form for invoking the DescribeAccountLimits operation.- Specified by:
describeAccountLimitsAsyncin interfaceAmazonAutoScalingAsync- See Also:
-
describeAccountLimitsAsync
public Future<DescribeAccountLimitsResult> describeAccountLimitsAsync(AsyncHandler<DescribeAccountLimitsRequest, DescribeAccountLimitsResult> asyncHandler) Simplified method form for invoking the DescribeAccountLimits operation with an AsyncHandler.- Specified by:
describeAccountLimitsAsyncin interfaceAmazonAutoScalingAsync- See Also:
-
describeAdjustmentTypesAsync
public Future<DescribeAdjustmentTypesResult> describeAdjustmentTypesAsync(DescribeAdjustmentTypesRequest request) Description copied from interface:AmazonAutoScalingAsyncDescribes the policy adjustment types for use with PutScalingPolicy.
- Specified by:
describeAdjustmentTypesAsyncin interfaceAmazonAutoScalingAsync- Parameters:
request-- Returns:
- A Java Future containing the result of the DescribeAdjustmentTypes operation returned by the service.
-
describeAdjustmentTypesAsync
public Future<DescribeAdjustmentTypesResult> describeAdjustmentTypesAsync(DescribeAdjustmentTypesRequest request, AsyncHandler<DescribeAdjustmentTypesRequest, DescribeAdjustmentTypesResult> asyncHandler) Description copied from interface:AmazonAutoScalingAsyncDescribes the policy adjustment types for use with PutScalingPolicy.
- Specified by:
describeAdjustmentTypesAsyncin interfaceAmazonAutoScalingAsync- Parameters:
request-asyncHandler- Asynchronous callback handler for events in the lifecycle of the request. Users can provide an implementation of the callback methods in this interface to receive notification of successful or unsuccessful completion of the operation.- Returns:
- A Java Future containing the result of the DescribeAdjustmentTypes operation returned by the service.
-
describeAdjustmentTypesAsync
Simplified method form for invoking the DescribeAdjustmentTypes operation.- Specified by:
describeAdjustmentTypesAsyncin interfaceAmazonAutoScalingAsync- See Also:
-
describeAdjustmentTypesAsync
public Future<DescribeAdjustmentTypesResult> describeAdjustmentTypesAsync(AsyncHandler<DescribeAdjustmentTypesRequest, DescribeAdjustmentTypesResult> asyncHandler) Simplified method form for invoking the DescribeAdjustmentTypes operation with an AsyncHandler.- Specified by:
describeAdjustmentTypesAsyncin interfaceAmazonAutoScalingAsync- See Also:
-
describeAutoScalingGroupsAsync
public Future<DescribeAutoScalingGroupsResult> describeAutoScalingGroupsAsync(DescribeAutoScalingGroupsRequest request) Description copied from interface:AmazonAutoScalingAsyncDescribes one or more Auto Scaling groups. If a list of names is not provided, the call describes all Auto Scaling groups.
- Specified by:
describeAutoScalingGroupsAsyncin interfaceAmazonAutoScalingAsync- Parameters:
request-- Returns:
- A Java Future containing the result of the DescribeAutoScalingGroups operation returned by the service.
-
describeAutoScalingGroupsAsync
public Future<DescribeAutoScalingGroupsResult> describeAutoScalingGroupsAsync(DescribeAutoScalingGroupsRequest request, AsyncHandler<DescribeAutoScalingGroupsRequest, DescribeAutoScalingGroupsResult> asyncHandler) Description copied from interface:AmazonAutoScalingAsyncDescribes one or more Auto Scaling groups. If a list of names is not provided, the call describes all Auto Scaling groups.
- Specified by:
describeAutoScalingGroupsAsyncin interfaceAmazonAutoScalingAsync- Parameters:
request-asyncHandler- Asynchronous callback handler for events in the lifecycle of the request. Users can provide an implementation of the callback methods in this interface to receive notification of successful or unsuccessful completion of the operation.- Returns:
- A Java Future containing the result of the DescribeAutoScalingGroups operation returned by the service.
-
describeAutoScalingGroupsAsync
Simplified method form for invoking the DescribeAutoScalingGroups operation.- Specified by:
describeAutoScalingGroupsAsyncin interfaceAmazonAutoScalingAsync- See Also:
-
describeAutoScalingGroupsAsync
public Future<DescribeAutoScalingGroupsResult> describeAutoScalingGroupsAsync(AsyncHandler<DescribeAutoScalingGroupsRequest, DescribeAutoScalingGroupsResult> asyncHandler) Simplified method form for invoking the DescribeAutoScalingGroups operation with an AsyncHandler.- Specified by:
describeAutoScalingGroupsAsyncin interfaceAmazonAutoScalingAsync- See Also:
-
describeAutoScalingInstancesAsync
public Future<DescribeAutoScalingInstancesResult> describeAutoScalingInstancesAsync(DescribeAutoScalingInstancesRequest request) Description copied from interface:AmazonAutoScalingAsyncDescribes one or more Auto Scaling instances. If a list is not provided, the call describes all instances.
- Specified by:
describeAutoScalingInstancesAsyncin interfaceAmazonAutoScalingAsync- Parameters:
request-- Returns:
- A Java Future containing the result of the DescribeAutoScalingInstances operation returned by the service.
-
describeAutoScalingInstancesAsync
public Future<DescribeAutoScalingInstancesResult> describeAutoScalingInstancesAsync(DescribeAutoScalingInstancesRequest request, AsyncHandler<DescribeAutoScalingInstancesRequest, DescribeAutoScalingInstancesResult> asyncHandler) Description copied from interface:AmazonAutoScalingAsyncDescribes one or more Auto Scaling instances. If a list is not provided, the call describes all instances.
- Specified by:
describeAutoScalingInstancesAsyncin interfaceAmazonAutoScalingAsync- Parameters:
request-asyncHandler- Asynchronous callback handler for events in the lifecycle of the request. Users can provide an implementation of the callback methods in this interface to receive notification of successful or unsuccessful completion of the operation.- Returns:
- A Java Future containing the result of the DescribeAutoScalingInstances operation returned by the service.
-
describeAutoScalingInstancesAsync
Simplified method form for invoking the DescribeAutoScalingInstances operation.- Specified by:
describeAutoScalingInstancesAsyncin interfaceAmazonAutoScalingAsync- See Also:
-
describeAutoScalingInstancesAsync
public Future<DescribeAutoScalingInstancesResult> describeAutoScalingInstancesAsync(AsyncHandler<DescribeAutoScalingInstancesRequest, DescribeAutoScalingInstancesResult> asyncHandler) Simplified method form for invoking the DescribeAutoScalingInstances operation with an AsyncHandler.- Specified by:
describeAutoScalingInstancesAsyncin interfaceAmazonAutoScalingAsync- See Also:
-
describeAutoScalingNotificationTypesAsync
public Future<DescribeAutoScalingNotificationTypesResult> describeAutoScalingNotificationTypesAsync(DescribeAutoScalingNotificationTypesRequest request) Description copied from interface:AmazonAutoScalingAsyncDescribes the notification types that are supported by Auto Scaling.
- Specified by:
describeAutoScalingNotificationTypesAsyncin interfaceAmazonAutoScalingAsync- Parameters:
request-- Returns:
- A Java Future containing the result of the DescribeAutoScalingNotificationTypes operation returned by the service.
-
describeAutoScalingNotificationTypesAsync
public Future<DescribeAutoScalingNotificationTypesResult> describeAutoScalingNotificationTypesAsync(DescribeAutoScalingNotificationTypesRequest request, AsyncHandler<DescribeAutoScalingNotificationTypesRequest, DescribeAutoScalingNotificationTypesResult> asyncHandler) Description copied from interface:AmazonAutoScalingAsyncDescribes the notification types that are supported by Auto Scaling.
- Specified by:
describeAutoScalingNotificationTypesAsyncin interfaceAmazonAutoScalingAsync- Parameters:
request-asyncHandler- Asynchronous callback handler for events in the lifecycle of the request. Users can provide an implementation of the callback methods in this interface to receive notification of successful or unsuccessful completion of the operation.- Returns:
- A Java Future containing the result of the DescribeAutoScalingNotificationTypes operation returned by the service.
-
describeAutoScalingNotificationTypesAsync
public Future<DescribeAutoScalingNotificationTypesResult> describeAutoScalingNotificationTypesAsync()Simplified method form for invoking the DescribeAutoScalingNotificationTypes operation.- Specified by:
describeAutoScalingNotificationTypesAsyncin interfaceAmazonAutoScalingAsync- See Also:
-
describeAutoScalingNotificationTypesAsync
public Future<DescribeAutoScalingNotificationTypesResult> describeAutoScalingNotificationTypesAsync(AsyncHandler<DescribeAutoScalingNotificationTypesRequest, DescribeAutoScalingNotificationTypesResult> asyncHandler) Simplified method form for invoking the DescribeAutoScalingNotificationTypes operation with an AsyncHandler.- Specified by:
describeAutoScalingNotificationTypesAsyncin interfaceAmazonAutoScalingAsync- See Also:
-
describeLaunchConfigurationsAsync
public Future<DescribeLaunchConfigurationsResult> describeLaunchConfigurationsAsync(DescribeLaunchConfigurationsRequest request) Description copied from interface:AmazonAutoScalingAsyncDescribes one or more launch configurations. If you omit the list of names, then the call describes all launch configurations.
- Specified by:
describeLaunchConfigurationsAsyncin interfaceAmazonAutoScalingAsync- Parameters:
request-- Returns:
- A Java Future containing the result of the DescribeLaunchConfigurations operation returned by the service.
-
describeLaunchConfigurationsAsync
public Future<DescribeLaunchConfigurationsResult> describeLaunchConfigurationsAsync(DescribeLaunchConfigurationsRequest request, AsyncHandler<DescribeLaunchConfigurationsRequest, DescribeLaunchConfigurationsResult> asyncHandler) Description copied from interface:AmazonAutoScalingAsyncDescribes one or more launch configurations. If you omit the list of names, then the call describes all launch configurations.
- Specified by:
describeLaunchConfigurationsAsyncin interfaceAmazonAutoScalingAsync- Parameters:
request-asyncHandler- Asynchronous callback handler for events in the lifecycle of the request. Users can provide an implementation of the callback methods in this interface to receive notification of successful or unsuccessful completion of the operation.- Returns:
- A Java Future containing the result of the DescribeLaunchConfigurations operation returned by the service.
-
describeLaunchConfigurationsAsync
Simplified method form for invoking the DescribeLaunchConfigurations operation.- Specified by:
describeLaunchConfigurationsAsyncin interfaceAmazonAutoScalingAsync- See Also:
-
describeLaunchConfigurationsAsync
public Future<DescribeLaunchConfigurationsResult> describeLaunchConfigurationsAsync(AsyncHandler<DescribeLaunchConfigurationsRequest, DescribeLaunchConfigurationsResult> asyncHandler) Simplified method form for invoking the DescribeLaunchConfigurations operation with an AsyncHandler.- Specified by:
describeLaunchConfigurationsAsyncin interfaceAmazonAutoScalingAsync- See Also:
-
describeLifecycleHookTypesAsync
public Future<DescribeLifecycleHookTypesResult> describeLifecycleHookTypesAsync(DescribeLifecycleHookTypesRequest request) Description copied from interface:AmazonAutoScalingAsyncDescribes the available types of lifecycle hooks.
- Specified by:
describeLifecycleHookTypesAsyncin interfaceAmazonAutoScalingAsync- Parameters:
request-- Returns:
- A Java Future containing the result of the DescribeLifecycleHookTypes operation returned by the service.
-
describeLifecycleHookTypesAsync
public Future<DescribeLifecycleHookTypesResult> describeLifecycleHookTypesAsync(DescribeLifecycleHookTypesRequest request, AsyncHandler<DescribeLifecycleHookTypesRequest, DescribeLifecycleHookTypesResult> asyncHandler) Description copied from interface:AmazonAutoScalingAsyncDescribes the available types of lifecycle hooks.
- Specified by:
describeLifecycleHookTypesAsyncin interfaceAmazonAutoScalingAsync- Parameters:
request-asyncHandler- Asynchronous callback handler for events in the lifecycle of the request. Users can provide an implementation of the callback methods in this interface to receive notification of successful or unsuccessful completion of the operation.- Returns:
- A Java Future containing the result of the DescribeLifecycleHookTypes operation returned by the service.
-
describeLifecycleHookTypesAsync
Simplified method form for invoking the DescribeLifecycleHookTypes operation.- Specified by:
describeLifecycleHookTypesAsyncin interfaceAmazonAutoScalingAsync- See Also:
-
describeLifecycleHookTypesAsync
public Future<DescribeLifecycleHookTypesResult> describeLifecycleHookTypesAsync(AsyncHandler<DescribeLifecycleHookTypesRequest, DescribeLifecycleHookTypesResult> asyncHandler) Simplified method form for invoking the DescribeLifecycleHookTypes operation with an AsyncHandler.- Specified by:
describeLifecycleHookTypesAsyncin interfaceAmazonAutoScalingAsync- See Also:
-
describeLifecycleHooksAsync
public Future<DescribeLifecycleHooksResult> describeLifecycleHooksAsync(DescribeLifecycleHooksRequest request) Description copied from interface:AmazonAutoScalingAsyncDescribes the lifecycle hooks for the specified Auto Scaling group.
- Specified by:
describeLifecycleHooksAsyncin interfaceAmazonAutoScalingAsync- Parameters:
request-- Returns:
- A Java Future containing the result of the DescribeLifecycleHooks operation returned by the service.
-
describeLifecycleHooksAsync
public Future<DescribeLifecycleHooksResult> describeLifecycleHooksAsync(DescribeLifecycleHooksRequest request, AsyncHandler<DescribeLifecycleHooksRequest, DescribeLifecycleHooksResult> asyncHandler) Description copied from interface:AmazonAutoScalingAsyncDescribes the lifecycle hooks for the specified Auto Scaling group.
- Specified by:
describeLifecycleHooksAsyncin interfaceAmazonAutoScalingAsync- Parameters:
request-asyncHandler- Asynchronous callback handler for events in the lifecycle of the request. Users can provide an implementation of the callback methods in this interface to receive notification of successful or unsuccessful completion of the operation.- Returns:
- A Java Future containing the result of the DescribeLifecycleHooks operation returned by the service.
-
describeLoadBalancersAsync
public Future<DescribeLoadBalancersResult> describeLoadBalancersAsync(DescribeLoadBalancersRequest request) Description copied from interface:AmazonAutoScalingAsyncDescribes the load balancers for the specified Auto Scaling group.
- Specified by:
describeLoadBalancersAsyncin interfaceAmazonAutoScalingAsync- Parameters:
request-- Returns:
- A Java Future containing the result of the DescribeLoadBalancers operation returned by the service.
-
describeLoadBalancersAsync
public Future<DescribeLoadBalancersResult> describeLoadBalancersAsync(DescribeLoadBalancersRequest request, AsyncHandler<DescribeLoadBalancersRequest, DescribeLoadBalancersResult> asyncHandler) Description copied from interface:AmazonAutoScalingAsyncDescribes the load balancers for the specified Auto Scaling group.
- Specified by:
describeLoadBalancersAsyncin interfaceAmazonAutoScalingAsync- Parameters:
request-asyncHandler- Asynchronous callback handler for events in the lifecycle of the request. Users can provide an implementation of the callback methods in this interface to receive notification of successful or unsuccessful completion of the operation.- Returns:
- A Java Future containing the result of the DescribeLoadBalancers operation returned by the service.
-
describeMetricCollectionTypesAsync
public Future<DescribeMetricCollectionTypesResult> describeMetricCollectionTypesAsync(DescribeMetricCollectionTypesRequest request) Description copied from interface:AmazonAutoScalingAsyncDescribes the available CloudWatch metrics for Auto Scaling.
Note that the
GroupStandbyInstancesmetric is not returned by default. You must explicitly request this metric when calling EnableMetricsCollection.- Specified by:
describeMetricCollectionTypesAsyncin interfaceAmazonAutoScalingAsync- Parameters:
request-- Returns:
- A Java Future containing the result of the DescribeMetricCollectionTypes operation returned by the service.
-
describeMetricCollectionTypesAsync
public Future<DescribeMetricCollectionTypesResult> describeMetricCollectionTypesAsync(DescribeMetricCollectionTypesRequest request, AsyncHandler<DescribeMetricCollectionTypesRequest, DescribeMetricCollectionTypesResult> asyncHandler) Description copied from interface:AmazonAutoScalingAsyncDescribes the available CloudWatch metrics for Auto Scaling.
Note that the
GroupStandbyInstancesmetric is not returned by default. You must explicitly request this metric when calling EnableMetricsCollection.- Specified by:
describeMetricCollectionTypesAsyncin interfaceAmazonAutoScalingAsync- Parameters:
request-asyncHandler- Asynchronous callback handler for events in the lifecycle of the request. Users can provide an implementation of the callback methods in this interface to receive notification of successful or unsuccessful completion of the operation.- Returns:
- A Java Future containing the result of the DescribeMetricCollectionTypes operation returned by the service.
-
describeMetricCollectionTypesAsync
Simplified method form for invoking the DescribeMetricCollectionTypes operation.- Specified by:
describeMetricCollectionTypesAsyncin interfaceAmazonAutoScalingAsync- See Also:
-
describeMetricCollectionTypesAsync
public Future<DescribeMetricCollectionTypesResult> describeMetricCollectionTypesAsync(AsyncHandler<DescribeMetricCollectionTypesRequest, DescribeMetricCollectionTypesResult> asyncHandler) Simplified method form for invoking the DescribeMetricCollectionTypes operation with an AsyncHandler.- Specified by:
describeMetricCollectionTypesAsyncin interfaceAmazonAutoScalingAsync- See Also:
-
describeNotificationConfigurationsAsync
public Future<DescribeNotificationConfigurationsResult> describeNotificationConfigurationsAsync(DescribeNotificationConfigurationsRequest request) Description copied from interface:AmazonAutoScalingAsyncDescribes the notification actions associated with the specified Auto Scaling group.
- Specified by:
describeNotificationConfigurationsAsyncin interfaceAmazonAutoScalingAsync- Parameters:
request-- Returns:
- A Java Future containing the result of the DescribeNotificationConfigurations operation returned by the service.
-
describeNotificationConfigurationsAsync
public Future<DescribeNotificationConfigurationsResult> describeNotificationConfigurationsAsync(DescribeNotificationConfigurationsRequest request, AsyncHandler<DescribeNotificationConfigurationsRequest, DescribeNotificationConfigurationsResult> asyncHandler) Description copied from interface:AmazonAutoScalingAsyncDescribes the notification actions associated with the specified Auto Scaling group.
- Specified by:
describeNotificationConfigurationsAsyncin interfaceAmazonAutoScalingAsync- Parameters:
request-asyncHandler- Asynchronous callback handler for events in the lifecycle of the request. Users can provide an implementation of the callback methods in this interface to receive notification of successful or unsuccessful completion of the operation.- Returns:
- A Java Future containing the result of the DescribeNotificationConfigurations operation returned by the service.
-
describeNotificationConfigurationsAsync
Simplified method form for invoking the DescribeNotificationConfigurations operation.- Specified by:
describeNotificationConfigurationsAsyncin interfaceAmazonAutoScalingAsync- See Also:
-
describeNotificationConfigurationsAsync
public Future<DescribeNotificationConfigurationsResult> describeNotificationConfigurationsAsync(AsyncHandler<DescribeNotificationConfigurationsRequest, DescribeNotificationConfigurationsResult> asyncHandler) Simplified method form for invoking the DescribeNotificationConfigurations operation with an AsyncHandler.- Specified by:
describeNotificationConfigurationsAsyncin interfaceAmazonAutoScalingAsync- See Also:
-
describePoliciesAsync
Description copied from interface:AmazonAutoScalingAsyncDescribes the policies for the specified Auto Scaling group.
- Specified by:
describePoliciesAsyncin interfaceAmazonAutoScalingAsync- Parameters:
request-- Returns:
- A Java Future containing the result of the DescribePolicies operation returned by the service.
-
describePoliciesAsync
public Future<DescribePoliciesResult> describePoliciesAsync(DescribePoliciesRequest request, AsyncHandler<DescribePoliciesRequest, DescribePoliciesResult> asyncHandler) Description copied from interface:AmazonAutoScalingAsyncDescribes the policies for the specified Auto Scaling group.
- Specified by:
describePoliciesAsyncin interfaceAmazonAutoScalingAsync- Parameters:
request-asyncHandler- Asynchronous callback handler for events in the lifecycle of the request. Users can provide an implementation of the callback methods in this interface to receive notification of successful or unsuccessful completion of the operation.- Returns:
- A Java Future containing the result of the DescribePolicies operation returned by the service.
-
describePoliciesAsync
Simplified method form for invoking the DescribePolicies operation.- Specified by:
describePoliciesAsyncin interfaceAmazonAutoScalingAsync- See Also:
-
describePoliciesAsync
public Future<DescribePoliciesResult> describePoliciesAsync(AsyncHandler<DescribePoliciesRequest, DescribePoliciesResult> asyncHandler) Simplified method form for invoking the DescribePolicies operation with an AsyncHandler.- Specified by:
describePoliciesAsyncin interfaceAmazonAutoScalingAsync- See Also:
-
describeScalingActivitiesAsync
public Future<DescribeScalingActivitiesResult> describeScalingActivitiesAsync(DescribeScalingActivitiesRequest request) Description copied from interface:AmazonAutoScalingAsyncDescribes one or more scaling activities for the specified Auto Scaling group. If you omit the
ActivityIds, the call returns all activities from the past six weeks. Activities are sorted by the start time. Activities still in progress appear first on the list.- Specified by:
describeScalingActivitiesAsyncin interfaceAmazonAutoScalingAsync- Parameters:
request-- Returns:
- A Java Future containing the result of the DescribeScalingActivities operation returned by the service.
-
describeScalingActivitiesAsync
public Future<DescribeScalingActivitiesResult> describeScalingActivitiesAsync(DescribeScalingActivitiesRequest request, AsyncHandler<DescribeScalingActivitiesRequest, DescribeScalingActivitiesResult> asyncHandler) Description copied from interface:AmazonAutoScalingAsyncDescribes one or more scaling activities for the specified Auto Scaling group. If you omit the
ActivityIds, the call returns all activities from the past six weeks. Activities are sorted by the start time. Activities still in progress appear first on the list.- Specified by:
describeScalingActivitiesAsyncin interfaceAmazonAutoScalingAsync- Parameters:
request-asyncHandler- Asynchronous callback handler for events in the lifecycle of the request. Users can provide an implementation of the callback methods in this interface to receive notification of successful or unsuccessful completion of the operation.- Returns:
- A Java Future containing the result of the DescribeScalingActivities operation returned by the service.
-
describeScalingActivitiesAsync
Simplified method form for invoking the DescribeScalingActivities operation.- Specified by:
describeScalingActivitiesAsyncin interfaceAmazonAutoScalingAsync- See Also:
-
describeScalingActivitiesAsync
public Future<DescribeScalingActivitiesResult> describeScalingActivitiesAsync(AsyncHandler<DescribeScalingActivitiesRequest, DescribeScalingActivitiesResult> asyncHandler) Simplified method form for invoking the DescribeScalingActivities operation with an AsyncHandler.- Specified by:
describeScalingActivitiesAsyncin interfaceAmazonAutoScalingAsync- See Also:
-
describeScalingProcessTypesAsync
public Future<DescribeScalingProcessTypesResult> describeScalingProcessTypesAsync(DescribeScalingProcessTypesRequest request) Description copied from interface:AmazonAutoScalingAsyncDescribes the scaling process types for use with ResumeProcesses and SuspendProcesses.
- Specified by:
describeScalingProcessTypesAsyncin interfaceAmazonAutoScalingAsync- Parameters:
request-- Returns:
- A Java Future containing the result of the DescribeScalingProcessTypes operation returned by the service.
-
describeScalingProcessTypesAsync
public Future<DescribeScalingProcessTypesResult> describeScalingProcessTypesAsync(DescribeScalingProcessTypesRequest request, AsyncHandler<DescribeScalingProcessTypesRequest, DescribeScalingProcessTypesResult> asyncHandler) Description copied from interface:AmazonAutoScalingAsyncDescribes the scaling process types for use with ResumeProcesses and SuspendProcesses.
- Specified by:
describeScalingProcessTypesAsyncin interfaceAmazonAutoScalingAsync- Parameters:
request-asyncHandler- Asynchronous callback handler for events in the lifecycle of the request. Users can provide an implementation of the callback methods in this interface to receive notification of successful or unsuccessful completion of the operation.- Returns:
- A Java Future containing the result of the DescribeScalingProcessTypes operation returned by the service.
-
describeScalingProcessTypesAsync
Simplified method form for invoking the DescribeScalingProcessTypes operation.- Specified by:
describeScalingProcessTypesAsyncin interfaceAmazonAutoScalingAsync- See Also:
-
describeScalingProcessTypesAsync
public Future<DescribeScalingProcessTypesResult> describeScalingProcessTypesAsync(AsyncHandler<DescribeScalingProcessTypesRequest, DescribeScalingProcessTypesResult> asyncHandler) Simplified method form for invoking the DescribeScalingProcessTypes operation with an AsyncHandler.- Specified by:
describeScalingProcessTypesAsyncin interfaceAmazonAutoScalingAsync- See Also:
-
describeScheduledActionsAsync
public Future<DescribeScheduledActionsResult> describeScheduledActionsAsync(DescribeScheduledActionsRequest request) Description copied from interface:AmazonAutoScalingAsyncDescribes the actions scheduled for your Auto Scaling group that haven't run. To describe the actions that have already run, use DescribeScalingActivities.
- Specified by:
describeScheduledActionsAsyncin interfaceAmazonAutoScalingAsync- Parameters:
request-- Returns:
- A Java Future containing the result of the DescribeScheduledActions operation returned by the service.
-
describeScheduledActionsAsync
public Future<DescribeScheduledActionsResult> describeScheduledActionsAsync(DescribeScheduledActionsRequest request, AsyncHandler<DescribeScheduledActionsRequest, DescribeScheduledActionsResult> asyncHandler) Description copied from interface:AmazonAutoScalingAsyncDescribes the actions scheduled for your Auto Scaling group that haven't run. To describe the actions that have already run, use DescribeScalingActivities.
- Specified by:
describeScheduledActionsAsyncin interfaceAmazonAutoScalingAsync- Parameters:
request-asyncHandler- Asynchronous callback handler for events in the lifecycle of the request. Users can provide an implementation of the callback methods in this interface to receive notification of successful or unsuccessful completion of the operation.- Returns:
- A Java Future containing the result of the DescribeScheduledActions operation returned by the service.
-
describeScheduledActionsAsync
Simplified method form for invoking the DescribeScheduledActions operation.- Specified by:
describeScheduledActionsAsyncin interfaceAmazonAutoScalingAsync- See Also:
-
describeScheduledActionsAsync
public Future<DescribeScheduledActionsResult> describeScheduledActionsAsync(AsyncHandler<DescribeScheduledActionsRequest, DescribeScheduledActionsResult> asyncHandler) Simplified method form for invoking the DescribeScheduledActions operation with an AsyncHandler.- Specified by:
describeScheduledActionsAsyncin interfaceAmazonAutoScalingAsync- See Also:
-
describeTagsAsync
Description copied from interface:AmazonAutoScalingAsyncDescribes 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.
- Specified by:
describeTagsAsyncin interfaceAmazonAutoScalingAsync- Parameters:
request-- Returns:
- A Java Future containing the result of the DescribeTags operation returned by the service.
-
describeTagsAsync
public Future<DescribeTagsResult> describeTagsAsync(DescribeTagsRequest request, AsyncHandler<DescribeTagsRequest, DescribeTagsResult> asyncHandler) Description copied from interface:AmazonAutoScalingAsyncDescribes 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.
- Specified by:
describeTagsAsyncin interfaceAmazonAutoScalingAsync- Parameters:
request-asyncHandler- Asynchronous callback handler for events in the lifecycle of the request. Users can provide an implementation of the callback methods in this interface to receive notification of successful or unsuccessful completion of the operation.- Returns:
- A Java Future containing the result of the DescribeTags operation returned by the service.
-
describeTagsAsync
Simplified method form for invoking the DescribeTags operation.- Specified by:
describeTagsAsyncin interfaceAmazonAutoScalingAsync- See Also:
-
describeTagsAsync
public Future<DescribeTagsResult> describeTagsAsync(AsyncHandler<DescribeTagsRequest, DescribeTagsResult> asyncHandler) Simplified method form for invoking the DescribeTags operation with an AsyncHandler.- Specified by:
describeTagsAsyncin interfaceAmazonAutoScalingAsync- See Also:
-
describeTerminationPolicyTypesAsync
public Future<DescribeTerminationPolicyTypesResult> describeTerminationPolicyTypesAsync(DescribeTerminationPolicyTypesRequest request) Description copied from interface:AmazonAutoScalingAsyncDescribes the termination policies supported by Auto Scaling.
- Specified by:
describeTerminationPolicyTypesAsyncin interfaceAmazonAutoScalingAsync- Parameters:
request-- Returns:
- A Java Future containing the result of the DescribeTerminationPolicyTypes operation returned by the service.
-
describeTerminationPolicyTypesAsync
public Future<DescribeTerminationPolicyTypesResult> describeTerminationPolicyTypesAsync(DescribeTerminationPolicyTypesRequest request, AsyncHandler<DescribeTerminationPolicyTypesRequest, DescribeTerminationPolicyTypesResult> asyncHandler) Description copied from interface:AmazonAutoScalingAsyncDescribes the termination policies supported by Auto Scaling.
- Specified by:
describeTerminationPolicyTypesAsyncin interfaceAmazonAutoScalingAsync- Parameters:
request-asyncHandler- Asynchronous callback handler for events in the lifecycle of the request. Users can provide an implementation of the callback methods in this interface to receive notification of successful or unsuccessful completion of the operation.- Returns:
- A Java Future containing the result of the DescribeTerminationPolicyTypes operation returned by the service.
-
describeTerminationPolicyTypesAsync
Simplified method form for invoking the DescribeTerminationPolicyTypes operation.- Specified by:
describeTerminationPolicyTypesAsyncin interfaceAmazonAutoScalingAsync- See Also:
-
describeTerminationPolicyTypesAsync
public Future<DescribeTerminationPolicyTypesResult> describeTerminationPolicyTypesAsync(AsyncHandler<DescribeTerminationPolicyTypesRequest, DescribeTerminationPolicyTypesResult> asyncHandler) Simplified method form for invoking the DescribeTerminationPolicyTypes operation with an AsyncHandler.- Specified by:
describeTerminationPolicyTypesAsyncin interfaceAmazonAutoScalingAsync- See Also:
-
detachInstancesAsync
Description copied from interface:AmazonAutoScalingAsyncRemoves one or more instances from the specified Auto Scaling group.
After the instances are detached, you can manage them independently from the rest of the Auto Scaling group.
If you do not specify the option to decrement the desired capacity, Auto Scaling launches instances to replace the ones that are detached.
For more information, see Detach EC2 Instances from Your Auto Scaling Group in the Auto Scaling Developer Guide.
- Specified by:
detachInstancesAsyncin interfaceAmazonAutoScalingAsync- Parameters:
request-- Returns:
- A Java Future containing the result of the DetachInstances operation returned by the service.
-
detachInstancesAsync
public Future<DetachInstancesResult> detachInstancesAsync(DetachInstancesRequest request, AsyncHandler<DetachInstancesRequest, DetachInstancesResult> asyncHandler) Description copied from interface:AmazonAutoScalingAsyncRemoves one or more instances from the specified Auto Scaling group.
After the instances are detached, you can manage them independently from the rest of the Auto Scaling group.
If you do not specify the option to decrement the desired capacity, Auto Scaling launches instances to replace the ones that are detached.
For more information, see Detach EC2 Instances from Your Auto Scaling Group in the Auto Scaling Developer Guide.
- Specified by:
detachInstancesAsyncin interfaceAmazonAutoScalingAsync- Parameters:
request-asyncHandler- Asynchronous callback handler for events in the lifecycle of the request. Users can provide an implementation of the callback methods in this interface to receive notification of successful or unsuccessful completion of the operation.- Returns:
- A Java Future containing the result of the DetachInstances operation returned by the service.
-
detachLoadBalancersAsync
public Future<DetachLoadBalancersResult> detachLoadBalancersAsync(DetachLoadBalancersRequest request) Description copied from interface:AmazonAutoScalingAsyncRemoves one or more load balancers from the specified Auto Scaling group.
When you detach a load balancer, it enters the
Removingstate while deregistering the instances in the group. When all instances are deregistered, then you can no longer describe the load balancer using DescribeLoadBalancers. Note that the instances remain running.- Specified by:
detachLoadBalancersAsyncin interfaceAmazonAutoScalingAsync- Parameters:
request-- Returns:
- A Java Future containing the result of the DetachLoadBalancers operation returned by the service.
-
detachLoadBalancersAsync
public Future<DetachLoadBalancersResult> detachLoadBalancersAsync(DetachLoadBalancersRequest request, AsyncHandler<DetachLoadBalancersRequest, DetachLoadBalancersResult> asyncHandler) Description copied from interface:AmazonAutoScalingAsyncRemoves one or more load balancers from the specified Auto Scaling group.
When you detach a load balancer, it enters the
Removingstate while deregistering the instances in the group. When all instances are deregistered, then you can no longer describe the load balancer using DescribeLoadBalancers. Note that the instances remain running.- Specified by:
detachLoadBalancersAsyncin interfaceAmazonAutoScalingAsync- Parameters:
request-asyncHandler- Asynchronous callback handler for events in the lifecycle of the request. Users can provide an implementation of the callback methods in this interface to receive notification of successful or unsuccessful completion of the operation.- Returns:
- A Java Future containing the result of the DetachLoadBalancers operation returned by the service.
-
detachLoadBalancersAsync
Simplified method form for invoking the DetachLoadBalancers operation.- Specified by:
detachLoadBalancersAsyncin interfaceAmazonAutoScalingAsync- See Also:
-
detachLoadBalancersAsync
public Future<DetachLoadBalancersResult> detachLoadBalancersAsync(AsyncHandler<DetachLoadBalancersRequest, DetachLoadBalancersResult> asyncHandler) Simplified method form for invoking the DetachLoadBalancers operation with an AsyncHandler.- Specified by:
detachLoadBalancersAsyncin interfaceAmazonAutoScalingAsync- See Also:
-
disableMetricsCollectionAsync
public Future<DisableMetricsCollectionResult> disableMetricsCollectionAsync(DisableMetricsCollectionRequest request) Description copied from interface:AmazonAutoScalingAsyncDisables monitoring of the specified metrics for the specified Auto Scaling group.
- Specified by:
disableMetricsCollectionAsyncin interfaceAmazonAutoScalingAsync- Parameters:
request-- Returns:
- A Java Future containing the result of the DisableMetricsCollection operation returned by the service.
-
disableMetricsCollectionAsync
public Future<DisableMetricsCollectionResult> disableMetricsCollectionAsync(DisableMetricsCollectionRequest request, AsyncHandler<DisableMetricsCollectionRequest, DisableMetricsCollectionResult> asyncHandler) Description copied from interface:AmazonAutoScalingAsyncDisables monitoring of the specified metrics for the specified Auto Scaling group.
- Specified by:
disableMetricsCollectionAsyncin interfaceAmazonAutoScalingAsync- Parameters:
request-asyncHandler- Asynchronous callback handler for events in the lifecycle of the request. Users can provide an implementation of the callback methods in this interface to receive notification of successful or unsuccessful completion of the operation.- Returns:
- A Java Future containing the result of the DisableMetricsCollection operation returned by the service.
-
enableMetricsCollectionAsync
public Future<EnableMetricsCollectionResult> enableMetricsCollectionAsync(EnableMetricsCollectionRequest request) Description copied from interface:AmazonAutoScalingAsyncEnables monitoring of the specified metrics for the specified Auto Scaling group.
You can only enable metrics collection if
InstanceMonitoringin the launch configuration for the group is set toTrue.- Specified by:
enableMetricsCollectionAsyncin interfaceAmazonAutoScalingAsync- Parameters:
request-- Returns:
- A Java Future containing the result of the EnableMetricsCollection operation returned by the service.
-
enableMetricsCollectionAsync
public Future<EnableMetricsCollectionResult> enableMetricsCollectionAsync(EnableMetricsCollectionRequest request, AsyncHandler<EnableMetricsCollectionRequest, EnableMetricsCollectionResult> asyncHandler) Description copied from interface:AmazonAutoScalingAsyncEnables monitoring of the specified metrics for the specified Auto Scaling group.
You can only enable metrics collection if
InstanceMonitoringin the launch configuration for the group is set toTrue.- Specified by:
enableMetricsCollectionAsyncin interfaceAmazonAutoScalingAsync- Parameters:
request-asyncHandler- Asynchronous callback handler for events in the lifecycle of the request. Users can provide an implementation of the callback methods in this interface to receive notification of successful or unsuccessful completion of the operation.- Returns:
- A Java Future containing the result of the EnableMetricsCollection operation returned by the service.
-
enterStandbyAsync
Description copied from interface:AmazonAutoScalingAsyncMoves the specified instances into
Standbymode.For more information, see Auto Scaling Lifecycle in the Auto Scaling Developer Guide.
- Specified by:
enterStandbyAsyncin interfaceAmazonAutoScalingAsync- Parameters:
request-- Returns:
- A Java Future containing the result of the EnterStandby operation returned by the service.
-
enterStandbyAsync
public Future<EnterStandbyResult> enterStandbyAsync(EnterStandbyRequest request, AsyncHandler<EnterStandbyRequest, EnterStandbyResult> asyncHandler) Description copied from interface:AmazonAutoScalingAsyncMoves the specified instances into
Standbymode.For more information, see Auto Scaling Lifecycle in the Auto Scaling Developer Guide.
- Specified by:
enterStandbyAsyncin interfaceAmazonAutoScalingAsync- Parameters:
request-asyncHandler- Asynchronous callback handler for events in the lifecycle of the request. Users can provide an implementation of the callback methods in this interface to receive notification of successful or unsuccessful completion of the operation.- Returns:
- A Java Future containing the result of the EnterStandby operation returned by the service.
-
executePolicyAsync
Description copied from interface:AmazonAutoScalingAsyncExecutes the specified policy.
- Specified by:
executePolicyAsyncin interfaceAmazonAutoScalingAsync- Parameters:
request-- Returns:
- A Java Future containing the result of the ExecutePolicy operation returned by the service.
-
executePolicyAsync
public Future<ExecutePolicyResult> executePolicyAsync(ExecutePolicyRequest request, AsyncHandler<ExecutePolicyRequest, ExecutePolicyResult> asyncHandler) Description copied from interface:AmazonAutoScalingAsyncExecutes the specified policy.
- Specified by:
executePolicyAsyncin interfaceAmazonAutoScalingAsync- Parameters:
request-asyncHandler- Asynchronous callback handler for events in the lifecycle of the request. Users can provide an implementation of the callback methods in this interface to receive notification of successful or unsuccessful completion of the operation.- Returns:
- A Java Future containing the result of the ExecutePolicy operation returned by the service.
-
exitStandbyAsync
Description copied from interface:AmazonAutoScalingAsyncMoves the specified instances out of
Standbymode.For more information, see Auto Scaling Lifecycle in the Auto Scaling Developer Guide.
- Specified by:
exitStandbyAsyncin interfaceAmazonAutoScalingAsync- Parameters:
request-- Returns:
- A Java Future containing the result of the ExitStandby operation returned by the service.
-
exitStandbyAsync
public Future<ExitStandbyResult> exitStandbyAsync(ExitStandbyRequest request, AsyncHandler<ExitStandbyRequest, ExitStandbyResult> asyncHandler) Description copied from interface:AmazonAutoScalingAsyncMoves the specified instances out of
Standbymode.For more information, see Auto Scaling Lifecycle in the Auto Scaling Developer Guide.
- Specified by:
exitStandbyAsyncin interfaceAmazonAutoScalingAsync- Parameters:
request-asyncHandler- Asynchronous callback handler for events in the lifecycle of the request. Users can provide an implementation of the callback methods in this interface to receive notification of successful or unsuccessful completion of the operation.- Returns:
- A Java Future containing the result of the ExitStandby operation returned by the service.
-
putLifecycleHookAsync
Description copied from interface:AmazonAutoScalingAsyncCreates or updates a lifecycle hook for the specified Auto Scaling Group.
A lifecycle hook tells Auto Scaling that you want to perform an action on an instance that is not actively in service; for example, either when the instance launches or before the instance terminates.
This step is a part of the procedure for adding a lifecycle hook to an Auto Scaling group:
- (Optional) Create a Lambda function and a rule that allows CloudWatch Events to invoke your Lambda function when Auto Scaling launches or terminates instances.
- (Optional) Create a notification target and an IAM role. The target can be either an Amazon SQS queue or an Amazon SNS topic. The role allows Auto Scaling to publish lifecycle notifications to the target.
- Create the lifecycle hook. Specify whether the hook is used when the instances launch or terminate.
- If you need more time, record the lifecycle action heartbeat to keep the instance in a pending state.
- If you finish before the timeout period ends, complete the lifecycle action.
For more information, see Auto Scaling Lifecycle in the Auto Scaling Developer Guide.
If you exceed your maximum limit of lifecycle hooks, which by default is 50 per region, the call fails. For information about updating this limit, see AWS Service Limits in the Amazon Web Services General Reference.
- Specified by:
putLifecycleHookAsyncin interfaceAmazonAutoScalingAsync- Parameters:
request-- Returns:
- A Java Future containing the result of the PutLifecycleHook operation returned by the service.
-
putLifecycleHookAsync
public Future<PutLifecycleHookResult> putLifecycleHookAsync(PutLifecycleHookRequest request, AsyncHandler<PutLifecycleHookRequest, PutLifecycleHookResult> asyncHandler) Description copied from interface:AmazonAutoScalingAsyncCreates or updates a lifecycle hook for the specified Auto Scaling Group.
A lifecycle hook tells Auto Scaling that you want to perform an action on an instance that is not actively in service; for example, either when the instance launches or before the instance terminates.
This step is a part of the procedure for adding a lifecycle hook to an Auto Scaling group:
- (Optional) Create a Lambda function and a rule that allows CloudWatch Events to invoke your Lambda function when Auto Scaling launches or terminates instances.
- (Optional) Create a notification target and an IAM role. The target can be either an Amazon SQS queue or an Amazon SNS topic. The role allows Auto Scaling to publish lifecycle notifications to the target.
- Create the lifecycle hook. Specify whether the hook is used when the instances launch or terminate.
- If you need more time, record the lifecycle action heartbeat to keep the instance in a pending state.
- If you finish before the timeout period ends, complete the lifecycle action.
For more information, see Auto Scaling Lifecycle in the Auto Scaling Developer Guide.
If you exceed your maximum limit of lifecycle hooks, which by default is 50 per region, the call fails. For information about updating this limit, see AWS Service Limits in the Amazon Web Services General Reference.
- Specified by:
putLifecycleHookAsyncin interfaceAmazonAutoScalingAsync- Parameters:
request-asyncHandler- Asynchronous callback handler for events in the lifecycle of the request. Users can provide an implementation of the callback methods in this interface to receive notification of successful or unsuccessful completion of the operation.- Returns:
- A Java Future containing the result of the PutLifecycleHook operation returned by the service.
-
putNotificationConfigurationAsync
public Future<PutNotificationConfigurationResult> putNotificationConfigurationAsync(PutNotificationConfigurationRequest request) Description copied from interface:AmazonAutoScalingAsyncConfigures an Auto Scaling group to send notifications when specified events take place. Subscribers to this topic can have messages for events delivered to an endpoint such as a web server or email address.
For more information see Getting Notifications When Your Auto Scaling Group Changes in the Auto Scaling Developer Guide.
This configuration overwrites an existing configuration.
- Specified by:
putNotificationConfigurationAsyncin interfaceAmazonAutoScalingAsync- Parameters:
request-- Returns:
- A Java Future containing the result of the PutNotificationConfiguration operation returned by the service.
-
putNotificationConfigurationAsync
public Future<PutNotificationConfigurationResult> putNotificationConfigurationAsync(PutNotificationConfigurationRequest request, AsyncHandler<PutNotificationConfigurationRequest, PutNotificationConfigurationResult> asyncHandler) Description copied from interface:AmazonAutoScalingAsyncConfigures an Auto Scaling group to send notifications when specified events take place. Subscribers to this topic can have messages for events delivered to an endpoint such as a web server or email address.
For more information see Getting Notifications When Your Auto Scaling Group Changes in the Auto Scaling Developer Guide.
This configuration overwrites an existing configuration.
- Specified by:
putNotificationConfigurationAsyncin interfaceAmazonAutoScalingAsync- Parameters:
request-asyncHandler- Asynchronous callback handler for events in the lifecycle of the request. Users can provide an implementation of the callback methods in this interface to receive notification of successful or unsuccessful completion of the operation.- Returns:
- A Java Future containing the result of the PutNotificationConfiguration operation returned by the service.
-
putScalingPolicyAsync
Description copied from interface:AmazonAutoScalingAsyncCreates or updates a policy for an Auto Scaling group. To update an existing policy, use the existing policy name and set the parameters you want to change. Any existing parameter not changed in an update to an existing policy is not changed in this update request.
If you exceed your maximum limit of step adjustments, which by default is 20 per region, the call fails. For information about updating this limit, see AWS Service Limits in the Amazon Web Services General Reference.
- Specified by:
putScalingPolicyAsyncin interfaceAmazonAutoScalingAsync- Parameters:
request-- Returns:
- A Java Future containing the result of the PutScalingPolicy operation returned by the service.
-
putScalingPolicyAsync
public Future<PutScalingPolicyResult> putScalingPolicyAsync(PutScalingPolicyRequest request, AsyncHandler<PutScalingPolicyRequest, PutScalingPolicyResult> asyncHandler) Description copied from interface:AmazonAutoScalingAsyncCreates or updates a policy for an Auto Scaling group. To update an existing policy, use the existing policy name and set the parameters you want to change. Any existing parameter not changed in an update to an existing policy is not changed in this update request.
If you exceed your maximum limit of step adjustments, which by default is 20 per region, the call fails. For information about updating this limit, see AWS Service Limits in the Amazon Web Services General Reference.
- Specified by:
putScalingPolicyAsyncin interfaceAmazonAutoScalingAsync- Parameters:
request-asyncHandler- Asynchronous callback handler for events in the lifecycle of the request. Users can provide an implementation of the callback methods in this interface to receive notification of successful or unsuccessful completion of the operation.- Returns:
- A Java Future containing the result of the PutScalingPolicy operation returned by the service.
-
putScheduledUpdateGroupActionAsync
public Future<PutScheduledUpdateGroupActionResult> putScheduledUpdateGroupActionAsync(PutScheduledUpdateGroupActionRequest request) Description copied from interface:AmazonAutoScalingAsyncCreates or updates a scheduled scaling action for an Auto Scaling group. When updating a scheduled scaling action, if you leave a parameter unspecified, the corresponding value remains unchanged in the affected Auto Scaling group.
For more information, see Scheduled Scaling in the Auto Scaling Developer Guide.
- Specified by:
putScheduledUpdateGroupActionAsyncin interfaceAmazonAutoScalingAsync- Parameters:
request-- Returns:
- A Java Future containing the result of the PutScheduledUpdateGroupAction operation returned by the service.
-
putScheduledUpdateGroupActionAsync
public Future<PutScheduledUpdateGroupActionResult> putScheduledUpdateGroupActionAsync(PutScheduledUpdateGroupActionRequest request, AsyncHandler<PutScheduledUpdateGroupActionRequest, PutScheduledUpdateGroupActionResult> asyncHandler) Description copied from interface:AmazonAutoScalingAsyncCreates or updates a scheduled scaling action for an Auto Scaling group. When updating a scheduled scaling action, if you leave a parameter unspecified, the corresponding value remains unchanged in the affected Auto Scaling group.
For more information, see Scheduled Scaling in the Auto Scaling Developer Guide.
- Specified by:
putScheduledUpdateGroupActionAsyncin interfaceAmazonAutoScalingAsync- Parameters:
request-asyncHandler- Asynchronous callback handler for events in the lifecycle of the request. Users can provide an implementation of the callback methods in this interface to receive notification of successful or unsuccessful completion of the operation.- Returns:
- A Java Future containing the result of the PutScheduledUpdateGroupAction operation returned by the service.
-
recordLifecycleActionHeartbeatAsync
public Future<RecordLifecycleActionHeartbeatResult> recordLifecycleActionHeartbeatAsync(RecordLifecycleActionHeartbeatRequest request) Description copied from interface:AmazonAutoScalingAsyncRecords a heartbeat for the lifecycle action associated with the specified token or instance. This extends the timeout by the length of time defined using PutLifecycleHook.
This step is a part of the procedure for adding a lifecycle hook to an Auto Scaling group:
- (Optional) Create a Lambda function and a rule that allows CloudWatch Events to invoke your Lambda function when Auto Scaling launches or terminates instances.
- (Optional) Create a notification target and an IAM role. The target can be either an Amazon SQS queue or an Amazon SNS topic. The role allows Auto Scaling to publish lifecycle notifications to the target.
- Create the lifecycle hook. Specify whether the hook is used when the instances launch or terminate.
- If you need more time, record the lifecycle action heartbeat to keep the instance in a pending state.
- If you finish before the timeout period ends, complete the lifecycle action.
For more information, see Auto Scaling Lifecycle in the Auto Scaling Developer Guide.
- Specified by:
recordLifecycleActionHeartbeatAsyncin interfaceAmazonAutoScalingAsync- Parameters:
request-- Returns:
- A Java Future containing the result of the RecordLifecycleActionHeartbeat operation returned by the service.
-
recordLifecycleActionHeartbeatAsync
public Future<RecordLifecycleActionHeartbeatResult> recordLifecycleActionHeartbeatAsync(RecordLifecycleActionHeartbeatRequest request, AsyncHandler<RecordLifecycleActionHeartbeatRequest, RecordLifecycleActionHeartbeatResult> asyncHandler) Description copied from interface:AmazonAutoScalingAsyncRecords a heartbeat for the lifecycle action associated with the specified token or instance. This extends the timeout by the length of time defined using PutLifecycleHook.
This step is a part of the procedure for adding a lifecycle hook to an Auto Scaling group:
- (Optional) Create a Lambda function and a rule that allows CloudWatch Events to invoke your Lambda function when Auto Scaling launches or terminates instances.
- (Optional) Create a notification target and an IAM role. The target can be either an Amazon SQS queue or an Amazon SNS topic. The role allows Auto Scaling to publish lifecycle notifications to the target.
- Create the lifecycle hook. Specify whether the hook is used when the instances launch or terminate.
- If you need more time, record the lifecycle action heartbeat to keep the instance in a pending state.
- If you finish before the timeout period ends, complete the lifecycle action.
For more information, see Auto Scaling Lifecycle in the Auto Scaling Developer Guide.
- Specified by:
recordLifecycleActionHeartbeatAsyncin interfaceAmazonAutoScalingAsync- Parameters:
request-asyncHandler- Asynchronous callback handler for events in the lifecycle of the request. Users can provide an implementation of the callback methods in this interface to receive notification of successful or unsuccessful completion of the operation.- Returns:
- A Java Future containing the result of the RecordLifecycleActionHeartbeat operation returned by the service.
-
resumeProcessesAsync
Description copied from interface:AmazonAutoScalingAsyncResumes the specified suspended Auto Scaling processes, or all suspended process, for the specified Auto Scaling group.
For more information, see Suspending and Resuming Auto Scaling Processes in the Auto Scaling Developer Guide.
- Specified by:
resumeProcessesAsyncin interfaceAmazonAutoScalingAsync- Parameters:
request-- Returns:
- A Java Future containing the result of the ResumeProcesses operation returned by the service.
-
resumeProcessesAsync
public Future<ResumeProcessesResult> resumeProcessesAsync(ResumeProcessesRequest request, AsyncHandler<ResumeProcessesRequest, ResumeProcessesResult> asyncHandler) Description copied from interface:AmazonAutoScalingAsyncResumes the specified suspended Auto Scaling processes, or all suspended process, for the specified Auto Scaling group.
For more information, see Suspending and Resuming Auto Scaling Processes in the Auto Scaling Developer Guide.
- Specified by:
resumeProcessesAsyncin interfaceAmazonAutoScalingAsync- Parameters:
request-asyncHandler- Asynchronous callback handler for events in the lifecycle of the request. Users can provide an implementation of the callback methods in this interface to receive notification of successful or unsuccessful completion of the operation.- Returns:
- A Java Future containing the result of the ResumeProcesses operation returned by the service.
-
setDesiredCapacityAsync
Description copied from interface:AmazonAutoScalingAsyncSets the size of the specified Auto Scaling group.
For more information about desired capacity, see What Is Auto Scaling? in the Auto Scaling Developer Guide.
- Specified by:
setDesiredCapacityAsyncin interfaceAmazonAutoScalingAsync- Parameters:
request-- Returns:
- A Java Future containing the result of the SetDesiredCapacity operation returned by the service.
-
setDesiredCapacityAsync
public Future<SetDesiredCapacityResult> setDesiredCapacityAsync(SetDesiredCapacityRequest request, AsyncHandler<SetDesiredCapacityRequest, SetDesiredCapacityResult> asyncHandler) Description copied from interface:AmazonAutoScalingAsyncSets the size of the specified Auto Scaling group.
For more information about desired capacity, see What Is Auto Scaling? in the Auto Scaling Developer Guide.
- Specified by:
setDesiredCapacityAsyncin interfaceAmazonAutoScalingAsync- Parameters:
request-asyncHandler- Asynchronous callback handler for events in the lifecycle of the request. Users can provide an implementation of the callback methods in this interface to receive notification of successful or unsuccessful completion of the operation.- Returns:
- A Java Future containing the result of the SetDesiredCapacity operation returned by the service.
-
setInstanceHealthAsync
Description copied from interface:AmazonAutoScalingAsyncSets the health status of the specified instance.
For more information, see Health Checks in the Auto Scaling Developer Guide.
- Specified by:
setInstanceHealthAsyncin interfaceAmazonAutoScalingAsync- Parameters:
request-- Returns:
- A Java Future containing the result of the SetInstanceHealth operation returned by the service.
-
setInstanceHealthAsync
public Future<SetInstanceHealthResult> setInstanceHealthAsync(SetInstanceHealthRequest request, AsyncHandler<SetInstanceHealthRequest, SetInstanceHealthResult> asyncHandler) Description copied from interface:AmazonAutoScalingAsyncSets the health status of the specified instance.
For more information, see Health Checks in the Auto Scaling Developer Guide.
- Specified by:
setInstanceHealthAsyncin interfaceAmazonAutoScalingAsync- Parameters:
request-asyncHandler- Asynchronous callback handler for events in the lifecycle of the request. Users can provide an implementation of the callback methods in this interface to receive notification of successful or unsuccessful completion of the operation.- Returns:
- A Java Future containing the result of the SetInstanceHealth operation returned by the service.
-
setInstanceProtectionAsync
public Future<SetInstanceProtectionResult> setInstanceProtectionAsync(SetInstanceProtectionRequest request) Description copied from interface:AmazonAutoScalingAsyncUpdates the instance protection settings of the specified instances.
For more information, see Instance Protection in the Auto Scaling Developer Guide.
- Specified by:
setInstanceProtectionAsyncin interfaceAmazonAutoScalingAsync- Parameters:
request-- Returns:
- A Java Future containing the result of the SetInstanceProtection operation returned by the service.
-
setInstanceProtectionAsync
public Future<SetInstanceProtectionResult> setInstanceProtectionAsync(SetInstanceProtectionRequest request, AsyncHandler<SetInstanceProtectionRequest, SetInstanceProtectionResult> asyncHandler) Description copied from interface:AmazonAutoScalingAsyncUpdates the instance protection settings of the specified instances.
For more information, see Instance Protection in the Auto Scaling Developer Guide.
- Specified by:
setInstanceProtectionAsyncin interfaceAmazonAutoScalingAsync- Parameters:
request-asyncHandler- Asynchronous callback handler for events in the lifecycle of the request. Users can provide an implementation of the callback methods in this interface to receive notification of successful or unsuccessful completion of the operation.- Returns:
- A Java Future containing the result of the SetInstanceProtection operation returned by the service.
-
suspendProcessesAsync
Description copied from interface:AmazonAutoScalingAsyncSuspends the specified Auto Scaling processes, or all processes, for the specified Auto Scaling group.
Note that if you suspend either the
LaunchorTerminateprocess types, it can prevent other process types from functioning properly.To resume processes that have been suspended, use ResumeProcesses.
For more information, see Suspending and Resuming Auto Scaling Processes in the Auto Scaling Developer Guide.
- Specified by:
suspendProcessesAsyncin interfaceAmazonAutoScalingAsync- Parameters:
request-- Returns:
- A Java Future containing the result of the SuspendProcesses operation returned by the service.
-
suspendProcessesAsync
public Future<SuspendProcessesResult> suspendProcessesAsync(SuspendProcessesRequest request, AsyncHandler<SuspendProcessesRequest, SuspendProcessesResult> asyncHandler) Description copied from interface:AmazonAutoScalingAsyncSuspends the specified Auto Scaling processes, or all processes, for the specified Auto Scaling group.
Note that if you suspend either the
LaunchorTerminateprocess types, it can prevent other process types from functioning properly.To resume processes that have been suspended, use ResumeProcesses.
For more information, see Suspending and Resuming Auto Scaling Processes in the Auto Scaling Developer Guide.
- Specified by:
suspendProcessesAsyncin interfaceAmazonAutoScalingAsync- Parameters:
request-asyncHandler- Asynchronous callback handler for events in the lifecycle of the request. Users can provide an implementation of the callback methods in this interface to receive notification of successful or unsuccessful completion of the operation.- Returns:
- A Java Future containing the result of the SuspendProcesses operation returned by the service.
-
terminateInstanceInAutoScalingGroupAsync
public Future<TerminateInstanceInAutoScalingGroupResult> terminateInstanceInAutoScalingGroupAsync(TerminateInstanceInAutoScalingGroupRequest request) Description copied from interface:AmazonAutoScalingAsyncTerminates the specified instance and optionally adjusts the desired group size.
This call simply makes a termination request. The instance is not terminated immediately.
- Specified by:
terminateInstanceInAutoScalingGroupAsyncin interfaceAmazonAutoScalingAsync- Parameters:
request-- Returns:
- A Java Future containing the result of the TerminateInstanceInAutoScalingGroup operation returned by the service.
-
terminateInstanceInAutoScalingGroupAsync
public Future<TerminateInstanceInAutoScalingGroupResult> terminateInstanceInAutoScalingGroupAsync(TerminateInstanceInAutoScalingGroupRequest request, AsyncHandler<TerminateInstanceInAutoScalingGroupRequest, TerminateInstanceInAutoScalingGroupResult> asyncHandler) Description copied from interface:AmazonAutoScalingAsyncTerminates the specified instance and optionally adjusts the desired group size.
This call simply makes a termination request. The instance is not terminated immediately.
- Specified by:
terminateInstanceInAutoScalingGroupAsyncin interfaceAmazonAutoScalingAsync- Parameters:
request-asyncHandler- Asynchronous callback handler for events in the lifecycle of the request. Users can provide an implementation of the callback methods in this interface to receive notification of successful or unsuccessful completion of the operation.- Returns:
- A Java Future containing the result of the TerminateInstanceInAutoScalingGroup operation returned by the service.
-
updateAutoScalingGroupAsync
public Future<UpdateAutoScalingGroupResult> updateAutoScalingGroupAsync(UpdateAutoScalingGroupRequest request) Description copied from interface:AmazonAutoScalingAsyncUpdates the configuration for the specified Auto Scaling group.
To update an Auto Scaling group with a launch configuration with
InstanceMonitoringset toFalse, you must first disable the collection of group metrics. Otherwise, you will get an error. If you have previously enabled the collection of group metrics, you can disable it using DisableMetricsCollection.The new settings are registered upon the completion of this call. Any launch configuration settings take effect on any triggers after this call returns. Scaling activities that are currently in progress aren't affected.
Note the following:
-
If you specify a new value for
MinSizewithout specifying a value forDesiredCapacity, and the newMinSizeis larger than the current size of the group, we implicitly call SetDesiredCapacity to set the size of the group to the new value ofMinSize. -
If you specify a new value for
MaxSizewithout specifying a value forDesiredCapacity, and the newMaxSizeis smaller than the current size of the group, we implicitly call SetDesiredCapacity to set the size of the group to the new value ofMaxSize. -
All other optional parameters are left unchanged if not specified.
- Specified by:
updateAutoScalingGroupAsyncin interfaceAmazonAutoScalingAsync- Parameters:
request-- Returns:
- A Java Future containing the result of the UpdateAutoScalingGroup operation returned by the service.
-
-
updateAutoScalingGroupAsync
public Future<UpdateAutoScalingGroupResult> updateAutoScalingGroupAsync(UpdateAutoScalingGroupRequest request, AsyncHandler<UpdateAutoScalingGroupRequest, UpdateAutoScalingGroupResult> asyncHandler) Description copied from interface:AmazonAutoScalingAsyncUpdates the configuration for the specified Auto Scaling group.
To update an Auto Scaling group with a launch configuration with
InstanceMonitoringset toFalse, you must first disable the collection of group metrics. Otherwise, you will get an error. If you have previously enabled the collection of group metrics, you can disable it using DisableMetricsCollection.The new settings are registered upon the completion of this call. Any launch configuration settings take effect on any triggers after this call returns. Scaling activities that are currently in progress aren't affected.
Note the following:
-
If you specify a new value for
MinSizewithout specifying a value forDesiredCapacity, and the newMinSizeis larger than the current size of the group, we implicitly call SetDesiredCapacity to set the size of the group to the new value ofMinSize. -
If you specify a new value for
MaxSizewithout specifying a value forDesiredCapacity, and the newMaxSizeis smaller than the current size of the group, we implicitly call SetDesiredCapacity to set the size of the group to the new value ofMaxSize. -
All other optional parameters are left unchanged if not specified.
- Specified by:
updateAutoScalingGroupAsyncin interfaceAmazonAutoScalingAsync- Parameters:
request-asyncHandler- Asynchronous callback handler for events in the lifecycle of the request. Users can provide an implementation of the callback methods in this interface to receive notification of successful or unsuccessful completion of the operation.- Returns:
- A Java Future containing the result of the UpdateAutoScalingGroup operation returned by the service.
-
-
shutdown
public void shutdown()Shuts down the client, releasing all managed resources. This includes forcibly terminating all pending asynchronous service calls. Clients who wish to give pending asynchronous service calls time to complete should callgetExecutorService().shutdown()followed bygetExecutorService().awaitTermination()prior to calling this method.- Specified by:
shutdownin interfaceAmazonAutoScaling- Overrides:
shutdownin classAmazonWebServiceClient
-