rejectEngagementInvitation method

Future<void> rejectEngagementInvitation({
  1. required String catalog,
  2. required String identifier,
  3. String? rejectionReason,
})

This action rejects an EngagementInvitation that AWS shared. Rejecting an invitation indicates that the partner doesn't want to pursue the opportunity, and all related data will become inaccessible thereafter.

May throw AccessDeniedException. May throw ConflictException. May throw InternalServerException. May throw ResourceNotFoundException. May throw ThrottlingException. May throw ValidationException.

Parameter catalog : This is the catalog that's associated with the engagement invitation. Acceptable values are AWS or Sandbox, and these values determine the environment in which the opportunity is managed.

Parameter identifier : This is the unique identifier of the rejected EngagementInvitation. Providing the correct identifier helps to ensure that the intended invitation is rejected.

Parameter rejectionReason : This describes the reason for rejecting the engagement invitation, which helps AWS track usage patterns. Acceptable values include the following:

  • Customer problem unclear: The customer's problem isn't understood.
  • Next steps unclear: The next steps required to proceed aren't understood.
  • Unable to support: The partner is unable to provide support due to resource or capability constraints.
  • Duplicate of partner referral: The opportunity is a duplicate of an existing referral.
  • Other: Any reason not covered by other values.

Implementation

Future<void> rejectEngagementInvitation({
  required String catalog,
  required String identifier,
  String? rejectionReason,
}) async {
  final headers = <String, String>{
    'Content-Type': 'application/x-amz-json-1.0',
    'X-Amz-Target': 'AWSPartnerCentralSelling.RejectEngagementInvitation'
  };
  await _protocol.send(
    method: 'POST',
    requestUri: '/',
    exceptionFnMap: _exceptionFns,
    // TODO queryParams
    headers: headers,
    payload: {
      'Catalog': catalog,
      'Identifier': identifier,
      if (rejectionReason != null) 'RejectionReason': rejectionReason,
    },
  );
}