1 + | // Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
|
2 + |
|
3 + | /// <p>Defines an approval rule for a patch baseline.</p>
|
4 + | #[non_exhaustive]
|
5 + | #[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
|
6 + | pub struct PatchRule {
|
7 + | /// <p>The patch filter group that defines the criteria for the rule.</p>
|
8 + | pub patch_filter_group: ::std::option::Option<crate::types::PatchFilterGroup>,
|
9 + | /// <p>A compliance severity level for all approved patches in a patch baseline.</p>
|
10 + | pub compliance_level: ::std::option::Option<crate::types::PatchComplianceLevel>,
|
11 + | /// <p>The number of days after the release date of each patch matched by the rule that the patch is marked as approved in the patch baseline. For example, a value of <code>7</code> means that patches are approved seven days after they are released.</p>
|
12 + | /// <p>Patch Manager evaluates patch release dates using Coordinated Universal Time (UTC). If a patch is released at <code>2025-11-09T18:00:00Z</code> and <code>ApproveAfterDays</code> is set to <code>7</code>, the patch will be approved after <code>2025-11-16T18:00:00Z</code>.</p>
|
13 + | /// <p>This parameter is marked as <code>Required: No</code>, but your request must include a value for either <code>ApproveAfterDays</code> or <code>ApproveUntilDate</code>.</p>
|
14 + | /// <p>Not supported for Debian Server or Ubuntu Server.</p><important>
|
15 + | /// <p>Use caution when setting this value for Windows Server patch baselines. Because patch updates that are replaced by later updates are removed, setting too broad a value for this parameter can result in crucial patches not being installed. For more information, see the <b>Windows Server</b> tab in the topic <a href="https://docs.aws.amazon.com/systems-manager/latest/userguide/patch-manager-selecting-patches.html">How security patches are selected</a> in the <i>Amazon Web Services Systems Manager User Guide</i>.</p>
|
16 + | /// </important>
|
17 + | pub approve_after_days: ::std::option::Option<i32>,
|
18 + | /// <p>The cutoff date for auto approval of released patches. Any patches released on or before this date are installed automatically.</p>
|
19 + | /// <p>Enter dates in the format <code>YYYY-MM-DD</code>. For example, <code>2025-11-16</code>.</p>
|
20 + | /// <p>Patch Manager evaluates patch release dates using Coordinated Universal Time (UTC). If you enter the date <code>2025-11-16</code>, patches released between <code>2025-11-16T00:00:00Z</code> and <code>2025-11-16T23:59:59Z</code> will be included in the approval.</p>
|
21 + | /// <p>This parameter is marked as <code>Required: No</code>, but your request must include a value for either <code>ApproveUntilDate</code> or <code>ApproveAfterDays</code>.</p>
|
22 + | /// <p>Not supported for Debian Server or Ubuntu Server.</p><important>
|
23 + | /// <p>Use caution when setting this value for Windows Server patch baselines. Because patch updates that are replaced by later updates are removed, setting too broad a value for this parameter can result in crucial patches not being installed. For more information, see the <b>Windows Server</b> tab in the topic <a href="https://docs.aws.amazon.com/systems-manager/latest/userguide/patch-manager-selecting-patches.html">How security patches are selected</a> in the <i>Amazon Web Services Systems Manager User Guide</i>.</p>
|
24 + | /// </important>
|
25 + | pub approve_until_date: ::std::option::Option<::std::string::String>,
|
26 + | /// <p>For managed nodes identified by the approval rule filters, enables a patch baseline to apply non-security updates available in the specified repository. The default value is <code>false</code>. Applies to Linux managed nodes only.</p>
|
27 + | pub enable_non_security: ::std::option::Option<bool>,
|
28 + | }
|
29 + | impl PatchRule {
|
30 + | /// <p>The patch filter group that defines the criteria for the rule.</p>
|
31 + | pub fn patch_filter_group(&self) -> ::std::option::Option<&crate::types::PatchFilterGroup> {
|
32 + | self.patch_filter_group.as_ref()
|
33 + | }
|
34 + | /// <p>A compliance severity level for all approved patches in a patch baseline.</p>
|
35 + | pub fn compliance_level(&self) -> ::std::option::Option<&crate::types::PatchComplianceLevel> {
|
36 + | self.compliance_level.as_ref()
|
37 + | }
|
38 + | /// <p>The number of days after the release date of each patch matched by the rule that the patch is marked as approved in the patch baseline. For example, a value of <code>7</code> means that patches are approved seven days after they are released.</p>
|
39 + | /// <p>Patch Manager evaluates patch release dates using Coordinated Universal Time (UTC). If a patch is released at <code>2025-11-09T18:00:00Z</code> and <code>ApproveAfterDays</code> is set to <code>7</code>, the patch will be approved after <code>2025-11-16T18:00:00Z</code>.</p>
|
40 + | /// <p>This parameter is marked as <code>Required: No</code>, but your request must include a value for either <code>ApproveAfterDays</code> or <code>ApproveUntilDate</code>.</p>
|
41 + | /// <p>Not supported for Debian Server or Ubuntu Server.</p><important>
|
42 + | /// <p>Use caution when setting this value for Windows Server patch baselines. Because patch updates that are replaced by later updates are removed, setting too broad a value for this parameter can result in crucial patches not being installed. For more information, see the <b>Windows Server</b> tab in the topic <a href="https://docs.aws.amazon.com/systems-manager/latest/userguide/patch-manager-selecting-patches.html">How security patches are selected</a> in the <i>Amazon Web Services Systems Manager User Guide</i>.</p>
|
43 + | /// </important>
|
44 + | pub fn approve_after_days(&self) -> ::std::option::Option<i32> {
|
45 + | self.approve_after_days
|
46 + | }
|
47 + | /// <p>The cutoff date for auto approval of released patches. Any patches released on or before this date are installed automatically.</p>
|
48 + | /// <p>Enter dates in the format <code>YYYY-MM-DD</code>. For example, <code>2025-11-16</code>.</p>
|
49 + | /// <p>Patch Manager evaluates patch release dates using Coordinated Universal Time (UTC). If you enter the date <code>2025-11-16</code>, patches released between <code>2025-11-16T00:00:00Z</code> and <code>2025-11-16T23:59:59Z</code> will be included in the approval.</p>
|
50 + | /// <p>This parameter is marked as <code>Required: No</code>, but your request must include a value for either <code>ApproveUntilDate</code> or <code>ApproveAfterDays</code>.</p>
|
51 + | /// <p>Not supported for Debian Server or Ubuntu Server.</p><important>
|
52 + | /// <p>Use caution when setting this value for Windows Server patch baselines. Because patch updates that are replaced by later updates are removed, setting too broad a value for this parameter can result in crucial patches not being installed. For more information, see the <b>Windows Server</b> tab in the topic <a href="https://docs.aws.amazon.com/systems-manager/latest/userguide/patch-manager-selecting-patches.html">How security patches are selected</a> in the <i>Amazon Web Services Systems Manager User Guide</i>.</p>
|
53 + | /// </important>
|
54 + | pub fn approve_until_date(&self) -> ::std::option::Option<&str> {
|
55 + | self.approve_until_date.as_deref()
|
56 + | }
|
57 + | /// <p>For managed nodes identified by the approval rule filters, enables a patch baseline to apply non-security updates available in the specified repository. The default value is <code>false</code>. Applies to Linux managed nodes only.</p>
|
58 + | pub fn enable_non_security(&self) -> ::std::option::Option<bool> {
|
59 + | self.enable_non_security
|
60 + | }
|
61 + | }
|
62 + | static PATCHRULE_MEMBER_PATCH_FILTER_GROUP: ::aws_smithy_schema::Schema<'static> = ::aws_smithy_schema::Schema::new_member(
|
63 + | ::aws_smithy_schema::ShapeId::from_parts("com.amazonaws.ssm#PatchRule$PatchFilterGroup", "com.amazonaws.ssm", "PatchRule"),
|
64 + | ::aws_smithy_schema::ShapeType::Structure,
|
65 + | "PatchFilterGroup",
|
66 + | 0,
|
67 + | );
|
68 + | static PATCHRULE_MEMBER_COMPLIANCE_LEVEL: ::aws_smithy_schema::Schema<'static> = ::aws_smithy_schema::Schema::new_member(
|
69 + | ::aws_smithy_schema::ShapeId::from_parts("com.amazonaws.ssm#PatchRule$ComplianceLevel", "com.amazonaws.ssm", "PatchRule"),
|
70 + | ::aws_smithy_schema::ShapeType::String,
|
71 + | "ComplianceLevel",
|
72 + | 1,
|
73 + | );
|
74 + | static PATCHRULE_MEMBER_APPROVE_AFTER_DAYS: ::aws_smithy_schema::Schema<'static> = ::aws_smithy_schema::Schema::new_member(
|
75 + | ::aws_smithy_schema::ShapeId::from_parts("com.amazonaws.ssm#PatchRule$ApproveAfterDays", "com.amazonaws.ssm", "PatchRule"),
|
76 + | ::aws_smithy_schema::ShapeType::Integer,
|
77 + | "ApproveAfterDays",
|
78 + | 2,
|
79 + | );
|
80 + | static PATCHRULE_MEMBER_APPROVE_UNTIL_DATE: ::aws_smithy_schema::Schema<'static> = ::aws_smithy_schema::Schema::new_member(
|
81 + | ::aws_smithy_schema::ShapeId::from_parts("com.amazonaws.ssm#PatchRule$ApproveUntilDate", "com.amazonaws.ssm", "PatchRule"),
|
82 + | ::aws_smithy_schema::ShapeType::String,
|
83 + | "ApproveUntilDate",
|
84 + | 3,
|
85 + | );
|
86 + | static PATCHRULE_MEMBER_ENABLE_NON_SECURITY: ::aws_smithy_schema::Schema<'static> = ::aws_smithy_schema::Schema::new_member(
|
87 + | ::aws_smithy_schema::ShapeId::from_parts("com.amazonaws.ssm#PatchRule$EnableNonSecurity", "com.amazonaws.ssm", "PatchRule"),
|
88 + | ::aws_smithy_schema::ShapeType::Boolean,
|
89 + | "EnableNonSecurity",
|
90 + | 4,
|
91 + | );
|
92 + | static PATCHRULE_SCHEMA: ::aws_smithy_schema::Schema<'static> = ::aws_smithy_schema::Schema::new_struct(
|
93 + | ::aws_smithy_schema::ShapeId::from_parts("com.amazonaws.ssm#PatchRule", "com.amazonaws.ssm", "PatchRule"),
|
94 + | ::aws_smithy_schema::ShapeType::Structure,
|
95 + | &[
|
96 + | &PATCHRULE_MEMBER_PATCH_FILTER_GROUP,
|
97 + | &PATCHRULE_MEMBER_COMPLIANCE_LEVEL,
|
98 + | &PATCHRULE_MEMBER_APPROVE_AFTER_DAYS,
|
99 + | &PATCHRULE_MEMBER_APPROVE_UNTIL_DATE,
|
100 + | &PATCHRULE_MEMBER_ENABLE_NON_SECURITY,
|
101 + | ],
|
102 + | );
|
103 + | impl PatchRule {
|
104 + | /// The schema for this shape.
|
105 + | pub const SCHEMA: &'static ::aws_smithy_schema::Schema<'static> = &PATCHRULE_SCHEMA;
|
106 + | }
|
107 + | impl ::aws_smithy_schema::serde::SerializableStruct for PatchRule {
|
108 + | #[allow(unused_variables, clippy::diverging_sub_expression)]
|
109 + | fn serialize_members(
|
110 + | &self,
|
111 + | ser: &mut dyn ::aws_smithy_schema::serde::ShapeSerializer,
|
112 + | ) -> ::std::result::Result<(), ::aws_smithy_schema::serde::SerdeError> {
|
113 + | if let Some(ref val) = self.patch_filter_group {
|
114 + | ser.write_struct(&PATCHRULE_MEMBER_PATCH_FILTER_GROUP, val)?;
|
115 + | }
|
116 + | if let Some(ref val) = self.compliance_level {
|
117 + | ser.write_string(&PATCHRULE_MEMBER_COMPLIANCE_LEVEL, val.as_str())?;
|
118 + | }
|
119 + | if let Some(ref val) = self.approve_after_days {
|
120 + | ser.write_integer(&PATCHRULE_MEMBER_APPROVE_AFTER_DAYS, *val)?;
|
121 + | }
|
122 + | if let Some(ref val) = self.approve_until_date {
|
123 + | ser.write_string(&PATCHRULE_MEMBER_APPROVE_UNTIL_DATE, val)?;
|
124 + | }
|
125 + | if let Some(ref val) = self.enable_non_security {
|
126 + | ser.write_boolean(&PATCHRULE_MEMBER_ENABLE_NON_SECURITY, *val)?;
|
127 + | }
|
128 + | Ok(())
|
129 + | }
|
130 + | }
|
131 + | impl PatchRule {
|
132 + | /// Deserializes this structure from a [`ShapeDeserializer`].
|
133 + | pub fn deserialize(
|
134 + | deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
|
135 + | ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
|
136 + | #[allow(unused_variables, unused_mut)]
|
137 + | let mut builder = Self::builder();
|
138 + | #[allow(
|
139 + | unused_variables,
|
140 + | unreachable_code,
|
141 + | clippy::single_match,
|
142 + | clippy::match_single_binding,
|
143 + | clippy::diverging_sub_expression
|
144 + | )]
|
145 + | deserializer.read_struct(&PATCHRULE_SCHEMA, &mut |member, deser| {
|
146 + | match member.member_index() {
|
147 + | Some(0) => {
|
148 + | if deser.is_null() {
|
149 + | deser.read_null()?;
|
150 + | } else {
|
151 + | builder.patch_filter_group = Some(crate::types::PatchFilterGroup::deserialize(deser)?);
|
152 + | }
|
153 + | }
|
154 + | Some(1) => {
|
155 + | if deser.is_null() {
|
156 + | deser.read_null()?;
|
157 + | } else {
|
158 + | builder.compliance_level = Some(crate::types::PatchComplianceLevel::from(deser.read_string(member)?.as_str()));
|
159 + | }
|
160 + | }
|
161 + | Some(2) => {
|
162 + | if deser.is_null() {
|
163 + | deser.read_null()?;
|
164 + | } else {
|
165 + | builder.approve_after_days = Some(deser.read_integer(member)?);
|
166 + | }
|
167 + | }
|
168 + | Some(3) => {
|
169 + | if deser.is_null() {
|
170 + | deser.read_null()?;
|
171 + | } else {
|
172 + | builder.approve_until_date = Some(deser.read_string(member)?);
|
173 + | }
|
174 + | }
|
175 + | Some(4) => {
|
176 + | if deser.is_null() {
|
177 + | deser.read_null()?;
|
178 + | } else {
|
179 + | builder.enable_non_security = Some(deser.read_boolean(member)?);
|
180 + | }
|
181 + | }
|
182 + | _ => {}
|
183 + | }
|
184 + | Ok(())
|
185 + | })?;
|
186 + | Ok(builder.build())
|
187 + | }
|
188 + | }
|
189 + | impl PatchRule {
|
190 + | /// Deserializes this structure from a body deserializer and HTTP response.
|
191 + | pub fn deserialize_with_response(
|
192 + | deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
|
193 + | _headers: &::aws_smithy_runtime_api::http::Headers,
|
194 + | _status: u16,
|
195 + | _body: &[u8],
|
196 + | ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
|
197 + | Self::deserialize(deserializer)
|
198 + | }
|
199 + | }
|
200 + | impl PatchRule {
|
201 + | /// Creates a new builder-style object to manufacture [`PatchRule`](crate::types::PatchRule).
|
202 + | pub fn builder() -> crate::types::builders::PatchRuleBuilder {
|
203 + | crate::types::builders::PatchRuleBuilder::default()
|
204 + | }
|
205 + | }
|
206 + |
|
207 + | /// A builder for [`PatchRule`](crate::types::PatchRule).
|
208 + | #[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
|
209 + | #[non_exhaustive]
|
210 + | pub struct PatchRuleBuilder {
|
211 + | pub(crate) patch_filter_group: ::std::option::Option<crate::types::PatchFilterGroup>,
|
212 + | pub(crate) compliance_level: ::std::option::Option<crate::types::PatchComplianceLevel>,
|
213 + | pub(crate) approve_after_days: ::std::option::Option<i32>,
|
214 + | pub(crate) approve_until_date: ::std::option::Option<::std::string::String>,
|
215 + | pub(crate) enable_non_security: ::std::option::Option<bool>,
|
216 + | }
|
217 + | impl PatchRuleBuilder {
|
218 + | /// <p>The patch filter group that defines the criteria for the rule.</p>
|
219 + | /// This field is required.
|
220 + | pub fn patch_filter_group(mut self, input: crate::types::PatchFilterGroup) -> Self {
|
221 + | self.patch_filter_group = ::std::option::Option::Some(input);
|
222 + | self
|
223 + | }
|
224 + | /// <p>The patch filter group that defines the criteria for the rule.</p>
|
225 + | pub fn set_patch_filter_group(mut self, input: ::std::option::Option<crate::types::PatchFilterGroup>) -> Self {
|
226 + | self.patch_filter_group = input;
|
227 + | self
|
228 + | }
|
229 + | /// <p>The patch filter group that defines the criteria for the rule.</p>
|
230 + | pub fn get_patch_filter_group(&self) -> &::std::option::Option<crate::types::PatchFilterGroup> {
|
231 + | &self.patch_filter_group
|
232 + | }
|
233 + | /// <p>A compliance severity level for all approved patches in a patch baseline.</p>
|
234 + | pub fn compliance_level(mut self, input: crate::types::PatchComplianceLevel) -> Self {
|
235 + | self.compliance_level = ::std::option::Option::Some(input);
|
236 + | self
|
237 + | }
|
238 + | /// <p>A compliance severity level for all approved patches in a patch baseline.</p>
|
239 + | pub fn set_compliance_level(mut self, input: ::std::option::Option<crate::types::PatchComplianceLevel>) -> Self {
|
240 + | self.compliance_level = input;
|
241 + | self
|
242 + | }
|
243 + | /// <p>A compliance severity level for all approved patches in a patch baseline.</p>
|
244 + | pub fn get_compliance_level(&self) -> &::std::option::Option<crate::types::PatchComplianceLevel> {
|
245 + | &self.compliance_level
|
246 + | }
|
247 + | /// <p>The number of days after the release date of each patch matched by the rule that the patch is marked as approved in the patch baseline. For example, a value of <code>7</code> means that patches are approved seven days after they are released.</p>
|
248 + | /// <p>Patch Manager evaluates patch release dates using Coordinated Universal Time (UTC). If a patch is released at <code>2025-11-09T18:00:00Z</code> and <code>ApproveAfterDays</code> is set to <code>7</code>, the patch will be approved after <code>2025-11-16T18:00:00Z</code>.</p>
|
249 + | /// <p>This parameter is marked as <code>Required: No</code>, but your request must include a value for either <code>ApproveAfterDays</code> or <code>ApproveUntilDate</code>.</p>
|
250 + | /// <p>Not supported for Debian Server or Ubuntu Server.</p><important>
|
251 + | /// <p>Use caution when setting this value for Windows Server patch baselines. Because patch updates that are replaced by later updates are removed, setting too broad a value for this parameter can result in crucial patches not being installed. For more information, see the <b>Windows Server</b> tab in the topic <a href="https://docs.aws.amazon.com/systems-manager/latest/userguide/patch-manager-selecting-patches.html">How security patches are selected</a> in the <i>Amazon Web Services Systems Manager User Guide</i>.</p>
|
252 + | /// </important>
|
253 + | pub fn approve_after_days(mut self, input: i32) -> Self {
|
254 + | self.approve_after_days = ::std::option::Option::Some(input);
|
255 + | self
|
256 + | }
|
257 + | /// <p>The number of days after the release date of each patch matched by the rule that the patch is marked as approved in the patch baseline. For example, a value of <code>7</code> means that patches are approved seven days after they are released.</p>
|
258 + | /// <p>Patch Manager evaluates patch release dates using Coordinated Universal Time (UTC). If a patch is released at <code>2025-11-09T18:00:00Z</code> and <code>ApproveAfterDays</code> is set to <code>7</code>, the patch will be approved after <code>2025-11-16T18:00:00Z</code>.</p>
|
259 + | /// <p>This parameter is marked as <code>Required: No</code>, but your request must include a value for either <code>ApproveAfterDays</code> or <code>ApproveUntilDate</code>.</p>
|
260 + | /// <p>Not supported for Debian Server or Ubuntu Server.</p><important>
|
261 + | /// <p>Use caution when setting this value for Windows Server patch baselines. Because patch updates that are replaced by later updates are removed, setting too broad a value for this parameter can result in crucial patches not being installed. For more information, see the <b>Windows Server</b> tab in the topic <a href="https://docs.aws.amazon.com/systems-manager/latest/userguide/patch-manager-selecting-patches.html">How security patches are selected</a> in the <i>Amazon Web Services Systems Manager User Guide</i>.</p>
|
262 + | /// </important>
|
263 + | pub fn set_approve_after_days(mut self, input: ::std::option::Option<i32>) -> Self {
|
264 + | self.approve_after_days = input;
|
265 + | self
|
266 + | }
|
267 + | /// <p>The number of days after the release date of each patch matched by the rule that the patch is marked as approved in the patch baseline. For example, a value of <code>7</code> means that patches are approved seven days after they are released.</p>
|
268 + | /// <p>Patch Manager evaluates patch release dates using Coordinated Universal Time (UTC). If a patch is released at <code>2025-11-09T18:00:00Z</code> and <code>ApproveAfterDays</code> is set to <code>7</code>, the patch will be approved after <code>2025-11-16T18:00:00Z</code>.</p>
|
269 + | /// <p>This parameter is marked as <code>Required: No</code>, but your request must include a value for either <code>ApproveAfterDays</code> or <code>ApproveUntilDate</code>.</p>
|
270 + | /// <p>Not supported for Debian Server or Ubuntu Server.</p><important>
|
271 + | /// <p>Use caution when setting this value for Windows Server patch baselines. Because patch updates that are replaced by later updates are removed, setting too broad a value for this parameter can result in crucial patches not being installed. For more information, see the <b>Windows Server</b> tab in the topic <a href="https://docs.aws.amazon.com/systems-manager/latest/userguide/patch-manager-selecting-patches.html">How security patches are selected</a> in the <i>Amazon Web Services Systems Manager User Guide</i>.</p>
|
272 + | /// </important>
|
273 + | pub fn get_approve_after_days(&self) -> &::std::option::Option<i32> {
|
274 + | &self.approve_after_days
|
275 + | }
|
276 + | /// <p>The cutoff date for auto approval of released patches. Any patches released on or before this date are installed automatically.</p>
|
277 + | /// <p>Enter dates in the format <code>YYYY-MM-DD</code>. For example, <code>2025-11-16</code>.</p>
|
278 + | /// <p>Patch Manager evaluates patch release dates using Coordinated Universal Time (UTC). If you enter the date <code>2025-11-16</code>, patches released between <code>2025-11-16T00:00:00Z</code> and <code>2025-11-16T23:59:59Z</code> will be included in the approval.</p>
|
279 + | /// <p>This parameter is marked as <code>Required: No</code>, but your request must include a value for either <code>ApproveUntilDate</code> or <code>ApproveAfterDays</code>.</p>
|
280 + | /// <p>Not supported for Debian Server or Ubuntu Server.</p><important>
|
281 + | /// <p>Use caution when setting this value for Windows Server patch baselines. Because patch updates that are replaced by later updates are removed, setting too broad a value for this parameter can result in crucial patches not being installed. For more information, see the <b>Windows Server</b> tab in the topic <a href="https://docs.aws.amazon.com/systems-manager/latest/userguide/patch-manager-selecting-patches.html">How security patches are selected</a> in the <i>Amazon Web Services Systems Manager User Guide</i>.</p>
|
282 + | /// </important>
|
283 + | pub fn approve_until_date(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
|
284 + | self.approve_until_date = ::std::option::Option::Some(input.into());
|
285 + | self
|
286 + | }
|
287 + | /// <p>The cutoff date for auto approval of released patches. Any patches released on or before this date are installed automatically.</p>
|
288 + | /// <p>Enter dates in the format <code>YYYY-MM-DD</code>. For example, <code>2025-11-16</code>.</p>
|
289 + | /// <p>Patch Manager evaluates patch release dates using Coordinated Universal Time (UTC). If you enter the date <code>2025-11-16</code>, patches released between <code>2025-11-16T00:00:00Z</code> and <code>2025-11-16T23:59:59Z</code> will be included in the approval.</p>
|
290 + | /// <p>This parameter is marked as <code>Required: No</code>, but your request must include a value for either <code>ApproveUntilDate</code> or <code>ApproveAfterDays</code>.</p>
|
291 + | /// <p>Not supported for Debian Server or Ubuntu Server.</p><important>
|
292 + | /// <p>Use caution when setting this value for Windows Server patch baselines. Because patch updates that are replaced by later updates are removed, setting too broad a value for this parameter can result in crucial patches not being installed. For more information, see the <b>Windows Server</b> tab in the topic <a href="https://docs.aws.amazon.com/systems-manager/latest/userguide/patch-manager-selecting-patches.html">How security patches are selected</a> in the <i>Amazon Web Services Systems Manager User Guide</i>.</p>
|
293 + | /// </important>
|
294 + | pub fn set_approve_until_date(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
|
295 + | self.approve_until_date = input;
|
296 + | self
|
297 + | }
|
298 + | /// <p>The cutoff date for auto approval of released patches. Any patches released on or before this date are installed automatically.</p>
|
299 + | /// <p>Enter dates in the format <code>YYYY-MM-DD</code>. For example, <code>2025-11-16</code>.</p>
|
300 + | /// <p>Patch Manager evaluates patch release dates using Coordinated Universal Time (UTC). If you enter the date <code>2025-11-16</code>, patches released between <code>2025-11-16T00:00:00Z</code> and <code>2025-11-16T23:59:59Z</code> will be included in the approval.</p>
|
301 + | /// <p>This parameter is marked as <code>Required: No</code>, but your request must include a value for either <code>ApproveUntilDate</code> or <code>ApproveAfterDays</code>.</p>
|
302 + | /// <p>Not supported for Debian Server or Ubuntu Server.</p><important>
|
303 + | /// <p>Use caution when setting this value for Windows Server patch baselines. Because patch updates that are replaced by later updates are removed, setting too broad a value for this parameter can result in crucial patches not being installed. For more information, see the <b>Windows Server</b> tab in the topic <a href="https://docs.aws.amazon.com/systems-manager/latest/userguide/patch-manager-selecting-patches.html">How security patches are selected</a> in the <i>Amazon Web Services Systems Manager User Guide</i>.</p>
|
304 + | /// </important>
|
305 + | pub fn get_approve_until_date(&self) -> &::std::option::Option<::std::string::String> {
|
306 + | &self.approve_until_date
|
307 + | }
|
308 + | /// <p>For managed nodes identified by the approval rule filters, enables a patch baseline to apply non-security updates available in the specified repository. The default value is <code>false</code>. Applies to Linux managed nodes only.</p>
|
309 + | pub fn enable_non_security(mut self, input: bool) -> Self {
|
310 + | self.enable_non_security = ::std::option::Option::Some(input);
|
311 + | self
|
312 + | }
|
313 + | /// <p>For managed nodes identified by the approval rule filters, enables a patch baseline to apply non-security updates available in the specified repository. The default value is <code>false</code>. Applies to Linux managed nodes only.</p>
|
314 + | pub fn set_enable_non_security(mut self, input: ::std::option::Option<bool>) -> Self {
|
315 + | self.enable_non_security = input;
|
316 + | self
|
317 + | }
|
318 + | /// <p>For managed nodes identified by the approval rule filters, enables a patch baseline to apply non-security updates available in the specified repository. The default value is <code>false</code>. Applies to Linux managed nodes only.</p>
|
319 + | pub fn get_enable_non_security(&self) -> &::std::option::Option<bool> {
|
320 + | &self.enable_non_security
|
321 + | }
|
322 + | /// Consumes the builder and constructs a [`PatchRule`](crate::types::PatchRule).
|
323 + | pub fn build(self) -> crate::types::PatchRule {
|
324 + | crate::types::PatchRule {
|
325 + | patch_filter_group: self.patch_filter_group,
|
326 + | compliance_level: self.compliance_level,
|
327 + | approve_after_days: self.approve_after_days,
|
328 + | approve_until_date: self.approve_until_date,
|
329 + | enable_non_security: self.enable_non_security,
|
330 + | }
|
331 + | }
|
332 + | }
|