getNetworkProfile method

Future<GetNetworkProfileResult> getNetworkProfile({
  1. required String arn,
})

Returns information about a network profile.

May throw ArgumentException. May throw LimitExceededException. May throw NotFoundException. May throw ServiceAccountException.

Parameter arn : The ARN of the network profile to return information about.

Implementation

Future<GetNetworkProfileResult> getNetworkProfile({
  required String arn,
}) async {
  final headers = <String, String>{
    'Content-Type': 'application/x-amz-json-1.1',
    'X-Amz-Target': 'DeviceFarm_20150623.GetNetworkProfile'
  };
  final jsonResponse = await _protocol.send(
    method: 'POST',
    requestUri: '/',
    exceptionFnMap: _exceptionFns,
    // TODO queryParams
    headers: headers,
    payload: {
      'arn': arn,
    },
  );

  return GetNetworkProfileResult.fromJson(jsonResponse.body);
}