|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface AmazonAutoScaling
Interface for accessing AmazonAutoScaling. Auto Scaling
Auto Scaling is a web service designed to automatically launch or terminate EC2 instances based on user-defined policies, schedules, and health checks. Auto Scaling responds automatically to changing conditions. All you need to do is specify how it should respond to those changes.
Auto Scaling groups can work across multiple Availability Zones - distinct physical locations for the hosted Amazon EC2 instances - so that if an Availability Zone becomes unavailable, Auto Scaling will automatically redistribute applications to a different Availability Zone.
Every API call returns a response meta data object that contains a request identifier. Successful requests return an HTTP 200 status code. Unsuccessful requests return an error object and an HTTP status code of 400 or 500.
The current WSDL is available at:
http://autoscaling.amazonaws.com/doc/2010-08-01/AutoScaling.wsdl
Endpoints
Auto Scaling supports the following region-specific endpoints:
Method Summary | |
---|---|
void |
createAutoScalingGroup(CreateAutoScalingGroupRequest createAutoScalingGroupRequest)
Creates a new Auto Scaling group with the specified name. |
void |
createLaunchConfiguration(CreateLaunchConfigurationRequest createLaunchConfigurationRequest)
Creates a new launch configuration. |
void |
deleteAutoScalingGroup(DeleteAutoScalingGroupRequest deleteAutoScalingGroupRequest)
Deletes the specified auto scaling group if the group has no instances and no scaling activities in progress. |
void |
deleteLaunchConfiguration(DeleteLaunchConfigurationRequest deleteLaunchConfigurationRequest)
Deletes the specified LaunchConfiguration. |
void |
deletePolicy(DeletePolicyRequest deletePolicyRequest)
Deletes a policy created by PutScalingPolicy |
void |
deleteScheduledAction(DeleteScheduledActionRequest deleteScheduledActionRequest)
Deletes a scheduled action previously created using the PutScheduledUpdateGroupAction. |
DescribeAdjustmentTypesResult |
describeAdjustmentTypes()
Returns policy adjustment types for use in the PutScalingPolicy action. |
DescribeAdjustmentTypesResult |
describeAdjustmentTypes(DescribeAdjustmentTypesRequest describeAdjustmentTypesRequest)
Returns policy adjustment types for use in the PutScalingPolicy action. |
DescribeAutoScalingGroupsResult |
describeAutoScalingGroups()
Returns a full description of each Auto Scaling group in the given list. |
DescribeAutoScalingGroupsResult |
describeAutoScalingGroups(DescribeAutoScalingGroupsRequest describeAutoScalingGroupsRequest)
Returns a full description of each Auto Scaling group in the given list. |
DescribeAutoScalingInstancesResult |
describeAutoScalingInstances()
Returns a description of each Auto Scaling instance in the InstanceIds list. |
DescribeAutoScalingInstancesResult |
describeAutoScalingInstances(DescribeAutoScalingInstancesRequest describeAutoScalingInstancesRequest)
Returns a description of each Auto Scaling instance in the InstanceIds list. |
DescribeLaunchConfigurationsResult |
describeLaunchConfigurations()
Returns a full description of the launch configurations given the specified names. |
DescribeLaunchConfigurationsResult |
describeLaunchConfigurations(DescribeLaunchConfigurationsRequest describeLaunchConfigurationsRequest)
Returns a full description of the launch configurations given the specified names. |
DescribeMetricCollectionTypesResult |
describeMetricCollectionTypes()
Returns a list of metrics and a corresponding list of granularities for each metric. |
DescribeMetricCollectionTypesResult |
describeMetricCollectionTypes(DescribeMetricCollectionTypesRequest describeMetricCollectionTypesRequest)
Returns a list of metrics and a corresponding list of granularities for each metric. |
DescribePoliciesResult |
describePolicies()
Returns descriptions of what each policy does. |
DescribePoliciesResult |
describePolicies(DescribePoliciesRequest describePoliciesRequest)
Returns descriptions of what each policy does. |
DescribeScalingActivitiesResult |
describeScalingActivities()
Returns the scaling activities for the specified Auto Scaling group. |
DescribeScalingActivitiesResult |
describeScalingActivities(DescribeScalingActivitiesRequest describeScalingActivitiesRequest)
Returns the scaling activities for the specified Auto Scaling group. |
DescribeScalingProcessTypesResult |
describeScalingProcessTypes()
Returns scaling process types for use in the ResumeProcesses and SuspendProcesses actions. |
DescribeScalingProcessTypesResult |
describeScalingProcessTypes(DescribeScalingProcessTypesRequest describeScalingProcessTypesRequest)
Returns scaling process types for use in the ResumeProcesses and SuspendProcesses actions. |
DescribeScheduledActionsResult |
describeScheduledActions()
Lists all the actions scheduled for your Auto Scaling group that haven't been executed. |
DescribeScheduledActionsResult |
describeScheduledActions(DescribeScheduledActionsRequest describeScheduledActionsRequest)
Lists all the actions scheduled for your Auto Scaling group that haven't been executed. |
void |
disableMetricsCollection(DisableMetricsCollectionRequest disableMetricsCollectionRequest)
Disables monitoring of group metrics for the Auto Scaling group specified in AutoScalingGroupName. |
void |
enableMetricsCollection(EnableMetricsCollectionRequest enableMetricsCollectionRequest)
Enables monitoring of group metrics for the Auto Scaling group specified in AutoScalingGroupName. |
void |
executePolicy(ExecutePolicyRequest executePolicyRequest)
Runs the policy you create for your Auto Scaling group in PutScalingPolicy. |
ResponseMetadata |
getCachedResponseMetadata(AmazonWebServiceRequest request)
Returns additional metadata for a previously executed successful request, typically used for debugging issues where a service isn't acting as expected. |
PutScalingPolicyResult |
putScalingPolicy(PutScalingPolicyRequest putScalingPolicyRequest)
Creates or updates a policy for an Auto Scaling group. |
void |
putScheduledUpdateGroupAction(PutScheduledUpdateGroupActionRequest putScheduledUpdateGroupActionRequest)
Creates a scheduled scaling action for a Auto Scaling group. |
void |
resumeProcesses(ResumeProcessesRequest resumeProcessesRequest)
Resumes Auto Scaling processes for an Auto Scaling group. |
void |
setDesiredCapacity(SetDesiredCapacityRequest setDesiredCapacityRequest)
Adjusts the desired size of the AutoScalingGroup by initiating scaling activities. |
void |
setEndpoint(String endpoint)
Overrides the default endpoint for this client ("https://autoscaling.amazonaws.com"). |
void |
setInstanceHealth(SetInstanceHealthRequest setInstanceHealthRequest)
Sets the health status of an instance. |
void |
shutdown()
Shuts down this client object, releasing any resources that might be held open. |
void |
suspendProcesses(SuspendProcessesRequest suspendProcessesRequest)
Suspends Auto Scaling processes for an Auto Scaling group. |
TerminateInstanceInAutoScalingGroupResult |
terminateInstanceInAutoScalingGroup(TerminateInstanceInAutoScalingGroupRequest terminateInstanceInAutoScalingGroupRequest)
Terminates the specified instance. |
void |
updateAutoScalingGroup(UpdateAutoScalingGroupRequest updateAutoScalingGroupRequest)
Updates the configuration for the specified AutoScalingGroup. |
Method Detail |
---|
void setEndpoint(String endpoint) throws IllegalArgumentException
Callers can pass in just the endpoint (ex: "ec2.amazonaws.com") or a full
URL, including the protocol (ex: "https://ec2.amazonaws.com"). If the
protocol is not specified here, the default protocol from this client's
ClientConfiguration
will be used, which by default is HTTPS.
For more information on using AWS regions with the AWS SDK for Java, and a complete list of all available endpoints for all AWS services, see: http://developer.amazonwebservices.com/connect/entry.jspa?externalID=3912
endpoint
- The endpoint (ex: "ec2.amazonaws.com") or a full URL,
including the protocol (ex: "https://ec2.amazonaws.com") of
the region specific AWS endpoint this client will communicate
with.
IllegalArgumentException
- If any problems are detected with the specified endpoint.void putScheduledUpdateGroupAction(PutScheduledUpdateGroupActionRequest putScheduledUpdateGroupActionRequest) throws AmazonServiceException, AmazonClientException
Creates a scheduled scaling action for a Auto Scaling group. If you leave a parameter unspecified, the corresponding value remains unchanged in the affected Auto Scaling group.
putScheduledUpdateGroupActionRequest
- Container for the
necessary parameters to execute the PutScheduledUpdateGroupAction
service method on AmazonAutoScaling.
AlreadyExistsException
LimitExceededException
AmazonClientException
- If any internal errors are encountered inside the client while
attempting to make the request or handle the response. For example
if a network connection is not available.
AmazonServiceException
- If an error response is returned by AmazonAutoScaling indicating
either a problem with the data in the request, or a server side issue.void setDesiredCapacity(SetDesiredCapacityRequest setDesiredCapacityRequest) throws AmazonServiceException, AmazonClientException
Adjusts the desired size of the AutoScalingGroup by initiating scaling activities. When reducing the size of the group, it is not possible to define which EC2 instances will be terminated. This applies to any auto-scaling decisions that might result in terminating instances.
There are two common use cases for SetDesiredCapacity
:
one for users of the Auto Scaling triggering system, and
another for developers who write their own triggering systems. Both
use cases relate to the concept of cooldown.
In the first case, if you use the Auto Scaling triggering system,
SetDesiredCapacity
changes the size of your Auto Scaling
group without regard to the cooldown period. This could be useful, for
example, if Auto Scaling did something unexpected for some reason. If
your cooldown period is 10 minutes, Auto Scaling would normally reject
requests to change the size of the group for that entire 10 minute
period. The SetDesiredCapacity
command allows you to
circumvent this restriction and change the size of the group before
the end of the cooldown period.
In the second case, if you write your own triggering system, you can
use SetDesiredCapacity
to control the size of your Auto
Scaling group. If you want the same cooldown functionality that Auto
Scaling offers, you can configure SetDesiredCapacity
to
honor cooldown by setting the HonorCooldown
parameter to
true
.
setDesiredCapacityRequest
- Container for the necessary
parameters to execute the SetDesiredCapacity service method on
AmazonAutoScaling.
ScalingActivityInProgressException
AmazonClientException
- If any internal errors are encountered inside the client while
attempting to make the request or handle the response. For example
if a network connection is not available.
AmazonServiceException
- If an error response is returned by AmazonAutoScaling indicating
either a problem with the data in the request, or a server side issue.void deletePolicy(DeletePolicyRequest deletePolicyRequest) throws AmazonServiceException, AmazonClientException
Deletes a policy created by PutScalingPolicy
deletePolicyRequest
- Container for the necessary parameters to
execute the DeletePolicy service method on AmazonAutoScaling.
AmazonClientException
- If any internal errors are encountered inside the client while
attempting to make the request or handle the response. For example
if a network connection is not available.
AmazonServiceException
- If an error response is returned by AmazonAutoScaling indicating
either a problem with the data in the request, or a server side issue.void deleteScheduledAction(DeleteScheduledActionRequest deleteScheduledActionRequest) throws AmazonServiceException, AmazonClientException
Deletes a scheduled action previously created using the PutScheduledUpdateGroupAction.
deleteScheduledActionRequest
- Container for the necessary
parameters to execute the DeleteScheduledAction service method on
AmazonAutoScaling.
AmazonClientException
- If any internal errors are encountered inside the client while
attempting to make the request or handle the response. For example
if a network connection is not available.
AmazonServiceException
- If an error response is returned by AmazonAutoScaling indicating
either a problem with the data in the request, or a server side issue.DescribeLaunchConfigurationsResult describeLaunchConfigurations(DescribeLaunchConfigurationsRequest describeLaunchConfigurationsRequest) throws AmazonServiceException, AmazonClientException
Returns a full description of the launch configurations given the specified names.
If no names are specified, then the full details of all launch configurations are returned.
describeLaunchConfigurationsRequest
- Container for the necessary
parameters to execute the DescribeLaunchConfigurations service method
on AmazonAutoScaling.
InvalidNextTokenException
AmazonClientException
- If any internal errors are encountered inside the client while
attempting to make the request or handle the response. For example
if a network connection is not available.
AmazonServiceException
- If an error response is returned by AmazonAutoScaling indicating
either a problem with the data in the request, or a server side issue.DescribeScalingProcessTypesResult describeScalingProcessTypes(DescribeScalingProcessTypesRequest describeScalingProcessTypesRequest) throws AmazonServiceException, AmazonClientException
Returns scaling process types for use in the ResumeProcesses and SuspendProcesses actions.
describeScalingProcessTypesRequest
- Container for the necessary
parameters to execute the DescribeScalingProcessTypes service method
on AmazonAutoScaling.
AmazonClientException
- If any internal errors are encountered inside the client while
attempting to make the request or handle the response. For example
if a network connection is not available.
AmazonServiceException
- If an error response is returned by AmazonAutoScaling indicating
either a problem with the data in the request, or a server side issue.DescribeAutoScalingGroupsResult describeAutoScalingGroups(DescribeAutoScalingGroupsRequest describeAutoScalingGroupsRequest) throws AmazonServiceException, AmazonClientException
Returns a full description of each Auto Scaling group in the given list. This includes all Amazon EC2 instances that are members of the group. If a list of names is not provided, the service returns the full details of all Auto Scaling groups.
This action supports pagination by returning a token if there are more pages to retrieve. To get the next page, call this action again with the returned token as the NextToken parameter.
describeAutoScalingGroupsRequest
- Container for the necessary
parameters to execute the DescribeAutoScalingGroups service method on
AmazonAutoScaling.
InvalidNextTokenException
AmazonClientException
- If any internal errors are encountered inside the client while
attempting to make the request or handle the response. For example
if a network connection is not available.
AmazonServiceException
- If an error response is returned by AmazonAutoScaling indicating
either a problem with the data in the request, or a server side issue.void enableMetricsCollection(EnableMetricsCollectionRequest enableMetricsCollectionRequest) throws AmazonServiceException, AmazonClientException
Enables monitoring of group metrics for the Auto Scaling group specified in AutoScalingGroupName. You can specify the list of enabled metrics with the Metrics parameter.
Auto scaling metrics collection can be turned on only if the
InstanceMonitoring.Enabled
flag, in the Auto Scaling
group's launch configuration, is set to true
.
enableMetricsCollectionRequest
- Container for the necessary
parameters to execute the EnableMetricsCollection service method on
AmazonAutoScaling.
AmazonClientException
- If any internal errors are encountered inside the client while
attempting to make the request or handle the response. For example
if a network connection is not available.
AmazonServiceException
- If an error response is returned by AmazonAutoScaling indicating
either a problem with the data in the request, or a server side issue.TerminateInstanceInAutoScalingGroupResult terminateInstanceInAutoScalingGroup(TerminateInstanceInAutoScalingGroupRequest terminateInstanceInAutoScalingGroupRequest) throws AmazonServiceException, AmazonClientException
Terminates the specified instance. Optionally, the desired group size can be adjusted.
NOTE: This call simply registers a termination request. The termination of the instance cannot happen immediately.
terminateInstanceInAutoScalingGroupRequest
- Container for the
necessary parameters to execute the
TerminateInstanceInAutoScalingGroup service method on
AmazonAutoScaling.
ScalingActivityInProgressException
AmazonClientException
- If any internal errors are encountered inside the client while
attempting to make the request or handle the response. For example
if a network connection is not available.
AmazonServiceException
- If an error response is returned by AmazonAutoScaling indicating
either a problem with the data in the request, or a server side issue.DescribeScalingActivitiesResult describeScalingActivities(DescribeScalingActivitiesRequest describeScalingActivitiesRequest) throws AmazonServiceException, AmazonClientException
Returns the scaling activities for the specified Auto Scaling group.
If the specified ActivityIds list is empty, all the activities from the past six weeks are returned. Activities are sorted by completion time. Activities still in progress appear first on the list.
This action supports pagination. If the response includes a token, there are more records available. To get the additional records, repeat the request with the response token as the NextToken parameter.
describeScalingActivitiesRequest
- Container for the necessary
parameters to execute the DescribeScalingActivities service method on
AmazonAutoScaling.
InvalidNextTokenException
AmazonClientException
- If any internal errors are encountered inside the client while
attempting to make the request or handle the response. For example
if a network connection is not available.
AmazonServiceException
- If an error response is returned by AmazonAutoScaling indicating
either a problem with the data in the request, or a server side issue.void executePolicy(ExecutePolicyRequest executePolicyRequest) throws AmazonServiceException, AmazonClientException
Runs the policy you create for your Auto Scaling group in PutScalingPolicy.
executePolicyRequest
- Container for the necessary parameters to
execute the ExecutePolicy service method on AmazonAutoScaling.
ScalingActivityInProgressException
AmazonClientException
- If any internal errors are encountered inside the client while
attempting to make the request or handle the response. For example
if a network connection is not available.
AmazonServiceException
- If an error response is returned by AmazonAutoScaling indicating
either a problem with the data in the request, or a server side issue.DescribeMetricCollectionTypesResult describeMetricCollectionTypes(DescribeMetricCollectionTypesRequest describeMetricCollectionTypesRequest) throws AmazonServiceException, AmazonClientException
Returns a list of metrics and a corresponding list of granularities for each metric.
describeMetricCollectionTypesRequest
- Container for the
necessary parameters to execute the DescribeMetricCollectionTypes
service method on AmazonAutoScaling.
AmazonClientException
- If any internal errors are encountered inside the client while
attempting to make the request or handle the response. For example
if a network connection is not available.
AmazonServiceException
- If an error response is returned by AmazonAutoScaling indicating
either a problem with the data in the request, or a server side issue.DescribePoliciesResult describePolicies(DescribePoliciesRequest describePoliciesRequest) throws AmazonServiceException, AmazonClientException
Returns descriptions of what each policy does. This action supports pagination. If the response includes a token, there are more records available. To get the additional records, repeat the request with the response token as the NextToken parameter.
describePoliciesRequest
- Container for the necessary parameters
to execute the DescribePolicies service method on AmazonAutoScaling.
InvalidNextTokenException
AmazonClientException
- If any internal errors are encountered inside the client while
attempting to make the request or handle the response. For example
if a network connection is not available.
AmazonServiceException
- If an error response is returned by AmazonAutoScaling indicating
either a problem with the data in the request, or a server side issue.DescribeAdjustmentTypesResult describeAdjustmentTypes(DescribeAdjustmentTypesRequest describeAdjustmentTypesRequest) throws AmazonServiceException, AmazonClientException
Returns policy adjustment types for use in the PutScalingPolicy action.
describeAdjustmentTypesRequest
- Container for the necessary
parameters to execute the DescribeAdjustmentTypes service method on
AmazonAutoScaling.
AmazonClientException
- If any internal errors are encountered inside the client while
attempting to make the request or handle the response. For example
if a network connection is not available.
AmazonServiceException
- If an error response is returned by AmazonAutoScaling indicating
either a problem with the data in the request, or a server side issue.void deleteAutoScalingGroup(DeleteAutoScalingGroupRequest deleteAutoScalingGroupRequest) throws AmazonServiceException, AmazonClientException
Deletes the specified auto scaling group if the group has no instances and no scaling activities in progress.
NOTE: To remove all instances before calling DeleteAutoScalingGroup, you can call UpdateAutoScalingGroup to set the minimum and maximum size of the AutoScalingGroup to zero.
deleteAutoScalingGroupRequest
- Container for the necessary
parameters to execute the DeleteAutoScalingGroup service method on
AmazonAutoScaling.
ResourceInUseException
ScalingActivityInProgressException
AmazonClientException
- If any internal errors are encountered inside the client while
attempting to make the request or handle the response. For example
if a network connection is not available.
AmazonServiceException
- If an error response is returned by AmazonAutoScaling indicating
either a problem with the data in the request, or a server side issue.void createAutoScalingGroup(CreateAutoScalingGroupRequest createAutoScalingGroupRequest) throws AmazonServiceException, AmazonClientException
Creates a new Auto Scaling group with the specified name. Once the creation request is completed, the AutoScalingGroup is ready to be used in other calls.
NOTE: The Auto Scaling group name must be unique within the scope of your AWS account, and under the quota of Auto Scaling groups allowed for your account.
createAutoScalingGroupRequest
- Container for the necessary
parameters to execute the CreateAutoScalingGroup service method on
AmazonAutoScaling.
AlreadyExistsException
LimitExceededException
AmazonClientException
- If any internal errors are encountered inside the client while
attempting to make the request or handle the response. For example
if a network connection is not available.
AmazonServiceException
- If an error response is returned by AmazonAutoScaling indicating
either a problem with the data in the request, or a server side issue.DescribeAutoScalingInstancesResult describeAutoScalingInstances(DescribeAutoScalingInstancesRequest describeAutoScalingInstancesRequest) throws AmazonServiceException, AmazonClientException
Returns a description of each Auto Scaling instance in the InstanceIds list. If a list is not provided, the service returns the full details of all instances up to a maximum of fifty.
This action supports pagination by returning a token if there are more pages to retrieve. To get the next page, call this action again with the returned token as the NextToken parameter.
describeAutoScalingInstancesRequest
- Container for the necessary
parameters to execute the DescribeAutoScalingInstances service method
on AmazonAutoScaling.
InvalidNextTokenException
AmazonClientException
- If any internal errors are encountered inside the client while
attempting to make the request or handle the response. For example
if a network connection is not available.
AmazonServiceException
- If an error response is returned by AmazonAutoScaling indicating
either a problem with the data in the request, or a server side issue.void deleteLaunchConfiguration(DeleteLaunchConfigurationRequest deleteLaunchConfigurationRequest) throws AmazonServiceException, AmazonClientException
Deletes the specified LaunchConfiguration.
The specified launch configuration must not be attached to an Auto Scaling group. Once this call completes, the launch configuration is no longer available for use.
deleteLaunchConfigurationRequest
- Container for the necessary
parameters to execute the DeleteLaunchConfiguration service method on
AmazonAutoScaling.
ResourceInUseException
AmazonClientException
- If any internal errors are encountered inside the client while
attempting to make the request or handle the response. For example
if a network connection is not available.
AmazonServiceException
- If an error response is returned by AmazonAutoScaling indicating
either a problem with the data in the request, or a server side issue.PutScalingPolicyResult putScalingPolicy(PutScalingPolicyRequest putScalingPolicyRequest) throws AmazonServiceException, AmazonClientException
Creates or updates a policy for an Auto Scaling group. To update an existing policy, use the existing policy name and set the parameter(s) you want to change. Any existing parameter not changed in an update to an existing policy is not changed in this update request.
putScalingPolicyRequest
- Container for the necessary parameters
to execute the PutScalingPolicy service method on AmazonAutoScaling.
LimitExceededException
AmazonClientException
- If any internal errors are encountered inside the client while
attempting to make the request or handle the response. For example
if a network connection is not available.
AmazonServiceException
- If an error response is returned by AmazonAutoScaling indicating
either a problem with the data in the request, or a server side issue.void setInstanceHealth(SetInstanceHealthRequest setInstanceHealthRequest) throws AmazonServiceException, AmazonClientException
Sets the health status of an instance.
setInstanceHealthRequest
- Container for the necessary parameters
to execute the SetInstanceHealth service method on AmazonAutoScaling.
AmazonClientException
- If any internal errors are encountered inside the client while
attempting to make the request or handle the response. For example
if a network connection is not available.
AmazonServiceException
- If an error response is returned by AmazonAutoScaling indicating
either a problem with the data in the request, or a server side issue.void updateAutoScalingGroup(UpdateAutoScalingGroupRequest updateAutoScalingGroupRequest) throws AmazonServiceException, AmazonClientException
Updates the configuration for the specified AutoScalingGroup.
NOTE: To update an Auto Scaling group with a launch configuration that has the InstanceMonitoring.enabled flag set to false, you must first ensure that collection of group metrics is disabled. Otherwise, calls to UpdateAutoScalingGroup will fail. If you have previously enabled group metrics collection, you can disable collection of all group metrics by calling 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. Triggers that are currently in progress aren't affected.
NOTE: If the new values are specified for the MinSize or MaxSize parameters, then there will be an implicit call to SetDesiredCapacity to set the group to the new MaxSize. All optional parameters are left unchanged if not passed in the request.
updateAutoScalingGroupRequest
- Container for the necessary
parameters to execute the UpdateAutoScalingGroup service method on
AmazonAutoScaling.
ScalingActivityInProgressException
AmazonClientException
- If any internal errors are encountered inside the client while
attempting to make the request or handle the response. For example
if a network connection is not available.
AmazonServiceException
- If an error response is returned by AmazonAutoScaling indicating
either a problem with the data in the request, or a server side issue.DescribeScheduledActionsResult describeScheduledActions(DescribeScheduledActionsRequest describeScheduledActionsRequest) throws AmazonServiceException, AmazonClientException
Lists all the actions scheduled for your Auto Scaling group that haven't been executed. To see a list of action already executed, see the activity record returned in DescribeScalingActivities.
describeScheduledActionsRequest
- Container for the necessary
parameters to execute the DescribeScheduledActions service method on
AmazonAutoScaling.
InvalidNextTokenException
AmazonClientException
- If any internal errors are encountered inside the client while
attempting to make the request or handle the response. For example
if a network connection is not available.
AmazonServiceException
- If an error response is returned by AmazonAutoScaling indicating
either a problem with the data in the request, or a server side issue.void suspendProcesses(SuspendProcessesRequest suspendProcessesRequest) throws AmazonServiceException, AmazonClientException
Suspends Auto Scaling processes for an Auto Scaling group. To suspend
specific process types, specify them by name with the
ScalingProcesses.member.N
parameter. To suspend all
process types, omit the ScalingProcesses.member.N
parameter.
IMPORTANT: Suspending either of the two primary process types, Launch or Terminate, can prevent other process types from functioning properly. For more information about processes and their dependencies, see ProcessType.
To resume processes that have been suspended, use ResumeProcesses.
suspendProcessesRequest
- Container for the necessary parameters
to execute the SuspendProcesses service method on AmazonAutoScaling.
AmazonClientException
- If any internal errors are encountered inside the client while
attempting to make the request or handle the response. For example
if a network connection is not available.
AmazonServiceException
- If an error response is returned by AmazonAutoScaling indicating
either a problem with the data in the request, or a server side issue.void resumeProcesses(ResumeProcessesRequest resumeProcessesRequest) throws AmazonServiceException, AmazonClientException
Resumes Auto Scaling processes for an Auto Scaling group. For more information, see SuspendProcesses and ProcessType.
resumeProcessesRequest
- Container for the necessary parameters
to execute the ResumeProcesses service method on AmazonAutoScaling.
AmazonClientException
- If any internal errors are encountered inside the client while
attempting to make the request or handle the response. For example
if a network connection is not available.
AmazonServiceException
- If an error response is returned by AmazonAutoScaling indicating
either a problem with the data in the request, or a server side issue.void createLaunchConfiguration(CreateLaunchConfigurationRequest createLaunchConfigurationRequest) throws AmazonServiceException, AmazonClientException
Creates a new launch configuration. Once created, the new launch configuration is available for immediate use.
NOTE: The launch configuration name used must be unique, within the scope of the client's AWS account, and the maximum limit of launch configurations must not yet have been met, or else the call will fail.
createLaunchConfigurationRequest
- Container for the necessary
parameters to execute the CreateLaunchConfiguration service method on
AmazonAutoScaling.
AlreadyExistsException
LimitExceededException
AmazonClientException
- If any internal errors are encountered inside the client while
attempting to make the request or handle the response. For example
if a network connection is not available.
AmazonServiceException
- If an error response is returned by AmazonAutoScaling indicating
either a problem with the data in the request, or a server side issue.void disableMetricsCollection(DisableMetricsCollectionRequest disableMetricsCollectionRequest) throws AmazonServiceException, AmazonClientException
Disables monitoring of group metrics for the Auto Scaling group specified in AutoScalingGroupName. You can specify the list of affected metrics with the Metrics parameter.
disableMetricsCollectionRequest
- Container for the necessary
parameters to execute the DisableMetricsCollection service method on
AmazonAutoScaling.
AmazonClientException
- If any internal errors are encountered inside the client while
attempting to make the request or handle the response. For example
if a network connection is not available.
AmazonServiceException
- If an error response is returned by AmazonAutoScaling indicating
either a problem with the data in the request, or a server side issue.DescribeLaunchConfigurationsResult describeLaunchConfigurations() throws AmazonServiceException, AmazonClientException
Returns a full description of the launch configurations given the specified names.
If no names are specified, then the full details of all launch configurations are returned.
InvalidNextTokenException
AmazonClientException
- If any internal errors are encountered inside the client while
attempting to make the request or handle the response. For example
if a network connection is not available.
AmazonServiceException
- If an error response is returned by AmazonAutoScaling indicating
either a problem with the data in the request, or a server side issue.DescribeScalingProcessTypesResult describeScalingProcessTypes() throws AmazonServiceException, AmazonClientException
Returns scaling process types for use in the ResumeProcesses and SuspendProcesses actions.
AmazonClientException
- If any internal errors are encountered inside the client while
attempting to make the request or handle the response. For example
if a network connection is not available.
AmazonServiceException
- If an error response is returned by AmazonAutoScaling indicating
either a problem with the data in the request, or a server side issue.DescribeAutoScalingGroupsResult describeAutoScalingGroups() throws AmazonServiceException, AmazonClientException
Returns a full description of each Auto Scaling group in the given list. This includes all Amazon EC2 instances that are members of the group. If a list of names is not provided, the service returns the full details of all Auto Scaling groups.
This action supports pagination by returning a token if there are more pages to retrieve. To get the next page, call this action again with the returned token as the NextToken parameter.
InvalidNextTokenException
AmazonClientException
- If any internal errors are encountered inside the client while
attempting to make the request or handle the response. For example
if a network connection is not available.
AmazonServiceException
- If an error response is returned by AmazonAutoScaling indicating
either a problem with the data in the request, or a server side issue.DescribeScalingActivitiesResult describeScalingActivities() throws AmazonServiceException, AmazonClientException
Returns the scaling activities for the specified Auto Scaling group.
If the specified ActivityIds list is empty, all the activities from the past six weeks are returned. Activities are sorted by completion time. Activities still in progress appear first on the list.
This action supports pagination. If the response includes a token, there are more records available. To get the additional records, repeat the request with the response token as the NextToken parameter.
InvalidNextTokenException
AmazonClientException
- If any internal errors are encountered inside the client while
attempting to make the request or handle the response. For example
if a network connection is not available.
AmazonServiceException
- If an error response is returned by AmazonAutoScaling indicating
either a problem with the data in the request, or a server side issue.DescribeMetricCollectionTypesResult describeMetricCollectionTypes() throws AmazonServiceException, AmazonClientException
Returns a list of metrics and a corresponding list of granularities for each metric.
AmazonClientException
- If any internal errors are encountered inside the client while
attempting to make the request or handle the response. For example
if a network connection is not available.
AmazonServiceException
- If an error response is returned by AmazonAutoScaling indicating
either a problem with the data in the request, or a server side issue.DescribePoliciesResult describePolicies() throws AmazonServiceException, AmazonClientException
Returns descriptions of what each policy does. This action supports pagination. If the response includes a token, there are more records available. To get the additional records, repeat the request with the response token as the NextToken parameter.
InvalidNextTokenException
AmazonClientException
- If any internal errors are encountered inside the client while
attempting to make the request or handle the response. For example
if a network connection is not available.
AmazonServiceException
- If an error response is returned by AmazonAutoScaling indicating
either a problem with the data in the request, or a server side issue.DescribeAdjustmentTypesResult describeAdjustmentTypes() throws AmazonServiceException, AmazonClientException
Returns policy adjustment types for use in the PutScalingPolicy action.
AmazonClientException
- If any internal errors are encountered inside the client while
attempting to make the request or handle the response. For example
if a network connection is not available.
AmazonServiceException
- If an error response is returned by AmazonAutoScaling indicating
either a problem with the data in the request, or a server side issue.DescribeAutoScalingInstancesResult describeAutoScalingInstances() throws AmazonServiceException, AmazonClientException
Returns a description of each Auto Scaling instance in the InstanceIds list. If a list is not provided, the service returns the full details of all instances up to a maximum of fifty.
This action supports pagination by returning a token if there are more pages to retrieve. To get the next page, call this action again with the returned token as the NextToken parameter.
InvalidNextTokenException
AmazonClientException
- If any internal errors are encountered inside the client while
attempting to make the request or handle the response. For example
if a network connection is not available.
AmazonServiceException
- If an error response is returned by AmazonAutoScaling indicating
either a problem with the data in the request, or a server side issue.DescribeScheduledActionsResult describeScheduledActions() throws AmazonServiceException, AmazonClientException
Lists all the actions scheduled for your Auto Scaling group that haven't been executed. To see a list of action already executed, see the activity record returned in DescribeScalingActivities.
InvalidNextTokenException
AmazonClientException
- If any internal errors are encountered inside the client while
attempting to make the request or handle the response. For example
if a network connection is not available.
AmazonServiceException
- If an error response is returned by AmazonAutoScaling indicating
either a problem with the data in the request, or a server side issue.void shutdown()
ResponseMetadata getCachedResponseMetadata(AmazonWebServiceRequest request)
Response metadata is only cached for a limited period of time, so if you need to access this extra diagnostic information for an executed request, you should use this method to retrieve it as soon as possible after executing a request.
request
- The originally executed request.
|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |