aws-sdk-workspaces 1.72.0 → 1.74.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,194 @@
1
+ # frozen_string_literal: true
2
+
3
+ # WARNING ABOUT GENERATED CODE
4
+ #
5
+ # This file is generated. See the contributing guide for more information:
6
+ # https://github.com/aws/aws-sdk-ruby/blob/version-3/CONTRIBUTING.md
7
+ #
8
+ # WARNING ABOUT GENERATED CODE
9
+
10
+
11
+ module Aws::WorkSpaces
12
+ module Plugins
13
+ class Endpoints < Seahorse::Client::Plugin
14
+ option(
15
+ :endpoint_provider,
16
+ doc_type: 'Aws::WorkSpaces::EndpointProvider',
17
+ docstring: 'The endpoint provider used to resolve endpoints. Any '\
18
+ 'object that responds to `#resolve_endpoint(parameters)` '\
19
+ 'where `parameters` is a Struct similar to '\
20
+ '`Aws::WorkSpaces::EndpointParameters`'
21
+ ) do |cfg|
22
+ Aws::WorkSpaces::EndpointProvider.new
23
+ end
24
+
25
+ # @api private
26
+ class Handler < Seahorse::Client::Handler
27
+ def call(context)
28
+ # If endpoint was discovered, do not resolve or apply the endpoint.
29
+ unless context[:discovered_endpoint]
30
+ params = parameters_for_operation(context)
31
+ endpoint = context.config.endpoint_provider.resolve_endpoint(params)
32
+
33
+ context.http_request.endpoint = endpoint.url
34
+ apply_endpoint_headers(context, endpoint.headers)
35
+ end
36
+
37
+ context[:endpoint_params] = params
38
+ context[:auth_scheme] =
39
+ Aws::Endpoints.resolve_auth_scheme(context, endpoint)
40
+
41
+ @handler.call(context)
42
+ end
43
+
44
+ private
45
+
46
+ def apply_endpoint_headers(context, headers)
47
+ headers.each do |key, values|
48
+ value = values
49
+ .compact
50
+ .map { |s| Seahorse::Util.escape_header_list_string(s.to_s) }
51
+ .join(',')
52
+
53
+ context.http_request.headers[key] = value
54
+ end
55
+ end
56
+
57
+ def parameters_for_operation(context)
58
+ case context.operation_name
59
+ when :associate_connection_alias
60
+ Aws::WorkSpaces::Endpoints::AssociateConnectionAlias.build(context)
61
+ when :associate_ip_groups
62
+ Aws::WorkSpaces::Endpoints::AssociateIpGroups.build(context)
63
+ when :authorize_ip_rules
64
+ Aws::WorkSpaces::Endpoints::AuthorizeIpRules.build(context)
65
+ when :copy_workspace_image
66
+ Aws::WorkSpaces::Endpoints::CopyWorkspaceImage.build(context)
67
+ when :create_connect_client_add_in
68
+ Aws::WorkSpaces::Endpoints::CreateConnectClientAddIn.build(context)
69
+ when :create_connection_alias
70
+ Aws::WorkSpaces::Endpoints::CreateConnectionAlias.build(context)
71
+ when :create_ip_group
72
+ Aws::WorkSpaces::Endpoints::CreateIpGroup.build(context)
73
+ when :create_tags
74
+ Aws::WorkSpaces::Endpoints::CreateTags.build(context)
75
+ when :create_updated_workspace_image
76
+ Aws::WorkSpaces::Endpoints::CreateUpdatedWorkspaceImage.build(context)
77
+ when :create_workspace_bundle
78
+ Aws::WorkSpaces::Endpoints::CreateWorkspaceBundle.build(context)
79
+ when :create_workspace_image
80
+ Aws::WorkSpaces::Endpoints::CreateWorkspaceImage.build(context)
81
+ when :create_workspaces
82
+ Aws::WorkSpaces::Endpoints::CreateWorkspaces.build(context)
83
+ when :delete_client_branding
84
+ Aws::WorkSpaces::Endpoints::DeleteClientBranding.build(context)
85
+ when :delete_connect_client_add_in
86
+ Aws::WorkSpaces::Endpoints::DeleteConnectClientAddIn.build(context)
87
+ when :delete_connection_alias
88
+ Aws::WorkSpaces::Endpoints::DeleteConnectionAlias.build(context)
89
+ when :delete_ip_group
90
+ Aws::WorkSpaces::Endpoints::DeleteIpGroup.build(context)
91
+ when :delete_tags
92
+ Aws::WorkSpaces::Endpoints::DeleteTags.build(context)
93
+ when :delete_workspace_bundle
94
+ Aws::WorkSpaces::Endpoints::DeleteWorkspaceBundle.build(context)
95
+ when :delete_workspace_image
96
+ Aws::WorkSpaces::Endpoints::DeleteWorkspaceImage.build(context)
97
+ when :deregister_workspace_directory
98
+ Aws::WorkSpaces::Endpoints::DeregisterWorkspaceDirectory.build(context)
99
+ when :describe_account
100
+ Aws::WorkSpaces::Endpoints::DescribeAccount.build(context)
101
+ when :describe_account_modifications
102
+ Aws::WorkSpaces::Endpoints::DescribeAccountModifications.build(context)
103
+ when :describe_client_branding
104
+ Aws::WorkSpaces::Endpoints::DescribeClientBranding.build(context)
105
+ when :describe_client_properties
106
+ Aws::WorkSpaces::Endpoints::DescribeClientProperties.build(context)
107
+ when :describe_connect_client_add_ins
108
+ Aws::WorkSpaces::Endpoints::DescribeConnectClientAddIns.build(context)
109
+ when :describe_connection_alias_permissions
110
+ Aws::WorkSpaces::Endpoints::DescribeConnectionAliasPermissions.build(context)
111
+ when :describe_connection_aliases
112
+ Aws::WorkSpaces::Endpoints::DescribeConnectionAliases.build(context)
113
+ when :describe_ip_groups
114
+ Aws::WorkSpaces::Endpoints::DescribeIpGroups.build(context)
115
+ when :describe_tags
116
+ Aws::WorkSpaces::Endpoints::DescribeTags.build(context)
117
+ when :describe_workspace_bundles
118
+ Aws::WorkSpaces::Endpoints::DescribeWorkspaceBundles.build(context)
119
+ when :describe_workspace_directories
120
+ Aws::WorkSpaces::Endpoints::DescribeWorkspaceDirectories.build(context)
121
+ when :describe_workspace_image_permissions
122
+ Aws::WorkSpaces::Endpoints::DescribeWorkspaceImagePermissions.build(context)
123
+ when :describe_workspace_images
124
+ Aws::WorkSpaces::Endpoints::DescribeWorkspaceImages.build(context)
125
+ when :describe_workspace_snapshots
126
+ Aws::WorkSpaces::Endpoints::DescribeWorkspaceSnapshots.build(context)
127
+ when :describe_workspaces
128
+ Aws::WorkSpaces::Endpoints::DescribeWorkspaces.build(context)
129
+ when :describe_workspaces_connection_status
130
+ Aws::WorkSpaces::Endpoints::DescribeWorkspacesConnectionStatus.build(context)
131
+ when :disassociate_connection_alias
132
+ Aws::WorkSpaces::Endpoints::DisassociateConnectionAlias.build(context)
133
+ when :disassociate_ip_groups
134
+ Aws::WorkSpaces::Endpoints::DisassociateIpGroups.build(context)
135
+ when :import_client_branding
136
+ Aws::WorkSpaces::Endpoints::ImportClientBranding.build(context)
137
+ when :import_workspace_image
138
+ Aws::WorkSpaces::Endpoints::ImportWorkspaceImage.build(context)
139
+ when :list_available_management_cidr_ranges
140
+ Aws::WorkSpaces::Endpoints::ListAvailableManagementCidrRanges.build(context)
141
+ when :migrate_workspace
142
+ Aws::WorkSpaces::Endpoints::MigrateWorkspace.build(context)
143
+ when :modify_account
144
+ Aws::WorkSpaces::Endpoints::ModifyAccount.build(context)
145
+ when :modify_client_properties
146
+ Aws::WorkSpaces::Endpoints::ModifyClientProperties.build(context)
147
+ when :modify_saml_properties
148
+ Aws::WorkSpaces::Endpoints::ModifySamlProperties.build(context)
149
+ when :modify_selfservice_permissions
150
+ Aws::WorkSpaces::Endpoints::ModifySelfservicePermissions.build(context)
151
+ when :modify_workspace_access_properties
152
+ Aws::WorkSpaces::Endpoints::ModifyWorkspaceAccessProperties.build(context)
153
+ when :modify_workspace_creation_properties
154
+ Aws::WorkSpaces::Endpoints::ModifyWorkspaceCreationProperties.build(context)
155
+ when :modify_workspace_properties
156
+ Aws::WorkSpaces::Endpoints::ModifyWorkspaceProperties.build(context)
157
+ when :modify_workspace_state
158
+ Aws::WorkSpaces::Endpoints::ModifyWorkspaceState.build(context)
159
+ when :reboot_workspaces
160
+ Aws::WorkSpaces::Endpoints::RebootWorkspaces.build(context)
161
+ when :rebuild_workspaces
162
+ Aws::WorkSpaces::Endpoints::RebuildWorkspaces.build(context)
163
+ when :register_workspace_directory
164
+ Aws::WorkSpaces::Endpoints::RegisterWorkspaceDirectory.build(context)
165
+ when :restore_workspace
166
+ Aws::WorkSpaces::Endpoints::RestoreWorkspace.build(context)
167
+ when :revoke_ip_rules
168
+ Aws::WorkSpaces::Endpoints::RevokeIpRules.build(context)
169
+ when :start_workspaces
170
+ Aws::WorkSpaces::Endpoints::StartWorkspaces.build(context)
171
+ when :stop_workspaces
172
+ Aws::WorkSpaces::Endpoints::StopWorkspaces.build(context)
173
+ when :terminate_workspaces
174
+ Aws::WorkSpaces::Endpoints::TerminateWorkspaces.build(context)
175
+ when :update_connect_client_add_in
176
+ Aws::WorkSpaces::Endpoints::UpdateConnectClientAddIn.build(context)
177
+ when :update_connection_alias_permission
178
+ Aws::WorkSpaces::Endpoints::UpdateConnectionAliasPermission.build(context)
179
+ when :update_rules_of_ip_group
180
+ Aws::WorkSpaces::Endpoints::UpdateRulesOfIpGroup.build(context)
181
+ when :update_workspace_bundle
182
+ Aws::WorkSpaces::Endpoints::UpdateWorkspaceBundle.build(context)
183
+ when :update_workspace_image_permission
184
+ Aws::WorkSpaces::Endpoints::UpdateWorkspaceImagePermission.build(context)
185
+ end
186
+ end
187
+ end
188
+
189
+ def add_handlers(handlers, _config)
190
+ handlers.add(Handler, step: :build, priority: 75)
191
+ end
192
+ end
193
+ end
194
+ end
@@ -177,6 +177,7 @@ module Aws::WorkSpaces
177
177
  #
