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
 
Configuration for accessing Amazon GetPlatformApplicationAttributes service

Inheritance Hierarchy

System.Object
  Amazon.Runtime.AmazonWebServiceResponse
    Amazon.SimpleNotificationService.Model.GetPlatformApplicationAttributesResult
      Amazon.SimpleNotificationService.Model.GetPlatformApplicationAttributesResponse

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

Syntax

C#
public class GetPlatformApplicationAttributesResponse : GetPlatformApplicationAttributesResult

The GetPlatformApplicationAttributesResponse 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.

Attributes include the following:

  • 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 ContentLength System.Int64 Inherited from Amazon.Runtime.AmazonWebServiceResponse.
Public Property GetPlatformApplicationAttributesResult Amazon.SimpleNotificationService.Model.GetPlatformApplicationAttributesResult Gets and sets the GetPlatformApplicationAttributesResult property. Represents the output of a GetPlatformApplicationAttributes operation.
Public Property HttpStatusCode System.Net.HttpStatusCode Inherited from Amazon.Runtime.AmazonWebServiceResponse.
Public Property ResponseMetadata Amazon.Runtime.ResponseMetadata Inherited from Amazon.Runtime.AmazonWebServiceResponse.

Examples

This example shows how to list all mobile push applications and their attributes. For each mobile push application, this example also lists its endpoints and their attributes.

List mobile push applications and endpoints example

var snsClient = new AmazonSimpleNotificationServiceClient();
var appsResponse = snsClient.ListPlatformApplications();

foreach (var app in appsResponse.PlatformApplications)
{
  Console.WriteLine();

  var appAttrsRequest = new GetPlatformApplicationAttributesRequest
  {
    PlatformApplicationArn = app.PlatformApplicationArn
  };

  var appAttrsResponse =
    snsClient.GetPlatformApplicationAttributes(appAttrsRequest);

  var endpointsByAppRequest =
    new ListEndpointsByPlatformApplicationRequest
    {
      PlatformApplicationArn = app.PlatformApplicationArn
    };

  var endpointsByAppResponse =
    snsClient.ListEndpointsByPlatformApplication(
    endpointsByAppRequest);

  Console.WriteLine("Application: " + app.PlatformApplicationArn);
  Console.WriteLine("  Properties: ");

  foreach (var attr in appAttrsResponse.Attributes)
  {
    Console.WriteLine("    " + attr.Key + ": " + attr.Value);
  }

  Console.WriteLine("  Endpoints: ");

  foreach (var endpoint in endpointsByAppResponse.Endpoints)
  {
    Console.WriteLine("     ARN: " + endpoint.EndpointArn);
    Console.WriteLine("     Attributes: ");

    foreach (var attr in endpoint.Attributes)
    {
      Console.WriteLine("       " + attr.Key + ": " + attr.Value);
    }
  }
}
      

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