aws-sdk-applicationcostprofiler 1.28.0 → 1.57.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: 22d32efeba09ed169ee21305ad4c12e20abe39b0f6fce9eaba45a7a61a6aff5e
4
- data.tar.gz: d1144908bcd2cfd537bb14f2a5d3ded51be17346e18944cb11c02fd3f5eb7206
3
+ metadata.gz: c80e6c8b87c2ded85054718e2c10bf562dfe665e3208f3a90192b1ccb79b19dc
4
+ data.tar.gz: a03d98e04c356d1ab2a142e3824f264cdde44777394e6c91e7d5b2ac384079f4
5
5
  SHA512:
6
- metadata.gz: e1a3d99145503101a8547d0ee1aa0422e3a218e8e961cd2fd4743c860f54e9790be94e89005092b13a5db061fb360059d58ebb4462f5bf2540b7d37dd92a7c92
7
- data.tar.gz: cada92ed59687664e27aec8b62d31415da1129b295fb7c372e37c0340427cd93699f9800287c4f3c56f4796e19c563a2e9e24018a7adb97d7c009bfc70b83d89
6
+ metadata.gz: 5ba1f0357e3f61ce92d00c0ea2d0b3384b23b760beb46e5541bccd0a1f8ccb2987de21aff1ea6dddf43c295a1d6539cea64fd3807d8c747362de1fae08fc12fb
7
+ data.tar.gz: 1158452fdf2063c760bcd158b295b57b64855f12e707520fbc39092061a9c5b076b93cfdf429e9e75824f47df13629ef183cdb097e5540c4a03557461368f178
data/CHANGELOG.md CHANGED
@@ -1,6 +1,151 @@
1
1
  Unreleased Changes
2
2
  ------------------
3
3
 
4
+ 1.57.0 (2026-07-09)
5
+ ------------------
6
+
7
+ * Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
8
+
9
+ 1.56.0 (2026-05-26)
10
+ ------------------
11
+
12
+ * Feature - Adding new BDD representation of endpoint ruleset
13
+
14
+ 1.55.0 (2026-05-21)
15
+ ------------------
16
+
17
+ * Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
18
+
19
+ 1.54.0 (2026-05-13)
20
+ ------------------
21
+
22
+ * Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
23
+
24
+ 1.53.0 (2026-03-18)
25
+ ------------------
26
+
27
+ * Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
28
+
29
+ 1.52.0 (2026-01-16)
30
+ ------------------
31
+
32
+ * Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
33
+
34
+ 1.51.0 (2026-01-08)
35
+ ------------------
36
+
37
+ * Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
38
+
39
+ 1.50.0 (2026-01-05)
40
+ ------------------
41
+
42
+ * Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
43
+
44
+ 1.49.0 (2025-11-21)
45
+ ------------------
46
+
47
+ * Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
48
+
49
+ 1.48.0 (2025-10-30)
50
+ ------------------
51
+
52
+ * Feature - Update endpoint ruleset parameters casing
53
+
54
+ 1.47.0 (2025-10-21)
55
+ ------------------
56
+
57
+ * Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
58
+
59
+ 1.46.0 (2025-08-28)
60
+ ------------------
61
+
62
+ * Feature - Remove incorrect endpoint tests
63
+
64
+ 1.45.0 (2025-08-26)
65
+ ------------------
66
+
67
+ * Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
68
+
69
+ 1.44.0 (2025-08-04)
70
+ ------------------
71
+
72
+ * Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
73
+
74
+ 1.43.0 (2025-07-31)
75
+ ------------------
76
+
77
+ * Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
78
+
79
+ 1.42.0 (2025-07-21)
80
+ ------------------
81
+
82
+ * Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
83
+
84
+ 1.41.0 (2025-06-02)
85
+ ------------------
86
+
87
+ * Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
88
+
89
+ 1.40.0 (2025-05-12)
90
+ ------------------
91
+
92
+ * Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
93
+
94
+ 1.39.0 (2025-05-01)
95
+ ------------------
96
+
97
+ * Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
98
+
99
+ 1.38.0 (2025-02-18)
100
+ ------------------
101
+
102
+ * Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
103
+
104
+ 1.37.0 (2025-02-06)
105
+ ------------------
106
+
107
+ * Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
108
+
109
+ 1.36.0 (2025-01-15)
110
+ ------------------
111
+
112
+ * Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
113
+
114
+ 1.35.0 (2024-10-18)
115
+ ------------------
116
+
117
+ * Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
118
+
119
+ 1.34.0 (2024-09-24)
120
+ ------------------
121
+
122
+ * Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
123
+
124
+ 1.33.0 (2024-09-23)
125
+ ------------------
126
+
127
+ * Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
128
+
129
+ 1.32.0 (2024-09-20)
130
+ ------------------
131
+
132
+ * Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
133
+
134
+ 1.31.0 (2024-09-11)
135
+ ------------------
136
+
137
+ * Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
138
+
139
+ 1.30.0 (2024-09-10)
140
+ ------------------
141
+
142
+ * Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
143
+
144
+ 1.29.0 (2024-09-03)
145
+ ------------------
146
+
147
+ * Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
148
+
4
149
  1.28.0 (2024-07-02)
5
150
  ------------------
