| line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
|
1
|
|
|
|
|
|
|
|
|
2
|
|
|
|
|
|
|
package Paws::MTurk::CreateHITWithHITType; |
|
3
|
1
|
|
|
1
|
|
422
|
use Moose; |
|
|
1
|
|
|
|
|
2
|
|
|
|
1
|
|
|
|
|
7
|
|
|
4
|
|
|
|
|
|
|
has AssignmentReviewPolicy => (is => 'ro', isa => 'Paws::MTurk::ReviewPolicy'); |
|
5
|
|
|
|
|
|
|
has HITLayoutId => (is => 'ro', isa => 'Str'); |
|
6
|
|
|
|
|
|
|
has HITLayoutParameters => (is => 'ro', isa => 'ArrayRef[Paws::MTurk::HITLayoutParameter]'); |
|
7
|
|
|
|
|
|
|
has HITReviewPolicy => (is => 'ro', isa => 'Paws::MTurk::ReviewPolicy'); |
|
8
|
|
|
|
|
|
|
has HITTypeId => (is => 'ro', isa => 'Str', required => 1); |
|
9
|
|
|
|
|
|
|
has LifetimeInSeconds => (is => 'ro', isa => 'Int', required => 1); |
|
10
|
|
|
|
|
|
|
has MaxAssignments => (is => 'ro', isa => 'Int'); |
|
11
|
|
|
|
|
|
|
has Question => (is => 'ro', isa => 'Str'); |
|
12
|
|
|
|
|
|
|
has RequesterAnnotation => (is => 'ro', isa => 'Str'); |
|
13
|
|
|
|
|
|
|
has UniqueRequestToken => (is => 'ro', isa => 'Str'); |
|
14
|
|
|
|
|
|
|
|
|
15
|
1
|
|
|
1
|
|
6167
|
use MooseX::ClassAttribute; |
|
|
1
|
|
|
|
|
2
|
|
|
|
1
|
|
|
|
|
8
|
|
|
16
|
|
|
|
|
|
|
|
|
17
|
|
|
|
|
|
|
class_has _api_call => (isa => 'Str', is => 'ro', default => 'CreateHITWithHITType'); |
|
18
|
|
|
|
|
|
|
class_has _returns => (isa => 'Str', is => 'ro', default => 'Paws::MTurk::CreateHITWithHITTypeResponse'); |
|
19
|
|
|
|
|
|
|
class_has _result_key => (isa => 'Str', is => 'ro'); |
|
20
|
|
|
|
|
|
|
1; |
|
21
|
|
|
|
|
|
|
|
|
22
|
|
|
|
|
|
|
### main pod documentation begin ### |
|
23
|
|
|
|
|
|
|
|
|
24
|
|
|
|
|
|
|
=head1 NAME |
|
25
|
|
|
|
|
|
|
|
|
26
|
|
|
|
|
|
|
Paws::MTurk::CreateHITWithHITType - Arguments for method CreateHITWithHITType on Paws::MTurk |
|
27
|
|
|
|
|
|
|
|
|
28
|
|
|
|
|
|
|
=head1 DESCRIPTION |
|
29
|
|
|
|
|
|
|
|
|
30
|
|
|
|
|
|
|
This class represents the parameters used for calling the method CreateHITWithHITType on the |
|
31
|
|
|
|
|
|
|
Amazon Mechanical Turk service. Use the attributes of this class |
|
32
|
|
|
|
|
|
|
as arguments to method CreateHITWithHITType. |
|
33
|
|
|
|
|
|
|
|
|
34
|
|
|
|
|
|
|
You shouldn't make instances of this class. Each attribute should be used as a named argument in the call to CreateHITWithHITType. |
|
35
|
|
|
|
|
|
|
|
|
36
|
|
|
|
|
|
|
As an example: |
|
37
|
|
|
|
|
|
|
|
|
38
|
|
|
|
|
|
|
$service_obj->CreateHITWithHITType(Att1 => $value1, Att2 => $value2, ...); |
|
39
|
|
|
|
|
|
|
|
|
40
|
|
|
|
|
|
|
Values for attributes that are native types (Int, String, Float, etc) can passed as-is (scalar values). Values for complex Types (objects) can be passed as a HashRef. The keys and values of the hashref will be used to instance the underlying object. |
|
41
|
|
|
|
|
|
|
|
|
42
|
|
|
|
|
|
|
=head1 ATTRIBUTES |
|
43
|
|
|
|
|
|
|
|
|
44
|
|
|
|
|
|
|
|
|
45
|
|
|
|
|
|
|
=head2 AssignmentReviewPolicy => L<Paws::MTurk::ReviewPolicy> |
|
46
|
|
|
|
|
|
|
|
|
47
|
|
|
|
|
|
|
The Assignment-level Review Policy applies to the assignments under the |
|
48
|
|
|
|
|
|
|
HIT. You can specify for Mechanical Turk to take various actions based |
|
49
|
|
|
|
|
|
|
on the policy. |
|
50
|
|
|
|
|
|
|
|
|
51
|
|
|
|
|
|
|
|
|
52
|
|
|
|
|
|
|
|
|
53
|
|
|
|
|
|
|
=head2 HITLayoutId => Str |
|
54
|
|
|
|
|
|
|
|
|
55
|
|
|
|
|
|
|
The HITLayoutId allows you to use a pre-existing HIT design with |
|
56
|
|
|
|
|
|
|
placeholder values and create an additional HIT by providing those |
|
57
|
|
|
|
|
|
|
values as HITLayoutParameters. |
|
58
|
|
|
|
|
|
|
|
|
59
|
|
|
|
|
|
|
Constraints: Either a Question parameter or a HITLayoutId parameter |
|
60
|
|
|
|
|
|
|
must be provided. |
|
61
|
|
|
|
|
|
|
|
|
62
|
|
|
|
|
|
|
|
|
63
|
|
|
|
|
|
|
|
|
64
|
|
|
|
|
|
|
=head2 HITLayoutParameters => ArrayRef[L<Paws::MTurk::HITLayoutParameter>] |
|
65
|
|
|
|
|
|
|
|
|
66
|
|
|
|
|
|
|
If the HITLayoutId is provided, any placeholder values must be filled |
|
67
|
|
|
|
|
|
|
in with values using the HITLayoutParameter structure. For more |
|
68
|
|
|
|
|
|
|
information, see HITLayout. |
|
69
|
|
|
|
|
|
|
|
|
70
|
|
|
|
|
|
|
|
|
71
|
|
|
|
|
|
|
|
|
72
|
|
|
|
|
|
|
=head2 HITReviewPolicy => L<Paws::MTurk::ReviewPolicy> |
|
73
|
|
|
|
|
|
|
|
|
74
|
|
|
|
|
|
|
The HIT-level Review Policy applies to the HIT. You can specify for |
|
75
|
|
|
|
|
|
|
Mechanical Turk to take various actions based on the policy. |
|
76
|
|
|
|
|
|
|
|
|
77
|
|
|
|
|
|
|
|
|
78
|
|
|
|
|
|
|
|
|
79
|
|
|
|
|
|
|
=head2 B<REQUIRED> HITTypeId => Str |
|
80
|
|
|
|
|
|
|
|
|
81
|
|
|
|
|
|
|
The HIT type ID you want to create this HIT with. |
|
82
|
|
|
|
|
|
|
|
|
83
|
|
|
|
|
|
|
|
|
84
|
|
|
|
|
|
|
|
|
85
|
|
|
|
|
|
|
=head2 B<REQUIRED> LifetimeInSeconds => Int |
|
86
|
|
|
|
|
|
|
|
|
87
|
|
|
|
|
|
|
An amount of time, in seconds, after which the HIT is no longer |
|
88
|
|
|
|
|
|
|
available for users to accept. After the lifetime of the HIT elapses, |
|
89
|
|
|
|
|
|
|
the HIT no longer appears in HIT searches, even if not all of the |
|
90
|
|
|
|
|
|
|
assignments for the HIT have been accepted. |
|
91
|
|
|
|
|
|
|
|
|
92
|
|
|
|
|
|
|
|
|
93
|
|
|
|
|
|
|
|
|
94
|
|
|
|
|
|
|
=head2 MaxAssignments => Int |
|
95
|
|
|
|
|
|
|
|
|
96
|
|
|
|
|
|
|
The number of times the HIT can be accepted and completed before the |
|
97
|
|
|
|
|
|
|
HIT becomes unavailable. |
|
98
|
|
|
|
|
|
|
|
|
99
|
|
|
|
|
|
|
|
|
100
|
|
|
|
|
|
|
|
|
101
|
|
|
|
|
|
|
=head2 Question => Str |
|
102
|
|
|
|
|
|
|
|
|
103
|
|
|
|
|
|
|
The data the person completing the HIT uses to produce the results. |
|
104
|
|
|
|
|
|
|
|
|
105
|
|
|
|
|
|
|
Constraints: Must be a QuestionForm data structure, an ExternalQuestion |
|
106
|
|
|
|
|
|
|
data structure, or an HTMLQuestion data structure. The XML question |
|
107
|
|
|
|
|
|
|
data must not be larger than 64 kilobytes (65,535 bytes) in size, |
|
108
|
|
|
|
|
|
|
including whitespace. |
|
109
|
|
|
|
|
|
|
|
|
110
|
|
|
|
|
|
|
Either a Question parameter or a HITLayoutId parameter must be |
|
111
|
|
|
|
|
|
|
provided. |
|
112
|
|
|
|
|
|
|
|
|
113
|
|
|
|
|
|
|
|
|
114
|
|
|
|
|
|
|
|
|
115
|
|
|
|
|
|
|
=head2 RequesterAnnotation => Str |
|
116
|
|
|
|
|
|
|
|
|
117
|
|
|
|
|
|
|
An arbitrary data field. The RequesterAnnotation parameter lets your |
|
118
|
|
|
|
|
|
|
application attach arbitrary data to the HIT for tracking purposes. For |
|
119
|
|
|
|
|
|
|
example, this parameter could be an identifier internal to the |
|
120
|
|
|
|
|
|
|
Requester's application that corresponds with the HIT. |
|
121
|
|
|
|
|
|
|
|
|
122
|
|
|
|
|
|
|
The RequesterAnnotation parameter for a HIT is only visible to the |
|
123
|
|
|
|
|
|
|
Requester who created the HIT. It is not shown to the Worker, or any |
|
124
|
|
|
|
|
|
|
other Requester. |
|
125
|
|
|
|
|
|
|
|
|
126
|
|
|
|
|
|
|
The RequesterAnnotation parameter may be different for each HIT you |
|
127
|
|
|
|
|
|
|
submit. It does not affect how your HITs are grouped. |
|
128
|
|
|
|
|
|
|
|
|
129
|
|
|
|
|
|
|
|
|
130
|
|
|
|
|
|
|
|
|
131
|
|
|
|
|
|
|
=head2 UniqueRequestToken => Str |
|
132
|
|
|
|
|
|
|
|
|
133
|
|
|
|
|
|
|
A unique identifier for this request which allows you to retry the call |
|
134
|
|
|
|
|
|
|
on error without creating duplicate HITs. This is useful in cases such |
|
135
|
|
|
|
|
|
|
as network timeouts where it is unclear whether or not the call |
|
136
|
|
|
|
|
|
|
succeeded on the server. If the HIT already exists in the system from a |
|
137
|
|
|
|
|
|
|
previous call using the same UniqueRequestToken, subsequent calls will |
|
138
|
|
|
|
|
|
|
return a AWS.MechanicalTurk.HitAlreadyExists error with a message |
|
139
|
|
|
|
|
|
|
containing the HITId. |
|
140
|
|
|
|
|
|
|
|
|
141
|
|
|
|
|
|
|
Note: It is your responsibility to ensure uniqueness of the token. The |
|
142
|
|
|
|
|
|
|
unique token expires after 24 hours. Subsequent calls using the same |
|
143
|
|
|
|
|
|
|
UniqueRequestToken made after the 24 hour limit could create duplicate |
|
144
|
|
|
|
|
|
|
HITs. |
|
145
|
|
|
|
|
|
|
|
|
146
|
|
|
|
|
|
|
|
|
147
|
|
|
|
|
|
|
|
|
148
|
|
|
|
|
|
|
|
|
149
|
|
|
|
|
|
|
=head1 SEE ALSO |
|
150
|
|
|
|
|
|
|
|
|
151
|
|
|
|
|
|
|
This class forms part of L<Paws>, documenting arguments for method CreateHITWithHITType in L<Paws::MTurk> |
|
152
|
|
|
|
|
|
|
|
|
153
|
|
|
|
|
|
|
=head1 BUGS and CONTRIBUTIONS |
|
154
|
|
|
|
|
|
|
|
|
155
|
|
|
|
|
|
|
The source code is located here: https://github.com/pplu/aws-sdk-perl |
|
156
|
|
|
|
|
|
|
|
|
157
|
|
|
|
|
|
|
Please report bugs to: https://github.com/pplu/aws-sdk-perl/issues |
|
158
|
|
|
|
|
|
|
|
|
159
|
|
|
|
|
|
|
=cut |
|
160
|
|
|
|
|
|
|
|