aws-sdk-bcmdataexports 1.8.0 → 1.14.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: 8903b02a20638bbae1d292d227fc85fcfa6ad86b8e2c60c8302329944daf4134
4
- data.tar.gz: 40d230b46b4d323b44044ad359cdf555ef86e22147df558934c88e9b0193b87b
3
+ metadata.gz: 0a92629d71ac9424b2fc6f2ebe206da1b41055f7234fa9d0f11ec9abb8b658cf
4
+ data.tar.gz: dc20775ca590c7294ecd1a6418f7902a4f297332e30f5a1e162f6d5af1bcd7ec
5
5
  SHA512:
6
- metadata.gz: ef83d56989c44879bab2980cfb6597cbba12cf5f381ade0ccbefae3f298d791a62174532eea5604e6f8620fe0fd25575b4d708adae90c27004f0a27dd0aa1e83
7
- data.tar.gz: b1cac8ffe35e02618572cc6f938a0771edbfa8240ca424ef35e747941a78e3dcc63824889671a9f5081453998f8d1355bbdfe605738b148cd429cb9e80493d80
6
+ metadata.gz: e4cdfa8cb35a5b0246a06daf30155c47408dd9a687c749834c79a7d934a719720720ae5a07d93db0f8623be5d866bb273906045d49c7e45a9f66e4e7674a6fb0
7
+ data.tar.gz: 110e90899947cc9290d3208c64f9c2c9da257c6556739ab9db3859c60f9cf8659199d007d4c6f878cd67ea0df4d7bc4694b1f44747ab58035f9e8585c02f0217
data/CHANGELOG.md CHANGED
@@ -1,6 +1,36 @@
1
1
  Unreleased Changes
2
2
  ------------------
3
3
 
4
+ 1.14.0 (2024-09-24)
5
+ ------------------
6
+
7
+ * Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
8
+
9
+ 1.13.0 (2024-09-23)
10
+ ------------------
11
+
12
+ * Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
13
+
14
+ 1.12.0 (2024-09-20)
15
+ ------------------
16
+
17
+ * Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
18
+
19
+ 1.11.0 (2024-09-11)
20
+ ------------------
21
+
22
+ * Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
23
+
24
+ 1.10.0 (2024-09-10)
25
+ ------------------
26
+
27
+ * Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
28
+
29
+ 1.9.0 (2024-09-03)
30
+ ------------------
31
+
32
+ * Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
33
+
4
34
  1.8.0 (2024-07-02)
5
35
  ------------------
6
36
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.8.0
1
+ 1.14.0
@@ -32,11 +32,10 @@ require 'aws-sdk-core/plugins/checksum_algorithm.rb'
32
32
  require 'aws-sdk-core/plugins/request_compression.rb'
33
33
  require 'aws-sdk-core/plugins/defaults_mode.rb'
34
34
  require 'aws-sdk-core/plugins/recursion_detection.rb'
35
+ require 'aws-sdk-core/plugins/telemetry.rb'
35
36
  require 'aws-sdk-core/plugins/sign.rb'
36
37
  require 'aws-sdk-core/plugins/protocols/json_rpc.rb'
37
38
 
38
- Aws::Plugins::GlobalConfiguration.add_identifier(:bcmdataexports)
39
-
40
39
  module Aws::BCMDataExports
41
40
  # An API client for BCMDataExports. To construct a client, you need to configure a `:region` and `:credentials`.
42
41
  #
@@ -83,6 +82,7 @@ module Aws::BCMDataExports
83
82
  add_plugin(Aws::Plugins::RequestCompression)
84
83
  add_plugin(Aws::Plugins::DefaultsMode)
85
84
  add_plugin(Aws::Plugins::RecursionDetection)
85
+ add_plugin(Aws::Plugins::Telemetry)
86
86
  add_plugin(Aws::Plugins::Sign)
87
87
  add_plugin(Aws::Plugins::Protocols::JsonRpc)
88
88
  add_plugin(Aws::BCMDataExports::Plugins::Endpoints)
@@ -128,13 +128,15 @@ module Aws::BCMDataExports
128
128
  # locations will be searched for credentials:
129
129
  #
130
130
  # * `Aws.config[:credentials]`
131
- # * The `:access_key_id`, `:secret_access_key`, and `:session_token` options.
132
- # * ENV['AWS_ACCESS_KEY_ID'], ENV['AWS_SECRET_ACCESS_KEY']
131
+ # * The `:access_key_id`, `:secret_access_key`, `:session_token`, and
132
+ # `:account_id` options.
133
+ # * ENV['AWS_ACCESS_KEY_ID'], ENV['AWS_SECRET_ACCESS_KEY'],
134
+ # ENV['AWS_SESSION_TOKEN'], and ENV['AWS_ACCOUNT_ID']
133
135
  # * `~/.aws/credentials`
