pub struct Client { /* private fields */ }
Expand description

Client for Auto Scaling

Client for invoking operations on Auto Scaling. Each operation on Auto Scaling is a method on this this struct. .send() MUST be invoked on the generated operations to dispatch the request to the service.

Examples

Constructing a client and invoking an operation

    // create a shared configuration. This can be used & shared between multiple service clients.
    let shared_config = aws_config::load_from_env().await;
    let client = aws_sdk_autoscaling::Client::new(&shared_config);
    // invoke an operation
    /* let rsp = client
        .<operation_name>().
        .<param>("some value")
        .send().await; */

Constructing a client with custom configuration

use aws_config::retry::RetryConfig;
let shared_config = aws_config::load_from_env().await;
let config = aws_sdk_autoscaling::config::Builder::from(&shared_config)
  .retry_config(RetryConfig::disabled())
  .build();
let client = aws_sdk_autoscaling::Client::from_conf(config);

Implementations

Creates a client with the given service configuration.

Returns the client’s configuration.

Constructs a fluent builder for the AttachInstances operation.

Constructs a fluent builder for the AttachLoadBalancers operation.

Constructs a fluent builder for the AttachLoadBalancerTargetGroups operation.

Constructs a fluent builder for the BatchDeleteScheduledAction operation.

Constructs a fluent builder for the BatchPutScheduledUpdateGroupAction operation.

Constructs a fluent builder for the CancelInstanceRefresh operation.

Constructs a fluent builder for the CompleteLifecycleAction operation.

Constructs a fluent builder for the CreateAutoScalingGroup operation.

Constructs a fluent builder for the CreateLaunchConfiguration operation.

Constructs a fluent builder for the CreateOrUpdateTags operation.

Constructs a fluent builder for the DeleteAutoScalingGroup operation.

Constructs a fluent builder for the DeleteLaunchConfiguration operation.

Constructs a fluent builder for the DeleteLifecycleHook operation.

Constructs a fluent builder for the DeleteNotificationConfiguration operation.

Constructs a fluent builder for the DeletePolicy operation.

Constructs a fluent builder for the DeleteScheduledAction operation.

Constructs a fluent builder for the DeleteTags operation.

Constructs a fluent builder for the DeleteWarmPool operation.

Constructs a fluent builder for the DescribeAccountLimits operation.

Constructs a fluent builder for the DescribeAdjustmentTypes operation.

Constructs a fluent builder for the DescribeAutoScalingGroups operation. This operation supports pagination; See into_paginator().

Constructs a fluent builder for the DescribeAutoScalingInstances operation. This operation supports pagination; See into_paginator().

Constructs a fluent builder for the DescribeAutoScalingNotificationTypes operation.

Constructs a fluent builder for the DescribeInstanceRefreshes operation.

Constructs a fluent builder for the DescribeLaunchConfigurations operation. This operation supports pagination; See into_paginator().

Constructs a fluent builder for the DescribeLifecycleHooks operation.

Constructs a fluent builder for the DescribeLifecycleHookTypes operation.

Constructs a fluent builder for the DescribeLoadBalancers operation.

Constructs a fluent builder for the DescribeLoadBalancerTargetGroups operation.

Constructs a fluent builder for the DescribeMetricCollectionTypes operation.

Constructs a fluent builder for the DescribeNotificationConfigurations operation. This operation supports pagination; See into_paginator().

Constructs a fluent builder for the DescribePolicies operation. This operation supports pagination; See into_paginator().

Constructs a fluent builder for the DescribeScalingActivities operation. This operation supports pagination; See into_paginator().

Constructs a fluent builder for the DescribeScalingProcessTypes operation.

Constructs a fluent builder for the DescribeScheduledActions operation. This operation supports pagination; See into_paginator().

Constructs a fluent builder for the DescribeTags operation. This operation supports pagination; See into_paginator().

Constructs a fluent builder for the DescribeTerminationPolicyTypes operation.

Constructs a fluent builder for the DescribeWarmPool operation.

