File Coverage

blib/lib/Paws/SimpleWorkflow/ScheduleActivityTaskDecisionAttributes.pm
Criterion Covered Total %
statement 3 3 100.0
branch n/a
condition n/a
subroutine 1 1 100.0
pod n/a
total 4 4 100.0


line stmt bran cond sub pod time code
1             package Paws::SimpleWorkflow::ScheduleActivityTaskDecisionAttributes;
2 1     1   658 use Moose;
  1         5  
  1         13  
3             has ActivityId => (is => 'ro', isa => 'Str', request_name => 'activityId', traits => ['NameInRequest'], required => 1);
4             has ActivityType => (is => 'ro', isa => 'Paws::SimpleWorkflow::ActivityType', request_name => 'activityType', traits => ['NameInRequest'], required => 1);
5             has Control => (is => 'ro', isa => 'Str', request_name => 'control', traits => ['NameInRequest']);
6             has HeartbeatTimeout => (is => 'ro', isa => 'Str', request_name => 'heartbeatTimeout', traits => ['NameInRequest']);
7             has Input => (is => 'ro', isa => 'Str', request_name => 'input', traits => ['NameInRequest']);
8             has ScheduleToCloseTimeout => (is => 'ro', isa => 'Str', request_name => 'scheduleToCloseTimeout', traits => ['NameInRequest']);
9             has ScheduleToStartTimeout => (is => 'ro', isa => 'Str', request_name => 'scheduleToStartTimeout', traits => ['NameInRequest']);
10             has StartToCloseTimeout => (is => 'ro', isa => 'Str', request_name => 'startToCloseTimeout', traits => ['NameInRequest']);
11             has TaskList => (is => 'ro', isa => 'Paws::SimpleWorkflow::TaskList', request_name => 'taskList', traits => ['NameInRequest']);
12             has TaskPriority => (is => 'ro', isa => 'Str', request_name => 'taskPriority', traits => ['NameInRequest']);
13             1;
14              
15             ### main pod documentation begin ###
16              
17             =head1 NAME
18              
19             Paws::SimpleWorkflow::ScheduleActivityTaskDecisionAttributes
20              
21             =head1 USAGE
22              
23             This class represents one of two things:
24              
25             =head3 Arguments in a call to a service
26              
27             Use the attributes of this class as arguments to methods. You shouldn't make instances of this class.
28             Each attribute should be used as a named argument in the calls that expect this type of object.
29              
30             As an example, if Att1 is expected to be a Paws::SimpleWorkflow::ScheduleActivityTaskDecisionAttributes object:
31              
32             $service_obj->Method(Att1 => { ActivityId => $value, ..., TaskPriority => $value });
33              
34             =head3 Results returned from an API call
35              
36             Use accessors for each attribute. If Att1 is expected to be an Paws::SimpleWorkflow::ScheduleActivityTaskDecisionAttributes object:
37              
38             $result = $service_obj->Method(...);
39             $result->Att1->ActivityId
40              
41             =head1 DESCRIPTION
42              
43             Provides the details of the C<ScheduleActivityTask> decision.
44              
45             B<Access Control>
46              
47             You can use IAM policies to control this decision's access to Amazon
48             SWF resources as follows:
49              
50             =over
51              
52             =item *
53              
54             Use a C<Resource> element with the domain name to limit the action to
55             only specified domains.
56              
57             =item *
58              
59             Use an C<Action> element to allow or deny permission to call this
60             action.
61              
62             =item *
63              
64             Constrain the following parameters by using a C<Condition> element with
65             the appropriate keys.
66              
67             =over
68              
69             =item *
70              
71             C<activityType.name> E<ndash> String constraint. The key is
72             C<swf:activityType.name>.
73              
74             =item *
75              
76             C<activityType.version> E<ndash> String constraint. The key is
77             C<swf:activityType.version>.
78              
79             =item *
80              
81             C<taskList> E<ndash> String constraint. The key is
82             C<swf:taskList.name>.
83              
84             =back
85              
86             =back
87              
88             If the caller doesn't have sufficient permissions to invoke the action,
89             or the parameter values fall outside the specified constraints, the
90             action fails. The associated event attribute's C<cause> parameter is
91             set to C<OPERATION_NOT_PERMITTED>. For details and example IAM
92             policies, see Using IAM to Manage Access to Amazon SWF Workflows in the
93             I<Amazon SWF Developer Guide>.
94              
95             =head1 ATTRIBUTES
96              
97              
98             =head2 B<REQUIRED> ActivityId => Str
99              
100             The C<activityId> of the activity task.
101              
102             The specified string must not start or end with whitespace. It must not
103             contain a C<:> (colon), C</> (slash), C<|> (vertical bar), or any
104             control characters (C<\u0000-\u001f> | C<\u007f-\u009f>). Also, it must
105             not contain the literal string C<arn>.
106              
107              
108             =head2 B<REQUIRED> ActivityType => L<Paws::SimpleWorkflow::ActivityType>
109              
110             The type of the activity task to schedule.
111              
112              
113             =head2 Control => Str
114              
115             Data attached to the event that can be used by the decider in
116             subsequent workflow tasks. This data isn't sent to the activity.
117              
118              
119             =head2 HeartbeatTimeout => Str
120              
121             If set, specifies the maximum time before which a worker processing a
122             task of this type must report progress by calling
123             RecordActivityTaskHeartbeat. If the timeout is exceeded, the activity
124             task is automatically timed out. If the worker subsequently attempts to
125             record a heartbeat or returns a result, it is ignored. This overrides
126             the default heartbeat timeout specified when registering the activity
127             type using RegisterActivityType.
128              
129             The duration is specified in seconds, an integer greater than or equal
130             to C<0>. You can use C<NONE> to specify unlimited duration.
131              
132              
133             =head2 Input => Str
134              
135             The input provided to the activity task.
136              
137              
138             =head2 ScheduleToCloseTimeout => Str
139              
140             The maximum duration for this activity task.
141              
142             The duration is specified in seconds, an integer greater than or equal
143             to C<0>. You can use C<NONE> to specify unlimited duration.
144              
145             A schedule-to-close timeout for this activity task must be specified
146             either as a default for the activity type or through this field. If
147             neither this field is set nor a default schedule-to-close timeout was
148             specified at registration time then a fault is returned.
149              
150              
151             =head2 ScheduleToStartTimeout => Str
152              
153             If set, specifies the maximum duration the activity task can wait to be
154             assigned to a worker. This overrides the default schedule-to-start
155             timeout specified when registering the activity type using
156             RegisterActivityType.
157              
158             The duration is specified in seconds, an integer greater than or equal
159             to C<0>. You can use C<NONE> to specify unlimited duration.
160              
161             A schedule-to-start timeout for this activity task must be specified
162             either as a default for the activity type or through this field. If
163             neither this field is set nor a default schedule-to-start timeout was
164             specified at registration time then a fault is returned.
165              
166              
167             =head2 StartToCloseTimeout => Str
168              
169             If set, specifies the maximum duration a worker may take to process
170             this activity task. This overrides the default start-to-close timeout
171             specified when registering the activity type using
172             RegisterActivityType.
173              
174             The duration is specified in seconds, an integer greater than or equal
175             to C<0>. You can use C<NONE> to specify unlimited duration.
176              
177             A start-to-close timeout for this activity task must be specified
178             either as a default for the activity type or through this field. If
179             neither this field is set nor a default start-to-close timeout was
180             specified at registration time then a fault is returned.
181              
182              
183             =head2 TaskList => L<Paws::SimpleWorkflow::TaskList>
184              
185             If set, specifies the name of the task list in which to schedule the
186             activity task. If not specified, the C<defaultTaskList> registered with
187             the activity type is used.
188              
189             A task list for this activity task must be specified either as a
190             default for the activity type or through this field. If neither this
191             field is set nor a default task list was specified at registration time
192             then a fault is returned.
193              
194             The specified string must not start or end with whitespace. It must not
195             contain a C<:> (colon), C</> (slash), C<|> (vertical bar), or any
196             control characters (C<\u0000-\u001f> | C<\u007f-\u009f>). Also, it must
197             not contain the literal string C<arn>.
198              
199              
200             =head2 TaskPriority => Str
201              
202             If set, specifies the priority with which the activity task is to be
203             assigned to a worker. This overrides the defaultTaskPriority specified
204             when registering the activity type using RegisterActivityType. Valid
205             values are integers that range from Java's C<Integer.MIN_VALUE>
206             (-2147483648) to C<Integer.MAX_VALUE> (2147483647). Higher numbers
207             indicate higher priority.
208              
209             For more information about setting task priority, see Setting Task
210             Priority in the I<Amazon SWF Developer Guide>.
211              
212              
213              
214             =head1 SEE ALSO
215              
216             This class forms part of L<Paws>, describing an object used in L<Paws::SimpleWorkflow>
217              
218             =head1 BUGS and CONTRIBUTIONS
219              
220             The source code is located here: https://github.com/pplu/aws-sdk-perl
221              
222             Please report bugs to: https://github.com/pplu/aws-sdk-perl/issues
223              
224             =cut
225