SNSClient.create_platform_endpoint
rboto-sns==0.4.0 · Service index · Types
Model summary (excerpt): Creates an endpoint for a device and mobile app on one of the supported push notification services, such as GCM (Firebase Cloud Messaging) and APNS. CreatePlatformEndpoint requires the PlatformApplicationArn that is returned from CreatePlatformApplication . You can use the returned EndpointArn to send a message to a mobile app or by the Subscribe action for subscription to a topic. The...
Install and imports
Signature
async def create_platform_endpoint(
*,
platform_application_arn: str,
token: str,
custom_user_data: str | None = None,
attributes: dict[str, str] | None = None,
) -> CreatePlatformEndpointOutput: ...
Arguments without defaults are required. None omits an optional request argument. Static types do not validate resource existence, permissions, lengths, ranges, or conditional service requirements.
Arguments
| Argument | Required | Model notes (excerpt) |
|---|---|---|
platform_application_arn |
Yes | PlatformApplicationArn returned from CreatePlatformApplication is used to create a an endpoint. |
token |
Yes | Unique identifier created by the notification service for an app on a device. The specific name for Token will vary, depending on which notification service is being used. For example, when using APNS as the notification service, you need the device token. Alternatively, when using GCM (Firebase Cloud Messaging) or ADM, the device token equivalent is called the registration ID. |
custom_user_data |
No | Arbitrary user data to associate with the endpoint. Amazon SNS does not use this data. The data must be in UTF-8 format and less than 2KB. |
attributes |
No | For a list of attributes, see SetEndpointAttributes . |
Output
CreatePlatformEndpointOutput.
Read-only native attributes, accessed as response.field. Collection getters materialize Python values; to_dict() recursively materializes a mapping. Streams are consumed once.
| Field | Type | Presence | References |
|---|---|---|---|
endpoint_arn |
str | None |
Always present | — |
| None means a value can be absent. Output mappings include every declared key; optional input keys may be omitted. Unknown output enum/union variants are not automatically valid inputs.
Related types
Follow these links for nested inputs and outputs; recursive types link back to the same type page.
Pagination and streaming
No generated paginator for this operation.
No output stream.
Errors
Import from rboto_sns.exceptions:
AuthorizationError, InternalError, InvalidParameterError, NotFoundError.
Other service failures use the service base error; credential, transport and timeout failures use shared errors.