start_capacity_task
async
¶
start_capacity_task(
outpost_identifier: OutpostIdentifier,
instance_pools: RequestedInstancePools,
*,
config_overrides: Optional[AsyncOutpostsClientConfig] = 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/async_outposts.py
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 2857 2858 2859 2860 2861 2862 2863 2864 2865 2866 2867 2868 2869 2870 2871 2872 2873 2874 2875 2876 2877 2878 2879 2880 2881 2882 2883 2884 2885 2886 2887 2888 2889 2890 2891 2892 2893 2894 2895 2896 2897 2898 2899 2900 | |