178
178
  # {
179
179
  # reconnect_enabled: "ENABLED", # accepts ENABLED, DISABLED
180
+ # log_upload_enabled: "ENABLED", # accepts ENABLED, DISABLED
180
181
  # }
181
182
  #
182
183
  # @!attribute [rw] reconnect_enabled
@@ -185,10 +186,19 @@ module Aws::WorkSpaces
185
186
  # their WorkSpaces without re-entering their credentials.
186
187
  # @return [String]
187
188
  #
189
+ # @!attribute [rw] log_upload_enabled
190
+ # Specifies whether users can upload diagnostic log files of Amazon
191
+ # WorkSpaces client directly to WorkSpaces to troubleshoot issues when
192
+ # using the WorkSpaces client. When enabled, the log files will be
193
+ # sent to WorkSpaces automatically and will be applied to all users in
194
+ # the specified directory.
195
+ # @return [String]
196
+ #
188
197
  # @see http://docs.aws.amazon.com/goto/WebAPI/workspaces-2015-04-08/ClientProperties AWS API Documentation
189
198
  #
190
199
  class ClientProperties < Struct.new(
191
- :reconnect_enabled)
200
+ :reconnect_enabled,
201
+ :log_upload_enabled)
192
202
  SENSITIVE = []
193
203
  include Aws::Structure
