Returns information about an SSE connect, including its state, link status, Regions, and peer health.
Parameters:
Raises:
Examples:
To get an SSE connect
The following example returns an SSE connect that is linked to the SSE provider and has an attachment in aa-example-1.
>>> client.get_sse_connect(sse_connect_id='sse-connect-1234567890abcdef0')
Source code in docs_src/capo_networkmanager/_services/network_manager.py
| def get_sse_connect(
self,
sse_connect_id: "capo_networkmanager.types.sse_connect_id.SseConnectId",
*,
config_overrides: Optional[NetworkManagerClientConfig] = None,
) -> "capo_networkmanager.types.get_sse_connect_response.GetSseConnectResponse":
"""<p>Returns information about an SSE connect, including its state, link status, Regions, and peer health.</p>
Args:
sse_connect_id: <p>The ID of the SSE connect.</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.resource_not_found_exception.ResourceNotFoundException: <p>The specified resource could not be found.</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 get an SSE connect
The following example returns an SSE connect that is linked to the SSE provider and has an attachment in aa-example-1.
>>> client.get_sse_connect(sse_connect_id='sse-connect-1234567890abcdef0')
"""
def _handler(
req: "OperationRequest[capo_networkmanager.types.get_sse_connect_request.GetSseConnectRequest]",
) -> OperationResponse[
"capo_networkmanager.types.get_sse_connect_response.GetSseConnectResponse"
]:
import capo_networkmanager._operations.network_manager.get_sse_connect
output, http_response = (
capo_networkmanager._operations.network_manager.get_sse_connect.get_sse_connect(
req.options, req.input
)
)
return OperationResponse(output=output, response=http_response)
interceptors_, options_ = self.operation_options(
config_overrides, OperationLogging("GetSseConnect")
)
input_: capo_networkmanager.types.get_sse_connect_request.GetSseConnectRequest = {
"sse_connect_id": sse_connect_id
}
response = execute_pipeline(
OperationRequest(input=input_, options=options_),
handler=_handler,
interceptors=list(interceptors_),
)
response.response.close()
return response.output
|