list_automation_rules
async
¶
list_automation_rules(
*,
config_overrides: Optional[AsyncComputeOptimizerAutomationClientConfig] = None,
filters: Optional[FilterList] = None,
max_results: Optional[int] = None,
next_token: Optional[NextToken] = None,
) -> ListAutomationRulesResponse
Lists the automation rules that match specified filters.
Parameters:
-
filters(Optional[FilterList], default:None) –The filters to apply to the list of automation rules.
-
max_results(Optional[int], default:None) –The maximum number of automation rules to return in a single response. Valid range is 1-1000.
-
next_token(Optional[NextToken], default:None) –A token used for pagination to retrieve the next set of results when the response is truncated.
Raises:
-
AccessDeniedException–You do not have sufficient permissions to perform this action.
-
ForbiddenException–You are not authorized to perform this action.
-
InternalServerException–An internal error occurred while processing the request.
-
InvalidParameterValueException–One or more parameter values are not valid.
-
OptInRequiredException–The account must be opted in to Compute Optimizer Automation before performing this action.
-
ServiceUnavailableException–The service is temporarily unavailable.
-
ThrottlingException–The request was denied due to request throttling.
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_compute_optimizer_automation/_services/async_compute_optimizer_automation.py
1267 1268 1269 1270 1271 1272 1273 1274 1275 1276 1277 1278 1279 1280 1281 1282 1283 1284 1285 1286 1287 1288 1289 1290 1291 1292 1293 1294 1295 1296 1297 1298 1299 1300 1301 1302 1303 1304 1305 1306 1307 1308 1309 1310 1311 1312 1313 1314 1315 1316 1317 1318 1319 1320 1321 1322 1323 1324 1325 1326 1327 1328 1329 | |