Class: Aws::WorkspacesInstances::Client
- Inherits:
-
Seahorse::Client::Base
- Object
- Seahorse::Client::Base
- Aws::WorkspacesInstances::Client
- Includes:
- ClientStubs
- Defined in:
- lib/aws-sdk-workspacesinstances/client.rb
Overview
An API client for WorkspacesInstances. To construct a client, you need to configure a ‘:region` and `:credentials`.
client = Aws::WorkspacesInstances::Client.new(
region: region_name,
credentials: credentials,
# ...
)
For details on configuring region and credentials see the [developer guide](/sdk-for-ruby/v3/developer-guide/setup-config.html).
See #initialize for a full list of supported configuration options.
Class Attribute Summary collapse
- .identifier ⇒ Object readonly private
API Operations collapse
-
#associate_volume(params = {}) ⇒ Struct
Attaches a volume to a WorkSpace Instance.
-
#create_volume(params = {}) ⇒ Types::CreateVolumeResponse
Creates a new volume for WorkSpace Instances.
-
#create_workspace_instance(params = {}) ⇒ Types::CreateWorkspaceInstanceResponse
Launches a new WorkSpace Instance with specified configuration parameters, enabling programmatic workspace deployment.
-
#delete_volume(params = {}) ⇒ Struct
Deletes a specified volume.
-
#delete_workspace_instance(params = {}) ⇒ Struct
Deletes the specified WorkSpace.
-
#disassociate_volume(params = {}) ⇒ Struct
Detaches a volume from a WorkSpace Instance.
-
#get_workspace_instance(params = {}) ⇒ Types::GetWorkspaceInstanceResponse
Retrieves detailed information about a specific WorkSpace Instance.
-
#list_instance_types(params = {}) ⇒ Types::ListInstanceTypesResponse
Retrieves a list of instance types supported by Amazon WorkSpaces Instances, enabling precise workspace infrastructure configuration.
-
#list_regions(params = {}) ⇒ Types::ListRegionsResponse
Retrieves a list of AWS regions supported by Amazon WorkSpaces Instances, enabling region discovery for workspace deployments.
-
#list_tags_for_resource(params = {}) ⇒ Types::ListTagsForResourceResponse
Retrieves tags for a WorkSpace Instance.
-
#list_workspace_instances(params = {}) ⇒ Types::ListWorkspaceInstancesResponse
Retrieves a collection of WorkSpaces Instances based on specified filters.
-
#tag_resource(params = {}) ⇒ Struct
Adds tags to a WorkSpace Instance.
-
#untag_resource(params = {}) ⇒ Struct
Removes tags from a WorkSpace Instance.
Class Method Summary collapse
- .errors_module ⇒ Object private
Instance Method Summary collapse
- #build_request(operation_name, params = {}) ⇒ Object private
-
#initialize(options) ⇒ Client
constructor
A new instance of Client.
- #waiter_names ⇒ Object deprecated private Deprecated.
Constructor Details
#initialize(options) ⇒ Client
Returns a new instance of Client.
480 481 482 |
# File 'lib/aws-sdk-workspacesinstances/client.rb', line 480 def initialize(*args) super end |
Class Attribute Details
.identifier ⇒ Object (readonly)
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
1172 1173 1174 |
# File 'lib/aws-sdk-workspacesinstances/client.rb', line 1172 def identifier @identifier end |
Class Method Details
.errors_module ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
1175 1176 1177 |
# File 'lib/aws-sdk-workspacesinstances/client.rb', line 1175 def errors_module Errors end |
Instance Method Details
#associate_volume(params = {}) ⇒ Struct
Attaches a volume to a WorkSpace Instance.
511 512 513 514 |
# File 'lib/aws-sdk-workspacesinstances/client.rb', line 511 def associate_volume(params = {}, = {}) req = build_request(:associate_volume, params) req.send_request() end |
#build_request(operation_name, params = {}) ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
1145 1146 1147 1148 1149 1150 1151 1152 1153 1154 1155 1156 1157 1158 1159 1160 1161 |
# File 'lib/aws-sdk-workspacesinstances/client.rb', line 1145 def build_request(operation_name, params = {}) handlers = @handlers.for(operation_name) tracer = config.telemetry_provider.tracer_provider.tracer( Aws::Telemetry.module_to_tracer_name('Aws::WorkspacesInstances') ) context = Seahorse::Client::RequestContext.new( operation_name: operation_name, operation: config.api.operation(operation_name), client: self, params: params, config: config, tracer: tracer ) context[:gem_name] = 'aws-sdk-workspacesinstances' context[:gem_version] = '1.10.0' Seahorse::Client::Request.new(handlers, context) end |
#create_volume(params = {}) ⇒ Types::CreateVolumeResponse
Creates a new volume for WorkSpace Instances.
588 589 590 591 |
# File 'lib/aws-sdk-workspacesinstances/client.rb', line 588 def create_volume(params = {}, = {}) req = build_request(:create_volume, params) req.send_request() end |
#create_workspace_instance(params = {}) ⇒ Types::CreateWorkspaceInstanceResponse
Launches a new WorkSpace Instance with specified configuration parameters, enabling programmatic workspace deployment.
806 807 808 809 |
# File 'lib/aws-sdk-workspacesinstances/client.rb', line 806 def create_workspace_instance(params = {}, = {}) req = build_request(:create_workspace_instance, params) req.send_request() end |
#delete_volume(params = {}) ⇒ Struct
Deletes a specified volume.
828 829 830 831 |
# File 'lib/aws-sdk-workspacesinstances/client.rb', line 828 def delete_volume(params = {}, = {}) req = build_request(:delete_volume, params) req.send_request() end |
#delete_workspace_instance(params = {}) ⇒ Struct
Deletes the specified WorkSpace
850 851 852 853 |
# File 'lib/aws-sdk-workspacesinstances/client.rb', line 850 def delete_workspace_instance(params = {}, = {}) req = build_request(:delete_workspace_instance, params) req.send_request() end |
#disassociate_volume(params = {}) ⇒ Struct
Detaches a volume from a WorkSpace Instance.
884 885 886 887 |
# File 'lib/aws-sdk-workspacesinstances/client.rb', line 884 def disassociate_volume(params = {}, = {}) req = build_request(:disassociate_volume, params) req.send_request() end |
#get_workspace_instance(params = {}) ⇒ Types::GetWorkspaceInstanceResponse
Retrieves detailed information about a specific WorkSpace Instance.
925 926 927 928 |
# File 'lib/aws-sdk-workspacesinstances/client.rb', line 925 def get_workspace_instance(params = {}, = {}) req = build_request(:get_workspace_instance, params) req.send_request() end |
#list_instance_types(params = {}) ⇒ Types::ListInstanceTypesResponse
Retrieves a list of instance types supported by Amazon WorkSpaces Instances, enabling precise workspace infrastructure configuration.
The returned response is a pageable response and is Enumerable. For details on usage see PageableResponse.
965 966 967 968 |
# File 'lib/aws-sdk-workspacesinstances/client.rb', line 965 def list_instance_types(params = {}, = {}) req = build_request(:list_instance_types, params) req.send_request() end |
#list_regions(params = {}) ⇒ Types::ListRegionsResponse
Retrieves a list of AWS regions supported by Amazon WorkSpaces Instances, enabling region discovery for workspace deployments.
The returned response is a pageable response and is Enumerable. For details on usage see PageableResponse.
1004 1005 1006 1007 |
# File 'lib/aws-sdk-workspacesinstances/client.rb', line 1004 def list_regions(params = {}, = {}) req = build_request(:list_regions, params) req.send_request() end |
#list_tags_for_resource(params = {}) ⇒ Types::ListTagsForResourceResponse
Retrieves tags for a WorkSpace Instance.
1034 1035 1036 1037 |
# File 'lib/aws-sdk-workspacesinstances/client.rb', line 1034 def (params = {}, = {}) req = build_request(:list_tags_for_resource, params) req.send_request() end |
#list_workspace_instances(params = {}) ⇒ Types::ListWorkspaceInstancesResponse
Retrieves a collection of WorkSpaces Instances based on specified filters.
The returned response is a pageable response and is Enumerable. For details on usage see PageableResponse.
1079 1080 1081 1082 |
# File 'lib/aws-sdk-workspacesinstances/client.rb', line 1079 def list_workspace_instances(params = {}, = {}) req = build_request(:list_workspace_instances, params) req.send_request() end |
#tag_resource(params = {}) ⇒ Struct
Adds tags to a WorkSpace Instance.
1110 1111 1112 1113 |
# File 'lib/aws-sdk-workspacesinstances/client.rb', line 1110 def tag_resource(params = {}, = {}) req = build_request(:tag_resource, params) req.send_request() end |
#untag_resource(params = {}) ⇒ Struct
Removes tags from a WorkSpace Instance.
1136 1137 1138 1139 |
# File 'lib/aws-sdk-workspacesinstances/client.rb', line 1136 def untag_resource(params = {}, = {}) req = build_request(:untag_resource, params) req.send_request() end |
#waiter_names ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
1165 1166 1167 |
# File 'lib/aws-sdk-workspacesinstances/client.rb', line 1165 def waiter_names [] end |