aws_sdk_appstream/operation/update_fleet/_update_fleet_input.rs
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)]
5pub struct UpdateFleetInput {
6 /// <p>The name of the image used to create the fleet.</p>
7 pub image_name: ::std::option::Option<::std::string::String>,
8 /// <p>The ARN of the public, private, or shared image to use.</p>
9 pub image_arn: ::std::option::Option<::std::string::String>,
10 /// <p>A unique name for the fleet.</p>
11 pub name: ::std::option::Option<::std::string::String>,
12 /// <p>The instance type to use when launching fleet instances. The following instance types are available:</p>
13 /// <ul>
14 /// <li>
15 /// <p>stream.standard.small</p></li>
16 /// <li>
17 /// <p>stream.standard.medium</p></li>
18 /// <li>
19 /// <p>stream.standard.large</p></li>
20 /// <li>
21 /// <p>stream.standard.xlarge</p></li>
22 /// <li>
23 /// <p>stream.standard.2xlarge</p></li>
24 /// <li>
25 /// <p>stream.compute.large</p></li>
26 /// <li>
27 /// <p>stream.compute.xlarge</p></li>
28 /// <li>
29 /// <p>stream.compute.2xlarge</p></li>
30 /// <li>
31 /// <p>stream.compute.4xlarge</p></li>
32 /// <li>
33 /// <p>stream.compute.8xlarge</p></li>
34 /// <li>
35 /// <p>stream.memory.large</p></li>
36 /// <li>
37 /// <p>stream.memory.xlarge</p></li>
38 /// <li>
39 /// <p>stream.memory.2xlarge</p></li>
40 /// <li>
41 /// <p>stream.memory.4xlarge</p></li>
42 /// <li>
43 /// <p>stream.memory.8xlarge</p></li>
44 /// <li>
45 /// <p>stream.memory.z1d.large</p></li>
46 /// <li>
47 /// <p>stream.memory.z1d.xlarge</p></li>
48 /// <li>
49 /// <p>stream.memory.z1d.2xlarge</p></li>
50 /// <li>
51 /// <p>stream.memory.z1d.3xlarge</p></li>
52 /// <li>
53 /// <p>stream.memory.z1d.6xlarge</p></li>
54 /// <li>
55 /// <p>stream.memory.z1d.12xlarge</p></li>
56 /// <li>
57 /// <p>stream.graphics.g4dn.xlarge</p></li>
58 /// <li>
59 /// <p>stream.graphics.g4dn.2xlarge</p></li>
60 /// <li>
61 /// <p>stream.graphics.g4dn.4xlarge</p></li>
62 /// <li>
63 /// <p>stream.graphics.g4dn.8xlarge</p></li>
64 /// <li>
65 /// <p>stream.graphics.g4dn.12xlarge</p></li>
66 /// <li>
67 /// <p>stream.graphics.g4dn.16xlarge</p></li>
68 /// <li>
69 /// <p>stream.graphics.g5.xlarge</p></li>
70 /// <li>
71 /// <p>stream.graphics.g5.2xlarge</p></li>
72 /// <li>
73 /// <p>stream.graphics.g5.4xlarge</p></li>
74 /// <li>
75 /// <p>stream.graphics.g5.8xlarge</p></li>
76 /// <li>
77 /// <p>stream.graphics.g5.16xlarge</p></li>
78 /// <li>
79 /// <p>stream.graphics.g5.12xlarge</p></li>
80 /// <li>
81 /// <p>stream.graphics.g5.24xlarge</p></li>
82 /// <li>
83 /// <p>stream.graphics.g6.xlarge</p></li>
84 /// <li>
85 /// <p>stream.graphics.g6.2xlarge</p></li>
86 /// <li>
87 /// <p>stream.graphics.g6.4xlarge</p></li>
88 /// <li>
89 /// <p>stream.graphics.g6.8xlarge</p></li>
90 /// <li>
91 /// <p>stream.graphics.g6.16xlarge</p></li>
92 /// <li>
93 /// <p>stream.graphics.g6.12xlarge</p></li>
94 /// <li>
95 /// <p>stream.graphics.g6.24xlarge</p></li>
96 /// <li>
97 /// <p>stream.graphics.gr6.4xlarge</p></li>
98 /// <li>
99 /// <p>stream.graphics.gr6.8xlarge</p></li>
100 /// <li>
101 /// <p>stream.graphics.g6f.large</p></li>
102 /// <li>
103 /// <p>stream.graphics.g6f.xlarge</p></li>
104 /// <li>
105 /// <p>stream.graphics.g6f.2xlarge</p></li>
106 /// <li>
107 /// <p>stream.graphics.g6f.4xlarge</p></li>
108 /// <li>
109 /// <p>stream.graphics.gr6f.4xlarge</p></li>
110 /// </ul>
111 /// <p>The following instance types are available for Elastic fleets:</p>
112 /// <ul>
113 /// <li>
114 /// <p>stream.standard.small</p></li>
115 /// <li>
116 /// <p>stream.standard.medium</p></li>
117 /// <li>
118 /// <p>stream.standard.large</p></li>
119 /// <li>
120 /// <p>stream.standard.xlarge</p></li>
121 /// <li>
122 /// <p>stream.standard.2xlarge</p></li>
123 /// </ul>
124 pub instance_type: ::std::option::Option<::std::string::String>,
125 /// <p>The desired capacity for the fleet. This is not allowed for Elastic fleets.</p>
126 pub compute_capacity: ::std::option::Option<crate::types::ComputeCapacity>,
127 /// <p>The VPC configuration for the fleet. This is required for Elastic fleets, but not required for other fleet types. Elastic fleets require that you specify at least two subnets in different availability zones.</p>
128 pub vpc_config: ::std::option::Option<crate::types::VpcConfig>,
129 /// <p>The maximum amount of time that a streaming session can remain active, in seconds. If users are still connected to a streaming instance five minutes before this limit is reached, they are prompted to save any open documents before being disconnected. After this time elapses, the instance is terminated and replaced by a new instance.</p>
130 /// <p>Specify a value between 600 and 432000.</p>
131 pub max_user_duration_in_seconds: ::std::option::Option<i32>,
132 /// <p>The amount of time that a streaming session remains active after users disconnect. If users try to reconnect to the streaming session after a disconnection or network interruption within this time interval, they are connected to their previous session. Otherwise, they are connected to a new session with a new streaming instance.</p>
133 /// <p>Specify a value between 60 and 36000.</p>
134 pub disconnect_timeout_in_seconds: ::std::option::Option<i32>,
135 /// <p>Deletes the VPC association for the specified fleet.</p>
136 #[deprecated]
137 pub delete_vpc_config: ::std::option::Option<bool>,
138 /// <p>The description to display.</p>
139 pub description: ::std::option::Option<::std::string::String>,
140 /// <p>The fleet name to display.</p>
141 pub display_name: ::std::option::Option<::std::string::String>,
142 /// <p>Enables or disables default internet access for the fleet.</p>
143 pub enable_default_internet_access: ::std::option::Option<bool>,
144 /// <p>The name of the directory and organizational unit (OU) to use to join the fleet to a Microsoft Active Directory domain.</p>
145 pub domain_join_info: ::std::option::Option<crate::types::DomainJoinInfo>,
146 /// <p>The amount of time that users can be idle (inactive) before they are disconnected from their streaming session and the <code>DisconnectTimeoutInSeconds</code> time interval begins. Users are notified before they are disconnected due to inactivity. If users try to reconnect to the streaming session before the time interval specified in <code>DisconnectTimeoutInSeconds</code> elapses, they are connected to their previous session. Users are considered idle when they stop providing keyboard or mouse input during their streaming session. File uploads and downloads, audio in, audio out, and pixels changing do not qualify as user activity. If users continue to be idle after the time interval in <code>IdleDisconnectTimeoutInSeconds</code> elapses, they are disconnected.</p>
147 /// <p>To prevent users from being disconnected due to inactivity, specify a value of 0. Otherwise, specify a value between 60 and 36000. The default value is 0.</p><note>
148 /// <p>If you enable this feature, we recommend that you specify a value that corresponds exactly to a whole number of minutes (for example, 60, 120, and 180). If you don't do this, the value is rounded to the nearest minute. For example, if you specify a value of 70, users are disconnected after 1 minute of inactivity. If you specify a value that is at the midpoint between two different minutes, the value is rounded up. For example, if you specify a value of 90, users are disconnected after 2 minutes of inactivity.</p>
149 /// </note>
150 pub idle_disconnect_timeout_in_seconds: ::std::option::Option<i32>,
151 /// <p>The fleet attributes to delete.</p>
152 pub attributes_to_delete: ::std::option::Option<::std::vec::Vec<crate::types::FleetAttribute>>,
153 /// <p>The Amazon Resource Name (ARN) of the IAM role to apply to the fleet. To assume a role, a fleet instance calls the AWS Security Token Service (STS) <code>AssumeRole</code> API operation and passes the ARN of the role to use. The operation creates a new session with temporary credentials. WorkSpaces Applications retrieves the temporary credentials and creates the <b>appstream_machine_role</b> credential profile on the instance.</p>
154 /// <p>For more information, see <a href="https://docs.aws.amazon.com/appstream2/latest/developerguide/using-iam-roles-to-grant-permissions-to-applications-scripts-streaming-instances.html">Using an IAM Role to Grant Permissions to Applications and Scripts Running on WorkSpaces Applications Streaming Instances</a> in the <i>Amazon WorkSpaces Applications Administration Guide</i>.</p>
155 pub iam_role_arn: ::std::option::Option<::std::string::String>,
156 /// <p>The WorkSpaces Applications view that is displayed to your users when they stream from the fleet. When <code>APP</code> is specified, only the windows of applications opened by users display. When <code>DESKTOP</code> is specified, the standard desktop that is provided by the operating system displays.</p>
157 /// <p>The default value is <code>APP</code>.</p>
158 pub stream_view: ::std::option::Option<crate::types::StreamView>,
159 /// <p>The platform of the fleet. WINDOWS_SERVER_2019, AMAZON_LINUX2 and UBUNTU_PRO_2404 are supported for Elastic fleets.</p>
160 pub platform: ::std::option::Option<crate::types::PlatformType>,
161 /// <p>The maximum number of concurrent sessions for a fleet.</p>
162 pub max_concurrent_sessions: ::std::option::Option<i32>,
163 /// <p>The USB device filter strings that specify which USB devices a user can redirect to the fleet streaming session, when using the Windows native client. This is allowed but not required for Elastic fleets.</p>
164 pub usb_device_filter_strings: ::std::option::Option<::std::vec::Vec<::std::string::String>>,
165 /// <p>The S3 location of the session scripts configuration zip file. This only applies to Elastic fleets.</p>
166 pub session_script_s3_location: ::std::option::Option<crate::types::S3Location>,
167 /// <p>The maximum number of user sessions on an instance. This only applies to multi-session fleets.</p>
168 pub max_sessions_per_instance: ::std::option::Option<i32>,
169 /// <p>The updated configuration for the root volume of fleet instances. Note that volume size cannot be decreased below the image volume size.</p>
170 pub root_volume_config: ::std::option::Option<crate::types::VolumeConfig>,
171}
172impl UpdateFleetInput {
173 /// <p>The name of the image used to create the fleet.</p>
174 pub fn image_name(&self) -> ::std::option::Option<&str> {
175 self.image_name.as_deref()
176 }
177 /// <p>The ARN of the public, private, or shared image to use.</p>
178 pub fn image_arn(&self) -> ::std::option::Option<&str> {
179 self.image_arn.as_deref()
180 }
181 /// <p>A unique name for the fleet.</p>
182 pub fn name(&self) -> ::std::option::Option<&str> {
183 self.name.as_deref()
184 }
185 /// <p>The instance type to use when launching fleet instances. The following instance types are available:</p>
186 /// <ul>
187 /// <li>
188 /// <p>stream.standard.small</p></li>
189 /// <li>
190 /// <p>stream.standard.medium</p></li>
191 /// <li>
192 /// <p>stream.standard.large</p></li>
193 /// <li>
194 /// <p>stream.standard.xlarge</p></li>
195 /// <li>
196 /// <p>stream.standard.2xlarge</p></li>
197 /// <li>
198 /// <p>stream.compute.large</p></li>
199 /// <li>
200 /// <p>stream.compute.xlarge</p></li>
201 /// <li>
202 /// <p>stream.compute.2xlarge</p></li>
203 /// <li>
204 /// <p>stream.compute.4xlarge</p></li>
205 /// <li>
206 /// <p>stream.compute.8xlarge</p></li>
207 /// <li>
208 /// <p>stream.memory.large</p></li>
209 /// <li>
210 /// <p>stream.memory.xlarge</p></li>
211 /// <li>
212 /// <p>stream.memory.2xlarge</p></li>
213 /// <li>
214 /// <p>stream.memory.4xlarge</p></li>
215 /// <li>
216 /// <p>stream.memory.8xlarge</p></li>
217 /// <li>
218 /// <p>stream.memory.z1d.large</p></li>
219 /// <li>
220 /// <p>stream.memory.z1d.xlarge</p></li>
221 /// <li>
222 /// <p>stream.memory.z1d.2xlarge</p></li>
223 /// <li>
224 /// <p>stream.memory.z1d.3xlarge</p></li>
225 /// <li>
226 /// <p>stream.memory.z1d.6xlarge</p></li>
227 /// <li>
228 /// <p>stream.memory.z1d.12xlarge</p></li>
229 /// <li>
230 /// <p>stream.graphics.g4dn.xlarge</p></li>
231 /// <li>
232 /// <p>stream.graphics.g4dn.2xlarge</p></li>
233 /// <li>
234 /// <p>stream.graphics.g4dn.4xlarge</p></li>
235 /// <li>
236 /// <p>stream.graphics.g4dn.8xlarge</p></li>
237 /// <li>
238 /// <p>stream.graphics.g4dn.12xlarge</p></li>
239 /// <li>
240 /// <p>stream.graphics.g4dn.16xlarge</p></li>
241 /// <li>
242 /// <p>stream.graphics.g5.xlarge</p></li>
243 /// <li>
244 /// <p>stream.graphics.g5.2xlarge</p></li>
245 /// <li>
246 /// <p>stream.graphics.g5.4xlarge</p></li>
247 /// <li>
248 /// <p>stream.graphics.g5.8xlarge</p></li>
249 /// <li>
250 /// <p>stream.graphics.g5.16xlarge</p></li>
251 /// <li>
252 /// <p>stream.graphics.g5.12xlarge</p></li>
253 /// <li>
254 /// <p>stream.graphics.g5.24xlarge</p></li>
255 /// <li>
256 /// <p>stream.graphics.g6.xlarge</p></li>
257 /// <li>
258 /// <p>stream.graphics.g6.2xlarge</p></li>
259 /// <li>
260 /// <p>stream.graphics.g6.4xlarge</p></li>
261 /// <li>
262 /// <p>stream.graphics.g6.8xlarge</p></li>
263 /// <li>
264 /// <p>stream.graphics.g6.16xlarge</p></li>
265 /// <li>
266 /// <p>stream.graphics.g6.12xlarge</p></li>
267 /// <li>
268 /// <p>stream.graphics.g6.24xlarge</p></li>
269 /// <li>
270 /// <p>stream.graphics.gr6.4xlarge</p></li>
271 /// <li>
272 /// <p>stream.graphics.gr6.8xlarge</p></li>
273 /// <li>
274 /// <p>stream.graphics.g6f.large</p></li>
275 /// <li>
276 /// <p>stream.graphics.g6f.xlarge</p></li>
277 /// <li>
278 /// <p>stream.graphics.g6f.2xlarge</p></li>
279 /// <li>
280 /// <p>stream.graphics.g6f.4xlarge</p></li>
281 /// <li>
282 /// <p>stream.graphics.gr6f.4xlarge</p></li>
283 /// </ul>
284 /// <p>The following instance types are available for Elastic fleets:</p>
285 /// <ul>
286 /// <li>
287 /// <p>stream.standard.small</p></li>
288 /// <li>
289 /// <p>stream.standard.medium</p></li>
290 /// <li>
291 /// <p>stream.standard.large</p></li>
292 /// <li>
293 /// <p>stream.standard.xlarge</p></li>
294 /// <li>
295 /// <p>stream.standard.2xlarge</p></li>
296 /// </ul>
297 pub fn instance_type(&self) -> ::std::option::Option<&str> {
298 self.instance_type.as_deref()
299 }
300 /// <p>The desired capacity for the fleet. This is not allowed for Elastic fleets.</p>
301 pub fn compute_capacity(&self) -> ::std::option::Option<&crate::types::ComputeCapacity> {
302 self.compute_capacity.as_ref()
303 }
304 /// <p>The VPC configuration for the fleet. This is required for Elastic fleets, but not required for other fleet types. Elastic fleets require that you specify at least two subnets in different availability zones.</p>
305 pub fn vpc_config(&self) -> ::std::option::Option<&crate::types::VpcConfig> {
306 self.vpc_config.as_ref()
307 }
308 /// <p>The maximum amount of time that a streaming session can remain active, in seconds. If users are still connected to a streaming instance five minutes before this limit is reached, they are prompted to save any open documents before being disconnected. After this time elapses, the instance is terminated and replaced by a new instance.</p>
309 /// <p>Specify a value between 600 and 432000.</p>
310 pub fn max_user_duration_in_seconds(&self) -> ::std::option::Option<i32> {
311 self.max_user_duration_in_seconds
312 }
313 /// <p>The amount of time that a streaming session remains active after users disconnect. If users try to reconnect to the streaming session after a disconnection or network interruption within this time interval, they are connected to their previous session. Otherwise, they are connected to a new session with a new streaming instance.</p>
314 /// <p>Specify a value between 60 and 36000.</p>
315 pub fn disconnect_timeout_in_seconds(&self) -> ::std::option::Option<i32> {
316 self.disconnect_timeout_in_seconds
317 }
318 /// <p>Deletes the VPC association for the specified fleet.</p>
319 #[deprecated]
320 pub fn delete_vpc_config(&self) -> ::std::option::Option<bool> {
321 self.delete_vpc_config
322 }
323 /// <p>The description to display.</p>
324 pub fn description(&self) -> ::std::option::Option<&str> {
325 self.description.as_deref()
326 }
327 /// <p>The fleet name to display.</p>
328 pub fn display_name(&self) -> ::std::option::Option<&str> {
329 self.display_name.as_deref()
330 }
331 /// <p>Enables or disables default internet access for the fleet.</p>
332 pub fn enable_default_internet_access(&self) -> ::std::option::Option<bool> {
333 self.enable_default_internet_access
334 }
335 /// <p>The name of the directory and organizational unit (OU) to use to join the fleet to a Microsoft Active Directory domain.</p>
336 pub fn domain_join_info(&self) -> ::std::option::Option<&crate::types::DomainJoinInfo> {
337 self.domain_join_info.as_ref()
338 }
339 /// <p>The amount of time that users can be idle (inactive) before they are disconnected from their streaming session and the <code>DisconnectTimeoutInSeconds</code> time interval begins. Users are notified before they are disconnected due to inactivity. If users try to reconnect to the streaming session before the time interval specified in <code>DisconnectTimeoutInSeconds</code> elapses, they are connected to their previous session. Users are considered idle when they stop providing keyboard or mouse input during their streaming session. File uploads and downloads, audio in, audio out, and pixels changing do not qualify as user activity. If users continue to be idle after the time interval in <code>IdleDisconnectTimeoutInSeconds</code> elapses, they are disconnected.</p>
340 /// <p>To prevent users from being disconnected due to inactivity, specify a value of 0. Otherwise, specify a value between 60 and 36000. The default value is 0.</p><note>
341 /// <p>If you enable this feature, we recommend that you specify a value that corresponds exactly to a whole number of minutes (for example, 60, 120, and 180). If you don't do this, the value is rounded to the nearest minute. For example, if you specify a value of 70, users are disconnected after 1 minute of inactivity. If you specify a value that is at the midpoint between two different minutes, the value is rounded up. For example, if you specify a value of 90, users are disconnected after 2 minutes of inactivity.</p>
342 /// </note>
343 pub fn idle_disconnect_timeout_in_seconds(&self) -> ::std::option::Option<i32> {
344 self.idle_disconnect_timeout_in_seconds
345 }
346 /// <p>The fleet attributes to delete.</p>
347 ///
348 /// If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use `.attributes_to_delete.is_none()`.
349 pub fn attributes_to_delete(&self) -> &[crate::types::FleetAttribute] {
350 self.attributes_to_delete.as_deref().unwrap_or_default()
351 }
352 /// <p>The Amazon Resource Name (ARN) of the IAM role to apply to the fleet. To assume a role, a fleet instance calls the AWS Security Token Service (STS) <code>AssumeRole</code> API operation and passes the ARN of the role to use. The operation creates a new session with temporary credentials. WorkSpaces Applications retrieves the temporary credentials and creates the <b>appstream_machine_role</b> credential profile on the instance.</p>
353 /// <p>For more information, see <a href="https://docs.aws.amazon.com/appstream2/latest/developerguide/using-iam-roles-to-grant-permissions-to-applications-scripts-streaming-instances.html">Using an IAM Role to Grant Permissions to Applications and Scripts Running on WorkSpaces Applications Streaming Instances</a> in the <i>Amazon WorkSpaces Applications Administration Guide</i>.</p>
354 pub fn iam_role_arn(&self) -> ::std::option::Option<&str> {
355 self.iam_role_arn.as_deref()
356 }
357 /// <p>The WorkSpaces Applications view that is displayed to your users when they stream from the fleet. When <code>APP</code> is specified, only the windows of applications opened by users display. When <code>DESKTOP</code> is specified, the standard desktop that is provided by the operating system displays.</p>
358 /// <p>The default value is <code>APP</code>.</p>
359 pub fn stream_view(&self) -> ::std::option::Option<&crate::types::StreamView> {
360 self.stream_view.as_ref()
361 }
362 /// <p>The platform of the fleet. WINDOWS_SERVER_2019, AMAZON_LINUX2 and UBUNTU_PRO_2404 are supported for Elastic fleets.</p>
363 pub fn platform(&self) -> ::std::option::Option<&crate::types::PlatformType> {
364 self.platform.as_ref()
365 }
366 /// <p>The maximum number of concurrent sessions for a fleet.</p>
367 pub fn max_concurrent_sessions(&self) -> ::std::option::Option<i32> {
368 self.max_concurrent_sessions
369 }
370 /// <p>The USB device filter strings that specify which USB devices a user can redirect to the fleet streaming session, when using the Windows native client. This is allowed but not required for Elastic fleets.</p>
371 ///
372 /// If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use `.usb_device_filter_strings.is_none()`.
373 pub fn usb_device_filter_strings(&self) -> &[::std::string::String] {
374 self.usb_device_filter_strings.as_deref().unwrap_or_default()
375 }
376 /// <p>The S3 location of the session scripts configuration zip file. This only applies to Elastic fleets.</p>
377 pub fn session_script_s3_location(&self) -> ::std::option::Option<&crate::types::S3Location> {
378 self.session_script_s3_location.as_ref()
379 }
380 /// <p>The maximum number of user sessions on an instance. This only applies to multi-session fleets.</p>
381 pub fn max_sessions_per_instance(&self) -> ::std::option::Option<i32> {
382 self.max_sessions_per_instance
383 }
384 /// <p>The updated configuration for the root volume of fleet instances. Note that volume size cannot be decreased below the image volume size.</p>
385 pub fn root_volume_config(&self) -> ::std::option::Option<&crate::types::VolumeConfig> {
386 self.root_volume_config.as_ref()
387 }
388}
389impl UpdateFleetInput {
390 /// Creates a new builder-style object to manufacture [`UpdateFleetInput`](crate::operation::update_fleet::UpdateFleetInput).
391 pub fn builder() -> crate::operation::update_fleet::builders::UpdateFleetInputBuilder {
392 crate::operation::update_fleet::builders::UpdateFleetInputBuilder::default()
393 }
394}
395
396/// A builder for [`UpdateFleetInput`](crate::operation::update_fleet::UpdateFleetInput).
397#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
398#[non_exhaustive]
399pub struct UpdateFleetInputBuilder {
400 pub(crate) image_name: ::std::option::Option<::std::string::String>,
401 pub(crate) image_arn: ::std::option::Option<::std::string::String>,
402 pub(crate) name: ::std::option::Option<::std::string::String>,
403 pub(crate) instance_type: ::std::option::Option<::std::string::String>,
404 pub(crate) compute_capacity: ::std::option::Option<crate::types::ComputeCapacity>,
405 pub(crate) vpc_config: ::std::option::Option<crate::types::VpcConfig>,
406 pub(crate) max_user_duration_in_seconds: ::std::option::Option<i32>,
407 pub(crate) disconnect_timeout_in_seconds: ::std::option::Option<i32>,
408 pub(crate) delete_vpc_config: ::std::option::Option<bool>,
409 pub(crate) description: ::std::option::Option<::std::string::String>,
410 pub(crate) display_name: ::std::option::Option<::std::string::String>,
411 pub(crate) enable_default_internet_access: ::std::option::Option<bool>,
412 pub(crate) domain_join_info: ::std::option::Option<crate::types::DomainJoinInfo>,
413 pub(crate) idle_disconnect_timeout_in_seconds: ::std::option::Option<i32>,
414 pub(crate) attributes_to_delete: ::std::option::Option<::std::vec::Vec<crate::types::FleetAttribute>>,
415 pub(crate) iam_role_arn: ::std::option::Option<::std::string::String>,
416 pub(crate) stream_view: ::std::option::Option<crate::types::StreamView>,
417 pub(crate) platform: ::std::option::Option<crate::types::PlatformType>,
418 pub(crate) max_concurrent_sessions: ::std::option::Option<i32>,
419 pub(crate) usb_device_filter_strings: ::std::option::Option<::std::vec::Vec<::std::string::String>>,
420 pub(crate) session_script_s3_location: ::std::option::Option<crate::types::S3Location>,
421 pub(crate) max_sessions_per_instance: ::std::option::Option<i32>,
422 pub(crate) root_volume_config: ::std::option::Option<crate::types::VolumeConfig>,
423}
424impl UpdateFleetInputBuilder {
425 /// <p>The name of the image used to create the fleet.</p>
426 pub fn image_name(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
427 self.image_name = ::std::option::Option::Some(input.into());
428 self
429 }
430 /// <p>The name of the image used to create the fleet.</p>
431 pub fn set_image_name(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
432 self.image_name = input;
433 self
434 }
435 /// <p>The name of the image used to create the fleet.</p>
436 pub fn get_image_name(&self) -> &::std::option::Option<::std::string::String> {
437 &self.image_name
438 }
439 /// <p>The ARN of the public, private, or shared image to use.</p>
440 pub fn image_arn(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
441 self.image_arn = ::std::option::Option::Some(input.into());
442 self
443 }
444 /// <p>The ARN of the public, private, or shared image to use.</p>
445 pub fn set_image_arn(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
446 self.image_arn = input;
447 self
448 }
449 /// <p>The ARN of the public, private, or shared image to use.</p>
450 pub fn get_image_arn(&self) -> &::std::option::Option<::std::string::String> {
451 &self.image_arn
452 }
453 /// <p>A unique name for the fleet.</p>
454 pub fn name(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
455 self.name = ::std::option::Option::Some(input.into());
456 self
457 }
458 /// <p>A unique name for the fleet.</p>
459 pub fn set_name(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
460 self.name = input;
461 self
462 }
463 /// <p>A unique name for the fleet.</p>
464 pub fn get_name(&self) -> &::std::option::Option<::std::string::String> {
465 &self.name
466 }
467 /// <p>The instance type to use when launching fleet instances. The following instance types are available:</p>
468 /// <ul>
469 /// <li>
470 /// <p>stream.standard.small</p></li>
471 /// <li>
472 /// <p>stream.standard.medium</p></li>
473 /// <li>
474 /// <p>stream.standard.large</p></li>
475 /// <li>
476 /// <p>stream.standard.xlarge</p></li>
477 /// <li>
478 /// <p>stream.standard.2xlarge</p></li>
479 /// <li>
480 /// <p>stream.compute.large</p></li>
481 /// <li>
482 /// <p>stream.compute.xlarge</p></li>
483 /// <li>
484 /// <p>stream.compute.2xlarge</p></li>
485 /// <li>
486 /// <p>stream.compute.4xlarge</p></li>
487 /// <li>
488 /// <p>stream.compute.8xlarge</p></li>
489 /// <li>
490 /// <p>stream.memory.large</p></li>
491 /// <li>
492 /// <p>stream.memory.xlarge</p></li>
493 /// <li>
494 /// <p>stream.memory.2xlarge</p></li>
495 /// <li>
496 /// <p>stream.memory.4xlarge</p></li>
497 /// <li>
498 /// <p>stream.memory.8xlarge</p></li>
499 /// <li>
500 /// <p>stream.memory.z1d.large</p></li>
501 /// <li>
502 /// <p>stream.memory.z1d.xlarge</p></li>
503 /// <li>
504 /// <p>stream.memory.z1d.2xlarge</p></li>
505 /// <li>
506 /// <p>stream.memory.z1d.3xlarge</p></li>
507 /// <li>
508 /// <p>stream.memory.z1d.6xlarge</p></li>
509 /// <li>
510 /// <p>stream.memory.z1d.12xlarge</p></li>
511 /// <li>
512 /// <p>stream.graphics.g4dn.xlarge</p></li>
513 /// <li>
514 /// <p>stream.graphics.g4dn.2xlarge</p></li>
515 /// <li>
516 /// <p>stream.graphics.g4dn.4xlarge</p></li>
517 /// <li>
518 /// <p>stream.graphics.g4dn.8xlarge</p></li>
519 /// <li>
520 /// <p>stream.graphics.g4dn.12xlarge</p></li>
521 /// <li>
522 /// <p>stream.graphics.g4dn.16xlarge</p></li>
523 /// <li>
524 /// <p>stream.graphics.g5.xlarge</p></li>
525 /// <li>
526 /// <p>stream.graphics.g5.2xlarge</p></li>
527 /// <li>
528 /// <p>stream.graphics.g5.4xlarge</p></li>
529 /// <li>
530 /// <p>stream.graphics.g5.8xlarge</p></li>
531 /// <li>
532 /// <p>stream.graphics.g5.16xlarge</p></li>
533 /// <li>
534 /// <p>stream.graphics.g5.12xlarge</p></li>
535 /// <li>
536 /// <p>stream.graphics.g5.24xlarge</p></li>
537 /// <li>
538 /// <p>stream.graphics.g6.xlarge</p></li>
539 /// <li>
540 /// <p>stream.graphics.g6.2xlarge</p></li>
541 /// <li>
542 /// <p>stream.graphics.g6.4xlarge</p></li>
543 /// <li>
544 /// <p>stream.graphics.g6.8xlarge</p></li>
545 /// <li>
546 /// <p>stream.graphics.g6.16xlarge</p></li>
547 /// <li>
548 /// <p>stream.graphics.g6.12xlarge</p></li>
549 /// <li>
550 /// <p>stream.graphics.g6.24xlarge</p></li>
551 /// <li>
552 /// <p>stream.graphics.gr6.4xlarge</p></li>
553 /// <li>
554 /// <p>stream.graphics.gr6.8xlarge</p></li>
555 /// <li>
556 /// <p>stream.graphics.g6f.large</p></li>
557 /// <li>
558 /// <p>stream.graphics.g6f.xlarge</p></li>
559 /// <li>
560 /// <p>stream.graphics.g6f.2xlarge</p></li>
561 /// <li>
562 /// <p>stream.graphics.g6f.4xlarge</p></li>
563 /// <li>
564 /// <p>stream.graphics.gr6f.4xlarge</p></li>
565 /// </ul>
566 /// <p>The following instance types are available for Elastic fleets:</p>
567 /// <ul>
568 /// <li>
569 /// <p>stream.standard.small</p></li>
570 /// <li>
571 /// <p>stream.standard.medium</p></li>
572 /// <li>
573 /// <p>stream.standard.large</p></li>
574 /// <li>
575 /// <p>stream.standard.xlarge</p></li>
576 /// <li>
577 /// <p>stream.standard.2xlarge</p></li>
578 /// </ul>
579 pub fn instance_type(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
580 self.instance_type = ::std::option::Option::Some(input.into());
581 self
582 }
583 /// <p>The instance type to use when launching fleet instances. The following instance types are available:</p>
584 /// <ul>
585 /// <li>
586 /// <p>stream.standard.small</p></li>
587 /// <li>
588 /// <p>stream.standard.medium</p></li>
589 /// <li>
590 /// <p>stream.standard.large</p></li>
591 /// <li>
592 /// <p>stream.standard.xlarge</p></li>
593 /// <li>
594 /// <p>stream.standard.2xlarge</p></li>
595 /// <li>
596 /// <p>stream.compute.large</p></li>
597 /// <li>
598 /// <p>stream.compute.xlarge</p></li>
599 /// <li>
600 /// <p>stream.compute.2xlarge</p></li>
601 /// <li>
602 /// <p>stream.compute.4xlarge</p></li>
603 /// <li>
604 /// <p>stream.compute.8xlarge</p></li>
605 /// <li>
606 /// <p>stream.memory.large</p></li>
607 /// <li>
608 /// <p>stream.memory.xlarge</p></li>
609 /// <li>
610 /// <p>stream.memory.2xlarge</p></li>
611 /// <li>
612 /// <p>stream.memory.4xlarge</p></li>
613 /// <li>
614 /// <p>stream.memory.8xlarge</p></li>
615 /// <li>
616 /// <p>stream.memory.z1d.large</p></li>
617 /// <li>
618 /// <p>stream.memory.z1d.xlarge</p></li>
619 /// <li>
620 /// <p>stream.memory.z1d.2xlarge</p></li>
621 /// <li>
622 /// <p>stream.memory.z1d.3xlarge</p></li>
623 /// <li>
624 /// <p>stream.memory.z1d.6xlarge</p></li>
625 /// <li>
626 /// <p>stream.memory.z1d.12xlarge</p></li>
627 /// <li>
628 /// <p>stream.graphics.g4dn.xlarge</p></li>
629 /// <li>
630 /// <p>stream.graphics.g4dn.2xlarge</p></li>
631 /// <li>
632 /// <p>stream.graphics.g4dn.4xlarge</p></li>
633 /// <li>
634 /// <p>stream.graphics.g4dn.8xlarge</p></li>
635 /// <li>
636 /// <p>stream.graphics.g4dn.12xlarge</p></li>
637 /// <li>
638 /// <p>stream.graphics.g4dn.16xlarge</p></li>
639 /// <li>
640 /// <p>stream.graphics.g5.xlarge</p></li>
641 /// <li>
642 /// <p>stream.graphics.g5.2xlarge</p></li>
643 /// <li>
644 /// <p>stream.graphics.g5.4xlarge</p></li>
645 /// <li>
646 /// <p>stream.graphics.g5.8xlarge</p></li>
647 /// <li>
648 /// <p>stream.graphics.g5.16xlarge</p></li>
649 /// <li>
650 /// <p>stream.graphics.g5.12xlarge</p></li>
651 /// <li>
652 /// <p>stream.graphics.g5.24xlarge</p></li>
653 /// <li>
654 /// <p>stream.graphics.g6.xlarge</p></li>
655 /// <li>
656 /// <p>stream.graphics.g6.2xlarge</p></li>
657 /// <li>
658 /// <p>stream.graphics.g6.4xlarge</p></li>
659 /// <li>
660 /// <p>stream.graphics.g6.8xlarge</p></li>
661 /// <li>
662 /// <p>stream.graphics.g6.16xlarge</p></li>
663 /// <li>
664 /// <p>stream.graphics.g6.12xlarge</p></li>
665 /// <li>
666 /// <p>stream.graphics.g6.24xlarge</p></li>
667 /// <li>
668 /// <p>stream.graphics.gr6.4xlarge</p></li>
669 /// <li>
670 /// <p>stream.graphics.gr6.8xlarge</p></li>
671 /// <li>
672 /// <p>stream.graphics.g6f.large</p></li>
673 /// <li>
674 /// <p>stream.graphics.g6f.xlarge</p></li>
675 /// <li>
676 /// <p>stream.graphics.g6f.2xlarge</p></li>
677 /// <li>
678 /// <p>stream.graphics.g6f.4xlarge</p></li>
679 /// <li>
680 /// <p>stream.graphics.gr6f.4xlarge</p></li>
681 /// </ul>
682 /// <p>The following instance types are available for Elastic fleets:</p>
683 /// <ul>
684 /// <li>
685 /// <p>stream.standard.small</p></li>
686 /// <li>
687 /// <p>stream.standard.medium</p></li>
688 /// <li>
689 /// <p>stream.standard.large</p></li>
690 /// <li>
691 /// <p>stream.standard.xlarge</p></li>
692 /// <li>
693 /// <p>stream.standard.2xlarge</p></li>
694 /// </ul>
695 pub fn set_instance_type(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
696 self.instance_type = input;
697 self
698 }
699 /// <p>The instance type to use when launching fleet instances. The following instance types are available:</p>
700 /// <ul>
701 /// <li>
702 /// <p>stream.standard.small</p></li>
703 /// <li>
704 /// <p>stream.standard.medium</p></li>
705 /// <li>
706 /// <p>stream.standard.large</p></li>
707 /// <li>
708 /// <p>stream.standard.xlarge</p></li>
709 /// <li>
710 /// <p>stream.standard.2xlarge</p></li>
711 /// <li>
712 /// <p>stream.compute.large</p></li>
713 /// <li>
714 /// <p>stream.compute.xlarge</p></li>
715 /// <li>
716 /// <p>stream.compute.2xlarge</p></li>
717 /// <li>
718 /// <p>stream.compute.4xlarge</p></li>
719 /// <li>
720 /// <p>stream.compute.8xlarge</p></li>
721 /// <li>
722 /// <p>stream.memory.large</p></li>
723 /// <li>
724 /// <p>stream.memory.xlarge</p></li>
725 /// <li>
726 /// <p>stream.memory.2xlarge</p></li>
727 /// <li>
728 /// <p>stream.memory.4xlarge</p></li>
729 /// <li>
730 /// <p>stream.memory.8xlarge</p></li>
731 /// <li>
732 /// <p>stream.memory.z1d.large</p></li>
733 /// <li>
734 /// <p>stream.memory.z1d.xlarge</p></li>
735 /// <li>
736 /// <p>stream.memory.z1d.2xlarge</p></li>
737 /// <li>
738 /// <p>stream.memory.z1d.3xlarge</p></li>
739 /// <li>
740 /// <p>stream.memory.z1d.6xlarge</p></li>
741 /// <li>
742 /// <p>stream.memory.z1d.12xlarge</p></li>
743 /// <li>
744 /// <p>stream.graphics.g4dn.xlarge</p></li>
745 /// <li>
746 /// <p>stream.graphics.g4dn.2xlarge</p></li>
747 /// <li>
748 /// <p>stream.graphics.g4dn.4xlarge</p></li>
749 /// <li>
750 /// <p>stream.graphics.g4dn.8xlarge</p></li>
751 /// <li>
752 /// <p>stream.graphics.g4dn.12xlarge</p></li>
753 /// <li>
754 /// <p>stream.graphics.g4dn.16xlarge</p></li>
755 /// <li>
756 /// <p>stream.graphics.g5.xlarge</p></li>
757 /// <li>
758 /// <p>stream.graphics.g5.2xlarge</p></li>
759 /// <li>
760 /// <p>stream.graphics.g5.4xlarge</p></li>
761 /// <li>
762 /// <p>stream.graphics.g5.8xlarge</p></li>
763 /// <li>
764 /// <p>stream.graphics.g5.16xlarge</p></li>
765 /// <li>
766 /// <p>stream.graphics.g5.12xlarge</p></li>
767 /// <li>
768 /// <p>stream.graphics.g5.24xlarge</p></li>
769 /// <li>
770 /// <p>stream.graphics.g6.xlarge</p></li>
771 /// <li>
772 /// <p>stream.graphics.g6.2xlarge</p></li>
773 /// <li>
774 /// <p>stream.graphics.g6.4xlarge</p></li>
775 /// <li>
776 /// <p>stream.graphics.g6.8xlarge</p></li>
777 /// <li>
778 /// <p>stream.graphics.g6.16xlarge</p></li>
779 /// <li>
780 /// <p>stream.graphics.g6.12xlarge</p></li>
781 /// <li>
782 /// <p>stream.graphics.g6.24xlarge</p></li>
783 /// <li>
784 /// <p>stream.graphics.gr6.4xlarge</p></li>
785 /// <li>
786 /// <p>stream.graphics.gr6.8xlarge</p></li>
787 /// <li>
788 /// <p>stream.graphics.g6f.large</p></li>
789 /// <li>
790 /// <p>stream.graphics.g6f.xlarge</p></li>
791 /// <li>
792 /// <p>stream.graphics.g6f.2xlarge</p></li>
793 /// <li>
794 /// <p>stream.graphics.g6f.4xlarge</p></li>
795 /// <li>
796 /// <p>stream.graphics.gr6f.4xlarge</p></li>
797 /// </ul>
798 /// <p>The following instance types are available for Elastic fleets:</p>
799 /// <ul>
800 /// <li>
801 /// <p>stream.standard.small</p></li>
802 /// <li>
803 /// <p>stream.standard.medium</p></li>
804 /// <li>
805 /// <p>stream.standard.large</p></li>
806 /// <li>
807 /// <p>stream.standard.xlarge</p></li>
808 /// <li>
809 /// <p>stream.standard.2xlarge</p></li>
810 /// </ul>
811 pub fn get_instance_type(&self) -> &::std::option::Option<::std::string::String> {
812 &self.instance_type
813 }
814 /// <p>The desired capacity for the fleet. This is not allowed for Elastic fleets.</p>
815 pub fn compute_capacity(mut self, input: crate::types::ComputeCapacity) -> Self {
816 self.compute_capacity = ::std::option::Option::Some(input);
817 self
818 }
819 /// <p>The desired capacity for the fleet. This is not allowed for Elastic fleets.</p>
820 pub fn set_compute_capacity(mut self, input: ::std::option::Option<crate::types::ComputeCapacity>) -> Self {
821 self.compute_capacity = input;
822 self
823 }
824 /// <p>The desired capacity for the fleet. This is not allowed for Elastic fleets.</p>
825 pub fn get_compute_capacity(&self) -> &::std::option::Option<crate::types::ComputeCapacity> {
826 &self.compute_capacity
827 }
828 /// <p>The VPC configuration for the fleet. This is required for Elastic fleets, but not required for other fleet types. Elastic fleets require that you specify at least two subnets in different availability zones.</p>
829 pub fn vpc_config(mut self, input: crate::types::VpcConfig) -> Self {
830 self.vpc_config = ::std::option::Option::Some(input);
831 self
832 }
833 /// <p>The VPC configuration for the fleet. This is required for Elastic fleets, but not required for other fleet types. Elastic fleets require that you specify at least two subnets in different availability zones.</p>
834 pub fn set_vpc_config(mut self, input: ::std::option::Option<crate::types::VpcConfig>) -> Self {
835 self.vpc_config = input;
836 self
837 }
838 /// <p>The VPC configuration for the fleet. This is required for Elastic fleets, but not required for other fleet types. Elastic fleets require that you specify at least two subnets in different availability zones.</p>
839 pub fn get_vpc_config(&self) -> &::std::option::Option<crate::types::VpcConfig> {
840 &self.vpc_config
841 }
842 /// <p>The maximum amount of time that a streaming session can remain active, in seconds. If users are still connected to a streaming instance five minutes before this limit is reached, they are prompted to save any open documents before being disconnected. After this time elapses, the instance is terminated and replaced by a new instance.</p>
843 /// <p>Specify a value between 600 and 432000.</p>
844 pub fn max_user_duration_in_seconds(mut self, input: i32) -> Self {
845 self.max_user_duration_in_seconds = ::std::option::Option::Some(input);
846 self
847 }
848 /// <p>The maximum amount of time that a streaming session can remain active, in seconds. If users are still connected to a streaming instance five minutes before this limit is reached, they are prompted to save any open documents before being disconnected. After this time elapses, the instance is terminated and replaced by a new instance.</p>
849 /// <p>Specify a value between 600 and 432000.</p>
850 pub fn set_max_user_duration_in_seconds(mut self, input: ::std::option::Option<i32>) -> Self {
851 self.max_user_duration_in_seconds = input;
852 self
853 }
854 /// <p>The maximum amount of time that a streaming session can remain active, in seconds. If users are still connected to a streaming instance five minutes before this limit is reached, they are prompted to save any open documents before being disconnected. After this time elapses, the instance is terminated and replaced by a new instance.</p>
855 /// <p>Specify a value between 600 and 432000.</p>
856 pub fn get_max_user_duration_in_seconds(&self) -> &::std::option::Option<i32> {
857 &self.max_user_duration_in_seconds
858 }
859 /// <p>The amount of time that a streaming session remains active after users disconnect. If users try to reconnect to the streaming session after a disconnection or network interruption within this time interval, they are connected to their previous session. Otherwise, they are connected to a new session with a new streaming instance.</p>
860 /// <p>Specify a value between 60 and 36000.</p>
861 pub fn disconnect_timeout_in_seconds(mut self, input: i32) -> Self {
862 self.disconnect_timeout_in_seconds = ::std::option::Option::Some(input);
863 self
864 }
865 /// <p>The amount of time that a streaming session remains active after users disconnect. If users try to reconnect to the streaming session after a disconnection or network interruption within this time interval, they are connected to their previous session. Otherwise, they are connected to a new session with a new streaming instance.</p>
866 /// <p>Specify a value between 60 and 36000.</p>
867 pub fn set_disconnect_timeout_in_seconds(mut self, input: ::std::option::Option<i32>) -> Self {
868 self.disconnect_timeout_in_seconds = input;
869 self
870 }
871 /// <p>The amount of time that a streaming session remains active after users disconnect. If users try to reconnect to the streaming session after a disconnection or network interruption within this time interval, they are connected to their previous session. Otherwise, they are connected to a new session with a new streaming instance.</p>
872 /// <p>Specify a value between 60 and 36000.</p>
873 pub fn get_disconnect_timeout_in_seconds(&self) -> &::std::option::Option<i32> {
874 &self.disconnect_timeout_in_seconds
875 }
876 /// <p>Deletes the VPC association for the specified fleet.</p>
877 #[deprecated]
878 pub fn delete_vpc_config(mut self, input: bool) -> Self {
879 self.delete_vpc_config = ::std::option::Option::Some(input);
880 self
881 }
882 /// <p>Deletes the VPC association for the specified fleet.</p>
883 #[deprecated]
884 pub fn set_delete_vpc_config(mut self, input: ::std::option::Option<bool>) -> Self {
885 self.delete_vpc_config = input;
886 self
887 }
888 /// <p>Deletes the VPC association for the specified fleet.</p>
889 #[deprecated]
890 pub fn get_delete_vpc_config(&self) -> &::std::option::Option<bool> {
891 &self.delete_vpc_config
892 }
893 /// <p>The description to display.</p>
894 pub fn description(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
895 self.description = ::std::option::Option::Some(input.into());
896 self
897 }
898 /// <p>The description to display.</p>
899 pub fn set_description(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
900 self.description = input;
901 self
902 }
903 /// <p>The description to display.</p>
904 pub fn get_description(&self) -> &::std::option::Option<::std::string::String> {
905 &self.description
906 }
907 /// <p>The fleet name to display.</p>
908 pub fn display_name(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
909 self.display_name = ::std::option::Option::Some(input.into());
910 self
911 }
912 /// <p>The fleet name to display.</p>
913 pub fn set_display_name(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
914 self.display_name = input;
915 self
916 }
917 /// <p>The fleet name to display.</p>
918 pub fn get_display_name(&self) -> &::std::option::Option<::std::string::String> {
919 &self.display_name
920 }
921 /// <p>Enables or disables default internet access for the fleet.</p>
922 pub fn enable_default_internet_access(mut self, input: bool) -> Self {
923 self.enable_default_internet_access = ::std::option::Option::Some(input);
924 self
925 }
926 /// <p>Enables or disables default internet access for the fleet.</p>
927 pub fn set_enable_default_internet_access(mut self, input: ::std::option::Option<bool>) -> Self {
928 self.enable_default_internet_access = input;
929 self
930 }
931 /// <p>Enables or disables default internet access for the fleet.</p>
932 pub fn get_enable_default_internet_access(&self) -> &::std::option::Option<bool> {
933 &self.enable_default_internet_access
934 }
935 /// <p>The name of the directory and organizational unit (OU) to use to join the fleet to a Microsoft Active Directory domain.</p>
936 pub fn domain_join_info(mut self, input: crate::types::DomainJoinInfo) -> Self {
937 self.domain_join_info = ::std::option::Option::Some(input);
938 self
939 }
940 /// <p>The name of the directory and organizational unit (OU) to use to join the fleet to a Microsoft Active Directory domain.</p>
941 pub fn set_domain_join_info(mut self, input: ::std::option::Option<crate::types::DomainJoinInfo>) -> Self {
942 self.domain_join_info = input;
943 self
944 }
945 /// <p>The name of the directory and organizational unit (OU) to use to join the fleet to a Microsoft Active Directory domain.</p>
946 pub fn get_domain_join_info(&self) -> &::std::option::Option<crate::types::DomainJoinInfo> {
947 &self.domain_join_info
948 }
949 /// <p>The amount of time that users can be idle (inactive) before they are disconnected from their streaming session and the <code>DisconnectTimeoutInSeconds</code> time interval begins. Users are notified before they are disconnected due to inactivity. If users try to reconnect to the streaming session before the time interval specified in <code>DisconnectTimeoutInSeconds</code> elapses, they are connected to their previous session. Users are considered idle when they stop providing keyboard or mouse input during their streaming session. File uploads and downloads, audio in, audio out, and pixels changing do not qualify as user activity. If users continue to be idle after the time interval in <code>IdleDisconnectTimeoutInSeconds</code> elapses, they are disconnected.</p>
950 /// <p>To prevent users from being disconnected due to inactivity, specify a value of 0. Otherwise, specify a value between 60 and 36000. The default value is 0.</p><note>
951 /// <p>If you enable this feature, we recommend that you specify a value that corresponds exactly to a whole number of minutes (for example, 60, 120, and 180). If you don't do this, the value is rounded to the nearest minute. For example, if you specify a value of 70, users are disconnected after 1 minute of inactivity. If you specify a value that is at the midpoint between two different minutes, the value is rounded up. For example, if you specify a value of 90, users are disconnected after 2 minutes of inactivity.</p>
952 /// </note>
953 pub fn idle_disconnect_timeout_in_seconds(mut self, input: i32) -> Self {
954 self.idle_disconnect_timeout_in_seconds = ::std::option::Option::Some(input);
955 self
956 }
957 /// <p>The amount of time that users can be idle (inactive) before they are disconnected from their streaming session and the <code>DisconnectTimeoutInSeconds</code> time interval begins. Users are notified before they are disconnected due to inactivity. If users try to reconnect to the streaming session before the time interval specified in <code>DisconnectTimeoutInSeconds</code> elapses, they are connected to their previous session. Users are considered idle when they stop providing keyboard or mouse input during their streaming session. File uploads and downloads, audio in, audio out, and pixels changing do not qualify as user activity. If users continue to be idle after the time interval in <code>IdleDisconnectTimeoutInSeconds</code> elapses, they are disconnected.</p>
958 /// <p>To prevent users from being disconnected due to inactivity, specify a value of 0. Otherwise, specify a value between 60 and 36000. The default value is 0.</p><note>
959 /// <p>If you enable this feature, we recommend that you specify a value that corresponds exactly to a whole number of minutes (for example, 60, 120, and 180). If you don't do this, the value is rounded to the nearest minute. For example, if you specify a value of 70, users are disconnected after 1 minute of inactivity. If you specify a value that is at the midpoint between two different minutes, the value is rounded up. For example, if you specify a value of 90, users are disconnected after 2 minutes of inactivity.</p>
960 /// </note>
961 pub fn set_idle_disconnect_timeout_in_seconds(mut self, input: ::std::option::Option<i32>) -> Self {
962 self.idle_disconnect_timeout_in_seconds = input;
963 self
964 }
965 /// <p>The amount of time that users can be idle (inactive) before they are disconnected from their streaming session and the <code>DisconnectTimeoutInSeconds</code> time interval begins. Users are notified before they are disconnected due to inactivity. If users try to reconnect to the streaming session before the time interval specified in <code>DisconnectTimeoutInSeconds</code> elapses, they are connected to their previous session. Users are considered idle when they stop providing keyboard or mouse input during their streaming session. File uploads and downloads, audio in, audio out, and pixels changing do not qualify as user activity. If users continue to be idle after the time interval in <code>IdleDisconnectTimeoutInSeconds</code> elapses, they are disconnected.</p>
966 /// <p>To prevent users from being disconnected due to inactivity, specify a value of 0. Otherwise, specify a value between 60 and 36000. The default value is 0.</p><note>
967 /// <p>If you enable this feature, we recommend that you specify a value that corresponds exactly to a whole number of minutes (for example, 60, 120, and 180). If you don't do this, the value is rounded to the nearest minute. For example, if you specify a value of 70, users are disconnected after 1 minute of inactivity. If you specify a value that is at the midpoint between two different minutes, the value is rounded up. For example, if you specify a value of 90, users are disconnected after 2 minutes of inactivity.</p>
968 /// </note>
969 pub fn get_idle_disconnect_timeout_in_seconds(&self) -> &::std::option::Option<i32> {
970 &self.idle_disconnect_timeout_in_seconds
971 }
972 /// Appends an item to `attributes_to_delete`.
973 ///
974 /// To override the contents of this collection use [`set_attributes_to_delete`](Self::set_attributes_to_delete).
975 ///
976 /// <p>The fleet attributes to delete.</p>
977 pub fn attributes_to_delete(mut self, input: crate::types::FleetAttribute) -> Self {
978 let mut v = self.attributes_to_delete.unwrap_or_default();
979 v.push(input);
980 self.attributes_to_delete = ::std::option::Option::Some(v);
981 self
982 }
983 /// <p>The fleet attributes to delete.</p>
984 pub fn set_attributes_to_delete(mut self, input: ::std::option::Option<::std::vec::Vec<crate::types::FleetAttribute>>) -> Self {
985 self.attributes_to_delete = input;
986 self
987 }
988 /// <p>The fleet attributes to delete.</p>
989 pub fn get_attributes_to_delete(&self) -> &::std::option::Option<::std::vec::Vec<crate::types::FleetAttribute>> {
990 &self.attributes_to_delete
991 }
992 /// <p>The Amazon Resource Name (ARN) of the IAM role to apply to the fleet. To assume a role, a fleet instance calls the AWS Security Token Service (STS) <code>AssumeRole</code> API operation and passes the ARN of the role to use. The operation creates a new session with temporary credentials. WorkSpaces Applications retrieves the temporary credentials and creates the <b>appstream_machine_role</b> credential profile on the instance.</p>
993 /// <p>For more information, see <a href="https://docs.aws.amazon.com/appstream2/latest/developerguide/using-iam-roles-to-grant-permissions-to-applications-scripts-streaming-instances.html">Using an IAM Role to Grant Permissions to Applications and Scripts Running on WorkSpaces Applications Streaming Instances</a> in the <i>Amazon WorkSpaces Applications Administration Guide</i>.</p>
994 pub fn iam_role_arn(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
995 self.iam_role_arn = ::std::option::Option::Some(input.into());
996 self
997 }
998 /// <p>The Amazon Resource Name (ARN) of the IAM role to apply to the fleet. To assume a role, a fleet instance calls the AWS Security Token Service (STS) <code>AssumeRole</code> API operation and passes the ARN of the role to use. The operation creates a new session with temporary credentials. WorkSpaces Applications retrieves the temporary credentials and creates the <b>appstream_machine_role</b> credential profile on the instance.</p>
999 /// <p>For more information, see <a href="https://docs.aws.amazon.com/appstream2/latest/developerguide/using-iam-roles-to-grant-permissions-to-applications-scripts-streaming-instances.html">Using an IAM Role to Grant Permissions to Applications and Scripts Running on WorkSpaces Applications Streaming Instances</a> in the <i>Amazon WorkSpaces Applications Administration Guide</i>.</p>
1000 pub fn set_iam_role_arn(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
1001 self.iam_role_arn = input;
1002 self
1003 }
1004 /// <p>The Amazon Resource Name (ARN) of the IAM role to apply to the fleet. To assume a role, a fleet instance calls the AWS Security Token Service (STS) <code>AssumeRole</code> API operation and passes the ARN of the role to use. The operation creates a new session with temporary credentials. WorkSpaces Applications retrieves the temporary credentials and creates the <b>appstream_machine_role</b> credential profile on the instance.</p>
1005 /// <p>For more information, see <a href="https://docs.aws.amazon.com/appstream2/latest/developerguide/using-iam-roles-to-grant-permissions-to-applications-scripts-streaming-instances.html">Using an IAM Role to Grant Permissions to Applications and Scripts Running on WorkSpaces Applications Streaming Instances</a> in the <i>Amazon WorkSpaces Applications Administration Guide</i>.</p>
1006 pub fn get_iam_role_arn(&self) -> &::std::option::Option<::std::string::String> {
1007 &self.iam_role_arn
1008 }
1009 /// <p>The WorkSpaces Applications view that is displayed to your users when they stream from the fleet. When <code>APP</code> is specified, only the windows of applications opened by users display. When <code>DESKTOP</code> is specified, the standard desktop that is provided by the operating system displays.</p>
1010 /// <p>The default value is <code>APP</code>.</p>
1011 pub fn stream_view(mut self, input: crate::types::StreamView) -> Self {
1012 self.stream_view = ::std::option::Option::Some(input);
1013 self
1014 }
1015 /// <p>The WorkSpaces Applications view that is displayed to your users when they stream from the fleet. When <code>APP</code> is specified, only the windows of applications opened by users display. When <code>DESKTOP</code> is specified, the standard desktop that is provided by the operating system displays.</p>
1016 /// <p>The default value is <code>APP</code>.</p>
1017 pub fn set_stream_view(mut self, input: ::std::option::Option<crate::types::StreamView>) -> Self {
1018 self.stream_view = input;
1019 self
1020 }
1021 /// <p>The WorkSpaces Applications view that is displayed to your users when they stream from the fleet. When <code>APP</code> is specified, only the windows of applications opened by users display. When <code>DESKTOP</code> is specified, the standard desktop that is provided by the operating system displays.</p>
1022 /// <p>The default value is <code>APP</code>.</p>
1023 pub fn get_stream_view(&self) -> &::std::option::Option<crate::types::StreamView> {
1024 &self.stream_view
1025 }
1026 /// <p>The platform of the fleet. WINDOWS_SERVER_2019, AMAZON_LINUX2 and UBUNTU_PRO_2404 are supported for Elastic fleets.</p>
1027 pub fn platform(mut self, input: crate::types::PlatformType) -> Self {
1028 self.platform = ::std::option::Option::Some(input);
1029 self
1030 }
1031 /// <p>The platform of the fleet. WINDOWS_SERVER_2019, AMAZON_LINUX2 and UBUNTU_PRO_2404 are supported for Elastic fleets.</p>
1032 pub fn set_platform(mut self, input: ::std::option::Option<crate::types::PlatformType>) -> Self {
1033 self.platform = input;
1034 self
1035 }
1036 /// <p>The platform of the fleet. WINDOWS_SERVER_2019, AMAZON_LINUX2 and UBUNTU_PRO_2404 are supported for Elastic fleets.</p>
1037 pub fn get_platform(&self) -> &::std::option::Option<crate::types::PlatformType> {
1038 &self.platform
1039 }
1040 /// <p>The maximum number of concurrent sessions for a fleet.</p>
1041 pub fn max_concurrent_sessions(mut self, input: i32) -> Self {
1042 self.max_concurrent_sessions = ::std::option::Option::Some(input);
1043 self
1044 }
1045 /// <p>The maximum number of concurrent sessions for a fleet.</p>
1046 pub fn set_max_concurrent_sessions(mut self, input: ::std::option::Option<i32>) -> Self {
1047 self.max_concurrent_sessions = input;
1048 self
1049 }
1050 /// <p>The maximum number of concurrent sessions for a fleet.</p>
1051 pub fn get_max_concurrent_sessions(&self) -> &::std::option::Option<i32> {
1052 &self.max_concurrent_sessions
1053 }
1054 /// Appends an item to `usb_device_filter_strings`.
1055 ///
1056 /// To override the contents of this collection use [`set_usb_device_filter_strings`](Self::set_usb_device_filter_strings).
1057 ///
1058 /// <p>The USB device filter strings that specify which USB devices a user can redirect to the fleet streaming session, when using the Windows native client. This is allowed but not required for Elastic fleets.</p>
1059 pub fn usb_device_filter_strings(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
1060 let mut v = self.usb_device_filter_strings.unwrap_or_default();
1061 v.push(input.into());
1062 self.usb_device_filter_strings = ::std::option::Option::Some(v);
1063 self
1064 }
1065 /// <p>The USB device filter strings that specify which USB devices a user can redirect to the fleet streaming session, when using the Windows native client. This is allowed but not required for Elastic fleets.</p>
1066 pub fn set_usb_device_filter_strings(mut self, input: ::std::option::Option<::std::vec::Vec<::std::string::String>>) -> Self {
1067 self.usb_device_filter_strings = input;
1068 self
1069 }
1070 /// <p>The USB device filter strings that specify which USB devices a user can redirect to the fleet streaming session, when using the Windows native client. This is allowed but not required for Elastic fleets.</p>
1071 pub fn get_usb_device_filter_strings(&self) -> &::std::option::Option<::std::vec::Vec<::std::string::String>> {
1072 &self.usb_device_filter_strings
1073 }
1074 /// <p>The S3 location of the session scripts configuration zip file. This only applies to Elastic fleets.</p>
1075 pub fn session_script_s3_location(mut self, input: crate::types::S3Location) -> Self {
1076 self.session_script_s3_location = ::std::option::Option::Some(input);
1077 self
1078 }
1079 /// <p>The S3 location of the session scripts configuration zip file. This only applies to Elastic fleets.</p>
1080 pub fn set_session_script_s3_location(mut self, input: ::std::option::Option<crate::types::S3Location>) -> Self {
1081 self.session_script_s3_location = input;
1082 self
1083 }
1084 /// <p>The S3 location of the session scripts configuration zip file. This only applies to Elastic fleets.</p>
1085 pub fn get_session_script_s3_location(&self) -> &::std::option::Option<crate::types::S3Location> {
1086 &self.session_script_s3_location
1087 }
1088 /// <p>The maximum number of user sessions on an instance. This only applies to multi-session fleets.</p>
1089 pub fn max_sessions_per_instance(mut self, input: i32) -> Self {
1090 self.max_sessions_per_instance = ::std::option::Option::Some(input);
1091 self
1092 }
1093 /// <p>The maximum number of user sessions on an instance. This only applies to multi-session fleets.</p>
1094 pub fn set_max_sessions_per_instance(mut self, input: ::std::option::Option<i32>) -> Self {
1095 self.max_sessions_per_instance = input;
1096 self
1097 }
1098 /// <p>The maximum number of user sessions on an instance. This only applies to multi-session fleets.</p>
1099 pub fn get_max_sessions_per_instance(&self) -> &::std::option::Option<i32> {
1100 &self.max_sessions_per_instance
1101 }
1102 /// <p>The updated configuration for the root volume of fleet instances. Note that volume size cannot be decreased below the image volume size.</p>
1103 pub fn root_volume_config(mut self, input: crate::types::VolumeConfig) -> Self {
1104 self.root_volume_config = ::std::option::Option::Some(input);
1105 self
1106 }
1107 /// <p>The updated configuration for the root volume of fleet instances. Note that volume size cannot be decreased below the image volume size.</p>
1108 pub fn set_root_volume_config(mut self, input: ::std::option::Option<crate::types::VolumeConfig>) -> Self {
1109 self.root_volume_config = input;
1110 self
1111 }
1112 /// <p>The updated configuration for the root volume of fleet instances. Note that volume size cannot be decreased below the image volume size.</p>
1113 pub fn get_root_volume_config(&self) -> &::std::option::Option<crate::types::VolumeConfig> {
1114 &self.root_volume_config
1115 }
1116 /// Consumes the builder and constructs a [`UpdateFleetInput`](crate::operation::update_fleet::UpdateFleetInput).
1117 pub fn build(self) -> ::std::result::Result<crate::operation::update_fleet::UpdateFleetInput, ::aws_smithy_types::error::operation::BuildError> {
1118 ::std::result::Result::Ok(crate::operation::update_fleet::UpdateFleetInput {
1119 image_name: self.image_name,
1120 image_arn: self.image_arn,
1121 name: self.name,
1122 instance_type: self.instance_type,
1123 compute_capacity: self.compute_capacity,
1124 vpc_config: self.vpc_config,
1125 max_user_duration_in_seconds: self.max_user_duration_in_seconds,
1126 disconnect_timeout_in_seconds: self.disconnect_timeout_in_seconds,
1127 delete_vpc_config: self.delete_vpc_config,
1128 description: self.description,
1129 display_name: self.display_name,
1130 enable_default_internet_access: self.enable_default_internet_access,
1131 domain_join_info: self.domain_join_info,
1132 idle_disconnect_timeout_in_seconds: self.idle_disconnect_timeout_in_seconds,
1133 attributes_to_delete: self.attributes_to_delete,
1134 iam_role_arn: self.iam_role_arn,
1135 stream_view: self.stream_view,
1136 platform: self.platform,
1137 max_concurrent_sessions: self.max_concurrent_sessions,
1138 usb_device_filter_strings: self.usb_device_filter_strings,
1139 session_script_s3_location: self.session_script_s3_location,
1140 max_sessions_per_instance: self.max_sessions_per_instance,
1141 root_volume_config: self.root_volume_config,
1142 })
1143 }
1144}