194
204
  end
@@ -838,7 +848,7 @@ module Aws::WorkSpaces
838
848
  # Specifies whether the image is running on dedicated hardware. When
839
849
  # Bring Your Own License (BYOL) is enabled, this value is set to
840
850
  # DEDICATED. For more information, see [ Bring Your Own Windows
841
- # Desktop Images.][1]
851
+ # Desktop Images.][1].
842
852
  #
843
853
  #
844
854
  #
@@ -850,7 +860,8 @@ module Aws::WorkSpaces
850
860
  # @return [Time]
851
861
  #
852
862
  # @!attribute [rw] owner_account_id
853
- # The identifier of the AWS account that owns the image.
863
+ # The identifier of the Amazon Web Services account that owns the
864
+ # image.
854
865
  # @return [String]
855
866
  #
856
867
  # @see http://docs.aws.amazon.com/goto/WebAPI/workspaces-2015-04-08/CreateWorkspaceImageResult AWS API Documentation
@@ -881,7 +892,7 @@ module Aws::WorkSpaces
881
892
  # user_volume_encryption_enabled: false,
882
893
  # root_volume_encryption_enabled: false,
883
894
  # workspace_properties: {
884
- # running_mode: "AUTO_STOP", # accepts AUTO_STOP, ALWAYS_ON
895
+ # running_mode: "AUTO_STOP", # accepts AUTO_STOP, ALWAYS_ON, MANUAL
885
896
  # running_mode_auto_stop_timeout_in_minutes: 1,
