pub struct Builder { /* private fields */ }
Expand description

A builder for UpdateFleetInput.

Implementations§

The name of the image used to create the fleet.

Examples found in repository?
src/client.rs (line 7858)
7857
7858
7859
7860
        pub fn image_name(mut self, input: impl Into<std::string::String>) -> Self {
            self.inner = self.inner.image_name(input.into());
            self
        }

The name of the image used to create the fleet.

Examples found in repository?
src/client.rs (line 7863)
7862
7863
7864
7865
        pub fn set_image_name(mut self, input: std::option::Option<std::string::String>) -> Self {
            self.inner = self.inner.set_image_name(input);
            self
        }

The ARN of the public, private, or shared image to use.

Examples found in repository?
src/client.rs (line 7868)
7867
7868
7869
7870
        pub fn image_arn(mut self, input: impl Into<std::string::String>) -> Self {
            self.inner = self.inner.image_arn(input.into());
            self
        }

The ARN of the public, private, or shared image to use.

Examples found in repository?
src/client.rs (line 7873)
7872
7873
7874
7875
        pub fn set_image_arn(mut self, input: std::option::Option<std::string::String>) -> Self {
            self.inner = self.inner.set_image_arn(input);
            self
        }

A unique name for the fleet.

Examples found in repository?
src/client.rs (line 7878)
7877
7878
7879
7880
        pub fn name(mut self, input: impl Into<std::string::String>) -> Self {
            self.inner = self.inner.name(input.into());
            self
        }

A unique name for the fleet.

Examples found in repository?
src/client.rs (line 7883)
7882
7883
7884
7885
        pub fn set_name(mut self, input: std::option::Option<std::string::String>) -> Self {
            self.inner = self.inner.set_name(input);
            self
        }

The instance type to use when launching fleet instances. The following instance types are available:

  • stream.standard.small

  • stream.standard.medium

  • stream.standard.large

  • stream.compute.large

  • stream.compute.xlarge

  • stream.compute.2xlarge

  • stream.compute.4xlarge

  • stream.compute.8xlarge

  • stream.memory.large

  • stream.memory.xlarge

  • stream.memory.2xlarge

  • stream.memory.4xlarge

  • stream.memory.8xlarge

  • stream.memory.z1d.large

  • stream.memory.z1d.xlarge

  • stream.memory.z1d.2xlarge

  • stream.memory.z1d.3xlarge

  • stream.memory.z1d.6xlarge

  • stream.memory.z1d.12xlarge

  • stream.graphics-design.large

  • stream.graphics-design.xlarge

  • stream.graphics-design.2xlarge

  • stream.graphics-design.4xlarge

  • stream.graphics-desktop.2xlarge

  • stream.graphics.g4dn.xlarge

  • stream.graphics.g4dn.2xlarge

  • stream.graphics.g4dn.4xlarge

  • stream.graphics.g4dn.8xlarge

  • stream.graphics.g4dn.12xlarge

  • stream.graphics.g4dn.16xlarge

  • stream.graphics-pro.4xlarge

  • stream.graphics-pro.8xlarge

  • stream.graphics-pro.16xlarge

The following instance types are available for Elastic fleets:

  • stream.standard.small

  • stream.standard.medium

Examples found in repository?
src/client.rs (line 7928)
7927
7928
7929
7930
        pub fn instance_type(mut self, input: impl Into<std::string::String>) -> Self {
            self.inner = self.inner.instance_type(input.into());
            self
        }

