Skip to content

Type definitions#

Index > MTurk > Type definitions

Auto-generated documentation for MTurk type annotations stubs module mypy-boto3-mturk.

TimestampTypeDef#

# TimestampTypeDef definition

TimestampTypeDef = Union[
    datetime,
    str,
]

QualificationRequirementUnionTypeDef#

# QualificationRequirementUnionTypeDef definition

QualificationRequirementUnionTypeDef = Union[
    QualificationRequirementTypeDef,  # (1)
    QualificationRequirementExtraOutputTypeDef,  # (2)
]
  1. See QualificationRequirementTypeDef
  2. See QualificationRequirementExtraOutputTypeDef

ReviewPolicyUnionTypeDef#

# ReviewPolicyUnionTypeDef definition

ReviewPolicyUnionTypeDef = Union[
    ReviewPolicyTypeDef,  # (1)
    ReviewPolicyOutputTypeDef,  # (2)
]
  1. See ReviewPolicyTypeDef
  2. See ReviewPolicyOutputTypeDef

AcceptQualificationRequestRequestRequestTypeDef#

# AcceptQualificationRequestRequestRequestTypeDef definition

class AcceptQualificationRequestRequestRequestTypeDef(TypedDict):
    QualificationRequestId: str,
    IntegerValue: NotRequired[int],

ApproveAssignmentRequestRequestTypeDef#

# ApproveAssignmentRequestRequestTypeDef definition

class ApproveAssignmentRequestRequestTypeDef(TypedDict):
    AssignmentId: str,
    RequesterFeedback: NotRequired[str],
    OverrideRejection: NotRequired[bool],

AssignmentTypeDef#

# AssignmentTypeDef definition

class AssignmentTypeDef(TypedDict):
    AssignmentId: NotRequired[str],
    WorkerId: NotRequired[str],
    HITId: NotRequired[str],
    AssignmentStatus: NotRequired[AssignmentStatusType],  # (1)
    AutoApprovalTime: NotRequired[datetime],
    AcceptTime: NotRequired[datetime],
    SubmitTime: NotRequired[datetime],
    ApprovalTime: NotRequired[datetime],
    RejectionTime: NotRequired[datetime],
    Deadline: NotRequired[datetime],
    Answer: NotRequired[str],
    RequesterFeedback: NotRequired[str],
  1. See AssignmentStatusType

AssociateQualificationWithWorkerRequestRequestTypeDef#

# AssociateQualificationWithWorkerRequestRequestTypeDef definition

class AssociateQualificationWithWorkerRequestRequestTypeDef(TypedDict):
    QualificationTypeId: str,
    WorkerId: str,
    IntegerValue: NotRequired[int],
    SendNotification: NotRequired[bool],

BonusPaymentTypeDef#

# BonusPaymentTypeDef definition

class BonusPaymentTypeDef(TypedDict):
    WorkerId: NotRequired[str],
    BonusAmount: NotRequired[str],
    AssignmentId: NotRequired[str],
    Reason: NotRequired[str],
    GrantTime: NotRequired[datetime],

CreateAdditionalAssignmentsForHITRequestRequestTypeDef#

# CreateAdditionalAssignmentsForHITRequestRequestTypeDef definition

class CreateAdditionalAssignmentsForHITRequestRequestTypeDef(TypedDict):
    HITId: str,
    NumberOfAdditionalAssignments: int,
    UniqueRequestToken: NotRequired[str],

HITLayoutParameterTypeDef#

# HITLayoutParameterTypeDef definition

class HITLayoutParameterTypeDef(TypedDict):
    Name: str,
    Value: str,

ResponseMetadataTypeDef#

# ResponseMetadataTypeDef definition

class ResponseMetadataTypeDef(TypedDict):
    RequestId: str,
    HTTPStatusCode: int,
    HTTPHeaders: Dict[str, str],
    RetryAttempts: int,
    HostId: NotRequired[str],

CreateQualificationTypeRequestRequestTypeDef#

# CreateQualificationTypeRequestRequestTypeDef definition

class CreateQualificationTypeRequestRequestTypeDef(TypedDict):
    Name: str,
    Description: str,