aws-sdk-databasemigrationservice 1.72.0 → 1.73.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,198 @@
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::DatabaseMigrationService
12
+ module Plugins
13
+ class Endpoints < Seahorse::Client::Plugin
14
+ option(
15
+ :endpoint_provider,
16
+ doc_type: 'Aws::DatabaseMigrationService::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::DatabaseMigrationService::EndpointParameters`'
21
+ ) do |cfg|
22
+ Aws::DatabaseMigrationService::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 :add_tags_to_resource
60
+ Aws::DatabaseMigrationService::Endpoints::AddTagsToResource.build(context)
61
+ when :apply_pending_maintenance_action
62
+ Aws::DatabaseMigrationService::Endpoints::ApplyPendingMaintenanceAction.build(context)
63
+ when :cancel_replication_task_assessment_run
64
+ Aws::DatabaseMigrationService::Endpoints::CancelReplicationTaskAssessmentRun.build(context)
65
+ when :create_endpoint
66
+ Aws::DatabaseMigrationService::Endpoints::CreateEndpoint.build(context)
67
+ when :create_event_subscription
68
+ Aws::DatabaseMigrationService::Endpoints::CreateEventSubscription.build(context)
69
+ when :create_fleet_advisor_collector
70
+ Aws::DatabaseMigrationService::Endpoints::CreateFleetAdvisorCollector.build(context)
71
+ when :create_replication_instance
72
+ Aws::DatabaseMigrationService::Endpoints::CreateReplicationInstance.build(context)
73
+ when :create_replication_subnet_group
74
+ Aws::DatabaseMigrationService::Endpoints::CreateReplicationSubnetGroup.build(context)
75
+ when :create_replication_task
76
+ Aws::DatabaseMigrationService::Endpoints::CreateReplicationTask.build(context)
77
+ when :delete_certificate
78
+ Aws::DatabaseMigrationService::Endpoints::DeleteCertificate.build(context)
79
+ when :delete_connection
80
+ Aws::DatabaseMigrationService::Endpoints::DeleteConnection.build(context)
81
+ when :delete_endpoint
82
+ Aws::DatabaseMigrationService::Endpoints::DeleteEndpoint.build(context)
83
+ when :delete_event_subscription
84
+ Aws::DatabaseMigrationService::Endpoints::DeleteEventSubscription.build(context)
85
+ when :delete_fleet_advisor_collector
86
+ Aws::DatabaseMigrationService::Endpoints::DeleteFleetAdvisorCollector.build(context)
87
+ when :delete_fleet_advisor_databases
88
+ Aws::DatabaseMigrationService::Endpoints::DeleteFleetAdvisorDatabases.build(context)
89
+ when :delete_replication_instance
90
+ Aws::DatabaseMigrationService::Endpoints::DeleteReplicationInstance.build(context)
91
+ when :delete_replication_subnet_group
92
+ Aws::DatabaseMigrationService::Endpoints::DeleteReplicationSubnetGroup.build(context)
93
+ when :delete_replication_task
94
+ Aws::DatabaseMigrationService::Endpoints::DeleteReplicationTask.build(context)
95
+ when :delete_replication_task_assessment_run
96
+ Aws::DatabaseMigrationService::Endpoints::DeleteReplicationTaskAssessmentRun.build(context)
97
+ when :describe_account_attributes
98
+ Aws::DatabaseMigrationService::Endpoints::DescribeAccountAttributes.build(context)
99
+ when :describe_applicable_individual_assessments
100
+ Aws::DatabaseMigrationService::Endpoints::DescribeApplicableIndividualAssessments.build(context)
101
+ when :describe_certificates
102
+ Aws::DatabaseMigrationService::Endpoints::DescribeCertificates.build(context)
103
+ when :describe_connections
104
+ Aws::DatabaseMigrationService::Endpoints::DescribeConnections.build(context)
105
+ when :describe_endpoint_settings
106
+ Aws::DatabaseMigrationService::Endpoints::DescribeEndpointSettings.build(context)
107
+ when :describe_endpoint_types
108
+ Aws::DatabaseMigrationService::Endpoints::DescribeEndpointTypes.build(context)
109
+ when :describe_endpoints
110
+ Aws::DatabaseMigrationService::Endpoints::DescribeEndpoints.build(context)
111
+ when :describe_event_categories
112
+ Aws::DatabaseMigrationService::Endpoints::DescribeEventCategories.build(context)
113
+ when :describe_event_subscriptions
114
+ Aws::DatabaseMigrationService::Endpoints::DescribeEventSubscriptions.build(context)
115
+ when :describe_events
116
+ Aws::DatabaseMigrationService::Endpoints::DescribeEvents.build(context)
117
+ when :describe_fleet_advisor_collectors
118
+ Aws::DatabaseMigrationService::Endpoints::DescribeFleetAdvisorCollectors.build(context)
119
+ when :describe_fleet_advisor_databases
120
+ Aws::DatabaseMigrationService::Endpoints::DescribeFleetAdvisorDatabases.build(context)
121
+ when :describe_fleet_advisor_lsa_analysis
122
+ Aws::DatabaseMigrationService::Endpoints::DescribeFleetAdvisorLsaAnalysis.build(context)
123
+ when :describe_fleet_advisor_schema_object_summary
124
+ Aws::DatabaseMigrationService::Endpoints::DescribeFleetAdvisorSchemaObjectSummary.build(context)
125
+ when :describe_fleet_advisor_schemas
126
+ Aws::DatabaseMigrationService::Endpoints::DescribeFleetAdvisorSchemas.build(context)
127
+ when :describe_orderable_replication_instances
128
+ Aws::DatabaseMigrationService::Endpoints::DescribeOrderableReplicationInstances.build(context)
129
+ when :describe_pending_maintenance_actions
130
+ Aws::DatabaseMigrationService::Endpoints::DescribePendingMaintenanceActions.build(context)
131
+ when :describe_refresh_schemas_status
132
+ Aws::DatabaseMigrationService::Endpoints::DescribeRefreshSchemasStatus.build(context)
133
+ when :describe_replication_instance_task_logs
134
+ Aws::DatabaseMigrationService::Endpoints::DescribeReplicationInstanceTaskLogs.build(context)
135
+ when :describe_replication_instances
136
+ Aws::DatabaseMigrationService::Endpoints::DescribeReplicationInstances.build(context)
137
+ when :describe_replication_subnet_groups
138
+ Aws::DatabaseMigrationService::Endpoints::DescribeReplicationSubnetGroups.build(context)
139
+ when :describe_replication_task_assessment_results
140
+ Aws::DatabaseMigrationService::Endpoints::DescribeReplicationTaskAssessmentResults.build(context)
141
+ when :describe_replication_task_assessment_runs
142
+ Aws::DatabaseMigrationService::Endpoints::DescribeReplicationTaskAssessmentRuns.build(context)
143
+ when :describe_replication_task_individual_assessments
144
+ Aws::DatabaseMigrationService::Endpoints::DescribeReplicationTaskIndividualAssessments.build(context)
145
+ when :describe_replication_tasks
146
+ Aws::DatabaseMigrationService::Endpoints::DescribeReplicationTasks.build(context)
147
+ when :describe_schemas
148
+ Aws::DatabaseMigrationService::Endpoints::DescribeSchemas.build(context)
149
+ when :describe_table_statistics
150
+ Aws::DatabaseMigrationService::Endpoints::DescribeTableStatistics.build(context)
151
+ when :import_certificate
152
+ Aws::DatabaseMigrationService::Endpoints::ImportCertificate.build(context)
153
+ when :list_tags_for_resource
154
+ Aws::DatabaseMigrationService::Endpoints::ListTagsForResource.build(context)
155
+ when :modify_endpoint
156
+ Aws::DatabaseMigrationService::Endpoints::ModifyEndpoint.build(context)
157
+ when :modify_event_subscription
158
+ Aws::DatabaseMigrationService::Endpoints::ModifyEventSubscription.build(context)
159
+ when :modify_replication_instance
160
+ Aws::DatabaseMigrationService::Endpoints::ModifyReplicationInstance.build(context)
161
+ when :modify_replication_subnet_group
162
+ Aws::DatabaseMigrationService::Endpoints::ModifyReplicationSubnetGroup.build(context)
163
+ when :modify_replication_task
164
+ Aws::DatabaseMigrationService::Endpoints::ModifyReplicationTask.build(context)
165
+ when :move_replication_task
166
+ Aws::DatabaseMigrationService::Endpoints::MoveReplicationTask.build(context)
167
+ when :reboot_replication_instance
168
+ Aws::DatabaseMigrationService::Endpoints::RebootReplicationInstance.build(context)
169
+ when :refresh_schemas
170
+ Aws::DatabaseMigrationService::Endpoints::RefreshSchemas.build(context)
171
+ when :reload_tables
172
+ Aws::DatabaseMigrationService::Endpoints::ReloadTables.build(context)
173
+ when :remove_tags_from_resource
174
+ Aws::DatabaseMigrationService::Endpoints::RemoveTagsFromResource.build(context)
175
+ when :run_fleet_advisor_lsa_analysis
176
+ Aws::DatabaseMigrationService::Endpoints::RunFleetAdvisorLsaAnalysis.build(context)
177
+ when :start_replication_task
178
+ Aws::DatabaseMigrationService::Endpoints::StartReplicationTask.build(context)
179
+ when :start_replication_task_assessment
180
+ Aws::DatabaseMigrationService::Endpoints::StartReplicationTaskAssessment.build(context)
181
+ when :start_replication_task_assessment_run
182
+ Aws::DatabaseMigrationService::Endpoints::StartReplicationTaskAssessmentRun.build(context)
183
+ when :stop_replication_task
184
+ Aws::DatabaseMigrationService::Endpoints::StopReplicationTask.build(context)
185
+ when :test_connection
186
+ Aws::DatabaseMigrationService::Endpoints::TestConnection.build(context)
187
+ when :update_subscriptions_to_event_bridge
188
+ Aws::DatabaseMigrationService::Endpoints::UpdateSubscriptionsToEventBridge.build(context)
189
+ end
190
+ end
191
+ end
192
+
193
+ def add_handlers(handlers, _config)
194
+ handlers.add(Handler, step: :build, priority: 75)
195
+ end
196
+ end
197
+ end
198
+ end
@@ -13,10 +13,14 @@ require 'aws-sigv4'
13
13
 