The instance type to use when launching fleet instances. The following instance types are available:

  • stream.standard.small

  • stream.standard.medium

  • stream.standard.large

  • stream.compute.large

  • stream.compute.xlarge

  • stream.compute.2xlarge

  • stream.compute.4xlarge

  • stream.compute.8xlarge

  • stream.memory.large

  • stream.memory.xlarge

  • stream.memory.2xlarge

  • stream.memory.4xlarge

  • stream.memory.8xlarge

  • stream.memory.z1d.large

  • stream.memory.z1d.xlarge

  • stream.memory.z1d.2xlarge

  • stream.memory.z1d.3xlarge

  • stream.memory.z1d.6xlarge

  • stream.memory.z1d.12xlarge

  • stream.graphics-design.large

  • stream.graphics-design.xlarge

  • stream.graphics-design.2xlarge

  • stream.graphics-design.4xlarge

  • stream.graphics-desktop.2xlarge

  • stream.graphics.g4dn.xlarge

  • stream.graphics.g4dn.2xlarge

  • stream.graphics.g4dn.4xlarge

  • stream.graphics.g4dn.8xlarge

  • stream.graphics.g4dn.12xlarge

  • stream.graphics.g4dn.16xlarge

  • stream.graphics-pro.4xlarge

  • stream.graphics-pro.8xlarge

  • stream.graphics-pro.16xlarge

The following instance types are available for Elastic fleets:

  • stream.standard.small

  • stream.standard.medium

Examples found in repository?
src/client.rs (line 7976)
7972
7973
7974
7975
7976
7977
7978
        pub fn set_instance_type(
            mut self,
            input: std::option::Option<std::string::String>,
        ) -> Self {
            self.inner = self.inner.set_instance_type(input);
            self
        }

The desired capacity for the fleet. This is not allowed for Elastic fleets.

Examples found in repository?
src/client.rs (line 7981)
7980
7981
7982
7983
        pub fn compute_capacity(mut self, input: crate::model::ComputeCapacity) -> Self {
            self.inner = self.inner.compute_capacity(input);
            self
        }

The desired capacity for the fleet. This is not allowed for Elastic fleets.

Examples found in repository?
src/client.rs (line 7989)
7985
7986
7987
7988
7989
7990
7991
        pub fn set_compute_capacity(
            mut self,
            input: std::option::Option<crate::model::ComputeCapacity>,
        ) -> Self {
            self.inner = self.inner.set_compute_capacity(input);
            self
        }

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.

Examples found in repository?
src/client.rs (line 7994)
7993
7994
7995
7996
        pub fn vpc_config(mut self, input: crate::model::VpcConfig) -> Self {
            self.inner = self.inner.vpc_config(input);
            self
        }

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.

Examples found in repository?
src/client.rs (line 8002)
7998
7999
8000
8001
8002
8003
8004
        pub fn set_vpc_config(
            mut self,
            input: std::option::Option<crate::model::VpcConfig>,
        ) -> Self {
            self.inner = self.inner.set_vpc_config(input);
            self
        }

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.

Specify a value between 600 and 360000.

Examples found in repository?
src/client.rs (line 8008)
8007
8008
8009
8010
        pub fn max_user_duration_in_seconds(mut self, input: i32) -> Self {
            self.inner = self.inner.max_user_duration_in_seconds(input);
            self
        }

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.

Specify a value between 600 and 360000.

Examples found in repository?
src/client.rs (line 8014)
8013
8014
8015
8016
        pub fn set_max_user_duration_in_seconds(mut self, input: std::option::Option<i32>) -> Self {
            self.inner = self.inner.set_max_user_duration_in_seconds(input);
            self
        }

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.

Specify a value between 60 and 360000.

Examples found in repository?
src/client.rs (line 8020)
8019
8020
8021
8022
        pub fn disconnect_timeout_in_seconds(mut self, input: i32) -> Self {
            self.inner = self.inner.disconnect_timeout_in_seconds(input);
            self
        }

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.

Specify a value between 60 and 360000.

Examples found in repository?
src/client.rs (line 8029)
8025
8026
8027
8028
8029
8030
8031
        pub fn set_disconnect_timeout_in_seconds(
            mut self,
            input: std::option::Option<i32>,
        ) -> Self {
            self.inner = self.inner.set_disconnect_timeout_in_seconds(input);
            self
        }
👎Deprecated

Deletes the VPC association for the specified fleet.

Examples found in repository?
src/client.rs (line 8035)
8034
8035
8036
8037
        pub fn delete_vpc_config(mut self, input: bool) -> Self {
            self.inner = self.inner.delete_vpc_config(input);
            self
        }
👎Deprecated

