pub struct Client<C = DynConnector, M = DefaultMiddleware, R = Standard> { /* private fields */ }
Expand description

Client for Amazon AppStream

Client for invoking operations on Amazon AppStream. Each operation on Amazon AppStream is a method on this this struct. .send() MUST be invoked on the generated operations to dispatch the request to the service.

Examples

Constructing a client and invoking an operation

    // create a shared configuration. This can be used & shared between multiple service clients.
    let shared_config = aws_config::load_from_env().await;
    let client = aws_sdk_appstream::Client::new(&shared_config);
    // invoke an operation
    /* let rsp = client
        .<operation_name>().
        .<param>("some value")
        .send().await; */

Constructing a client with custom configuration

use aws_config::RetryConfig;
    let shared_config = aws_config::load_from_env().await;
    let config = aws_sdk_appstream::config::Builder::from(&shared_config)
        .retry_config(RetryConfig::disabled())
        .build();
    let client = aws_sdk_appstream::Client::from_conf(config);

Implementations

Creates a client with the given service configuration.

Returns the client’s configuration.

Constructs a fluent builder for the AssociateApplicationFleet operation.

Constructs a fluent builder for the AssociateApplicationToEntitlement operation.

Constructs a fluent builder for the AssociateFleet operation.

Constructs a fluent builder for the BatchAssociateUserStack operation.

Constructs a fluent builder for the BatchDisassociateUserStack operation.

Constructs a fluent builder for the CopyImage operation.

Constructs a fluent builder for the CreateAppBlock operation.

Constructs a fluent builder for the CreateApplication operation.

Constructs a fluent builder for the CreateDirectoryConfig operation.

Constructs a fluent builder for the CreateEntitlement operation.

Constructs a fluent builder for the CreateFleet operation.

  • The fluent builder is configurable:
    • name(impl Into<String>) / set_name(Option<String>):

      A unique name for the fleet.

    • image_name(impl Into<String>) / set_image_name(Option<String>):

      The name of the image used to create the fleet.

    • image_arn(impl Into<String>) / set_image_arn(Option<String>):

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

    • instance_type(impl Into<String>) / set_instance_type(Option<String>):

      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

    • fleet_type(FleetType) / set_fleet_type(Option<FleetType>):

      The fleet type.

      ALWAYS_ON

      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.

      ON_DEMAND

      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.

    • compute_capacity(ComputeCapacity) / set_compute_capacity(Option<ComputeCapacity>):

      The desired capacity for the fleet. This is not allowed for Elastic fleets. For Elastic fleets, specify MaxConcurrentSessions instead.

    • vpc_config(VpcConfig) / set_vpc_config(Option<VpcConfig>):

      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.

    • max_user_duration_in_seconds(i32) / set_max_user_duration_in_seconds(Option<i32>):

      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.

    • disconnect_timeout_in_seconds(i32) / set_disconnect_timeout_in_seconds(Option<i32>):

      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.

    • description(impl Into<String>) / set_description(Option<String>):

      The description to display.

    • display_name(impl Into<String>) / set_display_name(Option<String>):

      The fleet name to display.

    • enable_default_internet_access(bool) / set_enable_default_internet_access(Option<bool>):

      Enables or disables default internet access for the fleet.

    • domain_join_info(DomainJoinInfo) / set_domain_join_info(Option<DomainJoinInfo>):

      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.

    • tags(HashMap<String, String>) / set_tags(Option<HashMap<String, String>>):

      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=.

      If you do not specify a value, the value is set to an empty string.

      Generally allowed characters are: letters, numbers, and spaces representable in UTF-8, and the following special characters:

      _ . : / = + \ - @

      For more information, see Tagging Your Resources in the Amazon AppStream 2.0 Administration Guide.

    • idle_disconnect_timeout_in_seconds(i32) / set_idle_disconnect_timeout_in_seconds(Option<i32>):

      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 they 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.

    • iam_role_arn(impl Into<String>) / set_iam_role_arn(Option<String>):

      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.

    • stream_view(StreamView) / set_stream_view(Option<StreamView>):

      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.

    • platform(PlatformType) / set_platform(Option<PlatformType>):

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

    • max_concurrent_sessions(i32) / set_max_concurrent_sessions(Option<i32>):

      The maximum concurrent sessions of the Elastic fleet. This is required for Elastic fleets, and not allowed for other fleet types.

    • usb_device_filter_strings(Vec<String>) / set_usb_device_filter_strings(Option<Vec<String>>):

      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.

  • On success, responds with CreateFleetOutput with field(s):
  • On failure, responds with SdkError<CreateFleetError>

