Examples#
Auto-generated documentation for SNS type annotations stubs module mypy-boto3-sns.
Client#
Implicit type annotations#
Can be used with boto3-stubs[sns]
package installed.
Write your SNS
code as usual,
type checking and code completion should work out of the box.
# SNSClient usage example
from boto3.session import Session
session = Session()
client = session.client("sns") # (1)
result = client.add_permission() # (2)
- client: SNSClient
- result: EmptyResponseMetadataTypeDef
# ListEndpointsByPlatformApplicationPaginator usage example
from boto3.session import Session
session = Session()
client = session.client("sns") # (1)
paginator = client.get_paginator("list_endpoints_by_platform_application") # (2)
for item in paginator.paginate(...):
print(item) # (3)
- client: SNSClient
- paginator: