deleteProfile method

Future<void> deleteProfile({
  1. String? profileArn,
})

Deletes a room profile by the profile ARN.

May throw NotFoundException. May throw ConcurrentModificationException.

Parameter profileArn : The ARN of the room profile to delete. Required.

Implementation

Future<void> deleteProfile({
  String? profileArn,
}) async {
  final headers = <String, String>{
    'Content-Type': 'application/x-amz-json-1.1',
    'X-Amz-Target': 'AlexaForBusiness.DeleteProfile'
  };
  await _protocol.send(
    method: 'POST',
    requestUri: '/',
    exceptionFnMap: _exceptionFns,
    // TODO queryParams
    headers: headers,
    payload: {
      if (profileArn != null) 'ProfileArn': profileArn,
    },
  );
}