aws-sdk-redshift 1.85.0 → 1.86.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,306 @@
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::Redshift
12
+ module Plugins
13
+ class Endpoints < Seahorse::Client::Plugin
14
+ option(
15
+ :endpoint_provider,
16
+ doc_type: 'Aws::Redshift::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::Redshift::EndpointParameters`'
21
+ ) do |cfg|
22
+ Aws::Redshift::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 :accept_reserved_node_exchange
60
+ Aws::Redshift::Endpoints::AcceptReservedNodeExchange.build(context)
61
+ when :add_partner
62
+ Aws::Redshift::Endpoints::AddPartner.build(context)
63
+ when :associate_data_share_consumer
64
+ Aws::Redshift::Endpoints::AssociateDataShareConsumer.build(context)
65
+ when :authorize_cluster_security_group_ingress
66
+ Aws::Redshift::Endpoints::AuthorizeClusterSecurityGroupIngress.build(context)
67
+ when :authorize_data_share
68
+ Aws::Redshift::Endpoints::AuthorizeDataShare.build(context)
69
+ when :authorize_endpoint_access
70
+ Aws::Redshift::Endpoints::AuthorizeEndpointAccess.build(context)
71
+ when :authorize_snapshot_access
72
+ Aws::Redshift::Endpoints::AuthorizeSnapshotAccess.build(context)
73
+ when :batch_delete_cluster_snapshots
74
+ Aws::Redshift::Endpoints::BatchDeleteClusterSnapshots.build(context)
75
+ when :batch_modify_cluster_snapshots
76
+ Aws::Redshift::Endpoints::BatchModifyClusterSnapshots.build(context)
77
+ when :cancel_resize
78
+ Aws::Redshift::Endpoints::CancelResize.build(context)
79
+ when :copy_cluster_snapshot
80
+ Aws::Redshift::Endpoints::CopyClusterSnapshot.build(context)
81
+ when :create_authentication_profile
82
+ Aws::Redshift::Endpoints::CreateAuthenticationProfile.build(context)
83
+ when :create_cluster
84
+ Aws::Redshift::Endpoints::CreateCluster.build(context)
85
+ when :create_cluster_parameter_group
86
+ Aws::Redshift::Endpoints::CreateClusterParameterGroup.build(context)
87
+ when :create_cluster_security_group
88
+ Aws::Redshift::Endpoints::CreateClusterSecurityGroup.build(context)
89
+ when :create_cluster_snapshot
90
+ Aws::Redshift::Endpoints::CreateClusterSnapshot.build(context)
91
+ when :create_cluster_subnet_group
92
+ Aws::Redshift::Endpoints::CreateClusterSubnetGroup.build(context)
93
+ when :create_endpoint_access
94
+ Aws::Redshift::Endpoints::CreateEndpointAccess.build(context)
95
+ when :create_event_subscription
96
+ Aws::Redshift::Endpoints::CreateEventSubscription.build(context)
97
+ when :create_hsm_client_certificate
98
+ Aws::Redshift::Endpoints::CreateHsmClientCertificate.build(context)
99
+ when :create_hsm_configuration
100
+ Aws::Redshift::Endpoints::CreateHsmConfiguration.build(context)
101
+ when :create_scheduled_action
102
+ Aws::Redshift::Endpoints::CreateScheduledAction.build(context)
103
+ when :create_snapshot_copy_grant
104
+ Aws::Redshift::Endpoints::CreateSnapshotCopyGrant.build(context)
105
+ when :create_snapshot_schedule
106
+ Aws::Redshift::Endpoints::CreateSnapshotSchedule.build(context)
107
+ when :create_tags
108
+ Aws::Redshift::Endpoints::CreateTags.build(context)
109
+ when :create_usage_limit
110
+ Aws::Redshift::Endpoints::CreateUsageLimit.build(context)
111
+ when :deauthorize_data_share
112
+ Aws::Redshift::Endpoints::DeauthorizeDataShare.build(context)
113
+ when :delete_authentication_profile
114
+ Aws::Redshift::Endpoints::DeleteAuthenticationProfile.build(context)
115
+ when :delete_cluster
116
+ Aws::Redshift::Endpoints::DeleteCluster.build(context)
117
+ when :delete_cluster_parameter_group
118
+ Aws::Redshift::Endpoints::DeleteClusterParameterGroup.build(context)
119
+ when :delete_cluster_security_group
120
+ Aws::Redshift::Endpoints::DeleteClusterSecurityGroup.build(context)
121
+ when :delete_cluster_snapshot
122
+ Aws::Redshift::Endpoints::DeleteClusterSnapshot.build(context)
123
+ when :delete_cluster_subnet_group
124
+ Aws::Redshift::Endpoints::DeleteClusterSubnetGroup.build(context)
125
+ when :delete_endpoint_access
126
+ Aws::Redshift::Endpoints::DeleteEndpointAccess.build(context)
127
+ when :delete_event_subscription
128
+ Aws::Redshift::Endpoints::DeleteEventSubscription.build(context)
129
+ when :delete_hsm_client_certificate
130
+ Aws::Redshift::Endpoints::DeleteHsmClientCertificate.build(context)
131
+ when :delete_hsm_configuration
132
+ Aws::Redshift::Endpoints::DeleteHsmConfiguration.build(context)
133
+ when :delete_partner
134
+ Aws::Redshift::Endpoints::DeletePartner.build(context)
135
+ when :delete_scheduled_action
136
+ Aws::Redshift::Endpoints::DeleteScheduledAction.build(context)
137
+ when :delete_snapshot_copy_grant
138
+ Aws::Redshift::Endpoints::DeleteSnapshotCopyGrant.build(context)
139
+ when :delete_snapshot_schedule
140
+ Aws::Redshift::Endpoints::DeleteSnapshotSchedule.build(context)
141
+ when :delete_tags
142
+ Aws::Redshift::Endpoints::DeleteTags.build(context)
143
+ when :delete_usage_limit
144
+ Aws::Redshift::Endpoints::DeleteUsageLimit.build(context)
145
+ when :describe_account_attributes
146
+ Aws::Redshift::Endpoints::DescribeAccountAttributes.build(context)
147
+ when :describe_authentication_profiles
148
+ Aws::Redshift::Endpoints::DescribeAuthenticationProfiles.build(context)
149
+ when :describe_cluster_db_revisions
150
+ Aws::Redshift::Endpoints::DescribeClusterDbRevisions.build(context)
151
+ when :describe_cluster_parameter_groups
152
+ Aws::Redshift::Endpoints::DescribeClusterParameterGroups.build(context)
153
+ when :describe_cluster_parameters
154
+ Aws::Redshift::Endpoints::DescribeClusterParameters.build(context)
155
+ when :describe_cluster_security_groups
156
+ Aws::Redshift::Endpoints::DescribeClusterSecurityGroups.build(context)
157
+ when :describe_cluster_snapshots
158
+ Aws::Redshift::Endpoints::DescribeClusterSnapshots.build(context)
159
+ when :describe_cluster_subnet_groups
160
+ Aws::Redshift::Endpoints::DescribeClusterSubnetGroups.build(context)
161
+ when :describe_cluster_tracks
162
+ Aws::Redshift::Endpoints::DescribeClusterTracks.build(context)
163
+ when :describe_cluster_versions
164
+ Aws::Redshift::Endpoints::DescribeClusterVersions.build(context)
165
+ when :describe_clusters
166
+ Aws::Redshift::Endpoints::DescribeClusters.build(context)
167
+ when :describe_data_shares
168
+ Aws::Redshift::Endpoints::DescribeDataShares.build(context)
169
+ when :describe_data_shares_for_consumer
170
+ Aws::Redshift::Endpoints::DescribeDataSharesForConsumer.build(context)
171
+ when :describe_data_shares_for_producer
172
+ Aws::Redshift::Endpoints::DescribeDataSharesForProducer.build(context)
173
+ when :describe_default_cluster_parameters
174
+ Aws::Redshift::Endpoints::DescribeDefaultClusterParameters.build(context)
175
+ when :describe_endpoint_access
176
+ Aws::Redshift::Endpoints::DescribeEndpointAccess.build(context)
177
+ when :describe_endpoint_authorization
178
+ Aws::Redshift::Endpoints::DescribeEndpointAuthorization.build(context)
179
+ when :describe_event_categories
180
+ Aws::Redshift::Endpoints::DescribeEventCategories.build(context)
181
+ when :describe_event_subscriptions
182
+ Aws::Redshift::Endpoints::DescribeEventSubscriptions.build(context)
183
+ when :describe_events
184
+ Aws::Redshift::Endpoints::DescribeEvents.build(context)
185
+ when :describe_hsm_client_certificates
186
+ Aws::Redshift::Endpoints::DescribeHsmClientCertificates.build(context)
187
+ when :describe_hsm_configurations
188
+ Aws::Redshift::Endpoints::DescribeHsmConfigurations.build(context)
189
+ when :describe_logging_status
190
+ Aws::Redshift::Endpoints::DescribeLoggingStatus.build(context)
191
+ when :describe_node_configuration_options
192
+ Aws::Redshift::Endpoints::DescribeNodeConfigurationOptions.build(context)
193
+ when :describe_orderable_cluster_options
194
+ Aws::Redshift::Endpoints::DescribeOrderableClusterOptions.build(context)
195
+ when :describe_partners
196
+ Aws::Redshift::Endpoints::DescribePartners.build(context)
197
+ when :describe_reserved_node_exchange_status
198
+ Aws::Redshift::Endpoints::DescribeReservedNodeExchangeStatus.build(context)
199
+ when :describe_reserved_node_offerings
200
+ Aws::Redshift::Endpoints::DescribeReservedNodeOfferings.build(context)
201
+ when :describe_reserved_nodes
202
+ Aws::Redshift::Endpoints::DescribeReservedNodes.build(context)
203
+ when :describe_resize
204
+ Aws::Redshift::Endpoints::DescribeResize.build(context)
205
+ when :describe_scheduled_actions
206
+ Aws::Redshift::Endpoints::DescribeScheduledActions.build(context)
207
+ when :describe_snapshot_copy_grants
208
+ Aws::Redshift::Endpoints::DescribeSnapshotCopyGrants.build(context)
209
+ when :describe_snapshot_schedules
210
+ Aws::Redshift::Endpoints::DescribeSnapshotSchedules.build(context)
211
+ when :describe_storage
212
+ Aws::Redshift::Endpoints::DescribeStorage.build(context)
213
+ when :describe_table_restore_status
214
+ Aws::Redshift::Endpoints::DescribeTableRestoreStatus.build(context)
215
+ when :describe_tags
216
+ Aws::Redshift::Endpoints::DescribeTags.build(context)
217
+ when :describe_usage_limits
218
+ Aws::Redshift::Endpoints::DescribeUsageLimits.build(context)
219
+ when :disable_logging
220
+ Aws::Redshift::Endpoints::DisableLogging.build(context)
221
+ when :disable_snapshot_copy
222
+ Aws::Redshift::Endpoints::DisableSnapshotCopy.build(context)
223
+ when :disassociate_data_share_consumer
224
+ Aws::Redshift::Endpoints::DisassociateDataShareConsumer.build(context)
225
+ when :enable_logging
226
+ Aws::Redshift::Endpoints::EnableLogging.build(context)
227
+ when :enable_snapshot_copy
228
+ Aws::Redshift::Endpoints::EnableSnapshotCopy.build(context)
229
+ when :get_cluster_credentials
230
+ Aws::Redshift::Endpoints::GetClusterCredentials.build(context)
231
+ when :get_cluster_credentials_with_iam
232
+ Aws::Redshift::Endpoints::GetClusterCredentialsWithIAM.build(context)
233
+ when :get_reserved_node_exchange_configuration_options
234
+ Aws::Redshift::Endpoints::GetReservedNodeExchangeConfigurationOptions.build(context)
235
+ when :get_reserved_node_exchange_offerings
236
+ Aws::Redshift::Endpoints::GetReservedNodeExchangeOfferings.build(context)
237
+ when :modify_aqua_configuration
238
+ Aws::Redshift::Endpoints::ModifyAquaConfiguration.build(context)
239
+ when :modify_authentication_profile
240
+ Aws::Redshift::Endpoints::ModifyAuthenticationProfile.build(context)
241
+ when :modify_cluster
242
+ Aws::Redshift::Endpoints::ModifyCluster.build(context)
243
+ when :modify_cluster_db_revision
244
+ Aws::Redshift::Endpoints::ModifyClusterDbRevision.build(context)
245
+ when :modify_cluster_iam_roles
246
+ Aws::Redshift::Endpoints::ModifyClusterIamRoles.build(context)
247
+ when :modify_cluster_maintenance
248
+ Aws::Redshift::Endpoints::ModifyClusterMaintenance.build(context)
249
+ when :modify_cluster_parameter_group
250
+ Aws::Redshift::Endpoints::ModifyClusterParameterGroup.build(context)
251
+ when :modify_cluster_snapshot
252
+ Aws::Redshift::Endpoints::ModifyClusterSnapshot.build(context)
253
+ when :modify_cluster_snapshot_schedule
254
+ Aws::Redshift::Endpoints::ModifyClusterSnapshotSchedule.build(context)
255
+ when :modify_cluster_subnet_group
256
+ Aws::Redshift::Endpoints::ModifyClusterSubnetGroup.build(context)
257
+ when :modify_endpoint_access
258
+ Aws::Redshift::Endpoints::ModifyEndpointAccess.build(context)
259
+ when :modify_event_subscription
260
+ Aws::Redshift::Endpoints::ModifyEventSubscription.build(context)
261
+ when :modify_scheduled_action
262
+ Aws::Redshift::Endpoints::ModifyScheduledAction.build(context)
263
+ when :modify_snapshot_copy_retention_period
264
+ Aws::Redshift::Endpoints::ModifySnapshotCopyRetentionPeriod.build(context)
265
+ when :modify_snapshot_schedule
266
+ Aws::Redshift::Endpoints::ModifySnapshotSchedule.build(context)
267
+ when :modify_usage_limit
268
+ Aws::Redshift::Endpoints::ModifyUsageLimit.build(context)
269
+ when :pause_cluster
270
+ Aws::Redshift::Endpoints::PauseCluster.build(context)
271
+ when :purchase_reserved_node_offering
272
+ Aws::Redshift::Endpoints::PurchaseReservedNodeOffering.build(context)
273
+ when :reboot_cluster
274
+ Aws::Redshift::Endpoints::RebootCluster.build(context)
275
+ when :reject_data_share
276
+ Aws::Redshift::Endpoints::RejectDataShare.build(context)
277
+ when :reset_cluster_parameter_group
278
+ Aws::Redshift::Endpoints::ResetClusterParameterGroup.build(context)
279
+ when :resize_cluster
280
+ Aws::Redshift::Endpoints::ResizeCluster.build(context)
281
+ when :restore_from_cluster_snapshot
282
+ Aws::Redshift::Endpoints::RestoreFromClusterSnapshot.build(context)
283
+ when :restore_table_from_cluster_snapshot
284
+ Aws::Redshift::Endpoints::RestoreTableFromClusterSnapshot.build(context)
285
+ when :resume_cluster
286
+ Aws::Redshift::Endpoints::ResumeCluster.build(context)
287
+ when :revoke_cluster_security_group_ingress
288
+ Aws::Redshift::Endpoints::RevokeClusterSecurityGroupIngress.build(context)
289
+ when :revoke_endpoint_access
290
+ Aws::Redshift::Endpoints::RevokeEndpointAccess.build(context)
291
+ when :revoke_snapshot_access
292
+ Aws::Redshift::Endpoints::RevokeSnapshotAccess.build(context)
293
+ when :rotate_encryption_key
294
+ Aws::Redshift::Endpoints::RotateEncryptionKey.build(context)
295
+ when :update_partner_status
296
+ Aws::Redshift::Endpoints::UpdatePartnerStatus.build(context)
297
+ end
298
+ end
299
+ end
300
+
301
+ def add_handlers(handlers, _config)
302
+ handlers.add(Handler, step: :build, priority: 75)
303
+ end
304
+ end
305
+ end
306
+ end
@@ -13,10 +13,14 @@ require 'aws-sigv4'
13
13
 
