Class: Aws::AppStream::Client
- Inherits:
-
Seahorse::Client::Base
- Object
- Seahorse::Client::Base
- Aws::AppStream::Client
- Includes:
- ClientStubs
- Defined in:
- gems/aws-sdk-appstream/lib/aws-sdk-appstream/client.rb
Overview
An API client for AppStream. To construct a client, you need to configure a :region and :credentials.
client = Aws::AppStream::Client.new(
region: region_name,
credentials: credentials,
# ...
)
For details on configuring region and credentials see the developer guide.
See #initialize for a full list of supported configuration options.
Instance Attribute Summary
Attributes inherited from Seahorse::Client::Base
API Operations collapse
-
#associate_app_block_builder_app_block(params = {}) ⇒ Types::AssociateAppBlockBuilderAppBlockResult
Associates the specified app block builder with the specified app block.
-
#associate_application_fleet(params = {}) ⇒ Types::AssociateApplicationFleetResult
Associates the specified application with the specified fleet.
-
#associate_application_to_entitlement(params = {}) ⇒ Struct
Associates an application to entitle.
-
#associate_fleet(params = {}) ⇒ Struct
Associates the specified fleet with the specified stack.
-
#associate_software_to_image_builder(params = {}) ⇒ Struct
Associates license included application(s) with an existing image builder instance.
-
#batch_associate_user_stack(params = {}) ⇒ Types::BatchAssociateUserStackResult
Associates the specified users with the specified stacks.
-
#batch_disassociate_user_stack(params = {}) ⇒ Types::BatchDisassociateUserStackResult
Disassociates the specified users from the specified stacks.
-
#copy_image(params = {}) ⇒ Types::CopyImageResponse
Copies the image within the same region or to a new region within the same AWS account.
-
#create_app_block(params = {}) ⇒ Types::CreateAppBlockResult
Creates an app block.
-
#create_app_block_builder(params = {}) ⇒ Types::CreateAppBlockBuilderResult
Creates an app block builder.
-
#create_app_block_builder_streaming_url(params = {}) ⇒ Types::CreateAppBlockBuilderStreamingURLResult
Creates a URL to start a create app block builder streaming session.
-
#create_application(params = {}) ⇒ Types::CreateApplicationResult
Creates an application.
-
#create_directory_config(params = {}) ⇒ Types::CreateDirectoryConfigResult
Creates a Directory Config object in WorkSpaces Applications.
-
#create_entitlement(params = {}) ⇒ Types::CreateEntitlementResult
Creates a new entitlement.
-
#create_export_image_task(params = {}) ⇒ Types::CreateExportImageTaskResult
Creates a task to export a WorkSpaces Applications image to an EC2 AMI.
-
#create_fleet(params = {}) ⇒ Types::CreateFleetResult
Creates a fleet.
-
#create_image_builder(params = {}) ⇒ Types::CreateImageBuilderResult
Creates an image builder.
-
#create_image_builder_streaming_url(params = {}) ⇒ Types::CreateImageBuilderStreamingURLResult
Creates a URL to start an image builder streaming session.
-
#create_imported_image(params = {}) ⇒ Types::CreateImportedImageResult
Creates a custom WorkSpaces Applications image by importing an EC2 AMI.
-
#create_stack(params = {}) ⇒ Types::CreateStackResult
Creates a stack to start streaming applications to users.
-
#create_streaming_url(params = {}) ⇒ Types::CreateStreamingURLResult
Creates a temporary URL to start an WorkSpaces Applications streaming session for the specified user.
-
#create_theme_for_stack(params = {}) ⇒ Types::CreateThemeForStackResult
Creates custom branding that customizes the appearance of the streaming application catalog page.
-
#create_updated_image(params = {}) ⇒ Types::CreateUpdatedImageResult
Creates a new image with the latest Windows operating system updates, driver updates, and WorkSpaces Applications agent software.
-
#create_usage_report_subscription(params = {}) ⇒ Types::CreateUsageReportSubscriptionResult
Creates a usage report subscription.
-
#create_user(params = {}) ⇒ Struct
Creates a new user in the user pool.
-
#delete_app_block(params = {}) ⇒ Struct
Deletes an app block.
-
#delete_app_block_builder(params = {}) ⇒ Struct
Deletes an app block builder.
-
#delete_application(params = {}) ⇒ Struct
Deletes an application.
-
#delete_directory_config(params = {}) ⇒ Struct
Deletes the specified Directory Config object from WorkSpaces Applications.
-
#delete_entitlement(params = {}) ⇒ Struct
Deletes the specified entitlement.
-
#delete_fleet(params = {}) ⇒ Struct
Deletes the specified fleet.
-
#delete_image(params = {}) ⇒ Types::DeleteImageResult
Deletes the specified image.
-
#delete_image_builder(params = {}) ⇒ Types::DeleteImageBuilderResult
Deletes the specified image builder and releases the capacity.
-
#delete_image_permissions(params = {}) ⇒ Struct
Deletes permissions for the specified private image.
-
#delete_stack(params = {}) ⇒ Struct
Deletes the specified stack.
-
#delete_theme_for_stack(params = {}) ⇒ Struct
Deletes custom branding that customizes the appearance of the streaming application catalog page.
-
#delete_usage_report_subscription(params = {}) ⇒ Struct
Disables usage report generation.
-
#delete_user(params = {}) ⇒ Struct
Deletes a user from the user pool.
-
#describe_app_block_builder_app_block_associations(params = {}) ⇒ Types::DescribeAppBlockBuilderAppBlockAssociationsResult
Retrieves a list that describes one or more app block builder associations.
-
#describe_app_block_builders(params = {}) ⇒ Types::DescribeAppBlockBuildersResult
Retrieves a list that describes one or more app block builders.
-
#describe_app_blocks(params = {}) ⇒ Types::DescribeAppBlocksResult
Retrieves a list that describes one or more app blocks.
-
#describe_app_license_usage(params = {}) ⇒ Types::DescribeAppLicenseUsageResult
Retrieves license included application usage information.
-
#describe_application_fleet_associations(params = {}) ⇒ Types::DescribeApplicationFleetAssociationsResult
Retrieves a list that describes one or more application fleet associations.
-
#describe_applications(params = {}) ⇒ Types::DescribeApplicationsResult
Retrieves a list that describes one or more applications.
-
#describe_directory_configs(params = {}) ⇒ Types::DescribeDirectoryConfigsResult
Retrieves a list that describes one or more specified Directory Config objects for WorkSpaces Applications, if the names for these objects are provided.
-
#describe_entitlements(params = {}) ⇒ Types::DescribeEntitlementsResult
Retrieves a list that describes one of more entitlements.
-
#describe_fleets(params = {}) ⇒ Types::DescribeFleetsResult
Retrieves a list that describes one or more specified fleets, if the fleet names are provided.
-
#describe_image_builders(params = {}) ⇒ Types::DescribeImageBuildersResult
Retrieves a list that describes one or more specified image builders, if the image builder names are provided.
-
#describe_image_permissions(params = {}) ⇒ Types::DescribeImagePermissionsResult
Retrieves a list that describes the permissions for shared AWS account IDs on a private image that you own.
-
#describe_images(params = {}) ⇒ Types::DescribeImagesResult
Retrieves a list that describes one or more specified images, if the image names or image ARNs are provided.
-
#describe_sessions(params = {}) ⇒ Types::DescribeSessionsResult
Retrieves a list that describes the streaming sessions for a specified stack and fleet.
-
#describe_software_associations(params = {}) ⇒ Types::DescribeSoftwareAssociationsResult
Retrieves license included application associations for a specified resource.
-
#describe_stacks(params = {}) ⇒ Types::DescribeStacksResult
Retrieves a list that describes one or more specified stacks, if the stack names are provided.
-
#describe_theme_for_stack(params = {}) ⇒ Types::DescribeThemeForStackResult
Retrieves a list that describes the theme for a specified stack.
-
#describe_usage_report_subscriptions(params = {}) ⇒ Types::DescribeUsageReportSubscriptionsResult
Retrieves a list that describes one or more usage report subscriptions.
-
#describe_user_stack_associations(params = {}) ⇒ Types::DescribeUserStackAssociationsResult
Retrieves a list that describes the UserStackAssociation objects.
-
#describe_users(params = {}) ⇒ Types::DescribeUsersResult
Retrieves a list that describes one or more specified users in the user pool.
-
#disable_user(params = {}) ⇒ Struct
Disables the specified user in the user pool.
-
#disassociate_app_block_builder_app_block(params = {}) ⇒ Struct
Disassociates a specified app block builder from a specified app block.
-
#disassociate_application_fleet(params = {}) ⇒ Struct
Disassociates the specified application from the fleet.
-
#disassociate_application_from_entitlement(params = {}) ⇒ Struct
Deletes the specified application from the specified entitlement.
-
#disassociate_fleet(params = {}) ⇒ Struct
Disassociates the specified fleet from the specified stack.
-
#disassociate_software_from_image_builder(params = {}) ⇒ Struct
Removes license included application(s) association(s) from an image builder instance.
-
#enable_user(params = {}) ⇒ Struct
Enables a user in the user pool.
-
#expire_session(params = {}) ⇒ Struct
Immediately stops the specified streaming session.
-
#get_export_image_task(params = {}) ⇒ Types::GetExportImageTaskResult
Retrieves information about an export image task, including its current state, progress, and any error details.
-
#list_associated_fleets(params = {}) ⇒ Types::ListAssociatedFleetsResult
Retrieves the name of the fleet that is associated with the specified stack.
-
#list_associated_stacks(params = {}) ⇒ Types::ListAssociatedStacksResult
Retrieves the name of the stack with which the specified fleet is associated.
-
#list_entitled_applications(params = {}) ⇒ Types::ListEntitledApplicationsResult
Retrieves a list of entitled applications.
-
#list_export_image_tasks(params = {}) ⇒ Types::ListExportImageTasksResult
Lists export image tasks, with optional filtering and pagination.
-
#list_tags_for_resource(params = {}) ⇒ Types::ListTagsForResourceResponse
Retrieves a list of all tags for the specified WorkSpaces Applications resource.
-
#start_app_block_builder(params = {}) ⇒ Types::StartAppBlockBuilderResult
Starts an app block builder.
-
#start_fleet(params = {}) ⇒ Struct
Starts the specified fleet.
-
#start_image_builder(params = {}) ⇒ Types::StartImageBuilderResult
Starts the specified image builder.
-
#start_software_deployment_to_image_builder(params = {}) ⇒ Struct
Initiates license included applications deployment to an image builder instance.
-
#stop_app_block_builder(params = {}) ⇒ Types::StopAppBlockBuilderResult
Stops an app block builder.
-
#stop_fleet(params = {}) ⇒ Struct
Stops the specified fleet.
-
#stop_image_builder(params = {}) ⇒ Types::StopImageBuilderResult
Stops the specified image builder.
-
#tag_resource(params = {}) ⇒ Struct
Adds or overwrites one or more tags for the specified WorkSpaces Applications resource.
-
#untag_resource(params = {}) ⇒ Struct
Disassociates one or more specified tags from the specified WorkSpaces Applications resource.
-
#update_app_block_builder(params = {}) ⇒ Types::UpdateAppBlockBuilderResult
Updates an app block builder.
-
#update_application(params = {}) ⇒ Types::UpdateApplicationResult
Updates the specified application.
-
#update_directory_config(params = {}) ⇒ Types::UpdateDirectoryConfigResult
Updates the specified Directory Config object in WorkSpaces Applications.
-
#update_entitlement(params = {}) ⇒ Types::UpdateEntitlementResult
Updates the specified entitlement.
-
#update_fleet(params = {}) ⇒ Types::UpdateFleetResult
Updates the specified fleet.
-
#update_image_permissions(params = {}) ⇒ Struct
Adds or updates permissions for the specified private image.
-
#update_stack(params = {}) ⇒ Types::UpdateStackResult
Updates the specified fields for the specified stack.
-
#update_theme_for_stack(params = {}) ⇒ Types::UpdateThemeForStackResult
Updates custom branding that customizes the appearance of the streaming application catalog page.
Instance Method Summary collapse
-
#initialize(options) ⇒ Client
constructor
A new instance of Client.
-
#wait_until(waiter_name, params = {}, options = {}) {|w.waiter| ... } ⇒ Boolean
Polls an API operation until a resource enters a desired state.
Methods included from ClientStubs
#api_requests, #stub_data, #stub_responses
Methods inherited from Seahorse::Client::Base
add_plugin, api, clear_plugins, define, new, #operation_names, plugins, remove_plugin, set_api, set_plugins
Methods included from Seahorse::Client::HandlerBuilder
#handle, #handle_request, #handle_response
Constructor Details
#initialize(options) ⇒ Client
Returns a new instance of Client.
480 481 482 |
# File 'gems/aws-sdk-appstream/lib/aws-sdk-appstream/client.rb', line 480 def initialize(*args) super end |
Instance Method Details
#associate_app_block_builder_app_block(params = {}) ⇒ Types::AssociateAppBlockBuilderAppBlockResult
Associates the specified app block builder with the specified app block.
515 516 517 518 |
# File 'gems/aws-sdk-appstream/lib/aws-sdk-appstream/client.rb', line 515 def associate_app_block_builder_app_block(params = {}, = {}) req = build_request(:associate_app_block_builder_app_block, params) req.send_request() end |
#associate_application_fleet(params = {}) ⇒ Types::AssociateApplicationFleetResult
Associates the specified application with the specified fleet. This is only supported for Elastic fleets.
549 550 551 552 |
# File 'gems/aws-sdk-appstream/lib/aws-sdk-appstream/client.rb', line 549 def associate_application_fleet(params = {}, = {}) req = build_request(:associate_application_fleet, params) req.send_request() end |
#associate_application_to_entitlement(params = {}) ⇒ Struct
Associates an application to entitle.
579 580 581 582 |
# File 'gems/aws-sdk-appstream/lib/aws-sdk-appstream/client.rb', line 579 def associate_application_to_entitlement(params = {}, = {}) req = build_request(:associate_application_to_entitlement, params) req.send_request() end |
#associate_fleet(params = {}) ⇒ Struct
Associates the specified fleet with the specified stack.
605 606 607 608 |
# File 'gems/aws-sdk-appstream/lib/aws-sdk-appstream/client.rb', line 605 def associate_fleet(params = {}, = {}) req = build_request(:associate_fleet, params) req.send_request() end |
#associate_software_to_image_builder(params = {}) ⇒ Struct
Associates license included application(s) with an existing image builder instance.
683 684 685 686 |
# File 'gems/aws-sdk-appstream/lib/aws-sdk-appstream/client.rb', line 683 def associate_software_to_image_builder(params = {}, = {}) req = build_request(:associate_software_to_image_builder, params) req.send_request() end |
#batch_associate_user_stack(params = {}) ⇒ Types::BatchAssociateUserStackResult
Associates the specified users with the specified stacks. Users in a user pool cannot be assigned to stacks with fleets that are joined to an Active Directory domain.
726 727 728 729 |
# File 'gems/aws-sdk-appstream/lib/aws-sdk-appstream/client.rb', line 726 def batch_associate_user_stack(params = {}, = {}) req = build_request(:batch_associate_user_stack, params) req.send_request() end |
#batch_disassociate_user_stack(params = {}) ⇒ Types::BatchDisassociateUserStackResult
Disassociates the specified users from the specified stacks.
767 768 769 770 |
# File 'gems/aws-sdk-appstream/lib/aws-sdk-appstream/client.rb', line 767 def batch_disassociate_user_stack(params = {}, = {}) req = build_request(:batch_disassociate_user_stack, params) req.send_request() end |
#copy_image(params = {}) ⇒ Types::CopyImageResponse
Copies the image within the same region or to a new region within the same AWS account. Note that any tags you added to the image will not be copied.
813 814 815 816 |
# File 'gems/aws-sdk-appstream/lib/aws-sdk-appstream/client.rb', line 813 def copy_image(params = {}, = {}) req = build_request(:copy_image, params) req.send_request() end |
#create_app_block(params = {}) ⇒ Types::CreateAppBlockResult
Creates an app block.
App blocks are a WorkSpaces Applications resource that stores the details about the virtual hard disk in an S3 bucket. It also stores the setup script with details about how to mount the virtual hard disk. The virtual hard disk includes the application binaries and other files necessary to launch your applications. Multiple applications can be assigned to a single app block.
This is only supported for Elastic fleets.
922 923 924 925 |
# File 'gems/aws-sdk-appstream/lib/aws-sdk-appstream/client.rb', line 922 def create_app_block(params = {}, = {}) req = build_request(:create_app_block, params) req.send_request() end |
#create_app_block_builder(params = {}) ⇒ Types::CreateAppBlockBuilderResult
Creates an app block builder.
1073 1074 1075 1076 |
# File 'gems/aws-sdk-appstream/lib/aws-sdk-appstream/client.rb', line 1073 def create_app_block_builder(params = {}, = {}) req = build_request(:create_app_block_builder, params) req.send_request() end |
#create_app_block_builder_streaming_url(params = {}) ⇒ Types::CreateAppBlockBuilderStreamingURLResult
Creates a URL to start a create app block builder streaming session.
1108 1109 1110 1111 |
# File 'gems/aws-sdk-appstream/lib/aws-sdk-appstream/client.rb', line 1108 def create_app_block_builder_streaming_url(params = {}, = {}) req = build_request(:create_app_block_builder_streaming_url, params) req.send_request() end |
#create_application(params = {}) ⇒ Types::CreateApplicationResult
Creates an application.
Applications are a WorkSpaces Applications resource that stores the details about how to launch applications on Elastic fleet streaming instances. An application consists of the launch details, icon, and display name. Applications are associated with an app block that contains the application binaries and other files. The applications assigned to an Elastic fleet are the applications users can launch.
This is only supported for Elastic fleets.
1212 1213 1214 1215 |
# File 'gems/aws-sdk-appstream/lib/aws-sdk-appstream/client.rb', line 1212 def create_application(params = {}, = {}) req = build_request(:create_application, params) req.send_request() end |
#create_directory_config(params = {}) ⇒ Types::CreateDirectoryConfigResult
Creates a Directory Config object in WorkSpaces Applications. This object includes the configuration information required to join fleets and image builders to Microsoft Active Directory domains.
1279 1280 1281 1282 |
# File 'gems/aws-sdk-appstream/lib/aws-sdk-appstream/client.rb', line 1279 def create_directory_config(params = {}, = {}) req = build_request(:create_directory_config, params) req.send_request() end |
#create_entitlement(params = {}) ⇒ Types::CreateEntitlementResult
Creates a new entitlement. Entitlements control access to specific applications within a stack, based on user attributes. Entitlements apply to SAML 2.0 federated user identities. WorkSpaces Applications user pool and streaming URL users are entitled to all applications in a stack. Entitlements don't apply to the desktop stream view application, or to applications managed by a dynamic app provider using the Dynamic Application Framework.
1342 1343 1344 1345 |
# File 'gems/aws-sdk-appstream/lib/aws-sdk-appstream/client.rb', line 1342 def create_entitlement(params = {}, = {}) req = build_request(:create_entitlement, params) req.send_request() end |
#create_export_image_task(params = {}) ⇒ Types::CreateExportImageTaskResult
Creates a task to export a WorkSpaces Applications image to an EC2 AMI. This allows you to use your customized WorkSpaces Applications images with other AWS services or for backup purposes.
1408 1409 1410 1411 |
# File 'gems/aws-sdk-appstream/lib/aws-sdk-appstream/client.rb', line 1408 def create_export_image_task(params = {}, = {}) req = build_request(:create_export_image_task, params) req.send_request() end |
#create_fleet(params = {}) ⇒ Types::CreateFleetResult
Creates a fleet. A fleet consists of streaming instances that your users access for their applications and desktops.
1802 1803 1804 1805 |
# File 'gems/aws-sdk-appstream/lib/aws-sdk-appstream/client.rb', line 1802 def create_fleet(params = {}, = {}) req = build_request(:create_fleet, params) req.send_request() end |
#create_image_builder(params = {}) ⇒ Types::CreateImageBuilderResult
Creates an image builder. An image builder is a virtual machine that is used to create an image.
The initial state of the builder is PENDING. When it is ready, the
state is RUNNING.
2187 2188 2189 2190 |
# File 'gems/aws-sdk-appstream/lib/aws-sdk-appstream/client.rb', line 2187 def create_image_builder(params = {}, = {}) req = build_request(:create_image_builder, params) req.send_request() end |
#create_image_builder_streaming_url(params = {}) ⇒ Types::CreateImageBuilderStreamingURLResult
Creates a URL to start an image builder streaming session.
2222 2223 2224 2225 |
# File 'gems/aws-sdk-appstream/lib/aws-sdk-appstream/client.rb', line 2222 def create_image_builder_streaming_url(params = {}, = {}) req = build_request(:create_image_builder_streaming_url, params) req.send_request() end |
#create_imported_image(params = {}) ⇒ Types::CreateImportedImageResult
Creates a custom WorkSpaces Applications image by importing an EC2 AMI. This allows you to use your own customized AMI to create WorkSpaces Applications images that support additional instance types beyond the standard stream.* instances.
2371 2372 2373 2374 |
# File 'gems/aws-sdk-appstream/lib/aws-sdk-appstream/client.rb', line 2371 def create_imported_image(params = {}, = {}) req = build_request(:create_imported_image, params) req.send_request() end |
#create_stack(params = {}) ⇒ Types::CreateStackResult
Creates a stack to start streaming applications to users. A stack consists of an associated fleet, user access policies, and storage configurations.
2527 2528 2529 2530 |
# File 'gems/aws-sdk-appstream/lib/aws-sdk-appstream/client.rb', line 2527 def create_stack(params = {}, = {}) req = build_request(:create_stack, params) req.send_request() end |
#create_streaming_url(params = {}) ⇒ Types::CreateStreamingURLResult
Creates a temporary URL to start an WorkSpaces Applications streaming session for the specified user. A streaming URL enables application streaming to be tested without user setup.
2589 2590 2591 2592 |
# File 'gems/aws-sdk-appstream/lib/aws-sdk-appstream/client.rb', line 2589 def create_streaming_url(params = {}, = {}) req = build_request(:create_streaming_url, params) req.send_request() end |
#create_theme_for_stack(params = {}) ⇒ Types::CreateThemeForStackResult
Creates custom branding that customizes the appearance of the streaming application catalog page.
2667 2668 2669 2670 |
# File 'gems/aws-sdk-appstream/lib/aws-sdk-appstream/client.rb', line 2667 def create_theme_for_stack(params = {}, = {}) req = build_request(:create_theme_for_stack, params) req.send_request() end |
#create_updated_image(params = {}) ⇒ Types::CreateUpdatedImageResult
Creates a new image with the latest Windows operating system updates, driver updates, and WorkSpaces Applications agent software.
For more information, see the "Update an Image by Using Managed WorkSpaces Applications Image Updates" section in Administer Your WorkSpaces Applications Images, in the Amazon WorkSpaces Applications Administration Guide.
2799 2800 2801 2802 |
# File 'gems/aws-sdk-appstream/lib/aws-sdk-appstream/client.rb', line 2799 def create_updated_image(params = {}, = {}) req = build_request(:create_updated_image, params) req.send_request() end |
#create_usage_report_subscription(params = {}) ⇒ Types::CreateUsageReportSubscriptionResult
Creates a usage report subscription. Usage reports are generated daily.
2821 2822 2823 2824 |
# File 'gems/aws-sdk-appstream/lib/aws-sdk-appstream/client.rb', line 2821 def create_usage_report_subscription(params = {}, = {}) req = build_request(:create_usage_report_subscription, params) req.send_request() end |
#create_user(params = {}) ⇒ Struct
Creates a new user in the user pool.
2875 2876 2877 2878 |
# File 'gems/aws-sdk-appstream/lib/aws-sdk-appstream/client.rb', line 2875 def create_user(params = {}, = {}) req = build_request(:create_user, params) req.send_request() end |
#delete_app_block(params = {}) ⇒ Struct
Deletes an app block.
2897 2898 2899 2900 |
# File 'gems/aws-sdk-appstream/lib/aws-sdk-appstream/client.rb', line 2897 def delete_app_block(params = {}, = {}) req = build_request(:delete_app_block, params) req.send_request() end |
#delete_app_block_builder(params = {}) ⇒ Struct
Deletes an app block builder.
An app block builder can only be deleted when it has no association with an app block.
2922 2923 2924 2925 |
# File 'gems/aws-sdk-appstream/lib/aws-sdk-appstream/client.rb', line 2922 def delete_app_block_builder(params = {}, = {}) req = build_request(:delete_app_block_builder, params) req.send_request() end |
#delete_application(params = {}) ⇒ Struct
Deletes an application.
2944 2945 2946 2947 |
# File 'gems/aws-sdk-appstream/lib/aws-sdk-appstream/client.rb', line 2944 def delete_application(params = {}, = {}) req = build_request(:delete_application, params) req.send_request() end |
#delete_directory_config(params = {}) ⇒ Struct
Deletes the specified Directory Config object from WorkSpaces Applications. This object includes the information required to join streaming instances to an Active Directory domain.
2968 2969 2970 2971 |
# File 'gems/aws-sdk-appstream/lib/aws-sdk-appstream/client.rb', line 2968 def delete_directory_config(params = {}, = {}) req = build_request(:delete_directory_config, params) req.send_request() end |
#delete_entitlement(params = {}) ⇒ Struct
Deletes the specified entitlement.
2994 2995 2996 2997 |
# File 'gems/aws-sdk-appstream/lib/aws-sdk-appstream/client.rb', line 2994 def delete_entitlement(params = {}, = {}) req = build_request(:delete_entitlement, params) req.send_request() end |
#delete_fleet(params = {}) ⇒ Struct
Deletes the specified fleet.
3016 3017 3018 3019 |
# File 'gems/aws-sdk-appstream/lib/aws-sdk-appstream/client.rb', line 3016 def delete_fleet(params = {}, = {}) req = build_request(:delete_fleet, params) req.send_request() end |
#delete_image(params = {}) ⇒ Types::DeleteImageResult
Deletes the specified image. You cannot delete an image when it is in use. After you delete an image, you cannot provision new capacity using the image.
3093 3094 3095 3096 |
# File 'gems/aws-sdk-appstream/lib/aws-sdk-appstream/client.rb', line 3093 def delete_image(params = {}, = {}) req = build_request(:delete_image, params) req.send_request() end |
#delete_image_builder(params = {}) ⇒ Types::DeleteImageBuilderResult
Deletes the specified image builder and releases the capacity.
3154 3155 3156 3157 |
# File 'gems/aws-sdk-appstream/lib/aws-sdk-appstream/client.rb', line 3154 def delete_image_builder(params = {}, = {}) req = build_request(:delete_image_builder, params) req.send_request() end |
#delete_image_permissions(params = {}) ⇒ Struct
Deletes permissions for the specified private image. After you delete permissions for an image, AWS accounts to which you previously granted these permissions can no longer use the image.
3183 3184 3185 3186 |
# File 'gems/aws-sdk-appstream/lib/aws-sdk-appstream/client.rb', line 3183 def (params = {}, = {}) req = build_request(:delete_image_permissions, params) req.send_request() end |
#delete_stack(params = {}) ⇒ Struct
Deletes the specified stack. After the stack is deleted, the application streaming environment provided by the stack is no longer available to users. Also, any reservations made for application streaming sessions for the stack are released.
3208 3209 3210 3211 |
# File 'gems/aws-sdk-appstream/lib/aws-sdk-appstream/client.rb', line 3208 def delete_stack(params = {}, = {}) req = build_request(:delete_stack, params) req.send_request() end |
#delete_theme_for_stack(params = {}) ⇒ Struct
Deletes custom branding that customizes the appearance of the streaming application catalog page.
3231 3232 3233 3234 |
# File 'gems/aws-sdk-appstream/lib/aws-sdk-appstream/client.rb', line 3231 def delete_theme_for_stack(params = {}, = {}) req = build_request(:delete_theme_for_stack, params) req.send_request() end |
#delete_usage_report_subscription(params = {}) ⇒ Struct
Disables usage report generation.
3244 3245 3246 3247 |
# File 'gems/aws-sdk-appstream/lib/aws-sdk-appstream/client.rb', line 3244 def delete_usage_report_subscription(params = {}, = {}) req = build_request(:delete_usage_report_subscription, params) req.send_request() end |
#delete_user(params = {}) ⇒ Struct
Deletes a user from the user pool.
3274 3275 3276 3277 |
# File 'gems/aws-sdk-appstream/lib/aws-sdk-appstream/client.rb', line 3274 def delete_user(params = {}, = {}) req = build_request(:delete_user, params) req.send_request() end |
#describe_app_block_builder_app_block_associations(params = {}) ⇒ Types::DescribeAppBlockBuilderAppBlockAssociationsResult
Retrieves a list that describes one or more app block builder associations.
The returned response is a pageable response and is Enumerable. For details on usage see PageableResponse.
3322 3323 3324 3325 |
# File 'gems/aws-sdk-appstream/lib/aws-sdk-appstream/client.rb', line 3322 def describe_app_block_builder_app_block_associations(params = {}, = {}) req = build_request(:describe_app_block_builder_app_block_associations, params) req.send_request() end |
#describe_app_block_builders(params = {}) ⇒ Types::DescribeAppBlockBuildersResult
Retrieves a list that describes one or more app block builders.
The returned response is a pageable response and is Enumerable. For details on usage see PageableResponse.
3387 3388 3389 3390 |
# File 'gems/aws-sdk-appstream/lib/aws-sdk-appstream/client.rb', line 3387 def describe_app_block_builders(params = {}, = {}) req = build_request(:describe_app_block_builders, params) req.send_request() end |
#describe_app_blocks(params = {}) ⇒ Types::DescribeAppBlocksResult
Retrieves a list that describes one or more app blocks.
3448 3449 3450 3451 |
# File 'gems/aws-sdk-appstream/lib/aws-sdk-appstream/client.rb', line 3448 def describe_app_blocks(params = {}, = {}) req = build_request(:describe_app_blocks, params) req.send_request() end |
#describe_app_license_usage(params = {}) ⇒ Types::DescribeAppLicenseUsageResult
Retrieves license included application usage information.
3496 3497 3498 3499 |
# File 'gems/aws-sdk-appstream/lib/aws-sdk-appstream/client.rb', line 3496 def describe_app_license_usage(params = {}, = {}) req = build_request(:describe_app_license_usage, params) req.send_request() end |
#describe_application_fleet_associations(params = {}) ⇒ Types::DescribeApplicationFleetAssociationsResult
Retrieves a list that describes one or more application fleet associations. Either ApplicationArn or FleetName must be specified.
3542 3543 3544 3545 |
# File 'gems/aws-sdk-appstream/lib/aws-sdk-appstream/client.rb', line 3542 def describe_application_fleet_associations(params = {}, = {}) req = build_request(:describe_application_fleet_associations, params) req.send_request() end |
#describe_applications(params = {}) ⇒ Types::DescribeApplicationsResult
Retrieves a list that describes one or more applications.
3600 3601 3602 3603 |
# File 'gems/aws-sdk-appstream/lib/aws-sdk-appstream/client.rb', line 3600 def describe_applications(params = {}, = {}) req = build_request(:describe_applications, params) req.send_request() end |
#describe_directory_configs(params = {}) ⇒ Types::DescribeDirectoryConfigsResult
Retrieves a list that describes one or more specified Directory Config objects for WorkSpaces Applications, if the names for these objects are provided. Otherwise, all Directory Config objects in the account are described. These objects include the configuration information required to join fleets and image builders to Microsoft Active Directory domains.
Although the response syntax in this topic includes the account password, this password is not returned in the actual response.
3655 3656 3657 3658 |
# File 'gems/aws-sdk-appstream/lib/aws-sdk-appstream/client.rb', line 3655 def describe_directory_configs(params = {}, = {}) req = build_request(:describe_directory_configs, params) req.send_request() end |
#describe_entitlements(params = {}) ⇒ Types::DescribeEntitlementsResult
Retrieves a list that describes one of more entitlements.
3707 3708 3709 3710 |
# File 'gems/aws-sdk-appstream/lib/aws-sdk-appstream/client.rb', line 3707 def describe_entitlements(params = {}, = {}) req = build_request(:describe_entitlements, params) req.send_request() end |
#describe_fleets(params = {}) ⇒ Types::DescribeFleetsResult
Retrieves a list that describes one or more specified fleets, if the fleet names are provided. Otherwise, all fleets in the account are described.
The following waiters are defined for this operation (see #wait_until for detailed usage):
- fleet_started
- fleet_stopped
3792 3793 3794 3795 |
# File 'gems/aws-sdk-appstream/lib/aws-sdk-appstream/client.rb', line 3792 def describe_fleets(params = {}, = {}) req = build_request(:describe_fleets, params) req.send_request() end |
#describe_image_builders(params = {}) ⇒ Types::DescribeImageBuildersResult
Retrieves a list that describes one or more specified image builders, if the image builder names are provided. Otherwise, all image builders in the account are described.
3867 3868 3869 3870 |
# File 'gems/aws-sdk-appstream/lib/aws-sdk-appstream/client.rb', line 3867 def describe_image_builders(params = {}, = {}) req = build_request(:describe_image_builders, params) req.send_request() end |
#describe_image_permissions(params = {}) ⇒ Types::DescribeImagePermissionsResult
Retrieves a list that describes the permissions for shared AWS account IDs on a private image that you own.
The returned response is a pageable response and is Enumerable. For details on usage see PageableResponse.
3920 3921 3922 3923 |
# File 'gems/aws-sdk-appstream/lib/aws-sdk-appstream/client.rb', line 3920 def (params = {}, = {}) req = build_request(:describe_image_permissions, params) req.send_request() end |
#describe_images(params = {}) ⇒ Types::DescribeImagesResult
Retrieves a list that describes one or more specified images, if the image names or image ARNs are provided. Otherwise, all images in the account are described.
The returned response is a pageable response and is Enumerable. For details on usage see PageableResponse.
4019 4020 4021 4022 |
# File 'gems/aws-sdk-appstream/lib/aws-sdk-appstream/client.rb', line 4019 def describe_images(params = {}, = {}) req = build_request(:describe_images, params) req.send_request() end |
#describe_sessions(params = {}) ⇒ Types::DescribeSessionsResult
Retrieves a list that describes the streaming sessions for a specified stack and fleet. If a UserId is provided for the stack and fleet, only streaming sessions for that user are described. If an authentication type is not provided, the default is to authenticate users using a streaming URL.
4096 4097 4098 4099 |
# File 'gems/aws-sdk-appstream/lib/aws-sdk-appstream/client.rb', line 4096 def describe_sessions(params = {}, = {}) req = build_request(:describe_sessions, params) req.send_request() end |
#describe_software_associations(params = {}) ⇒ Types::DescribeSoftwareAssociationsResult
Retrieves license included application associations for a specified resource.
4144 4145 4146 4147 |
# File 'gems/aws-sdk-appstream/lib/aws-sdk-appstream/client.rb', line 4144 def describe_software_associations(params = {}, = {}) req = build_request(:describe_software_associations, params) req.send_request() end |
#describe_stacks(params = {}) ⇒ Types::DescribeStacksResult
Retrieves a list that describes one or more specified stacks, if the stack names are provided. Otherwise, all stacks in the account are described.
4211 4212 4213 4214 |
# File 'gems/aws-sdk-appstream/lib/aws-sdk-appstream/client.rb', line 4211 def describe_stacks(params = {}, = {}) req = build_request(:describe_stacks, params) req.send_request() end |
#describe_theme_for_stack(params = {}) ⇒ Types::DescribeThemeForStackResult
Retrieves a list that describes the theme for a specified stack. A theme is custom branding that customizes the appearance of the streaming application catalog page.
4250 4251 4252 4253 |
# File 'gems/aws-sdk-appstream/lib/aws-sdk-appstream/client.rb', line 4250 def describe_theme_for_stack(params = {}, = {}) req = build_request(:describe_theme_for_stack, params) req.send_request() end |
#describe_usage_report_subscriptions(params = {}) ⇒ Types::DescribeUsageReportSubscriptionsResult
Retrieves a list that describes one or more usage report subscriptions.
4292 4293 4294 4295 |
# File 'gems/aws-sdk-appstream/lib/aws-sdk-appstream/client.rb', line 4292 def describe_usage_report_subscriptions(params = {}, = {}) req = build_request(:describe_usage_report_subscriptions, params) req.send_request() end |
#describe_user_stack_associations(params = {}) ⇒ Types::DescribeUserStackAssociationsResult
Retrieves a list that describes the UserStackAssociation objects. You must specify either or both of the following:
The stack name
The user name (email address of the user associated with the stack) and the authentication type for the user
4354 4355 4356 4357 |
# File 'gems/aws-sdk-appstream/lib/aws-sdk-appstream/client.rb', line 4354 def describe_user_stack_associations(params = {}, = {}) req = build_request(:describe_user_stack_associations, params) req.send_request() end |
#describe_users(params = {}) ⇒ Types::DescribeUsersResult
Retrieves a list that describes one or more specified users in the user pool.
4403 4404 4405 4406 |
# File 'gems/aws-sdk-appstream/lib/aws-sdk-appstream/client.rb', line 4403 def describe_users(params = {}, = {}) req = build_request(:describe_users, params) req.send_request() end |
#disable_user(params = {}) ⇒ Struct
Disables the specified user in the user pool. Users can't sign in to WorkSpaces Applications until they are re-enabled. This action does not delete the user.
4435 4436 4437 4438 |
# File 'gems/aws-sdk-appstream/lib/aws-sdk-appstream/client.rb', line 4435 def disable_user(params = {}, = {}) req = build_request(:disable_user, params) req.send_request() end |
#disassociate_app_block_builder_app_block(params = {}) ⇒ Struct
Disassociates a specified app block builder from a specified app block.
4462 4463 4464 4465 |
# File 'gems/aws-sdk-appstream/lib/aws-sdk-appstream/client.rb', line 4462 def disassociate_app_block_builder_app_block(params = {}, = {}) req = build_request(:disassociate_app_block_builder_app_block, params) req.send_request() end |
#disassociate_application_fleet(params = {}) ⇒ Struct
Disassociates the specified application from the fleet.
4488 4489 4490 4491 |
# File 'gems/aws-sdk-appstream/lib/aws-sdk-appstream/client.rb', line 4488 def disassociate_application_fleet(params = {}, = {}) req = build_request(:disassociate_application_fleet, params) req.send_request() end |
#disassociate_application_from_entitlement(params = {}) ⇒ Struct
Deletes the specified application from the specified entitlement.
4518 4519 4520 4521 |
# File 'gems/aws-sdk-appstream/lib/aws-sdk-appstream/client.rb', line 4518 def disassociate_application_from_entitlement(params = {}, = {}) req = build_request(:disassociate_application_from_entitlement, params) req.send_request() end |
#disassociate_fleet(params = {}) ⇒ Struct
Disassociates the specified fleet from the specified stack.
4544 4545 4546 4547 |
# File 'gems/aws-sdk-appstream/lib/aws-sdk-appstream/client.rb', line 4544 def disassociate_fleet(params = {}, = {}) req = build_request(:disassociate_fleet, params) req.send_request() end |
#disassociate_software_from_image_builder(params = {}) ⇒ Struct
Removes license included application(s) association(s) from an image builder instance.
4622 4623 4624 4625 |
# File 'gems/aws-sdk-appstream/lib/aws-sdk-appstream/client.rb', line 4622 def disassociate_software_from_image_builder(params = {}, = {}) req = build_request(:disassociate_software_from_image_builder, params) req.send_request() end |
#enable_user(params = {}) ⇒ Struct
Enables a user in the user pool. After being enabled, users can sign in to WorkSpaces Applications and open applications from the stacks to which they are assigned.
4657 4658 4659 4660 |
# File 'gems/aws-sdk-appstream/lib/aws-sdk-appstream/client.rb', line 4657 def enable_user(params = {}, = {}) req = build_request(:enable_user, params) req.send_request() end |
#expire_session(params = {}) ⇒ Struct
Immediately stops the specified streaming session.
4679 4680 4681 4682 |
# File 'gems/aws-sdk-appstream/lib/aws-sdk-appstream/client.rb', line 4679 def expire_session(params = {}, = {}) req = build_request(:expire_session, params) req.send_request() end |
#get_export_image_task(params = {}) ⇒ Types::GetExportImageTaskResult
Retrieves information about an export image task, including its current state, progress, and any error details.
4720 4721 4722 4723 |
# File 'gems/aws-sdk-appstream/lib/aws-sdk-appstream/client.rb', line 4720 def get_export_image_task(params = {}, = {}) req = build_request(:get_export_image_task, params) req.send_request() end |
#list_associated_fleets(params = {}) ⇒ Types::ListAssociatedFleetsResult
Retrieves the name of the fleet that is associated with the specified stack.
4757 4758 4759 4760 |
# File 'gems/aws-sdk-appstream/lib/aws-sdk-appstream/client.rb', line 4757 def list_associated_fleets(params = {}, = {}) req = build_request(:list_associated_fleets, params) req.send_request() end |
#list_associated_stacks(params = {}) ⇒ Types::ListAssociatedStacksResult
Retrieves the name of the stack with which the specified fleet is associated.
4794 4795 4796 4797 |
# File 'gems/aws-sdk-appstream/lib/aws-sdk-appstream/client.rb', line 4794 def list_associated_stacks(params = {}, = {}) req = build_request(:list_associated_stacks, params) req.send_request() end |
#list_entitled_applications(params = {}) ⇒ Types::ListEntitledApplicationsResult
Retrieves a list of entitled applications.
4838 4839 4840 4841 |
# File 'gems/aws-sdk-appstream/lib/aws-sdk-appstream/client.rb', line 4838 def list_entitled_applications(params = {}, = {}) req = build_request(:list_entitled_applications, params) req.send_request() end |
#list_export_image_tasks(params = {}) ⇒ Types::ListExportImageTasksResult
Lists export image tasks, with optional filtering and pagination. Use this operation to monitor the status of multiple export operations.
4898 4899 4900 4901 |
# File 'gems/aws-sdk-appstream/lib/aws-sdk-appstream/client.rb', line 4898 def list_export_image_tasks(params = {}, = {}) req = build_request(:list_export_image_tasks, params) req.send_request() end |
#list_tags_for_resource(params = {}) ⇒ Types::ListTagsForResourceResponse
Retrieves a list of all tags for the specified WorkSpaces Applications resource. You can tag WorkSpaces Applications image builders, images, fleets, and stacks.
For more information about tags, see Tagging Your Resources in the Amazon WorkSpaces Applications Administration Guide.
4936 4937 4938 4939 |
# File 'gems/aws-sdk-appstream/lib/aws-sdk-appstream/client.rb', line 4936 def (params = {}, = {}) req = build_request(:list_tags_for_resource, params) req.send_request() end |
#start_app_block_builder(params = {}) ⇒ Types::StartAppBlockBuilderResult
Starts an app block builder.
An app block builder can only be started when it's associated with an app block.
Starting an app block builder starts a new instance, which is equivalent to an elastic fleet instance with application builder assistance functionality.
4994 4995 4996 4997 |
# File 'gems/aws-sdk-appstream/lib/aws-sdk-appstream/client.rb', line 4994 def start_app_block_builder(params = {}, = {}) req = build_request(:start_app_block_builder, params) req.send_request() end |
#start_fleet(params = {}) ⇒ Struct
Starts the specified fleet.
5016 5017 5018 5019 |
# File 'gems/aws-sdk-appstream/lib/aws-sdk-appstream/client.rb', line 5016 def start_fleet(params = {}, = {}) req = build_request(:start_fleet, params) req.send_request() end |
#start_image_builder(params = {}) ⇒ Types::StartImageBuilderResult
Starts the specified image builder.
5083 5084 5085 5086 |
# File 'gems/aws-sdk-appstream/lib/aws-sdk-appstream/client.rb', line 5083 def start_image_builder(params = {}, = {}) req = build_request(:start_image_builder, params) req.send_request() end |
#start_software_deployment_to_image_builder(params = {}) ⇒ Struct
Initiates license included applications deployment to an image builder instance.
5111 5112 5113 5114 |
# File 'gems/aws-sdk-appstream/lib/aws-sdk-appstream/client.rb', line 5111 def start_software_deployment_to_image_builder(params = {}, = {}) req = build_request(:start_software_deployment_to_image_builder, params) req.send_request() end |
#stop_app_block_builder(params = {}) ⇒ Types::StopAppBlockBuilderResult
Stops an app block builder.
Stopping an app block builder terminates the instance, and the instance state is not persisted.
5165 5166 5167 5168 |
# File 'gems/aws-sdk-appstream/lib/aws-sdk-appstream/client.rb', line 5165 def stop_app_block_builder(params = {}, = {}) req = build_request(:stop_app_block_builder, params) req.send_request() end |
#stop_fleet(params = {}) ⇒ Struct
Stops the specified fleet.
5187 5188 5189 5190 |
# File 'gems/aws-sdk-appstream/lib/aws-sdk-appstream/client.rb', line 5187 def stop_fleet(params = {}, = {}) req = build_request(:stop_fleet, params) req.send_request() end |
#stop_image_builder(params = {}) ⇒ Types::StopImageBuilderResult
Stops the specified image builder.
5248 5249 5250 5251 |
# File 'gems/aws-sdk-appstream/lib/aws-sdk-appstream/client.rb', line 5248 def stop_image_builder(params = {}, = {}) req = build_request(:stop_image_builder, params) req.send_request() end |
#tag_resource(params = {}) ⇒ Struct
Adds or overwrites one or more tags for the specified WorkSpaces Applications resource. You can tag WorkSpaces Applications image builders, images, fleets, and stacks.
Each tag consists of a key and an optional value. If a resource already has a tag with the same key, this operation updates its value.
To list the current tags for your resources, use ListTagsForResource. To disassociate tags from your resources, use UntagResource.
For more information about tags, see Tagging Your Resources in the Amazon WorkSpaces Applications Administration Guide.
5300 5301 5302 5303 |
# File 'gems/aws-sdk-appstream/lib/aws-sdk-appstream/client.rb', line 5300 def tag_resource(params = {}, = {}) req = build_request(:tag_resource, params) req.send_request() end |
#untag_resource(params = {}) ⇒ Struct
Disassociates one or more specified tags from the specified WorkSpaces Applications resource.
To list the current tags for your resources, use ListTagsForResource.
For more information about tags, see Tagging Your Resources in the Amazon WorkSpaces Applications Administration Guide.
5336 5337 5338 5339 |
# File 'gems/aws-sdk-appstream/lib/aws-sdk-appstream/client.rb', line 5336 def untag_resource(params = {}, = {}) req = build_request(:untag_resource, params) req.send_request() end |
#update_app_block_builder(params = {}) ⇒ Types::UpdateAppBlockBuilderResult
Updates an app block builder.
If the app block builder is in the STARTING or STOPPING state, you
can't update it. If the app block builder is in the RUNNING state,
you can only update the DisplayName and Description. If the app block
builder is in the STOPPED state, you can update any attribute except
the Name.
5475 5476 5477 5478 |
# File 'gems/aws-sdk-appstream/lib/aws-sdk-appstream/client.rb', line 5475 def update_app_block_builder(params = {}, = {}) req = build_request(:update_app_block_builder, params) req.send_request() end |
#update_application(params = {}) ⇒ Types::UpdateApplicationResult
Updates the specified application.
5558 5559 5560 5561 |
# File 'gems/aws-sdk-appstream/lib/aws-sdk-appstream/client.rb', line 5558 def update_application(params = {}, = {}) req = build_request(:update_application, params) req.send_request() end |
#update_directory_config(params = {}) ⇒ Types::UpdateDirectoryConfigResult
Updates the specified Directory Config object in WorkSpaces Applications. This object includes the configuration information required to join fleets and image builders to Microsoft Active Directory domains.
5625 5626 5627 5628 |
# File 'gems/aws-sdk-appstream/lib/aws-sdk-appstream/client.rb', line 5625 def update_directory_config(params = {}, = {}) req = build_request(:update_directory_config, params) req.send_request() end |
#update_entitlement(params = {}) ⇒ Types::UpdateEntitlementResult
Updates the specified entitlement.
5682 5683 5684 5685 |
# File 'gems/aws-sdk-appstream/lib/aws-sdk-appstream/client.rb', line 5682 def update_entitlement(params = {}, = {}) req = build_request(:update_entitlement, params) req.send_request() end |
#update_fleet(params = {}) ⇒ Types::UpdateFleetResult
Updates the specified fleet.
If the fleet is in the STOPPED state, you can update any attribute
except the fleet name.
If the fleet is in the RUNNING state, you can update the following
based on the fleet type:
Always-On and On-Demand fleet types
You can update the
DisplayName,ComputeCapacity,ImageARN,ImageName,IdleDisconnectTimeoutInSeconds, andDisconnectTimeoutInSecondsattributes.Elastic fleet type
You can update the
DisplayName,IdleDisconnectTimeoutInSeconds,DisconnectTimeoutInSeconds,MaxConcurrentSessions,SessionScriptS3LocationandUsbDeviceFilterStringsattributes.
If the fleet is in the STARTING or STOPPED state, you can't
update it.
6062 6063 6064 6065 |
# File 'gems/aws-sdk-appstream/lib/aws-sdk-appstream/client.rb', line 6062 def update_fleet(params = {}, = {}) req = build_request(:update_fleet, params) req.send_request() end |
#update_image_permissions(params = {}) ⇒ Struct
Adds or updates permissions for the specified private image.
6096 6097 6098 6099 |
# File 'gems/aws-sdk-appstream/lib/aws-sdk-appstream/client.rb', line 6096 def (params = {}, = {}) req = build_request(:update_image_permissions, params) req.send_request() end |
#update_stack(params = {}) ⇒ Types::UpdateStackResult
Updates the specified fields for the specified stack.
6236 6237 6238 6239 |
# File 'gems/aws-sdk-appstream/lib/aws-sdk-appstream/client.rb', line 6236 def update_stack(params = {}, = {}) req = build_request(:update_stack, params) req.send_request() end |
#update_theme_for_stack(params = {}) ⇒ Types::UpdateThemeForStackResult
Updates custom branding that customizes the appearance of the streaming application catalog page.
6323 6324 6325 6326 |
# File 'gems/aws-sdk-appstream/lib/aws-sdk-appstream/client.rb', line 6323 def update_theme_for_stack(params = {}, = {}) req = build_request(:update_theme_for_stack, params) req.send_request() end |
#wait_until(waiter_name, params = {}, options = {}) {|w.waiter| ... } ⇒ Boolean
Polls an API operation until a resource enters a desired state.
Basic Usage
A waiter will call an API operation until:
- It is successful
- It enters a terminal state
- It makes the maximum number of attempts
In between attempts, the waiter will sleep.
# polls in a loop, sleeping between attempts
client.wait_until(waiter_name, params)
Configuration
You can configure the maximum number of polling attempts, and the delay (in seconds) between each polling attempt. You can pass configuration as the final arguments hash.
# poll for ~25 seconds
client.wait_until(waiter_name, params, {
max_attempts: 5,
delay: 5,
})
Callbacks
You can be notified before each polling attempt and before each
delay. If you throw :success or :failure from these callbacks,
it will terminate the waiter.
started_at = Time.now
client.wait_until(waiter_name, params, {
# disable max attempts
max_attempts: nil,
# poll for 1 hour, instead of a number of attempts
before_wait: -> (attempts, response) do
throw :failure if Time.now - started_at > 3600
end
})
Handling Errors
When a waiter is unsuccessful, it will raise an error. All of the failure errors extend from Waiters::Errors::WaiterFailed.
begin
client.wait_until(...)
rescue Aws::Waiters::Errors::WaiterFailed
# resource did not enter the desired state in time
end
Valid Waiters
The following table lists the valid waiter names, the operations they call,
and the default :delay and :max_attempts values.
| waiter_name | params | :delay | :max_attempts |
|---|---|---|---|
| fleet_started | #describe_fleets | 30 | 40 |
| fleet_stopped | #describe_fleets | 30 | 40 |
6439 6440 6441 6442 6443 |
# File 'gems/aws-sdk-appstream/lib/aws-sdk-appstream/client.rb', line 6439 def wait_until(waiter_name, params = {}, = {}) w = waiter(waiter_name, ) yield(w.waiter) if block_given? # deprecated w.wait(params) end |