Returns information about one SLO created in the account.
Parameters:
Raises:
Source code in docs_src/capo_application_signals/_services/async_application_signals.py
| async def get_service_level_objective(
self,
id: "capo_application_signals.types.service_level_objective_id.ServiceLevelObjectiveId",
*,
config_overrides: Optional[AsyncApplicationSignalsClientConfig] = None,
) -> "capo_application_signals.types.get_service_level_objective_output.GetServiceLevelObjectiveOutput":
"""<p>Returns information about one SLO created in the account. </p>
Args:
id: <p>The ARN or name of the SLO that you want to retrieve information about. You can find the ARNs of SLOs by using the <a href="https://docs.aws.amazon.com/AmazonCloudWatch/latest/APIReference/API_ListServiceLevelObjectives.html">ListServiceLevelObjectives</a> operation.</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.
"""
async def _handler(
req: "AsyncOperationRequest[capo_application_signals.types.get_service_level_objective_input.GetServiceLevelObjectiveInput]",
) -> AsyncOperationResponse[
"capo_application_signals.types.get_service_level_objective_output.GetServiceLevelObjectiveOutput"
]:
import capo_application_signals._operations.application_signals.get_service_level_objective
(
output,
http_response,
) = await capo_application_signals._operations.application_signals.get_service_level_objective.async_get_service_level_objective(
req.options, req.input
)
return AsyncOperationResponse(output=output, response=http_response)
interceptors_, options_ = self.operation_options(
config_overrides, OperationLogging("GetServiceLevelObjective")
)
input_: capo_application_signals.types.get_service_level_objective_input.GetServiceLevelObjectiveInput = {
"id": id
}
response = await aexecute_pipeline(
AsyncOperationRequest(input=input_, options=options_),
handler=_handler,
interceptors=list(interceptors_),
)
await response.response.aclose()
return response.output
|