list_connectors
async
¶
list_connectors(
*,
config_overrides: Optional[AsyncSecurityHubClientConfig] = 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/async_security_hub.py
6846 6847 6848 6849 6850 6851 6852 6853 6854 6855 6856 6857 6858 6859 6860 6861 6862 6863 6864 6865 6866 6867 6868 6869 6870 6871 6872 6873 6874 6875 6876 6877 6878 6879 6880 6881 6882 6883 6884 6885 6886 6887 6888 6889 6890 6891 6892 6893 6894 6895 6896 6897 6898 6899 6900 6901 6902 6903 6904 6905 6906 6907 6908 6909 6910 6911 6912 6913 6914 6915 6916 6917 6918 6919 6920 6921 6922 6923 6924 | |