@lap v0.3
# Machine-readable API spec. Each @endpoint block is one API call.
@api AWS Auto Scaling Plans
@version 2018-01-06
@auth AWS SigV4
@endpoints 6
@toc root(6)

@endpoint POST /
@desc Creates a scaling plan.
@required {ScalingPlanName: str, ApplicationSource: ApplicationSource, ScalingInstructions: [ScalingInstruction]}
@returns(200) {ScalingPlanVersion: int(i64)}

@endpoint POST /
@desc 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.
@required {ScalingPlanName: str, ScalingPlanVersion: int(i64)}

@endpoint POST /
@desc Describes the scalable resources in the specified scaling plan.
@required {ScalingPlanName: str, ScalingPlanVersion: int(i64)}
@optional {MaxResults: int, NextToken: str}
@returns(200) {ScalingPlanResources: [ScalingPlanResource]?, NextToken: str?}

@endpoint POST /
@desc Describes one or more of your scaling plans.
@optional {ScalingPlanNames: [str], ScalingPlanVersion: int(i64), ApplicationSources: [ApplicationSource], MaxResults: int, NextToken: str}
@returns(200) {ScalingPlans: [ScalingPlan]?, NextToken: str?}

@endpoint POST /
@desc 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.
@required {ScalingPlanName: str, ScalingPlanVersion: int(i64), ServiceNamespace: str, ResourceId: str, ScalableDimension: str, ForecastDataType: str, StartTime: str(timestamp), EndTime: str(timestamp)}
@returns(200) {Datapoints: [Datapoint]}

@endpoint POST /
@desc Updates the specified scaling plan. You cannot update a scaling plan if it is in the process of being created, updated, or deleted.
@required {ScalingPlanName: str, ScalingPlanVersion: int(i64)}
@optional {ApplicationSource: ApplicationSource, ScalingInstructions: [ScalingInstruction]}

@end