Deletes the VPC association for the specified fleet.

Examples found in repository?
src/client.rs (line 8041)
8040
8041
8042
8043
        pub fn set_delete_vpc_config(mut self, input: std::option::Option<bool>) -> Self {
            self.inner = self.inner.set_delete_vpc_config(input);
            self
        }

The description to display.

Examples found in repository?
src/client.rs (line 8046)
8045
8046
8047
8048
        pub fn description(mut self, input: impl Into<std::string::String>) -> Self {
            self.inner = self.inner.description(input.into());
            self
        }

The description to display.

Examples found in repository?
src/client.rs (line 8051)
8050
8051
8052
8053
        pub fn set_description(mut self, input: std::option::Option<std::string::String>) -> Self {
            self.inner = self.inner.set_description(input);
            self
        }

The fleet name to display.

Examples found in repository?
src/client.rs (line 8056)
8055
8056
8057
8058
        pub fn display_name(mut self, input: impl Into<std::string::String>) -> Self {
            self.inner = self.inner.display_name(input.into());
            self
        }

The fleet name to display.

Examples found in repository?
src/client.rs (line 8061)
8060
8061
8062
8063
        pub fn set_display_name(mut self, input: std::option::Option<std::string::String>) -> Self {
            self.inner = self.inner.set_display_name(input);
            self
        }

Enables or disables default internet access for the fleet.

Examples found in repository?
src/client.rs (line 8066)
8065
8066
8067
8068
        pub fn enable_default_internet_access(mut self, input: bool) -> Self {
            self.inner = self.inner.enable_default_internet_access(input);
            self
        }

Enables or disables default internet access for the fleet.

Examples found in repository?
src/client.rs (line 8074)
8070
8071
8072
8073
8074
8075
8076
        pub fn set_enable_default_internet_access(
            mut self,
            input: std::option::Option<bool>,
        ) -> Self {
            self.inner = self.inner.set_enable_default_internet_access(input);
            self
        }

The name of the directory and organizational unit (OU) to use to join the fleet to a Microsoft Active Directory domain.

Examples found in repository?
src/client.rs (line 8079)
8078
8079
8080
8081
        pub fn domain_join_info(mut self, input: crate::model::DomainJoinInfo) -> Self {
            self.inner = self.inner.domain_join_info(input);
            self
        }

The name of the directory and organizational unit (OU) to use to join the fleet to a Microsoft Active Directory domain.

Examples found in repository?
src/client.rs (line 8087)
8083
8084
8085
8086
8087
8088
8089
        pub fn set_domain_join_info(
            mut self,
            input: std::option::Option<crate::model::DomainJoinInfo>,
        ) -> Self {
            self.inner = self.inner.set_domain_join_info(input);
            self
        }

The amount of time that users can be idle (inactive) before they are disconnected from their streaming session and the DisconnectTimeoutInSeconds time interval begins. Users are notified before they are disconnected due to inactivity. If users try to reconnect to the streaming session before the time interval specified in DisconnectTimeoutInSeconds 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 IdleDisconnectTimeoutInSeconds elapses, they are disconnected.

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.

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.

Examples found in repository?
src/client.rs (line 8095)
8094
8095
8096
8097
        pub fn idle_disconnect_timeout_in_seconds(mut self, input: i32) -> Self {
            self.inner = self.inner.idle_disconnect_timeout_in_seconds(input);
            self
        }

The amount of time that users can be idle (inactive) before they are disconnected from their streaming session and the DisconnectTimeoutInSeconds time interval begins. Users are notified before they are disconnected due to inactivity. If users try to reconnect to the streaming session before the time interval specified in DisconnectTimeoutInSeconds 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 IdleDisconnectTimeoutInSeconds elapses, they are disconnected.

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.

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.

Examples found in repository?
src/client.rs (line 8106)
8102
8103
8104
8105
8106
8107
8108
        pub fn set_idle_disconnect_timeout_in_seconds(
            mut self,
            input: std::option::Option<i32>,
        ) -> Self {
            self.inner = self.inner.set_idle_disconnect_timeout_in_seconds(input);
            self
        }

