getServiceProfile method

Future<GetServiceProfileResponse> getServiceProfile({
  1. required String id,
})

Gets information about a service profile.

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

Parameter id : The ID of the resource to get.

Implementation

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