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-design.large</p></li>
58 /// <li>
59 /// <p>stream.graphics-design.xlarge</p></li>
60 /// <li>
61 /// <p>stream.graphics-design.2xlarge</p></li>
62 /// <li>
63 /// <p>stream.graphics-design.4xlarge</p></li>
64 /// <li>
65 /// <p>stream.graphics-desktop.2xlarge</p></li>
66 /// <li>
67 /// <p>stream.graphics.g4dn.xlarge</p></li>
68 /// <li>
69 /// <p>stream.graphics.g4dn.2xlarge</p></li>
70 /// <li>
71 /// <p>stream.graphics.g4dn.4xlarge</p></li>
72 /// <li>
73 /// <p>stream.graphics.g4dn.8xlarge</p></li>
74 /// <li>
75 /// <p>stream.graphics.g4dn.12xlarge</p></li>
76 /// <li>
77 /// <p>stream.graphics.g4dn.16xlarge</p></li>
78 /// <li>
79 /// <p>stream.graphics-pro.4xlarge</p></li>
80 /// <li>
81 /// <p>stream.graphics-pro.8xlarge</p></li>
82 /// <li>
83 /// <p>stream.graphics-pro.16xlarge</p></li>
84 /// </ul>
85 /// <p>The following instance types are available for Elastic fleets:</p>
86 /// <ul>
87 /// <li>
88 /// <p>stream.standard.small</p></li>
89 /// <li>
90 /// <p>stream.standard.medium</p></li>
91 /// <li>
92 /// <p>stream.standard.large</p></li>
93 /// <li>
94 /// <p>stream.standard.xlarge</p></li>
95 /// <li>
96 /// <p>stream.standard.2xlarge</p></li>
97 /// </ul>
98 pub instance_type: ::std::option::Option<::std::string::String>,
99 /// <p>The desired capacity for the fleet. This is not allowed for Elastic fleets.</p>
100 pub compute_capacity: ::std::option::Option<crate::types::ComputeCapacity>,
101 /// <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>
102 pub vpc_config: ::std::option::Option<crate::types::VpcConfig>,
103 /// <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>
104 /// <p>Specify a value between 600 and 432000.</p>
105 pub max_user_duration_in_seconds: ::std::option::Option<i32>,
106 /// <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>
107 /// <p>Specify a value between 60 and 36000.</p>
108 pub disconnect_timeout_in_seconds: ::std::option::Option<i32>,
109 /// <p>Deletes the VPC association for the specified fleet.</p>
110 #[deprecated]
111 pub delete_vpc_config: ::std::option::Option<bool>,
112 /// <p>The description to display.</p>
113 pub description: ::std::option::Option<::std::string::String>,
114 /// <p>The fleet name to display.</p>
115 pub display_name: ::std::option::Option<::std::string::String>,
116 /// <p>Enables or disables default internet access for the fleet.</p>
117 pub enable_default_internet_access: ::std::option::Option<bool>,
118 /// <p>The name of the directory and organizational unit (OU) to use to join the fleet to a Microsoft Active Directory domain.</p>
119 pub domain_join_info: ::std::option::Option<crate::types::DomainJoinInfo>,
120 /// <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>
121 /// <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>
122 /// <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>
123 /// </note>
124 pub idle_disconnect_timeout_in_seconds: ::std::option::Option<i32>,
125 /// <p>The fleet attributes to delete.</p>
126 pub attributes_to_delete: ::std::option::Option<::std::vec::Vec<crate::types::FleetAttribute>>,
127 /// <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. AppStream 2.0 retrieves the temporary credentials and creates the <b>appstream_machine_role</b> credential profile on the instance.</p>
128 /// <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 AppStream 2.0 Streaming Instances</a> in the <i>Amazon AppStream 2.0 Administration Guide</i>.</p>
129 pub iam_role_arn: ::std::option::Option<::std::string::String>,
130 /// <p>The AppStream 2.0 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>
131 /// <p>The default value is <code>APP</code>.</p>
132 pub stream_view: ::std::option::Option<crate::types::StreamView>,
133 /// <p>The platform of the fleet. WINDOWS_SERVER_2019 and AMAZON_LINUX2 are supported for Elastic fleets.</p>
134 pub platform: ::std::option::Option<crate::types::PlatformType>,
135 /// <p>The maximum number of concurrent sessions for a fleet.</p>
136 pub max_concurrent_sessions: ::std::option::Option<i32>,
137 /// <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>
138 pub usb_device_filter_strings: ::std::option::Option<::std::vec::Vec<::std::string::String>>,
139 /// <p>The S3 location of the session scripts configuration zip file. This only applies to Elastic fleets.</p>
140 pub session_script_s3_location: ::std::option::Option<crate::types::S3Location>,
141 /// <p>The maximum number of user sessions on an instance. This only applies to multi-session fleets.</p>
142 pub max_sessions_per_instance: ::std::option::Option<i32>,
143}
144impl UpdateFleetInput {
145 /// <p>The name of the image used to create the fleet.</p>
146 pub fn image_name(&self) -> ::std::option::Option<&str> {
147 self.image_name.as_deref()
148 }
149 /// <p>The ARN of the public, private, or shared image to use.</p>
150 pub fn image_arn(&self) -> ::std::option::Option<&str> {
151 self.image_arn.as_deref()
152 }
153 /// <p>A unique name for the fleet.</p>
154 pub fn name(&self) -> ::std::option::Option<&str> {
155 self.name.as_deref()
156 }
157 /// <p>The instance type to use when launching fleet instances. The following instance types are available:</p>
158 /// <ul>
159 /// <li>
160 /// <p>stream.standard.small</p></li>
161 /// <li>
162 /// <p>stream.standard.medium</p></li>
163 /// <li>
164 /// <p>stream.standard.large</p></li>
165 /// <li>
166 /// <p>stream.standard.xlarge</p></li>
167 /// <li>
168 /// <p>stream.standard.2xlarge</p></li>
169 /// <li>
170 /// <p>stream.compute.large</p></li>
171 /// <li>
172 /// <p>stream.compute.xlarge</p></li>
173 /// <li>
174 /// <p>stream.compute.2xlarge</p></li>
175 /// <li>
176 /// <p>stream.compute.4xlarge</p></li>
177 /// <li>
178 /// <p>stream.compute.8xlarge</p></li>
179 /// <li>
180 /// <p>stream.memory.large</p></li>
181 /// <li>
182 /// <p>stream.memory.xlarge</p></li>
183 /// <li>
184 /// <p>stream.memory.2xlarge</p></li>
185 /// <li>
186 /// <p>stream.memory.4xlarge</p></li>
187 /// <li>
188 /// <p>stream.memory.8xlarge</p></li>
189 /// <li>
190 /// <p>stream.memory.z1d.large</p></li>
191 /// <li>
192 /// <p>stream.memory.z1d.xlarge</p></li>
193 /// <li>
194 /// <p>stream.memory.z1d.2xlarge</p></li>
195 /// <li>
196 /// <p>stream.memory.z1d.3xlarge</p></li>
197 /// <li>
198 /// <p>stream.memory.z1d.6xlarge</p></li>
199 /// <li>
200 /// <p>stream.memory.z1d.12xlarge</p></li>
201 /// <li>
202 /// <p>stream.graphics-design.large</p></li>
203 /// <li>
204 /// <p>stream.graphics-design.xlarge</p></li>
205 /// <li>
206 /// <p>stream.graphics-design.2xlarge</p></li>
207 /// <li>
208 /// <p>stream.graphics-design.4xlarge</p></li>
209 /// <li>
210 /// <p>stream.graphics-desktop.2xlarge</p></li>
211 /// <li>
212 /// <p>stream.graphics.g4dn.xlarge</p></li>
213 /// <li>
214 /// <p>stream.graphics.g4dn.2xlarge</p></li>
215 /// <li>
216 /// <p>stream.graphics.g4dn.4xlarge</p></li>
217 /// <li>
218 /// <p>stream.graphics.g4dn.8xlarge</p></li>
219 /// <li>
220 /// <p>stream.graphics.g4dn.12xlarge</p></li>
221 /// <li>
222 /// <p>stream.graphics.g4dn.16xlarge</p></li>
223 /// <li>
224 /// <p>stream.graphics-pro.4xlarge</p></li>
225 /// <li>
226 /// <p>stream.graphics-pro.8xlarge</p></li>
227 /// <li>
228 /// <p>stream.graphics-pro.16xlarge</p></li>
229 /// </ul>
230 /// <p>The following instance types are available for Elastic fleets:</p>
231 /// <ul>
232 /// <li>
233 /// <p>stream.standard.small</p></li>
234 /// <li>
235 /// <p>stream.standard.medium</p></li>
236 /// <li>
237 /// <p>stream.standard.large</p></li>
238 /// <li>
239 /// <p>stream.standard.xlarge</p></li>
240 /// <li>
241 /// <p>stream.standard.2xlarge</p></li>
242 /// </ul>
243 pub fn instance_type(&self) -> ::std::option::Option<&str> {
244 self.instance_type.as_deref()
245 }
246 /// <p>The desired capacity for the fleet. This is not allowed for Elastic fleets.</p>
247 pub fn compute_capacity(&self) -> ::std::option::Option<&crate::types::ComputeCapacity> {
248 self.compute_capacity.as_ref()
249 }
250 /// <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>
251 pub fn vpc_config(&self) -> ::std::option::Option<&crate::types::VpcConfig> {
252 self.vpc_config.as_ref()
253 }
254 /// <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>
255 /// <p>Specify a value between 600 and 432000.</p>
256 pub fn max_user_duration_in_seconds(&self) -> ::std::option::Option<i32> {
257 self.max_user_duration_in_seconds
258 }
259 /// <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>
260 /// <p>Specify a value between 60 and 36000.</p>
261 pub fn disconnect_timeout_in_seconds(&self) -> ::std::option::Option<i32> {
262 self.disconnect_timeout_in_seconds
263 }
264 /// <p>Deletes the VPC association for the specified fleet.</p>
265 #[deprecated]
266 pub fn delete_vpc_config(&self) -> ::std::option::Option<bool> {
267 self.delete_vpc_config
268 }
269 /// <p>The description to display.</p>
270 pub fn description(&self) -> ::std::option::Option<&str> {
271 self.description.as_deref()
272 }
273 /// <p>The fleet name to display.</p>
274 pub fn display_name(&self) -> ::std::option::Option<&str> {
275 self.display_name.as_deref()
276 }
277 /// <p>Enables or disables default internet access for the fleet.</p>
278 pub fn enable_default_internet_access(&self) -> ::std::option::Option<bool> {
279 self.enable_default_internet_access
280 }
281 /// <p>The name of the directory and organizational unit (OU) to use to join the fleet to a Microsoft Active Directory domain.</p>
282 pub fn domain_join_info(&self) -> ::std::option::Option<&crate::types::DomainJoinInfo> {
283 self.domain_join_info.as_ref()
284 }
285 /// <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>
286 /// <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>
287 /// <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>
288 /// </note>
289 pub fn idle_disconnect_timeout_in_seconds(&self) -> ::std::option::Option<i32> {
290 self.idle_disconnect_timeout_in_seconds
291 }
292 /// <p>The fleet attributes to delete.</p>
293 ///
294 /// 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()`.
295 pub fn attributes_to_delete(&self) -> &[crate::types::FleetAttribute] {
296 self.attributes_to_delete.as_deref().unwrap_or_default()
297 }
298 /// <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. AppStream 2.0 retrieves the temporary credentials and creates the <b>appstream_machine_role</b> credential profile on the instance.</p>
299 /// <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 AppStream 2.0 Streaming Instances</a> in the <i>Amazon AppStream 2.0 Administration Guide</i>.</p>
300 pub fn iam_role_arn(&self) -> ::std::option::Option<&str> {
301 self.iam_role_arn.as_deref()
302 }
303 /// <p>The AppStream 2.0 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>
304 /// <p>The default value is <code>APP</code>.</p>
305 pub fn stream_view(&self) -> ::std::option::Option<&crate::types::StreamView> {
306 self.stream_view.as_ref()
307 }
308 /// <p>The platform of the fleet. WINDOWS_SERVER_2019 and AMAZON_LINUX2 are supported for Elastic fleets.</p>
309 pub fn platform(&self) -> ::std::option::Option<&crate::types::PlatformType> {
310 self.platform.as_ref()
311 }
312 /// <p>The maximum number of concurrent sessions for a fleet.</p>
313 pub fn max_concurrent_sessions(&self) -> ::std::option::Option<i32> {
314 self.max_concurrent_sessions
315 }
316 /// <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>
317 ///
318 /// 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()`.
319 pub fn usb_device_filter_strings(&self) -> &[::std::string::String] {
320 self.usb_device_filter_strings.as_deref().unwrap_or_default()
321 }
322 /// <p>The S3 location of the session scripts configuration zip file. This only applies to Elastic fleets.</p>
323 pub fn session_script_s3_location(&self) -> ::std::option::Option<&crate::types::S3Location> {
324 self.session_script_s3_location.as_ref()
325 }
326 /// <p>The maximum number of user sessions on an instance. This only applies to multi-session fleets.</p>
327 pub fn max_sessions_per_instance(&self) -> ::std::option::Option<i32> {
328 self.max_sessions_per_instance
329 }
330}
331impl UpdateFleetInput {
332 /// Creates a new builder-style object to manufacture [`UpdateFleetInput`](crate::operation::update_fleet::UpdateFleetInput).
333 pub fn builder() -> crate::operation::update_fleet::builders::UpdateFleetInputBuilder {
334 crate::operation::update_fleet::builders::UpdateFleetInputBuilder::default()
335 }
336}
337
338/// A builder for [`UpdateFleetInput`](crate::operation::update_fleet::UpdateFleetInput).
339#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
340#[non_exhaustive]
341pub struct UpdateFleetInputBuilder {
342 pub(crate) image_name: ::std::option::Option<::std::string::String>,
343 pub(crate) image_arn: ::std::option::Option<::std::string::String>,
344 pub(crate) name: ::std::option::Option<::std::string::String>,
345 pub(crate) instance_type: ::std::option::Option<::std::string::String>,
346 pub(crate) compute_capacity: ::std::option::Option<crate::types::ComputeCapacity>,
347 pub(crate) vpc_config: ::std::option::Option<crate::types::VpcConfig>,
348 pub(crate) max_user_duration_in_seconds: ::std::option::Option<i32>,
349 pub(crate) disconnect_timeout_in_seconds: ::std::option::Option<i32>,
350 pub(crate) delete_vpc_config: ::std::option::Option<bool>,
351 pub(crate) description: ::std::option::Option<::std::string::String>,
352 pub(crate) display_name: ::std::option::Option<::std::string::String>,
353 pub(crate) enable_default_internet_access: ::std::option::Option<bool>,
354 pub(crate) domain_join_info: ::std::option::Option<crate::types::DomainJoinInfo>,
355 pub(crate) idle_disconnect_timeout_in_seconds: ::std::option::Option<i32>,
356 pub(crate) attributes_to_delete: ::std::option::Option<::std::vec::Vec<crate::types::FleetAttribute>>,
357 pub(crate) iam_role_arn: ::std::option::Option<::std::string::String>,
358 pub(crate) stream_view: ::std::option::Option<crate::types::StreamView>,
359 pub(crate) platform: ::std::option::Option<crate::types::PlatformType>,
360 pub(crate) max_concurrent_sessions: ::std::option::Option<i32>,
361 pub(crate) usb_device_filter_strings: ::std::option::Option<::std::vec::Vec<::std::string::String>>,
362 pub(crate) session_script_s3_location: ::std::option::Option<crate::types::S3Location>,
363 pub(crate) max_sessions_per_instance: ::std::option::Option<i32>,
364}
365impl UpdateFleetInputBuilder {
366 /// <p>The name of the image used to create the fleet.</p>
367 pub fn image_name(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
368 self.image_name = ::std::option::Option::Some(input.into());
369 self
370 }
371 /// <p>The name of the image used to create the fleet.</p>
372 pub fn set_image_name(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
373 self.image_name = input;
374 self
375 }
376 /// <p>The name of the image used to create the fleet.</p>
377 pub fn get_image_name(&self) -> &::std::option::Option<::std::string::String> {
378 &self.image_name
379 }
380 /// <p>The ARN of the public, private, or shared image to use.</p>
381 pub fn image_arn(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
382 self.image_arn = ::std::option::Option::Some(input.into());
383 self
384 }
385 /// <p>The ARN of the public, private, or shared image to use.</p>
386 pub fn set_image_arn(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
387 self.image_arn = input;
388 self
389 }
390 /// <p>The ARN of the public, private, or shared image to use.</p>
391 pub fn get_image_arn(&self) -> &::std::option::Option<::std::string::String> {
392 &self.image_arn
393 }
394 /// <p>A unique name for the fleet.</p>
395 pub fn name(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
396 self.name = ::std::option::Option::Some(input.into());
397 self
398 }
399 /// <p>A unique name for the fleet.</p>
400 pub fn set_name(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
401 self.name = input;
402 self
403 }
404 /// <p>A unique name for the fleet.</p>
405 pub fn get_name(&self) -> &::std::option::Option<::std::string::String> {
406 &self.name
407 }
408 /// <p>The instance type to use when launching fleet instances. The following instance types are available:</p>
409 /// <ul>
410 /// <li>
411 /// <p>stream.standard.small</p></li>
412 /// <li>
413 /// <p>stream.standard.medium</p></li>
414 /// <li>
415 /// <p>stream.standard.large</p></li>
416 /// <li>
417 /// <p>stream.standard.xlarge</p></li>
418 /// <li>
419 /// <p>stream.standard.2xlarge</p></li>
420 /// <li>
421 /// <p>stream.compute.large</p></li>
422 /// <li>
423 /// <p>stream.compute.xlarge</p></li>
424 /// <li>
425 /// <p>stream.compute.2xlarge</p></li>
426 /// <li>
427 /// <p>stream.compute.4xlarge</p></li>
428 /// <li>
429 /// <p>stream.compute.8xlarge</p></li>
430 /// <li>
431 /// <p>stream.memory.large</p></li>
432 /// <li>
433 /// <p>stream.memory.xlarge</p></li>
434 /// <li>
435 /// <p>stream.memory.2xlarge</p></li>
436 /// <li>
437 /// <p>stream.memory.4xlarge</p></li>
438 /// <li>
439 /// <p>stream.memory.8xlarge</p></li>
440 /// <li>
441 /// <p>stream.memory.z1d.large</p></li>
442 /// <li>
443 /// <p>stream.memory.z1d.xlarge</p></li>
444 /// <li>
445 /// <p>stream.memory.z1d.2xlarge</p></li>
446 /// <li>
447 /// <p>stream.memory.z1d.3xlarge</p></li>
448 /// <li>
449 /// <p>stream.memory.z1d.6xlarge</p></li>
450 /// <li>
451 /// <p>stream.memory.z1d.12xlarge</p></li>
452 /// <li>
453 /// <p>stream.graphics-design.large</p></li>
454 /// <li>
455 /// <p>stream.graphics-design.xlarge</p></li>
456 /// <li>
457 /// <p>stream.graphics-design.2xlarge</p></li>
458 /// <li>
459 /// <p>stream.graphics-design.4xlarge</p></li>
460 /// <li>
461 /// <p>stream.graphics-desktop.2xlarge</p></li>
462 /// <li>
463 /// <p>stream.graphics.g4dn.xlarge</p></li>
464 /// <li>
465 /// <p>stream.graphics.g4dn.2xlarge</p></li>
466 /// <li>
467 /// <p>stream.graphics.g4dn.4xlarge</p></li>
468 /// <li>
469 /// <p>stream.graphics.g4dn.8xlarge</p></li>
470 /// <li>
471 /// <p>stream.graphics.g4dn.12xlarge</p></li>
472 /// <li>
473 /// <p>stream.graphics.g4dn.16xlarge</p></li>
474 /// <li>
475 /// <p>stream.graphics-pro.4xlarge</p></li>
476 /// <li>
477 /// <p>stream.graphics-pro.8xlarge</p></li>
478 /// <li>
479 /// <p>stream.graphics-pro.16xlarge</p></li>
480 /// </ul>
481 /// <p>The following instance types are available for Elastic fleets:</p>
482 /// <ul>
483 /// <li>
484 /// <p>stream.standard.small</p></li>
485 /// <li>
486 /// <p>stream.standard.medium</p></li>
487 /// <li>
488 /// <p>stream.standard.large</p></li>
489 /// <li>
490 /// <p>stream.standard.xlarge</p></li>
491 /// <li>
492 /// <p>stream.standard.2xlarge</p></li>
493 /// </ul>
494 pub fn instance_type(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
495 self.instance_type = ::std::option::Option::Some(input.into());
496 self
497 }
498 /// <p>The instance type to use when launching fleet instances. The following instance types are available:</p>
499 /// <ul>
500 /// <li>
501 /// <p>stream.standard.small</p></li>
502 /// <li>
503 /// <p>stream.standard.medium</p></li>
504 /// <li>
505 /// <p>stream.standard.large</p></li>
506 /// <li>
507 /// <p>stream.standard.xlarge</p></li>
508 /// <li>
509 /// <p>stream.standard.2xlarge</p></li>
510 /// <li>
511 /// <p>stream.compute.large</p></li>
512 /// <li>
513 /// <p>stream.compute.xlarge</p></li>
514 /// <li>
515 /// <p>stream.compute.2xlarge</p></li>
516 /// <li>
517 /// <p>stream.compute.4xlarge</p></li>
518 /// <li>
519 /// <p>stream.compute.8xlarge</p></li>
520 /// <li>
521 /// <p>stream.memory.large</p></li>
522 /// <li>
523 /// <p>stream.memory.xlarge</p></li>
524 /// <li>
525 /// <p>stream.memory.2xlarge</p></li>
526 /// <li>
527 /// <p>stream.memory.4xlarge</p></li>
528 /// <li>
529 /// <p>stream.memory.8xlarge</p></li>
530 /// <li>
531 /// <p>stream.memory.z1d.large</p></li>
532 /// <li>
533 /// <p>stream.memory.z1d.xlarge</p></li>
534 /// <li>
535 /// <p>stream.memory.z1d.2xlarge</p></li>
536 /// <li>
537 /// <p>stream.memory.z1d.3xlarge</p></li>
538 /// <li>
539 /// <p>stream.memory.z1d.6xlarge</p></li>
540 /// <li>
541 /// <p>stream.memory.z1d.12xlarge</p></li>
542 /// <li>
543 /// <p>stream.graphics-design.large</p></li>
544 /// <li>
545 /// <p>stream.graphics-design.xlarge</p></li>
546 /// <li>
547 /// <p>stream.graphics-design.2xlarge</p></li>
548 /// <li>
549 /// <p>stream.graphics-design.4xlarge</p></li>
550 /// <li>
551 /// <p>stream.graphics-desktop.2xlarge</p></li>
552 /// <li>
553 /// <p>stream.graphics.g4dn.xlarge</p></li>
554 /// <li>
555 /// <p>stream.graphics.g4dn.2xlarge</p></li>
556 /// <li>
557 /// <p>stream.graphics.g4dn.4xlarge</p></li>
558 /// <li>
559 /// <p>stream.graphics.g4dn.8xlarge</p></li>
560 /// <li>
561 /// <p>stream.graphics.g4dn.12xlarge</p></li>
562 /// <li>
563 /// <p>stream.graphics.g4dn.16xlarge</p></li>
564 /// <li>
565 /// <p>stream.graphics-pro.4xlarge</p></li>
566 /// <li>
567 /// <p>stream.graphics-pro.8xlarge</p></li>
568 /// <li>
569 /// <p>stream.graphics-pro.16xlarge</p></li>
570 /// </ul>
571 /// <p>The following instance types are available for Elastic fleets:</p>
572 /// <ul>
573 /// <li>
574 /// <p>stream.standard.small</p></li>
575 /// <li>
576 /// <p>stream.standard.medium</p></li>
577 /// <li>
578 /// <p>stream.standard.large</p></li>
579 /// <li>
580 /// <p>stream.standard.xlarge</p></li>
581 /// <li>
582 /// <p>stream.standard.2xlarge</p></li>
583 /// </ul>
584 pub fn set_instance_type(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
585 self.instance_type = input;
586 self
587 }
588 /// <p>The instance type to use when launching fleet instances. The following instance types are available:</p>
589 /// <ul>
590 /// <li>
591 /// <p>stream.standard.small</p></li>
592 /// <li>
593 /// <p>stream.standard.medium</p></li>
594 /// <li>
595 /// <p>stream.standard.large</p></li>
596 /// <li>
597 /// <p>stream.standard.xlarge</p></li>
598 /// <li>
599 /// <p>stream.standard.2xlarge</p></li>
600 /// <li>
601 /// <p>stream.compute.large</p></li>
602 /// <li>
603 /// <p>stream.compute.xlarge</p></li>
604 /// <li>
605 /// <p>stream.compute.2xlarge</p></li>
606 /// <li>
607 /// <p>stream.compute.4xlarge</p></li>
608 /// <li>
609 /// <p>stream.compute.8xlarge</p></li>
610 /// <li>
611 /// <p>stream.memory.large</p></li>
612 /// <li>
613 /// <p>stream.memory.xlarge</p></li>
614 /// <li>
615 /// <p>stream.memory.2xlarge</p></li>
616 /// <li>
617 /// <p>stream.memory.4xlarge</p></li>
618 /// <li>
619 /// <p>stream.memory.8xlarge</p></li>
620 /// <li>
621 /// <p>stream.memory.z1d.large</p></li>
622 /// <li>
623 /// <p>stream.memory.z1d.xlarge</p></li>
624 /// <li>
625 /// <p>stream.memory.z1d.2xlarge</p></li>
626 /// <li>
627 /// <p>stream.memory.z1d.3xlarge</p></li>
628 /// <li>
629 /// <p>stream.memory.z1d.6xlarge</p></li>
630 /// <li>
631 /// <p>stream.memory.z1d.12xlarge</p></li>
632 /// <li>
633 /// <p>stream.graphics-design.large</p></li>
634 /// <li>
635 /// <p>stream.graphics-design.xlarge</p></li>
636 /// <li>
637 /// <p>stream.graphics-design.2xlarge</p></li>
638 /// <li>
639 /// <p>stream.graphics-design.4xlarge</p></li>
640 /// <li>
641 /// <p>stream.graphics-desktop.2xlarge</p></li>
642 /// <li>
643 /// <p>stream.graphics.g4dn.xlarge</p></li>
644 /// <li>
645 /// <p>stream.graphics.g4dn.2xlarge</p></li>
646 /// <li>
647 /// <p>stream.graphics.g4dn.4xlarge</p></li>
648 /// <li>
649 /// <p>stream.graphics.g4dn.8xlarge</p></li>
650 /// <li>
651 /// <p>stream.graphics.g4dn.12xlarge</p></li>
652 /// <li>
653 /// <p>stream.graphics.g4dn.16xlarge</p></li>
654 /// <li>
655 /// <p>stream.graphics-pro.4xlarge</p></li>
656 /// <li>
657 /// <p>stream.graphics-pro.8xlarge</p></li>
658 /// <li>
659 /// <p>stream.graphics-pro.16xlarge</p></li>
660 /// </ul>
661 /// <p>The following instance types are available for Elastic fleets:</p>
662 /// <ul>
663 /// <li>
664 /// <p>stream.standard.small</p></li>
665 /// <li>
666 /// <p>stream.standard.medium</p></li>
667 /// <li>
668 /// <p>stream.standard.large</p></li>
669 /// <li>
670 /// <p>stream.standard.xlarge</p></li>
671 /// <li>
672 /// <p>stream.standard.2xlarge</p></li>
673 /// </ul>
674 pub fn get_instance_type(&self) -> &::std::option::Option<::std::string::String> {
675 &self.instance_type
676 }
677 /// <p>The desired capacity for the fleet. This is not allowed for Elastic fleets.</p>
678 pub fn compute_capacity(mut self, input: crate::types::ComputeCapacity) -> Self {
679 self.compute_capacity = ::std::option::Option::Some(input);
680 self
681 }
682 /// <p>The desired capacity for the fleet. This is not allowed for Elastic fleets.</p>
683 pub fn set_compute_capacity(mut self, input: ::std::option::Option<crate::types::ComputeCapacity>) -> Self {
684 self.compute_capacity = input;
685 self
686 }
687 /// <p>The desired capacity for the fleet. This is not allowed for Elastic fleets.</p>
688 pub fn get_compute_capacity(&self) -> &::std::option::Option<crate::types::ComputeCapacity> {
689 &self.compute_capacity
690 }
691 /// <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>
692 pub fn vpc_config(mut self, input: crate::types::VpcConfig) -> Self {
693 self.vpc_config = ::std::option::Option::Some(input);
694 self
695 }
696 /// <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>
697 pub fn set_vpc_config(mut self, input: ::std::option::Option<crate::types::VpcConfig>) -> Self {
698 self.vpc_config = input;
699 self
700 }
701 /// <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>
702 pub fn get_vpc_config(&self) -> &::std::option::Option<crate::types::VpcConfig> {
703 &self.vpc_config
704 }
705 /// <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>
706 /// <p>Specify a value between 600 and 432000.</p>
707 pub fn max_user_duration_in_seconds(mut self, input: i32) -> Self {
708 self.max_user_duration_in_seconds = ::std::option::Option::Some(input);
709 self
710 }
711 /// <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>
712 /// <p>Specify a value between 600 and 432000.</p>
713 pub fn set_max_user_duration_in_seconds(mut self, input: ::std::option::Option<i32>) -> Self {
714 self.max_user_duration_in_seconds = input;
715 self
716 }
717 /// <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>
718 /// <p>Specify a value between 600 and 432000.</p>
719 pub fn get_max_user_duration_in_seconds(&self) -> &::std::option::Option<i32> {
720 &self.max_user_duration_in_seconds
721 }
722 /// <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>
723 /// <p>Specify a value between 60 and 36000.</p>
724 pub fn disconnect_timeout_in_seconds(mut self, input: i32) -> Self {
725 self.disconnect_timeout_in_seconds = ::std::option::Option::Some(input);
726 self
727 }
728 /// <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>
729 /// <p>Specify a value between 60 and 36000.</p>
730 pub fn set_disconnect_timeout_in_seconds(mut self, input: ::std::option::Option<i32>) -> Self {
731 self.disconnect_timeout_in_seconds = input;
732 self
733 }
734 /// <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>
735 /// <p>Specify a value between 60 and 36000.</p>
736 pub fn get_disconnect_timeout_in_seconds(&self) -> &::std::option::Option<i32> {
737 &self.disconnect_timeout_in_seconds
738 }
739 /// <p>Deletes the VPC association for the specified fleet.</p>
740 #[deprecated]
741 pub fn delete_vpc_config(mut self, input: bool) -> Self {
742 self.delete_vpc_config = ::std::option::Option::Some(input);
743 self
744 }
745 /// <p>Deletes the VPC association for the specified fleet.</p>
746 #[deprecated]
747 pub fn set_delete_vpc_config(mut self, input: ::std::option::Option<bool>) -> Self {
748 self.delete_vpc_config = input;
749 self
750 }
751 /// <p>Deletes the VPC association for the specified fleet.</p>
752 #[deprecated]
753 pub fn get_delete_vpc_config(&self) -> &::std::option::Option<bool> {
754 &self.delete_vpc_config
755 }
756 /// <p>The description to display.</p>
757 pub fn description(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
758 self.description = ::std::option::Option::Some(input.into());
759 self
760 }
761 /// <p>The description to display.</p>
762 pub fn set_description(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
763 self.description = input;
764 self
765 }
766 /// <p>The description to display.</p>
767 pub fn get_description(&self) -> &::std::option::Option<::std::string::String> {
768 &self.description
769 }
770 /// <p>The fleet name to display.</p>
771 pub fn display_name(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
772 self.display_name = ::std::option::Option::Some(input.into());
773 self
774 }
775 /// <p>The fleet name to display.</p>
776 pub fn set_display_name(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
777 self.display_name = input;
778 self
779 }
780 /// <p>The fleet name to display.</p>
781 pub fn get_display_name(&self) -> &::std::option::Option<::std::string::String> {
782 &self.display_name
783 }
784 /// <p>Enables or disables default internet access for the fleet.</p>
785 pub fn enable_default_internet_access(mut self, input: bool) -> Self {
786 self.enable_default_internet_access = ::std::option::Option::Some(input);
787 self
788 }
789 /// <p>Enables or disables default internet access for the fleet.</p>
790 pub fn set_enable_default_internet_access(mut self, input: ::std::option::Option<bool>) -> Self {
791 self.enable_default_internet_access = input;
792 self
793 }
794 /// <p>Enables or disables default internet access for the fleet.</p>
795 pub fn get_enable_default_internet_access(&self) -> &::std::option::Option<bool> {
796 &self.enable_default_internet_access
797 }
798 /// <p>The name of the directory and organizational unit (OU) to use to join the fleet to a Microsoft Active Directory domain.</p>
799 pub fn domain_join_info(mut self, input: crate::types::DomainJoinInfo) -> Self {
800 self.domain_join_info = ::std::option::Option::Some(input);
801 self
802 }
803 /// <p>The name of the directory and organizational unit (OU) to use to join the fleet to a Microsoft Active Directory domain.</p>
804 pub fn set_domain_join_info(mut self, input: ::std::option::Option<crate::types::DomainJoinInfo>) -> Self {
805 self.domain_join_info = input;
806 self
807 }
808 /// <p>The name of the directory and organizational unit (OU) to use to join the fleet to a Microsoft Active Directory domain.</p>
809 pub fn get_domain_join_info(&self) -> &::std::option::Option<crate::types::DomainJoinInfo> {
810 &self.domain_join_info
811 }
812 /// <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>
813 /// <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>
814 /// <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>
815 /// </note>
816 pub fn idle_disconnect_timeout_in_seconds(mut self, input: i32) -> Self {
817 self.idle_disconnect_timeout_in_seconds = ::std::option::Option::Some(input);
818 self
819 }
820 /// <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>
821 /// <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>
822 /// <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>
823 /// </note>
824 pub fn set_idle_disconnect_timeout_in_seconds(mut self, input: ::std::option::Option<i32>) -> Self {
825 self.idle_disconnect_timeout_in_seconds = input;
826 self
827 }
828 /// <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>
829 /// <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>
830 /// <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>
831 /// </note>
832 pub fn get_idle_disconnect_timeout_in_seconds(&self) -> &::std::option::Option<i32> {
833 &self.idle_disconnect_timeout_in_seconds
834 }
835 /// Appends an item to `attributes_to_delete`.
836 ///
837 /// To override the contents of this collection use [`set_attributes_to_delete`](Self::set_attributes_to_delete).
838 ///
839 /// <p>The fleet attributes to delete.</p>
840 pub fn attributes_to_delete(mut self, input: crate::types::FleetAttribute) -> Self {
841 let mut v = self.attributes_to_delete.unwrap_or_default();
842 v.push(input);
843 self.attributes_to_delete = ::std::option::Option::Some(v);
844 self
845 }
846 /// <p>The fleet attributes to delete.</p>
847 pub fn set_attributes_to_delete(mut self, input: ::std::option::Option<::std::vec::Vec<crate::types::FleetAttribute>>) -> Self {
848 self.attributes_to_delete = input;
849 self
850 }
851 /// <p>The fleet attributes to delete.</p>
852 pub fn get_attributes_to_delete(&self) -> &::std::option::Option<::std::vec::Vec<crate::types::FleetAttribute>> {
853 &self.attributes_to_delete
854 }
855 /// <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. AppStream 2.0 retrieves the temporary credentials and creates the <b>appstream_machine_role</b> credential profile on the instance.</p>
856 /// <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 AppStream 2.0 Streaming Instances</a> in the <i>Amazon AppStream 2.0 Administration Guide</i>.</p>
857 pub fn iam_role_arn(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
858 self.iam_role_arn = ::std::option::Option::Some(input.into());
859 self
860 }
861 /// <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. AppStream 2.0 retrieves the temporary credentials and creates the <b>appstream_machine_role</b> credential profile on the instance.</p>
862 /// <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 AppStream 2.0 Streaming Instances</a> in the <i>Amazon AppStream 2.0 Administration Guide</i>.</p>
863 pub fn set_iam_role_arn(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
864 self.iam_role_arn = input;
865 self
866 }
867 /// <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. AppStream 2.0 retrieves the temporary credentials and creates the <b>appstream_machine_role</b> credential profile on the instance.</p>
868 /// <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 AppStream 2.0 Streaming Instances</a> in the <i>Amazon AppStream 2.0 Administration Guide</i>.</p>
869 pub fn get_iam_role_arn(&self) -> &::std::option::Option<::std::string::String> {
870 &self.iam_role_arn
871 }
872 /// <p>The AppStream 2.0 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>
873 /// <p>The default value is <code>APP</code>.</p>
874 pub fn stream_view(mut self, input: crate::types::StreamView) -> Self {
875 self.stream_view = ::std::option::Option::Some(input);
876 self
877 }
878 /// <p>The AppStream 2.0 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>
879 /// <p>The default value is <code>APP</code>.</p>
880 pub fn set_stream_view(mut self, input: ::std::option::Option<crate::types::StreamView>) -> Self {
881 self.stream_view = input;
882 self
883 }
884 /// <p>The AppStream 2.0 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>
885 /// <p>The default value is <code>APP</code>.</p>
886 pub fn get_stream_view(&self) -> &::std::option::Option<crate::types::StreamView> {
887 &self.stream_view
888 }
889 /// <p>The platform of the fleet. WINDOWS_SERVER_2019 and AMAZON_LINUX2 are supported for Elastic fleets.</p>
890 pub fn platform(mut self, input: crate::types::PlatformType) -> Self {
891 self.platform = ::std::option::Option::Some(input);
892 self
893 }
894 /// <p>The platform of the fleet. WINDOWS_SERVER_2019 and AMAZON_LINUX2 are supported for Elastic fleets.</p>
895 pub fn set_platform(mut self, input: ::std::option::Option<crate::types::PlatformType>) -> Self {
896 self.platform = input;
897 self
898 }
899 /// <p>The platform of the fleet. WINDOWS_SERVER_2019 and AMAZON_LINUX2 are supported for Elastic fleets.</p>
900 pub fn get_platform(&self) -> &::std::option::Option<crate::types::PlatformType> {
901 &self.platform
902 }
903 /// <p>The maximum number of concurrent sessions for a fleet.</p>
904 pub fn max_concurrent_sessions(mut self, input: i32) -> Self {
905 self.max_concurrent_sessions = ::std::option::Option::Some(input);
906 self
907 }
908 /// <p>The maximum number of concurrent sessions for a fleet.</p>
909 pub fn set_max_concurrent_sessions(mut self, input: ::std::option::Option<i32>) -> Self {
910 self.max_concurrent_sessions = input;
911 self
912 }
913 /// <p>The maximum number of concurrent sessions for a fleet.</p>
914 pub fn get_max_concurrent_sessions(&self) -> &::std::option::Option<i32> {
915 &self.max_concurrent_sessions
916 }
917 /// Appends an item to `usb_device_filter_strings`.
918 ///
919 /// To override the contents of this collection use [`set_usb_device_filter_strings`](Self::set_usb_device_filter_strings).
920 ///
921 /// <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>
922 pub fn usb_device_filter_strings(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
923 let mut v = self.usb_device_filter_strings.unwrap_or_default();
924 v.push(input.into());
925 self.usb_device_filter_strings = ::std::option::Option::Some(v);
926 self
927 }
928 /// <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>
929 pub fn set_usb_device_filter_strings(mut self, input: ::std::option::Option<::std::vec::Vec<::std::string::String>>) -> Self {
930 self.usb_device_filter_strings = input;
931 self
932 }
933 /// <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>
934 pub fn get_usb_device_filter_strings(&self) -> &::std::option::Option<::std::vec::Vec<::std::string::String>> {
935 &self.usb_device_filter_strings
936 }
937 /// <p>The S3 location of the session scripts configuration zip file. This only applies to Elastic fleets.</p>
938 pub fn session_script_s3_location(mut self, input: crate::types::S3Location) -> Self {
939 self.session_script_s3_location = ::std::option::Option::Some(input);
940 self
941 }
942 /// <p>The S3 location of the session scripts configuration zip file. This only applies to Elastic fleets.</p>
943 pub fn set_session_script_s3_location(mut self, input: ::std::option::Option<crate::types::S3Location>) -> Self {
944 self.session_script_s3_location = input;
945 self
946 }
947 /// <p>The S3 location of the session scripts configuration zip file. This only applies to Elastic fleets.</p>
948 pub fn get_session_script_s3_location(&self) -> &::std::option::Option<crate::types::S3Location> {
949 &self.session_script_s3_location
950 }
951 /// <p>The maximum number of user sessions on an instance. This only applies to multi-session fleets.</p>
952 pub fn max_sessions_per_instance(mut self, input: i32) -> Self {
953 self.max_sessions_per_instance = ::std::option::Option::Some(input);
954 self
955 }
956 /// <p>The maximum number of user sessions on an instance. This only applies to multi-session fleets.</p>
957 pub fn set_max_sessions_per_instance(mut self, input: ::std::option::Option<i32>) -> Self {
958 self.max_sessions_per_instance = input;
959 self
960 }
961 /// <p>The maximum number of user sessions on an instance. This only applies to multi-session fleets.</p>
962 pub fn get_max_sessions_per_instance(&self) -> &::std::option::Option<i32> {
963 &self.max_sessions_per_instance
964 }
965 /// Consumes the builder and constructs a [`UpdateFleetInput`](crate::operation::update_fleet::UpdateFleetInput).
966 pub fn build(self) -> ::std::result::Result<crate::operation::update_fleet::UpdateFleetInput, ::aws_smithy_types::error::operation::BuildError> {
967 ::std::result::Result::Ok(crate::operation::update_fleet::UpdateFleetInput {
968 image_name: self.image_name,
969 image_arn: self.image_arn,
970 name: self.name,
971 instance_type: self.instance_type,
972 compute_capacity: self.compute_capacity,
973 vpc_config: self.vpc_config,
974 max_user_duration_in_seconds: self.max_user_duration_in_seconds,
975 disconnect_timeout_in_seconds: self.disconnect_timeout_in_seconds,
976 delete_vpc_config: self.delete_vpc_config,
977 description: self.description,
978 display_name: self.display_name,
979 enable_default_internet_access: self.enable_default_internet_access,
980 domain_join_info: self.domain_join_info,
981 idle_disconnect_timeout_in_seconds: self.idle_disconnect_timeout_in_seconds,
982 attributes_to_delete: self.attributes_to_delete,
983 iam_role_arn: self.iam_role_arn,
984 stream_view: self.stream_view,
985 platform: self.platform,
986 max_concurrent_sessions: self.max_concurrent_sessions,
987 usb_device_filter_strings: self.usb_device_filter_strings,
988 session_script_s3_location: self.session_script_s3_location,
989 max_sessions_per_instance: self.max_sessions_per_instance,
990 })
991 }
992}