SetPlatformApplicationAttributes() публичный Метод

Sets the attributes of the platform application object for the supported push notification services, such as APNS and GCM. For more information, see Using Amazon SNS Mobile Push Notifications. For information on configuring attributes for message delivery status, see Using Amazon SNS Application Attributes for Message Delivery Status.
/// Indicates that the user has been denied access to the requested resource. /// /// Indicates an internal service error. /// /// Indicates that a request parameter does not comply with the associated constraints. /// /// Indicates that the requested resource does not exist. ///
public SetPlatformApplicationAttributes ( SetPlatformApplicationAttributesRequest request ) : SetPlatformApplicationAttributesResponse
request SetPlatformApplicationAttributesRequest Container for the necessary parameters to execute the SetPlatformApplicationAttributes service method.
Результат SetPlatformApplicationAttributesResponse
Пример #1
0
    public static void SNSMobilePushAPIsSetPlatformApplicationAttributes()
    {
      #region SNSMobilePushAPIsSetPlatformApplicationAttributes
      var snsClient = new AmazonSimpleNotificationServiceClient();

      var request =
        new SetPlatformApplicationAttributesRequest
        {
          Attributes = new Dictionary<string, string>() 
            { { "EventDeliveryFailure", 
                "arn:aws:sns:us-east-1:80398EXAMPLE:CodingTestResults" } },
          PlatformApplicationArn =
            "arn:aws:sns:us-east-1:80398EXAMPLE:" +
            "app/GCM/TimeCardProcessingApplication"
        };

      snsClient.SetPlatformApplicationAttributes(request);
      #endregion
    }