Skip to content

SNSClient.create_platform_application

rboto-sns==0.4.0 · Service index · Types

Model summary (excerpt): Creates a platform application object for one of the supported push notification services, such as APNS and GCM (Firebase Cloud Messaging), to which devices and mobile apps may register. You must specify PlatformPrincipal and PlatformCredential attributes when using the CreatePlatformApplication action. PlatformPrincipal and PlatformCredential are received from the notification service. For...

Install and imports

python -m pip install "rboto[sns]==0.4.0"
from rboto import SNSClient
from rboto_sns.types import (
    CreatePlatformApplicationOutput,
)

Signature

async def create_platform_application(
    *,
    name: str,
    platform: str,
    attributes: dict[str, str],
) -> CreatePlatformApplicationOutput: ...

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)
name Yes Application names must be made up of only uppercase and lowercase ASCII letters, numbers, underscores, hyphens, and periods, and must be between 1 and 256 characters long.
platform Yes The following platforms are supported: ADM (Amazon Device Messaging), APNS (Apple Push Notification Service), APNS_SANDBOX, and GCM (Firebase Cloud Messaging).
attributes Yes For a list of attributes, see SetPlatformApplicationAttributes .

Output

CreatePlatformApplicationOutput.

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
platform_application_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.

CreatePlatformApplicationOutput

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.

Other service failures use the service base error; credential, transport and timeout failures use shared errors.

Service guide · Pinned model