886
897
  # root_volume_size_gib: 1,
887
898
  # user_volume_size_gib: 1,
@@ -2408,7 +2419,7 @@ module Aws::WorkSpaces
2408
2419
  #
2409
2420
  # {
2410
2421
  # ec2_image_id: "Ec2ImageId", # required
2411
- # ingestion_process: "BYOL_REGULAR", # required, accepts BYOL_REGULAR, BYOL_GRAPHICS, BYOL_GRAPHICSPRO, BYOL_GRAPHICS_G4DN, BYOL_REGULAR_WSP
2422
+ # ingestion_process: "BYOL_REGULAR", # required, accepts BYOL_REGULAR, BYOL_GRAPHICS, BYOL_GRAPHICSPRO, BYOL_GRAPHICS_G4DN, BYOL_REGULAR_WSP, BYOL_REGULAR_BYOP, BYOL_GRAPHICS_G4DN_BYOP
2412
2423
  # image_name: "WorkspaceImageName", # required
2413
2424
  # image_description: "WorkspaceImageDescription", # required
2414
2425
  # tags: [
@@ -2427,13 +2438,25 @@ module Aws::WorkSpaces
2427
2438
  # @!attribute [rw] ingestion_process
2428
2439
  # The ingestion process to be used when importing the image, depending
2429
2440
  # on which protocol you want to use for your BYOL Workspace image,
