deleteRelay method

Future<void> deleteRelay({
  1. required String relayId,
})

Deletes an existing relay resource.

May throw ConflictException. May throw ResourceNotFoundException. May throw ValidationException.

Parameter relayId : The unique relay identifier.

Implementation

Future<void> deleteRelay({
  required String relayId,
}) async {
  final headers = <String, String>{
    'Content-Type': 'application/x-amz-json-1.0',
    'X-Amz-Target': 'MailManagerSvc.DeleteRelay'
  };
  await _protocol.send(
    method: 'POST',
    requestUri: '/',
    exceptionFnMap: _exceptionFns,
    // TODO queryParams
    headers: headers,
    payload: {
      'RelayId': relayId,
    },
  );
}