Appends an item to attributes_to_delete.

To override the contents of this collection use set_attributes_to_delete.

The fleet attributes to delete.

Examples found in repository?
src/client.rs (line 8115)
8114
8115
8116
8117
        pub fn attributes_to_delete(mut self, input: crate::model::FleetAttribute) -> Self {
            self.inner = self.inner.attributes_to_delete(input);
            self
        }

The fleet attributes to delete.

Examples found in repository?
src/client.rs (line 8123)
8119
8120
8121
8122
8123
8124
8125
        pub fn set_attributes_to_delete(
            mut self,
            input: std::option::Option<std::vec::Vec<crate::model::FleetAttribute>>,
        ) -> Self {
            self.inner = self.inner.set_attributes_to_delete(input);
            self
        }

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) AssumeRole 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 appstream_machine_role credential profile on the instance.

For more information, see Using an IAM Role to Grant Permissions to Applications and Scripts Running on AppStream 2.0 Streaming Instances in the Amazon AppStream 2.0 Administration Guide.

Examples found in repository?
src/client.rs (line 8129)
8128
8129
8130
8131
        pub fn iam_role_arn(mut self, input: impl Into<std::string::String>) -> Self {
            self.inner = self.inner.iam_role_arn(input.into());
            self
        }

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) AssumeRole 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 appstream_machine_role credential profile on the instance.

For more information, see Using an IAM Role to Grant Permissions to Applications and Scripts Running on AppStream 2.0 Streaming Instances in the Amazon AppStream 2.0 Administration Guide.

Examples found in repository?
src/client.rs (line 8135)
8134
8135
8136
8137
        pub fn set_iam_role_arn(mut self, input: std::option::Option<std::string::String>) -> Self {
            self.inner = self.inner.set_iam_role_arn(input);
            self
        }

The AppStream 2.0 view that is displayed to your users when they stream from the fleet. When APP is specified, only the windows of applications opened by users display. When DESKTOP is specified, the standard desktop that is provided by the operating system displays.

The default value is APP.

Examples found in repository?
src/client.rs (line 8141)
8140
8141
8142
8143
        pub fn stream_view(mut self, input: crate::model::StreamView) -> Self {
            self.inner = self.inner.stream_view(input);
            self
        }

The AppStream 2.0 view that is displayed to your users when they stream from the fleet. When APP is specified, only the windows of applications opened by users display. When DESKTOP is specified, the standard desktop that is provided by the operating system displays.

The default value is APP.

Examples found in repository?
src/client.rs (line 8150)
8146
8147
8148
8149
8150
8151
8152
        pub fn set_stream_view(
            mut self,
            input: std::option::Option<crate::model::StreamView>,
        ) -> Self {
            self.inner = self.inner.set_stream_view(input);
            self
        }

The platform of the fleet. WINDOWS_SERVER_2019 and AMAZON_LINUX2 are supported for Elastic fleets.

Examples found in repository?
src/client.rs (line 8155)
8154
8155
8156
8157
        pub fn platform(mut self, input: crate::model::PlatformType) -> Self {
            self.inner = self.inner.platform(input);
            self
        }

The platform of the fleet. WINDOWS_SERVER_2019 and AMAZON_LINUX2 are supported for Elastic fleets.

Examples found in repository?
src/client.rs (line 8163)
8159
8160
8161
8162
8163
8164
8165
        pub fn set_platform(
            mut self,
            input: std::option::Option<crate::model::PlatformType>,
        ) -> Self {
            self.inner = self.inner.set_platform(input);
            self
        }

The maximum number of concurrent sessions for a fleet.

Examples found in repository?
src/client.rs (line 8168)
8167
8168
8169
8170
        pub fn max_concurrent_sessions(mut self, input: i32) -> Self {
            self.inner = self.inner.max_concurrent_sessions(input);
            self
        }

The maximum number of concurrent sessions for a fleet.

Examples found in repository?
src/client.rs (line 8173)
8172
8173
8174
8175
        pub fn set_max_concurrent_sessions(mut self, input: std::option::Option<i32>) -> Self {
            self.inner = self.inner.set_max_concurrent_sessions(input);
            self
        }

