Gets the account-specific endpoint for Configuration and Update Server (CUPS) protocol or LoRaWAN Network Server (LNS) connections.
Parameters:
-
service_type
(Optional[WirelessGatewayServiceType], default:
None
)
–
The service type for which to get endpoint information about. Can be CUPS for the Configuration and Update Server endpoint, or LNS for the LoRaWAN Network Server endpoint.
Raises:
Source code in docs_src/capo_iot_wireless/_services/io_t_wireless.py
| def get_service_endpoint(
self,
*,
config_overrides: Optional[IoTWirelessClientConfig] = None,
service_type: Optional[
"capo_iot_wireless.types.wireless_gateway_service_type.WirelessGatewayServiceType"
] = None,
) -> "capo_iot_wireless.types.get_service_endpoint_response.GetServiceEndpointResponse":
"""<p>Gets the account-specific endpoint for Configuration and Update Server (CUPS) protocol or LoRaWAN Network Server (LNS) connections.</p>
Args:
service_type: <p>The service type for which to get endpoint information about. Can be <code>CUPS</code> for the Configuration and Update Server endpoint, or <code>LNS</code> for the LoRaWAN Network Server endpoint.</p>
Raises:
capo_iot_wireless.errors.access_denied_exception.AccessDeniedException: <p>User does not have permission to perform this action.</p>
capo_iot_wireless.errors.internal_server_exception.InternalServerException: <p>An unexpected error occurred while processing a request.</p>
capo_iot_wireless.errors.throttling_exception.ThrottlingException: <p>The request was denied because it exceeded the allowed API request rate.</p>
capo_iot_wireless.errors.validation_exception.ValidationException: <p>The input did not meet the specified constraints.</p>
capo_iot_wireless.errors.UnknownServiceError: The service returned an error code this client does not model.
"""
def _handler(
req: "OperationRequest[capo_iot_wireless.types.get_service_endpoint_request.GetServiceEndpointRequest]",
) -> OperationResponse[
"capo_iot_wireless.types.get_service_endpoint_response.GetServiceEndpointResponse"
]:
import capo_iot_wireless._operations.iotwireless.get_service_endpoint
output, http_response = (
capo_iot_wireless._operations.iotwireless.get_service_endpoint.get_service_endpoint(
req.options, req.input
)
)
return OperationResponse(output=output, response=http_response)
interceptors_, options_ = self.operation_options(
config_overrides, OperationLogging("GetServiceEndpoint")
)
input_: capo_iot_wireless.types.get_service_endpoint_request.GetServiceEndpointRequest = {}
if service_type is not None:
input_["service_type"] = service_type
response = execute_pipeline(
OperationRequest(input=input_, options=options_),
handler=_handler,
interceptors=list(interceptors_),
)
response.response.close()
return response.output
|