AWS SDK Version 2 for .NET
API Reference

AWS services or capabilities described in AWS Documentation may vary by region/location. Click Getting Started with Amazon AWS to see specific differences applicable to the China (Beijing) Region.

.NET Framework 4.5
 
Container for the parameters to the SetPlatformApplicationAttributes operation. 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.

Inheritance Hierarchy

System.Object
  Amazon.Runtime.AmazonWebServiceRequest
    Amazon.SimpleNotificationService.AmazonSimpleNotificationServiceRequest
      Amazon.SimpleNotificationService.Model.SetPlatformApplicationAttributesRequest

Namespace: Amazon.SimpleNotificationService.Model
Assembly: AWSSDK.dll
Version: (assembly version)

Syntax

C#
public class SetPlatformApplicationAttributesRequest : AmazonSimpleNotificationServiceRequest
         IRequestEvents

The SetPlatformApplicationAttributesRequest type exposes the following members

Constructors

Properties

NameTypeDescription
Public Property Attributes System.Collections.Generic.Dictionary<System.String, System.String> Gets and sets the property Attributes.

A map of the platform application attributes. Attributes in this map include the following:

  • PlatformCredential -- The credential received from the notification service. For APNS/APNS_SANDBOX, PlatformCredential is "private key". For GCM, PlatformCredential is "API key". For ADM, PlatformCredential is "client secret".
  • PlatformPrincipal -- The principal received from the notification service. For APNS/APNS_SANDBOX, PlatformPrincipal is "SSL certificate". For GCM, PlatformPrincipal is not applicable. For ADM, PlatformPrincipal is "client id".
  • EventEndpointCreated -- Topic ARN to which EndpointCreated event notifications should be sent.
  • EventEndpointDeleted -- Topic ARN to which EndpointDeleted event notifications should be sent.
  • EventEndpointUpdated -- Topic ARN to which EndpointUpdate event notifications should be sent.
  • EventDeliveryFailure -- Topic ARN to which DeliveryFailure event notifications should be sent upon Direct Publish delivery failure (permanent) to one of the application's endpoints.
Public Property PlatformApplicationArn System.String Gets and sets the property PlatformApplicationArn.

PlatformApplicationArn for SetPlatformApplicationAttributes action.

Examples

This example shows how to set mobile push application attributes.

Set mobile push application attributes example

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);
      

Version Information

.NET Framework:
Supported in: 4.5, 4.0, 3.5

.NET for Windows Store apps:
Supported in: Windows 8.1, Windows 8

.NET for Windows Phone:
Supported in: Windows Phone 8.1, Windows Phone 8