SNS.Client.set_platform_application_attributes(**kwargs)¶Sets the attributes of the platform application object for the supported push notification services, such as APNS and GCM (Firebase Cloud Messaging). 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.
See also: AWS API Documentation
Request Syntax
response = client.set_platform_application_attributes(
PlatformApplicationArn='string',
Attributes={
'string': 'string'
}
)
[REQUIRED]
PlatformApplicationArn for SetPlatformApplicationAttributes action.
[REQUIRED]
A map of the platform application attributes. Attributes in this map include the following:
PlatformCredential – The credential received from the notification service.PlatformCredential is client secret.PlatformCredential is private key.PlatformCredential is signing key.PlatformCredential is API key.PlatformPrincipal – The principal received from the notification service.PlatformPrincipal is client id.PlatformPrincipal is SSL certificate.PlatformPrincipal is signing key ID.PlatformPrincipal .EventEndpointCreated – Topic ARN to which EndpointCreated event notifications are sent.EventEndpointDeleted – Topic ARN to which EndpointDeleted event notifications are sent.EventEndpointUpdated – Topic ARN to which EndpointUpdate event notifications are sent.EventDeliveryFailure – Topic ARN to which DeliveryFailure event notifications are sent upon Direct Publish delivery failure (permanent) to one of the application's endpoints.SuccessFeedbackRoleArn – IAM role ARN used to give Amazon SNS write access to use CloudWatch Logs on your behalf.FailureFeedbackRoleArn – IAM role ARN used to give Amazon SNS write access to use CloudWatch Logs on your behalf.SuccessFeedbackSampleRate – Sample rate percentage (0-100) of successfully delivered messages.The following attributes only apply to APNs token-based authentication:
ApplePlatformTeamID – The identifier that's assigned to your Apple developer account team.ApplePlatformBundleID – The bundle identifier that's assigned to your iOS app.None
Exceptions
SNS.Client.exceptions.InvalidParameterExceptionSNS.Client.exceptions.InternalErrorExceptionSNS.Client.exceptions.AuthorizationErrorExceptionSNS.Client.exceptions.NotFoundException