Skip to content

Typed dictionaries#

Index > ConnectParticipant > Typed dictionaries

Auto-generated documentation for ConnectParticipant type annotations stubs module mypy-boto3-connectparticipant.

AttachmentItemTypeDef#

# AttachmentItemTypeDef usage example

from mypy_boto3_connectparticipant.type_defs import AttachmentItemTypeDef

def get_value() -> AttachmentItemTypeDef:
    return {
        "ContentType": ...,
    }
# AttachmentItemTypeDef definition

class AttachmentItemTypeDef(TypedDict):
    ContentType: NotRequired[str],
    AttachmentId: NotRequired[str],
    AttachmentName: NotRequired[str],
    Status: NotRequired[ArtifactStatusType],  # (1)
  1. See ArtifactStatusType

CompleteAttachmentUploadRequestRequestTypeDef#

# CompleteAttachmentUploadRequestRequestTypeDef usage example

from mypy_boto3_connectparticipant.type_defs import CompleteAttachmentUploadRequestRequestTypeDef

def get_value() -> CompleteAttachmentUploadRequestRequestTypeDef:
    return {
        "AttachmentIds": ...,
        "ClientToken": ...,
        "ConnectionToken": ...,
    }
# CompleteAttachmentUploadRequestRequestTypeDef definition

class CompleteAttachmentUploadRequestRequestTypeDef(TypedDict):
    AttachmentIds: Sequence[str],
    ClientToken: str,
    ConnectionToken: str,

ConnectionCredentialsTypeDef#

# ConnectionCredentialsTypeDef usage example

from mypy_boto3_connectparticipant.type_defs import ConnectionCredentialsTypeDef

def get_value() -> ConnectionCredentialsTypeDef:
    return {
        "ConnectionToken": ...,
    }
# ConnectionCredentialsTypeDef definition

class ConnectionCredentialsTypeDef(TypedDict):
    ConnectionToken: NotRequired[str],
    Expiry: NotRequired[str],

CreateParticipantConnectionRequestRequestTypeDef#

# CreateParticipantConnectionRequestRequestTypeDef usage example

from mypy_boto3_connectparticipant.type_defs import CreateParticipantConnectionRequestRequestTypeDef

def get_value() -> CreateParticipantConnectionRequestRequestTypeDef:
    return {
        "ParticipantToken": ...,
    }
# CreateParticipantConnectionRequestRequestTypeDef definition

class CreateParticipantConnectionRequestRequestTypeDef(TypedDict):
    ParticipantToken: str,
    Type: NotRequired[Sequence[ConnectionTypeType]],  # (1)
    ConnectParticipant: NotRequired[bool],
  1. See ConnectionTypeType

WebsocketTypeDef#

# WebsocketTypeDef usage example

from mypy_boto3_connectparticipant.type_defs import WebsocketTypeDef

def get_value() -> WebsocketTypeDef:
    return {
        "Url": ...,
    }
# WebsocketTypeDef definition

class WebsocketTypeDef(TypedDict):
    Url: NotRequired[str],
    ConnectionExpiry: NotRequired[str],

DisconnectParticipantRequestRequestTypeDef#

# DisconnectParticipantRequestRequestTypeDef usage example

from mypy_boto3_connectparticipant.type_defs import DisconnectParticipantRequestRequestTypeDef

def get_value() -> DisconnectParticipantRequestRequestTypeDef:
    return {
        "ConnectionToken": ...,
    }
# DisconnectParticipantRequestRequestTypeDef definition

class DisconnectParticipantRequestRequestTypeDef(TypedDict):
    ConnectionToken: str,
    ClientToken: NotRequired[str],

GetAttachmentRequestRequestTypeDef#

# GetAttachmentRequestRequestTypeDef usage example

from mypy_boto3_connectparticipant.type_defs import GetAttachmentRequestRequestTypeDef

def get_value() -> GetAttachmentRequestRequestTypeDef:
    return {
        "AttachmentId": ...,
        "ConnectionToken": ...,
    }
# GetAttachmentRequestRequestTypeDef definition

class GetAttachmentRequestRequestTypeDef(TypedDict):
    AttachmentId: str,
    ConnectionToken: str,

GetAttachmentResponseTypeDef#

# GetAttachmentResponseTypeDef usage example

from mypy_boto3_connectparticipant.type_defs import GetAttachmentResponseTypeDef

def get_value() -> GetAttachmentResponseTypeDef:
    return {
        "Url": ...,
        "UrlExpiry": ...,
        "ResponseMetadata": ...,
    }
# GetAttachmentResponseTypeDef definition

class GetAttachmentResponseTypeDef(TypedDict):
    Url: str,
    UrlExpiry: str,
    ResponseMetadata: ResponseMetadataTypeDef,  # (1)
  1. See ResponseMetadataTypeDef

