aws-sdk-workspaces 1.73.0 → 1.74.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -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,7 +892,7 @@ 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,
@@ -2419,7 +2419,7 @@ module Aws::WorkSpaces
2419
2419
  #
2420
2420
  # {
2421
2421
  # ec2_image_id: "Ec2ImageId", # required
2422
- # 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
2423
2423
  # image_name: "WorkspaceImageName", # required
2424
2424
  # image_description: "WorkspaceImageDescription", # required
2425
2425
  # tags: [
@@ -2438,13 +2438,25 @@ module Aws::WorkSpaces
2438
2438
  # @!attribute [rw] ingestion_process
2439
2439
  # The ingestion process to be used when importing the image, depending
2440
2440
  # 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`.
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`.
2444
2445
  #
2445
2446
  # For non-GPU-enabled bundles (bundles other than Graphics or
2446
- # GraphicsPro), specify `BYOL_REGULAR` or `BYOL_REGULAR_WSP`,
2447
- # 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/
2448
2460
  # @return [String]
2449
2461
  #
2450
2462
  # @!attribute [rw] image_name
@@ -3111,7 +3123,7 @@ module Aws::WorkSpaces
3111
3123
  # {
3112
3124
  # workspace_id: "WorkspaceId", # required
3113
3125
  # workspace_properties: { # required
3114
- # running_mode: "AUTO_STOP", # accepts AUTO_STOP, ALWAYS_ON
3126
+ # running_mode: "AUTO_STOP", # accepts AUTO_STOP, ALWAYS_ON, MANUAL
3115
3127
  # running_mode_auto_stop_timeout_in_minutes: 1,
3116
3128
  # root_volume_size_gib: 1,
3117
3129
  # user_volume_size_gib: 1,
@@ -4741,7 +4753,7 @@ module Aws::WorkSpaces
4741
4753
  # data as a hash:
4742
4754
  #
4743
4755
  # {
4744
- # running_mode: "AUTO_STOP", # accepts AUTO_STOP, ALWAYS_ON
4756
+ # running_mode: "AUTO_STOP", # accepts AUTO_STOP, ALWAYS_ON, MANUAL
4745
4757
  # running_mode_auto_stop_timeout_in_minutes: 1,
4746
4758
  # root_volume_size_gib: 1,
4747
4759
  # user_volume_size_gib: 1,
@@ -4752,9 +4764,16 @@ module Aws::WorkSpaces
4752
4764
  # The running mode. For more information, see [Manage the WorkSpace
4753
4765
  # Running Mode][1].
4754
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
+ #
4755
4773
  #
4756
4774
  #
4757
4775
  # [1]: https://docs.aws.amazon.com/workspaces/latest/adminguide/running-mode.html
4776
+ # [2]: http://aws.amazon.com/workspaces/core/
4758
4777
  # @return [String]
4759
4778
  #
4760
4779
  # @!attribute [rw] running_mode_auto_stop_timeout_in_minutes
@@ -4816,7 +4835,7 @@ module Aws::WorkSpaces
4816
4835
  # user_volume_encryption_enabled: false,
4817
4836
  # root_volume_encryption_enabled: false,
4818
4837
  # workspace_properties: {
4819
- # running_mode: "AUTO_STOP", # accepts AUTO_STOP, ALWAYS_ON
4838
+ # running_mode: "AUTO_STOP", # accepts AUTO_STOP, ALWAYS_ON, MANUAL
4820
4839
  # running_mode_auto_stop_timeout_in_minutes: 1,
4821
4840
  # root_volume_size_gib: 1,
4822
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.73.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.73.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-09-29 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