134
136
  # * `~/.aws/config`
135
137
  # * EC2/ECS IMDS instance profile - When used by default, the timeouts
136
138
  # are very aggressive. Construct and pass an instance of
137
- # `Aws::InstanceProfileCredentails` or `Aws::ECSCredentials` to
139
+ # `Aws::InstanceProfileCredentials` or `Aws::ECSCredentials` to
138
140
  # enable retries and extended timeouts. Instance profile credential
139
141
  # fetching can be disabled by setting ENV['AWS_EC2_METADATA_DISABLED']
140
142
  # to true.
@@ -153,6 +155,8 @@ module Aws::BCMDataExports
153
155
  #
154
156
  # @option options [String] :access_key_id
155
157
  #
158
+ # @option options [String] :account_id
159
+ #
156
160
  # @option options [Boolean] :active_endpoint_cache (false)
157
161
  # When set to `true`, a thread polling for endpoints will be running in
158
162
  # the background every 60 secs (default). Defaults to `false`.
@@ -337,6 +341,16 @@ module Aws::BCMDataExports
337
341
  # ** Please note ** When response stubbing is enabled, no HTTP
338
342
  # requests are made, and retries are disabled.
339
343
  #
344
+ # @option options [Aws::Telemetry::TelemetryProviderBase] :telemetry_provider (Aws::Telemetry::NoOpTelemetryProvider)
345
+ # Allows you to provide a telemetry provider, which is used to
346
+ # emit telemetry data. By default, uses `NoOpTelemetryProvider` which
347
+ # will not record or emit any telemetry data. The SDK supports the
348
+ # following telemetry providers:
349
+ #
350
+ # * OpenTelemetry (OTel) - To use the OTel provider, install and require the
351
+ # `opentelemetry-sdk` gem and then, pass in an instance of a
352
+ # `Aws::Telemetry::OTelProvider` for telemetry provider.
353
+ #
340
354
  # @option options [Aws::TokenProvider] :token_provider
341
355
  # A Bearer Token Provider. This can be an instance of any one of the
342
356
  # following classes:
@@ -364,7 +378,9 @@ module Aws::BCMDataExports
364
378
  # sending the request.
365
379
  #
366
380
  # @option options [Aws::BCMDataExports::EndpointProvider] :endpoint_provider
367
- # The endpoint provider used to resolve endpoints. Any object that responds to `#resolve_endpoint(parameters)` where `parameters` is a Struct similar to `Aws::BCMDataExports::EndpointParameters`
381
+ # The endpoint provider used to resolve endpoints. Any object that responds to
382
+ # `#resolve_endpoint(parameters)` where `parameters` is a Struct similar to
383
+ # `Aws::BCMDataExports::EndpointParameters`.
368
384
  #
369
385
  # @option options [Float] :http_continue_timeout (1)
370
386
  # The number of seconds to wait for a 100-continue response before sending the
@@ -420,6 +436,12 @@ module Aws::BCMDataExports
420
436
  # @option options [String] :ssl_ca_store
421
437
  # Sets the X509::Store to verify peer certificate.
422
438
  #
439
+ # @option options [OpenSSL::X509::Certificate] :ssl_cert
440
+ # Sets a client certificate when creating http connections.
441
+ #
442
+ # @option options [OpenSSL::PKey] :ssl_key
443
+ # Sets a client key when creating http connections.
444
+ #
423
445
  # @option options [Float] :ssl_timeout
424
446
  # Sets the SSL timeout in seconds
425
447
  #
@@ -1005,14 +1027,19 @@ module Aws::BCMDataExports
1005
1027
  # @api private
1006
1028
  def build_request(operation_name, params = {})
1007
1029
  handlers = @handlers.for(operation_name)
1030
+ tracer = config.telemetry_provider.tracer_provider.tracer(
1031
+ Aws::Telemetry.module_to_tracer_name('Aws::BCMDataExports')
1032
+ )
1008
1033
  context = Seahorse::Client::RequestContext.new(
1009
1034
  operation_name: operation_name,
1010
1035
  operation: config.api.operation(operation_name),
1011
1036
  client: self,
1012
1037
  params: params,
1013
- config: config)
1038
+ config: config,
1039
+ tracer: tracer
1040
+ )
1014
1041
  context[:gem_name] = 'aws-sdk-bcmdataexports'
