blib/lib/Paws/FIS.pm untested

filter: Statementstmt 0.0% 0 / 55 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 20 Podpod 0.0% 0 / 19 totaltotal 0.0% 0 / 94 CC 1 SCAR 6.9
CC
1
Cov
0%
service
2.0
signing_name
2.0
version
2.0
CRAP 2.0
1 package Paws::FIS;
2 use Moose;
3 sub service { 'fis' }
4 sub signing_name { 'fis' }
5 sub version { '2020-12-01' }
6 sub flattened_arrays { 0 }
7 has max_attempts => (is => 'ro', isa => 'Int', default => 5);
8 has retry => (is => 'ro', isa => 'HashRef', default => sub {
9 { base => 'rand', type => 'exponential', growth_factor => 2 }
10 });
11 has retriables => (is => 'ro', isa => 'ArrayRef', default => sub { [
12 ] });
13  
14 with 'Paws::API::Caller', 'Paws::API::EndpointResolver', 'Paws::Net::V4Signature', 'Paws::Net::RestJsonCaller';
15  
16
17 sub CreateExperimentTemplate {
18 my $self = shift;
19 my $call_object = $self->new_with_coercions('Paws::FIS::CreateExperimentTemplate', @_);
20 return $self->caller->do_call($self, $call_object);
21 }
22 sub DeleteExperimentTemplate {
23 my $self = shift;
24 my $call_object = $self->new_with_coercions('Paws::FIS::DeleteExperimentTemplate', @_);
25 return $self->caller->do_call($self, $call_object);
26 }
27 sub GetAction {
28 my $self = shift;
29 my $call_object = $self->new_with_coercions('Paws::FIS::GetAction', @_);
30 return $self->caller->do_call($self, $call_object);
31 }
32 sub GetExperiment {
33 my $self = shift;
34 my $call_object = $self->new_with_coercions('Paws::FIS::GetExperiment', @_);
35 return $self->caller->do_call($self, $call_object);
36 }
37 sub GetExperimentTemplate {
38 my $self = shift;
39 my $call_object = $self->new_with_coercions('Paws::FIS::GetExperimentTemplate', @_);
40 return $self->caller->do_call($self, $call_object);
41 }
42 sub ListActions {
43 my $self = shift;
44 my $call_object = $self->new_with_coercions('Paws::FIS::ListActions', @_);
45 return $self->caller->do_call($self, $call_object);
46 }
47 sub ListExperiments {
48 my $self = shift;
49 my $call_object = $self->new_with_coercions('Paws::FIS::ListExperiments', @_);
50 return $self->caller->do_call($self, $call_object);
51 }
52 sub ListExperimentTemplates {
53 my $self = shift;
54 my $call_object = $self->new_with_coercions('Paws::FIS::ListExperimentTemplates', @_);
55 return $self->caller->do_call($self, $call_object);
56 }
57 sub ListTagsForResource {
58 my $self = shift;
59 my $call_object = $self->new_with_coercions('Paws::FIS::ListTagsForResource', @_);
60 return $self->caller->do_call($self, $call_object);
61 }
62 sub StartExperiment {
63 my $self = shift;
64 my $call_object = $self->new_with_coercions('Paws::FIS::StartExperiment', @_);
65 return $self->caller->do_call($self, $call_object);
66 }
67 sub StopExperiment {
68 my $self = shift;
69 my $call_object = $self->new_with_coercions('Paws::FIS::StopExperiment', @_);
70 return $self->caller->do_call($self, $call_object);
71 }
72 sub TagResource {
73 my $self = shift;
74 my $call_object = $self->new_with_coercions('Paws::FIS::TagResource', @_);
75 return $self->caller->do_call($self, $call_object);
76 }
77 sub UntagResource {
78 my $self = shift;
79 my $call_object = $self->new_with_coercions('Paws::FIS::UntagResource', @_);
80 return $self->caller->do_call($self, $call_object);
81 }
82 sub UpdateExperimentTemplate {
83 my $self = shift;
84 my $call_object = $self->new_with_coercions('Paws::FIS::UpdateExperimentTemplate', @_);
85 return $self->caller->do_call($self, $call_object);
86 }
87
88  
89  
90 sub operations { qw/CreateExperimentTemplate DeleteExperimentTemplate GetAction GetExperiment GetExperimentTemplate ListActions ListExperiments ListExperimentTemplates ListTagsForResource StartExperiment StopExperiment TagResource UntagResource UpdateExperimentTemplate / }
91  
92 1;
93  
94 ### main pod documentation begin ###
95  
96 =head1 NAME
97  
98 Paws::FIS - Perl Interface to AWS AWS Fault Injection Simulator
99  
100 =head1 SYNOPSIS
101  
102 use Paws;
103  
104 my $obj = Paws->service('FIS');
105 my $res = $obj->Method(
106 Arg1 => $val1,
107 Arg2 => [ 'V1', 'V2' ],
108 # if Arg3 is an object, the HashRef will be used as arguments to the constructor
109 # of the arguments type
110 Arg3 => { Att1 => 'Val1' },
111 # if Arg4 is an array of objects, the HashRefs will be passed as arguments to
112 # the constructor of the arguments type
113 Arg4 => [ { Att1 => 'Val1' }, { Att1 => 'Val2' } ],
114 );
115  
116 =head1 DESCRIPTION
117  
118 AWS Fault Injection Simulator is a managed service that enables you to
119 perform fault injection experiments on your AWS workloads. For more
120 information, see the AWS Fault Injection Simulator User Guide
121 (https://docs.aws.amazon.com/fis/latest/userguide/).
122  
123 For the AWS API documentation, see L<https://docs.aws.amazon.com/goto/WebAPI/fis-2020-12-01>
124  
125  
126 =head1 METHODS
127  
128 =head2 CreateExperimentTemplate
129  
130 =over
131  
132 =item Actions => L<Paws::FIS::CreateExperimentTemplateActionInputMap>
133  
134 =item ClientToken => Str
135  
136 =item Description => Str
137  
138 =item RoleArn => Str
139  
140 =item StopConditions => ArrayRef[L<Paws::FIS::CreateExperimentTemplateStopConditionInput>]
141  
142 =item [Tags => L<Paws::FIS::TagMap>]
143  
144 =item [Targets => L<Paws::FIS::CreateExperimentTemplateTargetInputMap>]
145  
146  
147 =back
148  
149 Each argument is described in detail in: L<Paws::FIS::CreateExperimentTemplate>
150  
151 Returns: a L<Paws::FIS::CreateExperimentTemplateResponse> instance
152  
153 Creates an experiment template.
154  
155 To create a template, specify the following information:
156  
157 =over
158  
159 =item *
160  
161 B<Targets>: A target can be a specific resource in your AWS
162 environment, or one or more resources that match criteria that you
163 specify, for example, resources that have specific tags.
164  
165 =item *
166  
167 B<Actions>: The actions to carry out on the target. You can specify
168 multiple actions, the duration of each action, and when to start each
169 action during an experiment.
170  
171 =item *
172  
173 B<Stop conditions>: If a stop condition is triggered while an
174 experiment is running, the experiment is automatically stopped. You can
175 define a stop condition as a CloudWatch alarm.
176  
177 =back
178  
179 For more information, see the AWS Fault Injection Simulator User Guide
180 (https://docs.aws.amazon.com/fis/latest/userguide/).
181  
182  
183 =head2 DeleteExperimentTemplate
184  
185 =over
186  
187 =item Id => Str
188  
189  
190 =back
191  
192 Each argument is described in detail in: L<Paws::FIS::DeleteExperimentTemplate>
193  
194 Returns: a L<Paws::FIS::DeleteExperimentTemplateResponse> instance
195  
196 Deletes the specified experiment template.
197  
198  
199 =head2 GetAction
200  
201 =over
202  
203 =item Id => Str
204  
205  
206 =back
207  
208 Each argument is described in detail in: L<Paws::FIS::GetAction>
209  
210 Returns: a L<Paws::FIS::GetActionResponse> instance
211  
212 Gets information about the specified AWS FIS action.
213  
214  
215 =head2 GetExperiment
216  
217 =over
218  
219 =item Id => Str
220  
221  
222 =back
223  
224 Each argument is described in detail in: L<Paws::FIS::GetExperiment>
225  
226 Returns: a L<Paws::FIS::GetExperimentResponse> instance
227  
228 Gets information about the specified experiment.
229  
230  
231 =head2 GetExperimentTemplate
232  
233 =over
234  
235 =item Id => Str
236  
237  
238 =back
239  
240 Each argument is described in detail in: L<Paws::FIS::GetExperimentTemplate>
241  
242 Returns: a L<Paws::FIS::GetExperimentTemplateResponse> instance
243  
244 Gets information about the specified experiment template.
245  
246  
247 =head2 ListActions
248  
249 =over
250  
251 =item [MaxResults => Int]
252  
253 =item [NextToken => Str]
254  
255  
256 =back
257  
258 Each argument is described in detail in: L<Paws::FIS::ListActions>
259  
260 Returns: a L<Paws::FIS::ListActionsResponse> instance
261  
262 Lists the available AWS FIS actions.
263  
264  
265 =head2 ListExperiments
266  
267 =over
268  
269 =item [MaxResults => Int]
270  
271 =item [NextToken => Str]
272  
273  
274 =back
275  
276 Each argument is described in detail in: L<Paws::FIS::ListExperiments>
277  
278 Returns: a L<Paws::FIS::ListExperimentsResponse> instance
279  
280 Lists your experiments.
281  
282  
283 =head2 ListExperimentTemplates
284  
285 =over
286  
287 =item [MaxResults => Int]
288  
289 =item [NextToken => Str]
290  
291  
292 =back
293  
294 Each argument is described in detail in: L<Paws::FIS::ListExperimentTemplates>
295  
296 Returns: a L<Paws::FIS::ListExperimentTemplatesResponse> instance
297  
298 Lists your experiment templates.
299  
300  
301 =head2 ListTagsForResource
302  
303 =over
304  
305 =item ResourceArn => Str
306  
307  
308 =back
309  
310 Each argument is described in detail in: L<Paws::FIS::ListTagsForResource>
311  
312 Returns: a L<Paws::FIS::ListTagsForResourceResponse> instance
313  
314 Lists the tags for the specified resource.
315  
316  
317 =head2 StartExperiment
318  
319 =over
320  
321 =item ClientToken => Str
322  
323 =item ExperimentTemplateId => Str
324  
325 =item [Tags => L<Paws::FIS::TagMap>]
326  
327  
328 =back
329  
330 Each argument is described in detail in: L<Paws::FIS::StartExperiment>
331  
332 Returns: a L<Paws::FIS::StartExperimentResponse> instance
333  
334 Starts running an experiment from the specified experiment template.
335  
336  
337 =head2 StopExperiment
338  
339 =over
340  
341 =item Id => Str
342  
343  
344 =back
345  
346 Each argument is described in detail in: L<Paws::FIS::StopExperiment>
347  
348 Returns: a L<Paws::FIS::StopExperimentResponse> instance
349  
350 Stops the specified experiment.
351  
352  
353 =head2 TagResource
354  
355 =over
356  
357 =item ResourceArn => Str
358  
359 =item Tags => L<Paws::FIS::TagMap>
360  
361  
362 =back
363  
364 Each argument is described in detail in: L<Paws::FIS::TagResource>
365  
366 Returns: a L<Paws::FIS::TagResourceResponse> instance
367  
368 Applies the specified tags to the specified resource.
369  
370  
371 =head2 UntagResource
372  
373 =over
374  
375 =item ResourceArn => Str
376  
377 =item [TagKeys => ArrayRef[Str|Undef]]
378  
379  
380 =back
381  
382 Each argument is described in detail in: L<Paws::FIS::UntagResource>
383  
384 Returns: a L<Paws::FIS::UntagResourceResponse> instance
385  
386 Removes the specified tags from the specified resource.
387  
388  
389 =head2 UpdateExperimentTemplate
390  
391 =over
392  
393 =item Id => Str
394  
395 =item [Actions => L<Paws::FIS::UpdateExperimentTemplateActionInputMap>]
396  
397 =item [Description => Str]
398  
399 =item [RoleArn => Str]
400  
401 =item [StopConditions => ArrayRef[L<Paws::FIS::UpdateExperimentTemplateStopConditionInput>]]
402  
403 =item [Targets => L<Paws::FIS::UpdateExperimentTemplateTargetInputMap>]
404  
405  
406 =back
407  
408 Each argument is described in detail in: L<Paws::FIS::UpdateExperimentTemplate>
409  
410 Returns: a L<Paws::FIS::UpdateExperimentTemplateResponse> instance
411  
412 Updates the specified experiment template.
413  
414  
415  
416  
417 =head1 PAGINATORS
418  
419 Paginator methods are helpers that repetively call methods that return partial results
420  
421  
422  
423  
424 =head1 SEE ALSO
425  
426 This service class forms part of L<Paws>
427  
428 =head1 BUGS and CONTRIBUTIONS
429  
430 The source code is located here: L<https://github.com/pplu/aws-sdk-perl>
431  
432 Please report bugs to: L<https://github.com/pplu/aws-sdk-perl/issues>
433  
434 =cut
435