1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 723 724 725 726 727 728 729 730 731 732 733 734 735 736 737 738 739 740 741 742 743 744 745 746 747 748 749 750 751 752 753 754 755 756 757 758 759 760 761 762 763 764 765 766 767 768 769 770 771 772 773 774 775 776 777 778 779 780 781 782 783 784 785 786 787 788 789 790 791 792 793 794 795 796 797 798 799 800 801 802 803 804 805 806 807 808 809 810 811 812 813 814 815 816 817 818 819 820 821 822 823 824 825 826 827 828 829 830 831 832 833 834 835 836 837 838 839 840 841 842 843 844 845 846 847 848 849 850 851 852 853 854 855 856 857 858 859 860 861 862 863 864 865 866 867 868 869 870 871 872 873 874 875 876 877
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
#[allow(missing_docs)] // documentation missing in model
#[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
pub struct CreateFleetInput {
/// <p>A unique name for the fleet.</p>
pub name: ::std::option::Option<::std::string::String>,
/// <p>The name of the image used to create the fleet.</p>
pub image_name: ::std::option::Option<::std::string::String>,
/// <p>The ARN of the public, private, or shared image to use.</p>
pub image_arn: ::std::option::Option<::std::string::String>,
/// <p>The instance type to use when launching fleet instances. The following instance types are available:</p>
/// <ul>
/// <li> <p>stream.standard.small</p> </li>
/// <li> <p>stream.standard.medium</p> </li>
/// <li> <p>stream.standard.large</p> </li>
/// <li> <p>stream.standard.xlarge</p> </li>
/// <li> <p>stream.standard.2xlarge</p> </li>
/// <li> <p>stream.compute.large</p> </li>
/// <li> <p>stream.compute.xlarge</p> </li>
/// <li> <p>stream.compute.2xlarge</p> </li>
/// <li> <p>stream.compute.4xlarge</p> </li>
/// <li> <p>stream.compute.8xlarge</p> </li>
/// <li> <p>stream.memory.large</p> </li>
/// <li> <p>stream.memory.xlarge</p> </li>
/// <li> <p>stream.memory.2xlarge</p> </li>
/// <li> <p>stream.memory.4xlarge</p> </li>
/// <li> <p>stream.memory.8xlarge</p> </li>
/// <li> <p>stream.memory.z1d.large</p> </li>
/// <li> <p>stream.memory.z1d.xlarge</p> </li>
/// <li> <p>stream.memory.z1d.2xlarge</p> </li>
/// <li> <p>stream.memory.z1d.3xlarge</p> </li>
/// <li> <p>stream.memory.z1d.6xlarge</p> </li>
/// <li> <p>stream.memory.z1d.12xlarge</p> </li>
/// <li> <p>stream.graphics-design.large</p> </li>
/// <li> <p>stream.graphics-design.xlarge</p> </li>
/// <li> <p>stream.graphics-design.2xlarge</p> </li>
/// <li> <p>stream.graphics-design.4xlarge</p> </li>
/// <li> <p>stream.graphics-desktop.2xlarge</p> </li>
/// <li> <p>stream.graphics.g4dn.xlarge</p> </li>
/// <li> <p>stream.graphics.g4dn.2xlarge</p> </li>
/// <li> <p>stream.graphics.g4dn.4xlarge</p> </li>
/// <li> <p>stream.graphics.g4dn.8xlarge</p> </li>
/// <li> <p>stream.graphics.g4dn.12xlarge</p> </li>
/// <li> <p>stream.graphics.g4dn.16xlarge</p> </li>
/// <li> <p>stream.graphics-pro.4xlarge</p> </li>
/// <li> <p>stream.graphics-pro.8xlarge</p> </li>
/// <li> <p>stream.graphics-pro.16xlarge</p> </li>
/// </ul>
/// <p>The following instance types are available for Elastic fleets:</p>
/// <ul>
/// <li> <p>stream.standard.small</p> </li>
/// <li> <p>stream.standard.medium</p> </li>
/// <li> <p>stream.standard.large</p> </li>
/// <li> <p>stream.standard.xlarge</p> </li>
/// <li> <p>stream.standard.2xlarge</p> </li>
/// </ul>
pub instance_type: ::std::option::Option<::std::string::String>,
/// <p>The fleet type.</p>
/// <dl>
/// <dt>
/// ALWAYS_ON
/// </dt>
/// <dd>
/// <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>
/// </dd>
/// <dt>
/// ON_DEMAND
/// </dt>
/// <dd>
/// <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>
/// </dd>
/// </dl>
pub fleet_type: ::std::option::Option<crate::types::FleetType>,
/// <p>The desired capacity for the fleet. This is not allowed for Elastic fleets. For Elastic fleets, specify MaxConcurrentSessions instead.</p>
pub compute_capacity: ::std::option::Option<crate::types::ComputeCapacity>,
/// <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>
pub vpc_config: ::std::option::Option<crate::types::VpcConfig>,
/// <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>
/// <p>Specify a value between 600 and 432000.</p>
pub max_user_duration_in_seconds: ::std::option::Option<i32>,
/// <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>
/// <p>Specify a value between 60 and 360000.</p>
pub disconnect_timeout_in_seconds: ::std::option::Option<i32>,
/// <p>The description to display.</p>
pub description: ::std::option::Option<::std::string::String>,
/// <p>The fleet name to display.</p>
pub display_name: ::std::option::Option<::std::string::String>,
/// <p>Enables or disables default internet access for the fleet.</p>
pub enable_default_internet_access: ::std::option::Option<bool>,
/// <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>
pub domain_join_info: ::std::option::Option<crate::types::DomainJoinInfo>,
/// <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>
/// <p>If you do not specify a value, the value is set to an empty string.</p>
/// <p>Generally allowed characters are: letters, numbers, and spaces representable in UTF-8, and the following special characters: </p>
/// <p>_ . : / = + \ - @</p>
/// <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 AppStream 2.0 Administration Guide</i>.</p>
pub tags: ::std::option::Option<::std::collections::HashMap<::std::string::String, ::std::string::String>>,
/// <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>
/// <p>To prevent users from being disconnected due to inactivity, specify a value of 0. Otherwise, specify a value between 60 and 3600. The default value is 0.</p> <note>
/// <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>
/// </note>
pub idle_disconnect_timeout_in_seconds: ::std::option::Option<i32>,
/// <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>
/// <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>
pub iam_role_arn: ::std::option::Option<::std::string::String>,
/// <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>
/// <p>The default value is <code>APP</code>.</p>
pub stream_view: ::std::option::Option<crate::types::StreamView>,
/// <p>The fleet platform. WINDOWS_SERVER_2019 and AMAZON_LINUX2 are supported for Elastic fleets. </p>
pub platform: ::std::option::Option<crate::types::PlatformType>,
/// <p>The maximum concurrent sessions of the Elastic fleet. This is required for Elastic fleets, and not allowed for other fleet types.</p>
pub max_concurrent_sessions: ::std::option::Option<i32>,
/// <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>
pub usb_device_filter_strings: ::std::option::Option<::std::vec::Vec<::std::string::String>>,
/// <p>The S3 location of the session scripts configuration zip file. This only applies to Elastic fleets.</p>
pub session_script_s3_location: ::std::option::Option<crate::types::S3Location>,
/// <p>The maximum number of user sessions on an instance. This only applies to multi-session fleets.</p>
pub max_sessions_per_instance: ::std::option::Option<i32>,
}
impl CreateFleetInput {
/// <p>A unique name for the fleet.</p>
pub fn name(&self) -> ::std::option::Option<&str> {
self.name.as_deref()
}
/// <p>The name of the image used to create the fleet.</p>
pub fn image_name(&self) -> ::std::option::Option<&str> {
self.image_name.as_deref()
}
/// <p>The ARN of the public, private, or shared image to use.</p>
pub fn image_arn(&self) -> ::std::option::Option<&str> {
self.image_arn.as_deref()
}
/// <p>The instance type to use when launching fleet instances. The following instance types are available:</p>
/// <ul>
/// <li> <p>stream.standard.small</p> </li>
/// <li> <p>stream.standard.medium</p> </li>
/// <li> <p>stream.standard.large</p> </li>
/// <li> <p>stream.standard.xlarge</p> </li>
/// <li> <p>stream.standard.2xlarge</p> </li>
/// <li> <p>stream.compute.large</p> </li>
/// <li> <p>stream.compute.xlarge</p> </li>
/// <li> <p>stream.compute.2xlarge</p> </li>
/// <li> <p>stream.compute.4xlarge</p> </li>
/// <li> <p>stream.compute.8xlarge</p> </li>
/// <li> <p>stream.memory.large</p> </li>
/// <li> <p>stream.memory.xlarge</p> </li>
/// <li> <p>stream.memory.2xlarge</p> </li>
/// <li> <p>stream.memory.4xlarge</p> </li>
/// <li> <p>stream.memory.8xlarge</p> </li>
/// <li> <p>stream.memory.z1d.large</p> </li>
/// <li> <p>stream.memory.z1d.xlarge</p> </li>
/// <li> <p>stream.memory.z1d.2xlarge</p> </li>
/// <li> <p>stream.memory.z1d.3xlarge</p> </li>
/// <li> <p>stream.memory.z1d.6xlarge</p> </li>
/// <li> <p>stream.memory.z1d.12xlarge</p> </li>
/// <li> <p>stream.graphics-design.large</p> </li>
/// <li> <p>stream.graphics-design.xlarge</p> </li>
/// <li> <p>stream.graphics-design.2xlarge</p> </li>
/// <li> <p>stream.graphics-design.4xlarge</p> </li>
/// <li> <p>stream.graphics-desktop.2xlarge</p> </li>
/// <li> <p>stream.graphics.g4dn.xlarge</p> </li>
/// <li> <p>stream.graphics.g4dn.2xlarge</p> </li>
/// <li> <p>stream.graphics.g4dn.4xlarge</p> </li>
/// <li> <p>stream.graphics.g4dn.8xlarge</p> </li>
/// <li> <p>stream.graphics.g4dn.12xlarge</p> </li>
/// <li> <p>stream.graphics.g4dn.16xlarge</p> </li>
/// <li> <p>stream.graphics-pro.4xlarge</p> </li>
/// <li> <p>stream.graphics-pro.8xlarge</p> </li>
/// <li> <p>stream.graphics-pro.16xlarge</p> </li>
/// </ul>
/// <p>The following instance types are available for Elastic fleets:</p>
/// <ul>
/// <li> <p>stream.standard.small</p> </li>
/// <li> <p>stream.standard.medium</p> </li>
/// <li> <p>stream.standard.large</p> </li>
/// <li> <p>stream.standard.xlarge</p> </li>
/// <li> <p>stream.standard.2xlarge</p> </li>
/// </ul>
pub fn instance_type(&self) -> ::std::option::Option<&str> {
self.instance_type.as_deref()
}
/// <p>The fleet type.</p>
/// <dl>
/// <dt>
/// ALWAYS_ON
/// </dt>
/// <dd>
/// <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>
/// </dd>
/// <dt>
/// ON_DEMAND
/// </dt>
/// <dd>
/// <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>
/// </dd>
/// </dl>
pub fn fleet_type(&self) -> ::std::option::Option<&crate::types::FleetType> {
self.fleet_type.as_ref()
}
/// <p>The desired capacity for the fleet. This is not allowed for Elastic fleets. For Elastic fleets, specify MaxConcurrentSessions instead.</p>
pub fn compute_capacity(&self) -> ::std::option::Option<&crate::types::ComputeCapacity> {
self.compute_capacity.as_ref()
}
/// <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>
pub fn vpc_config(&self) -> ::std::option::Option<&crate::types::VpcConfig> {
self.vpc_config.as_ref()
}
/// <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>
/// <p>Specify a value between 600 and 432000.</p>
pub fn max_user_duration_in_seconds(&self) -> ::std::option::Option<i32> {
self.max_user_duration_in_seconds
}
/// <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>
/// <p>Specify a value between 60 and 360000.</p>
pub fn disconnect_timeout_in_seconds(&self) -> ::std::option::Option<i32> {
self.disconnect_timeout_in_seconds
}
/// <p>The description to display.</p>
pub fn description(&self) -> ::std::option::Option<&str> {
self.description.as_deref()
}
/// <p>The fleet name to display.</p>
pub fn display_name(&self) -> ::std::option::Option<&str> {
self.display_name.as_deref()
}
/// <p>Enables or disables default internet access for the fleet.</p>
pub fn enable_default_internet_access(&self) -> ::std::option::Option<bool> {
self.enable_default_internet_access
}
/// <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>
pub fn domain_join_info(&self) -> ::std::option::Option<&crate::types::DomainJoinInfo> {
self.domain_join_info.as_ref()
}
/// <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>
/// <p>If you do not specify a value, the value is set to an empty string.</p>
/// <p>Generally allowed characters are: letters, numbers, and spaces representable in UTF-8, and the following special characters: </p>
/// <p>_ . : / = + \ - @</p>
/// <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 AppStream 2.0 Administration Guide</i>.</p>
pub fn tags(&self) -> ::std::option::Option<&::std::collections::HashMap<::std::string::String, ::std::string::String>> {
self.tags.as_ref()
}
/// <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>
/// <p>To prevent users from being disconnected due to inactivity, specify a value of 0. Otherwise, specify a value between 60 and 3600. The default value is 0.</p> <note>
/// <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>
/// </note>
pub fn idle_disconnect_timeout_in_seconds(&self) -> ::std::option::Option<i32> {
self.idle_disconnect_timeout_in_seconds
}
/// <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>
/// <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>
pub fn iam_role_arn(&self) -> ::std::option::Option<&str> {
self.iam_role_arn.as_deref()
}
/// <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>
/// <p>The default value is <code>APP</code>.</p>
pub fn stream_view(&self) -> ::std::option::Option<&crate::types::StreamView> {
self.stream_view.as_ref()
}
/// <p>The fleet platform. WINDOWS_SERVER_2019 and AMAZON_LINUX2 are supported for Elastic fleets. </p>
pub fn platform(&self) -> ::std::option::Option<&crate::types::PlatformType> {
self.platform.as_ref()
}
/// <p>The maximum concurrent sessions of the Elastic fleet. This is required for Elastic fleets, and not allowed for other fleet types.</p>
pub fn max_concurrent_sessions(&self) -> ::std::option::Option<i32> {
self.max_concurrent_sessions
}
/// <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>
///
/// 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()`.
pub fn usb_device_filter_strings(&self) -> &[::std::string::String] {
self.usb_device_filter_strings.as_deref().unwrap_or_default()
}
/// <p>The S3 location of the session scripts configuration zip file. This only applies to Elastic fleets.</p>
pub fn session_script_s3_location(&self) -> ::std::option::Option<&crate::types::S3Location> {
self.session_script_s3_location.as_ref()
}
/// <p>The maximum number of user sessions on an instance. This only applies to multi-session fleets.</p>
pub fn max_sessions_per_instance(&self) -> ::std::option::Option<i32> {
self.max_sessions_per_instance
}
}
impl CreateFleetInput {
/// Creates a new builder-style object to manufacture [`CreateFleetInput`](crate::operation::create_fleet::CreateFleetInput).
pub fn builder() -> crate::operation::create_fleet::builders::CreateFleetInputBuilder {
crate::operation::create_fleet::builders::CreateFleetInputBuilder::default()
}
}
/// A builder for [`CreateFleetInput`](crate::operation::create_fleet::CreateFleetInput).
#[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
pub struct CreateFleetInputBuilder {
pub(crate) name: ::std::option::Option<::std::string::String>,
pub(crate) image_name: ::std::option::Option<::std::string::String>,
pub(crate) image_arn: ::std::option::Option<::std::string::String>,
pub(crate) instance_type: ::std::option::Option<::std::string::String>,
pub(crate) fleet_type: ::std::option::Option<crate::types::FleetType>,
pub(crate) compute_capacity: ::std::option::Option<crate::types::ComputeCapacity>,
pub(crate) vpc_config: ::std::option::Option<crate::types::VpcConfig>,
pub(crate) max_user_duration_in_seconds: ::std::option::Option<i32>,
pub(crate) disconnect_timeout_in_seconds: ::std::option::Option<i32>,
pub(crate) description: ::std::option::Option<::std::string::String>,
pub(crate) display_name: ::std::option::Option<::std::string::String>,
pub(crate) enable_default_internet_access: ::std::option::Option<bool>,
pub(crate) domain_join_info: ::std::option::Option<crate::types::DomainJoinInfo>,
pub(crate) tags: ::std::option::Option<::std::collections::HashMap<::std::string::String, ::std::string::String>>,
pub(crate) idle_disconnect_timeout_in_seconds: ::std::option::Option<i32>,
pub(crate) iam_role_arn: ::std::option::Option<::std::string::String>,
pub(crate) stream_view: ::std::option::Option<crate::types::StreamView>,
pub(crate) platform: ::std::option::Option<crate::types::PlatformType>,
pub(crate) max_concurrent_sessions: ::std::option::Option<i32>,
pub(crate) usb_device_filter_strings: ::std::option::Option<::std::vec::Vec<::std::string::String>>,
pub(crate) session_script_s3_location: ::std::option::Option<crate::types::S3Location>,
pub(crate) max_sessions_per_instance: ::std::option::Option<i32>,
}
impl CreateFleetInputBuilder {
/// <p>A unique name for the fleet.</p>
/// This field is required.
pub fn name(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.name = ::std::option::Option::Some(input.into());
self
}
/// <p>A unique name for the fleet.</p>
pub fn set_name(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.name = input;
self
}
/// <p>A unique name for the fleet.</p>
pub fn get_name(&self) -> &::std::option::Option<::std::string::String> {
&self.name
}
/// <p>The name of the image used to create the fleet.</p>
pub fn image_name(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.image_name = ::std::option::Option::Some(input.into());
self
}
/// <p>The name of the image used to create the fleet.</p>
pub fn set_image_name(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.image_name = input;
self
}
/// <p>The name of the image used to create the fleet.</p>
pub fn get_image_name(&self) -> &::std::option::Option<::std::string::String> {
&self.image_name
}
/// <p>The ARN of the public, private, or shared image to use.</p>
pub fn image_arn(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.image_arn = ::std::option::Option::Some(input.into());
self
}
/// <p>The ARN of the public, private, or shared image to use.</p>
pub fn set_image_arn(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.image_arn = input;
self
}
/// <p>The ARN of the public, private, or shared image to use.</p>
pub fn get_image_arn(&self) -> &::std::option::Option<::std::string::String> {
&self.image_arn
}
/// <p>The instance type to use when launching fleet instances. The following instance types are available:</p>
/// <ul>
/// <li> <p>stream.standard.small</p> </li>
/// <li> <p>stream.standard.medium</p> </li>
/// <li> <p>stream.standard.large</p> </li>
/// <li> <p>stream.standard.xlarge</p> </li>
/// <li> <p>stream.standard.2xlarge</p> </li>
/// <li> <p>stream.compute.large</p> </li>
/// <li> <p>stream.compute.xlarge</p> </li>
/// <li> <p>stream.compute.2xlarge</p> </li>
/// <li> <p>stream.compute.4xlarge</p> </li>
/// <li> <p>stream.compute.8xlarge</p> </li>
/// <li> <p>stream.memory.large</p> </li>
/// <li> <p>stream.memory.xlarge</p> </li>
/// <li> <p>stream.memory.2xlarge</p> </li>
/// <li> <p>stream.memory.4xlarge</p> </li>
/// <li> <p>stream.memory.8xlarge</p> </li>
/// <li> <p>stream.memory.z1d.large</p> </li>
/// <li> <p>stream.memory.z1d.xlarge</p> </li>
/// <li> <p>stream.memory.z1d.2xlarge</p> </li>
/// <li> <p>stream.memory.z1d.3xlarge</p> </li>
/// <li> <p>stream.memory.z1d.6xlarge</p> </li>
/// <li> <p>stream.memory.z1d.12xlarge</p> </li>
/// <li> <p>stream.graphics-design.large</p> </li>
/// <li> <p>stream.graphics-design.xlarge</p> </li>
/// <li> <p>stream.graphics-design.2xlarge</p> </li>
/// <li> <p>stream.graphics-design.4xlarge</p> </li>
/// <li> <p>stream.graphics-desktop.2xlarge</p> </li>
/// <li> <p>stream.graphics.g4dn.xlarge</p> </li>
/// <li> <p>stream.graphics.g4dn.2xlarge</p> </li>
/// <li> <p>stream.graphics.g4dn.4xlarge</p> </li>
/// <li> <p>stream.graphics.g4dn.8xlarge</p> </li>
/// <li> <p>stream.graphics.g4dn.12xlarge</p> </li>
/// <li> <p>stream.graphics.g4dn.16xlarge</p> </li>
/// <li> <p>stream.graphics-pro.4xlarge</p> </li>
/// <li> <p>stream.graphics-pro.8xlarge</p> </li>
/// <li> <p>stream.graphics-pro.16xlarge</p> </li>
/// </ul>
/// <p>The following instance types are available for Elastic fleets:</p>
/// <ul>
/// <li> <p>stream.standard.small</p> </li>
/// <li> <p>stream.standard.medium</p> </li>
/// <li> <p>stream.standard.large</p> </li>
/// <li> <p>stream.standard.xlarge</p> </li>
/// <li> <p>stream.standard.2xlarge</p> </li>
/// </ul>
/// This field is required.
pub fn instance_type(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.instance_type = ::std::option::Option::Some(input.into());
self
}
/// <p>The instance type to use when launching fleet instances. The following instance types are available:</p>
/// <ul>
/// <li> <p>stream.standard.small</p> </li>
/// <li> <p>stream.standard.medium</p> </li>
/// <li> <p>stream.standard.large</p> </li>
/// <li> <p>stream.standard.xlarge</p> </li>
/// <li> <p>stream.standard.2xlarge</p> </li>
/// <li> <p>stream.compute.large</p> </li>
/// <li> <p>stream.compute.xlarge</p> </li>
/// <li> <p>stream.compute.2xlarge</p> </li>
/// <li> <p>stream.compute.4xlarge</p> </li>
/// <li> <p>stream.compute.8xlarge</p> </li>
/// <li> <p>stream.memory.large</p> </li>
/// <li> <p>stream.memory.xlarge</p> </li>
/// <li> <p>stream.memory.2xlarge</p> </li>
/// <li> <p>stream.memory.4xlarge</p> </li>
/// <li> <p>stream.memory.8xlarge</p> </li>
/// <li> <p>stream.memory.z1d.large</p> </li>
/// <li> <p>stream.memory.z1d.xlarge</p> </li>
/// <li> <p>stream.memory.z1d.2xlarge</p> </li>
/// <li> <p>stream.memory.z1d.3xlarge</p> </li>
/// <li> <p>stream.memory.z1d.6xlarge</p> </li>
/// <li> <p>stream.memory.z1d.12xlarge</p> </li>
/// <li> <p>stream.graphics-design.large</p> </li>
/// <li> <p>stream.graphics-design.xlarge</p> </li>
/// <li> <p>stream.graphics-design.2xlarge</p> </li>
/// <li> <p>stream.graphics-design.4xlarge</p> </li>
/// <li> <p>stream.graphics-desktop.2xlarge</p> </li>
/// <li> <p>stream.graphics.g4dn.xlarge</p> </li>
/// <li> <p>stream.graphics.g4dn.2xlarge</p> </li>
/// <li> <p>stream.graphics.g4dn.4xlarge</p> </li>
/// <li> <p>stream.graphics.g4dn.8xlarge</p> </li>
/// <li> <p>stream.graphics.g4dn.12xlarge</p> </li>
/// <li> <p>stream.graphics.g4dn.16xlarge</p> </li>
/// <li> <p>stream.graphics-pro.4xlarge</p> </li>
/// <li> <p>stream.graphics-pro.8xlarge</p> </li>
/// <li> <p>stream.graphics-pro.16xlarge</p> </li>
/// </ul>
/// <p>The following instance types are available for Elastic fleets:</p>
/// <ul>
/// <li> <p>stream.standard.small</p> </li>
/// <li> <p>stream.standard.medium</p> </li>
/// <li> <p>stream.standard.large</p> </li>
/// <li> <p>stream.standard.xlarge</p> </li>
/// <li> <p>stream.standard.2xlarge</p> </li>
/// </ul>
pub fn set_instance_type(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.instance_type = input;
self
}
/// <p>The instance type to use when launching fleet instances. The following instance types are available:</p>
/// <ul>
/// <li> <p>stream.standard.small</p> </li>
/// <li> <p>stream.standard.medium</p> </li>
/// <li> <p>stream.standard.large</p> </li>
/// <li> <p>stream.standard.xlarge</p> </li>
/// <li> <p>stream.standard.2xlarge</p> </li>
/// <li> <p>stream.compute.large</p> </li>
/// <li> <p>stream.compute.xlarge</p> </li>
/// <li> <p>stream.compute.2xlarge</p> </li>
/// <li> <p>stream.compute.4xlarge</p> </li>
/// <li> <p>stream.compute.8xlarge</p> </li>
/// <li> <p>stream.memory.large</p> </li>
/// <li> <p>stream.memory.xlarge</p> </li>
/// <li> <p>stream.memory.2xlarge</p> </li>
/// <li> <p>stream.memory.4xlarge</p> </li>
/// <li> <p>stream.memory.8xlarge</p> </li>
/// <li> <p>stream.memory.z1d.large</p> </li>
/// <li> <p>stream.memory.z1d.xlarge</p> </li>
/// <li> <p>stream.memory.z1d.2xlarge</p> </li>
/// <li> <p>stream.memory.z1d.3xlarge</p> </li>
/// <li> <p>stream.memory.z1d.6xlarge</p> </li>
/// <li> <p>stream.memory.z1d.12xlarge</p> </li>
/// <li> <p>stream.graphics-design.large</p> </li>
/// <li> <p>stream.graphics-design.xlarge</p> </li>
/// <li> <p>stream.graphics-design.2xlarge</p> </li>
/// <li> <p>stream.graphics-design.4xlarge</p> </li>
/// <li> <p>stream.graphics-desktop.2xlarge</p> </li>
/// <li> <p>stream.graphics.g4dn.xlarge</p> </li>
/// <li> <p>stream.graphics.g4dn.2xlarge</p> </li>
/// <li> <p>stream.graphics.g4dn.4xlarge</p> </li>
/// <li> <p>stream.graphics.g4dn.8xlarge</p> </li>
/// <li> <p>stream.graphics.g4dn.12xlarge</p> </li>
/// <li> <p>stream.graphics.g4dn.16xlarge</p> </li>
/// <li> <p>stream.graphics-pro.4xlarge</p> </li>
/// <li> <p>stream.graphics-pro.8xlarge</p> </li>
/// <li> <p>stream.graphics-pro.16xlarge</p> </li>
/// </ul>
/// <p>The following instance types are available for Elastic fleets:</p>
/// <ul>
/// <li> <p>stream.standard.small</p> </li>
/// <li> <p>stream.standard.medium</p> </li>
/// <li> <p>stream.standard.large</p> </li>
/// <li> <p>stream.standard.xlarge</p> </li>
/// <li> <p>stream.standard.2xlarge</p> </li>
/// </ul>
pub fn get_instance_type(&self) -> &::std::option::Option<::std::string::String> {
&self.instance_type
}
/// <p>The fleet type.</p>
/// <dl>
/// <dt>
/// ALWAYS_ON
/// </dt>
/// <dd>
/// <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>
/// </dd>
/// <dt>
/// ON_DEMAND
/// </dt>
/// <dd>
/// <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>
/// </dd>
/// </dl>
pub fn fleet_type(mut self, input: crate::types::FleetType) -> Self {
self.fleet_type = ::std::option::Option::Some(input);
self
}
/// <p>The fleet type.</p>
/// <dl>
/// <dt>
/// ALWAYS_ON
/// </dt>
/// <dd>
/// <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>
/// </dd>
/// <dt>
/// ON_DEMAND
/// </dt>
/// <dd>
/// <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>
/// </dd>
/// </dl>
pub fn set_fleet_type(mut self, input: ::std::option::Option<crate::types::FleetType>) -> Self {
self.fleet_type = input;
self
}
/// <p>The fleet type.</p>
/// <dl>
/// <dt>
/// ALWAYS_ON
/// </dt>
/// <dd>
/// <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>
/// </dd>
/// <dt>
/// ON_DEMAND
/// </dt>
/// <dd>
/// <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>
/// </dd>
/// </dl>
pub fn get_fleet_type(&self) -> &::std::option::Option<crate::types::FleetType> {
&self.fleet_type
}
/// <p>The desired capacity for the fleet. This is not allowed for Elastic fleets. For Elastic fleets, specify MaxConcurrentSessions instead.</p>
pub fn compute_capacity(mut self, input: crate::types::ComputeCapacity) -> Self {
self.compute_capacity = ::std::option::Option::Some(input);
self
}
/// <p>The desired capacity for the fleet. This is not allowed for Elastic fleets. For Elastic fleets, specify MaxConcurrentSessions instead.</p>
pub fn set_compute_capacity(mut self, input: ::std::option::Option<crate::types::ComputeCapacity>) -> Self {
self.compute_capacity = input;
self
}
/// <p>The desired capacity for the fleet. This is not allowed for Elastic fleets. For Elastic fleets, specify MaxConcurrentSessions instead.</p>
pub fn get_compute_capacity(&self) -> &::std::option::Option<crate::types::ComputeCapacity> {
&self.compute_capacity
}
/// <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>
pub fn vpc_config(mut self, input: crate::types::VpcConfig) -> Self {
self.vpc_config = ::std::option::Option::Some(input);
self
}
/// <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>
pub fn set_vpc_config(mut self, input: ::std::option::Option<crate::types::VpcConfig>) -> Self {
self.vpc_config = input;
self
}
/// <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>
pub fn get_vpc_config(&self) -> &::std::option::Option<crate::types::VpcConfig> {
&self.vpc_config
}
/// <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>
/// <p>Specify a value between 600 and 432000.</p>
pub fn max_user_duration_in_seconds(mut self, input: i32) -> Self {
self.max_user_duration_in_seconds = ::std::option::Option::Some(input);
self
}
/// <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>
/// <p>Specify a value between 600 and 432000.</p>
pub fn set_max_user_duration_in_seconds(mut self, input: ::std::option::Option<i32>) -> Self {
self.max_user_duration_in_seconds = input;
self
}
/// <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>
/// <p>Specify a value between 600 and 432000.</p>
pub fn get_max_user_duration_in_seconds(&self) -> &::std::option::Option<i32> {
&self.max_user_duration_in_seconds
}
/// <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>
/// <p>Specify a value between 60 and 360000.</p>
pub fn disconnect_timeout_in_seconds(mut self, input: i32) -> Self {
self.disconnect_timeout_in_seconds = ::std::option::Option::Some(input);
self
}
/// <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>
/// <p>Specify a value between 60 and 360000.</p>
pub fn set_disconnect_timeout_in_seconds(mut self, input: ::std::option::Option<i32>) -> Self {
self.disconnect_timeout_in_seconds = input;
self
}
/// <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>
/// <p>Specify a value between 60 and 360000.</p>
pub fn get_disconnect_timeout_in_seconds(&self) -> &::std::option::Option<i32> {
&self.disconnect_timeout_in_seconds
}
/// <p>The description to display.</p>
pub fn description(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.description = ::std::option::Option::Some(input.into());
self
}
/// <p>The description to display.</p>
pub fn set_description(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.description = input;
self
}
/// <p>The description to display.</p>
pub fn get_description(&self) -> &::std::option::Option<::std::string::String> {
&self.description
}
/// <p>The fleet name to display.</p>
pub fn display_name(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.display_name = ::std::option::Option::Some(input.into());
self
}
/// <p>The fleet name to display.</p>
pub fn set_display_name(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.display_name = input;
self
}
/// <p>The fleet name to display.</p>
pub fn get_display_name(&self) -> &::std::option::Option<::std::string::String> {
&self.display_name
}
/// <p>Enables or disables default internet access for the fleet.</p>
pub fn enable_default_internet_access(mut self, input: bool) -> Self {
self.enable_default_internet_access = ::std::option::Option::Some(input);
self
}
/// <p>Enables or disables default internet access for the fleet.</p>
pub fn set_enable_default_internet_access(mut self, input: ::std::option::Option<bool>) -> Self {
self.enable_default_internet_access = input;
self
}
/// <p>Enables or disables default internet access for the fleet.</p>
pub fn get_enable_default_internet_access(&self) -> &::std::option::Option<bool> {
&self.enable_default_internet_access
}
/// <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>
pub fn domain_join_info(mut self, input: crate::types::DomainJoinInfo) -> Self {
self.domain_join_info = ::std::option::Option::Some(input);
self
}
/// <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>
pub fn set_domain_join_info(mut self, input: ::std::option::Option<crate::types::DomainJoinInfo>) -> Self {
self.domain_join_info = input;
self
}
/// <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>
pub fn get_domain_join_info(&self) -> &::std::option::Option<crate::types::DomainJoinInfo> {
&self.domain_join_info
}
/// Adds a key-value pair to `tags`.
///
/// To override the contents of this collection use [`set_tags`](Self::set_tags).
///
/// <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>
/// <p>If you do not specify a value, the value is set to an empty string.</p>
/// <p>Generally allowed characters are: letters, numbers, and spaces representable in UTF-8, and the following special characters: </p>
/// <p>_ . : / = + \ - @</p>
/// <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 AppStream 2.0 Administration Guide</i>.</p>
pub fn tags(mut self, k: impl ::std::convert::Into<::std::string::String>, v: impl ::std::convert::Into<::std::string::String>) -> Self {
let mut hash_map = self.tags.unwrap_or_default();
hash_map.insert(k.into(), v.into());
self.tags = ::std::option::Option::Some(hash_map);
self
}
/// <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>
/// <p>If you do not specify a value, the value is set to an empty string.</p>
/// <p>Generally allowed characters are: letters, numbers, and spaces representable in UTF-8, and the following special characters: </p>
/// <p>_ . : / = + \ - @</p>
/// <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 AppStream 2.0 Administration Guide</i>.</p>
pub fn set_tags(mut self, input: ::std::option::Option<::std::collections::HashMap<::std::string::String, ::std::string::String>>) -> Self {
self.tags = input;
self
}
/// <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>
/// <p>If you do not specify a value, the value is set to an empty string.</p>
/// <p>Generally allowed characters are: letters, numbers, and spaces representable in UTF-8, and the following special characters: </p>
/// <p>_ . : / = + \ - @</p>
/// <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 AppStream 2.0 Administration Guide</i>.</p>
pub fn get_tags(&self) -> &::std::option::Option<::std::collections::HashMap<::std::string::String, ::std::string::String>> {
&self.tags
}
/// <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>
/// <p>To prevent users from being disconnected due to inactivity, specify a value of 0. Otherwise, specify a value between 60 and 3600. The default value is 0.</p> <note>
/// <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>
/// </note>
pub fn idle_disconnect_timeout_in_seconds(mut self, input: i32) -> Self {
self.idle_disconnect_timeout_in_seconds = ::std::option::Option::Some(input);
self
}
/// <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>
/// <p>To prevent users from being disconnected due to inactivity, specify a value of 0. Otherwise, specify a value between 60 and 3600. The default value is 0.</p> <note>
/// <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>
/// </note>
pub fn set_idle_disconnect_timeout_in_seconds(mut self, input: ::std::option::Option<i32>) -> Self {
self.idle_disconnect_timeout_in_seconds = input;
self
}
/// <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>
/// <p>To prevent users from being disconnected due to inactivity, specify a value of 0. Otherwise, specify a value between 60 and 3600. The default value is 0.</p> <note>
/// <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>
/// </note>
pub fn get_idle_disconnect_timeout_in_seconds(&self) -> &::std::option::Option<i32> {
&self.idle_disconnect_timeout_in_seconds
}
/// <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>
/// <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>
pub fn iam_role_arn(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.iam_role_arn = ::std::option::Option::Some(input.into());
self
}
/// <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>
/// <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>
pub fn set_iam_role_arn(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.iam_role_arn = input;
self
}
/// <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>
/// <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>
pub fn get_iam_role_arn(&self) -> &::std::option::Option<::std::string::String> {
&self.iam_role_arn
}
/// <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>
/// <p>The default value is <code>APP</code>.</p>
pub fn stream_view(mut self, input: crate::types::StreamView) -> Self {
self.stream_view = ::std::option::Option::Some(input);
self
}
/// <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>
/// <p>The default value is <code>APP</code>.</p>
pub fn set_stream_view(mut self, input: ::std::option::Option<crate::types::StreamView>) -> Self {
self.stream_view = input;
self
}
/// <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>
/// <p>The default value is <code>APP</code>.</p>
pub fn get_stream_view(&self) -> &::std::option::Option<crate::types::StreamView> {
&self.stream_view
}
/// <p>The fleet platform. WINDOWS_SERVER_2019 and AMAZON_LINUX2 are supported for Elastic fleets. </p>
pub fn platform(mut self, input: crate::types::PlatformType) -> Self {
self.platform = ::std::option::Option::Some(input);
self
}
/// <p>The fleet platform. WINDOWS_SERVER_2019 and AMAZON_LINUX2 are supported for Elastic fleets. </p>
pub fn set_platform(mut self, input: ::std::option::Option<crate::types::PlatformType>) -> Self {
self.platform = input;
self
}
/// <p>The fleet platform. WINDOWS_SERVER_2019 and AMAZON_LINUX2 are supported for Elastic fleets. </p>
pub fn get_platform(&self) -> &::std::option::Option<crate::types::PlatformType> {
&self.platform
}
/// <p>The maximum concurrent sessions of the Elastic fleet. This is required for Elastic fleets, and not allowed for other fleet types.</p>
pub fn max_concurrent_sessions(mut self, input: i32) -> Self {
self.max_concurrent_sessions = ::std::option::Option::Some(input);
self
}
/// <p>The maximum concurrent sessions of the Elastic fleet. This is required for Elastic fleets, and not allowed for other fleet types.</p>
pub fn set_max_concurrent_sessions(mut self, input: ::std::option::Option<i32>) -> Self {
self.max_concurrent_sessions = input;
self
}
/// <p>The maximum concurrent sessions of the Elastic fleet. This is required for Elastic fleets, and not allowed for other fleet types.</p>
pub fn get_max_concurrent_sessions(&self) -> &::std::option::Option<i32> {
&self.max_concurrent_sessions
}
/// Appends an item to `usb_device_filter_strings`.
///
/// To override the contents of this collection use [`set_usb_device_filter_strings`](Self::set_usb_device_filter_strings).
///
/// <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>
pub fn usb_device_filter_strings(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
let mut v = self.usb_device_filter_strings.unwrap_or_default();
v.push(input.into());
self.usb_device_filter_strings = ::std::option::Option::Some(v);
self
}
/// <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>
pub fn set_usb_device_filter_strings(mut self, input: ::std::option::Option<::std::vec::Vec<::std::string::String>>) -> Self {
self.usb_device_filter_strings = input;
self
}
/// <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>
pub fn get_usb_device_filter_strings(&self) -> &::std::option::Option<::std::vec::Vec<::std::string::String>> {
&self.usb_device_filter_strings
}
/// <p>The S3 location of the session scripts configuration zip file. This only applies to Elastic fleets.</p>
pub fn session_script_s3_location(mut self, input: crate::types::S3Location) -> Self {
self.session_script_s3_location = ::std::option::Option::Some(input);
self
}
/// <p>The S3 location of the session scripts configuration zip file. This only applies to Elastic fleets.</p>
pub fn set_session_script_s3_location(mut self, input: ::std::option::Option<crate::types::S3Location>) -> Self {
self.session_script_s3_location = input;
self
}
/// <p>The S3 location of the session scripts configuration zip file. This only applies to Elastic fleets.</p>
pub fn get_session_script_s3_location(&self) -> &::std::option::Option<crate::types::S3Location> {
&self.session_script_s3_location
}
/// <p>The maximum number of user sessions on an instance. This only applies to multi-session fleets.</p>
pub fn max_sessions_per_instance(mut self, input: i32) -> Self {
self.max_sessions_per_instance = ::std::option::Option::Some(input);
self
}
/// <p>The maximum number of user sessions on an instance. This only applies to multi-session fleets.</p>
pub fn set_max_sessions_per_instance(mut self, input: ::std::option::Option<i32>) -> Self {
self.max_sessions_per_instance = input;
self
}
/// <p>The maximum number of user sessions on an instance. This only applies to multi-session fleets.</p>
pub fn get_max_sessions_per_instance(&self) -> &::std::option::Option<i32> {
&self.max_sessions_per_instance
}
/// Consumes the builder and constructs a [`CreateFleetInput`](crate::operation::create_fleet::CreateFleetInput).
pub fn build(self) -> ::std::result::Result<crate::operation::create_fleet::CreateFleetInput, ::aws_smithy_types::error::operation::BuildError> {
::std::result::Result::Ok(crate::operation::create_fleet::CreateFleetInput {
name: self.name,
image_name: self.image_name,
image_arn: self.image_arn,
instance_type: self.instance_type,
fleet_type: self.fleet_type,
compute_capacity: self.compute_capacity,
vpc_config: self.vpc_config,
max_user_duration_in_seconds: self.max_user_duration_in_seconds,
disconnect_timeout_in_seconds: self.disconnect_timeout_in_seconds,
description: self.description,
display_name: self.display_name,
enable_default_internet_access: self.enable_default_internet_access,
domain_join_info: self.domain_join_info,
tags: self.tags,
idle_disconnect_timeout_in_seconds: self.idle_disconnect_timeout_in_seconds,
iam_role_arn: self.iam_role_arn,
stream_view: self.stream_view,
platform: self.platform,
max_concurrent_sessions: self.max_concurrent_sessions,
usb_device_filter_strings: self.usb_device_filter_strings,
session_script_s3_location: self.session_script_s3_location,
max_sessions_per_instance: self.max_sessions_per_instance,
})
}
}