list_connectors
¶
list_connectors(
*,
config_overrides: Optional[Inspector2ClientConfig] = None,
max_results: Optional[int] = None,
next_token: Optional[ConnectorNextToken] = None,
filter_criteria: Optional[ConnectorFilterCriteria] = None,
) -> ListConnectorsResponse
Lists connectors in your account. Results are paginated. Use the nextToken parameter to retrieve the next page of results.
Parameters:
-
max_results(Optional[int], default:None) –The maximum number of results to return in a single call. To retrieve the remaining results, make another request with the
nextTokenvalue returned from this request. -
next_token(Optional[ConnectorNextToken], default:None) –A token to use for paginating results. Set this value to null for the first request. For subsequent calls, use the
nextTokenvalue returned from the previous request. -
filter_criteria(Optional[ConnectorFilterCriteria], default:None) –The filter criteria to apply to the list of connectors.
Raises:
-
AccessDeniedException–You do not have sufficient access to perform this action.
For
Enable, you receive this error if you attempt to use a feature in an unsupported Amazon Web Services Region. -
InternalServerException–The request has failed due to an internal failure of the Amazon Inspector service.
-
ThrottlingException–The limit on the number of requests per second was exceeded.
-
ValidationException–The request has failed validation due to missing required fields or having invalid inputs.
-
UnknownServiceError–The service returned an error code this client does not model.
Examples:
List all Azure customer-managed connectors
>>> client.list_connectors(max_results=10, filter_criteria={'provider': [{'comparison': 'EQUALS', 'value': 'AZURE'}], 'connectorType': [{'comparison': 'EQUALS', 'value': 'CUSTOMER_MANAGED'}]})
Source code in docs_src/capo_inspector2/_services/inspector2.py
3524 3525 3526 3527 3528 3529 3530 3531 3532 3533 3534 3535 3536 3537 3538 3539 3540 3541 3542 3543 3544 3545 3546 3547 3548 3549 3550 3551 3552 3553 3554 3555 3556 3557 3558 3559 3560 3561 3562 3563 3564 3565 3566 3567 3568 3569 3570 3571 3572 3573 3574 3575 3576 3577 3578 3579 3580 3581 3582 3583 3584 3585 3586 3587 3588 3589 3590 3591 3592 3593 3594 3595 3596 3597 3598 3599 3600 3601 3602 3603 3604 3605 3606 3607 3608 3609 3610 | |