2430
- # either PCoIP or WorkSpaces Streaming Protocol (WSP). To use WSP,
2431
- # specify a value that ends in `_WSP`. To use PCoIP, specify a value
2432
- # that does not end in `_WSP`.
2441
+ # either PCoIP, WorkSpaces Streaming Protocol (WSP), or bring your own
2442
+ # protocol (BYOP). To use WSP, specify a value that ends in `_WSP`. To
2443
+ # use PCoIP, specify a value that does not end in `_WSP`. To use BYOP,
2444
+ # specify a value that ends in `_BYOP`.
2433
2445
  #
2434
2446
  # For non-GPU-enabled bundles (bundles other than Graphics or
2435
- # GraphicsPro), specify `BYOL_REGULAR` or `BYOL_REGULAR_WSP`,
2436
- # depending on the protocol.
2447
+ # GraphicsPro), specify `BYOL_REGULAR`, `BYOL_REGULAR_WSP`, or
2448
+ # `BYOL_REGULAR_BYOP`, depending on the protocol.
2449
+ #
2450
+ # <note markdown="1"> The `BYOL_REGULAR_BYOP` and `BYOL_GRAPHICS_G4DN_BYOP` values are
2451
+ # only supported by Amazon WorkSpaces Core. Contact your account team
2452
+ # to be allow-listed to use these values. For more information, see
2453
+ # [Amazon WorkSpaces Core][1].
2454
+ #
2455
+ # </note>
2456
+ #
2457
+ #
2458
+ #
2459
+ # [1]: http://aws.amazon.com/workspaces/core/
2437
2460
  # @return [String]
2438
2461
  #
2439
2462
  # @!attribute [rw] image_name
@@ -2912,6 +2935,7 @@ module Aws::WorkSpaces
2912
2935
  # resource_id: "NonEmptyString", # required
2913
2936
  # client_properties: { # required
2914
2937
  # reconnect_enabled: "ENABLED", # accepts ENABLED, DISABLED
2938
+ # log_upload_enabled: "ENABLED", # accepts ENABLED, DISABLED
2915
2939
  # },
2916
2940
  # }
2917
2941
  #
@@ -3099,7 +3123,7 @@ module Aws::WorkSpaces
3099
3123
  # {
3100
3124
  # workspace_id: "WorkspaceId", # required
3101
3125
  # workspace_properties: { # required
3102
- # running_mode: "AUTO_STOP", # accepts AUTO_STOP, ALWAYS_ON
3126
+ # running_mode: "AUTO_STOP", # accepts AUTO_STOP, ALWAYS_ON, MANUAL
3103
3127
  # running_mode_auto_stop_timeout_in_minutes: 1,
3104
3128
  # root_volume_size_gib: 1,
3105
3129
  # user_volume_size_gib: 1,
@@ -4729,7 +4753,7 @@ module Aws::WorkSpaces
4729
4753
  # data as a hash:
4730
4754
  #
4731
4755
  # {
4732
- # running_mode: "AUTO_STOP", # accepts AUTO_STOP, ALWAYS_ON
4756
+ # running_mode: "AUTO_STOP", # accepts AUTO_STOP, ALWAYS_ON, MANUAL
4733
4757
  # running_mode_auto_stop_timeout_in_minutes: 1,
4734
4758
  # root_volume_size_gib: 1,
4735
4759
  # user_volume_size_gib: 1,
@@ -4740,9 +4764,16 @@ module Aws::WorkSpaces
4740
4764
  # The running mode. For more information, see [Manage the WorkSpace
4741
4765
  # Running Mode][1].
4742
4766
  #
4767
+ # <note markdown="1"> The `MANUAL` value is only supported by Amazon WorkSpaces Core.
4768
+ # Contact your account team to be allow-listed to use this value. For
4769
+ # more information, see [Amazon WorkSpaces Core][2].
4770
+ #
4771
+ # </note>
4772
+ #
4743
4773
  #
4744
4774
  #
4745
4775
  # [1]: https://docs.aws.amazon.com/workspaces/latest/adminguide/running-mode.html
