Skip to main content

aws_sdk_appstream/operation/create_fleet/
_create_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 CreateFleetInput {
6    /// <p>A unique name for the fleet.</p>
7    pub name: ::std::option::Option<::std::string::String>,
8    /// <p>The name of the image used to create the fleet.</p>
9    pub image_name: ::std::option::Option<::std::string::String>,
10    /// <p>The ARN of the public, private, or shared image to use.</p>
11    pub image_arn: ::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.12xlarge</p></li>
78    /// <li>
79    /// <p>stream.graphics.g5.16xlarge</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 fleet type.</p>
126    /// <dl>
127    /// <dt>
128    /// ALWAYS_ON
129    /// </dt>
130    /// <dd>
131    /// <p>Provides users with instant-on access to their apps. You are charged for all running instances in your fleet, even if no users are streaming apps.</p>
132    /// </dd>
133    /// <dt>
134    /// ON_DEMAND
135    /// </dt>
136    /// <dd>
137    /// <p>Provide users with access to applications after they connect, which takes one to two minutes. You are charged for instance streaming when users are connected and a small hourly fee for instances that are not streaming apps.</p>
138    /// </dd>
139    /// </dl>
140    pub fleet_type: ::std::option::Option<crate::types::FleetType>,
141    /// <p>The desired capacity for the fleet. This is not allowed for Elastic fleets. For Elastic fleets, specify MaxConcurrentSessions instead.</p>
142    pub compute_capacity: ::std::option::Option<crate::types::ComputeCapacity>,
143    /// <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>
144    pub vpc_config: ::std::option::Option<crate::types::VpcConfig>,
145    /// <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>
146    /// <p>Specify a value between 600 and 432000.</p>
147    pub max_user_duration_in_seconds: ::std::option::Option<i32>,
148    /// <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>
149    /// <p>Specify a value between 60 and 36000.</p>
150    pub disconnect_timeout_in_seconds: ::std::option::Option<i32>,
151    /// <p>The description to display.</p>
152    pub description: ::std::option::Option<::std::string::String>,
153    /// <p>The fleet name to display.</p>
154    pub display_name: ::std::option::Option<::std::string::String>,
155    /// <p>Enables or disables default internet access for the fleet.</p>
156    pub enable_default_internet_access: ::std::option::Option<bool>,
157    /// <p>The name of the directory and organizational unit (OU) to use to join the fleet to a Microsoft Active Directory domain. This is not allowed for Elastic fleets.</p>
158    pub domain_join_info: ::std::option::Option<crate::types::DomainJoinInfo>,
159    /// <p>The tags to associate with the fleet. A tag is a key-value pair, and the value is optional. For example, Environment=Test. If you do not specify a value, Environment=.</p>
160    /// <p>If you do not specify a value, the value is set to an empty string.</p>
161    /// <p>Generally allowed characters are: letters, numbers, and spaces representable in UTF-8, and the following special characters:</p>
162    /// <p>_ . : / = + \ - @</p>
163    /// <p>For more information, see <a href="https://docs.aws.amazon.com/appstream2/latest/developerguide/tagging-basic.html">Tagging Your Resources</a> in the <i>Amazon WorkSpaces Applications Administration Guide</i>.</p>
164    pub tags: ::std::option::Option<::std::collections::HashMap<::std::string::String, ::std::string::String>>,
165    /// <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 they 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>
166    /// <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>
167    /// <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>
168    /// </note>
169    pub idle_disconnect_timeout_in_seconds: ::std::option::Option<i32>,
170    /// <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>
171    /// <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>
172    pub iam_role_arn: ::std::option::Option<::std::string::String>,
173    /// <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>
174    /// <p>The default value is <code>APP</code>.</p>
175    pub stream_view: ::std::option::Option<crate::types::StreamView>,
176    /// <p>The fleet platform. WINDOWS_SERVER_2019, AMAZON_LINUX2 and UBUNTU_PRO_2404 are supported for Elastic fleets.</p>
177    pub platform: ::std::option::Option<crate::types::PlatformType>,
178    /// <p>The maximum concurrent sessions of the Elastic fleet. This is required for Elastic fleets, and not allowed for other fleet types.</p>
179    pub max_concurrent_sessions: ::std::option::Option<i32>,
180    /// <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>
181    pub usb_device_filter_strings: ::std::option::Option<::std::vec::Vec<::std::string::String>>,
182    /// <p>The S3 location of the session scripts configuration zip file. This only applies to Elastic fleets.</p>
183    pub session_script_s3_location: ::std::option::Option<crate::types::S3Location>,
184    /// <p>The maximum number of user sessions on an instance. This only applies to multi-session fleets.</p>
185    pub max_sessions_per_instance: ::std::option::Option<i32>,
186    /// <p>The configuration for the root volume of fleet instances. Use this to customize storage capacity from 200 GB up to 500 GB based on your application requirements.</p>
187    pub root_volume_config: ::std::option::Option<crate::types::VolumeConfig>,
188    /// <p>Set to true to disable Instance Metadata Service Version 1 (IMDSv1) and enforce IMDSv2. Set to false to enable both IMDSv1 and IMDSv2.</p><note>
189    /// <p>Before disabling IMDSv1, ensure your WorkSpaces Applications images are running the agent version or managed image update released on or after January 16, 2024 to support IMDSv2 enforcement.</p>
190    /// </note>
191    pub disable_imdsv1: ::std::option::Option<bool>,
192}
193impl CreateFleetInput {
194    /// <p>A unique name for the fleet.</p>
195    pub fn name(&self) -> ::std::option::Option<&str> {
196        self.name.as_deref()
197    }
198    /// <p>The name of the image used to create the fleet.</p>
199    pub fn image_name(&self) -> ::std::option::Option<&str> {
200        self.image_name.as_deref()
201    }
202    /// <p>The ARN of the public, private, or shared image to use.</p>
203    pub fn image_arn(&self) -> ::std::option::Option<&str> {
204        self.image_arn.as_deref()
205    }
206    /// <p>The instance type to use when launching fleet instances. The following instance types are available:</p>
207    /// <ul>
208    /// <li>
209    /// <p>stream.standard.small</p></li>
210    /// <li>
211    /// <p>stream.standard.medium</p></li>
212    /// <li>
213    /// <p>stream.standard.large</p></li>
214    /// <li>
215    /// <p>stream.standard.xlarge</p></li>
216    /// <li>
217    /// <p>stream.standard.2xlarge</p></li>
218    /// <li>
219    /// <p>stream.compute.large</p></li>
220    /// <li>
221    /// <p>stream.compute.xlarge</p></li>
222    /// <li>
223    /// <p>stream.compute.2xlarge</p></li>
224    /// <li>
225    /// <p>stream.compute.4xlarge</p></li>
226    /// <li>
227    /// <p>stream.compute.8xlarge</p></li>
228    /// <li>
229    /// <p>stream.memory.large</p></li>
230    /// <li>
231    /// <p>stream.memory.xlarge</p></li>
232    /// <li>
233    /// <p>stream.memory.2xlarge</p></li>
234    /// <li>
235    /// <p>stream.memory.4xlarge</p></li>
236    /// <li>
237    /// <p>stream.memory.8xlarge</p></li>
238    /// <li>
239    /// <p>stream.memory.z1d.large</p></li>
240    /// <li>
241    /// <p>stream.memory.z1d.xlarge</p></li>
242    /// <li>
243    /// <p>stream.memory.z1d.2xlarge</p></li>
244    /// <li>
245    /// <p>stream.memory.z1d.3xlarge</p></li>
246    /// <li>
247    /// <p>stream.memory.z1d.6xlarge</p></li>
248    /// <li>
249    /// <p>stream.memory.z1d.12xlarge</p></li>
250    /// <li>
251    /// <p>stream.graphics.g4dn.xlarge</p></li>
252    /// <li>
253    /// <p>stream.graphics.g4dn.2xlarge</p></li>
254    /// <li>
255    /// <p>stream.graphics.g4dn.4xlarge</p></li>
256    /// <li>
257    /// <p>stream.graphics.g4dn.8xlarge</p></li>
258    /// <li>
259    /// <p>stream.graphics.g4dn.12xlarge</p></li>
260    /// <li>
261    /// <p>stream.graphics.g4dn.16xlarge</p></li>
262    /// <li>
263    /// <p>stream.graphics.g5.xlarge</p></li>
264    /// <li>
265    /// <p>stream.graphics.g5.2xlarge</p></li>
266    /// <li>
267    /// <p>stream.graphics.g5.4xlarge</p></li>
268    /// <li>
269    /// <p>stream.graphics.g5.8xlarge</p></li>
270    /// <li>
271    /// <p>stream.graphics.g5.12xlarge</p></li>
272    /// <li>
273    /// <p>stream.graphics.g5.16xlarge</p></li>
274    /// <li>
275    /// <p>stream.graphics.g5.24xlarge</p></li>
276    /// <li>
277    /// <p>stream.graphics.g6.xlarge</p></li>
278    /// <li>
279    /// <p>stream.graphics.g6.2xlarge</p></li>
280    /// <li>
281    /// <p>stream.graphics.g6.4xlarge</p></li>
282    /// <li>
283    /// <p>stream.graphics.g6.8xlarge</p></li>
284    /// <li>
285    /// <p>stream.graphics.g6.16xlarge</p></li>
286    /// <li>
287    /// <p>stream.graphics.g6.12xlarge</p></li>
288    /// <li>
289    /// <p>stream.graphics.g6.24xlarge</p></li>
290    /// <li>
291    /// <p>stream.graphics.gr6.4xlarge</p></li>
292    /// <li>
293    /// <p>stream.graphics.gr6.8xlarge</p></li>
294    /// <li>
295    /// <p>stream.graphics.g6f.large</p></li>
296    /// <li>
297    /// <p>stream.graphics.g6f.xlarge</p></li>
298    /// <li>
299    /// <p>stream.graphics.g6f.2xlarge</p></li>
300    /// <li>
301    /// <p>stream.graphics.g6f.4xlarge</p></li>
302    /// <li>
303    /// <p>stream.graphics.gr6f.4xlarge</p></li>
304    /// </ul>
305    /// <p>The following instance types are available for Elastic fleets:</p>
306    /// <ul>
307    /// <li>
308    /// <p>stream.standard.small</p></li>
309    /// <li>
310    /// <p>stream.standard.medium</p></li>
311    /// <li>
312    /// <p>stream.standard.large</p></li>
313    /// <li>
314    /// <p>stream.standard.xlarge</p></li>
315    /// <li>
316    /// <p>stream.standard.2xlarge</p></li>
317    /// </ul>
318    pub fn instance_type(&self) -> ::std::option::Option<&str> {
319        self.instance_type.as_deref()
320    }
321    /// <p>The fleet type.</p>
322    /// <dl>
323    /// <dt>
324    /// ALWAYS_ON
325    /// </dt>
326    /// <dd>
327    /// <p>Provides users with instant-on access to their apps. You are charged for all running instances in your fleet, even if no users are streaming apps.</p>
328    /// </dd>
329    /// <dt>
330    /// ON_DEMAND
331    /// </dt>
332    /// <dd>
333    /// <p>Provide users with access to applications after they connect, which takes one to two minutes. You are charged for instance streaming when users are connected and a small hourly fee for instances that are not streaming apps.</p>
334    /// </dd>
335    /// </dl>
336    pub fn fleet_type(&self) -> ::std::option::Option<&crate::types::FleetType> {
337        self.fleet_type.as_ref()
338    }
339    /// <p>The desired capacity for the fleet. This is not allowed for Elastic fleets. For Elastic fleets, specify MaxConcurrentSessions instead.</p>
340    pub fn compute_capacity(&self) -> ::std::option::Option<&crate::types::ComputeCapacity> {
341        self.compute_capacity.as_ref()
342    }
343    /// <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>
344    pub fn vpc_config(&self) -> ::std::option::Option<&crate::types::VpcConfig> {
345        self.vpc_config.as_ref()
346    }
347    /// <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>
348    /// <p>Specify a value between 600 and 432000.</p>
349    pub fn max_user_duration_in_seconds(&self) -> ::std::option::Option<i32> {
350        self.max_user_duration_in_seconds
351    }
352    /// <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>
353    /// <p>Specify a value between 60 and 36000.</p>
354    pub fn disconnect_timeout_in_seconds(&self) -> ::std::option::Option<i32> {
355        self.disconnect_timeout_in_seconds
356    }
357    /// <p>The description to display.</p>
358    pub fn description(&self) -> ::std::option::Option<&str> {
359        self.description.as_deref()
360    }
361    /// <p>The fleet name to display.</p>
362    pub fn display_name(&self) -> ::std::option::Option<&str> {
363        self.display_name.as_deref()
364    }
365    /// <p>Enables or disables default internet access for the fleet.</p>
366    pub fn enable_default_internet_access(&self) -> ::std::option::Option<bool> {
367        self.enable_default_internet_access
368    }
369    /// <p>The name of the directory and organizational unit (OU) to use to join the fleet to a Microsoft Active Directory domain. This is not allowed for Elastic fleets.</p>
370    pub fn domain_join_info(&self) -> ::std::option::Option<&crate::types::DomainJoinInfo> {
371        self.domain_join_info.as_ref()
372    }
373    /// <p>The tags to associate with the fleet. A tag is a key-value pair, and the value is optional. For example, Environment=Test. If you do not specify a value, Environment=.</p>
374    /// <p>If you do not specify a value, the value is set to an empty string.</p>
375    /// <p>Generally allowed characters are: letters, numbers, and spaces representable in UTF-8, and the following special characters:</p>
376    /// <p>_ . : / = + \ - @</p>
377    /// <p>For more information, see <a href="https://docs.aws.amazon.com/appstream2/latest/developerguide/tagging-basic.html">Tagging Your Resources</a> in the <i>Amazon WorkSpaces Applications Administration Guide</i>.</p>
378    pub fn tags(&self) -> ::std::option::Option<&::std::collections::HashMap<::std::string::String, ::std::string::String>> {
379        self.tags.as_ref()
380    }
381    /// <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 they 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>
382    /// <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>
383    /// <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>
384    /// </note>
385    pub fn idle_disconnect_timeout_in_seconds(&self) -> ::std::option::Option<i32> {
386        self.idle_disconnect_timeout_in_seconds
387    }
388    /// <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>
389    /// <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>
390    pub fn iam_role_arn(&self) -> ::std::option::Option<&str> {
391        self.iam_role_arn.as_deref()
392    }
393    /// <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>
394    /// <p>The default value is <code>APP</code>.</p>
395    pub fn stream_view(&self) -> ::std::option::Option<&crate::types::StreamView> {
396        self.stream_view.as_ref()
397    }
398    /// <p>The fleet platform. WINDOWS_SERVER_2019, AMAZON_LINUX2 and UBUNTU_PRO_2404 are supported for Elastic fleets.</p>
399    pub fn platform(&self) -> ::std::option::Option<&crate::types::PlatformType> {
400        self.platform.as_ref()
401    }
402    /// <p>The maximum concurrent sessions of the Elastic fleet. This is required for Elastic fleets, and not allowed for other fleet types.</p>
403    pub fn max_concurrent_sessions(&self) -> ::std::option::Option<i32> {
404        self.max_concurrent_sessions
405    }
406    /// <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>
407    ///
408    /// 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()`.
409    pub fn usb_device_filter_strings(&self) -> &[::std::string::String] {
410        self.usb_device_filter_strings.as_deref().unwrap_or_default()
411    }
412    /// <p>The S3 location of the session scripts configuration zip file. This only applies to Elastic fleets.</p>
413    pub fn session_script_s3_location(&self) -> ::std::option::Option<&crate::types::S3Location> {
414        self.session_script_s3_location.as_ref()
415    }
416    /// <p>The maximum number of user sessions on an instance. This only applies to multi-session fleets.</p>
417    pub fn max_sessions_per_instance(&self) -> ::std::option::Option<i32> {
418        self.max_sessions_per_instance
419    }
420    /// <p>The configuration for the root volume of fleet instances. Use this to customize storage capacity from 200 GB up to 500 GB based on your application requirements.</p>
421    pub fn root_volume_config(&self) -> ::std::option::Option<&crate::types::VolumeConfig> {
422        self.root_volume_config.as_ref()
423    }
424    /// <p>Set to true to disable Instance Metadata Service Version 1 (IMDSv1) and enforce IMDSv2. Set to false to enable both IMDSv1 and IMDSv2.</p><note>
425    /// <p>Before disabling IMDSv1, ensure your WorkSpaces Applications images are running the agent version or managed image update released on or after January 16, 2024 to support IMDSv2 enforcement.</p>
426    /// </note>
427    pub fn disable_imdsv1(&self) -> ::std::option::Option<bool> {
428        self.disable_imdsv1
429    }
430}
431impl CreateFleetInput {
432    /// Creates a new builder-style object to manufacture [`CreateFleetInput`](crate::operation::create_fleet::CreateFleetInput).
433    pub fn builder() -> crate::operation::create_fleet::builders::CreateFleetInputBuilder {
434        crate::operation::create_fleet::builders::CreateFleetInputBuilder::default()
435    }
436}
437
438/// A builder for [`CreateFleetInput`](crate::operation::create_fleet::CreateFleetInput).
439#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
440#[non_exhaustive]
441pub struct CreateFleetInputBuilder {
442    pub(crate) name: ::std::option::Option<::std::string::String>,
443    pub(crate) image_name: ::std::option::Option<::std::string::String>,
444    pub(crate) image_arn: ::std::option::Option<::std::string::String>,
445    pub(crate) instance_type: ::std::option::Option<::std::string::String>,
446    pub(crate) fleet_type: ::std::option::Option<crate::types::FleetType>,
447    pub(crate) compute_capacity: ::std::option::Option<crate::types::ComputeCapacity>,
448    pub(crate) vpc_config: ::std::option::Option<crate::types::VpcConfig>,
449    pub(crate) max_user_duration_in_seconds: ::std::option::Option<i32>,
450    pub(crate) disconnect_timeout_in_seconds: ::std::option::Option<i32>,
451    pub(crate) description: ::std::option::Option<::std::string::String>,
452    pub(crate) display_name: ::std::option::Option<::std::string::String>,
453    pub(crate) enable_default_internet_access: ::std::option::Option<bool>,
454    pub(crate) domain_join_info: ::std::option::Option<crate::types::DomainJoinInfo>,
455    pub(crate) tags: ::std::option::Option<::std::collections::HashMap<::std::string::String, ::std::string::String>>,
456    pub(crate) idle_disconnect_timeout_in_seconds: ::std::option::Option<i32>,
457    pub(crate) iam_role_arn: ::std::option::Option<::std::string::String>,
458    pub(crate) stream_view: ::std::option::Option<crate::types::StreamView>,
459    pub(crate) platform: ::std::option::Option<crate::types::PlatformType>,
460    pub(crate) max_concurrent_sessions: ::std::option::Option<i32>,
461    pub(crate) usb_device_filter_strings: ::std::option::Option<::std::vec::Vec<::std::string::String>>,
462    pub(crate) session_script_s3_location: ::std::option::Option<crate::types::S3Location>,
463    pub(crate) max_sessions_per_instance: ::std::option::Option<i32>,
464    pub(crate) root_volume_config: ::std::option::Option<crate::types::VolumeConfig>,
465    pub(crate) disable_imdsv1: ::std::option::Option<bool>,
466}
467impl CreateFleetInputBuilder {
468    /// <p>A unique name for the fleet.</p>
469    /// This field is required.
470    pub fn name(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
471        self.name = ::std::option::Option::Some(input.into());
472        self
473    }
474    /// <p>A unique name for the fleet.</p>
475    pub fn set_name(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
476        self.name = input;
477        self
478    }
479    /// <p>A unique name for the fleet.</p>
480    pub fn get_name(&self) -> &::std::option::Option<::std::string::String> {
481        &self.name
482    }
483    /// <p>The name of the image used to create the fleet.</p>
484    pub fn image_name(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
485        self.image_name = ::std::option::Option::Some(input.into());
486        self
487    }
488    /// <p>The name of the image used to create the fleet.</p>
489    pub fn set_image_name(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
490        self.image_name = input;
491        self
492    }
493    /// <p>The name of the image used to create the fleet.</p>
494    pub fn get_image_name(&self) -> &::std::option::Option<::std::string::String> {
495        &self.image_name
496    }
497    /// <p>The ARN of the public, private, or shared image to use.</p>
498    pub fn image_arn(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
499        self.image_arn = ::std::option::Option::Some(input.into());
500        self
501    }
502    /// <p>The ARN of the public, private, or shared image to use.</p>
503    pub fn set_image_arn(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
504        self.image_arn = input;
505        self
506    }
507    /// <p>The ARN of the public, private, or shared image to use.</p>
508    pub fn get_image_arn(&self) -> &::std::option::Option<::std::string::String> {
509        &self.image_arn
510    }
511    /// <p>The instance type to use when launching fleet instances. The following instance types are available:</p>
512    /// <ul>
513    /// <li>
514    /// <p>stream.standard.small</p></li>
515    /// <li>
516    /// <p>stream.standard.medium</p></li>
517    /// <li>
518    /// <p>stream.standard.large</p></li>
519    /// <li>
520    /// <p>stream.standard.xlarge</p></li>
521    /// <li>
522    /// <p>stream.standard.2xlarge</p></li>
523    /// <li>
524    /// <p>stream.compute.large</p></li>
525    /// <li>
526    /// <p>stream.compute.xlarge</p></li>
527    /// <li>
528    /// <p>stream.compute.2xlarge</p></li>
529    /// <li>
530    /// <p>stream.compute.4xlarge</p></li>
531    /// <li>
532    /// <p>stream.compute.8xlarge</p></li>
533    /// <li>
534    /// <p>stream.memory.large</p></li>
535    /// <li>
536    /// <p>stream.memory.xlarge</p></li>
537    /// <li>
538    /// <p>stream.memory.2xlarge</p></li>
539    /// <li>
540    /// <p>stream.memory.4xlarge</p></li>
541    /// <li>
542    /// <p>stream.memory.8xlarge</p></li>
543    /// <li>
544    /// <p>stream.memory.z1d.large</p></li>
545    /// <li>
546    /// <p>stream.memory.z1d.xlarge</p></li>
547    /// <li>
548    /// <p>stream.memory.z1d.2xlarge</p></li>
549    /// <li>
550    /// <p>stream.memory.z1d.3xlarge</p></li>
551    /// <li>
552    /// <p>stream.memory.z1d.6xlarge</p></li>
553    /// <li>
554    /// <p>stream.memory.z1d.12xlarge</p></li>
555    /// <li>
556    /// <p>stream.graphics.g4dn.xlarge</p></li>
557    /// <li>
558    /// <p>stream.graphics.g4dn.2xlarge</p></li>
559    /// <li>
560    /// <p>stream.graphics.g4dn.4xlarge</p></li>
561    /// <li>
562    /// <p>stream.graphics.g4dn.8xlarge</p></li>
563    /// <li>
564    /// <p>stream.graphics.g4dn.12xlarge</p></li>
565    /// <li>
566    /// <p>stream.graphics.g4dn.16xlarge</p></li>
567    /// <li>
568    /// <p>stream.graphics.g5.xlarge</p></li>
569    /// <li>
570    /// <p>stream.graphics.g5.2xlarge</p></li>
571    /// <li>
572    /// <p>stream.graphics.g5.4xlarge</p></li>
573    /// <li>
574    /// <p>stream.graphics.g5.8xlarge</p></li>
575    /// <li>
576    /// <p>stream.graphics.g5.12xlarge</p></li>
577    /// <li>
578    /// <p>stream.graphics.g5.16xlarge</p></li>
579    /// <li>
580    /// <p>stream.graphics.g5.24xlarge</p></li>
581    /// <li>
582    /// <p>stream.graphics.g6.xlarge</p></li>
583    /// <li>
584    /// <p>stream.graphics.g6.2xlarge</p></li>
585    /// <li>
586    /// <p>stream.graphics.g6.4xlarge</p></li>
587    /// <li>
588    /// <p>stream.graphics.g6.8xlarge</p></li>
589    /// <li>
590    /// <p>stream.graphics.g6.16xlarge</p></li>
591    /// <li>
592    /// <p>stream.graphics.g6.12xlarge</p></li>
593    /// <li>
594    /// <p>stream.graphics.g6.24xlarge</p></li>
595    /// <li>
596    /// <p>stream.graphics.gr6.4xlarge</p></li>
597    /// <li>
598    /// <p>stream.graphics.gr6.8xlarge</p></li>
599    /// <li>
600    /// <p>stream.graphics.g6f.large</p></li>
601    /// <li>
602    /// <p>stream.graphics.g6f.xlarge</p></li>
603    /// <li>
604    /// <p>stream.graphics.g6f.2xlarge</p></li>
605    /// <li>
606    /// <p>stream.graphics.g6f.4xlarge</p></li>
607    /// <li>
608    /// <p>stream.graphics.gr6f.4xlarge</p></li>
609    /// </ul>
610    /// <p>The following instance types are available for Elastic fleets:</p>
611    /// <ul>
612    /// <li>
613    /// <p>stream.standard.small</p></li>
614    /// <li>
615    /// <p>stream.standard.medium</p></li>
616    /// <li>
617    /// <p>stream.standard.large</p></li>
618    /// <li>
619    /// <p>stream.standard.xlarge</p></li>
620    /// <li>
621    /// <p>stream.standard.2xlarge</p></li>
622    /// </ul>
623    /// This field is required.
624    pub fn instance_type(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
625        self.instance_type = ::std::option::Option::Some(input.into());
626        self
627    }
628    /// <p>The instance type to use when launching fleet instances. The following instance types are available:</p>
629    /// <ul>
630    /// <li>
631    /// <p>stream.standard.small</p></li>
632    /// <li>
633    /// <p>stream.standard.medium</p></li>
634    /// <li>
635    /// <p>stream.standard.large</p></li>
636    /// <li>
637    /// <p>stream.standard.xlarge</p></li>
638    /// <li>
639    /// <p>stream.standard.2xlarge</p></li>
640    /// <li>
641    /// <p>stream.compute.large</p></li>
642    /// <li>
643    /// <p>stream.compute.xlarge</p></li>
644    /// <li>
645    /// <p>stream.compute.2xlarge</p></li>
646    /// <li>
647    /// <p>stream.compute.4xlarge</p></li>
648    /// <li>
649    /// <p>stream.compute.8xlarge</p></li>
650    /// <li>
651    /// <p>stream.memory.large</p></li>
652    /// <li>
653    /// <p>stream.memory.xlarge</p></li>
654    /// <li>
655    /// <p>stream.memory.2xlarge</p></li>
656    /// <li>
657    /// <p>stream.memory.4xlarge</p></li>
658    /// <li>
659    /// <p>stream.memory.8xlarge</p></li>
660    /// <li>
661    /// <p>stream.memory.z1d.large</p></li>
662    /// <li>
663    /// <p>stream.memory.z1d.xlarge</p></li>
664    /// <li>
665    /// <p>stream.memory.z1d.2xlarge</p></li>
666    /// <li>
667    /// <p>stream.memory.z1d.3xlarge</p></li>
668    /// <li>
669    /// <p>stream.memory.z1d.6xlarge</p></li>
670    /// <li>
671    /// <p>stream.memory.z1d.12xlarge</p></li>
672    /// <li>
673    /// <p>stream.graphics.g4dn.xlarge</p></li>
674    /// <li>
675    /// <p>stream.graphics.g4dn.2xlarge</p></li>
676    /// <li>
677    /// <p>stream.graphics.g4dn.4xlarge</p></li>
678    /// <li>
679    /// <p>stream.graphics.g4dn.8xlarge</p></li>
680    /// <li>
681    /// <p>stream.graphics.g4dn.12xlarge</p></li>
682    /// <li>
683    /// <p>stream.graphics.g4dn.16xlarge</p></li>
684    /// <li>
685    /// <p>stream.graphics.g5.xlarge</p></li>
686    /// <li>
687    /// <p>stream.graphics.g5.2xlarge</p></li>
688    /// <li>
689    /// <p>stream.graphics.g5.4xlarge</p></li>
690    /// <li>
691    /// <p>stream.graphics.g5.8xlarge</p></li>
692    /// <li>
693    /// <p>stream.graphics.g5.12xlarge</p></li>
694    /// <li>
695    /// <p>stream.graphics.g5.16xlarge</p></li>
696    /// <li>
697    /// <p>stream.graphics.g5.24xlarge</p></li>
698    /// <li>
699    /// <p>stream.graphics.g6.xlarge</p></li>
700    /// <li>
701    /// <p>stream.graphics.g6.2xlarge</p></li>
702    /// <li>
703    /// <p>stream.graphics.g6.4xlarge</p></li>
704    /// <li>
705    /// <p>stream.graphics.g6.8xlarge</p></li>
706    /// <li>
707    /// <p>stream.graphics.g6.16xlarge</p></li>
708    /// <li>
709    /// <p>stream.graphics.g6.12xlarge</p></li>
710    /// <li>
711    /// <p>stream.graphics.g6.24xlarge</p></li>
712    /// <li>
713    /// <p>stream.graphics.gr6.4xlarge</p></li>
714    /// <li>
715    /// <p>stream.graphics.gr6.8xlarge</p></li>
716    /// <li>
717    /// <p>stream.graphics.g6f.large</p></li>
718    /// <li>
719    /// <p>stream.graphics.g6f.xlarge</p></li>
720    /// <li>
721    /// <p>stream.graphics.g6f.2xlarge</p></li>
722    /// <li>
723    /// <p>stream.graphics.g6f.4xlarge</p></li>
724    /// <li>
725    /// <p>stream.graphics.gr6f.4xlarge</p></li>
726    /// </ul>
727    /// <p>The following instance types are available for Elastic fleets:</p>
728    /// <ul>
729    /// <li>
730    /// <p>stream.standard.small</p></li>
731    /// <li>
732    /// <p>stream.standard.medium</p></li>
733    /// <li>
734    /// <p>stream.standard.large</p></li>
735    /// <li>
736    /// <p>stream.standard.xlarge</p></li>
737    /// <li>
738    /// <p>stream.standard.2xlarge</p></li>
739    /// </ul>
740    pub fn set_instance_type(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
741        self.instance_type = input;
742        self
743    }
744    /// <p>The instance type to use when launching fleet instances. The following instance types are available:</p>
745    /// <ul>
746    /// <li>
747    /// <p>stream.standard.small</p></li>
748    /// <li>
749    /// <p>stream.standard.medium</p></li>
750    /// <li>
751    /// <p>stream.standard.large</p></li>
752    /// <li>
753    /// <p>stream.standard.xlarge</p></li>
754    /// <li>
755    /// <p>stream.standard.2xlarge</p></li>
756    /// <li>
757    /// <p>stream.compute.large</p></li>
758    /// <li>
759    /// <p>stream.compute.xlarge</p></li>
760    /// <li>
761    /// <p>stream.compute.2xlarge</p></li>
762    /// <li>
763    /// <p>stream.compute.4xlarge</p></li>
764    /// <li>
765    /// <p>stream.compute.8xlarge</p></li>
766    /// <li>
767    /// <p>stream.memory.large</p></li>
768    /// <li>
769    /// <p>stream.memory.xlarge</p></li>
770    /// <li>
771    /// <p>stream.memory.2xlarge</p></li>
772    /// <li>
773    /// <p>stream.memory.4xlarge</p></li>
774    /// <li>
775    /// <p>stream.memory.8xlarge</p></li>
776    /// <li>
777    /// <p>stream.memory.z1d.large</p></li>
778    /// <li>
779    /// <p>stream.memory.z1d.xlarge</p></li>
780    /// <li>
781    /// <p>stream.memory.z1d.2xlarge</p></li>
782    /// <li>
783    /// <p>stream.memory.z1d.3xlarge</p></li>
784    /// <li>
785    /// <p>stream.memory.z1d.6xlarge</p></li>
786    /// <li>
787    /// <p>stream.memory.z1d.12xlarge</p></li>
788    /// <li>
789    /// <p>stream.graphics.g4dn.xlarge</p></li>
790    /// <li>
791    /// <p>stream.graphics.g4dn.2xlarge</p></li>
792    /// <li>
793    /// <p>stream.graphics.g4dn.4xlarge</p></li>
794    /// <li>
795    /// <p>stream.graphics.g4dn.8xlarge</p></li>
796    /// <li>
797    /// <p>stream.graphics.g4dn.12xlarge</p></li>
798    /// <li>
799    /// <p>stream.graphics.g4dn.16xlarge</p></li>
800    /// <li>
801    /// <p>stream.graphics.g5.xlarge</p></li>
802    /// <li>
803    /// <p>stream.graphics.g5.2xlarge</p></li>
804    /// <li>
805    /// <p>stream.graphics.g5.4xlarge</p></li>
806    /// <li>
807    /// <p>stream.graphics.g5.8xlarge</p></li>
808    /// <li>
809    /// <p>stream.graphics.g5.12xlarge</p></li>
810    /// <li>
811    /// <p>stream.graphics.g5.16xlarge</p></li>
812    /// <li>
813    /// <p>stream.graphics.g5.24xlarge</p></li>
814    /// <li>
815    /// <p>stream.graphics.g6.xlarge</p></li>
816    /// <li>
817    /// <p>stream.graphics.g6.2xlarge</p></li>
818    /// <li>
819    /// <p>stream.graphics.g6.4xlarge</p></li>
820    /// <li>
821    /// <p>stream.graphics.g6.8xlarge</p></li>
822    /// <li>
823    /// <p>stream.graphics.g6.16xlarge</p></li>
824    /// <li>
825    /// <p>stream.graphics.g6.12xlarge</p></li>
826    /// <li>
827    /// <p>stream.graphics.g6.24xlarge</p></li>
828    /// <li>
829    /// <p>stream.graphics.gr6.4xlarge</p></li>
830    /// <li>
831    /// <p>stream.graphics.gr6.8xlarge</p></li>
832    /// <li>
833    /// <p>stream.graphics.g6f.large</p></li>
834    /// <li>
835    /// <p>stream.graphics.g6f.xlarge</p></li>
836    /// <li>
837    /// <p>stream.graphics.g6f.2xlarge</p></li>
838    /// <li>
839    /// <p>stream.graphics.g6f.4xlarge</p></li>
840    /// <li>
841    /// <p>stream.graphics.gr6f.4xlarge</p></li>
842    /// </ul>
843    /// <p>The following instance types are available for Elastic fleets:</p>
844    /// <ul>
845    /// <li>
846    /// <p>stream.standard.small</p></li>
847    /// <li>
848    /// <p>stream.standard.medium</p></li>
849    /// <li>
850    /// <p>stream.standard.large</p></li>
851    /// <li>
852    /// <p>stream.standard.xlarge</p></li>
853    /// <li>
854    /// <p>stream.standard.2xlarge</p></li>
855    /// </ul>
856    pub fn get_instance_type(&self) -> &::std::option::Option<::std::string::String> {
857        &self.instance_type
858    }
859    /// <p>The fleet type.</p>
860    /// <dl>
861    /// <dt>
862    /// ALWAYS_ON
863    /// </dt>
864    /// <dd>
865    /// <p>Provides users with instant-on access to their apps. You are charged for all running instances in your fleet, even if no users are streaming apps.</p>
866    /// </dd>
867    /// <dt>
868    /// ON_DEMAND
869    /// </dt>
870    /// <dd>
871    /// <p>Provide users with access to applications after they connect, which takes one to two minutes. You are charged for instance streaming when users are connected and a small hourly fee for instances that are not streaming apps.</p>
872    /// </dd>
873    /// </dl>
874    pub fn fleet_type(mut self, input: crate::types::FleetType) -> Self {
875        self.fleet_type = ::std::option::Option::Some(input);
876        self
877    }
878    /// <p>The fleet type.</p>
879    /// <dl>
880    /// <dt>
881    /// ALWAYS_ON
882    /// </dt>
883    /// <dd>
884    /// <p>Provides users with instant-on access to their apps. You are charged for all running instances in your fleet, even if no users are streaming apps.</p>
885    /// </dd>
886    /// <dt>
887    /// ON_DEMAND
888    /// </dt>
889    /// <dd>
890    /// <p>Provide users with access to applications after they connect, which takes one to two minutes. You are charged for instance streaming when users are connected and a small hourly fee for instances that are not streaming apps.</p>
891    /// </dd>
892    /// </dl>
893    pub fn set_fleet_type(mut self, input: ::std::option::Option<crate::types::FleetType>) -> Self {
894        self.fleet_type = input;
895        self
896    }
897    /// <p>The fleet type.</p>
898    /// <dl>
899    /// <dt>
900    /// ALWAYS_ON
901    /// </dt>
902    /// <dd>
903    /// <p>Provides users with instant-on access to their apps. You are charged for all running instances in your fleet, even if no users are streaming apps.</p>
904    /// </dd>
905    /// <dt>
906    /// ON_DEMAND
907    /// </dt>
908    /// <dd>
909    /// <p>Provide users with access to applications after they connect, which takes one to two minutes. You are charged for instance streaming when users are connected and a small hourly fee for instances that are not streaming apps.</p>
910    /// </dd>
911    /// </dl>
912    pub fn get_fleet_type(&self) -> &::std::option::Option<crate::types::FleetType> {
913        &self.fleet_type
914    }
915    /// <p>The desired capacity for the fleet. This is not allowed for Elastic fleets. For Elastic fleets, specify MaxConcurrentSessions instead.</p>
916    pub fn compute_capacity(mut self, input: crate::types::ComputeCapacity) -> Self {
917        self.compute_capacity = ::std::option::Option::Some(input);
918        self
919    }
920    /// <p>The desired capacity for the fleet. This is not allowed for Elastic fleets. For Elastic fleets, specify MaxConcurrentSessions instead.</p>
921    pub fn set_compute_capacity(mut self, input: ::std::option::Option<crate::types::ComputeCapacity>) -> Self {
922        self.compute_capacity = input;
923        self
924    }
925    /// <p>The desired capacity for the fleet. This is not allowed for Elastic fleets. For Elastic fleets, specify MaxConcurrentSessions instead.</p>
926    pub fn get_compute_capacity(&self) -> &::std::option::Option<crate::types::ComputeCapacity> {
927        &self.compute_capacity
928    }
929    /// <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>
930    pub fn vpc_config(mut self, input: crate::types::VpcConfig) -> Self {
931        self.vpc_config = ::std::option::Option::Some(input);
932        self
933    }
934    /// <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>
935    pub fn set_vpc_config(mut self, input: ::std::option::Option<crate::types::VpcConfig>) -> Self {
936        self.vpc_config = input;
937        self
938    }
939    /// <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>
940    pub fn get_vpc_config(&self) -> &::std::option::Option<crate::types::VpcConfig> {
941        &self.vpc_config
942    }
943    /// <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>
944    /// <p>Specify a value between 600 and 432000.</p>
945    pub fn max_user_duration_in_seconds(mut self, input: i32) -> Self {
946        self.max_user_duration_in_seconds = ::std::option::Option::Some(input);
947        self
948    }
949    /// <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>
950    /// <p>Specify a value between 600 and 432000.</p>
951    pub fn set_max_user_duration_in_seconds(mut self, input: ::std::option::Option<i32>) -> Self {
952        self.max_user_duration_in_seconds = input;
953        self
954    }
955    /// <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>
956    /// <p>Specify a value between 600 and 432000.</p>
957    pub fn get_max_user_duration_in_seconds(&self) -> &::std::option::Option<i32> {
958        &self.max_user_duration_in_seconds
959    }
960    /// <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>
961    /// <p>Specify a value between 60 and 36000.</p>
962    pub fn disconnect_timeout_in_seconds(mut self, input: i32) -> Self {
963        self.disconnect_timeout_in_seconds = ::std::option::Option::Some(input);
964        self
965    }
966    /// <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>
967    /// <p>Specify a value between 60 and 36000.</p>
968    pub fn set_disconnect_timeout_in_seconds(mut self, input: ::std::option::Option<i32>) -> Self {
969        self.disconnect_timeout_in_seconds = input;
970        self
971    }
972    /// <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>
973    /// <p>Specify a value between 60 and 36000.</p>
974    pub fn get_disconnect_timeout_in_seconds(&self) -> &::std::option::Option<i32> {
975        &self.disconnect_timeout_in_seconds
976    }
977    /// <p>The description to display.</p>
978    pub fn description(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
979        self.description = ::std::option::Option::Some(input.into());
980        self
981    }
982    /// <p>The description to display.</p>
983    pub fn set_description(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
984        self.description = input;
985        self
986    }
987    /// <p>The description to display.</p>
988    pub fn get_description(&self) -> &::std::option::Option<::std::string::String> {
989        &self.description
990    }
991    /// <p>The fleet name to display.</p>
992    pub fn display_name(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
993        self.display_name = ::std::option::Option::Some(input.into());
994        self
995    }
996    /// <p>The fleet name to display.</p>
997    pub fn set_display_name(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
998        self.display_name = input;
999        self
1000    }
1001    /// <p>The fleet name to display.</p>
1002    pub fn get_display_name(&self) -> &::std::option::Option<::std::string::String> {
1003        &self.display_name
1004    }
1005    /// <p>Enables or disables default internet access for the fleet.</p>
1006    pub fn enable_default_internet_access(mut self, input: bool) -> Self {
1007        self.enable_default_internet_access = ::std::option::Option::Some(input);
1008        self
1009    }
1010    /// <p>Enables or disables default internet access for the fleet.</p>
1011    pub fn set_enable_default_internet_access(mut self, input: ::std::option::Option<bool>) -> Self {
1012        self.enable_default_internet_access = input;
1013        self
1014    }
1015    /// <p>Enables or disables default internet access for the fleet.</p>
1016    pub fn get_enable_default_internet_access(&self) -> &::std::option::Option<bool> {
1017        &self.enable_default_internet_access
1018    }
1019    /// <p>The name of the directory and organizational unit (OU) to use to join the fleet to a Microsoft Active Directory domain. This is not allowed for Elastic fleets.</p>
1020    pub fn domain_join_info(mut self, input: crate::types::DomainJoinInfo) -> Self {
1021        self.domain_join_info = ::std::option::Option::Some(input);
1022        self
1023    }
1024    /// <p>The name of the directory and organizational unit (OU) to use to join the fleet to a Microsoft Active Directory domain. This is not allowed for Elastic fleets.</p>
1025    pub fn set_domain_join_info(mut self, input: ::std::option::Option<crate::types::DomainJoinInfo>) -> Self {
1026        self.domain_join_info = input;
1027        self
1028    }
1029    /// <p>The name of the directory and organizational unit (OU) to use to join the fleet to a Microsoft Active Directory domain. This is not allowed for Elastic fleets.</p>
1030    pub fn get_domain_join_info(&self) -> &::std::option::Option<crate::types::DomainJoinInfo> {
1031        &self.domain_join_info
1032    }
1033    /// Adds a key-value pair to `tags`.
1034    ///
1035    /// To override the contents of this collection use [`set_tags`](Self::set_tags).
1036    ///
1037    /// <p>The tags to associate with the fleet. A tag is a key-value pair, and the value is optional. For example, Environment=Test. If you do not specify a value, Environment=.</p>
1038    /// <p>If you do not specify a value, the value is set to an empty string.</p>
1039    /// <p>Generally allowed characters are: letters, numbers, and spaces representable in UTF-8, and the following special characters:</p>
1040    /// <p>_ . : / = + \ - @</p>
1041    /// <p>For more information, see <a href="https://docs.aws.amazon.com/appstream2/latest/developerguide/tagging-basic.html">Tagging Your Resources</a> in the <i>Amazon WorkSpaces Applications Administration Guide</i>.</p>
1042    pub fn tags(mut self, k: impl ::std::convert::Into<::std::string::String>, v: impl ::std::convert::Into<::std::string::String>) -> Self {
1043        let mut hash_map = self.tags.unwrap_or_default();
1044        hash_map.insert(k.into(), v.into());
1045        self.tags = ::std::option::Option::Some(hash_map);
1046        self
1047    }
1048    /// <p>The tags to associate with the fleet. A tag is a key-value pair, and the value is optional. For example, Environment=Test. If you do not specify a value, Environment=.</p>
1049    /// <p>If you do not specify a value, the value is set to an empty string.</p>
1050    /// <p>Generally allowed characters are: letters, numbers, and spaces representable in UTF-8, and the following special characters:</p>
1051    /// <p>_ . : / = + \ - @</p>
1052    /// <p>For more information, see <a href="https://docs.aws.amazon.com/appstream2/latest/developerguide/tagging-basic.html">Tagging Your Resources</a> in the <i>Amazon WorkSpaces Applications Administration Guide</i>.</p>
1053    pub fn set_tags(mut self, input: ::std::option::Option<::std::collections::HashMap<::std::string::String, ::std::string::String>>) -> Self {
1054        self.tags = input;
1055        self
1056    }
1057    /// <p>The tags to associate with the fleet. A tag is a key-value pair, and the value is optional. For example, Environment=Test. If you do not specify a value, Environment=.</p>
1058    /// <p>If you do not specify a value, the value is set to an empty string.</p>
1059    /// <p>Generally allowed characters are: letters, numbers, and spaces representable in UTF-8, and the following special characters:</p>
1060    /// <p>_ . : / = + \ - @</p>
1061    /// <p>For more information, see <a href="https://docs.aws.amazon.com/appstream2/latest/developerguide/tagging-basic.html">Tagging Your Resources</a> in the <i>Amazon WorkSpaces Applications Administration Guide</i>.</p>
1062    pub fn get_tags(&self) -> &::std::option::Option<::std::collections::HashMap<::std::string::String, ::std::string::String>> {
1063        &self.tags
1064    }
1065    /// <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 they 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>
1066    /// <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>
1067    /// <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>
1068    /// </note>
1069    pub fn idle_disconnect_timeout_in_seconds(mut self, input: i32) -> Self {
1070        self.idle_disconnect_timeout_in_seconds = ::std::option::Option::Some(input);
1071        self
1072    }
1073    /// <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 they 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>
1074    /// <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>
1075    /// <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>
1076    /// </note>
1077    pub fn set_idle_disconnect_timeout_in_seconds(mut self, input: ::std::option::Option<i32>) -> Self {
1078        self.idle_disconnect_timeout_in_seconds = input;
1079        self
1080    }
1081    /// <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 they 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>
1082    /// <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>
1083    /// <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>
1084    /// </note>
1085    pub fn get_idle_disconnect_timeout_in_seconds(&self) -> &::std::option::Option<i32> {
1086        &self.idle_disconnect_timeout_in_seconds
1087    }
1088    /// <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>
1089    /// <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>
1090    pub fn iam_role_arn(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
1091        self.iam_role_arn = ::std::option::Option::Some(input.into());
1092        self
1093    }
1094    /// <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>
1095    /// <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>
1096    pub fn set_iam_role_arn(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
1097        self.iam_role_arn = input;
1098        self
1099    }
1100    /// <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>
1101    /// <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>
1102    pub fn get_iam_role_arn(&self) -> &::std::option::Option<::std::string::String> {
1103        &self.iam_role_arn
1104    }
1105    /// <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>
1106    /// <p>The default value is <code>APP</code>.</p>
1107    pub fn stream_view(mut self, input: crate::types::StreamView) -> Self {
1108        self.stream_view = ::std::option::Option::Some(input);
1109        self
1110    }
1111    /// <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>
1112    /// <p>The default value is <code>APP</code>.</p>
1113    pub fn set_stream_view(mut self, input: ::std::option::Option<crate::types::StreamView>) -> Self {
1114        self.stream_view = input;
1115        self
1116    }
1117    /// <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>
1118    /// <p>The default value is <code>APP</code>.</p>
1119    pub fn get_stream_view(&self) -> &::std::option::Option<crate::types::StreamView> {
1120        &self.stream_view
1121    }
1122    /// <p>The fleet platform. WINDOWS_SERVER_2019, AMAZON_LINUX2 and UBUNTU_PRO_2404 are supported for Elastic fleets.</p>
1123    pub fn platform(mut self, input: crate::types::PlatformType) -> Self {
1124        self.platform = ::std::option::Option::Some(input);
1125        self
1126    }
1127    /// <p>The fleet platform. WINDOWS_SERVER_2019, AMAZON_LINUX2 and UBUNTU_PRO_2404 are supported for Elastic fleets.</p>
1128    pub fn set_platform(mut self, input: ::std::option::Option<crate::types::PlatformType>) -> Self {
1129        self.platform = input;
1130        self
1131    }
1132    /// <p>The fleet platform. WINDOWS_SERVER_2019, AMAZON_LINUX2 and UBUNTU_PRO_2404 are supported for Elastic fleets.</p>
1133    pub fn get_platform(&self) -> &::std::option::Option<crate::types::PlatformType> {
1134        &self.platform
1135    }
1136    /// <p>The maximum concurrent sessions of the Elastic fleet. This is required for Elastic fleets, and not allowed for other fleet types.</p>
1137    pub fn max_concurrent_sessions(mut self, input: i32) -> Self {
1138        self.max_concurrent_sessions = ::std::option::Option::Some(input);
1139        self
1140    }
1141    /// <p>The maximum concurrent sessions of the Elastic fleet. This is required for Elastic fleets, and not allowed for other fleet types.</p>
1142    pub fn set_max_concurrent_sessions(mut self, input: ::std::option::Option<i32>) -> Self {
1143        self.max_concurrent_sessions = input;
1144        self
1145    }
1146    /// <p>The maximum concurrent sessions of the Elastic fleet. This is required for Elastic fleets, and not allowed for other fleet types.</p>
1147    pub fn get_max_concurrent_sessions(&self) -> &::std::option::Option<i32> {
1148        &self.max_concurrent_sessions
1149    }
1150    /// Appends an item to `usb_device_filter_strings`.
1151    ///
1152    /// To override the contents of this collection use [`set_usb_device_filter_strings`](Self::set_usb_device_filter_strings).
1153    ///
1154    /// <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>
1155    pub fn usb_device_filter_strings(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
1156        let mut v = self.usb_device_filter_strings.unwrap_or_default();
1157        v.push(input.into());
1158        self.usb_device_filter_strings = ::std::option::Option::Some(v);
1159        self
1160    }
1161    /// <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>
1162    pub fn set_usb_device_filter_strings(mut self, input: ::std::option::Option<::std::vec::Vec<::std::string::String>>) -> Self {
1163        self.usb_device_filter_strings = input;
1164        self
1165    }
1166    /// <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>
1167    pub fn get_usb_device_filter_strings(&self) -> &::std::option::Option<::std::vec::Vec<::std::string::String>> {
1168        &self.usb_device_filter_strings
1169    }
1170    /// <p>The S3 location of the session scripts configuration zip file. This only applies to Elastic fleets.</p>
1171    pub fn session_script_s3_location(mut self, input: crate::types::S3Location) -> Self {
1172        self.session_script_s3_location = ::std::option::Option::Some(input);
1173        self
1174    }
1175    /// <p>The S3 location of the session scripts configuration zip file. This only applies to Elastic fleets.</p>
1176    pub fn set_session_script_s3_location(mut self, input: ::std::option::Option<crate::types::S3Location>) -> Self {
1177        self.session_script_s3_location = input;
1178        self
1179    }
1180    /// <p>The S3 location of the session scripts configuration zip file. This only applies to Elastic fleets.</p>
1181    pub fn get_session_script_s3_location(&self) -> &::std::option::Option<crate::types::S3Location> {
1182        &self.session_script_s3_location
1183    }
1184    /// <p>The maximum number of user sessions on an instance. This only applies to multi-session fleets.</p>
1185    pub fn max_sessions_per_instance(mut self, input: i32) -> Self {
1186        self.max_sessions_per_instance = ::std::option::Option::Some(input);
1187        self
1188    }
1189    /// <p>The maximum number of user sessions on an instance. This only applies to multi-session fleets.</p>
1190    pub fn set_max_sessions_per_instance(mut self, input: ::std::option::Option<i32>) -> Self {
1191        self.max_sessions_per_instance = input;
1192        self
1193    }
1194    /// <p>The maximum number of user sessions on an instance. This only applies to multi-session fleets.</p>
1195    pub fn get_max_sessions_per_instance(&self) -> &::std::option::Option<i32> {
1196        &self.max_sessions_per_instance
1197    }
1198    /// <p>The configuration for the root volume of fleet instances. Use this to customize storage capacity from 200 GB up to 500 GB based on your application requirements.</p>
1199    pub fn root_volume_config(mut self, input: crate::types::VolumeConfig) -> Self {
1200        self.root_volume_config = ::std::option::Option::Some(input);
1201        self
1202    }
1203    /// <p>The configuration for the root volume of fleet instances. Use this to customize storage capacity from 200 GB up to 500 GB based on your application requirements.</p>
1204    pub fn set_root_volume_config(mut self, input: ::std::option::Option<crate::types::VolumeConfig>) -> Self {
1205        self.root_volume_config = input;
1206        self
1207    }
1208    /// <p>The configuration for the root volume of fleet instances. Use this to customize storage capacity from 200 GB up to 500 GB based on your application requirements.</p>
1209    pub fn get_root_volume_config(&self) -> &::std::option::Option<crate::types::VolumeConfig> {
1210        &self.root_volume_config
1211    }
1212    /// <p>Set to true to disable Instance Metadata Service Version 1 (IMDSv1) and enforce IMDSv2. Set to false to enable both IMDSv1 and IMDSv2.</p><note>
1213    /// <p>Before disabling IMDSv1, ensure your WorkSpaces Applications images are running the agent version or managed image update released on or after January 16, 2024 to support IMDSv2 enforcement.</p>
1214    /// </note>
1215    pub fn disable_imdsv1(mut self, input: bool) -> Self {
1216        self.disable_imdsv1 = ::std::option::Option::Some(input);
1217        self
1218    }
1219    /// <p>Set to true to disable Instance Metadata Service Version 1 (IMDSv1) and enforce IMDSv2. Set to false to enable both IMDSv1 and IMDSv2.</p><note>
1220    /// <p>Before disabling IMDSv1, ensure your WorkSpaces Applications images are running the agent version or managed image update released on or after January 16, 2024 to support IMDSv2 enforcement.</p>
1221    /// </note>
1222    pub fn set_disable_imdsv1(mut self, input: ::std::option::Option<bool>) -> Self {
1223        self.disable_imdsv1 = input;
1224        self
1225    }
1226    /// <p>Set to true to disable Instance Metadata Service Version 1 (IMDSv1) and enforce IMDSv2. Set to false to enable both IMDSv1 and IMDSv2.</p><note>
1227    /// <p>Before disabling IMDSv1, ensure your WorkSpaces Applications images are running the agent version or managed image update released on or after January 16, 2024 to support IMDSv2 enforcement.</p>
1228    /// </note>
1229    pub fn get_disable_imdsv1(&self) -> &::std::option::Option<bool> {
1230        &self.disable_imdsv1
1231    }
1232    /// Consumes the builder and constructs a [`CreateFleetInput`](crate::operation::create_fleet::CreateFleetInput).
1233    pub fn build(self) -> ::std::result::Result<crate::operation::create_fleet::CreateFleetInput, ::aws_smithy_types::error::operation::BuildError> {
1234        ::std::result::Result::Ok(crate::operation::create_fleet::CreateFleetInput {
1235            name: self.name,
1236            image_name: self.image_name,
1237            image_arn: self.image_arn,
1238            instance_type: self.instance_type,
1239            fleet_type: self.fleet_type,
1240            compute_capacity: self.compute_capacity,
1241            vpc_config: self.vpc_config,
1242            max_user_duration_in_seconds: self.max_user_duration_in_seconds,
1243            disconnect_timeout_in_seconds: self.disconnect_timeout_in_seconds,
1244            description: self.description,
1245            display_name: self.display_name,
1246            enable_default_internet_access: self.enable_default_internet_access,
1247            domain_join_info: self.domain_join_info,
1248            tags: self.tags,
1249            idle_disconnect_timeout_in_seconds: self.idle_disconnect_timeout_in_seconds,
1250            iam_role_arn: self.iam_role_arn,
1251            stream_view: self.stream_view,
1252            platform: self.platform,
1253            max_concurrent_sessions: self.max_concurrent_sessions,
1254            usb_device_filter_strings: self.usb_device_filter_strings,
1255            session_script_s3_location: self.session_script_s3_location,
1256            max_sessions_per_instance: self.max_sessions_per_instance,
1257            root_volume_config: self.root_volume_config,
1258            disable_imdsv1: self.disable_imdsv1,
1259        })
1260    }
1261}