Returns a paginated list of network connectors in your account for the current Region. You can optionally filter results by connector state. Use the Marker parameter from a previous response to retrieve the next page of results.
Each item in the response includes the connector ARN, name, ID, type, current state, and last modified timestamp. To retrieve full configuration details for a specific connector, use GetNetworkConnector.
Parameters:
-
state
(Optional[NetworkConnectorState], default:
None
)
–
Optional filter to return only connectors in the specified state (for example, ACTIVE or FAILED).
-
marker
(Optional[String], default:
None
)
–
The pagination token from a previous ListNetworkConnectors response. Use this value to retrieve the next page of results.
-
max_items
(Optional[MaxHundredListItems], default:
None
)
–
The maximum number of connectors to return per page. Valid range: 1 to 100.
Raises:
-
InvalidParameterValueException
–
One of the parameters in the request is not valid. Check the error message for details about which parameter failed validation.
-
ServiceException
–
An internal service error occurred. Retry the request with exponential backoff.
-
TooManyRequestsException
–
The request was throttled due to exceeding the allowed request rate. Retry the request after a brief wait using exponential backoff.
-
UnknownServiceError
–
The service returned an error code this client does not model.
Source code in docs_src/capo_lambda_core/_services/async_lambda_core.py
| async def list_network_connectors(
self,
*,
config_overrides: Optional[AsyncLambdaCoreClientConfig] = None,
state: Optional[
"capo_lambda_core.types.network_connector_state.NetworkConnectorState"
] = None,
marker: Optional["capo_lambda_core.types.string.String"] = None,
max_items: Optional[
"capo_lambda_core.types.max_hundred_list_items.MaxHundredListItems"
] = None,
) -> "capo_lambda_core.types.list_network_connectors_response.ListNetworkConnectorsResponse":
"""<p>Returns a paginated list of network connectors in your account for the current Region. You can optionally filter results by connector state. Use the <code>Marker</code> parameter from a previous response to retrieve the next page of results.</p> <p>Each item in the response includes the connector ARN, name, ID, type, current state, and last modified timestamp. To retrieve full configuration details for a specific connector, use <code>GetNetworkConnector</code>.</p>
Args:
state: <p>Optional filter to return only connectors in the specified state (for example, <code>ACTIVE</code> or <code>FAILED</code>).</p>
marker: <p>The pagination token from a previous <code>ListNetworkConnectors</code> response. Use this value to retrieve the next page of results.</p>
max_items: <p>The maximum number of connectors to return per page. Valid range: 1 to 100.</p>
Raises:
capo_lambda_core.errors.invalid_parameter_value_exception.InvalidParameterValueException: <p>One of the parameters in the request is not valid. Check the error message for details about which parameter failed validation.</p>
capo_lambda_core.errors.service_exception.ServiceException: <p>An internal service error occurred. Retry the request with exponential backoff.</p>
capo_lambda_core.errors.too_many_requests_exception.TooManyRequestsException: <p>The request was throttled due to exceeding the allowed request rate. Retry the request after a brief wait using exponential backoff.</p>
capo_lambda_core.errors.UnknownServiceError: The service returned an error code this client does not model.
"""
async def _handler(
req: "AsyncOperationRequest[capo_lambda_core.types.list_network_connectors_request.ListNetworkConnectorsRequest]",
) -> AsyncOperationResponse[
"capo_lambda_core.types.list_network_connectors_response.ListNetworkConnectorsResponse"
]:
import capo_lambda_core._operations.lambda_core_api_service.list_network_connectors
(
output,
http_response,
) = await capo_lambda_core._operations.lambda_core_api_service.list_network_connectors.async_list_network_connectors(
req.options, req.input
)
return AsyncOperationResponse(output=output, response=http_response)
interceptors_, options_ = self.operation_options(
config_overrides, OperationLogging("ListNetworkConnectors")
)
input_: capo_lambda_core.types.list_network_connectors_request.ListNetworkConnectorsRequest = {}
if state is not None:
input_["state"] = state
if marker is not None:
input_["marker"] = marker
if max_items is not None:
input_["max_items"] = max_items
response = await aexecute_pipeline(
AsyncOperationRequest(input=input_, options=options_),
handler=_handler,
interceptors=list(interceptors_),
)
await response.response.aclose()
return response.output
|