6
151
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.28.0
1
+ 1.57.0
@@ -7,35 +7,34 @@
7
7
  #
8
8
  # WARNING ABOUT GENERATED CODE
9
9
 
10
- require 'seahorse/client/plugins/content_length.rb'
11
- require 'aws-sdk-core/plugins/credentials_configuration.rb'
12
- require 'aws-sdk-core/plugins/logging.rb'
13
- require 'aws-sdk-core/plugins/param_converter.rb'
14
- require 'aws-sdk-core/plugins/param_validator.rb'
15
- require 'aws-sdk-core/plugins/user_agent.rb'
16
- require 'aws-sdk-core/plugins/helpful_socket_errors.rb'
17
- require 'aws-sdk-core/plugins/retry_errors.rb'
18
- require 'aws-sdk-core/plugins/global_configuration.rb'
19
- require 'aws-sdk-core/plugins/regional_endpoint.rb'
20
- require 'aws-sdk-core/plugins/endpoint_discovery.rb'
21
- require 'aws-sdk-core/plugins/endpoint_pattern.rb'
22
- require 'aws-sdk-core/plugins/response_paging.rb'
23
- require 'aws-sdk-core/plugins/stub_responses.rb'
24
- require 'aws-sdk-core/plugins/idempotency_token.rb'
25
- require 'aws-sdk-core/plugins/invocation_id.rb'
26
- require 'aws-sdk-core/plugins/jsonvalue_converter.rb'
27
- require 'aws-sdk-core/plugins/client_metrics_plugin.rb'
28
- require 'aws-sdk-core/plugins/client_metrics_send_plugin.rb'
29
- require 'aws-sdk-core/plugins/transfer_encoding.rb'
30
- require 'aws-sdk-core/plugins/http_checksum.rb'
31
- require 'aws-sdk-core/plugins/checksum_algorithm.rb'
32
- require 'aws-sdk-core/plugins/request_compression.rb'
33
- require 'aws-sdk-core/plugins/defaults_mode.rb'
34
- require 'aws-sdk-core/plugins/recursion_detection.rb'
35
- require 'aws-sdk-core/plugins/sign.rb'
36
- require 'aws-sdk-core/plugins/protocols/rest_json.rb'
37
-
38
- Aws::Plugins::GlobalConfiguration.add_identifier(:applicationcostprofiler)
10
+ require 'seahorse/client/plugins/content_length'
11
+ require 'aws-sdk-core/plugins/credentials_configuration'
12
+ require 'aws-sdk-core/plugins/logging'
13
+ require 'aws-sdk-core/plugins/param_converter'
14
+ require 'aws-sdk-core/plugins/param_validator'
15
+ require 'aws-sdk-core/plugins/user_agent'
16
+ require 'aws-sdk-core/plugins/helpful_socket_errors'
17
+ require 'aws-sdk-core/plugins/retry_errors'
18
+ require 'aws-sdk-core/plugins/global_configuration'
19
+ require 'aws-sdk-core/plugins/regional_endpoint'
20
+ require 'aws-sdk-core/plugins/endpoint_discovery'
21
+ require 'aws-sdk-core/plugins/endpoint_pattern'
22
+ require 'aws-sdk-core/plugins/response_paging'
23
+ require 'aws-sdk-core/plugins/stub_responses'
24
+ require 'aws-sdk-core/plugins/idempotency_token'
25
+ require 'aws-sdk-core/plugins/invocation_id'
26
+ require 'aws-sdk-core/plugins/jsonvalue_converter'
27
+ require 'aws-sdk-core/plugins/client_metrics_plugin'
28
+ require 'aws-sdk-core/plugins/client_metrics_send_plugin'
29
+ require 'aws-sdk-core/plugins/transfer_encoding'
30
+ require 'aws-sdk-core/plugins/http_checksum'
31
+ require 'aws-sdk-core/plugins/checksum_algorithm'
32
+ require 'aws-sdk-core/plugins/request_compression'
33
+ require 'aws-sdk-core/plugins/defaults_mode'
34
+ require 'aws-sdk-core/plugins/recursion_detection'
35
+ require 'aws-sdk-core/plugins/telemetry'
36
+ require 'aws-sdk-core/plugins/sign'
37
+ require 'aws-sdk-core/plugins/protocols/rest_json'
39
38
 
40
39
  module Aws::ApplicationCostProfiler
41
40
  # An API client for ApplicationCostProfiler. To construct a client, you need to configure a `:region` and `:credentials`.
@@ -83,6 +82,7 @@ module Aws::ApplicationCostProfiler
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::RestJson)
88
88
  add_plugin(Aws::ApplicationCostProfiler::Plugins::Endpoints)
@@ -95,8 +95,8 @@ module Aws::ApplicationCostProfiler
95
95
  # class name or an instance of a plugin class.
96
96
  #
97
97
  # @option options [required, Aws::CredentialProvider] :credentials
98
- # Your AWS credentials. This can be an instance of any one of the
99
- # following classes:
98
+ # Your AWS credentials used for authentication. This can be any class that includes and implements
99
+ # `Aws::CredentialProvider`, or instance of any one of the following classes:
100
100
  #
101
101
  # * `Aws::Credentials` - Used for configuring static, non-refreshing
102
102
  # credentials.
