deleteNetworkProfile method
Deletes a network profile by the network profile ARN.
May throw ResourceInUseException. May throw ConcurrentModificationException. May throw NotFoundException.
Parameter networkProfileArn
:
The ARN of the network profile associated with a device.
Implementation
Future<void> deleteNetworkProfile({
required String networkProfileArn,
}) async {
ArgumentError.checkNotNull(networkProfileArn, 'networkProfileArn');
final headers = <String, String>{
'Content-Type': 'application/x-amz-json-1.1',
'X-Amz-Target': 'AlexaForBusiness.DeleteNetworkProfile'
};
await _protocol.send(
method: 'POST',
requestUri: '/',
exceptionFnMap: _exceptionFns,
// TODO queryParams
headers: headers,
payload: {
'NetworkProfileArn': networkProfileArn,
},
);
}