aws-sdk-workspaces 1.73.0 → 1.75.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
@@ -848,7 +848,7 @@ module Aws::WorkSpaces
848
848
  # Specifies whether the image is running on dedicated hardware. When
849
849
  # Bring Your Own License (BYOL) is enabled, this value is set to
850
850
  # DEDICATED. For more information, see [ Bring Your Own Windows
851
- # Desktop Images.][1]
851
+ # Desktop Images.][1].
852
852
  #
853
853
  #
854
854
  #
@@ -892,11 +892,12 @@ module Aws::WorkSpaces
892
892
  # user_volume_encryption_enabled: false,
893
893
  # root_volume_encryption_enabled: false,
894
894
  # workspace_properties: {
895
- # running_mode: "AUTO_STOP", # accepts AUTO_STOP, ALWAYS_ON
895
+ # running_mode: "AUTO_STOP", # accepts AUTO_STOP, ALWAYS_ON, MANUAL
896
896
  # running_mode_auto_stop_timeout_in_minutes: 1,
897
897
  # root_volume_size_gib: 1,
898
898
  # user_volume_size_gib: 1,
899
899
  # compute_type_name: "VALUE", # accepts VALUE, STANDARD, PERFORMANCE, POWER, GRAPHICS, POWERPRO, GRAPHICSPRO, GRAPHICS_G4DN, GRAPHICSPRO_G4DN
900
+ # protocols: ["PCOIP"], # accepts PCOIP, WSP
900
901
  # },
901
902
  # tags: [
902
903
  # {
@@ -2419,7 +2420,7 @@ module Aws::WorkSpaces
2419
2420
  #
2420
2421
  # {
2421
2422
  # ec2_image_id: "Ec2ImageId", # required
2422
- # ingestion_process: "BYOL_REGULAR", # required, accepts BYOL_REGULAR, BYOL_GRAPHICS, BYOL_GRAPHICSPRO, BYOL_GRAPHICS_G4DN, BYOL_REGULAR_WSP
2423
+ # 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
2423
2424
  # image_name: "WorkspaceImageName", # required
2424
2425
  # image_description: "WorkspaceImageDescription", # required
2425
2426
  # tags: [
@@ -2438,13 +2439,25 @@ module Aws::WorkSpaces
2438
2439
  # @!attribute [rw] ingestion_process
2439
2440
  # The ingestion process to be used when importing the image, depending
2440
2441
  # on which protocol you want to use for your BYOL Workspace image,
2441
- # either PCoIP or WorkSpaces Streaming Protocol (WSP). To use WSP,
2442
- # specify a value that ends in `_WSP`. To use PCoIP, specify a value
2443
- # that does not end in `_WSP`.
2442
+ # either PCoIP, WorkSpaces Streaming Protocol (WSP), or bring your own
2443
+ # protocol (BYOP). To use WSP, specify a value that ends in `_WSP`. To
2444
+ # use PCoIP, specify a value that does not end in `_WSP`. To use BYOP,
2445
+ # specify a value that ends in `_BYOP`.
2444
2446
  #
2445
2447
  # For non-GPU-enabled bundles (bundles other than Graphics or
2446
- # GraphicsPro), specify `BYOL_REGULAR` or `BYOL_REGULAR_WSP`,
2447
- # depending on the protocol.
2448
+ # GraphicsPro), specify `BYOL_REGULAR`, `BYOL_REGULAR_WSP`, or
2449
+ # `BYOL_REGULAR_BYOP`, depending on the protocol.
2450
+ #
2451
+ # <note markdown="1"> The `BYOL_REGULAR_BYOP` and `BYOL_GRAPHICS_G4DN_BYOP` values are
2452
+ # only supported by Amazon WorkSpaces Core. Contact your account team
2453
+ # to be allow-listed to use these values. For more information, see
2454
+ # [Amazon WorkSpaces Core][1].
2455
+ #
2456
+ # </note>
2457
+ #
2458
+ #
2459
+ #
2460
+ # [1]: http://aws.amazon.com/workspaces/core/
2448
2461
  # @return [String]
2449
2462
  #
2450
2463
  # @!attribute [rw] image_name
@@ -3111,11 +3124,12 @@ module Aws::WorkSpaces
3111
3124
  # {
3112
3125
  # workspace_id: "WorkspaceId", # required
3113
3126
  # workspace_properties: { # required
3114
- # running_mode: "AUTO_STOP", # accepts AUTO_STOP, ALWAYS_ON
3127
+ # running_mode: "AUTO_STOP", # accepts AUTO_STOP, ALWAYS_ON, MANUAL
3115
3128
  # running_mode_auto_stop_timeout_in_minutes: 1,
3116
3129
  # root_volume_size_gib: 1,
3117
3130
  # user_volume_size_gib: 1,
3118
3131
  # compute_type_name: "VALUE", # accepts VALUE, STANDARD, PERFORMANCE, POWER, GRAPHICS, POWERPRO, GRAPHICSPRO, GRAPHICS_G4DN, GRAPHICSPRO_G4DN
3132
+ # protocols: ["PCOIP"], # accepts PCOIP, WSP
3119
3133
  # },