Constructs a fluent builder for the DetachInstances operation.

Constructs a fluent builder for the DetachLoadBalancers operation.

Constructs a fluent builder for the DetachLoadBalancerTargetGroups operation.

Constructs a fluent builder for the DisableMetricsCollection operation.

Constructs a fluent builder for the EnableMetricsCollection operation.

Constructs a fluent builder for the EnterStandby operation.

Constructs a fluent builder for the ExecutePolicy operation.

Constructs a fluent builder for the ExitStandby operation.

Constructs a fluent builder for the GetPredictiveScalingForecast operation.

Constructs a fluent builder for the PutLifecycleHook operation.

Constructs a fluent builder for the PutNotificationConfiguration operation.

Constructs a fluent builder for the PutScalingPolicy operation.

Constructs a fluent builder for the PutScheduledUpdateGroupAction operation.

Constructs a fluent builder for the PutWarmPool operation.

  • The fluent builder is configurable:
    • auto_scaling_group_name(impl Into<String>) / set_auto_scaling_group_name(Option<String>):

      The name of the Auto Scaling group.

    • max_group_prepared_capacity(i32) / set_max_group_prepared_capacity(Option<i32>):

      Specifies the maximum number of instances that are allowed to be in the warm pool or in any state except Terminated for the Auto Scaling group. This is an optional property. Specify it only if you do not want the warm pool size to be determined by the difference between the group’s maximum capacity and its desired capacity.

      If a value for MaxGroupPreparedCapacity is not specified, Amazon EC2 Auto Scaling launches and maintains the difference between the group’s maximum capacity and its desired capacity. If you specify a value for MaxGroupPreparedCapacity, Amazon EC2 Auto Scaling uses the difference between the MaxGroupPreparedCapacity and the desired capacity instead.

      The size of the warm pool is dynamic. Only when MaxGroupPreparedCapacity and MinSize are set to the same value does the warm pool have an absolute size.

      If the desired capacity of the Auto Scaling group is higher than the MaxGroupPreparedCapacity, the capacity of the warm pool is 0, unless you specify a value for MinSize. To remove a value that you previously set, include the property but specify -1 for the value.

    • min_size(i32) / set_min_size(Option<i32>):

      Specifies the minimum number of instances to maintain in the warm pool. This helps you to ensure that there is always a certain number of warmed instances available to handle traffic spikes. Defaults to 0 if not specified.

    • pool_state(WarmPoolState) / set_pool_state(Option<WarmPoolState>):

      Sets the instance state to transition to after the lifecycle actions are complete. Default is Stopped.

    • instance_reuse_policy(InstanceReusePolicy) / set_instance_reuse_policy(Option<InstanceReusePolicy>):

      Indicates whether instances in the Auto Scaling group can be returned to the warm pool on scale in. The default is to terminate instances in the Auto Scaling group when the group scales in.

  • On success, responds with PutWarmPoolOutput
  • On failure, responds with SdkError<PutWarmPoolError>

Constructs a fluent builder for the RecordLifecycleActionHeartbeat operation.

Constructs a fluent builder for the ResumeProcesses operation.

Constructs a fluent builder for the SetDesiredCapacity operation.

Constructs a fluent builder for the SetInstanceHealth operation.

Constructs a fluent builder for the SetInstanceProtection operation.

Constructs a fluent builder for the StartInstanceRefresh operation.

Constructs a fluent builder for the SuspendProcesses operation.

Constructs a fluent builder for the TerminateInstanceInAutoScalingGroup operation.

Constructs a fluent builder for the UpdateAutoScalingGroup operation.

Creates a client with the given service config and connector override.

Creates a new client from a shared config.

Creates a new client from the service Config.

Trait Implementations

Returns a copy of the value. Read more
Performs copy-assignment from source. Read more
Formats the value using the given formatter. Read more
Converts to this type from the input type.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Instruments this type with the current Span, returning an Instrumented wrapper. Read more

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning. Read more
Uses borrowed data to replace owned data, usually by cloning. Read more
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.
Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more