MTurkClient#
Auto-generated documentation for MTurk type annotations stubs module mypy-boto3-mturk.
MTurkClient#
Type annotations and code completion for boto3.client("mturk")
.
boto3 documentation
# MTurkClient usage example
from boto3.session import Session
from mypy_boto3_mturk.client import MTurkClient
def get_mturk_client() -> MTurkClient:
return Session().client("mturk")
Exceptions#
boto3
client exceptions are generated in runtime.
This class provides code completion for boto3.client("mturk").exceptions
structure.
# Exceptions.exceptions usage example
client = boto3.client("mturk")
try:
do_something(client)
except (
client.exceptions.ClientError,
client.exceptions.RequestError,
client.exceptions.ServiceFault,
) as e:
print(e)
# Exceptions.exceptions type checking example
from mypy_boto3_mturk.client import Exceptions
def handle_error(exc: Exceptions.ClientError) -> None:
...
Methods#
accept_qualification_request#
The AcceptQualificationRequest
operation approves a Worker's request for a
Qualification.
Type annotations and code completion for boto3.client("mturk").accept_qualification_request
method.
boto3 documentation
# accept_qualification_request method definition
def accept_qualification_request(
self,
*,
QualificationRequestId: str,
IntegerValue: int = ...,
) -> Dict[str, Any]:
...
# accept_qualification_request method usage example with argument unpacking
kwargs: AcceptQualificationRequestRequestRequestTypeDef = { # (1)
"QualificationRequestId": ...,
}
parent.accept_qualification_request(**kwargs)
approve_assignment#
The ApproveAssignment
operation approves the results of a completed
assignment.
Type annotations and code completion for boto3.client("mturk").approve_assignment
method.
boto3 documentation
# approve_assignment method definition
def approve_assignment(
self,
*,
AssignmentId: str,
RequesterFeedback: str = ...,
OverrideRejection: bool = ...,
) -> Dict[str, Any]:
...
# approve_assignment method usage example with argument unpacking
kwargs: ApproveAssignmentRequestRequestTypeDef = { # (1)
"AssignmentId": ...,
}
parent.approve_assignment(**kwargs)
associate_qualification_with_worker#
The AssociateQualificationWithWorker
operation gives a Worker a Qualification.
Type annotations and code completion for boto3.client("mturk").associate_qualification_with_worker
method.
boto3 documentation
# associate_qualification_with_worker method definition
def associate_qualification_with_worker(
self,
*,
QualificationTypeId: str,
WorkerId: str,
IntegerValue: int = ...,
SendNotification: bool = ...,
) -> Dict[str, Any]:
...
# associate_qualification_with_worker method usage example with argument unpacking
kwargs: AssociateQualificationWithWorkerRequestRequestTypeDef = { # (1)
"QualificationTypeId": ...,
"WorkerId": ...,
}
parent.associate_qualification_with_worker(**kwargs)
can_paginate#
Check if an operation can be paginated.
Type annotations and code completion for boto3.client("mturk").can_paginate
method.
boto3 documentation
# can_paginate method definition
def can_paginate(
self,
operation_name: str,
) -> bool:
...
close#
Closes underlying endpoint connections.
Type annotations and code completion for boto3.client("mturk").close
method.
boto3 documentation
# close method definition
def close(
self,
) -> None:
...
create_additional_assignments_for_hit#
The CreateAdditionalAssignmentsForHIT
operation increases the maximum number
of assignments of an existing
HIT.
Type annotations and code completion for boto3.client("mturk").create_additional_assignments_for_hit
method.
boto3 documentation
# create_additional_assignments_for_hit method definition
def create_additional_assignments_for_hit(
self,
*,
HITId: str,
NumberOfAdditionalAssignments: int,
UniqueRequestToken: str = ...,
) -> Dict[str, Any]:
...
# create_additional_assignments_for_hit method usage example with argument unpacking
kwargs: CreateAdditionalAssignmentsForHITRequestRequestTypeDef = { # (1)
"HITId": ...,
"NumberOfAdditionalAssignments": ...,
}
parent.create_additional_assignments_for_hit(**kwargs)
create_hit#
The CreateHIT
operation creates a new Human Intelligence Task (HIT).
Type annotations and code completion for boto3.client("mturk").create_hit
method.
boto3 documentation
# create_hit method definition
def create_hit(
self,
*,
LifetimeInSeconds: int,
AssignmentDurationInSeconds: int,
Reward: str,
Title: str,
Description: str,
MaxAssignments: int = ...,
AutoApprovalDelayInSeconds: int = ...,
Keywords: str = ...,
Question: str = ...,
RequesterAnnotation: str = ...,
QualificationRequirements: Sequence[Union[QualificationRequirementTypeDef, QualificationRequirementExtraOutputTypeDef]] = ..., # (1)
UniqueRequestToken: str = ...,
AssignmentReviewPolicy: Union[ReviewPolicyTypeDef, ReviewPolicyOutputTypeDef] = ..., # (2)
HITReviewPolicy: Union[ReviewPolicyTypeDef, ReviewPolicyOutputTypeDef] = ..., # (2)
HITLayoutId: str = ...,
HITLayoutParameters: Sequence[HITLayoutParameterTypeDef] = ..., # (4)
) -> CreateHITResponseTypeDef: # (5)
...