list_log_sources
async
¶
list_log_sources(
*,
config_overrides: Optional[AsyncSecurityLakeClientConfig] = None,
accounts: Optional[AccountList] = None,
regions: Optional[RegionList] = None,
sources: Optional[LogSourceResourceList] = None,
max_results: Optional[MaxResults] = None,
next_token: Optional[NextToken] = None,
) -> ListLogSourcesResponse
Retrieves the log sources.
Parameters:
-
accounts(Optional[AccountList], default:None) –The list of Amazon Web Services accounts for which log sources are displayed.
-
regions(Optional[RegionList], default:None) –The list of Regions for which log sources are displayed.
-
sources(Optional[LogSourceResourceList], default:None) –The list of sources for which log sources are displayed.
-
max_results(Optional[MaxResults], default:None) –The maximum number of accounts for which the log sources are displayed.
-
next_token(Optional[NextToken], default:None) –If nextToken is returned, there are more results available. You can repeat the call using the returned token to retrieve the next page.
Raises:
-
AccessDeniedException–You do not have sufficient access to perform this action. Access denied errors appear when Amazon Security Lake explicitly or implicitly denies an authorization request. An explicit denial occurs when a policy contains a Deny statement for the specific Amazon Web Services action. An implicit denial occurs when there is no applicable Deny statement and also no applicable Allow statement.
-
BadRequestException–The request is malformed or contains an error such as an invalid parameter value or a missing required parameter.
-
ConflictException–Occurs when a conflict with a previous successful write is detected. This generally occurs when the previous write did not have time to propagate to the host serving the current request. A retry (with appropriate backoff logic) is the recommended response to this exception.
-
InternalServerException–Internal service exceptions are sometimes caused by transient issues. Before you start troubleshooting, perform the operation again.
-
ResourceNotFoundException–The resource could not be found.
-
ThrottlingException–The limit on the number of requests per second was exceeded.
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_securitylake/_services/async_security_lake.py
1396 1397 1398 1399 1400 1401 1402 1403 1404 1405 1406 1407 1408 1409 1410 1411 1412 1413 1414 1415 1416 1417 1418 1419 1420 1421 1422 1423 1424 1425 1426 1427 1428 1429 1430 1431 1432 1433 1434 1435 1436 1437 1438 1439 1440 1441 1442 1443 1444 1445 1446 1447 1448 1449 1450 1451 1452 1453 1454 1455 1456 1457 1458 1459 1460 1461 1462 1463 | |