1015
- context[:gem_version] = '1.8.0'
1042
+ context[:gem_version] = '1.14.0'
1016
1043
  Seahorse::Client::Request.new(handlers, context)
1017
1044
  end
1018
1045
 
@@ -7,6 +7,7 @@
7
7
  #
8
8
  # WARNING ABOUT GENERATED CODE
9
9
 
10
+
10
11
  module Aws::BCMDataExports
11
12
  # @api private
12
13
  module ClientApi
@@ -14,156 +14,120 @@ module Aws::BCMDataExports
14
14
 
15
15
  class CreateExport
16
16
  def self.build(context)
17
- unless context.config.regional_endpoint
18
- endpoint = context.config.endpoint.to_s
19
- end
20
17
  Aws::BCMDataExports::EndpointParameters.new(
21
18
  region: context.config.region,
22
19
  use_fips: context.config.use_fips_endpoint,
23
- endpoint: endpoint,
20
+ endpoint: context.config.regional_endpoint ? nil : context.config.endpoint.to_s,
24
21
  )
25
22
  end
26
23
  end
27
24
 
28
25
  class DeleteExport
29
26
  def self.build(context)
30
- unless context.config.regional_endpoint
31
- endpoint = context.config.endpoint.to_s
32
- end
33
27
  Aws::BCMDataExports::EndpointParameters.new(
34
28
  region: context.config.region,
35
29
  use_fips: context.config.use_fips_endpoint,
36
- endpoint: endpoint,
30
+ endpoint: context.config.regional_endpoint ? nil : context.config.endpoint.to_s,
37
31
  )
38
32
  end
39
33
  end
40
34
 
41
35
  class GetExecution
42
36
  def self.build(context)
43
- unless context.config.regional_endpoint
44
- endpoint = context.config.endpoint.to_s
45
- end
46
37
  Aws::BCMDataExports::EndpointParameters.new(
47
38
  region: context.config.region,
48
39
  use_fips: context.config.use_fips_endpoint,
49
- endpoint: endpoint,
40
+ endpoint: context.config.regional_endpoint ? nil : context.config.endpoint.to_s,
50
41
  )
51
42
  end
52
43
  end
53
44
 
54
45
  class GetExport
55
46
  def self.build(context)
56
- unless context.config.regional_endpoint
57
- endpoint = context.config.endpoint.to_s
58
- end
59
47
  Aws::BCMDataExports::EndpointParameters.new(
60
48
  region: context.config.region,
61
49
  use_fips: context.config.use_fips_endpoint,
62
- endpoint: endpoint,
50
+ endpoint: context.config.regional_endpoint ? nil : context.config.endpoint.to_s,
63
51
  )
64
52
  end
65
53
  end
66
54
 
67
55
  class GetTable
68
56
  def self.build(context)
69
- unless context.config.regional_endpoint
70
- endpoint = context.config.endpoint.to_s
71
- end
72
57
  Aws::BCMDataExports::EndpointParameters.new(
73
58
  region: context.config.region,
74
59
  use_fips: context.config.use_fips_endpoint,
75
- endpoint: endpoint,
60
+ endpoint: context.config.regional_endpoint ? nil : context.config.endpoint.to_s,
76
61
  )
77
62
  end
78
63
  end
79
64
 
80
65
  class ListExecutions
81
66
  def self.build(context)
82
- unless context.config.regional_endpoint
83
- endpoint = context.config.endpoint.to_s
84
- end
85
67
  Aws::BCMDataExports::EndpointParameters.new(
86
68
  region: context.config.region,
87
69
  use_fips: context.config.use_fips_endpoint,
88
- endpoint: endpoint,
70
+ endpoint: context.config.regional_endpoint ? nil : context.config.endpoint.to_s,
89
71
  )
90
72
  end
91
73
  end
92
74
 
93
75
  class ListExports
94
76
  def self.build(context)
95
- unless context.config.regional_endpoint
96
- endpoint = context.config.endpoint.to_s
97
- end
98
77
  Aws::BCMDataExports::EndpointParameters.new(
99
78
  region: context.config.region,
100
79
  use_fips: context.config.use_fips_endpoint,
101
- endpoint: endpoint,
80
+ endpoint: context.config.regional_endpoint ? nil : context.config.endpoint.to_s,
102
81
  )
103
82
  end
104
83
  end
105
84
 
106
85
  class ListTables
107
86
  def self.build(context)
108
- unless context.config.regional_endpoint
109
- endpoint = context.config.endpoint.to_s
110
- end
111
87
  Aws::BCMDataExports::EndpointParameters.new(
112
88
  region: context.config.region,
113
89
  use_fips: context.config.use_fips_endpoint,
114
- endpoint: endpoint,
90
+ endpoint: context.config.regional_endpoint ? nil : context.config.endpoint.to_s,
115
91
  )
