start_capacity_task
¶
start_capacity_task(
outpost_identifier: OutpostIdentifier,
instance_pools: RequestedInstancePools,
*,
config_overrides: Optional[OutpostsClientConfig] = None,
order_id: Optional[OrderId] = None,
asset_id: Optional[AssetIdInput] = None,
instances_to_exclude: Optional[InstancesToExclude] = None,
dry_run: Optional[DryRun] = None,
task_action_on_blocking_instances: Optional[TaskActionOnBlockingInstances] = None,
) -> StartCapacityTaskOutput
Starts the specified capacity task. You can have one active capacity task for each order and each Outpost.
Parameters:
-
outpost_identifier(OutpostIdentifier) –The ID or ARN of the Outposts associated with the specified capacity task.
-
order_id(Optional[OrderId], default:None) –The ID of the Amazon Web Services Outposts order associated with the specified capacity task.
-
asset_id(Optional[AssetIdInput], default:None) –The ID of the Outpost asset. An Outpost asset can be a single server within an Outposts rack or an Outposts server configuration.
-
instance_pools(RequestedInstancePools) –The instance pools specified in the capacity task.
-
instances_to_exclude(Optional[InstancesToExclude], default:None) –List of user-specified running instances that must not be stopped in order to free up the capacity needed to run the capacity task.
-
dry_run(Optional[DryRun], default:None) –You can request a dry run to determine if the instance type and instance size changes is above or below available instance capacity. Requesting a dry run does not make any changes to your plan.
-
task_action_on_blocking_instances(Optional[TaskActionOnBlockingInstances], default:None) –Specify one of the following options in case an instance is blocking the capacity task from running.
-
WAIT_FOR_EVACUATION- Checks every 10 minutes over 48 hours to determine if instances have stopped and capacity is available to complete the task. -
FAIL_TASK- The capacity task fails.
-
Raises:
-
AccessDeniedException–You do not have permission to perform this operation.
-
ConflictException–Updating or deleting this resource can cause an inconsistent state.
-
InternalServerException–An internal error has occurred.
-
NotFoundException–The specified request is not valid.
-
ValidationException–A parameter is not valid.
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_outposts/_services/outposts.py
2780 2781 2782 2783 2784 2785 2786 2787 2788 2789 2790 2791 2792 2793 2794 2795 2796 2797 2798 2799 2800 2801 2802 2803 2804 2805 2806 2807 2808 2809 2810 2811 2812 2813 2814 2815 2816 2817 2818 2819 2820 2821 2822 2823 2824 2825 2826 2827 2828 2829 2830 2831 2832 2833 2834 2835 2836 2837 2838 2839 2840 2841 2842 2843 2844 2845 2846 2847 2848 2849 2850 2851 2852 2853 2854 2855 2856 | |