blib/lib/Paws/FIS/UpdateExperimentTemplate.pm untested

filter: Statementstmt 0.0% 0 / 22 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 2 Podpod n/a totaltotal 0.0% 0 / 24 CC 1 SCAR 6.9
CC
1
Cov
0%
BEGIN
2.0
BEGIN
2.0
CRAP 2.0
1  
2 package Paws::FIS::UpdateExperimentTemplate;
3 use Moose;
4 has Actions => (is => 'ro', isa => 'Paws::FIS::UpdateExperimentTemplateActionInputMap', traits => ['NameInRequest'], request_name => 'actions');
5 has Description => (is => 'ro', isa => 'Str', traits => ['NameInRequest'], request_name => 'description');
6 has Id => (is => 'ro', isa => 'Str', traits => ['ParamInURI'], uri_name => 'id', required => 1);
7 has RoleArn => (is => 'ro', isa => 'Str', traits => ['NameInRequest'], request_name => 'roleArn');
8 has StopConditions => (is => 'ro', isa => 'ArrayRef[Paws::FIS::UpdateExperimentTemplateStopConditionInput]', traits => ['NameInRequest'], request_name => 'stopConditions');
9 has Targets => (is => 'ro', isa => 'Paws::FIS::UpdateExperimentTemplateTargetInputMap', traits => ['NameInRequest'], request_name => 'targets');
10  
11 use MooseX::ClassAttribute;
12  
13 class_has _api_call => (isa => 'Str', is => 'ro', default => 'UpdateExperimentTemplate');
14 class_has _api_uri => (isa => 'Str', is => 'ro', default => '/experimentTemplates/{id}');
15 class_has _api_method => (isa => 'Str', is => 'ro', default => 'PATCH');
16 class_has _returns => (isa => 'Str', is => 'ro', default => 'Paws::FIS::UpdateExperimentTemplateResponse');
17 1;
18  
19 ### main pod documentation begin ###
20  
21 =head1 NAME
22  
23 Paws::FIS::UpdateExperimentTemplate - Arguments for method UpdateExperimentTemplate on L<Paws::FIS>
24  
25 =head1 DESCRIPTION
26  
27 This class represents the parameters used for calling the method UpdateExperimentTemplate on the
28 L<AWS Fault Injection Simulator|Paws::FIS> service. Use the attributes of this class
29 as arguments to method UpdateExperimentTemplate.
30  
31 You shouldn't make instances of this class. Each attribute should be used as a named argument in the call to UpdateExperimentTemplate.
32  
33 =head1 SYNOPSIS
34  
35 my $fis = Paws->service('FIS');
36 my $UpdateExperimentTemplateResponse = $fis->UpdateExperimentTemplate(
37 Id => 'MyExperimentTemplateId',
38 Actions => {
39 'MyExperimentTemplateActionName' => {
40 ActionId => 'MyActionId', # max: 128; OPTIONAL
41 Description =>
42 'MyExperimentTemplateActionDescription', # max: 512; OPTIONAL
43 Parameters => {
44 'MyExperimentTemplateActionParameterName' =>
45 'MyExperimentTemplateActionParameter'
46 , # key: max: 64, value: max: 1024
47 }, # OPTIONAL
48 StartAfter => [
49 'MyExperimentTemplateActionStartAfter', ... # max: 64
50 ], # OPTIONAL
51 Targets => {
52 'MyExperimentTemplateActionTargetName' =>
53 'MyExperimentTemplateTargetName', # key: max: 64, value: max: 64
54 }, # OPTIONAL
55 }, # key: max: 64
56 }, # OPTIONAL
57 Description => 'MyExperimentTemplateDescription', # OPTIONAL
58 RoleArn => 'MyRoleArn', # OPTIONAL
59 StopConditions => [
60 {
61 Source => 'MyStopConditionSource', # max: 64
62 Value => 'MyStopConditionValue', # min: 20, max: 2048; OPTIONAL
63 },
64 ...
65 ], # OPTIONAL
66 Targets => {
67 'MyExperimentTemplateTargetName' => {
68 ResourceType => 'MyResourceType', # max: 64
69 SelectionMode => 'MyExperimentTemplateTargetSelectionMode', # max: 64
70 Filters => [
71 {
72 Path => 'MyExperimentTemplateTargetFilterPath', # max: 256
73 Values => [
74 'MyExperimentTemplateTargetFilterValue', ... # max: 128
75 ],
76  
77 },
78 ...
79 ], # OPTIONAL
80 ResourceArns => [
81 'MyResourceArn', ... # min: 20, max: 2048
82 ], # max: 5; OPTIONAL
83 ResourceTags => {
84 'MyTagKey' => 'MyTagValue', # key: max: 128, value: max: 256
85 }, # max: 50; OPTIONAL
86 }, # key: max: 64
87 }, # OPTIONAL
88 );
89  
90 # Results:
91 my $ExperimentTemplate =
92 $UpdateExperimentTemplateResponse->ExperimentTemplate;
93  
94 # Returns a L<Paws::FIS::UpdateExperimentTemplateResponse> object.
95  
96 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.
97 For the AWS API documentation, see L<https://docs.aws.amazon.com/goto/WebAPI/fis/UpdateExperimentTemplate>
98  
99 =head1 ATTRIBUTES
100  
101  
102 =head2 Actions => L<Paws::FIS::UpdateExperimentTemplateActionInputMap>
103  
104 The actions for the experiment.
105  
106  
107  
108 =head2 Description => Str
109  
110 A description for the template.
111  
112  
113  
114 =head2 B<REQUIRED> Id => Str
115  
116 The ID of the experiment template.
117  
118  
119  
120 =head2 RoleArn => Str
121  
122 The Amazon Resource Name (ARN) of an IAM role that grants the AWS FIS
123 service permission to perform service actions on your behalf.
124  
125  
126  
127 =head2 StopConditions => ArrayRef[L<Paws::FIS::UpdateExperimentTemplateStopConditionInput>]
128  
129 The stop conditions for the experiment.
130  
131  
132  
133 =head2 Targets => L<Paws::FIS::UpdateExperimentTemplateTargetInputMap>
134  
135 The targets for the experiment.
136  
137  
138  
139  
140 =head1 SEE ALSO
141  
142 This class forms part of L<Paws>, documenting arguments for method UpdateExperimentTemplate in L<Paws::FIS>
143  
144 =head1 BUGS and CONTRIBUTIONS
145  
146 The source code is located here: L<https://github.com/pplu/aws-sdk-perl>
147  
148 Please report bugs to: L<https://github.com/pplu/aws-sdk-perl/issues>
149  
150 =cut
151