Constructs a fluent builder for the CreateImageBuilder operation.

Constructs a fluent builder for the CreateImageBuilderStreamingURL operation.

Constructs a fluent builder for the CreateStack operation.

Constructs a fluent builder for the CreateStreamingURL operation.

Constructs a fluent builder for the CreateUpdatedImage operation.

Constructs a fluent builder for the CreateUsageReportSubscription operation.

  • The fluent builder takes no input, just send it.
  • On success, responds with CreateUsageReportSubscriptionOutput with field(s):
    • s3_bucket_name(Option<String>):

      The Amazon S3 bucket where generated reports are stored.

      If you enabled on-instance session scripts and Amazon S3 logging for your session script configuration, AppStream 2.0 created an S3 bucket to store the script output. The bucket is unique to your account and Region. When you enable usage reporting in this case, AppStream 2.0 uses the same bucket to store your usage reports. If you haven’t already enabled on-instance session scripts, when you enable usage reports, AppStream 2.0 creates a new S3 bucket.

    • schedule(Option<UsageReportSchedule>):

      The schedule for generating usage reports.

  • On failure, responds with SdkError<CreateUsageReportSubscriptionError>

Constructs a fluent builder for the CreateUser operation.

Constructs a fluent builder for the DeleteAppBlock operation.

Constructs a fluent builder for the DeleteApplication operation.

Constructs a fluent builder for the DeleteDirectoryConfig operation.

Constructs a fluent builder for the DeleteEntitlement operation.

Constructs a fluent builder for the DeleteFleet operation.

Constructs a fluent builder for the DeleteImage operation.

Constructs a fluent builder for the DeleteImageBuilder operation.

Constructs a fluent builder for the DeleteImagePermissions operation.

Constructs a fluent builder for the DeleteStack operation.

Constructs a fluent builder for the DeleteUsageReportSubscription operation.

Constructs a fluent builder for the DeleteUser operation.

Constructs a fluent builder for the DescribeAppBlocks operation.

Constructs a fluent builder for the DescribeApplicationFleetAssociations operation.

Constructs a fluent builder for the DescribeApplications operation.

Constructs a fluent builder for the DescribeDirectoryConfigs operation.

Constructs a fluent builder for the DescribeEntitlements operation.

Constructs a fluent builder for the DescribeFleets operation.

Constructs a fluent builder for the DescribeImageBuilders operation.

Constructs a fluent builder for the DescribeImagePermissions operation. This operation supports pagination; See into_paginator().

Constructs a fluent builder for the DescribeImages operation. This operation supports pagination; See into_paginator().

Constructs a fluent builder for the DescribeSessions operation.

Constructs a fluent builder for the DescribeStacks operation.

Constructs a fluent builder for the DescribeUsageReportSubscriptions operation.

Constructs a fluent builder for the DescribeUsers operation.

Constructs a fluent builder for the DescribeUserStackAssociations operation.

Constructs a fluent builder for the DisableUser operation.

Constructs a fluent builder for the DisassociateApplicationFleet operation.

Constructs a fluent builder for the DisassociateApplicationFromEntitlement operation.

Constructs a fluent builder for the DisassociateFleet operation.

Constructs a fluent builder for the EnableUser operation.

Constructs a fluent builder for the ExpireSession operation.

Constructs a fluent builder for the ListAssociatedFleets operation.

Constructs a fluent builder for the ListAssociatedStacks operation.

Constructs a fluent builder for the ListEntitledApplications operation.

Constructs a fluent builder for the ListTagsForResource operation.

Constructs a fluent builder for the StartFleet operation.

Constructs a fluent builder for the StartImageBuilder operation.

Constructs a fluent builder for the StopFleet operation.

Constructs a fluent builder for the StopImageBuilder operation.

Constructs a fluent builder for the TagResource operation.

Constructs a fluent builder for the UntagResource operation.

Constructs a fluent builder for the UpdateApplication operation.

Constructs a fluent builder for the UpdateDirectoryConfig operation.

Constructs a fluent builder for the UpdateEntitlement operation.

Constructs a fluent builder for the UpdateFleet operation.

Constructs a fluent builder for the UpdateImagePermissions operation.

Constructs a fluent builder for the UpdateStack operation.

Creates a client with the given service config and connector override.

Creates a new client from a shared config.

Creates a new client from the service Config.

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

Performs the conversion.

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

Performs the conversion.

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

Performs the conversion.

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

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