Type definitions#
Auto-generated documentation for SQS type annotations stubs module mypy-boto3-sqs.
BlobTypeDef#
# BlobTypeDef definition
BlobTypeDef = Union[
str,
bytes,
IO[Any],
StreamingBody,
]
MessageAttributeValueUnionTypeDef#
# MessageAttributeValueUnionTypeDef definition
MessageAttributeValueUnionTypeDef = Union[
MessageAttributeValueTypeDef, # (1)
MessageAttributeValueExtraOutputTypeDef, # (2)
]
AddPermissionRequestQueueAddPermissionTypeDef#
# AddPermissionRequestQueueAddPermissionTypeDef definition
class AddPermissionRequestQueueAddPermissionTypeDef(TypedDict):
Label: str,
AWSAccountIds: Sequence[str],
Actions: Sequence[str],
AddPermissionRequestRequestTypeDef#
# AddPermissionRequestRequestTypeDef definition
class AddPermissionRequestRequestTypeDef(TypedDict):
QueueUrl: str,
Label: str,
AWSAccountIds: Sequence[str],
Actions: Sequence[str],
BatchResultErrorEntryTypeDef#
# BatchResultErrorEntryTypeDef definition
class BatchResultErrorEntryTypeDef(TypedDict):
Id: str,
SenderFault: bool,
Code: str,
Message: NotRequired[str],
CancelMessageMoveTaskRequestRequestTypeDef#
# CancelMessageMoveTaskRequestRequestTypeDef definition
class CancelMessageMoveTaskRequestRequestTypeDef(TypedDict):
TaskHandle: str,
ResponseMetadataTypeDef#
# ResponseMetadataTypeDef definition
class ResponseMetadataTypeDef(TypedDict):
RequestId: str,
HTTPStatusCode: int,
HTTPHeaders: Dict[str, str],
RetryAttempts: int,
HostId: NotRequired[str],
ChangeMessageVisibilityBatchRequestEntryTypeDef#
# ChangeMessageVisibilityBatchRequestEntryTypeDef definition
class ChangeMessageVisibilityBatchRequestEntryTypeDef(TypedDict):
Id: str,
ReceiptHandle: str,
VisibilityTimeout: NotRequired[int],
ChangeMessageVisibilityBatchResultEntryTypeDef#
# ChangeMessageVisibilityBatchResultEntryTypeDef definition
class ChangeMessageVisibilityBatchResultEntryTypeDef(TypedDict):
Id: str,
ChangeMessageVisibilityRequestMessageChangeVisibilityTypeDef#
# ChangeMessageVisibilityRequestMessageChangeVisibilityTypeDef definition
class ChangeMessageVisibilityRequestMessageChangeVisibilityTypeDef(TypedDict):
VisibilityTimeout: int,
ChangeMessageVisibilityRequestRequestTypeDef#
# ChangeMessageVisibilityRequestRequestTypeDef definition
class ChangeMessageVisibilityRequestRequestTypeDef(TypedDict):
QueueUrl: str,
ReceiptHandle: str,
VisibilityTimeout: int,
CreateQueueRequestRequestTypeDef#
# CreateQueueRequestRequestTypeDef definition
class CreateQueueRequestRequestTypeDef(TypedDict):
QueueName: str,
Attributes: NotRequired[Mapping[QueueAttributeNameType, str]], # (1)
tags: NotRequired[Mapping[str, str]],
CreateQueueRequestServiceResourceCreateQueueTypeDef#
# CreateQueueRequestServiceResourceCreateQueueTypeDef definition
class CreateQueueRequestServiceResourceCreateQueueTypeDef(TypedDict):
QueueName: str,
Attributes: NotRequired[Mapping[QueueAttributeNameType, str]], # (1)
tags: NotRequired[Mapping[str, str]],
DeleteMessageBatchRequestEntryTypeDef#
# DeleteMessageBatchRequestEntryTypeDef definition
class DeleteMessageBatchRequestEntryTypeDef(TypedDict):
Id: str,
ReceiptHandle: str,
DeleteMessageBatchResultEntryTypeDef#
# DeleteMessageBatchResultEntryTypeDef definition
class DeleteMessageBatchResultEntryTypeDef(TypedDict):
Id: str,
DeleteMessageRequestRequestTypeDef#
# DeleteMessageRequestRequestTypeDef definition
class DeleteMessageRequestRequestTypeDef(TypedDict):
QueueUrl: str,
ReceiptHandle: str,
DeleteQueueRequestRequestTypeDef#
# DeleteQueueRequestRequestTypeDef definition
class DeleteQueueRequestRequestTypeDef(TypedDict):
QueueUrl: str,
GetQueueAttributesRequestRequestTypeDef#
# GetQueueAttributesRequestRequestTypeDef definition
class GetQueueAttributesRequestRequestTypeDef(TypedDict):
QueueUrl: str,
AttributeNames: NotRequired[Sequence[QueueAttributeFilterType]], # (1)
GetQueueUrlRequestRequestTypeDef#
# GetQueueUrlRequestRequestTypeDef definition
class GetQueueUrlRequestRequestTypeDef(TypedDict):
QueueName: str,
QueueOwnerAWSAccountId: NotRequired[str],
GetQueueUrlRequestServiceResourceGetQueueByNameTypeDef#
# GetQueueUrlRequestServiceResourceGetQueueByNameTypeDef definition
class GetQueueUrlRequestServiceResourceGetQueueByNameTypeDef(TypedDict):
QueueName: str,
QueueOwnerAWSAccountId: NotRequired[str],
PaginatorConfigTypeDef#
# PaginatorConfigTypeDef definition
class PaginatorConfigTypeDef(TypedDict):
MaxItems: NotRequired[int],
PageSize: NotRequired[int],
StartingToken: NotRequired[str],
ListDeadLetterSourceQueuesRequestRequestTypeDef#
# ListDeadLetterSourceQueuesRequestRequestTypeDef definition
class ListDeadLetterSourceQueuesRequestRequestTypeDef(TypedDict):
QueueUrl: str,
NextToken: NotRequired[str],
MaxResults: NotRequired[int],
ListMessageMoveTasksRequestRequestTypeDef#
# ListMessageMoveTasksRequestRequestTypeDef definition
class ListMessageMoveTasksRequestRequestTypeDef(TypedDict):
SourceArn: str,
MaxResults: NotRequired[int],
ListMessageMoveTasksResultEntryTypeDef#
# ListMessageMoveTasksResultEntryTypeDef definition
class ListMessageMoveTasksResultEntryTypeDef(TypedDict):
TaskHandle: NotRequired[str],
Status: NotRequired[str],
SourceArn: NotRequired[str],
DestinationArn: NotRequired[str],
MaxNumberOfMessagesPerSecond: NotRequired[int],
ApproximateNumberOfMessagesMoved: NotRequired[int],
ApproximateNumberOfMessagesToMove: NotRequired[int],
FailureReason: NotRequired[str],
StartedTimestamp: NotRequired[int],
ListQueueTagsRequestRequestTypeDef#
# ListQueueTagsRequestRequestTypeDef definition
class ListQueueTagsRequestRequestTypeDef(TypedDict):
QueueUrl: str,
ListQueuesRequestRequestTypeDef#
# ListQueuesRequestRequestTypeDef definition
class ListQueuesRequestRequestTypeDef(TypedDict):
QueueNamePrefix: NotRequired[str],
NextToken: NotRequired[str],
MaxResults: NotRequired[int],
MessageAttributeValueExtraOutputTypeDef#
# MessageAttributeValueExtraOutputTypeDef definition
class MessageAttributeValueExtraOutputTypeDef(TypedDict):
DataType: str,
StringValue: NotRequired[str],
BinaryValue: NotRequired[bytes],
StringListValues: NotRequired[List[str]],
BinaryListValues: NotRequired[List[bytes]],
MessageAttributeValueOutputTypeDef#
# MessageAttributeValueOutputTypeDef definition
class MessageAttributeValueOutputTypeDef(TypedDict):
DataType: str,
StringValue: NotRequired[str],
BinaryValue: NotRequired[bytes],
StringListValues: NotRequired[List[str]],
BinaryListValues: NotRequired[List[bytes]],
PurgeQueueRequestRequestTypeDef#
# PurgeQueueRequestRequestTypeDef definition
class PurgeQueueRequestRequestTypeDef(TypedDict):
QueueUrl: str,
ReceiveMessageRequestQueueReceiveMessagesTypeDef#
# ReceiveMessageRequestQueueReceiveMessagesTypeDef definition
class ReceiveMessageRequestQueueReceiveMessagesTypeDef(TypedDict):
AttributeNames: NotRequired[Sequence[QueueAttributeFilterType]], # (1)
MessageSystemAttributeNames: NotRequired[Sequence[MessageSystemAttributeNameType]], # (2)
MessageAttributeNames: NotRequired[Sequence[str]],
MaxNumberOfMessages: NotRequired[int],
VisibilityTimeout: NotRequired[int],
WaitTimeSeconds: NotRequired[int],
ReceiveRequestAttemptId: NotRequired[str],
ReceiveMessageRequestRequestTypeDef#
# ReceiveMessageRequestRequestTypeDef definition
class ReceiveMessageRequestRequestTypeDef(TypedDict):
QueueUrl: str,
AttributeNames: NotRequired[Sequence[QueueAttributeFilterType]], # (1)
MessageSystemAttributeNames: NotRequired[Sequence[MessageSystemAttributeNameType]], # (2)
MessageAttributeNames: NotRequired[Sequence[str]],
MaxNumberOfMessages: NotRequired[int],
VisibilityTimeout: NotRequired[int],
WaitTimeSeconds: NotRequired[int],
ReceiveRequestAttemptId: NotRequired[str],
RemovePermissionRequestQueueRemovePermissionTypeDef#
# RemovePermissionRequestQueueRemovePermissionTypeDef definition
class RemovePermissionRequestQueueRemovePermissionTypeDef(TypedDict):
Label: str,
RemovePermissionRequestRequestTypeDef#
# RemovePermissionRequestRequestTypeDef definition
class RemovePermissionRequestRequestTypeDef(TypedDict):
QueueUrl: str,
Label: str,
SendMessageBatchResultEntryTypeDef#
# SendMessageBatchResultEntryTypeDef definition
class SendMessageBatchResultEntryTypeDef(TypedDict):
Id: str,
MessageId: str,
MD5OfMessageBody: str,
MD5OfMessageAttributes: NotRequired[str],
MD5OfMessageSystemAttributes: NotRequired[str],
SequenceNumber: NotRequired[str],
SetQueueAttributesRequestQueueSetAttributesTypeDef#
# SetQueueAttributesRequestQueueSetAttributesTypeDef definition
class SetQueueAttributesRequestQueueSetAttributesTypeDef(TypedDict):
Attributes: Mapping[QueueAttributeNameType, str], # (1)
SetQueueAttributesRequestRequestTypeDef#
# SetQueueAttributesRequestRequestTypeDef definition
class SetQueueAttributesRequestRequestTypeDef(TypedDict):
QueueUrl: str,
Attributes: Mapping[QueueAttributeNameType, str], # (1)