116
92
  end
117
93
  end
118
94
 
119
95
  class ListTagsForResource
120
96
  def self.build(context)
121
- unless context.config.regional_endpoint
122
- endpoint = context.config.endpoint.to_s
123
- end
124
97
  Aws::BCMDataExports::EndpointParameters.new(
125
98
  region: context.config.region,
126
99
  use_fips: context.config.use_fips_endpoint,
127
- endpoint: endpoint,
100
+ endpoint: context.config.regional_endpoint ? nil : context.config.endpoint.to_s,
128
101
  )
129
102
  end
130
103
  end
131
104
 
132
105
  class TagResource
133
106
  def self.build(context)
134
- unless context.config.regional_endpoint
135
- endpoint = context.config.endpoint.to_s
136
- end
137
107
  Aws::BCMDataExports::EndpointParameters.new(
138
108
  region: context.config.region,
139
109
  use_fips: context.config.use_fips_endpoint,
140
- endpoint: endpoint,
110
+ endpoint: context.config.regional_endpoint ? nil : context.config.endpoint.to_s,
141
111
  )
142
112
  end
143
113
  end
144
114
 
145
115
  class UntagResource
146
116
  def self.build(context)
147
- unless context.config.regional_endpoint
148
- endpoint = context.config.endpoint.to_s
149
- end
150
117
  Aws::BCMDataExports::EndpointParameters.new(
151
118
  region: context.config.region,
152
119
  use_fips: context.config.use_fips_endpoint,
153
- endpoint: endpoint,
120
+ endpoint: context.config.regional_endpoint ? nil : context.config.endpoint.to_s,
154
121
  )
155
122
  end
156
123
  end
157
124
 
158
125
  class UpdateExport
159
126
  def self.build(context)
160
- unless context.config.regional_endpoint
161
- endpoint = context.config.endpoint.to_s
162
- end
163
127
  Aws::BCMDataExports::EndpointParameters.new(
164
128
  region: context.config.region,
165
129
  use_fips: context.config.use_fips_endpoint,
166
- endpoint: endpoint,
130
+ endpoint: context.config.regional_endpoint ? nil : context.config.endpoint.to_s,
167
131
  )
168
132
  end
169
133
  end
@@ -15,11 +15,11 @@ module Aws::BCMDataExports
15
15
  :endpoint_provider,
16
16
  doc_type: 'Aws::BCMDataExports::EndpointProvider',
17
17
  rbs_type: 'untyped',
18
- docstring: 'The endpoint provider used to resolve endpoints. Any '\
19
- 'object that responds to `#resolve_endpoint(parameters)` '\
20
- 'where `parameters` is a Struct similar to '\
21
- '`Aws::BCMDataExports::EndpointParameters`'
22
- ) do |cfg|
18
+ docstring: <<~DOCS) do |_cfg|
19
+ The endpoint provider used to resolve endpoints. Any object that responds to
20
+ `#resolve_endpoint(parameters)` where `parameters` is a Struct similar to
21
+ `Aws::BCMDataExports::EndpointParameters`.
22
+ DOCS
23
23
  Aws::BCMDataExports::EndpointProvider.new
24
24
  end
25
25
 
@@ -40,11 +40,23 @@ module Aws::BCMDataExports
40
40
  context[:auth_scheme] =
41
41
  Aws::Endpoints.resolve_auth_scheme(context, endpoint)
42
42
 
43
- @handler.call(context)
43
+ with_metrics(context) { @handler.call(context) }
44
44
  end
45
45
 
46
46
  private
47
47
 
48
+ def with_metrics(context, &block)
49
+ metrics = []
50
+ metrics << 'ENDPOINT_OVERRIDE' unless context.config.regional_endpoint
51
+ if context[:auth_scheme] && context[:auth_scheme]['name'] == 'sigv4a'
52
+ metrics << 'SIGV4A_SIGNING'
53
+ end
54
+ if context.config.credentials&.credentials&.account_id
55
+ metrics << 'RESOLVED_ACCOUNT_ID'
56
+ end
57
+ Aws::Plugins::UserAgent.metric(*metrics, &block)
58
+ end
59
+
48
60
  def apply_endpoint_headers(context, headers)
49
61
  headers.each do |key, values|
50
62
  value = values
@@ -917,3 +917,4 @@ module Aws::BCMDataExports
917
917
 
918
918
  end
919
919
  end