14
14
  require_relative 'aws-sdk-redshift/types'
15
15
  require_relative 'aws-sdk-redshift/client_api'
16
+ require_relative 'aws-sdk-redshift/plugins/endpoints.rb'
16
17
  require_relative 'aws-sdk-redshift/client'
17
18
  require_relative 'aws-sdk-redshift/errors'
18
19
  require_relative 'aws-sdk-redshift/waiters'
19
20
  require_relative 'aws-sdk-redshift/resource'
21
+ require_relative 'aws-sdk-redshift/endpoint_parameters'
22
+ require_relative 'aws-sdk-redshift/endpoint_provider'
23
+ require_relative 'aws-sdk-redshift/endpoints'
20
24
  require_relative 'aws-sdk-redshift/customizations'
21
25
 
22
26
  # This module provides support for Amazon Redshift. This module is available in the
@@ -49,6 +53,6 @@ require_relative 'aws-sdk-redshift/customizations'
49
53
  # @!group service
50
54
  module Aws::Redshift
51
55
 
52
- GEM_VERSION = '1.85.0'
56
+ GEM_VERSION = '1.86.0'
53
57
 
54
58
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: aws-sdk-redshift
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.85.0
4
+ version: 1.86.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-09 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-redshift/client.rb
60
60
  - lib/aws-sdk-redshift/client_api.rb
61
61
  - lib/aws-sdk-redshift/customizations.rb
62
+ - lib/aws-sdk-redshift/endpoint_parameters.rb
63
+ - lib/aws-sdk-redshift/endpoint_provider.rb
64
+ - lib/aws-sdk-redshift/endpoints.rb
62
65
  - lib/aws-sdk-redshift/errors.rb
66
+ - lib/aws-sdk-redshift/plugins/endpoints.rb
63
67
  - lib/aws-sdk-redshift/resource.rb
64
68
  - lib/aws-sdk-redshift/types.rb
65
69
  - lib/aws-sdk-redshift/waiters.rb