StartPositionTypeDef#

# StartPositionTypeDef usage example

from mypy_boto3_connectparticipant.type_defs import StartPositionTypeDef

def get_value() -> StartPositionTypeDef:
    return {
        "Id": ...,
    }
# StartPositionTypeDef definition

class StartPositionTypeDef(TypedDict):
    Id: NotRequired[str],
    AbsoluteTime: NotRequired[str],
    MostRecent: NotRequired[int],

ReceiptTypeDef#

# ReceiptTypeDef usage example

from mypy_boto3_connectparticipant.type_defs import ReceiptTypeDef

def get_value() -> ReceiptTypeDef:
    return {
        "DeliveredTimestamp": ...,
    }
# ReceiptTypeDef definition

class ReceiptTypeDef(TypedDict):
    DeliveredTimestamp: NotRequired[str],
    ReadTimestamp: NotRequired[str],
    RecipientParticipantId: NotRequired[str],

ResponseMetadataTypeDef#

# ResponseMetadataTypeDef usage example

from mypy_boto3_connectparticipant.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,

SendEventRequestRequestTypeDef#

# SendEventRequestRequestTypeDef usage example

from mypy_boto3_connectparticipant.type_defs import SendEventRequestRequestTypeDef

def get_value() -> SendEventRequestRequestTypeDef:
    return {
        "ContentType": ...,
        "ConnectionToken": ...,
    }
# SendEventRequestRequestTypeDef definition

class SendEventRequestRequestTypeDef(TypedDict):
    ContentType: str,
    ConnectionToken: str,
    Content: NotRequired[str],
    ClientToken: NotRequired[str],

SendEventResponseTypeDef#

# SendEventResponseTypeDef usage example

from mypy_boto3_connectparticipant.type_defs import SendEventResponseTypeDef

def get_value() -> SendEventResponseTypeDef:
    return {
        "Id": ...,
        "AbsoluteTime": ...,
        "ResponseMetadata": ...,
    }
# SendEventResponseTypeDef definition

class SendEventResponseTypeDef(TypedDict):
    Id: str,
    AbsoluteTime: str,
    ResponseMetadata: ResponseMetadataTypeDef,  # (1)
  1. See ResponseMetadataTypeDef

SendMessageRequestRequestTypeDef#

# SendMessageRequestRequestTypeDef usage example

from mypy_boto3_connectparticipant.type_defs import SendMessageRequestRequestTypeDef

def get_value() -> SendMessageRequestRequestTypeDef:
    return {
        "ContentType": ...,
        "Content": ...,
        "ConnectionToken": ...,
    }
# SendMessageRequestRequestTypeDef definition

class SendMessageRequestRequestTypeDef(TypedDict):
    ContentType: str,
    Content: str,
    ConnectionToken: str,
    ClientToken: NotRequired[str],

SendMessageResponseTypeDef#

# SendMessageResponseTypeDef usage example

from mypy_boto3_connectparticipant.type_defs import SendMessageResponseTypeDef

def get_value() -> SendMessageResponseTypeDef:
    return {
        "Id": ...,
        "AbsoluteTime": ...,
        "ResponseMetadata": ...,
    }
# SendMessageResponseTypeDef definition

class SendMessageResponseTypeDef(TypedDict):
    Id: str,
    AbsoluteTime: str,
    ResponseMetadata: ResponseMetadataTypeDef,  # (1)
  1. See ResponseMetadataTypeDef

StartAttachmentUploadRequestRequestTypeDef#

# StartAttachmentUploadRequestRequestTypeDef usage example

from mypy_boto3_connectparticipant.type_defs import StartAttachmentUploadRequestRequestTypeDef

def get_value() -> StartAttachmentUploadRequestRequestTypeDef:
    return {
        "ContentType": ...,
        "AttachmentSizeInBytes": ...,
        "AttachmentName": ...,
        "ClientToken": ...,
        "ConnectionToken": ...,
    }
# StartAttachmentUploadRequestRequestTypeDef definition

class StartAttachmentUploadRequestRequestTypeDef(TypedDict):
    ContentType: str,
    AttachmentSizeInBytes: int,
    AttachmentName: str,
    ClientToken: str,
    ConnectionToken: str,

UploadMetadataTypeDef#

# UploadMetadataTypeDef usage example

from mypy_boto3_connectparticipant.type_defs import UploadMetadataTypeDef

def get_value() -> UploadMetadataTypeDef:
    return {
        "Url": ...,
    }
# UploadMetadataTypeDef definition

class UploadMetadataTypeDef(TypedDict):
    Url: NotRequired[str],
    UrlExpiry: NotRequired[str],
    HeadersToInclude: NotRequired[Dict[str, str]],

CreateParticipantConnectionResponseTypeDef#

# CreateParticipantConnectionResponseTypeDef usage example