4776
+ # [2]: http://aws.amazon.com/workspaces/core/
4746
4777
  # @return [String]
4747
4778
  #
4748
4779
  # @!attribute [rw] running_mode_auto_stop_timeout_in_minutes
@@ -4804,7 +4835,7 @@ module Aws::WorkSpaces
4804
4835
  # user_volume_encryption_enabled: false,
4805
4836
  # root_volume_encryption_enabled: false,
4806
4837
  # workspace_properties: {
4807
- # running_mode: "AUTO_STOP", # accepts AUTO_STOP, ALWAYS_ON
4838
+ # running_mode: "AUTO_STOP", # accepts AUTO_STOP, ALWAYS_ON, MANUAL
4808
4839
  # running_mode_auto_stop_timeout_in_minutes: 1,
4809
4840
  # root_volume_size_gib: 1,
4810
4841
  # user_volume_size_gib: 1,
@@ -13,9 +13,13 @@ require 'aws-sigv4'
13
13
 
14
14
  require_relative 'aws-sdk-workspaces/types'
15
15
  require_relative 'aws-sdk-workspaces/client_api'
16
+ require_relative 'aws-sdk-workspaces/plugins/endpoints.rb'
16
17
  require_relative 'aws-sdk-workspaces/client'
17
18
  require_relative 'aws-sdk-workspaces/errors'
18
19
  require_relative 'aws-sdk-workspaces/resource'
20
+ require_relative 'aws-sdk-workspaces/endpoint_parameters'
21
+ require_relative 'aws-sdk-workspaces/endpoint_provider'
22
+ require_relative 'aws-sdk-workspaces/endpoints'
19
23
  require_relative 'aws-sdk-workspaces/customizations'
20
24
 
21
25
  # This module provides support for Amazon WorkSpaces. This module is available in the
@@ -48,6 +52,6 @@ require_relative 'aws-sdk-workspaces/customizations'
48
52
  # @!group service
49
53
  module Aws::WorkSpaces
50
54
 
51
- GEM_VERSION = '1.72.0'
55
+ GEM_VERSION = '1.74.0'
52
56
 
53
57
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: aws-sdk-workspaces
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.72.0
4
+ version: 1.74.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Amazon Web Services
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-08-01 00:00:00.000000000 Z
11
+ date: 2022-10-25 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: aws-sdk-core
@@ -19,7 +19,7 @@ dependencies:
19
19
  version: '3'
20
20
  - - ">="
21
21
  - !ruby/object:Gem::Version
22
- version: 3.127.0
22
+ version: 3.165.0
23
23
  type: :runtime
24
24
  prerelease: false
25
25
  version_requirements: !ruby/object:Gem::Requirement
@@ -29,7 +29,7 @@ dependencies:
29
29
  version: '3'
30
30
  - - ">="
31
31
  - !ruby/object:Gem::Version
32
- version: 3.127.0
32
+ version: 3.165.0
33
33
  - !ruby/object:Gem::Dependency
34
34
  name: aws-sigv4
35
35
  requirement: !ruby/object:Gem::Requirement
@@ -59,7 +59,11 @@ files:
59
59
  - lib/aws-sdk-workspaces/client.rb
60
60
  - lib/aws-sdk-workspaces/client_api.rb
61
61
  - lib/aws-sdk-workspaces/customizations.rb
62
+ - lib/aws-sdk-workspaces/endpoint_parameters.rb
63
+ - lib/aws-sdk-workspaces/endpoint_provider.rb
64
+ - lib/aws-sdk-workspaces/endpoints.rb
62
65
  - lib/aws-sdk-workspaces/errors.rb
66
+ - lib/aws-sdk-workspaces/plugins/endpoints.rb
63
67
  - lib/aws-sdk-workspaces/resource.rb
64
68
  - lib/aws-sdk-workspaces/types.rb
65
69
  homepage: https://github.com/aws/aws-sdk-ruby