14
14
  require_relative 'aws-sdk-databasemigrationservice/types'
15
15
  require_relative 'aws-sdk-databasemigrationservice/client_api'
16
+ require_relative 'aws-sdk-databasemigrationservice/plugins/endpoints.rb'
16
17
  require_relative 'aws-sdk-databasemigrationservice/client'
17
18
  require_relative 'aws-sdk-databasemigrationservice/errors'
18
19
  require_relative 'aws-sdk-databasemigrationservice/waiters'
19
20
  require_relative 'aws-sdk-databasemigrationservice/resource'
21
+ require_relative 'aws-sdk-databasemigrationservice/endpoint_parameters'
22
+ require_relative 'aws-sdk-databasemigrationservice/endpoint_provider'
23
+ require_relative 'aws-sdk-databasemigrationservice/endpoints'
20
24
  require_relative 'aws-sdk-databasemigrationservice/customizations'
21
25
 
22
26
  # This module provides support for AWS Database Migration Service. This module is available in the
@@ -49,6 +53,6 @@ require_relative 'aws-sdk-databasemigrationservice/customizations'
49
53
  # @!group service
50
54
  module Aws::DatabaseMigrationService
51
55
 
52
- GEM_VERSION = '1.72.0'
56
+ GEM_VERSION = '1.73.0'
53
57
 
54
58
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: aws-sdk-databasemigrationservice
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.72.0
4
+ version: 1.73.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-04 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-databasemigrationservice/client.rb
60
60
  - lib/aws-sdk-databasemigrationservice/client_api.rb
61
61
  - lib/aws-sdk-databasemigrationservice/customizations.rb
62
+ - lib/aws-sdk-databasemigrationservice/endpoint_parameters.rb
63
+ - lib/aws-sdk-databasemigrationservice/endpoint_provider.rb
64
+ - lib/aws-sdk-databasemigrationservice/endpoints.rb
62
65
  - lib/aws-sdk-databasemigrationservice/errors.rb
66
+ - lib/aws-sdk-databasemigrationservice/plugins/endpoints.rb
63
67
  - lib/aws-sdk-databasemigrationservice/resource.rb
64
68
  - lib/aws-sdk-databasemigrationservice/types.rb
65
69
  - lib/aws-sdk-databasemigrationservice/waiters.rb