getNetworkProfile method

Future<GetNetworkProfileResponse> getNetworkProfile({
  1. required String networkProfileArn,
})

Gets the network profile details by the network profile ARN.

May throw NotFoundException. May throw InvalidSecretsManagerResourceException.

Parameter networkProfileArn : The ARN of the network profile associated with a device.

Implementation

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

  return GetNetworkProfileResponse.fromJson(jsonResponse.body);
}