deleteDevice method

Future<void> deleteDevice({
  1. required String deviceArn,
})

Removes a device from Alexa For Business.

May throw NotFoundException. May throw ConcurrentModificationException. May throw InvalidCertificateAuthorityException.

Parameter deviceArn : The ARN of the device for which to request details.

Implementation

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