blib/lib/Paws/SSM/UpdateMaintenanceWindowTarget.pm untested

filter: Statementstmt 0.0% 0 / 16 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 2 Podpod n/a totaltotal 0.0% 0 / 18 CC 1 SCAR 6.9
CC
1
Cov
0%
BEGIN
2.0
BEGIN
2.0
CRAP 2.0
1  
2 package Paws::SSM::UpdateMaintenanceWindowTarget;
3 use Moose;
4 has Description => (is => 'ro', isa => 'Str');
5 has Name => (is => 'ro', isa => 'Str');
6 has OwnerInformation => (is => 'ro', isa => 'Str');
7 has Replace => (is => 'ro', isa => 'Bool');
8 has Targets => (is => 'ro', isa => 'ArrayRef[Paws::SSM::Target]');
9 has WindowId => (is => 'ro', isa => 'Str', required => 1);
10 has WindowTargetId => (is => 'ro', isa => 'Str', required => 1);
11  
12 use MooseX::ClassAttribute;
13  
14 class_has _api_call => (isa => 'Str', is => 'ro', default => 'UpdateMaintenanceWindowTarget');
15 class_has _returns => (isa => 'Str', is => 'ro', default => 'Paws::SSM::UpdateMaintenanceWindowTargetResult');
16 class_has _result_key => (isa => 'Str', is => 'ro');
17 1;
18  
19 ### main pod documentation begin ###
20  
21 =head1 NAME
22  
23 Paws::SSM::UpdateMaintenanceWindowTarget - Arguments for method UpdateMaintenanceWindowTarget on L<Paws::SSM>
24  
25 =head1 DESCRIPTION
26  
27 This class represents the parameters used for calling the method UpdateMaintenanceWindowTarget on the
28 L<Amazon Simple Systems Manager (SSM)|Paws::SSM> service. Use the attributes of this class
29 as arguments to method UpdateMaintenanceWindowTarget.
30  
31 You shouldn't make instances of this class. Each attribute should be used as a named argument in the call to UpdateMaintenanceWindowTarget.
32  
33 =head1 SYNOPSIS
34  
35 my $ssm = Paws->service('SSM');
36 my $UpdateMaintenanceWindowTargetResult =
37 $ssm->UpdateMaintenanceWindowTarget(
38 WindowId => 'MyMaintenanceWindowId',
39 WindowTargetId => 'MyMaintenanceWindowTargetId',
40 Description => 'MyMaintenanceWindowDescription', # OPTIONAL
41 Name => 'MyMaintenanceWindowName', # OPTIONAL
42 OwnerInformation => 'MyOwnerInformation', # OPTIONAL
43 Replace => 1, # OPTIONAL
44 Targets => [
45 {
46 Key => 'MyTargetKey', # min: 1, max: 163; OPTIONAL
47 Values => [ 'MyTargetValue', ... ], # max: 50; OPTIONAL
48 },
49 ...
50 ], # OPTIONAL
51 );
52  
53 # Results:
54 my $Description = $UpdateMaintenanceWindowTargetResult->Description;
55 my $Name = $UpdateMaintenanceWindowTargetResult->Name;
56 my $OwnerInformation =
57 $UpdateMaintenanceWindowTargetResult->OwnerInformation;
58 my $Targets = $UpdateMaintenanceWindowTargetResult->Targets;
59 my $WindowId = $UpdateMaintenanceWindowTargetResult->WindowId;
60 my $WindowTargetId = $UpdateMaintenanceWindowTargetResult->WindowTargetId;
61  
62 # Returns a L<Paws::SSM::UpdateMaintenanceWindowTargetResult> object.
63  
64 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.
65 For the AWS API documentation, see L<https://docs.aws.amazon.com/goto/WebAPI/ssm/UpdateMaintenanceWindowTarget>
66  
67 =head1 ATTRIBUTES
68  
69  
70 =head2 Description => Str
71  
72 An optional description for the update.
73  
74  
75  
76 =head2 Name => Str
77  
78 A name for the update.
79  
80  
81  
82 =head2 OwnerInformation => Str
83  
84 User-provided value that will be included in any CloudWatch events
85 raised while running tasks for these targets in this maintenance
86 window.
87  
88  
89  
90 =head2 Replace => Bool
91  
92 If True, then all fields that are required by the
93 RegisterTargetWithMaintenanceWindow action are also required for this
94 API request. Optional fields that are not specified are set to null.
95  
96  
97  
98 =head2 Targets => ArrayRef[L<Paws::SSM::Target>]
99  
100 The targets to add or replace.
101  
102  
103  
104 =head2 B<REQUIRED> WindowId => Str
105  
106 The maintenance window ID with which to modify the target.
107  
108  
109  
110 =head2 B<REQUIRED> WindowTargetId => Str
111  
112 The target ID to modify.
113  
114  
115  
116  
117 =head1 SEE ALSO
118  
119 This class forms part of L<Paws>, documenting arguments for method UpdateMaintenanceWindowTarget in L<Paws::SSM>
120  
121 =head1 BUGS and CONTRIBUTIONS
122  
123 The source code is located here: L<https://github.com/pplu/aws-sdk-perl>
124  
125 Please report bugs to: L<https://github.com/pplu/aws-sdk-perl/issues>
126  
127 =cut
128