deletePartnerEventSource method

Future<void> deletePartnerEventSource({
  1. required String account,
  2. required String name,
})

This operation is used by SaaS partners to delete a partner event source. This operation is not used by AWS customers.

When you delete an event source, the status of the corresponding partner event bus in the AWS customer account becomes DELETED.

May throw InternalException. May throw ConcurrentModificationException. May throw OperationDisabledException.

Parameter account : The AWS account ID of the AWS customer that the event source was created for.

Parameter name : The name of the event source to delete.

Implementation

Future<void> deletePartnerEventSource({
  required String account,
  required String name,
}) async {
  ArgumentError.checkNotNull(account, 'account');
  _s.validateStringLength(
    'account',
    account,
    12,
    12,
    isRequired: true,
  );
  ArgumentError.checkNotNull(name, 'name');
  _s.validateStringLength(
    'name',
    name,
    1,
    256,
    isRequired: true,
  );
  final headers = <String, String>{
    'Content-Type': 'application/x-amz-json-1.1',
    'X-Amz-Target': 'AWSEvents.DeletePartnerEventSource'
  };
  await _protocol.send(
    method: 'POST',
    requestUri: '/',
    exceptionFnMap: _exceptionFns,
    // TODO queryParams
    headers: headers,
    payload: {
      'Account': account,
      'Name': name,
    },
  );
}