Soto icon



Service object for interacting with AWS AutoScalingPlans service.

public struct AutoScalingPlans: AWSService 
AWS Auto Scaling
     <p>Use AWS Auto Scaling to create scaling plans for your applications to
     automatically scale your scalable AWS resources. </p>
        <b>API Summary</b>
     <p>You can use the AWS Auto Scaling service API to accomplish the following tasks:</p>
           <p>Create and manage scaling plans</p>
           <p>Define target tracking scaling policies to dynamically scale your resources based
           on utilization</p>
           <p>Scale Amazon EC2 Auto Scaling groups using predictive scaling and dynamic scaling to scale your
           Amazon EC2 capacity faster</p>
           <p>Set minimum and maximum capacity limits</p>
           <p>Retrieve information on existing scaling plans</p>
           <p>Access current forecast data and historical forecast data for up to 56 days
     <p>To learn more about AWS Auto Scaling, including information about granting IAM users required
     permissions for AWS Auto Scaling actions, see the <a href="">AWS Auto Scaling User Guide</a>. </p>





Initialize the AutoScalingPlans client

public init(
        client: AWSClient,
        region: SotoCore.Region? = nil,
        partition: AWSPartition = .aws,
        endpoint: String? = nil,
        timeout: TimeAmount? = nil,
        byteBufferAllocator: ByteBufferAllocator = ByteBufferAllocator(),
        options: AWSServiceConfig.Options = []


  • client: AWSClient used to process requests
  • region: Region of server you want to communicate with. This will override the partition parameter.
  • partition: AWS partition where service resides, standard (.aws), china (.awscn), government (.awsusgov).
  • endpoint: Custom endpoint URL to use instead of standard AWS servers
  • timeout: Timeout value for HTTP requests


Initializer required by AWSService.with(middlewares:​timeout:​byteBufferAllocator:​options). You are not able to use this initializer directly as there are no public initializers for AWSServiceConfig.Patch. Please use AWSService.with(middlewares:​timeout:​byteBufferAllocator:​options) instead.

public init(from: AutoScalingPlans, patch: AWSServiceConfig.Patch) 



Client used for communication with AWS

public let client: AWSClient


Service configuration

public let config: AWSServiceConfig



public func createScalingPlan(_ input: CreateScalingPlanRequest, logger: Logger = AWSClient.loggingDisabled, on eventLoop: EventLoop? = nil) -> EventLoopFuture<CreateScalingPlanResponse> 

Creates a scaling plan.


public func deleteScalingPlan(_ input: DeleteScalingPlanRequest, logger: Logger = AWSClient.loggingDisabled, on eventLoop: EventLoop? = nil) -> EventLoopFuture<DeleteScalingPlanResponse> 

Deletes the specified scaling plan.

Deleting a scaling plan deletes the underlying ScalingInstruction for all of the scalable resources that are covered by the plan.

If the plan has launched resources or has scaling activities in progress, you must delete those resources separately.


public func describeScalingPlanResources(_ input: DescribeScalingPlanResourcesRequest, logger: Logger = AWSClient.loggingDisabled, on eventLoop: EventLoop? = nil) -> EventLoopFuture<DescribeScalingPlanResourcesResponse> 

Describes the scalable resources in the specified scaling plan.


public func describeScalingPlans(_ input: DescribeScalingPlansRequest, logger: Logger = AWSClient.loggingDisabled, on eventLoop: EventLoop? = nil) -> EventLoopFuture<DescribeScalingPlansResponse> 

Describes one or more of your scaling plans.


public func getScalingPlanResourceForecastData(_ input: GetScalingPlanResourceForecastDataRequest, logger: Logger = AWSClient.loggingDisabled, on eventLoop: EventLoop? = nil) -> EventLoopFuture<GetScalingPlanResourceForecastDataResponse> 

Retrieves the forecast data for a scalable resource.

Capacity forecasts are represented as predicted values, or data points, that are calculated using historical data points from a specified CloudWatch load metric. Data points are available for up to 56 days.


public func updateScalingPlan(_ input: UpdateScalingPlanRequest, logger: Logger = AWSClient.loggingDisabled, on eventLoop: EventLoop? = nil) -> EventLoopFuture<UpdateScalingPlanResponse> 

Updates the specified scaling plan.

You cannot update a scaling plan if it is in the process of being created, updated, or deleted.