from mypy_boto3_connectparticipant.type_defs import CreateParticipantConnectionResponseTypeDef

def get_value() -> CreateParticipantConnectionResponseTypeDef:
    return {
        "Websocket": ...,
        "ConnectionCredentials": ...,
        "ResponseMetadata": ...,
    }
# CreateParticipantConnectionResponseTypeDef definition

class CreateParticipantConnectionResponseTypeDef(TypedDict):
    Websocket: WebsocketTypeDef,  # (1)
    ConnectionCredentials: ConnectionCredentialsTypeDef,  # (2)
    ResponseMetadata: ResponseMetadataTypeDef,  # (3)
  1. See WebsocketTypeDef
  2. See ConnectionCredentialsTypeDef
  3. See ResponseMetadataTypeDef

GetTranscriptRequestRequestTypeDef#

# GetTranscriptRequestRequestTypeDef usage example

from mypy_boto3_connectparticipant.type_defs import GetTranscriptRequestRequestTypeDef

def get_value() -> GetTranscriptRequestRequestTypeDef:
    return {
        "ConnectionToken": ...,
    }
# GetTranscriptRequestRequestTypeDef definition

class GetTranscriptRequestRequestTypeDef(TypedDict):
    ConnectionToken: str,
    ContactId: NotRequired[str],
    MaxResults: NotRequired[int],
    NextToken: NotRequired[str],
    ScanDirection: NotRequired[ScanDirectionType],  # (1)
    SortOrder: NotRequired[SortKeyType],  # (2)
    StartPosition: NotRequired[StartPositionTypeDef],  # (3)
  1. See ScanDirectionType
  2. See SortKeyType
  3. See StartPositionTypeDef

MessageMetadataTypeDef#

# MessageMetadataTypeDef usage example

from mypy_boto3_connectparticipant.type_defs import MessageMetadataTypeDef

def get_value() -> MessageMetadataTypeDef:
    return {
        "MessageId": ...,
    }
# MessageMetadataTypeDef definition

class MessageMetadataTypeDef(TypedDict):
    MessageId: NotRequired[str],
    Receipts: NotRequired[List[ReceiptTypeDef]],  # (1)
  1. See ReceiptTypeDef

StartAttachmentUploadResponseTypeDef#

# StartAttachmentUploadResponseTypeDef usage example

from mypy_boto3_connectparticipant.type_defs import StartAttachmentUploadResponseTypeDef

def get_value() -> StartAttachmentUploadResponseTypeDef:
    return {
        "AttachmentId": ...,
        "UploadMetadata": ...,
        "ResponseMetadata": ...,
    }
# StartAttachmentUploadResponseTypeDef definition

class StartAttachmentUploadResponseTypeDef(TypedDict):
    AttachmentId: str,
    UploadMetadata: UploadMetadataTypeDef,  # (1)
    ResponseMetadata: ResponseMetadataTypeDef,  # (2)
  1. See UploadMetadataTypeDef
  2. See ResponseMetadataTypeDef

ItemTypeDef#

# ItemTypeDef usage example

from mypy_boto3_connectparticipant.type_defs import ItemTypeDef

def get_value() -> ItemTypeDef:
    return {
        "AbsoluteTime": ...,
    }
# ItemTypeDef definition

class ItemTypeDef(TypedDict):
    AbsoluteTime: NotRequired[str],
    Content: NotRequired[str],
    ContentType: NotRequired[str],
    Id: NotRequired[str],
    Type: NotRequired[ChatItemTypeType],  # (1)
    ParticipantId: NotRequired[str],
    DisplayName: NotRequired[str],
    ParticipantRole: NotRequired[ParticipantRoleType],  # (2)
    Attachments: NotRequired[List[AttachmentItemTypeDef]],  # (3)
    MessageMetadata: NotRequired[MessageMetadataTypeDef],  # (4)
    RelatedContactId: NotRequired[str],
    ContactId: NotRequired[str],
  1. See ChatItemTypeType
  2. See ParticipantRoleType
  3. See AttachmentItemTypeDef
  4. See MessageMetadataTypeDef

GetTranscriptResponseTypeDef#

# GetTranscriptResponseTypeDef usage example

from mypy_boto3_connectparticipant.type_defs import GetTranscriptResponseTypeDef

def get_value() -> GetTranscriptResponseTypeDef:
    return {
        "InitialContactId": ...,
        "Transcript": ...,
        "NextToken": ...,
        "ResponseMetadata": ...,
    }
# GetTranscriptResponseTypeDef definition

class GetTranscriptResponseTypeDef(TypedDict):
    InitialContactId: str,
    Transcript: List[ItemTypeDef],  # (1)
    NextToken: str,
    ResponseMetadata: ResponseMetadataTypeDef,  # (2)
  1. See ItemTypeDef
  2. See ResponseMetadataTypeDef