Deletes the specified service level objective.
Parameters:
Raises:
Source code in docs_src/capo_application_signals/_services/application_signals.py
| def delete_service_level_objective(
self,
id: "capo_application_signals.types.service_level_objective_id.ServiceLevelObjectiveId",
*,
config_overrides: Optional[ApplicationSignalsClientConfig] = None,
) -> "capo_application_signals.types.delete_service_level_objective_output.DeleteServiceLevelObjectiveOutput":
"""<p>Deletes the specified service level objective.</p>
Args:
id: <p>The ARN or name of the service level objective to delete.</p>
Raises:
capo_application_signals.errors.resource_not_found_exception.ResourceNotFoundException: <p>Resource not found.</p>
capo_application_signals.errors.throttling_exception.ThrottlingException: <p>The request was throttled because of quota limits.</p>
capo_application_signals.errors.validation_exception.ValidationException: <p>The resource is not valid.</p>
capo_application_signals.errors.UnknownServiceError: The service returned an error code this client does not model.
"""
def _handler(
req: "OperationRequest[capo_application_signals.types.delete_service_level_objective_input.DeleteServiceLevelObjectiveInput]",
) -> OperationResponse[
"capo_application_signals.types.delete_service_level_objective_output.DeleteServiceLevelObjectiveOutput"
]:
import capo_application_signals._operations.application_signals.delete_service_level_objective
output, http_response = (
capo_application_signals._operations.application_signals.delete_service_level_objective.delete_service_level_objective(
req.options, req.input
)
)
return OperationResponse(output=output, response=http_response)
interceptors_, options_ = self.operation_options(
config_overrides, OperationLogging("DeleteServiceLevelObjective")
)
input_: capo_application_signals.types.delete_service_level_objective_input.DeleteServiceLevelObjectiveInput = {
"id": id
}
response = execute_pipeline(
OperationRequest(input=input_, options=options_),
handler=_handler,
interceptors=list(interceptors_),
)
response.response.close()
return response.output
|