list_campaigns
async
¶
list_campaigns(
*,
config_overrides: Optional[AsyncIoTFleetWiseClientConfig] = None,
next_token: Optional[nextToken] = None,
max_results: Optional[maxResults] = None,
status: Optional[statusStr] = None,
list_response_scope: Optional[ListResponseScope] = None,
) -> ListCampaignsResponse
Lists information about created campaigns.
This API operation uses pagination. Specify the nextToken parameter in the request to return more results.
Parameters:
-
next_token(Optional[nextToken], default:None) –A pagination token for the next set of results.
If the results of a search are large, only a portion of the results are returned, and a
nextTokenpagination token is returned in the response. To retrieve the next set of results, reissue the search request and include the returned token. When all results have been returned, the response does not contain a pagination token value. -
max_results(Optional[maxResults], default:None) –The maximum number of items to return, between 1 and 100, inclusive.
-
status(Optional[statusStr], default:None) –An optional parameter to filter the results by the status of each created campaign in your account. The status can be one of:
CREATING,WAITING_FOR_APPROVAL,RUNNING, orSUSPENDED. -
list_response_scope(Optional[ListResponseScope], default:None) –When you set the
listResponseScopeparameter toMETADATA_ONLY, the list response includes: campaign name, Amazon Resource Name (ARN), creation time, and last modification time.
Raises:
-
InternalServerException–The request couldn't be completed because the server temporarily failed.
-
AccessDeniedException–You don't have sufficient permission to perform this action.
-
ThrottlingException–The request couldn't be completed due to throttling.
-
ValidationException–The input fails to satisfy the constraints specified by an Amazon Web Services service.
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_iotfleetwise/_services/async_io_t_fleet_wise.py
1314 1315 1316 1317 1318 1319 1320 1321 1322 1323 1324 1325 1326 1327 1328 1329 1330 1331 1332 1333 1334 1335 1336 1337 1338 1339 1340 1341 1342 1343 1344 1345 1346 1347 1348 1349 1350 1351 1352 1353 1354 1355 1356 1357 1358 1359 1360 1361 1362 1363 1364 1365 1366 1367 1368 1369 1370 1371 1372 1373 1374 1375 | |