@@ -124,20 +124,24 @@ module Aws::ApplicationCostProfiler
124
124
  # * `Aws::CognitoIdentityCredentials` - Used for loading credentials
125
125
  # from the Cognito Identity service.
126
126
  #
127
- # When `:credentials` are not configured directly, the following
128
- # locations will be searched for credentials:
127
+ # When `:credentials` are not configured directly, the following locations will be searched for credentials:
129
128
  #
130
129
  # * `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']
130
+ #
131
+ # * The `:access_key_id`, `:secret_access_key`, `:session_token`, and
132
+ # `:account_id` options.
133
+ #
134
+ # * `ENV['AWS_ACCESS_KEY_ID']`, `ENV['AWS_SECRET_ACCESS_KEY']`,
135
+ # `ENV['AWS_SESSION_TOKEN']`, and `ENV['AWS_ACCOUNT_ID']`.
136
+ #
133
137
  # * `~/.aws/credentials`
138
+ #
134
139
  # * `~/.aws/config`
135
- # * EC2/ECS IMDS instance profile - When used by default, the timeouts
136
- # are very aggressive. Construct and pass an instance of
137
- # `Aws::InstanceProfileCredentails` or `Aws::ECSCredentials` to
138
- # enable retries and extended timeouts. Instance profile credential
139
- # fetching can be disabled by setting ENV['AWS_EC2_METADATA_DISABLED']
140
- # to true.
140
+ #
141
+ # * EC2/ECS IMDS instance profile - When used by default, the timeouts are very aggressive.
142
+ # Construct and pass an instance of `Aws::InstanceProfileCredentials` or `Aws::ECSCredentials` to
143
+ # enable retries and extended timeouts. Instance profile credential fetching can be disabled by
144
+ # setting `ENV['AWS_EC2_METADATA_DISABLED']` to `true`.
141
145
  #
142
146
  # @option options [required, String] :region
143
147
  # The AWS region to connect to. The configured `:region` is
@@ -153,6 +157,8 @@ module Aws::ApplicationCostProfiler
153
157
  #
154
158
  # @option options [String] :access_key_id
155
159
  #
160
+ # @option options [String] :account_id
161
+ #
156
162
  # @option options [Boolean] :active_endpoint_cache (false)
157
163
  # When set to `true`, a thread polling for endpoints will be running in
158
164
  # the background every 60 secs (default). Defaults to `false`.
@@ -163,6 +169,11 @@ module Aws::ApplicationCostProfiler
163
169
  # When false, the request will raise a `RetryCapacityNotAvailableError` and will
164
170
  # not retry instead of sleeping.
165
171
  #
172
+ # @option options [Array<String>] :auth_scheme_preference
173
+ # A list of preferred authentication schemes to use when making a request. Supported values are:
174
+ # `sigv4`, `sigv4a`, `httpBearerAuth`, and `noAuth`. When set using `ENV['AWS_AUTH_SCHEME_PREFERENCE']` or in
175
+ # shared config as `auth_scheme_preference`, the value should be a comma-separated list.
176
+ #
166
177
  # @option options [Boolean] :client_side_monitoring (false)
167
178
  # When `true`, client-side metrics will be collected for all API requests from
168
179
  # this client.
@@ -188,7 +199,7 @@ module Aws::ApplicationCostProfiler
188
199
  # the required types.
189
200
  #
190
201
  # @option options [Boolean] :correct_clock_skew (true)
191
- # Used only in `standard` and adaptive retry modes. Specifies whether to apply
202
+ # Used only in `standard` and `adaptive` retry modes. Specifies whether to apply
192
203
  # a clock skew correction and retry requests with skewed client clocks.
193
204
  #
194
205
  # @option options [String] :defaults_mode ("legacy")
@@ -196,8 +207,7 @@ module Aws::ApplicationCostProfiler
196
207
  # accepted modes and the configuration defaults that are included.
197
208
  #
198
209
  # @option options [Boolean] :disable_host_prefix_injection (false)
199
- # Set to true to disable SDK automatically adding host prefix
200
- # to default service endpoint when available.
210
+ # When `true`, the SDK will not prepend the modeled host prefix to the endpoint.
201
211
  #
202
212
  # @option options [Boolean] :disable_request_compression (false)
203
213
  # When set to 'true' the request body will not be compressed
@@ -250,14 +260,37 @@ module Aws::ApplicationCostProfiler
250
260
  # 4 times. Used in `standard` and `adaptive` retry modes.
251
261
  #
252
262
  # @option options [String] :profile ("default")
253
- # Used when loading credentials from the shared credentials file
254
- # at HOME/.aws/credentials. When not specified, 'default' is used.
263
+ # Used when loading credentials from the shared credentials file at `HOME/.aws/credentials`.
264
+ # When not specified, 'default' is used.
265
+ #
266
+ # @option options [String] :request_checksum_calculation ("when_supported")
267
+ # Determines when a checksum will be calculated for request payloads. Values are:
268
+ #
269
+ # * `when_supported` - (default) When set, a checksum will be
270
+ # calculated for all request payloads of operations modeled with the
271
+ # `httpChecksum` trait where `requestChecksumRequired` is `true` and/or a
272
+ # `requestAlgorithmMember` is modeled.
273
+ # * `when_required` - When set, a checksum will only be calculated for
274
+ # request payloads of operations modeled with the `httpChecksum` trait where
275
+ # `requestChecksumRequired` is `true` or where a `requestAlgorithmMember`
276
+ # is modeled and supplied.
255
277
  #
