Deletes a wireless gateway.
When deleting a wireless gateway, you might run into duplication errors for the following reasons.
To avoid this error, make sure that you use unique identifiers and parameters for each request within the specified time period.
Parameters:
Raises:
Source code in docs_src/capo_iot_wireless/_services/io_t_wireless.py
| def delete_wireless_gateway(
self,
id: "capo_iot_wireless.types.wireless_gateway_id.WirelessGatewayId",
*,
config_overrides: Optional[IoTWirelessClientConfig] = None,
) -> "capo_iot_wireless.types.delete_wireless_gateway_response.DeleteWirelessGatewayResponse":
"""<p>Deletes a wireless gateway.</p> <note> <p>When deleting a wireless gateway, you might run into duplication errors for the following reasons.</p> <ul> <li> <p>If you specify a <code>GatewayEui</code> value that already exists.</p> </li> <li> <p>If you used a <code>ClientRequestToken</code> with the same parameters within the last 10 minutes.</p> </li> </ul> <p>To avoid this error, make sure that you use unique identifiers and parameters for each request within the specified time period.</p> </note>
Args:
id: <p>The ID of the resource to delete.</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.resource_not_found_exception.ResourceNotFoundException: <p>Resource does not exist.</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.delete_wireless_gateway_request.DeleteWirelessGatewayRequest]",
) -> OperationResponse[
"capo_iot_wireless.types.delete_wireless_gateway_response.DeleteWirelessGatewayResponse"
]:
import capo_iot_wireless._operations.iotwireless.delete_wireless_gateway
output, http_response = (
capo_iot_wireless._operations.iotwireless.delete_wireless_gateway.delete_wireless_gateway(
req.options, req.input
)
)
return OperationResponse(output=output, response=http_response)
interceptors_, options_ = self.operation_options(
config_overrides, OperationLogging("DeleteWirelessGateway")
)
input_: capo_iot_wireless.types.delete_wireless_gateway_request.DeleteWirelessGatewayRequest = {
"id": id
}
response = execute_pipeline(
OperationRequest(input=input_, options=options_),
handler=_handler,
interceptors=list(interceptors_),
)
response.response.close()
return response.output
|