Appends an item to usb_device_filter_strings.

To override the contents of this collection use set_usb_device_filter_strings.

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.

Examples found in repository?
src/client.rs (line 8182)
8181
8182
8183
8184
        pub fn usb_device_filter_strings(mut self, input: impl Into<std::string::String>) -> Self {
            self.inner = self.inner.usb_device_filter_strings(input.into());
            self
        }

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.

Examples found in repository?
src/client.rs (line 8190)
8186
8187
8188
8189
8190
8191
8192
        pub fn set_usb_device_filter_strings(
            mut self,
            input: std::option::Option<std::vec::Vec<std::string::String>>,
        ) -> Self {
            self.inner = self.inner.set_usb_device_filter_strings(input);
            self
        }

The S3 location of the session scripts configuration zip file. This only applies to Elastic fleets.

Examples found in repository?
src/client.rs (line 8195)
8194
8195
8196
8197
        pub fn session_script_s3_location(mut self, input: crate::model::S3Location) -> Self {
            self.inner = self.inner.session_script_s3_location(input);
            self
        }

The S3 location of the session scripts configuration zip file. This only applies to Elastic fleets.

Examples found in repository?
src/client.rs (line 8203)
8199
8200
8201
8202
8203
8204
8205
        pub fn set_session_script_s3_location(
            mut self,
            input: std::option::Option<crate::model::S3Location>,
        ) -> Self {
            self.inner = self.inner.set_session_script_s3_location(input);
            self
        }

Consumes the builder and constructs a UpdateFleetInput.

Examples found in repository?
src/client.rs (line 7825)
7813
7814
7815
7816
7817
7818
7819
7820
7821
7822
7823
7824
7825
7826
7827
7828
7829
7830
7831
7832
7833
7834
7835
7836
7837
7838
7839
7840
7841
7842
7843
7844
7845
7846
7847
7848
7849
7850
7851
7852
7853
7854
7855
        pub async fn customize(
            self,
        ) -> std::result::Result<
            crate::operation::customize::CustomizableOperation<
                crate::operation::UpdateFleet,
                aws_http::retry::AwsResponseRetryClassifier,
            >,
            aws_smithy_http::result::SdkError<crate::error::UpdateFleetError>,
        > {
            let handle = self.handle.clone();
            let operation = self
                .inner
                .build()
                .map_err(aws_smithy_http::result::SdkError::construction_failure)?
                .make_operation(&handle.conf)
                .await
                .map_err(aws_smithy_http::result::SdkError::construction_failure)?;
            Ok(crate::operation::customize::CustomizableOperation { handle, operation })
        }

        /// Sends the request and returns the response.
        ///
        /// If an error occurs, an `SdkError` will be returned with additional details that
        /// can be matched against.
        ///
        /// By default, any retryable failures will be retried twice. Retry behavior
        /// is configurable with the [RetryConfig](aws_smithy_types::retry::RetryConfig), which can be
        /// set when configuring the client.
        pub async fn send(
            self,
        ) -> std::result::Result<
            crate::output::UpdateFleetOutput,
            aws_smithy_http::result::SdkError<crate::error::UpdateFleetError>,
        > {
            let op = self
                .inner
                .build()
                .map_err(aws_smithy_http::result::SdkError::construction_failure)?
                .make_operation(&self.handle.conf)
                .await
                .map_err(aws_smithy_http::result::SdkError::construction_failure)?;
            self.handle.client.call(op).await
        }

Trait Implementations§

Returns a copy of the value. Read more
Performs copy-assignment from source. Read more
Formats the value using the given formatter. Read more
Returns the “default value” for a type. Read more
This method tests for self and other values to be equal, and is used by ==. Read more
This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason. Read more

Auto Trait Implementations§

Blanket Implementations§

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Instruments this type with the current Span, returning an Instrumented wrapper. Read more

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Should always be Self
The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning. Read more
Uses borrowed data to replace owned data, usually by cloning. Read more
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.
Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more