256
278
  # @option options [Integer] :request_min_compression_size_bytes (10240)
257
279
  # The minimum size in bytes that triggers compression for request
258
280
  # bodies. The value must be non-negative integer value between 0
259
281
  # and 10485780 bytes inclusive.
260
282
  #
283
+ # @option options [String] :response_checksum_validation ("when_supported")
284
+ # Determines when checksum validation will be performed on response payloads. Values are:
285
+ #
286
+ # * `when_supported` - (default) When set, checksum validation is performed on all
287
+ # response payloads of operations modeled with the `httpChecksum` trait where
288
+ # `responseAlgorithms` is modeled, except when no modeled checksum algorithms
289
+ # are supported.
290
+ # * `when_required` - When set, checksum validation is not performed on
291
+ # response payloads of operations unless the checksum algorithm is supported and
292
+ # the `requestValidationModeMember` member is set to `ENABLED`.
293
+ #
261
294
  # @option options [Proc] :retry_backoff
262
295
  # A proc or lambda used for backoff. Defaults to 2**retries * retry_base_delay.
263
296
  # This option is only used in the `legacy` retry mode.
@@ -290,17 +323,15 @@ module Aws::ApplicationCostProfiler
290
323
  # @option options [String] :retry_mode ("legacy")
291
324
  # Specifies which retry algorithm to use. Values are:
292
325
  #
293
- # * `legacy` - The pre-existing retry behavior. This is default value if
294
- # no retry mode is provided.
326
+ # * `legacy` - The pre-existing retry behavior. This is the default
327
+ # value if no retry mode is provided.
295
328
  #
296
329
  # * `standard` - A standardized set of retry rules across the AWS SDKs.
297
330
  # This includes support for retry quotas, which limit the number of
298
331
  # unsuccessful retries a client can make.
299
332
  #
300
- # * `adaptive` - An experimental retry mode that includes all the
301
- # functionality of `standard` mode along with automatic client side
302
- # throttling. This is a provisional mode that may change behavior
303
- # in the future.
333
+ # * `adaptive` - A retry mode that includes all the functionality of
334
+ # `standard` mode along with automatic client side throttling.
304
335
  #
305
336
  # @option options [String] :sdk_ua_app_id
306
337
  # A unique and opaque application ID that is appended to the
@@ -330,9 +361,19 @@ module Aws::ApplicationCostProfiler
330
361
  # ** Please note ** When response stubbing is enabled, no HTTP
331
362
  # requests are made, and retries are disabled.
332
363
  #
364
+ # @option options [Aws::Telemetry::TelemetryProviderBase] :telemetry_provider (Aws::Telemetry::NoOpTelemetryProvider)
365
+ # Allows you to provide a telemetry provider, which is used to
366
+ # emit telemetry data. By default, uses `NoOpTelemetryProvider` which
367
+ # will not record or emit any telemetry data. The SDK supports the
368
+ # following telemetry providers:
369
+ #
370
+ # * OpenTelemetry (OTel) - To use the OTel provider, install and require the
371
+ # `opentelemetry-sdk` gem and then, pass in an instance of a
372
+ # `Aws::Telemetry::OTelProvider` for telemetry provider.
373
+ #
333
374
  # @option options [Aws::TokenProvider] :token_provider
334
- # A Bearer Token Provider. This can be an instance of any one of the
335
- # following classes:
375
+ # Your Bearer token used for authentication. This can be any class that includes and implements
376
+ # `Aws::TokenProvider`, or instance of any one of the following classes:
336
377
  #
337
378
  # * `Aws::StaticTokenProvider` - Used for configuring static, non-refreshing
338
379
  # tokens.
@@ -357,7 +398,9 @@ module Aws::ApplicationCostProfiler
357
398
  # sending the request.
358
399
  #
359
400
  # @option options [Aws::ApplicationCostProfiler::EndpointProvider] :endpoint_provider
360
- # The endpoint provider used to resolve endpoints. Any object that responds to `#resolve_endpoint(parameters)` where `parameters` is a Struct similar to `Aws::ApplicationCostProfiler::EndpointParameters`
401
+ # The endpoint provider used to resolve endpoints. Any object that responds to
402
+ # `#resolve_endpoint(parameters)` where `parameters` is a Struct similar to
403
+ # `Aws::ApplicationCostProfiler::EndpointParameters`.
361
404
  #
362
405
  # @option options [Float] :http_continue_timeout (1)
363
406
  # The number of seconds to wait for a 100-continue response before sending the
@@ -413,6 +456,12 @@ module Aws::ApplicationCostProfiler
413
456
  # @option options [String] :ssl_ca_store
414
457
  # Sets the X509::Store to verify peer certificate.
415
458
  #
459
+ # @option options [OpenSSL::X509::Certificate] :ssl_cert
460
+ # Sets a client certificate when creating http connections.
461
+ #
462
+ # @option options [OpenSSL::PKey] :ssl_key
463
+ # Sets a client key when creating http connections.
464
+ #
416
465
  # @option options [Float] :ssl_timeout
