getService method

Future<GetServiceResponse> getService({
  1. required String serviceArn,
})

Retrieves a service by ARN.

May throw AccessDeniedException. May throw InternalServerException. May throw ResourceNotFoundException. May throw ValidationException.

Implementation

Future<GetServiceResponse> getService({
  required String serviceArn,
}) async {
  final $query = <String, List<String>>{
    'serviceArn': [serviceArn],
  };
  final response = await _protocol.send(
    payload: null,
    method: 'GET',
    requestUri: '/v2/get-service',
    queryParams: $query,
    exceptionFnMap: _exceptionFns,
  );
  return GetServiceResponse.fromJson(response);
}