getServiceLevelObjective method

Future<GetServiceLevelObjectiveOutput> getServiceLevelObjective({
  1. required String id,
})

Returns information about one SLO created in the account.

May throw ResourceNotFoundException. May throw ThrottlingException. May throw ValidationException.

Parameter id : The ARN or name of the SLO that you want to retrieve information about. You can find the ARNs of SLOs by using the ListServiceLevelObjectives operation.

Implementation

Future<GetServiceLevelObjectiveOutput> getServiceLevelObjective({
  required String id,
}) async {
  final response = await _protocol.send(
    payload: null,
    method: 'GET',
    requestUri: '/slo/${Uri.encodeComponent(id)}',
    exceptionFnMap: _exceptionFns,
  );
  return GetServiceLevelObjectiveOutput.fromJson(response);
}