AutoScalingPlansClient
Index > AutoScalingPlans > AutoScalingPlansClient
Auto-generated documentation for AutoScalingPlans type annotations stubs module mypy-boto3-autoscaling-plans.
AutoScalingPlansClient
Type annotations and code completion for boto3.client("autoscaling-plans")
.
boto3 documentation
from boto3.session import Session
from mypy_boto3_autoscaling_plans.client import AutoScalingPlansClient
def get_autoscaling-plans_client() -> AutoScalingPlansClient:
return Session().client("autoscaling-plans")
Exceptions
boto3
client exceptions are generated in runtime.
This class provides code completion for boto3.client("autoscaling-plans").exceptions
structure.
client = boto3.client("autoscaling-plans")
try:
do_something(client)
except (
client.ClientError,
client.ConcurrentUpdateException,
client.InternalServiceException,
client.InvalidNextTokenException,
client.LimitExceededException,
client.ObjectNotFoundException,
client.ValidationException,
) as e:
print(e)
from mypy_boto3_autoscaling_plans.client import Exceptions
def handle_error(exc: Exceptions.ClientError) -> None:
...
Methods
can_paginate
Check if an operation can be paginated.
Type annotations and code completion for boto3.client("autoscaling-plans").can_paginate
method.
boto3 documentation
close
Closes underlying endpoint connections.
Type annotations and code completion for boto3.client("autoscaling-plans").close
method.
boto3 documentation
create_scaling_plan
Creates a scaling plan.
Type annotations and code completion for boto3.client("autoscaling-plans").create_scaling_plan
method.
boto3 documentation
def create_scaling_plan(
self,
*,
ScalingPlanName: str,
ApplicationSource: ApplicationSourceTypeDef, # (1)
ScalingInstructions: Sequence[ScalingInstructionTypeDef], # (2)
) -> CreateScalingPlanResponseTypeDef: # (3)
...
kwargs: CreateScalingPlanRequestRequestTypeDef = { # (1)
"ScalingPlanName": ...,
"ApplicationSource": ...,
"ScalingInstructions": ...,
}
parent.create_scaling_plan(**kwargs)
delete_scaling_plan
Deletes the specified scaling plan.
Type annotations and code completion for boto3.client("autoscaling-plans").delete_scaling_plan
method.
boto3 documentation
def delete_scaling_plan(
self,
*,
ScalingPlanName: str,
ScalingPlanVersion: int,
) -> Dict[str, Any]:
...
kwargs: DeleteScalingPlanRequestRequestTypeDef = { # (1)
"ScalingPlanName": ...,
"ScalingPlanVersion": ...,
}
parent.delete_scaling_plan(**kwargs)
describe_scaling_plan_resources
Describes the scalable resources in the specified scaling plan.
Type annotations and code completion for boto3.client("autoscaling-plans").describe_scaling_plan_resources
method.
boto3 documentation
def describe_scaling_plan_resources(
self,
*,
ScalingPlanName: str,
ScalingPlanVersion: int,
MaxResults: int = ...,
NextToken: str = ...,
) -> DescribeScalingPlanResourcesResponseTypeDef: # (1)
...
kwargs: DescribeScalingPlanResourcesRequestRequestTypeDef = { # (1)
"ScalingPlanName": ...,
"ScalingPlanVersion": ...,
}
parent.describe_scaling_plan_resources(**kwargs)
describe_scaling_plans
Describes one or more of your scaling plans.
Type annotations and code completion for boto3.client("autoscaling-plans").describe_scaling_plans
method.
boto3 documentation
def describe_scaling_plans(
self,
*,
ScalingPlanNames: Sequence[str] = ...,
ScalingPlanVersion: int = ...,
ApplicationSources: Sequence[ApplicationSourceTypeDef] = ..., # (1)
MaxResults: int = ...,
NextToken: str = ...,
) -> DescribeScalingPlansResponseTypeDef: # (2)
...
kwargs: DescribeScalingPlansRequestRequestTypeDef = { # (1)
"ScalingPlanNames": ...,
}
parent.describe_scaling_plans(**kwargs)
generate_presigned_url
Generate a presigned url given a client, its method, and arguments.
Type annotations and code completion for boto3.client("autoscaling-plans").generate_presigned_url
method.
boto3 documentation
def generate_presigned_url(
self,
ClientMethod: str,
Params: Mapping[str, Any] = ...,
ExpiresIn: int = 3600,
HttpMethod: str = ...,
) -> str:
...
get_scaling_plan_resource_forecast_data
Retrieves the forecast data for a scalable resource.
Type annotations and code completion for boto3.client("autoscaling-plans").get_scaling_plan_resource_forecast_data
method.
boto3 documentation
def get_scaling_plan_resource_forecast_data(
self,
*,
ScalingPlanName: str,
ScalingPlanVersion: int,
ServiceNamespace: ServiceNamespaceType, # (1)
ResourceId: str,
ScalableDimension: ScalableDimensionType, # (2)
ForecastDataType: ForecastDataTypeType, # (3)
StartTime: Union[datetime, str],
EndTime: Union[datetime, str],
) -> GetScalingPlanResourceForecastDataResponseTypeDef: # (4)
...
- See ServiceNamespaceType
- See ScalableDimensionType
- See ForecastDataTypeType
- See GetScalingPlanResourceForecastDataResponseTypeDef
kwargs: GetScalingPlanResourceForecastDataRequestRequestTypeDef = { # (1)
"ScalingPlanName": ...,
"ScalingPlanVersion": ...,
"ServiceNamespace": ...,
"ResourceId": ...,
"ScalableDimension": ...,
"ForecastDataType": ...,
"StartTime": ...,
"EndTime": ...,
}
parent.get_scaling_plan_resource_forecast_data(**kwargs)
update_scaling_plan
Updates the specified scaling plan.
Type annotations and code completion for boto3.client("autoscaling-plans").update_scaling_plan
method.
boto3 documentation
def update_scaling_plan(
self,
*,
ScalingPlanName: str,
ScalingPlanVersion: int,
ApplicationSource: ApplicationSourceTypeDef = ..., # (1)
ScalingInstructions: Sequence[ScalingInstructionTypeDef] = ..., # (2)
) -> Dict[str, Any]:
...
kwargs: UpdateScalingPlanRequestRequestTypeDef = { # (1)
"ScalingPlanName": ...,
"ScalingPlanVersion": ...,
}
parent.update_scaling_plan(**kwargs)
get_paginator
Type annotations and code completion for boto3.client("autoscaling-plans").get_paginator
method with overloads.
client.get_paginator("describe_scaling_plan_resources")
-> DescribeScalingPlanResourcesPaginatorclient.get_paginator("describe_scaling_plans")
-> DescribeScalingPlansPaginator