920
+
@@ -11,16 +11,7 @@
11
11
  require 'aws-sdk-core'
12
12
  require 'aws-sigv4'
13
13
 
14
- require_relative 'aws-sdk-bcmdataexports/types'
15
- require_relative 'aws-sdk-bcmdataexports/client_api'
16
- require_relative 'aws-sdk-bcmdataexports/plugins/endpoints.rb'
17
- require_relative 'aws-sdk-bcmdataexports/client'
18
- require_relative 'aws-sdk-bcmdataexports/errors'
19
- require_relative 'aws-sdk-bcmdataexports/resource'
20
- require_relative 'aws-sdk-bcmdataexports/endpoint_parameters'
21
- require_relative 'aws-sdk-bcmdataexports/endpoint_provider'
22
- require_relative 'aws-sdk-bcmdataexports/endpoints'
23
- require_relative 'aws-sdk-bcmdataexports/customizations'
14
+ Aws::Plugins::GlobalConfiguration.add_identifier(:bcmdataexports)
24
15
 
25
16
  # This module provides support for AWS Billing and Cost Management Data Exports. This module is available in the
26
17
  # `aws-sdk-bcmdataexports` gem.
@@ -51,7 +42,20 @@ require_relative 'aws-sdk-bcmdataexports/customizations'
51
42
  #
52
43
  # @!group service
53
44
  module Aws::BCMDataExports
45
+ autoload :Types, 'aws-sdk-bcmdataexports/types'
46
+ autoload :ClientApi, 'aws-sdk-bcmdataexports/client_api'
47
+ module Plugins
48
+ autoload :Endpoints, 'aws-sdk-bcmdataexports/plugins/endpoints.rb'
49
+ end
50
+ autoload :Client, 'aws-sdk-bcmdataexports/client'
51
+ autoload :Errors, 'aws-sdk-bcmdataexports/errors'
52
+ autoload :Resource, 'aws-sdk-bcmdataexports/resource'
53
+ autoload :EndpointParameters, 'aws-sdk-bcmdataexports/endpoint_parameters'
54
+ autoload :EndpointProvider, 'aws-sdk-bcmdataexports/endpoint_provider'
55
+ autoload :Endpoints, 'aws-sdk-bcmdataexports/endpoints'
54
56
 
55
- GEM_VERSION = '1.8.0'
57
+ GEM_VERSION = '1.14.0'
56
58
 
57
59
  end
60
+
61
+ require_relative 'aws-sdk-bcmdataexports/customizations'
data/sig/client.rbs CHANGED
@@ -15,6 +15,7 @@ module Aws
15
15
  ?credentials: untyped,
16
16
  ?region: String,
17
17
  ?access_key_id: String,
18
+ ?account_id: String,
18
19
  ?active_endpoint_cache: bool,
19
20
  ?adaptive_retry_wait_to_fill: bool,
20
21
  ?client_side_monitoring: bool,
@@ -51,6 +52,7 @@ module Aws
51
52
  ?sigv4a_signing_region_set: Array[String],
52
53
  ?simple_json: bool,
53
54
  ?stub_responses: untyped,
55
+ ?telemetry_provider: Aws::Telemetry::TelemetryProviderBase,
54
56
  ?token_provider: untyped,
55
57
  ?use_dualstack_endpoint: bool,
56
58
  ?use_fips_endpoint: bool,
data/sig/resource.rbs CHANGED
@@ -15,6 +15,7 @@ module Aws
15
15
  ?credentials: untyped,
16
16
  ?region: String,
17
17
  ?access_key_id: String,
18
+ ?account_id: String,
18
19
  ?active_endpoint_cache: bool,
19
20
  ?adaptive_retry_wait_to_fill: bool,
20
21
  ?client_side_monitoring: bool,
@@ -51,6 +52,7 @@ module Aws
51
52
  ?sigv4a_signing_region_set: Array[String],
52
53
  ?simple_json: bool,
53
54
  ?stub_responses: untyped,
55
+ ?telemetry_provider: Aws::Telemetry::TelemetryProviderBase,
54
56
  ?token_provider: untyped,
55
57
  ?use_dualstack_endpoint: bool,
56
58
  ?use_fips_endpoint: bool,
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: aws-sdk-bcmdataexports
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.8.0
4
+ version: 1.14.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: 2024-07-02 00:00:00.000000000 Z
11
+ date: 2024-09-24 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.201.0
22
+ version: 3.207.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.201.0
32
+ version: 3.207.0
33
33
  - !ruby/object:Gem::Dependency
34
34
  name: aws-sigv4
35
35
  requirement: !ruby/object:Gem::Requirement