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

filter: Statementstmt 0.0% 0 / 21 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 2 Podpod n/a totaltotal 0.0% 0 / 23 CC 1 SCAR 6.9
CC
1
Cov
0%
BEGIN
2.0
BEGIN
2.0
CRAP 2.0
1  
2 package Paws::SSM::UpdatePatchBaseline;
3 use Moose;
4 has ApprovalRules => (is => 'ro', isa => 'Paws::SSM::PatchRuleGroup');
5 has ApprovedPatches => (is => 'ro', isa => 'ArrayRef[Str|Undef]');
6 has ApprovedPatchesComplianceLevel => (is => 'ro', isa => 'Str');
7 has ApprovedPatchesEnableNonSecurity => (is => 'ro', isa => 'Bool');
8 has BaselineId => (is => 'ro', isa => 'Str', required => 1);
9 has Description => (is => 'ro', isa => 'Str');
10 has GlobalFilters => (is => 'ro', isa => 'Paws::SSM::PatchFilterGroup');
11 has Name => (is => 'ro', isa => 'Str');
12 has RejectedPatches => (is => 'ro', isa => 'ArrayRef[Str|Undef]');
13 has RejectedPatchesAction => (is => 'ro', isa => 'Str');
14 has Replace => (is => 'ro', isa => 'Bool');
15 has Sources => (is => 'ro', isa => 'ArrayRef[Paws::SSM::PatchSource]');
16  
17 use MooseX::ClassAttribute;
18  
19 class_has _api_call => (isa => 'Str', is => 'ro', default => 'UpdatePatchBaseline');
20 class_has _returns => (isa => 'Str', is => 'ro', default => 'Paws::SSM::UpdatePatchBaselineResult');
21 class_has _result_key => (isa => 'Str', is => 'ro');
22 1;
23  
24 ### main pod documentation begin ###
25  
26 =head1 NAME
27  
28 Paws::SSM::UpdatePatchBaseline - Arguments for method UpdatePatchBaseline on L<Paws::SSM>
29  
30 =head1 DESCRIPTION
31  
32 This class represents the parameters used for calling the method UpdatePatchBaseline on the
33 L<Amazon Simple Systems Manager (SSM)|Paws::SSM> service. Use the attributes of this class
34 as arguments to method UpdatePatchBaseline.
35  
36 You shouldn't make instances of this class. Each attribute should be used as a named argument in the call to UpdatePatchBaseline.
37  
38 =head1 SYNOPSIS
39  
40 my $ssm = Paws->service('SSM');
41 my $UpdatePatchBaselineResult = $ssm->UpdatePatchBaseline(
42 BaselineId => 'MyBaselineId',
43 ApprovalRules => {
44 PatchRules => [
45 {
46 PatchFilterGroup => {
47 PatchFilters => [
48 {
49 Key => 'ARCH'
50 , # values: ARCH, ADVISORY_ID, BUGZILLA_ID, PATCH_SET, PRODUCT, PRODUCT_FAMILY, CLASSIFICATION, CVE_ID, EPOCH, MSRC_SEVERITY, NAME, PATCH_ID, SECTION, PRIORITY, REPOSITORY, RELEASE, SEVERITY, SECURITY, VERSION
51 Values => [
52 'MyPatchFilterValue', ... # min: 1, max: 64
53 ], # min: 1, max: 20
54  
55 },
56 ...
57 ], # max: 4
58  
59 },
60 ApproveAfterDays => 1, # max: 360; OPTIONAL
61 ApproveUntilDate =>
62 'MyPatchStringDateTime', # min: 1, max: 10; OPTIONAL
63 ComplianceLevel => 'CRITICAL'
64 , # values: CRITICAL, HIGH, MEDIUM, LOW, INFORMATIONAL, UNSPECIFIED; OPTIONAL
65 EnableNonSecurity => 1, # OPTIONAL
66 },
67 ...
68 ], # max: 10
69  
70 }, # OPTIONAL
71 ApprovedPatches => [
72 'MyPatchId', ... # min: 1, max: 100
73 ], # OPTIONAL
74 ApprovedPatchesComplianceLevel => 'CRITICAL', # OPTIONAL
75 ApprovedPatchesEnableNonSecurity => 1, # OPTIONAL
76 Description => 'MyBaselineDescription', # OPTIONAL
77 GlobalFilters => {
78 PatchFilters => [
79 {
80 Key => 'ARCH'
81 , # values: ARCH, ADVISORY_ID, BUGZILLA_ID, PATCH_SET, PRODUCT, PRODUCT_FAMILY, CLASSIFICATION, CVE_ID, EPOCH, MSRC_SEVERITY, NAME, PATCH_ID, SECTION, PRIORITY, REPOSITORY, RELEASE, SEVERITY, SECURITY, VERSION
82 Values => [
83 'MyPatchFilterValue', ... # min: 1, max: 64
84 ], # min: 1, max: 20
85  
86 },
87 ...
88 ], # max: 4
89  
90 }, # OPTIONAL
91 Name => 'MyBaselineName', # OPTIONAL
92 RejectedPatches => [
93 'MyPatchId', ... # min: 1, max: 100
94 ], # OPTIONAL
95 RejectedPatchesAction => 'ALLOW_AS_DEPENDENCY', # OPTIONAL
96 Replace => 1, # OPTIONAL
97 Sources => [
98 {
99 Configuration => 'MyPatchSourceConfiguration', # min: 1, max: 1024
100 Name => 'MyPatchSourceName',
101 Products => [
102 'MyPatchSourceProduct', ... # min: 1, max: 128
103 ], # min: 1, max: 20
104  
105 },
106 ...
107 ], # OPTIONAL
108 );
109  
110 # Results:
111 my $ApprovalRules = $UpdatePatchBaselineResult->ApprovalRules;
112 my $ApprovedPatches = $UpdatePatchBaselineResult->ApprovedPatches;
113 my $ApprovedPatchesComplianceLevel =
114 $UpdatePatchBaselineResult->ApprovedPatchesComplianceLevel;
115 my $ApprovedPatchesEnableNonSecurity =
116 $UpdatePatchBaselineResult->ApprovedPatchesEnableNonSecurity;
117 my $BaselineId = $UpdatePatchBaselineResult->BaselineId;
118 my $CreatedDate = $UpdatePatchBaselineResult->CreatedDate;
119 my $Description = $UpdatePatchBaselineResult->Description;
120 my $GlobalFilters = $UpdatePatchBaselineResult->GlobalFilters;
121 my $ModifiedDate = $UpdatePatchBaselineResult->ModifiedDate;
122 my $Name = $UpdatePatchBaselineResult->Name;
123 my $OperatingSystem = $UpdatePatchBaselineResult->OperatingSystem;
124 my $RejectedPatches = $UpdatePatchBaselineResult->RejectedPatches;
125 my $RejectedPatchesAction =
126 $UpdatePatchBaselineResult->RejectedPatchesAction;
127 my $Sources = $UpdatePatchBaselineResult->Sources;
128  
129 # Returns a L<Paws::SSM::UpdatePatchBaselineResult> object.
130  
131 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.
132 For the AWS API documentation, see L<https://docs.aws.amazon.com/goto/WebAPI/ssm/UpdatePatchBaseline>
133  
134 =head1 ATTRIBUTES
135  
136  
137 =head2 ApprovalRules => L<Paws::SSM::PatchRuleGroup>
138  
139 A set of rules used to include patches in the baseline.
140  
141  
142  
143 =head2 ApprovedPatches => ArrayRef[Str|Undef]
144  
145 A list of explicitly approved patches for the baseline.
146  
147 For information about accepted formats for lists of approved patches
148 and rejected patches, see About package name formats for approved and
149 rejected patch lists
150 (https://docs.aws.amazon.com/systems-manager/latest/userguide/patch-manager-approved-rejected-package-name-formats.html)
151 in the I<AWS Systems Manager User Guide>.
152  
153  
154  
155 =head2 ApprovedPatchesComplianceLevel => Str
156  
157 Assigns a new compliance severity level to an existing patch baseline.
158  
159 Valid values are: C<"CRITICAL">, C<"HIGH">, C<"MEDIUM">, C<"LOW">, C<"INFORMATIONAL">, C<"UNSPECIFIED">
160  
161 =head2 ApprovedPatchesEnableNonSecurity => Bool
162  
163 Indicates whether the list of approved patches includes non-security
164 updates that should be applied to the instances. The default value is
165 'false'. Applies to Linux instances only.
166  
167  
168  
169 =head2 B<REQUIRED> BaselineId => Str
170  
171 The ID of the patch baseline to update.
172  
173  
174  
175 =head2 Description => Str
176  
177 A description of the patch baseline.
178  
179  
180  
181 =head2 GlobalFilters => L<Paws::SSM::PatchFilterGroup>
182  
183 A set of global filters used to include patches in the baseline.
184  
185  
186  
187 =head2 Name => Str
188  
189 The name of the patch baseline.
190  
191  
192  
193 =head2 RejectedPatches => ArrayRef[Str|Undef]
194  
195 A list of explicitly rejected patches for the baseline.
196  
197 For information about accepted formats for lists of approved patches
198 and rejected patches, see About package name formats for approved and
199 rejected patch lists
200 (https://docs.aws.amazon.com/systems-manager/latest/userguide/patch-manager-approved-rejected-package-name-formats.html)
201 in the I<AWS Systems Manager User Guide>.
202  
203  
204  
205 =head2 RejectedPatchesAction => Str
206  
207 The action for Patch Manager to take on patches included in the
208 RejectedPackages list.
209  
210 =over
211  
212 =item *
213  
214 B<ALLOW_AS_DEPENDENCY>: A package in the Rejected patches list is
215 installed only if it is a dependency of another package. It is
216 considered compliant with the patch baseline, and its status is
217 reported as I<InstalledOther>. This is the default action if no option
218 is specified.
219  
220 =item *
221  
222 B<BLOCK>: Packages in the RejectedPatches list, and packages that
223 include them as dependencies, are not installed under any
224 circumstances. If a package was installed before it was added to the
225 Rejected patches list, it is considered non-compliant with the patch
226 baseline, and its status is reported as I<InstalledRejected>.
227  
228 =back
229  
230  
231 Valid values are: C<"ALLOW_AS_DEPENDENCY">, C<"BLOCK">
232  
233 =head2 Replace => Bool
234  
235 If True, then all fields that are required by the CreatePatchBaseline
236 action are also required for this API request. Optional fields that are
237 not specified are set to null.
238  
239  
240  
241 =head2 Sources => ArrayRef[L<Paws::SSM::PatchSource>]
242  
243 Information about the patches to use to update the instances, including
244 target operating systems and source repositories. Applies to Linux
245 instances only.
246  
247  
248  
249  
250 =head1 SEE ALSO
251  
252 This class forms part of L<Paws>, documenting arguments for method UpdatePatchBaseline in L<Paws::SSM>
253  
254 =head1 BUGS and CONTRIBUTIONS
255  
256 The source code is located here: L<https://github.com/pplu/aws-sdk-perl>
257  
258 Please report bugs to: L<https://github.com/pplu/aws-sdk-perl/issues>
259  
260 =cut
261