SNSServiceResource#
Auto-generated documentation for SNS type annotations stubs module mypy-boto3-sns.
SNSServiceResource#
Type annotations and code completion for boto3.resource("sns")
, included resources and collections.
boto3 documentation
# SNSServiceResource usage example
from mypy_boto3_sns.service_resource import SNSServiceResource
def get_sns_resource() -> SNSServiceResource:
return boto3.resource("sns")
Attributes#
-
meta
: SNSResourceMeta -
platform_applications
: ServiceResourcePlatformApplicationsCollection -
subscriptions
: ServiceResourceSubscriptionsCollection -
topics
: ServiceResourceTopicsCollection
Collections#
ServiceResourcePlatformApplicationsCollection#
Provides access to PlatformApplication resource.
Type annotations and code completion for boto3.resource("sns").platform_applications
collection.
boto3 documentation
# ServiceResourcePlatformApplicationsCollection usage example
from mypy_boto3_sns.service_resource import ServiceResourcePlatformApplicationsCollection
def get_collection() -> ServiceResourcePlatformApplicationsCollection:
return boto3.resource("sns").platform_applications
ServiceResourceSubscriptionsCollection#
Provides access to Subscription resource.
Type annotations and code completion for boto3.resource("sns").subscriptions
collection.
boto3 documentation
# ServiceResourceSubscriptionsCollection usage example
from mypy_boto3_sns.service_resource import ServiceResourceSubscriptionsCollection
def get_collection() -> ServiceResourceSubscriptionsCollection:
return boto3.resource("sns").subscriptions
ServiceResourceTopicsCollection#
Provides access to Topic resource.
Type annotations and code completion for boto3.resource("sns").topics
collection.
boto3 documentation
# ServiceResourceTopicsCollection usage example
from mypy_boto3_sns.service_resource import ServiceResourceTopicsCollection
def get_collection() -> ServiceResourceTopicsCollection:
return boto3.resource("sns").topics
Methods#
SNSServiceResource.PlatformApplication method#
Creates a PlatformApplication resource.
Type annotations and code completion for boto3.resource("sns").PlatformApplication
method.
boto3 documentation
# PlatformApplication method definition
def PlatformApplication(
self,
arn: str,
) -> PlatformApplication:
...
SNSServiceResource.PlatformEndpoint method#
Creates a PlatformEndpoint resource.
Type annotations and code completion for boto3.resource("sns").PlatformEndpoint
method.
boto3 documentation
# PlatformEndpoint method definition
def PlatformEndpoint(
self,
arn: str,
) -> PlatformEndpoint:
...
SNSServiceResource.Subscription method#
Creates a Subscription resource.
Type annotations and code completion for boto3.resource("sns").Subscription
method.