Lists the SSE connects in your account. Results are paginated. Use the NextToken parameter to retrieve additional results.
Parameters:
-
max_results
(Optional[MaxResults], default:
None
)
–
The maximum number of results to return.
-
next_token
(Optional[NextToken], default:
None
)
–
The token for the next page of results.
Raises:
Examples:
To list SSE connects
The following example lists the SSE connects in your account.
>>> await client.list_sse_connects()
Source code in docs_src/capo_networkmanager/_services/async_network_manager.py
| async def list_sse_connects(
self,
*,
config_overrides: Optional[AsyncNetworkManagerClientConfig] = None,
max_results: Optional[
"capo_networkmanager.types.max_results.MaxResults"
] = None,
next_token: Optional["capo_networkmanager.types.next_token.NextToken"] = None,
) -> "capo_networkmanager.types.list_sse_connects_response.ListSseConnectsResponse":
"""<p>Lists the SSE connects in your account. Results are paginated. Use the <code>NextToken</code> parameter to retrieve additional results.</p>
Args:
max_results: <p>The maximum number of results to return.</p>
next_token: <p>The token for the next page of results.</p>
Raises:
capo_networkmanager.errors.access_denied_exception.AccessDeniedException: <p>You do not have sufficient access to perform this action.</p>
capo_networkmanager.errors.internal_server_exception.InternalServerException: <p>The request has failed due to an internal error.</p>
capo_networkmanager.errors.throttling_exception.ThrottlingException: <p>The request was denied due to request throttling.</p>
capo_networkmanager.errors.validation_exception.ValidationException: <p>The input fails to satisfy the constraints.</p>
capo_networkmanager.errors.UnknownServiceError: The service returned an error code this client does not model.
Examples:
To list SSE connects
The following example lists the SSE connects in your account.
>>> await client.list_sse_connects()
"""
async def _handler(
req: "AsyncOperationRequest[capo_networkmanager.types.list_sse_connects_request.ListSseConnectsRequest]",
) -> AsyncOperationResponse[
"capo_networkmanager.types.list_sse_connects_response.ListSseConnectsResponse"
]:
import capo_networkmanager._operations.network_manager.list_sse_connects
(
output,
http_response,
) = await capo_networkmanager._operations.network_manager.list_sse_connects.async_list_sse_connects(
req.options, req.input
)
return AsyncOperationResponse(output=output, response=http_response)
interceptors_, options_ = self.operation_options(
config_overrides, OperationLogging("ListSseConnects")
)
input_: capo_networkmanager.types.list_sse_connects_request.ListSseConnectsRequest = {}
if max_results is not None:
input_["max_results"] = max_results
if next_token is not None:
input_["next_token"] = next_token
response = await aexecute_pipeline(
AsyncOperationRequest(input=input_, options=options_),
handler=_handler,
interceptors=list(interceptors_),
)
await response.response.aclose()
return response.output
|