aws-sdk-docdb 1.44.0 → 1.46.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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: '099baa9c7cd75923fe4b9646dfdedc4f6bcee8abd217c85c1fb4f97f9bb2a050'
4
- data.tar.gz: c819050f4958a9463bbca621e2e886a52346b3098733ca0754c2069f7536416b
3
+ metadata.gz: fa5f22ffef27ba6637a8bb595d78da2de47c1709c1932e346c53ab42848d97a3
4
+ data.tar.gz: c4610f30900eb59aeb4dbed4cc45d951c1ef819f2f7713930cdff488e75e0df7
5
5
  SHA512:
6
- metadata.gz: 4c366c61f098089b2fa89bb629e6a0a87afcf8e1a75be83a8d4eeedb2d3f8516964c61e18e895b1299fe3377b97200f081e98309e1d7a9fcb274a1851872c679
7
- data.tar.gz: ad666189ccd30d5a3d013a6bc4de5990b98a355d7c9f9decc150628b2c3949a157c126c047c55f8fd5b2e83f36f1b41cfad210a74f45ba8e643c032249578cc7
6
+ metadata.gz: 759eb142eb7ccfec24221ecacc432f9b4a2aa0c9123e87f3eb4a381fdf3e33514989b6e1d56c375db529029845767f4f72bb93f68ff3ab70e4daa21cd700b56c
7
+ data.tar.gz: e42ea5518cc30380588a571dd1e7951e9e2df074f7b0fb121e2e068f6099e6c68b87853a2ccf5452255e97f42190b8a88bb488a28625a91c96fb176760a9a8c2
data/CHANGELOG.md CHANGED
@@ -1,6 +1,18 @@
1
1
  Unreleased Changes
2
2
  ------------------
3
3
 
4
+ 1.46.0 (2023-01-18)
5
+ ------------------
6
+
7
+ * Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
8
+
9
+ * Issue - Replace runtime endpoint resolution approach with generated ruby code.
10
+
11
+ 1.45.0 (2022-10-25)
12
+ ------------------
13
+
14
+ * Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
15
+
4
16
  1.44.0 (2022-08-22)
5
17
  ------------------
6
18
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.44.0
1
+ 1.46.0
@@ -30,7 +30,7 @@ require 'aws-sdk-core/plugins/http_checksum.rb'
30
30
  require 'aws-sdk-core/plugins/checksum_algorithm.rb'
31
31
  require 'aws-sdk-core/plugins/defaults_mode.rb'
32
32
  require 'aws-sdk-core/plugins/recursion_detection.rb'
33
- require 'aws-sdk-core/plugins/signature_v4.rb'
33
+ require 'aws-sdk-core/plugins/sign.rb'
34
34
  require 'aws-sdk-core/plugins/protocols/query.rb'
35
35
  require 'aws-sdk-docdb/plugins/cross_region_copying.rb'
36
36
 
@@ -80,9 +80,10 @@ module Aws::DocDB
80
80
  add_plugin(Aws::Plugins::ChecksumAlgorithm)
81
81
  add_plugin(Aws::Plugins::DefaultsMode)
82
82
  add_plugin(Aws::Plugins::RecursionDetection)
83
- add_plugin(Aws::Plugins::SignatureV4)
83
+ add_plugin(Aws::Plugins::Sign)
84
84
  add_plugin(Aws::Plugins::Protocols::Query)
85
85
  add_plugin(Aws::DocDB::Plugins::CrossRegionCopying)
86
+ add_plugin(Aws::DocDB::Plugins::Endpoints)
86
87
 
87
88
  # @overload initialize(options)
88
89
  # @param [Hash] options
@@ -289,6 +290,19 @@ module Aws::DocDB
289
290
  # ** Please note ** When response stubbing is enabled, no HTTP
290
291
  # requests are made, and retries are disabled.
291
292
  #
293
+ # @option options [Aws::TokenProvider] :token_provider
294
+ # A Bearer Token Provider. This can be an instance of any one of the
295
+ # following classes:
296
+ #
297
+ # * `Aws::StaticTokenProvider` - Used for configuring static, non-refreshing
298
+ # tokens.
299
+ #
300
+ # * `Aws::SSOTokenProvider` - Used for loading tokens from AWS SSO using an
301
+ # access token generated from `aws login`.
302
+ #
303
+ # When `:token_provider` is not configured directly, the `Aws::TokenProviderChain`
304
+ # will be used to search for tokens configured for your profile in shared configuration files.
305
+ #
292
306
  # @option options [Boolean] :use_dualstack_endpoint