417
466
  # Sets the SSL timeout in seconds
418
467
  #
@@ -685,14 +734,19 @@ module Aws::ApplicationCostProfiler
685
734
  # @api private
686
735
  def build_request(operation_name, params = {})
687
736
  handlers = @handlers.for(operation_name)
737
+ tracer = config.telemetry_provider.tracer_provider.tracer(
738
+ Aws::Telemetry.module_to_tracer_name('Aws::ApplicationCostProfiler')
739
+ )
688
740
  context = Seahorse::Client::RequestContext.new(
689
741
  operation_name: operation_name,
690
742
  operation: config.api.operation(operation_name),
691
743
  client: self,
692
744
  params: params,
693
- config: config)
745
+ config: config,
746
+ tracer: tracer
747
+ )
694
748
  context[:gem_name] = 'aws-sdk-applicationcostprofiler'
695
- context[:gem_version] = '1.28.0'
749
+ context[:gem_version] = '1.57.0'
696
750
  Seahorse::Client::Request.new(handlers, context)
697
751
  end
698
752
 
@@ -7,6 +7,7 @@
7
7
  #
8
8
  # WARNING ABOUT GENERATED CODE
9
9
 
10
+
10
11
  module Aws::ApplicationCostProfiler
11
12
  # @api private
12
13
  module ClientApi
@@ -13,22 +13,22 @@ module Aws::ApplicationCostProfiler
13
13
  # @!attribute region
14
14
  # The AWS region used to dispatch the request.
15
15
  #
16
- # @return [String]
16
+ # @return [string]
17
17
  #
18
18
  # @!attribute use_dual_stack
19
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
20
  #
21
- # @return [Boolean]
21
+ # @return [boolean]
22
22
  #
23
23
  # @!attribute use_fips
24
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
25
  #
26
- # @return [Boolean]
26
+ # @return [boolean]
27
27
  #
28
28
  # @!attribute endpoint
29
29
  # Override the endpoint used to send this request
30
30
  #
31
- # @return [String]
31
+ # @return [string]
32
32
  #
