Typed dictionaries#
Auto-generated documentation for SNS type annotations stubs module mypy-boto3-sns.
AddPermissionInputRequestTypeDef#
# AddPermissionInputRequestTypeDef usage example
from mypy_boto3_sns.type_defs import AddPermissionInputRequestTypeDef
def get_value() -> AddPermissionInputRequestTypeDef:
return {
"TopicArn": ...,
"Label": ...,
"AWSAccountId": ...,
"ActionName": ...,
}
# AddPermissionInputRequestTypeDef definition
class AddPermissionInputRequestTypeDef(TypedDict):
TopicArn: str,
Label: str,
AWSAccountId: Sequence[str],
ActionName: Sequence[str],
AddPermissionInputTopicAddPermissionTypeDef#
# AddPermissionInputTopicAddPermissionTypeDef usage example
from mypy_boto3_sns.type_defs import AddPermissionInputTopicAddPermissionTypeDef
def get_value() -> AddPermissionInputTopicAddPermissionTypeDef:
return {
"Label": ...,
"AWSAccountId": ...,
"ActionName": ...,
}
# AddPermissionInputTopicAddPermissionTypeDef definition
class AddPermissionInputTopicAddPermissionTypeDef(TypedDict):
Label: str,
AWSAccountId: Sequence[str],
ActionName: Sequence[str],
BatchResultErrorEntryTypeDef#
# BatchResultErrorEntryTypeDef usage example
from mypy_boto3_sns.type_defs import BatchResultErrorEntryTypeDef
def get_value() -> BatchResultErrorEntryTypeDef:
return {
"Id": ...,
"Code": ...,
"SenderFault": ...,
}
# BatchResultErrorEntryTypeDef definition
class BatchResultErrorEntryTypeDef(TypedDict):
Id: str,
Code: str,
SenderFault: bool,
Message: NotRequired[str],
CheckIfPhoneNumberIsOptedOutInputRequestTypeDef#
# CheckIfPhoneNumberIsOptedOutInputRequestTypeDef usage example
from mypy_boto3_sns.type_defs import CheckIfPhoneNumberIsOptedOutInputRequestTypeDef
def get_value() -> CheckIfPhoneNumberIsOptedOutInputRequestTypeDef:
return {
"phoneNumber": ...,
}
# CheckIfPhoneNumberIsOptedOutInputRequestTypeDef definition
class CheckIfPhoneNumberIsOptedOutInputRequestTypeDef(TypedDict):
phoneNumber: str,
CheckIfPhoneNumberIsOptedOutResponseTypeDef#
# CheckIfPhoneNumberIsOptedOutResponseTypeDef usage example
from mypy_boto3_sns.type_defs import CheckIfPhoneNumberIsOptedOutResponseTypeDef
def get_value() -> CheckIfPhoneNumberIsOptedOutResponseTypeDef:
return {
"isOptedOut": ...,
"ResponseMetadata": ...,
}
# CheckIfPhoneNumberIsOptedOutResponseTypeDef definition
class CheckIfPhoneNumberIsOptedOutResponseTypeDef(TypedDict):
isOptedOut: bool,
ResponseMetadata: ResponseMetadataTypeDef, # (1)
ConfirmSubscriptionInputRequestTypeDef#
# ConfirmSubscriptionInputRequestTypeDef usage example
from mypy_boto3_sns.type_defs import ConfirmSubscriptionInputRequestTypeDef
def get_value() -> ConfirmSubscriptionInputRequestTypeDef:
return {
"TopicArn": ...,
"Token": ...,
}
# ConfirmSubscriptionInputRequestTypeDef definition
class ConfirmSubscriptionInputRequestTypeDef(TypedDict):
TopicArn: str,
Token: str,
AuthenticateOnUnsubscribe: NotRequired[str],
ConfirmSubscriptionInputTopicConfirmSubscriptionTypeDef#
# ConfirmSubscriptionInputTopicConfirmSubscriptionTypeDef usage example
from mypy_boto3_sns.type_defs import ConfirmSubscriptionInputTopicConfirmSubscriptionTypeDef
def get_value() -> ConfirmSubscriptionInputTopicConfirmSubscriptionTypeDef:
return {
"Token": ...,
}
# ConfirmSubscriptionInputTopicConfirmSubscriptionTypeDef definition
class ConfirmSubscriptionInputTopicConfirmSubscriptionTypeDef(TypedDict):
Token: str,
AuthenticateOnUnsubscribe: NotRequired[str],
ConfirmSubscriptionResponseTypeDef#
# ConfirmSubscriptionResponseTypeDef usage example
from mypy_boto3_sns.type_defs import ConfirmSubscriptionResponseTypeDef
def get_value() -> ConfirmSubscriptionResponseTypeDef:
return {
"SubscriptionArn": ...,
"ResponseMetadata": ...,
}
# ConfirmSubscriptionResponseTypeDef definition
class ConfirmSubscriptionResponseTypeDef(TypedDict):
SubscriptionArn: str,
ResponseMetadata: ResponseMetadataTypeDef, # (1)
CreateEndpointResponseTypeDef#
# CreateEndpointResponseTypeDef usage example
from mypy_boto3_sns.type_defs import CreateEndpointResponseTypeDef
def get_value() -> CreateEndpointResponseTypeDef:
return {
"EndpointArn": ...,
"ResponseMetadata": ...,
}
# CreateEndpointResponseTypeDef definition
class CreateEndpointResponseTypeDef(TypedDict):
EndpointArn: str,
ResponseMetadata: ResponseMetadataTypeDef, # (1)
CreatePlatformApplicationInputRequestTypeDef#
# CreatePlatformApplicationInputRequestTypeDef usage example
from mypy_boto3_sns.type_defs import CreatePlatformApplicationInputRequestTypeDef
def get_value() -> CreatePlatformApplicationInputRequestTypeDef:
return {
"Name": ...,
"Platform": ...,
"Attributes": ...,
}
# CreatePlatformApplicationInputRequestTypeDef definition
class CreatePlatformApplicationInputRequestTypeDef(TypedDict):
Name: str,
Platform: str,
Attributes: Mapping[str, str],
CreatePlatformApplicationInputServiceResourceCreatePlatformApplicationTypeDef#
# CreatePlatformApplicationInputServiceResourceCreatePlatformApplicationTypeDef usage example
from mypy_boto3_sns.type_defs import CreatePlatformApplicationInputServiceResourceCreatePlatformApplicationTypeDef
def get_value() -> CreatePlatformApplicationInputServiceResourceCreatePlatformApplicationTypeDef:
return {
"Name": ...,
"Platform": ...,
"Attributes": ...,
}
# CreatePlatformApplicationInputServiceResourceCreatePlatformApplicationTypeDef definition
class CreatePlatformApplicationInputServiceResourceCreatePlatformApplicationTypeDef(TypedDict):
Name: str,
Platform: str,
Attributes: Mapping[str, str],
CreatePlatformApplicationResponseTypeDef#
# CreatePlatformApplicationResponseTypeDef usage example
from mypy_boto3_sns.type_defs import CreatePlatformApplicationResponseTypeDef
def get_value() -> CreatePlatformApplicationResponseTypeDef:
return {
"PlatformApplicationArn": ...,
"ResponseMetadata": ...,
}
# CreatePlatformApplicationResponseTypeDef definition
class CreatePlatformApplicationResponseTypeDef(TypedDict):
PlatformApplicationArn: str,
ResponseMetadata: ResponseMetadataTypeDef, # (1)
CreatePlatformEndpointInputPlatformApplicationCreatePlatformEndpointTypeDef#
# CreatePlatformEndpointInputPlatformApplicationCreatePlatformEndpointTypeDef usage example
from mypy_boto3_sns.type_defs import CreatePlatformEndpointInputPlatformApplicationCreatePlatformEndpointTypeDef
def get_value() -> CreatePlatformEndpointInputPlatformApplicationCreatePlatformEndpointTypeDef:
return {
"Token": ...,
}
# CreatePlatformEndpointInputPlatformApplicationCreatePlatformEndpointTypeDef definition
class CreatePlatformEndpointInputPlatformApplicationCreatePlatformEndpointTypeDef(TypedDict):
Token: str,
CustomUserData: NotRequired[str],
Attributes: NotRequired[Mapping[str, str]],
CreatePlatformEndpointInputRequestTypeDef#
# CreatePlatformEndpointInputRequestTypeDef usage example
from mypy_boto3_sns.type_defs import CreatePlatformEndpointInputRequestTypeDef
def get_value() -> CreatePlatformEndpointInputRequestTypeDef:
return {
"PlatformApplicationArn": ...,
"Token": ...,
}
# CreatePlatformEndpointInputRequestTypeDef definition
class CreatePlatformEndpointInputRequestTypeDef(TypedDict):
PlatformApplicationArn: str,
Token: str,
CustomUserData: NotRequired[str],
Attributes: NotRequired[Mapping[str, str]],
CreateSMSSandboxPhoneNumberInputRequestTypeDef#
# CreateSMSSandboxPhoneNumberInputRequestTypeDef usage example
from mypy_boto3_sns.type_defs import CreateSMSSandboxPhoneNumberInputRequestTypeDef
def get_value() -> CreateSMSSandboxPhoneNumberInputRequestTypeDef:
return {
"PhoneNumber": ...,
}
# CreateSMSSandboxPhoneNumberInputRequestTypeDef definition
class CreateSMSSandboxPhoneNumberInputRequestTypeDef(TypedDict):
PhoneNumber: str,
LanguageCode: NotRequired[LanguageCodeStringType], # (1)
TagTypeDef#
# TagTypeDef usage example
from mypy_boto3_sns.type_defs import TagTypeDef
def get_value() -> TagTypeDef:
return {
"Key": ...,
"Value": ...,
}
# TagTypeDef definition
class TagTypeDef(TypedDict):
Key: str,
Value: str,
CreateTopicResponseTypeDef#
# CreateTopicResponseTypeDef usage example
from mypy_boto3_sns.type_defs import CreateTopicResponseTypeDef
def get_value() -> CreateTopicResponseTypeDef:
return {
"TopicArn": ...,
"ResponseMetadata": ...,
}
# CreateTopicResponseTypeDef definition
class CreateTopicResponseTypeDef(TypedDict):
TopicArn: str,
ResponseMetadata: ResponseMetadataTypeDef, # (1)
DeleteEndpointInputRequestTypeDef#
# DeleteEndpointInputRequestTypeDef usage example
from mypy_boto3_sns.type_defs import DeleteEndpointInputRequestTypeDef
def get_value() -> DeleteEndpointInputRequestTypeDef:
return {
"EndpointArn": ...,
}
# DeleteEndpointInputRequestTypeDef definition
class DeleteEndpointInputRequestTypeDef(TypedDict):
EndpointArn: str,
DeletePlatformApplicationInputRequestTypeDef#
# DeletePlatformApplicationInputRequestTypeDef usage example
from mypy_boto3_sns.type_defs import DeletePlatformApplicationInputRequestTypeDef
def get_value() -> DeletePlatformApplicationInputRequestTypeDef:
return {
"PlatformApplicationArn": ...,
}
# DeletePlatformApplicationInputRequestTypeDef definition
class DeletePlatformApplicationInputRequestTypeDef(TypedDict):
PlatformApplicationArn: str,
DeleteSMSSandboxPhoneNumberInputRequestTypeDef#
# DeleteSMSSandboxPhoneNumberInputRequestTypeDef usage example
from mypy_boto3_sns.type_defs import DeleteSMSSandboxPhoneNumberInputRequestTypeDef
def get_value() -> DeleteSMSSandboxPhoneNumberInputRequestTypeDef:
return {
"PhoneNumber": ...,
}
# DeleteSMSSandboxPhoneNumberInputRequestTypeDef definition
class DeleteSMSSandboxPhoneNumberInputRequestTypeDef(TypedDict):
PhoneNumber: str,
DeleteTopicInputRequestTypeDef#
# DeleteTopicInputRequestTypeDef usage example
from mypy_boto3_sns.type_defs import DeleteTopicInputRequestTypeDef
def get_value() -> DeleteTopicInputRequestTypeDef:
return {
"TopicArn": ...,
}
# DeleteTopicInputRequestTypeDef definition
class DeleteTopicInputRequestTypeDef(TypedDict):
TopicArn: str,
EmptyResponseMetadataTypeDef#
# EmptyResponseMetadataTypeDef usage example
from mypy_boto3_sns.type_defs import EmptyResponseMetadataTypeDef
def get_value() -> EmptyResponseMetadataTypeDef:
return {
"ResponseMetadata": ...,
}
# EmptyResponseMetadataTypeDef definition
class EmptyResponseMetadataTypeDef(TypedDict):
ResponseMetadata: ResponseMetadataTypeDef, # (1)
EndpointTypeDef#
# EndpointTypeDef usage example
from mypy_boto3_sns.type_defs import EndpointTypeDef
def get_value() -> EndpointTypeDef:
return {
"EndpointArn": ...,
}
# EndpointTypeDef definition
class EndpointTypeDef(TypedDict):
EndpointArn: NotRequired[str],
Attributes: NotRequired[Dict[str, str]],
GetDataProtectionPolicyInputRequestTypeDef#
# GetDataProtectionPolicyInputRequestTypeDef usage example
from mypy_boto3_sns.type_defs import GetDataProtectionPolicyInputRequestTypeDef
def get_value() -> GetDataProtectionPolicyInputRequestTypeDef:
return {
"ResourceArn": ...,
}
# GetDataProtectionPolicyInputRequestTypeDef definition
class GetDataProtectionPolicyInputRequestTypeDef(TypedDict):
ResourceArn: str,
GetDataProtectionPolicyResponseTypeDef#
# GetDataProtectionPolicyResponseTypeDef usage example
from mypy_boto3_sns.type_defs import GetDataProtectionPolicyResponseTypeDef
def get_value() -> GetDataProtectionPolicyResponseTypeDef:
return {
"DataProtectionPolicy": ...,
"ResponseMetadata": ...,
}
# GetDataProtectionPolicyResponseTypeDef definition
class GetDataProtectionPolicyResponseTypeDef(TypedDict):
DataProtectionPolicy: str,
ResponseMetadata: ResponseMetadataTypeDef, # (1)
GetEndpointAttributesInputRequestTypeDef#
# GetEndpointAttributesInputRequestTypeDef usage example
from mypy_boto3_sns.type_defs import GetEndpointAttributesInputRequestTypeDef
def get_value() -> GetEndpointAttributesInputRequestTypeDef:
return {
"EndpointArn": ...,
}
# GetEndpointAttributesInputRequestTypeDef definition
class GetEndpointAttributesInputRequestTypeDef(TypedDict):
EndpointArn: str,
GetEndpointAttributesResponseTypeDef#
# GetEndpointAttributesResponseTypeDef usage example
from mypy_boto3_sns.type_defs import GetEndpointAttributesResponseTypeDef
def get_value() -> GetEndpointAttributesResponseTypeDef:
return {
"Attributes": ...,
"ResponseMetadata": ...,
}
# GetEndpointAttributesResponseTypeDef definition
class GetEndpointAttributesResponseTypeDef(TypedDict):
Attributes: Dict[str, str],
ResponseMetadata: ResponseMetadataTypeDef, # (1)
GetPlatformApplicationAttributesInputRequestTypeDef#
# GetPlatformApplicationAttributesInputRequestTypeDef usage example
from mypy_boto3_sns.type_defs import GetPlatformApplicationAttributesInputRequestTypeDef
def get_value() -> GetPlatformApplicationAttributesInputRequestTypeDef:
return {
"PlatformApplicationArn": ...,
}
# GetPlatformApplicationAttributesInputRequestTypeDef definition
class GetPlatformApplicationAttributesInputRequestTypeDef(TypedDict):
PlatformApplicationArn: str,
GetPlatformApplicationAttributesResponseTypeDef#
# GetPlatformApplicationAttributesResponseTypeDef usage example
from mypy_boto3_sns.type_defs import GetPlatformApplicationAttributesResponseTypeDef
def get_value() -> GetPlatformApplicationAttributesResponseTypeDef:
return {
"Attributes": ...,
"ResponseMetadata": ...,
}
# GetPlatformApplicationAttributesResponseTypeDef definition
class GetPlatformApplicationAttributesResponseTypeDef(TypedDict):
Attributes: Dict[str, str],
ResponseMetadata: ResponseMetadataTypeDef, # (1)
GetSMSAttributesInputRequestTypeDef#
# GetSMSAttributesInputRequestTypeDef usage example
from mypy_boto3_sns.type_defs import GetSMSAttributesInputRequestTypeDef
def get_value() -> GetSMSAttributesInputRequestTypeDef:
return {
"attributes": ...,
}
# GetSMSAttributesInputRequestTypeDef definition
class GetSMSAttributesInputRequestTypeDef(TypedDict):
attributes: NotRequired[Sequence[str]],
GetSMSAttributesResponseTypeDef#
# GetSMSAttributesResponseTypeDef usage example
from mypy_boto3_sns.type_defs import GetSMSAttributesResponseTypeDef
def get_value() -> GetSMSAttributesResponseTypeDef:
return {
"attributes": ...,
"ResponseMetadata": ...,
}
# GetSMSAttributesResponseTypeDef definition
class GetSMSAttributesResponseTypeDef(TypedDict):
attributes: Dict[str, str],
ResponseMetadata: ResponseMetadataTypeDef, # (1)
GetSMSSandboxAccountStatusResultTypeDef#
# GetSMSSandboxAccountStatusResultTypeDef usage example
from mypy_boto3_sns.type_defs import GetSMSSandboxAccountStatusResultTypeDef
def get_value() -> GetSMSSandboxAccountStatusResultTypeDef:
return {
"IsInSandbox": ...,
"ResponseMetadata": ...,
}
# GetSMSSandboxAccountStatusResultTypeDef definition
class GetSMSSandboxAccountStatusResultTypeDef(TypedDict):
IsInSandbox: bool,
ResponseMetadata: ResponseMetadataTypeDef, # (1)
GetSubscriptionAttributesInputRequestTypeDef#
# GetSubscriptionAttributesInputRequestTypeDef usage example
from mypy_boto3_sns.type_defs import GetSubscriptionAttributesInputRequestTypeDef
def get_value() -> GetSubscriptionAttributesInputRequestTypeDef:
return {
"SubscriptionArn": ...,
}
# GetSubscriptionAttributesInputRequestTypeDef definition
class GetSubscriptionAttributesInputRequestTypeDef(TypedDict):
SubscriptionArn: str,
GetSubscriptionAttributesResponseTypeDef#
# GetSubscriptionAttributesResponseTypeDef usage example
from mypy_boto3_sns.type_defs import GetSubscriptionAttributesResponseTypeDef
def get_value() -> GetSubscriptionAttributesResponseTypeDef:
return {
"Attributes": ...,
"ResponseMetadata": ...,
}
# GetSubscriptionAttributesResponseTypeDef definition
class GetSubscriptionAttributesResponseTypeDef(TypedDict):
Attributes: Dict[str, str],
ResponseMetadata: ResponseMetadataTypeDef, # (1)
GetTopicAttributesInputRequestTypeDef#
# GetTopicAttributesInputRequestTypeDef usage example
from mypy_boto3_sns.type_defs import GetTopicAttributesInputRequestTypeDef
def get_value() -> GetTopicAttributesInputRequestTypeDef:
return {
"TopicArn": ...,
}
# GetTopicAttributesInputRequestTypeDef definition
class GetTopicAttributesInputRequestTypeDef(TypedDict):
TopicArn: str,
GetTopicAttributesResponseTypeDef#
# GetTopicAttributesResponseTypeDef usage example
from mypy_boto3_sns.type_defs import GetTopicAttributesResponseTypeDef
def get_value() -> GetTopicAttributesResponseTypeDef:
return {
"Attributes": ...,
"ResponseMetadata": ...,
}
# GetTopicAttributesResponseTypeDef definition
class GetTopicAttributesResponseTypeDef(TypedDict):
Attributes: Dict[str, str],
ResponseMetadata: ResponseMetadataTypeDef, # (1)
ListEndpointsByPlatformApplicationInputListEndpointsByPlatformApplicationPaginateTypeDef#
# ListEndpointsByPlatformApplicationInputListEndpointsByPlatformApplicationPaginateTypeDef usage example
from mypy_boto3_sns.type_defs import ListEndpointsByPlatformApplicationInputListEndpointsByPlatformApplicationPaginateTypeDef
def get_value() -> ListEndpointsByPlatformApplicationInputListEndpointsByPlatformApplicationPaginateTypeDef:
return {
"PlatformApplicationArn": ...,
}
# ListEndpointsByPlatformApplicationInputListEndpointsByPlatformApplicationPaginateTypeDef definition
class ListEndpointsByPlatformApplicationInputListEndpointsByPlatformApplicationPaginateTypeDef(TypedDict):
PlatformApplicationArn: str,
PaginationConfig: NotRequired[PaginatorConfigTypeDef], # (1)
ListEndpointsByPlatformApplicationInputRequestTypeDef#
# ListEndpointsByPlatformApplicationInputRequestTypeDef usage example
from mypy_boto3_sns.type_defs import ListEndpointsByPlatformApplicationInputRequestTypeDef
def get_value() -> ListEndpointsByPlatformApplicationInputRequestTypeDef:
return {
"PlatformApplicationArn": ...,
}
# ListEndpointsByPlatformApplicationInputRequestTypeDef definition
class ListEndpointsByPlatformApplicationInputRequestTypeDef(TypedDict):
PlatformApplicationArn: str,
NextToken: NotRequired[str],
ListOriginationNumbersRequestListOriginationNumbersPaginateTypeDef#
# ListOriginationNumbersRequestListOriginationNumbersPaginateTypeDef usage example
from mypy_boto3_sns.type_defs import ListOriginationNumbersRequestListOriginationNumbersPaginateTypeDef
def get_value() -> ListOriginationNumbersRequestListOriginationNumbersPaginateTypeDef:
return {
"PaginationConfig": ...,
}
# ListOriginationNumbersRequestListOriginationNumbersPaginateTypeDef definition
class ListOriginationNumbersRequestListOriginationNumbersPaginateTypeDef(TypedDict):
PaginationConfig: NotRequired[PaginatorConfigTypeDef], # (1)
ListOriginationNumbersRequestRequestTypeDef#
# ListOriginationNumbersRequestRequestTypeDef usage example
from mypy_boto3_sns.type_defs import ListOriginationNumbersRequestRequestTypeDef
def get_value() -> ListOriginationNumbersRequestRequestTypeDef:
return {
"NextToken": ...,
}
# ListOriginationNumbersRequestRequestTypeDef definition
class ListOriginationNumbersRequestRequestTypeDef(TypedDict):
NextToken: NotRequired[str],
MaxResults: NotRequired[int],
PhoneNumberInformationTypeDef#
# PhoneNumberInformationTypeDef usage example
from mypy_boto3_sns.type_defs import PhoneNumberInformationTypeDef
def get_value() -> PhoneNumberInformationTypeDef:
return {
"CreatedAt": ...,
}
# PhoneNumberInformationTypeDef definition
class PhoneNumberInformationTypeDef(TypedDict):
CreatedAt: NotRequired[datetime],
PhoneNumber: NotRequired[str],
Status: NotRequired[str],
Iso2CountryCode: NotRequired[str],
RouteType: NotRequired[RouteTypeType], # (1)
NumberCapabilities: NotRequired[List[NumberCapabilityType]], # (2)
- See RouteTypeType
- See NumberCapabilityType
ListPhoneNumbersOptedOutInputListPhoneNumbersOptedOutPaginateTypeDef#
# ListPhoneNumbersOptedOutInputListPhoneNumbersOptedOutPaginateTypeDef usage example
from mypy_boto3_sns.type_defs import ListPhoneNumbersOptedOutInputListPhoneNumbersOptedOutPaginateTypeDef
def get_value() -> ListPhoneNumbersOptedOutInputListPhoneNumbersOptedOutPaginateTypeDef:
return {
"PaginationConfig": ...,
}
# ListPhoneNumbersOptedOutInputListPhoneNumbersOptedOutPaginateTypeDef definition
class ListPhoneNumbersOptedOutInputListPhoneNumbersOptedOutPaginateTypeDef(TypedDict):
PaginationConfig: NotRequired[PaginatorConfigTypeDef], # (1)
ListPhoneNumbersOptedOutInputRequestTypeDef#
# ListPhoneNumbersOptedOutInputRequestTypeDef usage example
from mypy_boto3_sns.type_defs import ListPhoneNumbersOptedOutInputRequestTypeDef
def get_value() -> ListPhoneNumbersOptedOutInputRequestTypeDef:
return {
"nextToken": ...,
}
# ListPhoneNumbersOptedOutInputRequestTypeDef definition
class ListPhoneNumbersOptedOutInputRequestTypeDef(TypedDict):
nextToken: NotRequired[str],
ListPhoneNumbersOptedOutResponseTypeDef#
# ListPhoneNumbersOptedOutResponseTypeDef usage example
from mypy_boto3_sns.type_defs import ListPhoneNumbersOptedOutResponseTypeDef
def get_value() -> ListPhoneNumbersOptedOutResponseTypeDef:
return {
"phoneNumbers": ...,
"nextToken": ...,
"ResponseMetadata": ...,
}
# ListPhoneNumbersOptedOutResponseTypeDef definition
class ListPhoneNumbersOptedOutResponseTypeDef(TypedDict):
phoneNumbers: List[str],
nextToken: str,
ResponseMetadata: ResponseMetadataTypeDef, # (1)
ListPlatformApplicationsInputListPlatformApplicationsPaginateTypeDef#
# ListPlatformApplicationsInputListPlatformApplicationsPaginateTypeDef usage example
from mypy_boto3_sns.type_defs import ListPlatformApplicationsInputListPlatformApplicationsPaginateTypeDef
def get_value() -> ListPlatformApplicationsInputListPlatformApplicationsPaginateTypeDef:
return {
"PaginationConfig": ...,
}
# ListPlatformApplicationsInputListPlatformApplicationsPaginateTypeDef definition
class ListPlatformApplicationsInputListPlatformApplicationsPaginateTypeDef(TypedDict):
PaginationConfig: NotRequired[PaginatorConfigTypeDef], # (1)
ListPlatformApplicationsInputRequestTypeDef#
# ListPlatformApplicationsInputRequestTypeDef usage example
from mypy_boto3_sns.type_defs import ListPlatformApplicationsInputRequestTypeDef
def get_value() -> ListPlatformApplicationsInputRequestTypeDef:
return {
"NextToken": ...,
}
# ListPlatformApplicationsInputRequestTypeDef definition
class ListPlatformApplicationsInputRequestTypeDef(TypedDict):
NextToken: NotRequired[str],
PlatformApplicationTypeDef#
# PlatformApplicationTypeDef usage example
from mypy_boto3_sns.type_defs import PlatformApplicationTypeDef
def get_value() -> PlatformApplicationTypeDef:
return {
"PlatformApplicationArn": ...,
}
# PlatformApplicationTypeDef definition
class PlatformApplicationTypeDef(TypedDict):
PlatformApplicationArn: NotRequired[str],
Attributes: NotRequired[Dict[str, str]],
ListSMSSandboxPhoneNumbersInputListSMSSandboxPhoneNumbersPaginateTypeDef#
# ListSMSSandboxPhoneNumbersInputListSMSSandboxPhoneNumbersPaginateTypeDef usage example
from mypy_boto3_sns.type_defs import ListSMSSandboxPhoneNumbersInputListSMSSandboxPhoneNumbersPaginateTypeDef
def get_value() -> ListSMSSandboxPhoneNumbersInputListSMSSandboxPhoneNumbersPaginateTypeDef:
return {
"PaginationConfig": ...,
}
# ListSMSSandboxPhoneNumbersInputListSMSSandboxPhoneNumbersPaginateTypeDef definition
class ListSMSSandboxPhoneNumbersInputListSMSSandboxPhoneNumbersPaginateTypeDef(TypedDict):
PaginationConfig: NotRequired[PaginatorConfigTypeDef], # (1)
ListSMSSandboxPhoneNumbersInputRequestTypeDef#
# ListSMSSandboxPhoneNumbersInputRequestTypeDef usage example
from mypy_boto3_sns.type_defs import ListSMSSandboxPhoneNumbersInputRequestTypeDef
def get_value() -> ListSMSSandboxPhoneNumbersInputRequestTypeDef:
return {
"NextToken": ...,
}
# ListSMSSandboxPhoneNumbersInputRequestTypeDef definition
class ListSMSSandboxPhoneNumbersInputRequestTypeDef(TypedDict):
NextToken: NotRequired[str],
MaxResults: NotRequired[int],
SMSSandboxPhoneNumberTypeDef#
# SMSSandboxPhoneNumberTypeDef usage example
from mypy_boto3_sns.type_defs import SMSSandboxPhoneNumberTypeDef
def get_value() -> SMSSandboxPhoneNumberTypeDef:
return {
"PhoneNumber": ...,
}
# SMSSandboxPhoneNumberTypeDef definition
class SMSSandboxPhoneNumberTypeDef(TypedDict):
PhoneNumber: NotRequired[str],
Status: NotRequired[SMSSandboxPhoneNumberVerificationStatusType], # (1)
ListSubscriptionsByTopicInputListSubscriptionsByTopicPaginateTypeDef#
# ListSubscriptionsByTopicInputListSubscriptionsByTopicPaginateTypeDef usage example
from mypy_boto3_sns.type_defs import ListSubscriptionsByTopicInputListSubscriptionsByTopicPaginateTypeDef
def get_value() -> ListSubscriptionsByTopicInputListSubscriptionsByTopicPaginateTypeDef:
return {
"TopicArn": ...,
}
# ListSubscriptionsByTopicInputListSubscriptionsByTopicPaginateTypeDef definition
class ListSubscriptionsByTopicInputListSubscriptionsByTopicPaginateTypeDef(TypedDict):
TopicArn: str,
PaginationConfig: NotRequired[PaginatorConfigTypeDef], # (1)
ListSubscriptionsByTopicInputRequestTypeDef#
# ListSubscriptionsByTopicInputRequestTypeDef usage example
from mypy_boto3_sns.type_defs import ListSubscriptionsByTopicInputRequestTypeDef
def get_value() -> ListSubscriptionsByTopicInputRequestTypeDef:
return {
"TopicArn": ...,
}
# ListSubscriptionsByTopicInputRequestTypeDef definition
class ListSubscriptionsByTopicInputRequestTypeDef(TypedDict):
TopicArn: str,
NextToken: NotRequired[str],
SubscriptionTypeDef#
# SubscriptionTypeDef usage example
from mypy_boto3_sns.type_defs import SubscriptionTypeDef
def get_value() -> SubscriptionTypeDef:
return {
"SubscriptionArn": ...,
}
# SubscriptionTypeDef definition
class SubscriptionTypeDef(TypedDict):
SubscriptionArn: NotRequired[str],
Owner: NotRequired[str],
Protocol: NotRequired[str],
Endpoint: NotRequired[str],
TopicArn: NotRequired[str],
ListSubscriptionsInputListSubscriptionsPaginateTypeDef#
# ListSubscriptionsInputListSubscriptionsPaginateTypeDef usage example
from mypy_boto3_sns.type_defs import ListSubscriptionsInputListSubscriptionsPaginateTypeDef
def get_value() -> ListSubscriptionsInputListSubscriptionsPaginateTypeDef:
return {
"PaginationConfig": ...,
}
# ListSubscriptionsInputListSubscriptionsPaginateTypeDef definition
class ListSubscriptionsInputListSubscriptionsPaginateTypeDef(TypedDict):
PaginationConfig: NotRequired[PaginatorConfigTypeDef], # (1)
ListSubscriptionsInputRequestTypeDef#
# ListSubscriptionsInputRequestTypeDef usage example
from mypy_boto3_sns.type_defs import ListSubscriptionsInputRequestTypeDef
def get_value() -> ListSubscriptionsInputRequestTypeDef:
return {
"NextToken": ...,
}
# ListSubscriptionsInputRequestTypeDef definition
class ListSubscriptionsInputRequestTypeDef(TypedDict):
NextToken: NotRequired[str],
ListTagsForResourceRequestRequestTypeDef#
# ListTagsForResourceRequestRequestTypeDef usage example
from mypy_boto3_sns.type_defs import ListTagsForResourceRequestRequestTypeDef
def get_value() -> ListTagsForResourceRequestRequestTypeDef:
return {
"ResourceArn": ...,
}
# ListTagsForResourceRequestRequestTypeDef definition
class ListTagsForResourceRequestRequestTypeDef(TypedDict):
ResourceArn: str,
ListTopicsInputListTopicsPaginateTypeDef#
# ListTopicsInputListTopicsPaginateTypeDef usage example
from mypy_boto3_sns.type_defs import ListTopicsInputListTopicsPaginateTypeDef
def get_value() -> ListTopicsInputListTopicsPaginateTypeDef:
return {
"PaginationConfig": ...,
}
# ListTopicsInputListTopicsPaginateTypeDef definition
class ListTopicsInputListTopicsPaginateTypeDef(TypedDict):
PaginationConfig: NotRequired[PaginatorConfigTypeDef], # (1)
ListTopicsInputRequestTypeDef#
# ListTopicsInputRequestTypeDef usage example
from mypy_boto3_sns.type_defs import ListTopicsInputRequestTypeDef
def get_value() -> ListTopicsInputRequestTypeDef:
return {
"NextToken": ...,
}
# ListTopicsInputRequestTypeDef definition
class ListTopicsInputRequestTypeDef(TypedDict):
NextToken: NotRequired[str],
TopicTypeDef#
# TopicTypeDef usage example
from mypy_boto3_sns.type_defs import TopicTypeDef
def get_value() -> TopicTypeDef:
return {
"TopicArn": ...,
}
# TopicTypeDef definition
class TopicTypeDef(TypedDict):
TopicArn: NotRequired[str],
MessageAttributeValueTypeDef#
# MessageAttributeValueTypeDef usage example
from mypy_boto3_sns.type_defs import MessageAttributeValueTypeDef
def get_value() -> MessageAttributeValueTypeDef:
return {
"DataType": ...,
}
# MessageAttributeValueTypeDef definition
class MessageAttributeValueTypeDef(TypedDict):
DataType: str,
StringValue: NotRequired[str],
BinaryValue: NotRequired[Union[str, bytes, IO[Any], StreamingBody]],
OptInPhoneNumberInputRequestTypeDef#
# OptInPhoneNumberInputRequestTypeDef usage example
from mypy_boto3_sns.type_defs import OptInPhoneNumberInputRequestTypeDef
def get_value() -> OptInPhoneNumberInputRequestTypeDef:
return {
"phoneNumber": ...,
}
# OptInPhoneNumberInputRequestTypeDef definition
class OptInPhoneNumberInputRequestTypeDef(TypedDict):
phoneNumber: str,
PaginatorConfigTypeDef#
# PaginatorConfigTypeDef usage example
from mypy_boto3_sns.type_defs import PaginatorConfigTypeDef
def get_value() -> PaginatorConfigTypeDef:
return {
"MaxItems": ...,
}
# PaginatorConfigTypeDef definition
class PaginatorConfigTypeDef(TypedDict):
MaxItems: NotRequired[int],
PageSize: NotRequired[int],
StartingToken: NotRequired[str],
PublishBatchResultEntryTypeDef#
# PublishBatchResultEntryTypeDef usage example
from mypy_boto3_sns.type_defs import PublishBatchResultEntryTypeDef
def get_value() -> PublishBatchResultEntryTypeDef:
return {
"Id": ...,
}
# PublishBatchResultEntryTypeDef definition
class PublishBatchResultEntryTypeDef(TypedDict):
Id: NotRequired[str],
MessageId: NotRequired[str],
SequenceNumber: NotRequired[str],
PublishResponseTypeDef#
# PublishResponseTypeDef usage example
from mypy_boto3_sns.type_defs import PublishResponseTypeDef
def get_value() -> PublishResponseTypeDef:
return {
"MessageId": ...,
"SequenceNumber": ...,
"ResponseMetadata": ...,
}
# PublishResponseTypeDef definition
class PublishResponseTypeDef(TypedDict):
MessageId: str,
SequenceNumber: str,
ResponseMetadata: ResponseMetadataTypeDef, # (1)
PutDataProtectionPolicyInputRequestTypeDef#
# PutDataProtectionPolicyInputRequestTypeDef usage example
from mypy_boto3_sns.type_defs import PutDataProtectionPolicyInputRequestTypeDef
def get_value() -> PutDataProtectionPolicyInputRequestTypeDef:
return {
"ResourceArn": ...,
"DataProtectionPolicy": ...,
}
# PutDataProtectionPolicyInputRequestTypeDef definition
class PutDataProtectionPolicyInputRequestTypeDef(TypedDict):
ResourceArn: str,
DataProtectionPolicy: str,
RemovePermissionInputRequestTypeDef#
# RemovePermissionInputRequestTypeDef usage example
from mypy_boto3_sns.type_defs import RemovePermissionInputRequestTypeDef
def get_value() -> RemovePermissionInputRequestTypeDef:
return {
"TopicArn": ...,
"Label": ...,
}
# RemovePermissionInputRequestTypeDef definition
class RemovePermissionInputRequestTypeDef(TypedDict):
TopicArn: str,
Label: str,
RemovePermissionInputTopicRemovePermissionTypeDef#
# RemovePermissionInputTopicRemovePermissionTypeDef usage example
from mypy_boto3_sns.type_defs import RemovePermissionInputTopicRemovePermissionTypeDef
def get_value() -> RemovePermissionInputTopicRemovePermissionTypeDef:
return {
"Label": ...,
}
# RemovePermissionInputTopicRemovePermissionTypeDef definition
class RemovePermissionInputTopicRemovePermissionTypeDef(TypedDict):
Label: str,
ResponseMetadataTypeDef#
# ResponseMetadataTypeDef usage example
from mypy_boto3_sns.type_defs import ResponseMetadataTypeDef
def get_value() -> ResponseMetadataTypeDef:
return {
"RequestId": ...,
"HostId": ...,
"HTTPStatusCode": ...,
"HTTPHeaders": ...,
"RetryAttempts": ...,
}
# ResponseMetadataTypeDef definition
class ResponseMetadataTypeDef(TypedDict):
RequestId: str,
HostId: str,
HTTPStatusCode: int,
HTTPHeaders: Dict[str, str],
RetryAttempts: int,
SetEndpointAttributesInputPlatformEndpointSetAttributesTypeDef#
# SetEndpointAttributesInputPlatformEndpointSetAttributesTypeDef usage example
from mypy_boto3_sns.type_defs import SetEndpointAttributesInputPlatformEndpointSetAttributesTypeDef
def get_value() -> SetEndpointAttributesInputPlatformEndpointSetAttributesTypeDef:
return {
"Attributes": ...,
}
# SetEndpointAttributesInputPlatformEndpointSetAttributesTypeDef definition
class SetEndpointAttributesInputPlatformEndpointSetAttributesTypeDef(TypedDict):
Attributes: Mapping[str, str],
SetEndpointAttributesInputRequestTypeDef#
# SetEndpointAttributesInputRequestTypeDef usage example
from mypy_boto3_sns.type_defs import SetEndpointAttributesInputRequestTypeDef
def get_value() -> SetEndpointAttributesInputRequestTypeDef:
return {
"EndpointArn": ...,
"Attributes": ...,
}
# SetEndpointAttributesInputRequestTypeDef definition
class SetEndpointAttributesInputRequestTypeDef(TypedDict):
EndpointArn: str,
Attributes: Mapping[str, str],
SetPlatformApplicationAttributesInputPlatformApplicationSetAttributesTypeDef#
# SetPlatformApplicationAttributesInputPlatformApplicationSetAttributesTypeDef usage example
from mypy_boto3_sns.type_defs import SetPlatformApplicationAttributesInputPlatformApplicationSetAttributesTypeDef
def get_value() -> SetPlatformApplicationAttributesInputPlatformApplicationSetAttributesTypeDef:
return {
"Attributes": ...,
}
# SetPlatformApplicationAttributesInputPlatformApplicationSetAttributesTypeDef definition
class SetPlatformApplicationAttributesInputPlatformApplicationSetAttributesTypeDef(TypedDict):
Attributes: Mapping[str, str],
SetPlatformApplicationAttributesInputRequestTypeDef#
# SetPlatformApplicationAttributesInputRequestTypeDef usage example
from mypy_boto3_sns.type_defs import SetPlatformApplicationAttributesInputRequestTypeDef
def get_value() -> SetPlatformApplicationAttributesInputRequestTypeDef:
return {
"PlatformApplicationArn": ...,
"Attributes": ...,
}
# SetPlatformApplicationAttributesInputRequestTypeDef definition
class SetPlatformApplicationAttributesInputRequestTypeDef(TypedDict):
PlatformApplicationArn: str,
Attributes: Mapping[str, str],
SetSMSAttributesInputRequestTypeDef#
# SetSMSAttributesInputRequestTypeDef usage example
from mypy_boto3_sns.type_defs import SetSMSAttributesInputRequestTypeDef
def get_value() -> SetSMSAttributesInputRequestTypeDef:
return {
"attributes": ...,
}
# SetSMSAttributesInputRequestTypeDef definition
class SetSMSAttributesInputRequestTypeDef(TypedDict):
attributes: Mapping[str, str],
SetSubscriptionAttributesInputRequestTypeDef#
# SetSubscriptionAttributesInputRequestTypeDef usage example
from mypy_boto3_sns.type_defs import SetSubscriptionAttributesInputRequestTypeDef
def get_value() -> SetSubscriptionAttributesInputRequestTypeDef:
return {
"SubscriptionArn": ...,
"AttributeName": ...,
}
# SetSubscriptionAttributesInputRequestTypeDef definition
class SetSubscriptionAttributesInputRequestTypeDef(TypedDict):
SubscriptionArn: str,
AttributeName: str,
AttributeValue: NotRequired[str],
SetSubscriptionAttributesInputSubscriptionSetAttributesTypeDef#
# SetSubscriptionAttributesInputSubscriptionSetAttributesTypeDef usage example
from mypy_boto3_sns.type_defs import SetSubscriptionAttributesInputSubscriptionSetAttributesTypeDef
def get_value() -> SetSubscriptionAttributesInputSubscriptionSetAttributesTypeDef:
return {
"AttributeName": ...,
}
# SetSubscriptionAttributesInputSubscriptionSetAttributesTypeDef definition
class SetSubscriptionAttributesInputSubscriptionSetAttributesTypeDef(TypedDict):
AttributeName: str,
AttributeValue: NotRequired[str],
SetTopicAttributesInputRequestTypeDef#
# SetTopicAttributesInputRequestTypeDef usage example
from mypy_boto3_sns.type_defs import SetTopicAttributesInputRequestTypeDef
def get_value() -> SetTopicAttributesInputRequestTypeDef:
return {
"TopicArn": ...,
"AttributeName": ...,
}
# SetTopicAttributesInputRequestTypeDef definition
class SetTopicAttributesInputRequestTypeDef(TypedDict):
TopicArn: str,
AttributeName: str,
AttributeValue: NotRequired[str],
SetTopicAttributesInputTopicSetAttributesTypeDef#
# SetTopicAttributesInputTopicSetAttributesTypeDef usage example
from mypy_boto3_sns.type_defs import SetTopicAttributesInputTopicSetAttributesTypeDef
def get_value() -> SetTopicAttributesInputTopicSetAttributesTypeDef:
return {
"AttributeName": ...,
}
# SetTopicAttributesInputTopicSetAttributesTypeDef definition
class SetTopicAttributesInputTopicSetAttributesTypeDef(TypedDict):
AttributeName: str,
AttributeValue: NotRequired[str],
SubscribeInputRequestTypeDef#
# SubscribeInputRequestTypeDef usage example
from mypy_boto3_sns.type_defs import SubscribeInputRequestTypeDef
def get_value() -> SubscribeInputRequestTypeDef:
return {
"TopicArn": ...,
"Protocol": ...,
}
# SubscribeInputRequestTypeDef definition
class SubscribeInputRequestTypeDef(TypedDict):
TopicArn: str,
Protocol: str,
Endpoint: NotRequired[str],
Attributes: NotRequired[Mapping[str, str]],
ReturnSubscriptionArn: NotRequired[bool],
SubscribeInputTopicSubscribeTypeDef#
# SubscribeInputTopicSubscribeTypeDef usage example
from mypy_boto3_sns.type_defs import SubscribeInputTopicSubscribeTypeDef
def get_value() -> SubscribeInputTopicSubscribeTypeDef:
return {
"Protocol": ...,
}
# SubscribeInputTopicSubscribeTypeDef definition
class SubscribeInputTopicSubscribeTypeDef(TypedDict):
Protocol: str,
Endpoint: NotRequired[str],
Attributes: NotRequired[Mapping[str, str]],
ReturnSubscriptionArn: NotRequired[bool],
SubscribeResponseTypeDef#
# SubscribeResponseTypeDef usage example
from mypy_boto3_sns.type_defs import SubscribeResponseTypeDef
def get_value() -> SubscribeResponseTypeDef:
return {
"SubscriptionArn": ...,
"ResponseMetadata": ...,
}
# SubscribeResponseTypeDef definition
class SubscribeResponseTypeDef(TypedDict):
SubscriptionArn: str,
ResponseMetadata: ResponseMetadataTypeDef, # (1)
UnsubscribeInputRequestTypeDef#
# UnsubscribeInputRequestTypeDef usage example
from mypy_boto3_sns.type_defs import UnsubscribeInputRequestTypeDef
def get_value() -> UnsubscribeInputRequestTypeDef:
return {
"SubscriptionArn": ...,
}
# UnsubscribeInputRequestTypeDef definition
class UnsubscribeInputRequestTypeDef(TypedDict):
SubscriptionArn: str,
UntagResourceRequestRequestTypeDef#
# UntagResourceRequestRequestTypeDef usage example
from mypy_boto3_sns.type_defs import UntagResourceRequestRequestTypeDef
def get_value() -> UntagResourceRequestRequestTypeDef:
return {
"ResourceArn": ...,
"TagKeys": ...,
}
# UntagResourceRequestRequestTypeDef definition
class UntagResourceRequestRequestTypeDef(TypedDict):
ResourceArn: str,
TagKeys: Sequence[str],
VerifySMSSandboxPhoneNumberInputRequestTypeDef#
# VerifySMSSandboxPhoneNumberInputRequestTypeDef usage example
from mypy_boto3_sns.type_defs import VerifySMSSandboxPhoneNumberInputRequestTypeDef
def get_value() -> VerifySMSSandboxPhoneNumberInputRequestTypeDef:
return {
"PhoneNumber": ...,
"OneTimePassword": ...,
}
# VerifySMSSandboxPhoneNumberInputRequestTypeDef definition
class VerifySMSSandboxPhoneNumberInputRequestTypeDef(TypedDict):
PhoneNumber: str,
OneTimePassword: str,
CreateTopicInputRequestTypeDef#
# CreateTopicInputRequestTypeDef usage example
from mypy_boto3_sns.type_defs import CreateTopicInputRequestTypeDef
def get_value() -> CreateTopicInputRequestTypeDef:
return {
"Name": ...,
}
# CreateTopicInputRequestTypeDef definition
class CreateTopicInputRequestTypeDef(TypedDict):
Name: str,
Attributes: NotRequired[Mapping[str, str]],
Tags: NotRequired[Sequence[TagTypeDef]], # (1)
DataProtectionPolicy: NotRequired[str],
- See TagTypeDef
CreateTopicInputServiceResourceCreateTopicTypeDef#
# CreateTopicInputServiceResourceCreateTopicTypeDef usage example
from mypy_boto3_sns.type_defs import CreateTopicInputServiceResourceCreateTopicTypeDef
def get_value() -> CreateTopicInputServiceResourceCreateTopicTypeDef:
return {
"Name": ...,
}
# CreateTopicInputServiceResourceCreateTopicTypeDef definition
class CreateTopicInputServiceResourceCreateTopicTypeDef(TypedDict):
Name: str,
Attributes: NotRequired[Mapping[str, str]],
Tags: NotRequired[Sequence[TagTypeDef]], # (1)
DataProtectionPolicy: NotRequired[str],
- See TagTypeDef
ListTagsForResourceResponseTypeDef#
# ListTagsForResourceResponseTypeDef usage example
from mypy_boto3_sns.type_defs import ListTagsForResourceResponseTypeDef
def get_value() -> ListTagsForResourceResponseTypeDef:
return {
"Tags": ...,
"ResponseMetadata": ...,
}
# ListTagsForResourceResponseTypeDef definition
class ListTagsForResourceResponseTypeDef(TypedDict):
Tags: List[TagTypeDef], # (1)
ResponseMetadata: ResponseMetadataTypeDef, # (2)
- See TagTypeDef
- See ResponseMetadataTypeDef
TagResourceRequestRequestTypeDef#
# TagResourceRequestRequestTypeDef usage example
from mypy_boto3_sns.type_defs import TagResourceRequestRequestTypeDef
def get_value() -> TagResourceRequestRequestTypeDef:
return {
"ResourceArn": ...,
"Tags": ...,
}
# TagResourceRequestRequestTypeDef definition
class TagResourceRequestRequestTypeDef(TypedDict):
ResourceArn: str,
Tags: Sequence[TagTypeDef], # (1)
- See TagTypeDef
ListEndpointsByPlatformApplicationResponseTypeDef#
# ListEndpointsByPlatformApplicationResponseTypeDef usage example
from mypy_boto3_sns.type_defs import ListEndpointsByPlatformApplicationResponseTypeDef
def get_value() -> ListEndpointsByPlatformApplicationResponseTypeDef:
return {
"Endpoints": ...,
"NextToken": ...,
"ResponseMetadata": ...,
}
# ListEndpointsByPlatformApplicationResponseTypeDef definition
class ListEndpointsByPlatformApplicationResponseTypeDef(TypedDict):
Endpoints: List[EndpointTypeDef], # (1)
NextToken: str,
ResponseMetadata: ResponseMetadataTypeDef, # (2)
ListOriginationNumbersResultTypeDef#
# ListOriginationNumbersResultTypeDef usage example
from mypy_boto3_sns.type_defs import ListOriginationNumbersResultTypeDef
def get_value() -> ListOriginationNumbersResultTypeDef:
return {
"NextToken": ...,
"PhoneNumbers": ...,
"ResponseMetadata": ...,
}
# ListOriginationNumbersResultTypeDef definition
class ListOriginationNumbersResultTypeDef(TypedDict):
NextToken: str,
PhoneNumbers: List[PhoneNumberInformationTypeDef], # (1)
ResponseMetadata: ResponseMetadataTypeDef, # (2)
ListPlatformApplicationsResponseTypeDef#
# ListPlatformApplicationsResponseTypeDef usage example
from mypy_boto3_sns.type_defs import ListPlatformApplicationsResponseTypeDef
def get_value() -> ListPlatformApplicationsResponseTypeDef:
return {
"PlatformApplications": ...,
"NextToken": ...,
"ResponseMetadata": ...,
}
# ListPlatformApplicationsResponseTypeDef definition
class ListPlatformApplicationsResponseTypeDef(TypedDict):
PlatformApplications: List[PlatformApplicationTypeDef], # (1)
NextToken: str,
ResponseMetadata: ResponseMetadataTypeDef, # (2)
ListSMSSandboxPhoneNumbersResultTypeDef#
# ListSMSSandboxPhoneNumbersResultTypeDef usage example
from mypy_boto3_sns.type_defs import ListSMSSandboxPhoneNumbersResultTypeDef
def get_value() -> ListSMSSandboxPhoneNumbersResultTypeDef:
return {
"PhoneNumbers": ...,
"NextToken": ...,
"ResponseMetadata": ...,
}
# ListSMSSandboxPhoneNumbersResultTypeDef definition
class ListSMSSandboxPhoneNumbersResultTypeDef(TypedDict):
PhoneNumbers: List[SMSSandboxPhoneNumberTypeDef], # (1)
NextToken: str,
ResponseMetadata: ResponseMetadataTypeDef, # (2)
ListSubscriptionsByTopicResponseTypeDef#
# ListSubscriptionsByTopicResponseTypeDef usage example
from mypy_boto3_sns.type_defs import ListSubscriptionsByTopicResponseTypeDef
def get_value() -> ListSubscriptionsByTopicResponseTypeDef:
return {
"Subscriptions": ...,
"NextToken": ...,
"ResponseMetadata": ...,
}
# ListSubscriptionsByTopicResponseTypeDef definition
class ListSubscriptionsByTopicResponseTypeDef(TypedDict):
Subscriptions: List[SubscriptionTypeDef], # (1)
NextToken: str,
ResponseMetadata: ResponseMetadataTypeDef, # (2)
ListSubscriptionsResponseTypeDef#
# ListSubscriptionsResponseTypeDef usage example
from mypy_boto3_sns.type_defs import ListSubscriptionsResponseTypeDef
def get_value() -> ListSubscriptionsResponseTypeDef:
return {
"Subscriptions": ...,
"NextToken": ...,
"ResponseMetadata": ...,
}
# ListSubscriptionsResponseTypeDef definition
class ListSubscriptionsResponseTypeDef(TypedDict):
Subscriptions: List[SubscriptionTypeDef], # (1)
NextToken: str,
ResponseMetadata: ResponseMetadataTypeDef, # (2)
ListTopicsResponseTypeDef#
# ListTopicsResponseTypeDef usage example
from mypy_boto3_sns.type_defs import ListTopicsResponseTypeDef
def get_value() -> ListTopicsResponseTypeDef:
return {
"Topics": ...,
"NextToken": ...,
"ResponseMetadata": ...,
}
# ListTopicsResponseTypeDef definition
class ListTopicsResponseTypeDef(TypedDict):
Topics: List[TopicTypeDef], # (1)
NextToken: str,
ResponseMetadata: ResponseMetadataTypeDef, # (2)
- See TopicTypeDef
- See ResponseMetadataTypeDef
PublishBatchRequestEntryTypeDef#
# PublishBatchRequestEntryTypeDef usage example
from mypy_boto3_sns.type_defs import PublishBatchRequestEntryTypeDef
def get_value() -> PublishBatchRequestEntryTypeDef:
return {
"Id": ...,
"Message": ...,
}
# PublishBatchRequestEntryTypeDef definition
class PublishBatchRequestEntryTypeDef(TypedDict):
Id: str,
Message: str,
Subject: NotRequired[str],
MessageStructure: NotRequired[str],
MessageAttributes: NotRequired[Mapping[str, MessageAttributeValueTypeDef]], # (1)
MessageDeduplicationId: NotRequired[str],
MessageGroupId: NotRequired[str],
PublishInputPlatformEndpointPublishTypeDef#
# PublishInputPlatformEndpointPublishTypeDef usage example
from mypy_boto3_sns.type_defs import PublishInputPlatformEndpointPublishTypeDef
def get_value() -> PublishInputPlatformEndpointPublishTypeDef:
return {
"Message": ...,
}
# PublishInputPlatformEndpointPublishTypeDef definition
class PublishInputPlatformEndpointPublishTypeDef(TypedDict):
Message: str,
TopicArn: NotRequired[str],
PhoneNumber: NotRequired[str],
Subject: NotRequired[str],
MessageStructure: NotRequired[str],
MessageAttributes: NotRequired[Mapping[str, MessageAttributeValueTypeDef]], # (1)
MessageDeduplicationId: NotRequired[str],
MessageGroupId: NotRequired[str],
PublishInputRequestTypeDef#
# PublishInputRequestTypeDef usage example
from mypy_boto3_sns.type_defs import PublishInputRequestTypeDef
def get_value() -> PublishInputRequestTypeDef:
return {
"Message": ...,
}
# PublishInputRequestTypeDef definition
class PublishInputRequestTypeDef(TypedDict):
Message: str,
TopicArn: NotRequired[str],
TargetArn: NotRequired[str],
PhoneNumber: NotRequired[str],
Subject: NotRequired[str],
MessageStructure: NotRequired[str],
MessageAttributes: NotRequired[Mapping[str, MessageAttributeValueTypeDef]], # (1)
MessageDeduplicationId: NotRequired[str],
MessageGroupId: NotRequired[str],
PublishInputTopicPublishTypeDef#
# PublishInputTopicPublishTypeDef usage example
from mypy_boto3_sns.type_defs import PublishInputTopicPublishTypeDef
def get_value() -> PublishInputTopicPublishTypeDef:
return {
"Message": ...,
}
# PublishInputTopicPublishTypeDef definition
class PublishInputTopicPublishTypeDef(TypedDict):
Message: str,
TargetArn: NotRequired[str],
PhoneNumber: NotRequired[str],
Subject: NotRequired[str],
MessageStructure: NotRequired[str],
MessageAttributes: NotRequired[Mapping[str, MessageAttributeValueTypeDef]], # (1)
MessageDeduplicationId: NotRequired[str],
MessageGroupId: NotRequired[str],
PublishBatchResponseTypeDef#
# PublishBatchResponseTypeDef usage example
from mypy_boto3_sns.type_defs import PublishBatchResponseTypeDef
def get_value() -> PublishBatchResponseTypeDef:
return {
"Successful": ...,
"Failed": ...,
"ResponseMetadata": ...,
}
# PublishBatchResponseTypeDef definition
class PublishBatchResponseTypeDef(TypedDict):
Successful: List[PublishBatchResultEntryTypeDef], # (1)
Failed: List[BatchResultErrorEntryTypeDef], # (2)
ResponseMetadata: ResponseMetadataTypeDef, # (3)
PublishBatchInputRequestTypeDef#
# PublishBatchInputRequestTypeDef usage example
from mypy_boto3_sns.type_defs import PublishBatchInputRequestTypeDef
def get_value() -> PublishBatchInputRequestTypeDef:
return {
"TopicArn": ...,
"PublishBatchRequestEntries": ...,
}
# PublishBatchInputRequestTypeDef definition
class PublishBatchInputRequestTypeDef(TypedDict):
TopicArn: str,
PublishBatchRequestEntries: Sequence[PublishBatchRequestEntryTypeDef], # (1)