aws-sdk-route53 1.65.0 → 1.66.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,208 @@
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::Route53
12
+ module Plugins
13
+ class Endpoints < Seahorse::Client::Plugin
14
+ option(
15
+ :endpoint_provider,
16
+ doc_type: 'Aws::Route53::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::Route53::EndpointParameters`'
21
+ ) do |cfg|
22
+ Aws::Route53::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 :activate_key_signing_key
60
+ Aws::Route53::Endpoints::ActivateKeySigningKey.build(context)
61
+ when :associate_vpc_with_hosted_zone
62
+ Aws::Route53::Endpoints::AssociateVPCWithHostedZone.build(context)
63
+ when :change_cidr_collection
64
+ Aws::Route53::Endpoints::ChangeCidrCollection.build(context)
65
+ when :change_resource_record_sets
66
+ Aws::Route53::Endpoints::ChangeResourceRecordSets.build(context)
67
+ when :change_tags_for_resource
68
+ Aws::Route53::Endpoints::ChangeTagsForResource.build(context)
69
+ when :create_cidr_collection
70
+ Aws::Route53::Endpoints::CreateCidrCollection.build(context)
71
+ when :create_health_check
72
+ Aws::Route53::Endpoints::CreateHealthCheck.build(context)
73
+ when :create_hosted_zone
74
+ Aws::Route53::Endpoints::CreateHostedZone.build(context)
75
+ when :create_key_signing_key
76
+ Aws::Route53::Endpoints::CreateKeySigningKey.build(context)
77
+ when :create_query_logging_config
78
+ Aws::Route53::Endpoints::CreateQueryLoggingConfig.build(context)
79
+ when :create_reusable_delegation_set
80
+ Aws::Route53::Endpoints::CreateReusableDelegationSet.build(context)
81
+ when :create_traffic_policy
82
+ Aws::Route53::Endpoints::CreateTrafficPolicy.build(context)
83
+ when :create_traffic_policy_instance
84
+ Aws::Route53::Endpoints::CreateTrafficPolicyInstance.build(context)
85
+ when :create_traffic_policy_version
86
+ Aws::Route53::Endpoints::CreateTrafficPolicyVersion.build(context)
87
+ when :create_vpc_association_authorization
88
+ Aws::Route53::Endpoints::CreateVPCAssociationAuthorization.build(context)
89
+ when :deactivate_key_signing_key
90
+ Aws::Route53::Endpoints::DeactivateKeySigningKey.build(context)
91
+ when :delete_cidr_collection
92
+ Aws::Route53::Endpoints::DeleteCidrCollection.build(context)
93
+ when :delete_health_check
94
+ Aws::Route53::Endpoints::DeleteHealthCheck.build(context)
95
+ when :delete_hosted_zone
96
+ Aws::Route53::Endpoints::DeleteHostedZone.build(context)
97
+ when :delete_key_signing_key
98
+ Aws::Route53::Endpoints::DeleteKeySigningKey.build(context)
99
+ when :delete_query_logging_config
100
+ Aws::Route53::Endpoints::DeleteQueryLoggingConfig.build(context)
101
+ when :delete_reusable_delegation_set
102
+ Aws::Route53::Endpoints::DeleteReusableDelegationSet.build(context)
103
+ when :delete_traffic_policy
104
+ Aws::Route53::Endpoints::DeleteTrafficPolicy.build(context)
105
+ when :delete_traffic_policy_instance
106
+ Aws::Route53::Endpoints::DeleteTrafficPolicyInstance.build(context)
107
+ when :delete_vpc_association_authorization
108
+ Aws::Route53::Endpoints::DeleteVPCAssociationAuthorization.build(context)
109
+ when :disable_hosted_zone_dnssec
110
+ Aws::Route53::Endpoints::DisableHostedZoneDNSSEC.build(context)
111
+ when :disassociate_vpc_from_hosted_zone
112
+ Aws::Route53::Endpoints::DisassociateVPCFromHostedZone.build(context)
113
+ when :enable_hosted_zone_dnssec
114
+ Aws::Route53::Endpoints::EnableHostedZoneDNSSEC.build(context)
115
+ when :get_account_limit
116
+ Aws::Route53::Endpoints::GetAccountLimit.build(context)
117
+ when :get_change
118
+ Aws::Route53::Endpoints::GetChange.build(context)
119
+ when :get_checker_ip_ranges
120
+ Aws::Route53::Endpoints::GetCheckerIpRanges.build(context)
121
+ when :get_dnssec
122
+ Aws::Route53::Endpoints::GetDNSSEC.build(context)
123
+ when :get_geo_location
124
+ Aws::Route53::Endpoints::GetGeoLocation.build(context)
125
+ when :get_health_check
126
+ Aws::Route53::Endpoints::GetHealthCheck.build(context)
127
+ when :get_health_check_count
128
+ Aws::Route53::Endpoints::GetHealthCheckCount.build(context)
129
+ when :get_health_check_last_failure_reason
130
+ Aws::Route53::Endpoints::GetHealthCheckLastFailureReason.build(context)
131
+ when :get_health_check_status
132
+ Aws::Route53::Endpoints::GetHealthCheckStatus.build(context)
133
+ when :get_hosted_zone
134
+ Aws::Route53::Endpoints::GetHostedZone.build(context)
135
+ when :get_hosted_zone_count
136
+ Aws::Route53::Endpoints::GetHostedZoneCount.build(context)
137
+ when :get_hosted_zone_limit
138
+ Aws::Route53::Endpoints::GetHostedZoneLimit.build(context)
139
+ when :get_query_logging_config
140
+ Aws::Route53::Endpoints::GetQueryLoggingConfig.build(context)
141
+ when :get_reusable_delegation_set
142
+ Aws::Route53::Endpoints::GetReusableDelegationSet.build(context)
143
+ when :get_reusable_delegation_set_limit
144
+ Aws::Route53::Endpoints::GetReusableDelegationSetLimit.build(context)
145
+ when :get_traffic_policy
146
+ Aws::Route53::Endpoints::GetTrafficPolicy.build(context)
147
+ when :get_traffic_policy_instance
148
+ Aws::Route53::Endpoints::GetTrafficPolicyInstance.build(context)
149
+ when :get_traffic_policy_instance_count
150
+ Aws::Route53::Endpoints::GetTrafficPolicyInstanceCount.build(context)
151
+ when :list_cidr_blocks
152
+ Aws::Route53::Endpoints::ListCidrBlocks.build(context)
153
+ when :list_cidr_collections
154
+ Aws::Route53::Endpoints::ListCidrCollections.build(context)
155
+ when :list_cidr_locations
156
+ Aws::Route53::Endpoints::ListCidrLocations.build(context)
157
+ when :list_geo_locations
158
+ Aws::Route53::Endpoints::ListGeoLocations.build(context)
159
+ when :list_health_checks
160
+ Aws::Route53::Endpoints::ListHealthChecks.build(context)
161
+ when :list_hosted_zones
162
+ Aws::Route53::Endpoints::ListHostedZones.build(context)
163
+ when :list_hosted_zones_by_name
164
+ Aws::Route53::Endpoints::ListHostedZonesByName.build(context)
165
+ when :list_hosted_zones_by_vpc
166
+ Aws::Route53::Endpoints::ListHostedZonesByVPC.build(context)
167
+ when :list_query_logging_configs
168
+ Aws::Route53::Endpoints::ListQueryLoggingConfigs.build(context)
169
+ when :list_resource_record_sets
170
+ Aws::Route53::Endpoints::ListResourceRecordSets.build(context)
171
+ when :list_reusable_delegation_sets
172
+ Aws::Route53::Endpoints::ListReusableDelegationSets.build(context)
173
+ when :list_tags_for_resource
174
+ Aws::Route53::Endpoints::ListTagsForResource.build(context)
175
+ when :list_tags_for_resources
176
+ Aws::Route53::Endpoints::ListTagsForResources.build(context)
177
+ when :list_traffic_policies
178
+ Aws::Route53::Endpoints::ListTrafficPolicies.build(context)
179
+ when :list_traffic_policy_instances
180
+ Aws::Route53::Endpoints::ListTrafficPolicyInstances.build(context)
181
+ when :list_traffic_policy_instances_by_hosted_zone
182
+ Aws::Route53::Endpoints::ListTrafficPolicyInstancesByHostedZone.build(context)
183
+ when :list_traffic_policy_instances_by_policy
184
+ Aws::Route53::Endpoints::ListTrafficPolicyInstancesByPolicy.build(context)
185
+ when :list_traffic_policy_versions
186
+ Aws::Route53::Endpoints::ListTrafficPolicyVersions.build(context)
187
+ when :list_vpc_association_authorizations
188
+ Aws::Route53::Endpoints::ListVPCAssociationAuthorizations.build(context)
189
+ when :test_dns_answer
190
+ Aws::Route53::Endpoints::TestDNSAnswer.build(context)
191
+ when :update_health_check
192
+ Aws::Route53::Endpoints::UpdateHealthCheck.build(context)
193
+ when :update_hosted_zone_comment
194
+ Aws::Route53::Endpoints::UpdateHostedZoneComment.build(context)
195
+ when :update_traffic_policy_comment
196
+ Aws::Route53::Endpoints::UpdateTrafficPolicyComment.build(context)
197
+ when :update_traffic_policy_instance
198
+ Aws::Route53::Endpoints::UpdateTrafficPolicyInstance.build(context)
199
+ end
200
+ end
201
+ end
202
+
203
+ def add_handlers(handlers, _config)
204
+ handlers.add(Handler, step: :build, priority: 75)
205
+ end
206
+ end
207
+ end
208
+ end
@@ -13,10 +13,14 @@ require 'aws-sigv4'
13
13
 