33
33
  EndpointParameters = Struct.new(
34
34
  :region,
@@ -52,15 +52,18 @@ module Aws::ApplicationCostProfiler
52
52
  self[:region] = options[:region]
53
53
  self[:use_dual_stack] = options[:use_dual_stack]
54
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
55
  self[:use_fips] = options[:use_fips]
59
56
  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
57
  self[:endpoint] = options[:endpoint]
64
58
  end
59
+
60
+ def self.create(config, options={})
61
+ new({
62
+ region: config.region,
63
+ use_dual_stack: config.use_dualstack_endpoint,
64
+ use_fips: config.use_fips_endpoint,
65
+ endpoint: (config.endpoint.to_s unless config.regional_endpoint),
66
+ }.merge(options))
67
+ end
65
68
  end
66
69
  end
@@ -10,40 +10,36 @@
10
10
  module Aws::ApplicationCostProfiler
11
11
  class EndpointProvider
12
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 Aws::Endpoints::Matchers.set?(endpoint)
18
- if Aws::Endpoints::Matchers.boolean_equals?(use_fips, true)
13
+ if Aws::Endpoints::Matchers.set?(parameters.endpoint)
14
+ if Aws::Endpoints::Matchers.boolean_equals?(parameters.use_fips, true)
19
15
  raise ArgumentError, "Invalid Configuration: FIPS and custom endpoint are not supported"
20
16
  end
21
- if Aws::Endpoints::Matchers.boolean_equals?(use_dual_stack, true)
17
+ if Aws::Endpoints::Matchers.boolean_equals?(parameters.use_dual_stack, true)
22
18
  raise ArgumentError, "Invalid Configuration: Dualstack and custom endpoint are not supported"
23
19
  end
24
- return Aws::Endpoints::Endpoint.new(url: endpoint, headers: {}, properties: {})
20
+ return Aws::Endpoints::Endpoint.new(url: parameters.endpoint, headers: {}, properties: {})
25
21
  end
26
- if Aws::Endpoints::Matchers.set?(region)
27
- if (partition_result = Aws::Endpoints::Matchers.aws_partition(region))
28
- if Aws::Endpoints::Matchers.boolean_equals?(use_fips, true) && Aws::Endpoints::Matchers.boolean_equals?(use_dual_stack, true)
22
+ if Aws::Endpoints::Matchers.set?(parameters.region)
23
+ if (partition_result = Aws::Endpoints::Matchers.aws_partition(parameters.region))
24
+ if Aws::Endpoints::Matchers.boolean_equals?(parameters.use_fips, true) && Aws::Endpoints::Matchers.boolean_equals?(parameters.use_dual_stack, true)
29
25
  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"))
30
- return Aws::Endpoints::Endpoint.new(url: "https://application-cost-profiler-fips.#{region}.#{partition_result['dualStackDnsSuffix']}", headers: {}, properties: {})
26
+ return Aws::Endpoints::Endpoint.new(url: "https://application-cost-profiler-fips.#{parameters.region}.#{partition_result['dualStackDnsSuffix']}", headers: {}, properties: {})
31
27
  end
32
28
  raise ArgumentError, "FIPS and DualStack are enabled, but this partition does not support one or both"
33
29
  end
34
- if Aws::Endpoints::Matchers.boolean_equals?(use_fips, true)
35
- if Aws::Endpoints::Matchers.boolean_equals?(true, Aws::Endpoints::Matchers.attr(partition_result, "supportsFIPS"))
36
- return Aws::Endpoints::Endpoint.new(url: "https://application-cost-profiler-fips.#{region}.#{partition_result['dnsSuffix']}", headers: {}, properties: {})
30
+ if Aws::Endpoints::Matchers.boolean_equals?(parameters.use_fips, true)
31
+ if Aws::Endpoints::Matchers.boolean_equals?(Aws::Endpoints::Matchers.attr(partition_result, "supportsFIPS"), true)
32
+ return Aws::Endpoints::Endpoint.new(url: "https://application-cost-profiler-fips.#{parameters.region}.#{partition_result['dnsSuffix']}", headers: {}, properties: {})
37
33
  end
38
34
  raise ArgumentError, "FIPS is enabled but this partition does not support FIPS"
39
35
  end
40
- if Aws::Endpoints::Matchers.boolean_equals?(use_dual_stack, true)
36
+ if Aws::Endpoints::Matchers.boolean_equals?(parameters.use_dual_stack, true)
41
37
  if Aws::Endpoints::Matchers.boolean_equals?(true, Aws::Endpoints::Matchers.attr(partition_result, "supportsDualStack"))
42
- return Aws::Endpoints::Endpoint.new(url: "https://application-cost-profiler.#{region}.#{partition_result['dualStackDnsSuffix']}", headers: {}, properties: {})
38
+ return Aws::Endpoints::Endpoint.new(url: "https://application-cost-profiler.#{parameters.region}.#{partition_result['dualStackDnsSuffix']}", headers: {}, properties: {})
43
39
  end
44
40
  raise ArgumentError, "DualStack is enabled but this partition does not support DualStack"
45
41
  end
46
- return Aws::Endpoints::Endpoint.new(url: "https://application-cost-profiler.#{region}.#{partition_result['dnsSuffix']}", headers: {}, properties: {})
42
+ return Aws::Endpoints::Endpoint.new(url: "https://application-cost-profiler.#{parameters.region}.#{partition_result['dnsSuffix']}", headers: {}, properties: {})
47
43
  end
48
44
  end
49
45
  raise ArgumentError, "Invalid Configuration: Missing Region"
@@ -12,89 +12,9 @@ module Aws::ApplicationCostProfiler
12
12
  # @api private
13
13
  module Endpoints
14
14
 
15
- class DeleteReportDefinition
16
- def self.build(context)
17
- unless context.config.regional_endpoint
18
- endpoint = context.config.endpoint.to_s
19
- end
20
- Aws::ApplicationCostProfiler::EndpointParameters.new(
21
- region: context.config.region,
22
- use_dual_stack: context.config.use_dualstack_endpoint,
23
- use_fips: context.config.use_fips_endpoint,
24
- endpoint: endpoint,
25
- )
26
- end
27
- end
28
-
29
- class GetReportDefinition
30
- def self.build(context)
31
- unless context.config.regional_endpoint
32
- endpoint = context.config.endpoint.to_s
33
- end
34
- Aws::ApplicationCostProfiler::EndpointParameters.new(
35
- region: context.config.region,
36
- use_dual_stack: context.config.use_dualstack_endpoint,
37
- use_fips: context.config.use_fips_endpoint,
38
- endpoint: endpoint,
39
- )
40
- end
41
- end
42
-
43
- class ImportApplicationUsage
44
- def self.build(context)
45
- unless context.config.regional_endpoint
46
- endpoint = context.config.endpoint.to_s
47
- end
48
- Aws::ApplicationCostProfiler::EndpointParameters.new(
49
- region: context.config.region,
50
- use_dual_stack: context.config.use_dualstack_endpoint,
51
- use_fips: context.config.use_fips_endpoint,
52
- endpoint: endpoint,
53
- )
54
- end
55
- end
56
15
 
57
- class ListReportDefinitions
58
- def self.build(context)
59
- unless context.config.regional_endpoint
60
- endpoint = context.config.endpoint.to_s
61
- end
62
- Aws::ApplicationCostProfiler::EndpointParameters.new(
63
- region: context.config.region,
64
- use_dual_stack: context.config.use_dualstack_endpoint,
65
- use_fips: context.config.use_fips_endpoint,
66
- endpoint: endpoint,
67
- )
68
- end
16
+ def self.parameters_for_operation(context)
17
+ Aws::ApplicationCostProfiler::EndpointParameters.create(context.config)
69
18
  end
70
-
71
- class PutReportDefinition
72
- def self.build(context)
73
- unless context.config.regional_endpoint
74
- endpoint = context.config.endpoint.to_s
75
- end
76
- Aws::ApplicationCostProfiler::EndpointParameters.new(
77
- region: context.config.region,
78
- use_dual_stack: context.config.use_dualstack_endpoint,
79
- use_fips: context.config.use_fips_endpoint,
80
- endpoint: endpoint,
81
- )
82
- end
83
- end
84
-
85
- class UpdateReportDefinition
86
- def self.build(context)
87
- unless context.config.regional_endpoint
88
- endpoint = context.config.endpoint.to_s
89
- end
90
- Aws::ApplicationCostProfiler::EndpointParameters.new(
91
- region: context.config.region,
92
- use_dual_stack: context.config.use_dualstack_endpoint,
93
- use_fips: context.config.use_fips_endpoint,
94
- endpoint: endpoint,
95
- )
96
- end
97
- end
98
-
99
19
  end
100
20
  end
@@ -15,11 +15,11 @@ module Aws::ApplicationCostProfiler
15
15
  :endpoint_provider,
16
16
  doc_type: 'Aws::ApplicationCostProfiler::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::ApplicationCostProfiler::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::ApplicationCostProfiler::EndpointParameters`.
22
+ DOCS
23
23
  Aws::ApplicationCostProfiler::EndpointProvider.new
24
24
  end
25
25
 
@@ -27,7 +27,7 @@ module Aws::ApplicationCostProfiler
27
27
  class Handler < Seahorse::Client::Handler
28
28
  def call(context)
29
29
  unless context[:discovered_endpoint]
30
- params = parameters_for_operation(context)
30
+ params = Aws::ApplicationCostProfiler::Endpoints.parameters_for_operation(context)
31
31
  endpoint = context.config.endpoint_provider.resolve_endpoint(params)
32
32
 
33
33
  context.http_request.endpoint = endpoint.url
@@ -40,11 +40,23 @@ module Aws::ApplicationCostProfiler
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
@@ -55,23 +67,6 @@ module Aws::ApplicationCostProfiler
55
67
  context.http_request.headers[key] = value
56
68
  end
57
69
  end
58
-
59
- def parameters_for_operation(context)
60
- case context.operation_name
61
- when :delete_report_definition
62
- Aws::ApplicationCostProfiler::Endpoints::DeleteReportDefinition.build(context)
63
- when :get_report_definition
64
- Aws::ApplicationCostProfiler::Endpoints::GetReportDefinition.build(context)
65
- when :import_application_usage
66
- Aws::ApplicationCostProfiler::Endpoints::ImportApplicationUsage.build(context)
67
- when :list_report_definitions
68
- Aws::ApplicationCostProfiler::Endpoints::ListReportDefinitions.build(context)
69
- when :put_report_definition
70
- Aws::ApplicationCostProfiler::Endpoints::PutReportDefinition.build(context)
71
- when :update_report_definition
72
- Aws::ApplicationCostProfiler::Endpoints::UpdateReportDefinition.build(context)
73
- end
74
- end
75
70
  end
76
71
 
77
72
  def add_handlers(handlers, _config)
@@ -408,3 +408,4 @@ module Aws::ApplicationCostProfiler
408
408
 
409
409
  end
410
410
  end
411
+
@@ -11,16 +11,7 @@
11
11
  require 'aws-sdk-core'
12
12
  require 'aws-sigv4'
13
13
 
14
- require_relative 'aws-sdk-applicationcostprofiler/types'
15
- require_relative 'aws-sdk-applicationcostprofiler/client_api'
16
- require_relative 'aws-sdk-applicationcostprofiler/plugins/endpoints.rb'
17
- require_relative 'aws-sdk-applicationcostprofiler/client'
18
- require_relative 'aws-sdk-applicationcostprofiler/errors'
19
- require_relative 'aws-sdk-applicationcostprofiler/resource'
20
- require_relative 'aws-sdk-applicationcostprofiler/endpoint_parameters'
21
- require_relative 'aws-sdk-applicationcostprofiler/endpoint_provider'
22
- require_relative 'aws-sdk-applicationcostprofiler/endpoints'
23
- require_relative 'aws-sdk-applicationcostprofiler/customizations'
14
+ Aws::Plugins::GlobalConfiguration.add_identifier(:applicationcostprofiler)
24
15
 
25
16
  # This module provides support for AWS Application Cost Profiler. This module is available in the
26
17
  # `aws-sdk-applicationcostprofiler` gem.
@@ -51,7 +42,20 @@ require_relative 'aws-sdk-applicationcostprofiler/customizations'
51
42
  #
52
43
  # @!group service
53
44
  module Aws::ApplicationCostProfiler
45
+ autoload :Types, 'aws-sdk-applicationcostprofiler/types'
46
+ autoload :ClientApi, 'aws-sdk-applicationcostprofiler/client_api'
47
+ module Plugins
48
+ autoload :Endpoints, 'aws-sdk-applicationcostprofiler/plugins/endpoints.rb'
49
+ end
50
+ autoload :Client, 'aws-sdk-applicationcostprofiler/client'
51
+ autoload :Errors, 'aws-sdk-applicationcostprofiler/errors'
52
+ autoload :Resource, 'aws-sdk-applicationcostprofiler/resource'
53
+ autoload :EndpointParameters, 'aws-sdk-applicationcostprofiler/endpoint_parameters'
54
+ autoload :EndpointProvider, 'aws-sdk-applicationcostprofiler/endpoint_provider'
55
+ autoload :Endpoints, 'aws-sdk-applicationcostprofiler/endpoints'
54
56
 
55
- GEM_VERSION = '1.28.0'
57
+ GEM_VERSION = '1.57.0'
56
58
 
57
59
  end
60
+
61
+ require_relative 'aws-sdk-applicationcostprofiler/customizations'
data/sig/client.rbs CHANGED
@@ -15,8 +15,10 @@ 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,
21
+ ?auth_scheme_preference: Array[String],
20
22
  ?client_side_monitoring: bool,
21
23
  ?client_side_monitoring_client_id: String,
22
24
  ?client_side_monitoring_host: String,
@@ -38,7 +40,9 @@ module Aws
38
40
  ?logger: untyped,
39
41
  ?max_attempts: Integer,
40
42
  ?profile: String,
43
+ ?request_checksum_calculation: String,
41
44
  ?request_min_compression_size_bytes: Integer,
45
+ ?response_checksum_validation: String,
42
46
  ?retry_backoff: Proc,
43
47
  ?retry_base_delay: Float,
44
48
  ?retry_jitter: (:none | :equal | :full | ^(Integer) -> Integer),
@@ -50,6 +54,7 @@ module Aws
50
54
  ?session_token: String,
51
55
  ?sigv4a_signing_region_set: Array[String],
52
56
  ?stub_responses: untyped,
57
+ ?telemetry_provider: Aws::Telemetry::TelemetryProviderBase,
53
58
  ?token_provider: untyped,
54
59
  ?use_dualstack_endpoint: bool,
55
60
  ?use_fips_endpoint: bool,
data/sig/resource.rbs CHANGED
@@ -15,8 +15,10 @@ 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,
21
+ ?auth_scheme_preference: Array[String],
20
22
  ?client_side_monitoring: bool,
21
23
  ?client_side_monitoring_client_id: String,
22
24
  ?client_side_monitoring_host: String,
@@ -38,7 +40,9 @@ module Aws
38
40
  ?logger: untyped,
39
41
  ?max_attempts: Integer,
40
42
  ?profile: String,
43
+ ?request_checksum_calculation: String,
41
44
  ?request_min_compression_size_bytes: Integer,
45
+ ?response_checksum_validation: String,
42
46
  ?retry_backoff: Proc,
43
47
  ?retry_base_delay: Float,
44
48
  ?retry_jitter: (:none | :equal | :full | ^(Integer) -> Integer),
@@ -50,6 +54,7 @@ module Aws
50
54
  ?session_token: String,
51
55
  ?sigv4a_signing_region_set: Array[String],
52
56
  ?stub_responses: untyped,
57
+ ?telemetry_provider: Aws::Telemetry::TelemetryProviderBase,
53
58
  ?token_provider: untyped,
54
59
  ?use_dualstack_endpoint: bool,
55
60
  ?use_fips_endpoint: bool,
metadata CHANGED
@@ -1,14 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: aws-sdk-applicationcostprofiler
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.28.0
4
+ version: 1.57.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Amazon Web Services
8
- autorequire:
9
8
  bindir: bin
10
9
  cert_chain: []
11
- date: 2024-07-02 00:00:00.000000000 Z
10
+ date: 1980-01-02 00:00:00.000000000 Z
12
11
  dependencies:
13
12
  - !ruby/object:Gem::Dependency
14
13
  name: aws-sdk-core
@@ -19,7 +18,7 @@ dependencies:
19
18
  version: '3'
20
19
  - - ">="
21
20
  - !ruby/object:Gem::Version
22
- version: 3.201.0
21
+ version: 3.254.0
23
22
  type: :runtime
24
23
  prerelease: false
25
24
  version_requirements: !ruby/object:Gem::Requirement
@@ -29,7 +28,7 @@ dependencies:
29
28
  version: '3'
30
29
  - - ">="
31
30
  - !ruby/object:Gem::Version
32
- version: 3.201.0
31
+ version: 3.254.0
33
32
  - !ruby/object:Gem::Dependency
34
33
  name: aws-sigv4
35
34
  requirement: !ruby/object:Gem::Requirement
@@ -77,7 +76,6 @@ licenses:
77
76
  metadata:
78
77
  source_code_uri: https://github.com/aws/aws-sdk-ruby/tree/version-3/gems/aws-sdk-applicationcostprofiler
79
78
  changelog_uri: https://github.com/aws/aws-sdk-ruby/tree/version-3/gems/aws-sdk-applicationcostprofiler/CHANGELOG.md
80
- post_install_message:
81
79
  rdoc_options: []
82
80
  require_paths:
83
81
  - lib
@@ -85,15 +83,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
85
83
  requirements:
86
84
  - - ">="
87
85
  - !ruby/object:Gem::Version
88
- version: '2.5'
86
+ version: '2.7'
89
87
  required_rubygems_version: !ruby/object:Gem::Requirement
90
88
  requirements:
91
89
  - - ">="
92
90
  - !ruby/object:Gem::Version
93
91
  version: '0'
94
92
  requirements: []
95
- rubygems_version: 3.4.10
96
- signing_key:
93
+ rubygems_version: 3.6.7
97
94
  specification_version: 4
98
95
  summary: AWS SDK for Ruby - AWS Application Cost Profiler
99
96
  test_files: []