SetIdentityNotificationTopic Method
Sets the Bounce or Complaint notification topic for an identity.
Syntax
ANSI (Cross Platform) int SetIdentityNotificationTopic(const char* lpszIdentity, int iNotificationType, const char* lpszSnsTopic); Unicode (Windows) INT SetIdentityNotificationTopic(LPCWSTR lpszIdentity, INT iNotificationType, LPCWSTR lpszSnsTopic);
- (void)setIdentityNotificationTopic:(NSString*)identity :(int)notificationType :(NSString*)snsTopic;
#define MID_AMAZONSES_SETIDENTITYNOTIFICATIONTOPIC 16 CLOUDMAIL_EXTERNAL int CLOUDMAIL_CALL CloudMail_AmazonSES_Do(void *lpObj, int methid, int cparam, void *param[], int cbparam[], int64 *lpllVal);
Remarks
This method sets the Simple Notification Service (SNS) topic used by Amazon when reporting Bounce or Complaint notifications. The Identity parameter specifies the identity for which you are setting the notification topic.
The NotificationType parameter specifies whether you are setting the topic for Bounce or Complaint notifications. Possible values are:
NotificationType | Meaning |
0 | Bounce Notifications |
1 | Complaint Notifications |
The SnsTopic parameter specifies Amazon Resource Name (ARN) of the Simple Notification Service (SNS) topic. This value is of the form "arn:aws:sns:us-east-1:1234567890123456:mytopic" and is returned by Amazon when creating a new topic.
Error Handling (C++)
This method returns a result code; 0 indicates success, while a non-zero error code indicates that this method encountered an error during its execution. If an error occurs, the GetLastError() method can be called to retrieve the associated error message. (Note: This method's result code can also be obtained by calling the GetLastErrorCode() method after it returns.)