3120
3134
  # }
3121
3135
  #
@@ -4741,20 +4755,28 @@ module Aws::WorkSpaces
4741
4755
  # data as a hash:
4742
4756
  #
4743
4757
  # {
4744
- # running_mode: "AUTO_STOP", # accepts AUTO_STOP, ALWAYS_ON
4758
+ # running_mode: "AUTO_STOP", # accepts AUTO_STOP, ALWAYS_ON, MANUAL
4745
4759
  # running_mode_auto_stop_timeout_in_minutes: 1,
4746
4760
  # root_volume_size_gib: 1,
4747
4761
  # user_volume_size_gib: 1,
4748
4762
  # compute_type_name: "VALUE", # accepts VALUE, STANDARD, PERFORMANCE, POWER, GRAPHICS, POWERPRO, GRAPHICSPRO, GRAPHICS_G4DN, GRAPHICSPRO_G4DN
4763
+ # protocols: ["PCOIP"], # accepts PCOIP, WSP
4749
4764
  # }
4750
4765
  #
4751
4766
  # @!attribute [rw] running_mode
4752
4767
  # The running mode. For more information, see [Manage the WorkSpace
4753
4768
  # Running Mode][1].
4754
4769
  #
4770
+ # <note markdown="1"> The `MANUAL` value is only supported by Amazon WorkSpaces Core.
4771
+ # Contact your account team to be allow-listed to use this value. For
4772
+ # more information, see [Amazon WorkSpaces Core][2].
4773
+ #
4774
+ # </note>
4775
+ #
4755
4776
  #
4756
4777
  #
4757
4778
  # [1]: https://docs.aws.amazon.com/workspaces/latest/adminguide/running-mode.html
4779
+ # [2]: http://aws.amazon.com/workspaces/core/
4758
4780
  # @return [String]
4759
4781
  #
4760
4782
  # @!attribute [rw] running_mode_auto_stop_timeout_in_minutes
@@ -4791,6 +4813,26 @@ module Aws::WorkSpaces
4791
4813
  # [1]: http://aws.amazon.com/workspaces/details/#Amazon_WorkSpaces_Bundles
4792
4814
  # @return [String]
4793
4815
  #
4816
+ # @!attribute [rw] protocols
4817
+ # The protocol. For more information, see [ Protocols for Amazon
4818
+ # WorkSpaces][1].
4819
+ #
4820
+ # <note markdown="1"> * Only available for WorkSpaces created with PCoIP bundles.
4821
+ #
4822
+ # * The `Protocols` property is case sensitive. Ensure you use `PCOIP`
4823
+ # or `WSP`.
4824
+ #
4825
+ # * Unavailable for Windows 7 WorkSpaces and WorkSpaces using
4826
+ # GPU-based bundles (Graphics, GraphicsPro, Graphics.g4dn, and
4827
+ # GraphicsPro.g4dn).
4828
+ #
4829
+ # </note>
4830
+ #
4831
+ #
4832
+ #
4833
+ # [1]: https://docs.aws.amazon.com/workspaces/latest/adminguide/amazon-workspaces-protocols.html
4834
+ # @return [Array<String>]
4835
+ #
4794
4836
  # @see http://docs.aws.amazon.com/goto/WebAPI/workspaces-2015-04-08/WorkspaceProperties AWS API Documentation
4795
4837
  #
4796
4838
  class WorkspaceProperties < Struct.new(
@@ -4798,7 +4840,8 @@ module Aws::WorkSpaces
4798
4840
  :running_mode_auto_stop_timeout_in_minutes,
4799
4841
  :root_volume_size_gib,
4800
4842
  :user_volume_size_gib,
4801
- :compute_type_name)
4843
+ :compute_type_name,
4844
+ :protocols)
4802
4845
  SENSITIVE = []
4803
4846
  include Aws::Structure
4804
4847
  end
@@ -4816,11 +4859,12 @@ module Aws::WorkSpaces
4816
4859
  # user_volume_encryption_enabled: false,
4817
4860
  # root_volume_encryption_enabled: false,
4818
4861
  # workspace_properties: {
4819
- # running_mode: "AUTO_STOP", # accepts AUTO_STOP, ALWAYS_ON
4862
+ # running_mode: "AUTO_STOP", # accepts AUTO_STOP, ALWAYS_ON, MANUAL
4820
4863
  # running_mode_auto_stop_timeout_in_minutes: 1,
4821
4864
  # root_volume_size_gib: 1,
4822
4865
  # user_volume_size_gib: 1,
4823
4866
  # compute_type_name: "VALUE", # accepts VALUE, STANDARD, PERFORMANCE, POWER, GRAPHICS, POWERPRO, GRAPHICSPRO, GRAPHICS_G4DN, GRAPHICSPRO_G4DN
4867
+ # protocols: ["PCOIP"], # accepts PCOIP, WSP
4824
4868
  # },
4825
4869
  # tags: [
4826
4870
  # {
@@ -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.73.0'
55
+ GEM_VERSION = '1.75.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.73.0
4
+ version: 1.75.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-09-29 00:00:00.000000000 Z
11
+ date: 2022-11-07 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