- Navigation GuideYou are on a Command (operation) page with structural examples. Use the navigation breadcrumb if you would like to return to the Client landing page.
SetPlatformApplicationAttributesCommand
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 .
Example Syntax
Use a bare-bones client and the command you need to make an API call.
import { SNSClient, SetPlatformApplicationAttributesCommand } from "@aws-sdk/client-sns"; // ES Modules import
// const { SNSClient, SetPlatformApplicationAttributesCommand } = require("@aws-sdk/client-sns"); // CommonJS import
const client = new SNSClient(config);
const input = { // SetPlatformApplicationAttributesInput
PlatformApplicationArn: "STRING_VALUE", // required
Attributes: { // MapStringToString // required
"<keys>": "STRING_VALUE",
},
};
const command = new SetPlatformApplicationAttributesCommand(input);
const response = await client.send(command);
// {};
SetPlatformApplicationAttributesCommand Input
Parameter | Type | Description |
---|
Parameter | Type | Description |
---|---|---|
Attributes Required | Record<string, string> | undefined | A map of the platform application attributes. Attributes in this map include the following:
The following attributes only apply to
|
PlatformApplicationArn Required | string | undefined | |
SetPlatformApplicationAttributesCommand Output
Parameter | Type | Description |
---|
Parameter | Type | Description |
---|---|---|
$metadata Required | ResponseMetadata | Metadata pertaining to this request. |
Throws
Name | Fault | Details |
---|
Name | Fault | Details |
---|---|---|
AuthorizationErrorException | client | Indicates that the user has been denied access to the requested resource. |
InternalErrorException | server | Indicates an internal service error. |
InvalidParameterException | client | Indicates that a request parameter does not comply with the associated constraints. |
NotFoundException | client | Indicates that the requested resource does not exist. |
SNSServiceException | Base exception class for all service exceptions from SNS service. |