Deletes a system. New deployments can't contain the system after its deletion. Existing deployments that contain the system will continue to work because they use a snapshot of the system that is taken when it is deployed.
Parameters:
-
id
(Urn)
–
The ID of the system to be deleted.
The ID should be in the following format.
urn:tdm:REGION/ACCOUNT ID/default:system:SYSTEMNAME
Raises:
Source code in docs_src/capo_iotthingsgraph/_services/io_t_things_graph.py
| def delete_system_template(
self,
id: "capo_iotthingsgraph.types.urn.Urn",
*,
config_overrides: Optional[IoTThingsGraphClientConfig] = None,
) -> "capo_iotthingsgraph.types.delete_system_template_response.DeleteSystemTemplateResponse":
"""<p>Deletes a system. New deployments can't contain the system after its deletion. Existing deployments that contain the system will continue to work because they use a snapshot of the system that is taken when it is deployed.</p>
Args:
id: <p>The ID of the system to be deleted.</p> <p>The ID should be in the following format.</p> <p> <code>urn:tdm:REGION/ACCOUNT ID/default:system:SYSTEMNAME</code> </p>
Raises:
capo_iotthingsgraph.errors.internal_failure_exception.InternalFailureException: <p></p>
capo_iotthingsgraph.errors.invalid_request_exception.InvalidRequestException: <p></p>
capo_iotthingsgraph.errors.resource_in_use_exception.ResourceInUseException: <p></p>
capo_iotthingsgraph.errors.throttling_exception.ThrottlingException: <p></p>
capo_iotthingsgraph.errors.UnknownServiceError: The service returned an error code this client does not model.
"""
def _handler(
req: "OperationRequest[capo_iotthingsgraph.types.delete_system_template_request.DeleteSystemTemplateRequest]",
) -> OperationResponse[
"capo_iotthingsgraph.types.delete_system_template_response.DeleteSystemTemplateResponse"
]:
import capo_iotthingsgraph._operations.iot_things_graph_front_end_service.delete_system_template
output, http_response = (
capo_iotthingsgraph._operations.iot_things_graph_front_end_service.delete_system_template.delete_system_template(
req.options, req.input
)
)
return OperationResponse(output=output, response=http_response)
interceptors_, options_ = self.operation_options(
config_overrides, OperationLogging("DeleteSystemTemplate")
)
input_: capo_iotthingsgraph.types.delete_system_template_request.DeleteSystemTemplateRequest = {
"id": id
}
response = execute_pipeline(
OperationRequest(input=input_, options=options_),
handler=_handler,
interceptors=list(interceptors_),
)
response.response.close()
return response.output
|