getServiceNetwork method

Future<GetServiceNetworkResponse> getServiceNetwork({
  1. required String serviceNetworkIdentifier,
})

Retrieves information about the specified service network.

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

Parameter serviceNetworkIdentifier : The ID or ARN of the service network.

Implementation

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