14
14
  require_relative 'aws-sdk-route53/types'
15
15
  require_relative 'aws-sdk-route53/client_api'
16
+ require_relative 'aws-sdk-route53/plugins/endpoints.rb'
16
17
  require_relative 'aws-sdk-route53/client'
17
18
  require_relative 'aws-sdk-route53/errors'
18
19
  require_relative 'aws-sdk-route53/waiters'
19
20
  require_relative 'aws-sdk-route53/resource'
21
+ require_relative 'aws-sdk-route53/endpoint_parameters'
22
+ require_relative 'aws-sdk-route53/endpoint_provider'
23
+ require_relative 'aws-sdk-route53/endpoints'
20
24
  require_relative 'aws-sdk-route53/customizations'
21
25
 
22
26
  # This module provides support for Amazon Route 53. This module is available in the
@@ -49,6 +53,6 @@ require_relative 'aws-sdk-route53/customizations'
49
53
  # @!group service
50
54
  module Aws::Route53
51
55
 
52
- GEM_VERSION = '1.65.0'
56
+ GEM_VERSION = '1.66.0'
53
57
 
54
58
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: aws-sdk-route53
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.65.0
4
+ version: 1.66.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-08 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-route53/client.rb
60
60
  - lib/aws-sdk-route53/client_api.rb
61
61
  - lib/aws-sdk-route53/customizations.rb
62
+ - lib/aws-sdk-route53/endpoint_parameters.rb
63
+ - lib/aws-sdk-route53/endpoint_provider.rb
64
+ - lib/aws-sdk-route53/endpoints.rb
62
65
  - lib/aws-sdk-route53/errors.rb
66
+ - lib/aws-sdk-route53/plugins/endpoints.rb
63
67
  - lib/aws-sdk-route53/plugins/id_fix.rb
64
68
  - lib/aws-sdk-route53/resource.rb
65
69
  - lib/aws-sdk-route53/types.rb