list_connectors
¶
list_connectors(
*,
config_overrides: Optional[SecurityHubClientConfig] = None,
next_token: Optional[NextToken] = None,
max_results: Optional[MaxResults] = None,
provider_name: Optional[CspmConnectorProviderName] = None,
connector_status: Optional[CspmConnectorStatus] = None,
enablement_status: Optional[CspmEnablementStatus] = None,
) -> ListConnectorsResponse
Lists the CSPM connectors and their metadata for the calling account.
Parameters:
-
next_token(Optional[NextToken], default:None) –The pagination token to request the next page of results.
-
max_results(Optional[MaxResults], default:None) –The maximum number of results to return.
-
provider_name(Optional[CspmConnectorProviderName], default:None) –The name of the cloud provider to filter connectors by.
-
connector_status(Optional[CspmConnectorStatus], default:None) –The connectivity status to filter connectors by.
-
enablement_status(Optional[CspmEnablementStatus], default:None) –The enablement status to filter connectors by.
Raises:
-
AccessDeniedException–You don't have permission to perform the action specified in the request.
-
ConflictException–The request causes conflict with the current state of the service resource.
-
InternalServerException–The request has failed due to an internal failure of the service.
-
InvalidAccessException–The account doesn't have permission to perform this action.
-
ResourceNotFoundException–The request was rejected because we can't find the specified resource.
-
ThrottlingException–The limit on the number of requests per second was exceeded.
-
ValidationException–The request has failed validation because it's missing required fields or has invalid inputs.
-
UnknownServiceError–The service returned an error code this client does not model.
Examples:
To list CSPM connectors This operation lists the CSPM connectors for the calling account.
Source code in docs_src/capo_securityhub/_services/security_hub.py
6752 6753 6754 6755 6756 6757 6758 6759 6760 6761 6762 6763 6764 6765 6766 6767 6768 6769 6770 6771 6772 6773 6774 6775 6776 6777 6778 6779 6780 6781 6782 6783 6784 6785 6786 6787 6788 6789 6790 6791 6792 6793 6794 6795 6796 6797 6798 6799 6800 6801 6802 6803 6804 6805 6806 6807 6808 6809 6810 6811 6812 6813 6814 6815 6816 6817 6818 6819 6820 6821 6822 6823 6824 6825 6826 6827 6828 6829 | |