list_capacity_tasks
async
¶
list_capacity_tasks(
*,
config_overrides: Optional[AsyncOutpostsClientConfig] = None,
outpost_identifier_filter: Optional[OutpostIdentifier] = None,
max_results: Optional[MaxResults1000] = None,
next_token: Optional[Token] = None,
capacity_task_status_filter: Optional[CapacityTaskStatusList] = None,
) -> ListCapacityTasksOutput
Lists the capacity tasks for your Amazon Web Services account.
Use filters to return specific results. If you specify multiple filters, the results include only the resources that match all of the specified filters. For a filter where you can specify multiple values, the results include items that match any of the values that you specify for the filter.
Parameters:
-
outpost_identifier_filter(Optional[OutpostIdentifier], default:None) –Filters the results by an Outpost ID or an Outpost ARN.
-
capacity_task_status_filter(Optional[CapacityTaskStatusList], default:None) –A list of statuses. For example,
REQUESTEDorWAITING_FOR_EVACUATION.
Raises:
-
AccessDeniedException–You do not have permission to perform this operation.
-
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
2101 2102 2103 2104 2105 2106 2107 2108 2109 2110 2111 2112 2113 2114 2115 2116 2117 2118 2119 2120 2121 2122 2123 2124 2125 2126 2127 2128 2129 2130 2131 2132 2133 2134 2135 2136 2137 2138 2139 2140 2141 2142 2143 2144 2145 2146 2147 2148 2149 2150 2151 2152 2153 2154 2155 2156 2157 2158 2159 2160 2161 2162 2163 2164 | |