293
307
  # When set to `true`, dualstack enabled endpoints (with `.aws` TLD)
294
308
  # will be used if available.
@@ -302,6 +316,9 @@ module Aws::DocDB
302
316
  # When `true`, request parameters are validated before
303
317
  # sending the request.
304
318
  #
319
+ # @option options [Aws::DocDB::EndpointProvider] :endpoint_provider
320
+ # The endpoint provider used to resolve endpoints. Any object that responds to `#resolve_endpoint(parameters)` where `parameters` is a Struct similar to `Aws::DocDB::EndpointParameters`
321
+ #
305
322
  # @option options [URI::HTTP,String] :http_proxy A proxy to send
306
323
  # requests through. Formatted like 'http://proxy.com:123'.
307
324
  #
@@ -5176,7 +5193,7 @@ module Aws::DocDB
5176
5193
  params: params,
5177
5194
  config: config)
5178
5195
  context[:gem_name] = 'aws-sdk-docdb'
5179
- context[:gem_version] = '1.44.0'
5196
+ context[:gem_version] = '1.46.0'
5180
5197
  Seahorse::Client::Request.new(handlers, context)
5181
5198
  end
5182
5199
 
@@ -0,0 +1,66 @@
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
+ module Aws::DocDB
11
+ # Endpoint parameters used to influence endpoints per request.
12
+ #
13
+ # @!attribute region
14
+ # The AWS region used to dispatch the request.
15
+ #
16
+ # @return [String]
17
+ #
18
+ # @!attribute use_dual_stack
19
+ # When true, use the dual-stack endpoint. If the configured endpoint does not support dual-stack, dispatching the request MAY return an error.
20
+ #
21
+ # @return [Boolean]
22
+ #
23
+ # @!attribute use_fips
24
+ # When true, send this request to the FIPS-compliant regional endpoint. If the configured endpoint does not have a FIPS compliant endpoint, dispatching the request will return an error.
25
+ #
26
+ # @return [Boolean]
27
+ #
28
+ # @!attribute endpoint
29
+ # Override the endpoint used to send this request
30
+ #
31
+ # @return [String]
32
+ #
33
+ EndpointParameters = Struct.new(
34
+ :region,
35
+ :use_dual_stack,
36
+ :use_fips,
37
+ :endpoint,
38
+ ) do
39
+ include Aws::Structure
40
+
41
+ # @api private
42
+ class << self
43
+ PARAM_MAP = {
44
+ 'Region' => :region,
45
+ 'UseDualStack' => :use_dual_stack,
46
+ 'UseFIPS' => :use_fips,
47
+ 'Endpoint' => :endpoint,
48
+ }.freeze
49
+ end
50
+
51
+ def initialize(options = {})
52
+ self[:region] = options[:region]
53
+ self[:use_dual_stack] = options[:use_dual_stack]
54
+ self[:use_dual_stack] = false if self[:use_dual_stack].nil?
55
+ if self[:use_dual_stack].nil?
56
+ raise ArgumentError, "Missing required EndpointParameter: :use_dual_stack"
57
+ end
58
+ self[:use_fips] = options[:use_fips]
59
+ self[:use_fips] = false if self[:use_fips].nil?
60
+ if self[:use_fips].nil?
61
+ raise ArgumentError, "Missing required EndpointParameter: :use_fips"
62
+ end
63
+ self[:endpoint] = options[:endpoint]
64
+ end
65
+ end
66
+ end
@@ -0,0 +1,69 @@
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
+ module Aws::DocDB
11
+ class EndpointProvider
12
+ def resolve_endpoint(parameters)
13
+ region = parameters.region
14
+ use_dual_stack = parameters.use_dual_stack
15
+ use_fips = parameters.use_fips
16
+ endpoint = parameters.endpoint
17
+ if (partition_result = Aws::Endpoints::Matchers.aws_partition(region))
18
+ if Aws::Endpoints::Matchers.set?(endpoint) && (url = Aws::Endpoints::Matchers.parse_url(endpoint))
19
+ if Aws::Endpoints::Matchers.boolean_equals?(use_fips, true)
20
+ raise ArgumentError, "Invalid Configuration: FIPS and custom endpoint are not supported"
21
+ end
22
+ if Aws::Endpoints::Matchers.boolean_equals?(use_dual_stack, true)
23
+ raise ArgumentError, "Invalid Configuration: Dualstack and custom endpoint are not supported"
24
+ end
25
+ return Aws::Endpoints::Endpoint.new(url: endpoint, headers: {}, properties: {})
26
+ end
27
+ if Aws::Endpoints::Matchers.boolean_equals?(use_fips, true) && Aws::Endpoints::Matchers.boolean_equals?(use_dual_stack, true)
28
+ if Aws::Endpoints::Matchers.boolean_equals?(true, Aws::Endpoints::Matchers.attr(partition_result, "supportsFIPS")) && Aws::Endpoints::Matchers.boolean_equals?(true, Aws::Endpoints::Matchers.attr(partition_result, "supportsDualStack"))
29
+ return Aws::Endpoints::Endpoint.new(url: "https://rds-fips.#{region}.#{partition_result['dualStackDnsSuffix']}", headers: {}, properties: {})
30
+ end
31
+ raise ArgumentError, "FIPS and DualStack are enabled, but this partition does not support one or both"
32
+ end
33
+ if Aws::Endpoints::Matchers.boolean_equals?(use_fips, true)
34
+ if Aws::Endpoints::Matchers.boolean_equals?(true, Aws::Endpoints::Matchers.attr(partition_result, "supportsFIPS"))
35
+ if Aws::Endpoints::Matchers.string_equals?(region, "rds.ca-central-1")
36
+ return Aws::Endpoints::Endpoint.new(url: "https://rds-fips.ca-central-1.amazonaws.com", headers: {}, properties: {})
37
+ end
38
+ if Aws::Endpoints::Matchers.string_equals?(region, "rds.us-east-1")
39
+ return Aws::Endpoints::Endpoint.new(url: "https://rds-fips.us-east-1.amazonaws.com", headers: {}, properties: {})
40
+ end
41
+ if Aws::Endpoints::Matchers.string_equals?(region, "rds.us-east-2")
42
+ return Aws::Endpoints::Endpoint.new(url: "https://rds-fips.us-east-2.amazonaws.com", headers: {}, properties: {})
43
+ end
44
+ if Aws::Endpoints::Matchers.string_equals?(region, "rds.us-west-1")
45
+ return Aws::Endpoints::Endpoint.new(url: "https://rds-fips.us-west-1.amazonaws.com", headers: {}, properties: {})
46
+ end
47
+ if Aws::Endpoints::Matchers.string_equals?(region, "rds.us-west-2")
48
+ return Aws::Endpoints::Endpoint.new(url: "https://rds-fips.us-west-2.amazonaws.com", headers: {}, properties: {})
49
+ end
50
+ if Aws::Endpoints::Matchers.string_equals?("aws-us-gov", Aws::Endpoints::Matchers.attr(partition_result, "name"))
51
+ return Aws::Endpoints::Endpoint.new(url: "https://rds.#{region}.#{partition_result['dnsSuffix']}", headers: {}, properties: {})
52
+ end
53
+ return Aws::Endpoints::Endpoint.new(url: "https://rds-fips.#{region}.#{partition_result['dnsSuffix']}", headers: {}, properties: {})
54
+ end
55
+ raise ArgumentError, "FIPS is enabled but this partition does not support FIPS"
56
+ end
57
+ if Aws::Endpoints::Matchers.boolean_equals?(use_dual_stack, true)
58
+ if Aws::Endpoints::Matchers.boolean_equals?(true, Aws::Endpoints::Matchers.attr(partition_result, "supportsDualStack"))
59
+ return Aws::Endpoints::Endpoint.new(url: "https://rds.#{region}.#{partition_result['dualStackDnsSuffix']}", headers: {}, properties: {})
60
+ end
61
+ raise ArgumentError, "DualStack is enabled but this partition does not support DualStack"
62
+ end
63
+ return Aws::Endpoints::Endpoint.new(url: "https://rds.#{region}.#{partition_result['dnsSuffix']}", headers: {}, properties: {})
64
+ end
65
+ raise ArgumentError, 'No endpoint could be resolved'
66
+
67
+ end
68
+ end
69
+ end