1 + | // Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
|
2 + | #[allow(missing_docs)] // documentation missing in model
|
3 + | #[non_exhaustive]
|
4 + | #[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
|
5 + | pub struct CreatePatchBaselineInput {
|
6 + | /// <p>Defines the operating system the patch baseline applies to. The default value is <code>WINDOWS</code>.</p>
|
7 + | pub operating_system: ::std::option::Option<crate::types::OperatingSystem>,
|
8 + | /// <p>The name of the patch baseline.</p>
|
9 + | pub name: ::std::option::Option<::std::string::String>,
|
10 + | /// <p>A set of global filters used to include patches in the baseline.</p><important>
|
11 + | /// <p>The <code>GlobalFilters</code> parameter can be configured only by using the CLI or an Amazon Web Services SDK. It can't be configured from the Patch Manager console, and its value isn't displayed in the console.</p>
|
12 + | /// </important>
|
13 + | pub global_filters: ::std::option::Option<crate::types::PatchFilterGroup>,
|
14 + | /// <p>A set of rules used to include patches in the baseline.</p>
|
15 + | pub approval_rules: ::std::option::Option<crate::types::PatchRuleGroup>,
|
16 + | /// <p>A list of explicitly approved patches for the baseline.</p>
|
17 + | /// <p>For information about accepted formats for lists of approved patches and rejected patches, see <a href="https://docs.aws.amazon.com/systems-manager/latest/userguide/patch-manager-approved-rejected-package-name-formats.html">Package name formats for approved and rejected patch lists</a> in the <i>Amazon Web Services Systems Manager User Guide</i>.</p>
|
18 + | pub approved_patches: ::std::option::Option<::std::vec::Vec<::std::string::String>>,
|
19 + | /// <p>Defines the compliance level for approved patches. When an approved patch is reported as missing, this value describes the severity of the compliance violation. The default value is <code>UNSPECIFIED</code>.</p>
|
20 + | pub approved_patches_compliance_level: ::std::option::Option<crate::types::PatchComplianceLevel>,
|
21 + | /// <p>Indicates whether the list of approved patches includes non-security updates that should be applied to the managed nodes. The default value is <code>false</code>. Applies to Linux managed nodes only.</p>
|
22 + | pub approved_patches_enable_non_security: ::std::option::Option<bool>,
|
23 + | /// <p>A list of explicitly rejected patches for the baseline.</p>
|
24 + | /// <p>For information about accepted formats for lists of approved patches and rejected patches, see <a href="https://docs.aws.amazon.com/systems-manager/latest/userguide/patch-manager-approved-rejected-package-name-formats.html">Package name formats for approved and rejected patch lists</a> in the <i>Amazon Web Services Systems Manager User Guide</i>.</p>
|
25 + | pub rejected_patches: ::std::option::Option<::std::vec::Vec<::std::string::String>>,
|
26 + | /// <p>The action for Patch Manager to take on patches included in the <code>RejectedPackages</code> list.</p>
|
27 + | /// <dl>
|
28 + | /// <dt>
|
29 + | /// ALLOW_AS_DEPENDENCY
|
30 + | /// </dt>
|
31 + | /// <dd>
|
32 + | /// <p><b>Linux and macOS</b>: A package in the rejected patches list is installed only if it is a dependency of another package. It is considered compliant with the patch baseline, and its status is reported as <code>INSTALLED_OTHER</code>. This is the default action if no option is specified.</p>
|
33 + | /// <p><b>Windows Server</b>: Windows Server doesn't support the concept of package dependencies. If a package in the rejected patches list and already installed on the node, its status is reported as <code>INSTALLED_OTHER</code>. Any package not already installed on the node is skipped. This is the default action if no option is specified.</p>
|
34 + | /// </dd>
|
35 + | /// <dt>
|
36 + | /// BLOCK
|
37 + | /// </dt>
|
38 + | /// <dd>
|
39 + | /// <p><b>All OSs</b>: Packages in the rejected patches list, and packages that include them as dependencies, aren't installed by Patch Manager under any circumstances.</p>
|
40 + | /// <p>State value assignment for patch compliance:</p>
|
41 + | /// <ul>
|
42 + | /// <li>
|
43 + | /// <p>If a package was installed before it was added to the rejected patches list, or is installed outside of Patch Manager afterward, it's considered noncompliant with the patch baseline and its status is reported as <code>INSTALLED_REJECTED</code>.</p></li>
|
44 + | /// <li>
|
45 + | /// <p>If an update attempts to install a dependency package that is now rejected by the baseline, when previous versions of the package were not rejected, the package being updated is reported as <code>MISSING</code> for <code>SCAN</code> operations and as <code>FAILED</code> for <code>INSTALL</code> operations.</p></li>
|
46 + | /// </ul>
|
47 + | /// </dd>
|
48 + | /// </dl>
|
49 + | pub rejected_patches_action: ::std::option::Option<crate::types::PatchAction>,
|
50 + | /// <p>A description of the patch baseline.</p>
|
51 + | pub description: ::std::option::Option<::std::string::String>,
|
52 + | /// <p>Information about the patches to use to update the managed nodes, including target operating systems and source repositories. Applies to Linux managed nodes only.</p>
|
53 + | pub sources: ::std::option::Option<::std::vec::Vec<crate::types::PatchSource>>,
|
54 + | /// <p>Indicates the status you want to assign to security patches that are available but not approved because they don't meet the installation criteria specified in the patch baseline.</p>
|
55 + | /// <p>Example scenario: Security patches that you might want installed can be skipped if you have specified a long period to wait after a patch is released before installation. If an update to the patch is released during your specified waiting period, the waiting period for installing the patch starts over. If the waiting period is too long, multiple versions of the patch could be released but never installed.</p>
|
56 + | /// <p>Supported for Windows Server managed nodes only.</p>
|
57 + | pub available_security_updates_compliance_status: ::std::option::Option<crate::types::PatchComplianceStatus>,
|
58 + | /// <p>User-provided idempotency token.</p>
|
59 + | pub client_token: ::std::option::Option<::std::string::String>,
|
60 + | /// <p>Optional metadata that you assign to a resource. Tags enable you to categorize a resource in different ways, such as by purpose, owner, or environment. For example, you might want to tag a patch baseline to identify the severity level of patches it specifies and the operating system family it applies to. In this case, you could specify the following key-value pairs:</p>
|
61 + | /// <ul>
|
62 + | /// <li>
|
63 + | /// <p><code>Key=PatchSeverity,Value=Critical</code></p></li>
|
64 + | /// <li>
|
65 + | /// <p><code>Key=OS,Value=Windows</code></p></li>
|
66 + | /// </ul><note>
|
67 + | /// <p>To add tags to an existing patch baseline, use the <code>AddTagsToResource</code> operation.</p>
|
68 + | /// </note>
|
69 + | pub tags: ::std::option::Option<::std::vec::Vec<crate::types::Tag>>,
|
70 + | }
|
71 + | impl CreatePatchBaselineInput {
|
72 + | /// <p>Defines the operating system the patch baseline applies to. The default value is <code>WINDOWS</code>.</p>
|
73 + | pub fn operating_system(&self) -> ::std::option::Option<&crate::types::OperatingSystem> {
|
74 + | self.operating_system.as_ref()
|
75 + | }
|
76 + | /// <p>The name of the patch baseline.</p>
|
77 + | pub fn name(&self) -> ::std::option::Option<&str> {
|
78 + | self.name.as_deref()
|
79 + | }
|
80 + | /// <p>A set of global filters used to include patches in the baseline.</p><important>
|
81 + | /// <p>The <code>GlobalFilters</code> parameter can be configured only by using the CLI or an Amazon Web Services SDK. It can't be configured from the Patch Manager console, and its value isn't displayed in the console.</p>
|
82 + | /// </important>
|
83 + | pub fn global_filters(&self) -> ::std::option::Option<&crate::types::PatchFilterGroup> {
|
84 + | self.global_filters.as_ref()
|
85 + | }
|
86 + | /// <p>A set of rules used to include patches in the baseline.</p>
|
87 + | pub fn approval_rules(&self) -> ::std::option::Option<&crate::types::PatchRuleGroup> {
|
88 + | self.approval_rules.as_ref()
|
89 + | }
|
90 + | /// <p>A list of explicitly approved patches for the baseline.</p>
|
91 + | /// <p>For information about accepted formats for lists of approved patches and rejected patches, see <a href="https://docs.aws.amazon.com/systems-manager/latest/userguide/patch-manager-approved-rejected-package-name-formats.html">Package name formats for approved and rejected patch lists</a> in the <i>Amazon Web Services Systems Manager User Guide</i>.</p>
|
92 + | ///
|
93 + | /// If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use `.approved_patches.is_none()`.
|
94 + | pub fn approved_patches(&self) -> &[::std::string::String] {
|
95 + | self.approved_patches.as_deref().unwrap_or_default()
|
96 + | }
|
97 + | /// <p>Defines the compliance level for approved patches. When an approved patch is reported as missing, this value describes the severity of the compliance violation. The default value is <code>UNSPECIFIED</code>.</p>
|
98 + | pub fn approved_patches_compliance_level(&self) -> ::std::option::Option<&crate::types::PatchComplianceLevel> {
|
99 + | self.approved_patches_compliance_level.as_ref()
|
100 + | }
|
101 + | /// <p>Indicates whether the list of approved patches includes non-security updates that should be applied to the managed nodes. The default value is <code>false</code>. Applies to Linux managed nodes only.</p>
|
102 + | pub fn approved_patches_enable_non_security(&self) -> ::std::option::Option<bool> {
|
103 + | self.approved_patches_enable_non_security
|
104 + | }
|
105 + | /// <p>A list of explicitly rejected patches for the baseline.</p>
|
106 + | /// <p>For information about accepted formats for lists of approved patches and rejected patches, see <a href="https://docs.aws.amazon.com/systems-manager/latest/userguide/patch-manager-approved-rejected-package-name-formats.html">Package name formats for approved and rejected patch lists</a> in the <i>Amazon Web Services Systems Manager User Guide</i>.</p>
|
107 + | ///
|
108 + | /// If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use `.rejected_patches.is_none()`.
|
109 + | pub fn rejected_patches(&self) -> &[::std::string::String] {
|
110 + | self.rejected_patches.as_deref().unwrap_or_default()
|
111 + | }
|
112 + | /// <p>The action for Patch Manager to take on patches included in the <code>RejectedPackages</code> list.</p>
|
113 + | /// <dl>
|
114 + | /// <dt>
|
115 + | /// ALLOW_AS_DEPENDENCY
|
116 + | /// </dt>
|
117 + | /// <dd>
|
118 + | /// <p><b>Linux and macOS</b>: A package in the rejected patches list is installed only if it is a dependency of another package. It is considered compliant with the patch baseline, and its status is reported as <code>INSTALLED_OTHER</code>. This is the default action if no option is specified.</p>
|
119 + | /// <p><b>Windows Server</b>: Windows Server doesn't support the concept of package dependencies. If a package in the rejected patches list and already installed on the node, its status is reported as <code>INSTALLED_OTHER</code>. Any package not already installed on the node is skipped. This is the default action if no option is specified.</p>
|
120 + | /// </dd>
|
121 + | /// <dt>
|
122 + | /// BLOCK
|
123 + | /// </dt>
|
124 + | /// <dd>
|
125 + | /// <p><b>All OSs</b>: Packages in the rejected patches list, and packages that include them as dependencies, aren't installed by Patch Manager under any circumstances.</p>
|
126 + | /// <p>State value assignment for patch compliance:</p>
|
127 + | /// <ul>
|
128 + | /// <li>
|
129 + | /// <p>If a package was installed before it was added to the rejected patches list, or is installed outside of Patch Manager afterward, it's considered noncompliant with the patch baseline and its status is reported as <code>INSTALLED_REJECTED</code>.</p></li>
|
130 + | /// <li>
|
131 + | /// <p>If an update attempts to install a dependency package that is now rejected by the baseline, when previous versions of the package were not rejected, the package being updated is reported as <code>MISSING</code> for <code>SCAN</code> operations and as <code>FAILED</code> for <code>INSTALL</code> operations.</p></li>
|
132 + | /// </ul>
|
133 + | /// </dd>
|
134 + | /// </dl>
|
135 + | pub fn rejected_patches_action(&self) -> ::std::option::Option<&crate::types::PatchAction> {
|
136 + | self.rejected_patches_action.as_ref()
|
137 + | }
|
138 + | /// <p>A description of the patch baseline.</p>
|
139 + | pub fn description(&self) -> ::std::option::Option<&str> {
|
140 + | self.description.as_deref()
|
141 + | }
|
142 + | /// <p>Information about the patches to use to update the managed nodes, including target operating systems and source repositories. Applies to Linux managed nodes only.</p>
|
143 + | ///
|
144 + | /// If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use `.sources.is_none()`.
|
145 + | pub fn sources(&self) -> &[crate::types::PatchSource] {
|
146 + | self.sources.as_deref().unwrap_or_default()
|
147 + | }
|
148 + | /// <p>Indicates the status you want to assign to security patches that are available but not approved because they don't meet the installation criteria specified in the patch baseline.</p>
|
149 + | /// <p>Example scenario: Security patches that you might want installed can be skipped if you have specified a long period to wait after a patch is released before installation. If an update to the patch is released during your specified waiting period, the waiting period for installing the patch starts over. If the waiting period is too long, multiple versions of the patch could be released but never installed.</p>
|
150 + | /// <p>Supported for Windows Server managed nodes only.</p>
|
151 + | pub fn available_security_updates_compliance_status(&self) -> ::std::option::Option<&crate::types::PatchComplianceStatus> {
|
152 + | self.available_security_updates_compliance_status.as_ref()
|
153 + | }
|
154 + | /// <p>User-provided idempotency token.</p>
|
155 + | pub fn client_token(&self) -> ::std::option::Option<&str> {
|
156 + | self.client_token.as_deref()
|
157 + | }
|
158 + | /// <p>Optional metadata that you assign to a resource. Tags enable you to categorize a resource in different ways, such as by purpose, owner, or environment. For example, you might want to tag a patch baseline to identify the severity level of patches it specifies and the operating system family it applies to. In this case, you could specify the following key-value pairs:</p>
|
159 + | /// <ul>
|
160 + | /// <li>
|
161 + | /// <p><code>Key=PatchSeverity,Value=Critical</code></p></li>
|
162 + | /// <li>
|
163 + | /// <p><code>Key=OS,Value=Windows</code></p></li>
|
164 + | /// </ul><note>
|
165 + | /// <p>To add tags to an existing patch baseline, use the <code>AddTagsToResource</code> operation.</p>
|
166 + | /// </note>
|
167 + | ///
|
168 + | /// If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use `.tags.is_none()`.
|
169 + | pub fn tags(&self) -> &[crate::types::Tag] {
|
170 + | self.tags.as_deref().unwrap_or_default()
|
171 + | }
|
172 + | }
|
173 + | static CREATEPATCHBASELINEINPUT_MEMBER_OPERATING_SYSTEM: ::aws_smithy_schema::Schema<'static> = ::aws_smithy_schema::Schema::new_member(
|
174 + | ::aws_smithy_schema::ShapeId::from_parts(
|
175 + | "com.amazonaws.ssm.synthetic#CreatePatchBaselineInput$OperatingSystem",
|
176 + | "com.amazonaws.ssm.synthetic",
|
177 + | "CreatePatchBaselineInput",
|
178 + | ),
|
179 + | ::aws_smithy_schema::ShapeType::String,
|
180 + | "OperatingSystem",
|
181 + | 0,
|
182 + | );
|
183 + | static CREATEPATCHBASELINEINPUT_MEMBER_NAME: ::aws_smithy_schema::Schema<'static> = ::aws_smithy_schema::Schema::new_member(
|
184 + | ::aws_smithy_schema::ShapeId::from_parts(
|
185 + | "com.amazonaws.ssm.synthetic#CreatePatchBaselineInput$Name",
|
186 + | "com.amazonaws.ssm.synthetic",
|
187 + | "CreatePatchBaselineInput",
|
188 + | ),
|
189 + | ::aws_smithy_schema::ShapeType::String,
|
190 + | "Name",
|
191 + | 1,
|
192 + | );
|
193 + | static CREATEPATCHBASELINEINPUT_MEMBER_GLOBAL_FILTERS: ::aws_smithy_schema::Schema<'static> = ::aws_smithy_schema::Schema::new_member(
|
194 + | ::aws_smithy_schema::ShapeId::from_parts(
|
195 + | "com.amazonaws.ssm.synthetic#CreatePatchBaselineInput$GlobalFilters",
|
196 + | "com.amazonaws.ssm.synthetic",
|
197 + | "CreatePatchBaselineInput",
|
198 + | ),
|
199 + | ::aws_smithy_schema::ShapeType::Structure,
|
200 + | "GlobalFilters",
|
201 + | 2,
|
202 + | );
|
203 + | static CREATEPATCHBASELINEINPUT_MEMBER_APPROVAL_RULES: ::aws_smithy_schema::Schema<'static> = ::aws_smithy_schema::Schema::new_member(
|
204 + | ::aws_smithy_schema::ShapeId::from_parts(
|
205 + | "com.amazonaws.ssm.synthetic#CreatePatchBaselineInput$ApprovalRules",
|
206 + | "com.amazonaws.ssm.synthetic",
|
207 + | "CreatePatchBaselineInput",
|
208 + | ),
|
209 + | ::aws_smithy_schema::ShapeType::Structure,
|
210 + | "ApprovalRules",
|
211 + | 3,
|
212 + | );
|
213 + | static CREATEPATCHBASELINEINPUT_MEMBER_APPROVED_PATCHES_MEMBER: ::aws_smithy_schema::Schema<'static> = ::aws_smithy_schema::Schema::new_member(
|
214 + | ::aws_smithy_schema::ShapeId::from_parts("com.amazonaws.ssm#PatchIdList$member", "com.amazonaws.ssm", "PatchIdList"),
|
215 + | ::aws_smithy_schema::ShapeType::String,
|
216 + | "member",
|
217 + | 0,
|
218 + | );
|
219 + | static CREATEPATCHBASELINEINPUT_MEMBER_APPROVED_PATCHES: ::aws_smithy_schema::Schema<'static> = ::aws_smithy_schema::Schema::new_member(
|
220 + | ::aws_smithy_schema::ShapeId::from_parts(
|
221 + | "com.amazonaws.ssm.synthetic#CreatePatchBaselineInput$ApprovedPatches",
|
222 + | "com.amazonaws.ssm.synthetic",
|
223 + | "CreatePatchBaselineInput",
|
224 + | ),
|
225 + | ::aws_smithy_schema::ShapeType::List,
|
226 + | "ApprovedPatches",
|
227 + | 4,
|
228 + | )
|
229 + | .with_list_member(&CREATEPATCHBASELINEINPUT_MEMBER_APPROVED_PATCHES_MEMBER);
|
230 + | static CREATEPATCHBASELINEINPUT_MEMBER_APPROVED_PATCHES_COMPLIANCE_LEVEL: ::aws_smithy_schema::Schema<'static> =
|
231 + | ::aws_smithy_schema::Schema::new_member(
|
232 + | ::aws_smithy_schema::ShapeId::from_parts(
|
233 + | "com.amazonaws.ssm.synthetic#CreatePatchBaselineInput$ApprovedPatchesComplianceLevel",
|
234 + | "com.amazonaws.ssm.synthetic",
|
235 + | "CreatePatchBaselineInput",
|
236 + | ),
|
237 + | ::aws_smithy_schema::ShapeType::String,
|
238 + | "ApprovedPatchesComplianceLevel",
|
239 + | 5,
|
240 + | );
|
241 + | static CREATEPATCHBASELINEINPUT_MEMBER_APPROVED_PATCHES_ENABLE_NON_SECURITY: ::aws_smithy_schema::Schema<'static> =
|
242 + | ::aws_smithy_schema::Schema::new_member(
|
243 + | ::aws_smithy_schema::ShapeId::from_parts(
|
244 + | "com.amazonaws.ssm.synthetic#CreatePatchBaselineInput$ApprovedPatchesEnableNonSecurity",
|
245 + | "com.amazonaws.ssm.synthetic",
|
246 + | "CreatePatchBaselineInput",
|
247 + | ),
|
248 + | ::aws_smithy_schema::ShapeType::Boolean,
|
249 + | "ApprovedPatchesEnableNonSecurity",
|
250 + | 6,
|
251 + | );
|
252 + | static CREATEPATCHBASELINEINPUT_MEMBER_REJECTED_PATCHES_MEMBER: ::aws_smithy_schema::Schema<'static> = ::aws_smithy_schema::Schema::new_member(
|
253 + | ::aws_smithy_schema::ShapeId::from_parts("com.amazonaws.ssm#PatchIdList$member", "com.amazonaws.ssm", "PatchIdList"),
|
254 + | ::aws_smithy_schema::ShapeType::String,
|
255 + | "member",
|
256 + | 0,
|
257 + | );
|
258 + | static CREATEPATCHBASELINEINPUT_MEMBER_REJECTED_PATCHES: ::aws_smithy_schema::Schema<'static> = ::aws_smithy_schema::Schema::new_member(
|
259 + | ::aws_smithy_schema::ShapeId::from_parts(
|
260 + | "com.amazonaws.ssm.synthetic#CreatePatchBaselineInput$RejectedPatches",
|
261 + | "com.amazonaws.ssm.synthetic",
|
262 + | "CreatePatchBaselineInput",
|
263 + | ),
|
264 + | ::aws_smithy_schema::ShapeType::List,
|
265 + | "RejectedPatches",
|
266 + | 7,
|
267 + | )
|
268 + | .with_list_member(&CREATEPATCHBASELINEINPUT_MEMBER_REJECTED_PATCHES_MEMBER);
|
269 + | static CREATEPATCHBASELINEINPUT_MEMBER_REJECTED_PATCHES_ACTION: ::aws_smithy_schema::Schema<'static> = ::aws_smithy_schema::Schema::new_member(
|
270 + | ::aws_smithy_schema::ShapeId::from_parts(
|
271 + | "com.amazonaws.ssm.synthetic#CreatePatchBaselineInput$RejectedPatchesAction",
|
272 + | "com.amazonaws.ssm.synthetic",
|
273 + | "CreatePatchBaselineInput",
|
274 + | ),
|
275 + | ::aws_smithy_schema::ShapeType::String,
|
276 + | "RejectedPatchesAction",
|
277 + | 8,
|
278 + | );
|
279 + | static CREATEPATCHBASELINEINPUT_MEMBER_DESCRIPTION: ::aws_smithy_schema::Schema<'static> = ::aws_smithy_schema::Schema::new_member(
|
280 + | ::aws_smithy_schema::ShapeId::from_parts(
|
281 + | "com.amazonaws.ssm.synthetic#CreatePatchBaselineInput$Description",
|
282 + | "com.amazonaws.ssm.synthetic",
|
283 + | "CreatePatchBaselineInput",
|
284 + | ),
|
285 + | ::aws_smithy_schema::ShapeType::String,
|
286 + | "Description",
|
287 + | 9,
|
288 + | );
|
289 + | static CREATEPATCHBASELINEINPUT_MEMBER_SOURCES_MEMBER: ::aws_smithy_schema::Schema<'static> = ::aws_smithy_schema::Schema::new_member(
|
290 + | ::aws_smithy_schema::ShapeId::from_parts("com.amazonaws.ssm#PatchSourceList$member", "com.amazonaws.ssm", "PatchSourceList"),
|
291 + | ::aws_smithy_schema::ShapeType::Structure,
|
292 + | "member",
|
293 + | 0,
|
294 + | );
|
295 + | static CREATEPATCHBASELINEINPUT_MEMBER_SOURCES: ::aws_smithy_schema::Schema<'static> = ::aws_smithy_schema::Schema::new_member(
|
296 + | ::aws_smithy_schema::ShapeId::from_parts(
|
297 + | "com.amazonaws.ssm.synthetic#CreatePatchBaselineInput$Sources",
|
298 + | "com.amazonaws.ssm.synthetic",
|
299 + | "CreatePatchBaselineInput",
|
300 + | ),
|
301 + | ::aws_smithy_schema::ShapeType::List,
|
302 + | "Sources",
|
303 + | 10,
|
304 + | )
|
305 + | .with_list_member(&CREATEPATCHBASELINEINPUT_MEMBER_SOURCES_MEMBER);
|
306 + | static CREATEPATCHBASELINEINPUT_MEMBER_AVAILABLE_SECURITY_UPDATES_COMPLIANCE_STATUS: ::aws_smithy_schema::Schema<'static> =
|
307 + | ::aws_smithy_schema::Schema::new_member(
|
308 + | ::aws_smithy_schema::ShapeId::from_parts(
|
309 + | "com.amazonaws.ssm.synthetic#CreatePatchBaselineInput$AvailableSecurityUpdatesComplianceStatus",
|
310 + | "com.amazonaws.ssm.synthetic",
|
311 + | "CreatePatchBaselineInput",
|
312 + | ),
|
313 + | ::aws_smithy_schema::ShapeType::String,
|
314 + | "AvailableSecurityUpdatesComplianceStatus",
|
315 + | 11,
|
316 + | );
|
317 + | static CREATEPATCHBASELINEINPUT_MEMBER_CLIENT_TOKEN: ::aws_smithy_schema::Schema<'static> = ::aws_smithy_schema::Schema::new_member(
|
318 + | ::aws_smithy_schema::ShapeId::from_parts(
|
319 + | "com.amazonaws.ssm.synthetic#CreatePatchBaselineInput$ClientToken",
|
320 + | "com.amazonaws.ssm.synthetic",
|
321 + | "CreatePatchBaselineInput",
|
322 + | ),
|
323 + | ::aws_smithy_schema::ShapeType::String,
|
324 + | "ClientToken",
|
325 + | 12,
|
326 + | );
|
327 + | static CREATEPATCHBASELINEINPUT_MEMBER_TAGS_MEMBER: ::aws_smithy_schema::Schema<'static> = ::aws_smithy_schema::Schema::new_member(
|
328 + | ::aws_smithy_schema::ShapeId::from_parts("com.amazonaws.ssm#TagList$member", "com.amazonaws.ssm", "TagList"),
|
329 + | ::aws_smithy_schema::ShapeType::Structure,
|
330 + | "member",
|
331 + | 0,
|
332 + | );
|
333 + | static CREATEPATCHBASELINEINPUT_MEMBER_TAGS: ::aws_smithy_schema::Schema<'static> = ::aws_smithy_schema::Schema::new_member(
|
334 + | ::aws_smithy_schema::ShapeId::from_parts(
|
335 + | "com.amazonaws.ssm.synthetic#CreatePatchBaselineInput$Tags",
|
336 + | "com.amazonaws.ssm.synthetic",
|
337 + | "CreatePatchBaselineInput",
|
338 + | ),
|
339 + | ::aws_smithy_schema::ShapeType::List,
|
340 + | "Tags",
|
341 + | 13,
|
342 + | )
|
343 + | .with_list_member(&CREATEPATCHBASELINEINPUT_MEMBER_TAGS_MEMBER);
|
344 + | static CREATEPATCHBASELINEINPUT_SCHEMA: ::aws_smithy_schema::Schema<'static> = ::aws_smithy_schema::Schema::new_struct(
|
345 + | ::aws_smithy_schema::ShapeId::from_parts(
|
346 + | "com.amazonaws.ssm.synthetic#CreatePatchBaselineInput",
|
347 + | "com.amazonaws.ssm.synthetic",
|
348 + | "CreatePatchBaselineInput",
|
349 + | ),
|
350 + | ::aws_smithy_schema::ShapeType::Structure,
|
351 + | &[
|
352 + | &CREATEPATCHBASELINEINPUT_MEMBER_OPERATING_SYSTEM,
|
353 + | &CREATEPATCHBASELINEINPUT_MEMBER_NAME,
|
354 + | &CREATEPATCHBASELINEINPUT_MEMBER_GLOBAL_FILTERS,
|
355 + | &CREATEPATCHBASELINEINPUT_MEMBER_APPROVAL_RULES,
|
356 + | &CREATEPATCHBASELINEINPUT_MEMBER_APPROVED_PATCHES,
|
357 + | &CREATEPATCHBASELINEINPUT_MEMBER_APPROVED_PATCHES_COMPLIANCE_LEVEL,
|
358 + | &CREATEPATCHBASELINEINPUT_MEMBER_APPROVED_PATCHES_ENABLE_NON_SECURITY,
|
359 + | &CREATEPATCHBASELINEINPUT_MEMBER_REJECTED_PATCHES,
|
360 + | &CREATEPATCHBASELINEINPUT_MEMBER_REJECTED_PATCHES_ACTION,
|
361 + | &CREATEPATCHBASELINEINPUT_MEMBER_DESCRIPTION,
|
362 + | &CREATEPATCHBASELINEINPUT_MEMBER_SOURCES,
|
363 + | &CREATEPATCHBASELINEINPUT_MEMBER_AVAILABLE_SECURITY_UPDATES_COMPLIANCE_STATUS,
|
364 + | &CREATEPATCHBASELINEINPUT_MEMBER_CLIENT_TOKEN,
|
365 + | &CREATEPATCHBASELINEINPUT_MEMBER_TAGS,
|
366 + | ],
|
367 + | )
|
368 + | .with_payload_hint(::aws_smithy_schema::PayloadHint::NoStructPayload)
|
369 + | .with_original_name("CreatePatchBaselineRequest");
|
370 + | impl CreatePatchBaselineInput {
|
371 + | /// The schema for this shape.
|
372 + | pub const SCHEMA: &'static ::aws_smithy_schema::Schema<'static> = &CREATEPATCHBASELINEINPUT_SCHEMA;
|
373 + | }
|
374 + | impl ::aws_smithy_schema::serde::SerializableStruct for CreatePatchBaselineInput {
|
375 + | #[allow(unused_variables, clippy::diverging_sub_expression)]
|
376 + | fn serialize_members(
|
377 + | &self,
|
378 + | ser: &mut dyn ::aws_smithy_schema::serde::ShapeSerializer,
|
379 + | ) -> ::std::result::Result<(), ::aws_smithy_schema::serde::SerdeError> {
|
380 + | if let Some(ref val) = self.operating_system {
|
381 + | ser.write_string(&CREATEPATCHBASELINEINPUT_MEMBER_OPERATING_SYSTEM, val.as_str())?;
|
382 + | }
|
383 + | if let Some(ref val) = self.name {
|
384 + | ser.write_string(&CREATEPATCHBASELINEINPUT_MEMBER_NAME, val)?;
|
385 + | }
|
386 + | if let Some(ref val) = self.global_filters {
|
387 + | ser.write_struct(&CREATEPATCHBASELINEINPUT_MEMBER_GLOBAL_FILTERS, val)?;
|
388 + | }
|
389 + | if let Some(ref val) = self.approval_rules {
|
390 + | ser.write_struct(&CREATEPATCHBASELINEINPUT_MEMBER_APPROVAL_RULES, val)?;
|
391 + | }
|
392 + | if let Some(ref val) = self.approved_patches {
|
393 + | ser.write_list(
|
394 + | &CREATEPATCHBASELINEINPUT_MEMBER_APPROVED_PATCHES,
|
395 + | &|ser: &mut dyn ::aws_smithy_schema::serde::ShapeSerializer| {
|
396 + | for item in val {
|
397 + | ser.write_string(&aws_smithy_schema::prelude::STRING, item)?;
|
398 + | }
|
399 + | Ok(())
|
400 + | },
|
401 + | )?;
|
402 + | }
|
403 + | if let Some(ref val) = self.approved_patches_compliance_level {
|
404 + | ser.write_string(&CREATEPATCHBASELINEINPUT_MEMBER_APPROVED_PATCHES_COMPLIANCE_LEVEL, val.as_str())?;
|
405 + | }
|
406 + | if let Some(ref val) = self.approved_patches_enable_non_security {
|
407 + | ser.write_boolean(&CREATEPATCHBASELINEINPUT_MEMBER_APPROVED_PATCHES_ENABLE_NON_SECURITY, *val)?;
|
408 + | }
|
409 + | if let Some(ref val) = self.rejected_patches {
|
410 + | ser.write_list(
|
411 + | &CREATEPATCHBASELINEINPUT_MEMBER_REJECTED_PATCHES,
|
412 + | &|ser: &mut dyn ::aws_smithy_schema::serde::ShapeSerializer| {
|
413 + | for item in val {
|
414 + | ser.write_string(&aws_smithy_schema::prelude::STRING, item)?;
|
415 + | }
|
416 + | Ok(())
|
417 + | },
|
418 + | )?;
|
419 + | }
|
420 + | if let Some(ref val) = self.rejected_patches_action {
|
421 + | ser.write_string(&CREATEPATCHBASELINEINPUT_MEMBER_REJECTED_PATCHES_ACTION, val.as_str())?;
|
422 + | }
|
423 + | if let Some(ref val) = self.description {
|
424 + | ser.write_string(&CREATEPATCHBASELINEINPUT_MEMBER_DESCRIPTION, val)?;
|
425 + | }
|
426 + | if let Some(ref val) = self.sources {
|
427 + | ser.write_list(
|
428 + | &CREATEPATCHBASELINEINPUT_MEMBER_SOURCES,
|
429 + | &|ser: &mut dyn ::aws_smithy_schema::serde::ShapeSerializer| {
|
430 + | for item in val {
|
431 + | ser.write_struct(crate::types::PatchSource::SCHEMA, item)?;
|
432 + | }
|
433 + | Ok(())
|
434 + | },
|
435 + | )?;
|
436 + | }
|
437 + | if let Some(ref val) = self.available_security_updates_compliance_status {
|
438 + | ser.write_string(
|
439 + | &CREATEPATCHBASELINEINPUT_MEMBER_AVAILABLE_SECURITY_UPDATES_COMPLIANCE_STATUS,
|
440 + | val.as_str(),
|
441 + | )?;
|
442 + | }
|
443 + | if let Some(ref val) = self.client_token {
|
444 + | ser.write_string(&CREATEPATCHBASELINEINPUT_MEMBER_CLIENT_TOKEN, val)?;
|
445 + | }
|
446 + | if let Some(ref val) = self.tags {
|
447 + | ser.write_list(
|
448 + | &CREATEPATCHBASELINEINPUT_MEMBER_TAGS,
|
449 + | &|ser: &mut dyn ::aws_smithy_schema::serde::ShapeSerializer| {
|
450 + | for item in val {
|
451 + | ser.write_struct(crate::types::Tag::SCHEMA, item)?;
|
452 + | }
|
453 + | Ok(())
|
454 + | },
|
455 + | )?;
|
456 + | }
|
457 + | Ok(())
|
458 + | }
|
459 + | }
|
460 + | impl CreatePatchBaselineInput {
|
461 + | /// Deserializes this structure from a [`ShapeDeserializer`].
|
462 + | pub fn deserialize(
|
463 + | deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
|
464 + | ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
|
465 + | #[allow(unused_variables, unused_mut)]
|
466 + | let mut builder = Self::builder();
|
467 + | #[allow(
|
468 + | unused_variables,
|
469 + | unreachable_code,
|
470 + | clippy::single_match,
|
471 + | clippy::match_single_binding,
|
472 + | clippy::diverging_sub_expression
|
473 + | )]
|
474 + | deserializer.read_struct(&CREATEPATCHBASELINEINPUT_SCHEMA, &mut |member, deser| {
|
475 + | match member.member_index() {
|
476 + | Some(0) => {
|
477 + | if deser.is_null() {
|
478 + | deser.read_null()?;
|
479 + | } else {
|
480 + | builder.operating_system = Some(crate::types::OperatingSystem::from(deser.read_string(member)?.as_str()));
|
481 + | }
|
482 + | }
|
483 + | Some(1) => {
|
484 + | if deser.is_null() {
|
485 + | deser.read_null()?;
|
486 + | } else {
|
487 + | builder.name = Some(deser.read_string(member)?);
|
488 + | }
|
489 + | }
|
490 + | Some(2) => {
|
491 + | if deser.is_null() {
|
492 + | deser.read_null()?;
|
493 + | } else {
|
494 + | builder.global_filters = Some(crate::types::PatchFilterGroup::deserialize(deser)?);
|
495 + | }
|
496 + | }
|
497 + | Some(3) => {
|
498 + | if deser.is_null() {
|
499 + | deser.read_null()?;
|
500 + | } else {
|
501 + | builder.approval_rules = Some(crate::types::PatchRuleGroup::deserialize(deser)?);
|
502 + | }
|
503 + | }
|
504 + | Some(4) => {
|
505 + | if deser.is_null() {
|
506 + | deser.read_null()?;
|
507 + | } else {
|
508 + | builder.approved_patches = Some(deser.read_string_list(member)?);
|
509 + | }
|
510 + | }
|
511 + | Some(5) => {
|
512 + | if deser.is_null() {
|
513 + | deser.read_null()?;
|
514 + | } else {
|
515 + | builder.approved_patches_compliance_level =
|
516 + | Some(crate::types::PatchComplianceLevel::from(deser.read_string(member)?.as_str()));
|
517 + | }
|
518 + | }
|
519 + | Some(6) => {
|
520 + | if deser.is_null() {
|
521 + | deser.read_null()?;
|
522 + | } else {
|
523 + | builder.approved_patches_enable_non_security = Some(deser.read_boolean(member)?);
|
524 + | }
|
525 + | }
|
526 + | Some(7) => {
|
527 + | if deser.is_null() {
|
528 + | deser.read_null()?;
|
529 + | } else {
|
530 + | builder.rejected_patches = Some(deser.read_string_list(member)?);
|
531 + | }
|
532 + | }
|
533 + | Some(8) => {
|
534 + | if deser.is_null() {
|
535 + | deser.read_null()?;
|
536 + | } else {
|
537 + | builder.rejected_patches_action = Some(crate::types::PatchAction::from(deser.read_string(member)?.as_str()));
|
538 + | }
|
539 + | }
|
540 + | Some(9) => {
|
541 + | if deser.is_null() {
|
542 + | deser.read_null()?;
|
543 + | } else {
|
544 + | builder.description = Some(deser.read_string(member)?);
|
545 + | }
|
546 + | }
|
547 + | Some(10) => {
|
548 + | if deser.is_null() {
|
549 + | deser.read_null()?;
|
550 + | } else {
|
551 + | builder.sources = Some({
|
552 + | let mut container = Vec::new();
|
553 + | deser.read_list(member, &mut |deser| {
|
554 + | container.push(crate::types::PatchSource::deserialize(deser)?);
|
555 + | Ok(())
|
556 + | })?;
|
557 + | container
|
558 + | });
|
559 + | }
|
560 + | }
|
561 + | Some(11) => {
|
562 + | if deser.is_null() {
|
563 + | deser.read_null()?;
|
564 + | } else {
|
565 + | builder.available_security_updates_compliance_status =
|
566 + | Some(crate::types::PatchComplianceStatus::from(deser.read_string(member)?.as_str()));
|
567 + | }
|
568 + | }
|
569 + | Some(12) => {
|
570 + | if deser.is_null() {
|
571 + | deser.read_null()?;
|
572 + | } else {
|
573 + | builder.client_token = Some(deser.read_string(member)?);
|
574 + | }
|
575 + | }
|
576 + | Some(13) => {
|
577 + | if deser.is_null() {
|
578 + | deser.read_null()?;
|
579 + | } else {
|
580 + | builder.tags = Some({
|
581 + | let mut container = Vec::new();
|
582 + | deser.read_list(member, &mut |deser| {
|
583 + | container.push(crate::types::Tag::deserialize(deser)?);
|
584 + | Ok(())
|
585 + | })?;
|
586 + | container
|
587 + | });
|
588 + | }
|
589 + | }
|
590 + | _ => {}
|
591 + | }
|
592 + | Ok(())
|
593 + | })?;
|
594 + | builder.name = builder.name.or(Some(String::new()));
|
595 + | builder.build().map_err(|e| aws_smithy_schema::serde::SerdeError::custom(e.to_string()))
|
596 + | }
|
597 + | }
|
598 + | impl CreatePatchBaselineInput {
|
599 + | /// Deserializes this structure from a body deserializer and HTTP response.
|
600 + | pub fn deserialize_with_response(
|
601 + | deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
|
602 + | _headers: &::aws_smithy_runtime_api::http::Headers,
|
603 + | _status: u16,
|
604 + | _body: &[u8],
|
605 + | ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
|
606 + | Self::deserialize(deserializer)
|
607 + | }
|
608 + | }
|
609 + | impl CreatePatchBaselineInput {
|
610 + | /// Creates a new builder-style object to manufacture [`CreatePatchBaselineInput`](crate::operation::create_patch_baseline::CreatePatchBaselineInput).
|
611 + | pub fn builder() -> crate::operation::create_patch_baseline::builders::CreatePatchBaselineInputBuilder {
|
612 + | crate::operation::create_patch_baseline::builders::CreatePatchBaselineInputBuilder::default()
|
613 + | }
|
614 + | }
|
615 + |
|
616 + | /// A builder for [`CreatePatchBaselineInput`](crate::operation::create_patch_baseline::CreatePatchBaselineInput).
|
617 + | #[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
|
618 + | #[non_exhaustive]
|
619 + | pub struct CreatePatchBaselineInputBuilder {
|
620 + | pub(crate) operating_system: ::std::option::Option<crate::types::OperatingSystem>,
|
621 + | pub(crate) name: ::std::option::Option<::std::string::String>,
|
622 + | pub(crate) global_filters: ::std::option::Option<crate::types::PatchFilterGroup>,
|
623 + | pub(crate) approval_rules: ::std::option::Option<crate::types::PatchRuleGroup>,
|
624 + | pub(crate) approved_patches: ::std::option::Option<::std::vec::Vec<::std::string::String>>,
|
625 + | pub(crate) approved_patches_compliance_level: ::std::option::Option<crate::types::PatchComplianceLevel>,
|
626 + | pub(crate) approved_patches_enable_non_security: ::std::option::Option<bool>,
|
627 + | pub(crate) rejected_patches: ::std::option::Option<::std::vec::Vec<::std::string::String>>,
|
628 + | pub(crate) rejected_patches_action: ::std::option::Option<crate::types::PatchAction>,
|
629 + | pub(crate) description: ::std::option::Option<::std::string::String>,
|
630 + | pub(crate) sources: ::std::option::Option<::std::vec::Vec<crate::types::PatchSource>>,
|
631 + | pub(crate) available_security_updates_compliance_status: ::std::option::Option<crate::types::PatchComplianceStatus>,
|
632 + | pub(crate) client_token: ::std::option::Option<::std::string::String>,
|
633 + | pub(crate) tags: ::std::option::Option<::std::vec::Vec<crate::types::Tag>>,
|
634 + | }
|
635 + | impl CreatePatchBaselineInputBuilder {
|
636 + | /// <p>Defines the operating system the patch baseline applies to. The default value is <code>WINDOWS</code>.</p>
|
637 + | pub fn operating_system(mut self, input: crate::types::OperatingSystem) -> Self {
|
638 + | self.operating_system = ::std::option::Option::Some(input);
|
639 + | self
|
640 + | }
|
641 + | /// <p>Defines the operating system the patch baseline applies to. The default value is <code>WINDOWS</code>.</p>
|
642 + | pub fn set_operating_system(mut self, input: ::std::option::Option<crate::types::OperatingSystem>) -> Self {
|
643 + | self.operating_system = input;
|
644 + | self
|
645 + | }
|
646 + | /// <p>Defines the operating system the patch baseline applies to. The default value is <code>WINDOWS</code>.</p>
|
647 + | pub fn get_operating_system(&self) -> &::std::option::Option<crate::types::OperatingSystem> {
|
648 + | &self.operating_system
|
649 + | }
|
650 + | /// <p>The name of the patch baseline.</p>
|
651 + | /// This field is required.
|
652 + | pub fn name(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
|
653 + | self.name = ::std::option::Option::Some(input.into());
|
654 + | self
|
655 + | }
|
656 + | /// <p>The name of the patch baseline.</p>
|
657 + | pub fn set_name(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
|
658 + | self.name = input;
|
659 + | self
|
660 + | }
|
661 + | /// <p>The name of the patch baseline.</p>
|
662 + | pub fn get_name(&self) -> &::std::option::Option<::std::string::String> {
|
663 + | &self.name
|
664 + | }
|
665 + | /// <p>A set of global filters used to include patches in the baseline.</p><important>
|
666 + | /// <p>The <code>GlobalFilters</code> parameter can be configured only by using the CLI or an Amazon Web Services SDK. It can't be configured from the Patch Manager console, and its value isn't displayed in the console.</p>
|
667 + | /// </important>
|
668 + | pub fn global_filters(mut self, input: crate::types::PatchFilterGroup) -> Self {
|
669 + | self.global_filters = ::std::option::Option::Some(input);
|
670 + | self
|
671 + | }
|
672 + | /// <p>A set of global filters used to include patches in the baseline.</p><important>
|
673 + | /// <p>The <code>GlobalFilters</code> parameter can be configured only by using the CLI or an Amazon Web Services SDK. It can't be configured from the Patch Manager console, and its value isn't displayed in the console.</p>
|
674 + | /// </important>
|
675 + | pub fn set_global_filters(mut self, input: ::std::option::Option<crate::types::PatchFilterGroup>) -> Self {
|
676 + | self.global_filters = input;
|
677 + | self
|
678 + | }
|
679 + | /// <p>A set of global filters used to include patches in the baseline.</p><important>
|
680 + | /// <p>The <code>GlobalFilters</code> parameter can be configured only by using the CLI or an Amazon Web Services SDK. It can't be configured from the Patch Manager console, and its value isn't displayed in the console.</p>
|
681 + | /// </important>
|
682 + | pub fn get_global_filters(&self) -> &::std::option::Option<crate::types::PatchFilterGroup> {
|
683 + | &self.global_filters
|
684 + | }
|
685 + | /// <p>A set of rules used to include patches in the baseline.</p>
|
686 + | pub fn approval_rules(mut self, input: crate::types::PatchRuleGroup) -> Self {
|
687 + | self.approval_rules = ::std::option::Option::Some(input);
|
688 + | self
|
689 + | }
|
690 + | /// <p>A set of rules used to include patches in the baseline.</p>
|
691 + | pub fn set_approval_rules(mut self, input: ::std::option::Option<crate::types::PatchRuleGroup>) -> Self {
|
692 + | self.approval_rules = input;
|
693 + | self
|
694 + | }
|
695 + | /// <p>A set of rules used to include patches in the baseline.</p>
|
696 + | pub fn get_approval_rules(&self) -> &::std::option::Option<crate::types::PatchRuleGroup> {
|
697 + | &self.approval_rules
|
698 + | }
|
699 + | /// Appends an item to `approved_patches`.
|
700 + | ///
|
701 + | /// To override the contents of this collection use [`set_approved_patches`](Self::set_approved_patches).
|
702 + | ///
|
703 + | /// <p>A list of explicitly approved patches for the baseline.</p>
|
704 + | /// <p>For information about accepted formats for lists of approved patches and rejected patches, see <a href="https://docs.aws.amazon.com/systems-manager/latest/userguide/patch-manager-approved-rejected-package-name-formats.html">Package name formats for approved and rejected patch lists</a> in the <i>Amazon Web Services Systems Manager User Guide</i>.</p>
|
705 + | pub fn approved_patches(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
|
706 + | let mut v = self.approved_patches.unwrap_or_default();
|
707 + | v.push(input.into());
|
708 + | self.approved_patches = ::std::option::Option::Some(v);
|
709 + | self
|
710 + | }
|
711 + | /// <p>A list of explicitly approved patches for the baseline.</p>
|
712 + | /// <p>For information about accepted formats for lists of approved patches and rejected patches, see <a href="https://docs.aws.amazon.com/systems-manager/latest/userguide/patch-manager-approved-rejected-package-name-formats.html">Package name formats for approved and rejected patch lists</a> in the <i>Amazon Web Services Systems Manager User Guide</i>.</p>
|
713 + | pub fn set_approved_patches(mut self, input: ::std::option::Option<::std::vec::Vec<::std::string::String>>) -> Self {
|
714 + | self.approved_patches = input;
|
715 + | self
|
716 + | }
|
717 + | /// <p>A list of explicitly approved patches for the baseline.</p>
|
718 + | /// <p>For information about accepted formats for lists of approved patches and rejected patches, see <a href="https://docs.aws.amazon.com/systems-manager/latest/userguide/patch-manager-approved-rejected-package-name-formats.html">Package name formats for approved and rejected patch lists</a> in the <i>Amazon Web Services Systems Manager User Guide</i>.</p>
|
719 + | pub fn get_approved_patches(&self) -> &::std::option::Option<::std::vec::Vec<::std::string::String>> {
|
720 + | &self.approved_patches
|
721 + | }
|
722 + | /// <p>Defines the compliance level for approved patches. When an approved patch is reported as missing, this value describes the severity of the compliance violation. The default value is <code>UNSPECIFIED</code>.</p>
|
723 + | pub fn approved_patches_compliance_level(mut self, input: crate::types::PatchComplianceLevel) -> Self {
|
724 + | self.approved_patches_compliance_level = ::std::option::Option::Some(input);
|
725 + | self
|
726 + | }
|
727 + | /// <p>Defines the compliance level for approved patches. When an approved patch is reported as missing, this value describes the severity of the compliance violation. The default value is <code>UNSPECIFIED</code>.</p>
|
728 + | pub fn set_approved_patches_compliance_level(mut self, input: ::std::option::Option<crate::types::PatchComplianceLevel>) -> Self {
|
729 + | self.approved_patches_compliance_level = input;
|
730 + | self
|
731 + | }
|
732 + | /// <p>Defines the compliance level for approved patches. When an approved patch is reported as missing, this value describes the severity of the compliance violation. The default value is <code>UNSPECIFIED</code>.</p>
|
733 + | pub fn get_approved_patches_compliance_level(&self) -> &::std::option::Option<crate::types::PatchComplianceLevel> {
|
734 + | &self.approved_patches_compliance_level
|
735 + | }
|
736 + | /// <p>Indicates whether the list of approved patches includes non-security updates that should be applied to the managed nodes. The default value is <code>false</code>. Applies to Linux managed nodes only.</p>
|
737 + | pub fn approved_patches_enable_non_security(mut self, input: bool) -> Self {
|
738 + | self.approved_patches_enable_non_security = ::std::option::Option::Some(input);
|
739 + | self
|
740 + | }
|
741 + | /// <p>Indicates whether the list of approved patches includes non-security updates that should be applied to the managed nodes. The default value is <code>false</code>. Applies to Linux managed nodes only.</p>
|
742 + | pub fn set_approved_patches_enable_non_security(mut self, input: ::std::option::Option<bool>) -> Self {
|
743 + | self.approved_patches_enable_non_security = input;
|
744 + | self
|
745 + | }
|
746 + | /// <p>Indicates whether the list of approved patches includes non-security updates that should be applied to the managed nodes. The default value is <code>false</code>. Applies to Linux managed nodes only.</p>
|
747 + | pub fn get_approved_patches_enable_non_security(&self) -> &::std::option::Option<bool> {
|
748 + | &self.approved_patches_enable_non_security
|
749 + | }
|
750 + | /// Appends an item to `rejected_patches`.
|
751 + | ///
|
752 + | /// To override the contents of this collection use [`set_rejected_patches`](Self::set_rejected_patches).
|
753 + | ///
|
754 + | /// <p>A list of explicitly rejected patches for the baseline.</p>
|
755 + | /// <p>For information about accepted formats for lists of approved patches and rejected patches, see <a href="https://docs.aws.amazon.com/systems-manager/latest/userguide/patch-manager-approved-rejected-package-name-formats.html">Package name formats for approved and rejected patch lists</a> in the <i>Amazon Web Services Systems Manager User Guide</i>.</p>
|
756 + | pub fn rejected_patches(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
|
757 + | let mut v = self.rejected_patches.unwrap_or_default();
|
758 + | v.push(input.into());
|
759 + | self.rejected_patches = ::std::option::Option::Some(v);
|
760 + | self
|
761 + | }
|
762 + | /// <p>A list of explicitly rejected patches for the baseline.</p>
|
763 + | /// <p>For information about accepted formats for lists of approved patches and rejected patches, see <a href="https://docs.aws.amazon.com/systems-manager/latest/userguide/patch-manager-approved-rejected-package-name-formats.html">Package name formats for approved and rejected patch lists</a> in the <i>Amazon Web Services Systems Manager User Guide</i>.</p>
|
764 + | pub fn set_rejected_patches(mut self, input: ::std::option::Option<::std::vec::Vec<::std::string::String>>) -> Self {
|
765 + | self.rejected_patches = input;
|
766 + | self
|
767 + | }
|
768 + | /// <p>A list of explicitly rejected patches for the baseline.</p>
|
769 + | /// <p>For information about accepted formats for lists of approved patches and rejected patches, see <a href="https://docs.aws.amazon.com/systems-manager/latest/userguide/patch-manager-approved-rejected-package-name-formats.html">Package name formats for approved and rejected patch lists</a> in the <i>Amazon Web Services Systems Manager User Guide</i>.</p>
|
770 + | pub fn get_rejected_patches(&self) -> &::std::option::Option<::std::vec::Vec<::std::string::String>> {
|
771 + | &self.rejected_patches
|
772 + | }
|
773 + | /// <p>The action for Patch Manager to take on patches included in the <code>RejectedPackages</code> list.</p>
|
774 + | /// <dl>
|
775 + | /// <dt>
|
776 + | /// ALLOW_AS_DEPENDENCY
|
777 + | /// </dt>
|
778 + | /// <dd>
|
779 + | /// <p><b>Linux and macOS</b>: A package in the rejected patches list is installed only if it is a dependency of another package. It is considered compliant with the patch baseline, and its status is reported as <code>INSTALLED_OTHER</code>. This is the default action if no option is specified.</p>
|
780 + | /// <p><b>Windows Server</b>: Windows Server doesn't support the concept of package dependencies. If a package in the rejected patches list and already installed on the node, its status is reported as <code>INSTALLED_OTHER</code>. Any package not already installed on the node is skipped. This is the default action if no option is specified.</p>
|
781 + | /// </dd>
|
782 + | /// <dt>
|
783 + | /// BLOCK
|
784 + | /// </dt>
|
785 + | /// <dd>
|
786 + | /// <p><b>All OSs</b>: Packages in the rejected patches list, and packages that include them as dependencies, aren't installed by Patch Manager under any circumstances.</p>
|
787 + | /// <p>State value assignment for patch compliance:</p>
|
788 + | /// <ul>
|
789 + | /// <li>
|
790 + | /// <p>If a package was installed before it was added to the rejected patches list, or is installed outside of Patch Manager afterward, it's considered noncompliant with the patch baseline and its status is reported as <code>INSTALLED_REJECTED</code>.</p></li>
|
791 + | /// <li>
|
792 + | /// <p>If an update attempts to install a dependency package that is now rejected by the baseline, when previous versions of the package were not rejected, the package being updated is reported as <code>MISSING</code> for <code>SCAN</code> operations and as <code>FAILED</code> for <code>INSTALL</code> operations.</p></li>
|
793 + | /// </ul>
|
794 + | /// </dd>
|
795 + | /// </dl>
|
796 + | pub fn rejected_patches_action(mut self, input: crate::types::PatchAction) -> Self {
|
797 + | self.rejected_patches_action = ::std::option::Option::Some(input);
|
798 + | self
|
799 + | }
|
800 + | /// <p>The action for Patch Manager to take on patches included in the <code>RejectedPackages</code> list.</p>
|
801 + | /// <dl>
|
802 + | /// <dt>
|
803 + | /// ALLOW_AS_DEPENDENCY
|
804 + | /// </dt>
|
805 + | /// <dd>
|
806 + | /// <p><b>Linux and macOS</b>: A package in the rejected patches list is installed only if it is a dependency of another package. It is considered compliant with the patch baseline, and its status is reported as <code>INSTALLED_OTHER</code>. This is the default action if no option is specified.</p>
|
807 + | /// <p><b>Windows Server</b>: Windows Server doesn't support the concept of package dependencies. If a package in the rejected patches list and already installed on the node, its status is reported as <code>INSTALLED_OTHER</code>. Any package not already installed on the node is skipped. This is the default action if no option is specified.</p>
|
808 + | /// </dd>
|
809 + | /// <dt>
|
810 + | /// BLOCK
|
811 + | /// </dt>
|
812 + | /// <dd>
|
813 + | /// <p><b>All OSs</b>: Packages in the rejected patches list, and packages that include them as dependencies, aren't installed by Patch Manager under any circumstances.</p>
|
814 + | /// <p>State value assignment for patch compliance:</p>
|
815 + | /// <ul>
|
816 + | /// <li>
|
817 + | /// <p>If a package was installed before it was added to the rejected patches list, or is installed outside of Patch Manager afterward, it's considered noncompliant with the patch baseline and its status is reported as <code>INSTALLED_REJECTED</code>.</p></li>
|
818 + | /// <li>
|
819 + | /// <p>If an update attempts to install a dependency package that is now rejected by the baseline, when previous versions of the package were not rejected, the package being updated is reported as <code>MISSING</code> for <code>SCAN</code> operations and as <code>FAILED</code> for <code>INSTALL</code> operations.</p></li>
|
820 + | /// </ul>
|
821 + | /// </dd>
|
822 + | /// </dl>
|
823 + | pub fn set_rejected_patches_action(mut self, input: ::std::option::Option<crate::types::PatchAction>) -> Self {
|
824 + | self.rejected_patches_action = input;
|
825 + | self
|
826 + | }
|
827 + | /// <p>The action for Patch Manager to take on patches included in the <code>RejectedPackages</code> list.</p>
|
828 + | /// <dl>
|
829 + | /// <dt>
|
830 + | /// ALLOW_AS_DEPENDENCY
|
831 + | /// </dt>
|
832 + | /// <dd>
|
833 + | /// <p><b>Linux and macOS</b>: A package in the rejected patches list is installed only if it is a dependency of another package. It is considered compliant with the patch baseline, and its status is reported as <code>INSTALLED_OTHER</code>. This is the default action if no option is specified.</p>
|
834 + | /// <p><b>Windows Server</b>: Windows Server doesn't support the concept of package dependencies. If a package in the rejected patches list and already installed on the node, its status is reported as <code>INSTALLED_OTHER</code>. Any package not already installed on the node is skipped. This is the default action if no option is specified.</p>
|
835 + | /// </dd>
|
836 + | /// <dt>
|
837 + | /// BLOCK
|
838 + | /// </dt>
|
839 + | /// <dd>
|
840 + | /// <p><b>All OSs</b>: Packages in the rejected patches list, and packages that include them as dependencies, aren't installed by Patch Manager under any circumstances.</p>
|
841 + | /// <p>State value assignment for patch compliance:</p>
|
842 + | /// <ul>
|
843 + | /// <li>
|
844 + | /// <p>If a package was installed before it was added to the rejected patches list, or is installed outside of Patch Manager afterward, it's considered noncompliant with the patch baseline and its status is reported as <code>INSTALLED_REJECTED</code>.</p></li>
|
845 + | /// <li>
|
846 + | /// <p>If an update attempts to install a dependency package that is now rejected by the baseline, when previous versions of the package were not rejected, the package being updated is reported as <code>MISSING</code> for <code>SCAN</code> operations and as <code>FAILED</code> for <code>INSTALL</code> operations.</p></li>
|
847 + | /// </ul>
|
848 + | /// </dd>
|
849 + | /// </dl>
|
850 + | pub fn get_rejected_patches_action(&self) -> &::std::option::Option<crate::types::PatchAction> {
|
851 + | &self.rejected_patches_action
|
852 + | }
|
853 + | /// <p>A description of the patch baseline.</p>
|
854 + | pub fn description(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
|
855 + | self.description = ::std::option::Option::Some(input.into());
|
856 + | self
|
857 + | }
|
858 + | /// <p>A description of the patch baseline.</p>
|
859 + | pub fn set_description(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
|
860 + | self.description = input;
|
861 + | self
|
862 + | }
|
863 + | /// <p>A description of the patch baseline.</p>
|
864 + | pub fn get_description(&self) -> &::std::option::Option<::std::string::String> {
|
865 + | &self.description
|
866 + | }
|
867 + | /// Appends an item to `sources`.
|
868 + | ///
|
869 + | /// To override the contents of this collection use [`set_sources`](Self::set_sources).
|
870 + | ///
|
871 + | /// <p>Information about the patches to use to update the managed nodes, including target operating systems and source repositories. Applies to Linux managed nodes only.</p>
|
872 + | pub fn sources(mut self, input: crate::types::PatchSource) -> Self {
|
873 + | let mut v = self.sources.unwrap_or_default();
|
874 + | v.push(input);
|
875 + | self.sources = ::std::option::Option::Some(v);
|
876 + | self
|
877 + | }
|
878 + | /// <p>Information about the patches to use to update the managed nodes, including target operating systems and source repositories. Applies to Linux managed nodes only.</p>
|
879 + | pub fn set_sources(mut self, input: ::std::option::Option<::std::vec::Vec<crate::types::PatchSource>>) -> Self {
|
880 + | self.sources = input;
|
881 + | self
|
882 + | }
|
883 + | /// <p>Information about the patches to use to update the managed nodes, including target operating systems and source repositories. Applies to Linux managed nodes only.</p>
|
884 + | pub fn get_sources(&self) -> &::std::option::Option<::std::vec::Vec<crate::types::PatchSource>> {
|
885 + | &self.sources
|
886 + | }
|
887 + | /// <p>Indicates the status you want to assign to security patches that are available but not approved because they don't meet the installation criteria specified in the patch baseline.</p>
|
888 + | /// <p>Example scenario: Security patches that you might want installed can be skipped if you have specified a long period to wait after a patch is released before installation. If an update to the patch is released during your specified waiting period, the waiting period for installing the patch starts over. If the waiting period is too long, multiple versions of the patch could be released but never installed.</p>
|
889 + | /// <p>Supported for Windows Server managed nodes only.</p>
|
890 + | pub fn available_security_updates_compliance_status(mut self, input: crate::types::PatchComplianceStatus) -> Self {
|
891 + | self.available_security_updates_compliance_status = ::std::option::Option::Some(input);
|
892 + | self
|
893 + | }
|
894 + | /// <p>Indicates the status you want to assign to security patches that are available but not approved because they don't meet the installation criteria specified in the patch baseline.</p>
|
895 + | /// <p>Example scenario: Security patches that you might want installed can be skipped if you have specified a long period to wait after a patch is released before installation. If an update to the patch is released during your specified waiting period, the waiting period for installing the patch starts over. If the waiting period is too long, multiple versions of the patch could be released but never installed.</p>
|
896 + | /// <p>Supported for Windows Server managed nodes only.</p>
|
897 + | pub fn set_available_security_updates_compliance_status(mut self, input: ::std::option::Option<crate::types::PatchComplianceStatus>) -> Self {
|
898 + | self.available_security_updates_compliance_status = input;
|
899 + | self
|
900 + | }
|
901 + | /// <p>Indicates the status you want to assign to security patches that are available but not approved because they don't meet the installation criteria specified in the patch baseline.</p>
|
902 + | /// <p>Example scenario: Security patches that you might want installed can be skipped if you have specified a long period to wait after a patch is released before installation. If an update to the patch is released during your specified waiting period, the waiting period for installing the patch starts over. If the waiting period is too long, multiple versions of the patch could be released but never installed.</p>
|
903 + | /// <p>Supported for Windows Server managed nodes only.</p>
|
904 + | pub fn get_available_security_updates_compliance_status(&self) -> &::std::option::Option<crate::types::PatchComplianceStatus> {
|
905 + | &self.available_security_updates_compliance_status
|
906 + | }
|
907 + | /// <p>User-provided idempotency token.</p>
|
908 + | pub fn client_token(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
|
909 + | self.client_token = ::std::option::Option::Some(input.into());
|
910 + | self
|
911 + | }
|
912 + | /// <p>User-provided idempotency token.</p>
|
913 + | pub fn set_client_token(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
|
914 + | self.client_token = input;
|
915 + | self
|
916 + | }
|
917 + | /// <p>User-provided idempotency token.</p>
|
918 + | pub fn get_client_token(&self) -> &::std::option::Option<::std::string::String> {
|
919 + | &self.client_token
|
920 + | }
|
921 + | /// Appends an item to `tags`.
|
922 + | ///
|
923 + | /// To override the contents of this collection use [`set_tags`](Self::set_tags).
|
924 + | ///
|
925 + | /// <p>Optional metadata that you assign to a resource. Tags enable you to categorize a resource in different ways, such as by purpose, owner, or environment. For example, you might want to tag a patch baseline to identify the severity level of patches it specifies and the operating system family it applies to. In this case, you could specify the following key-value pairs:</p>
|
926 + | /// <ul>
|
927 + | /// <li>
|
928 + | /// <p><code>Key=PatchSeverity,Value=Critical</code></p></li>
|
929 + | /// <li>
|
930 + | /// <p><code>Key=OS,Value=Windows</code></p></li>
|
931 + | /// </ul><note>
|
932 + | /// <p>To add tags to an existing patch baseline, use the <code>AddTagsToResource</code> operation.</p>
|
933 + | /// </note>
|
934 + | pub fn tags(mut self, input: crate::types::Tag) -> Self {
|
935 + | let mut v = self.tags.unwrap_or_default();
|
936 + | v.push(input);
|
937 + | self.tags = ::std::option::Option::Some(v);
|
938 + | self
|
939 + | }
|
940 + | /// <p>Optional metadata that you assign to a resource. Tags enable you to categorize a resource in different ways, such as by purpose, owner, or environment. For example, you might want to tag a patch baseline to identify the severity level of patches it specifies and the operating system family it applies to. In this case, you could specify the following key-value pairs:</p>
|
941 + | /// <ul>
|
942 + | /// <li>
|
943 + | /// <p><code>Key=PatchSeverity,Value=Critical</code></p></li>
|
944 + | /// <li>
|
945 + | /// <p><code>Key=OS,Value=Windows</code></p></li>
|
946 + | /// </ul><note>
|
947 + | /// <p>To add tags to an existing patch baseline, use the <code>AddTagsToResource</code> operation.</p>
|
948 + | /// </note>
|
949 + | pub fn set_tags(mut self, input: ::std::option::Option<::std::vec::Vec<crate::types::Tag>>) -> Self {
|
950 + | self.tags = input;
|
951 + | self
|
952 + | }
|
953 + | /// <p>Optional metadata that you assign to a resource. Tags enable you to categorize a resource in different ways, such as by purpose, owner, or environment. For example, you might want to tag a patch baseline to identify the severity level of patches it specifies and the operating system family it applies to. In this case, you could specify the following key-value pairs:</p>
|
954 + | /// <ul>
|
955 + | /// <li>
|
956 + | /// <p><code>Key=PatchSeverity,Value=Critical</code></p></li>
|
957 + | /// <li>
|
958 + | /// <p><code>Key=OS,Value=Windows</code></p></li>
|
959 + | /// </ul><note>
|
960 + | /// <p>To add tags to an existing patch baseline, use the <code>AddTagsToResource</code> operation.</p>
|
961 + | /// </note>
|
962 + | pub fn get_tags(&self) -> &::std::option::Option<::std::vec::Vec<crate::types::Tag>> {
|
963 + | &self.tags
|
964 + | }
|
965 + | /// Consumes the builder and constructs a [`CreatePatchBaselineInput`](crate::operation::create_patch_baseline::CreatePatchBaselineInput).
|
966 + | pub fn build(
|
967 + | self,
|
968 + | ) -> ::std::result::Result<crate::operation::create_patch_baseline::CreatePatchBaselineInput, ::aws_smithy_types::error::operation::BuildError>
|
969 + | {
|
970 + | ::std::result::Result::Ok(crate::operation::create_patch_baseline::CreatePatchBaselineInput {
|
971 + | operating_system: self.operating_system,
|
972 + | name: self.name,
|
973 + | global_filters: self.global_filters,
|
974 + | approval_rules: self.approval_rules,
|
975 + | approved_patches: self.approved_patches,
|
976 + | approved_patches_compliance_level: self.approved_patches_compliance_level,
|
977 + | approved_patches_enable_non_security: self.approved_patches_enable_non_security,
|
978 + | rejected_patches: self.rejected_patches,
|
979 + | rejected_patches_action: self.rejected_patches_action,
|
980 + | description: self.description,
|
981 + | sources: self.sources,
|
982 + | available_security_updates_compliance_status: self.available_security_updates_compliance_status,
|
983 + | client_token: self.client_token,
|
984 + | tags: self.tags,
|
985 + | })
|
986 + | }
|
987 + | }
|