aws-sdk-core 3.197.0 → 3.220.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.
Files changed (139) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +297 -0
  3. data/VERSION +1 -1
  4. data/lib/aws-defaults/default_configuration.rb +1 -2
  5. data/lib/aws-defaults.rb +4 -1
  6. data/lib/aws-sdk-core/arn.rb +1 -3
  7. data/lib/aws-sdk-core/assume_role_credentials.rb +12 -5
  8. data/lib/aws-sdk-core/assume_role_web_identity_credentials.rb +13 -7
  9. data/lib/aws-sdk-core/binary/decode_handler.rb +3 -4
  10. data/lib/aws-sdk-core/binary/encode_handler.rb +1 -1
  11. data/lib/aws-sdk-core/binary/event_stream_decoder.rb +1 -0
  12. data/lib/aws-sdk-core/binary/event_stream_encoder.rb +4 -3
  13. data/lib/aws-sdk-core/cbor/decoder.rb +308 -0
  14. data/lib/aws-sdk-core/cbor/encoder.rb +243 -0
  15. data/lib/aws-sdk-core/cbor.rb +53 -0
  16. data/lib/aws-sdk-core/client_side_monitoring.rb +9 -0
  17. data/lib/aws-sdk-core/client_stubs.rb +8 -7
  18. data/lib/aws-sdk-core/credential_provider_chain.rb +13 -6
  19. data/lib/aws-sdk-core/credentials.rb +13 -6
  20. data/lib/aws-sdk-core/endpoints/endpoint.rb +3 -1
  21. data/lib/aws-sdk-core/endpoints/matchers.rb +6 -9
  22. data/lib/aws-sdk-core/endpoints.rb +74 -18
  23. data/lib/aws-sdk-core/error_handler.rb +41 -0
  24. data/lib/aws-sdk-core/errors.rb +9 -0
  25. data/lib/aws-sdk-core/json/error_handler.rb +8 -9
  26. data/lib/aws-sdk-core/json/handler.rb +6 -6
  27. data/lib/aws-sdk-core/json/json_engine.rb +3 -1
  28. data/lib/aws-sdk-core/json/oj_engine.rb +7 -1
  29. data/lib/aws-sdk-core/json/parser.rb +2 -0
  30. data/lib/aws-sdk-core/json.rb +43 -14
  31. data/lib/aws-sdk-core/log/param_filter.rb +2 -2
  32. data/lib/aws-sdk-core/log/param_formatter.rb +7 -3
  33. data/lib/aws-sdk-core/log.rb +10 -0
  34. data/lib/aws-sdk-core/param_validator.rb +1 -1
  35. data/lib/aws-sdk-core/plugins/bearer_authorization.rb +2 -0
  36. data/lib/aws-sdk-core/plugins/checksum_algorithm.rb +332 -169
  37. data/lib/aws-sdk-core/plugins/credentials_configuration.rb +7 -3
  38. data/lib/aws-sdk-core/plugins/global_configuration.rb +8 -9
  39. data/lib/aws-sdk-core/plugins/http_checksum.rb +2 -8
  40. data/lib/aws-sdk-core/plugins/protocols/api_gateway.rb +3 -1
  41. data/lib/aws-sdk-core/plugins/protocols/ec2.rb +2 -24
  42. data/lib/aws-sdk-core/plugins/protocols/json_rpc.rb +6 -8
  43. data/lib/aws-sdk-core/plugins/protocols/query.rb +4 -2
  44. data/lib/aws-sdk-core/plugins/protocols/rest_json.rb +4 -3
  45. data/lib/aws-sdk-core/plugins/protocols/rest_xml.rb +5 -1
  46. data/lib/aws-sdk-core/plugins/protocols/rpc_v2.rb +17 -0
  47. data/lib/aws-sdk-core/plugins/regional_endpoint.rb +74 -25
  48. data/lib/aws-sdk-core/plugins/retry_errors.rb +0 -1
  49. data/lib/aws-sdk-core/plugins/sign.rb +13 -11
  50. data/lib/aws-sdk-core/plugins/signature_v2.rb +2 -1
  51. data/lib/aws-sdk-core/plugins/signature_v4.rb +2 -1
  52. data/lib/aws-sdk-core/plugins/stub_responses.rb +29 -2
  53. data/lib/aws-sdk-core/plugins/telemetry.rb +75 -0
  54. data/lib/aws-sdk-core/plugins/transfer_encoding.rb +16 -9
  55. data/lib/aws-sdk-core/plugins/user_agent.rb +26 -8
  56. data/lib/aws-sdk-core/plugins.rb +39 -0
  57. data/lib/aws-sdk-core/process_credentials.rb +47 -28
  58. data/lib/aws-sdk-core/query/ec2_handler.rb +27 -0
  59. data/lib/aws-sdk-core/query/handler.rb +4 -4
  60. data/lib/aws-sdk-core/query.rb +2 -1
  61. data/lib/aws-sdk-core/resources.rb +8 -0
  62. data/lib/aws-sdk-core/rest/{request/content_type.rb → content_type_handler.rb} +1 -1
  63. data/lib/aws-sdk-core/rest/handler.rb +3 -4
  64. data/lib/aws-sdk-core/rest/request/endpoint.rb +3 -1
  65. data/lib/aws-sdk-core/rest/request/headers.rb +2 -2
  66. data/lib/aws-sdk-core/rest.rb +1 -1
  67. data/lib/aws-sdk-core/rpc_v2/builder.rb +62 -0
  68. data/lib/aws-sdk-core/rpc_v2/cbor_engine.rb +18 -0
  69. data/lib/aws-sdk-core/rpc_v2/content_type_handler.rb +47 -0
  70. data/lib/aws-sdk-core/rpc_v2/error_handler.rb +85 -0
  71. data/lib/aws-sdk-core/rpc_v2/handler.rb +79 -0
  72. data/lib/aws-sdk-core/rpc_v2/parser.rb +90 -0
  73. data/lib/aws-sdk-core/rpc_v2.rb +69 -0
  74. data/lib/aws-sdk-core/shared_config.rb +7 -2
  75. data/lib/aws-sdk-core/shared_credentials.rb +0 -7
  76. data/lib/aws-sdk-core/sso_credentials.rb +2 -1
  77. data/lib/aws-sdk-core/stubbing/protocols/ec2.rb +12 -11
  78. data/lib/aws-sdk-core/stubbing/protocols/json.rb +11 -10
  79. data/lib/aws-sdk-core/stubbing/protocols/query.rb +7 -6
  80. data/lib/aws-sdk-core/stubbing/protocols/rest.rb +2 -1
  81. data/lib/aws-sdk-core/stubbing/protocols/rest_json.rb +9 -8
  82. data/lib/aws-sdk-core/stubbing/protocols/rest_xml.rb +6 -5
  83. data/lib/aws-sdk-core/stubbing/protocols/rpc_v2.rb +39 -0
  84. data/lib/aws-sdk-core/stubbing.rb +22 -0
  85. data/lib/aws-sdk-core/telemetry/base.rb +177 -0
  86. data/lib/aws-sdk-core/telemetry/no_op.rb +70 -0
  87. data/lib/aws-sdk-core/telemetry/otel.rb +235 -0
  88. data/lib/aws-sdk-core/telemetry/span_kind.rb +22 -0
  89. data/lib/aws-sdk-core/telemetry/span_status.rb +59 -0
  90. data/lib/aws-sdk-core/telemetry.rb +78 -0
  91. data/lib/aws-sdk-core/waiters/poller.rb +9 -4
  92. data/lib/aws-sdk-core/xml/error_handler.rb +11 -37
  93. data/lib/aws-sdk-core/xml/parser.rb +2 -6
  94. data/lib/aws-sdk-core.rb +82 -108
  95. data/lib/aws-sdk-sso/client.rb +99 -37
  96. data/lib/aws-sdk-sso/client_api.rb +7 -0
  97. data/lib/aws-sdk-sso/endpoint_parameters.rb +9 -6
  98. data/lib/aws-sdk-sso/endpoint_provider.rb +14 -18
  99. data/lib/aws-sdk-sso/endpoints.rb +2 -54
  100. data/lib/aws-sdk-sso/plugins/endpoints.rb +19 -20
  101. data/lib/aws-sdk-sso/types.rb +1 -0
  102. data/lib/aws-sdk-sso.rb +15 -11
  103. data/lib/aws-sdk-ssooidc/client.rb +123 -55
  104. data/lib/aws-sdk-ssooidc/client_api.rb +5 -0
  105. data/lib/aws-sdk-ssooidc/endpoint_parameters.rb +9 -6
  106. data/lib/aws-sdk-ssooidc/endpoint_provider.rb +14 -18
  107. data/lib/aws-sdk-ssooidc/endpoints.rb +2 -54
  108. data/lib/aws-sdk-ssooidc/plugins/endpoints.rb +19 -20
  109. data/lib/aws-sdk-ssooidc/types.rb +21 -15
  110. data/lib/aws-sdk-ssooidc.rb +15 -11
  111. data/lib/aws-sdk-sts/client.rb +307 -89
  112. data/lib/aws-sdk-sts/client_api.rb +28 -2
  113. data/lib/aws-sdk-sts/customizations.rb +5 -1
  114. data/lib/aws-sdk-sts/endpoint_parameters.rb +10 -9
  115. data/lib/aws-sdk-sts/endpoint_provider.rb +33 -38
  116. data/lib/aws-sdk-sts/endpoints.rb +2 -118
  117. data/lib/aws-sdk-sts/errors.rb +16 -0
  118. data/lib/aws-sdk-sts/plugins/endpoints.rb +19 -28
  119. data/lib/aws-sdk-sts/types.rb +171 -28
  120. data/lib/aws-sdk-sts.rb +15 -11
  121. data/lib/seahorse/client/base.rb +17 -7
  122. data/lib/seahorse/client/h2/handler.rb +13 -3
  123. data/lib/seahorse/client/handler.rb +1 -1
  124. data/lib/seahorse/client/net_http/connection_pool.rb +10 -2
  125. data/lib/seahorse/client/net_http/handler.rb +21 -9
  126. data/lib/seahorse/client/plugins/endpoint.rb +0 -1
  127. data/lib/seahorse/client/plugins/net_http.rb +9 -0
  128. data/lib/seahorse/client/request_context.rb +8 -1
  129. data/lib/seahorse/client/response.rb +2 -0
  130. data/sig/aws-sdk-core/telemetry/base.rbs +46 -0
  131. data/sig/aws-sdk-core/telemetry/otel.rbs +22 -0
  132. data/sig/aws-sdk-core/telemetry/span_kind.rbs +15 -0
  133. data/sig/aws-sdk-core/telemetry/span_status.rbs +24 -0
  134. metadata +62 -18
  135. /data/lib/aws-sdk-core/xml/parser/{engines/libxml.rb → libxml_engine.rb} +0 -0
  136. /data/lib/aws-sdk-core/xml/parser/{engines/nokogiri.rb → nokogiri_engine.rb} +0 -0
  137. /data/lib/aws-sdk-core/xml/parser/{engines/oga.rb → oga_engine.rb} +0 -0
  138. /data/lib/aws-sdk-core/xml/parser/{engines/ox.rb → ox_engine.rb} +0 -0
  139. /data/lib/aws-sdk-core/xml/parser/{engines/rexml.rb → rexml_engine.rb} +0 -0
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 2126c3d8e997ce7f62c9c4d66f5eeef1b3ca33dbe07963cee7ab64af41e3bea3
4
- data.tar.gz: c8e520892d84cfe2afb40aae3c2064c2f9aed5c291b4346d3a45a2f61df6175d
3
+ metadata.gz: 1f27ca30a27b9facf199f41e7e80e5b89582f87581d5e9d1f0c771e7a8a184fb
4
+ data.tar.gz: 80780457231b474d80999129e719103f0a7292f66154741861076234704a9e47
5
5
  SHA512:
6
- metadata.gz: 33e18c7d668078ac612c1c77324c86fc4a102e6d4f752211ca1b6ca9cec91ae098e1261c3ae1ec03dfe2c57d16925608feef5f89cb76a32203d04cb9d790b135
7
- data.tar.gz: 459028118688f266b87f788388ffbb5a7cc6e32931b8bc6ffdbad86dfc00818adc7d394ffee4aa672cb5a4003bfdf2046bfbda5e729582a7022c2d0c835df634
6
+ metadata.gz: c53631e0e54859cee1281b03b355c9ae2c447836aa6a32f9f7756fc923e0f2d10149ed95e20877641baf60fdde8329734689ddfee7324d35517e414e2979130f
7
+ data.tar.gz: f1e1c011480a498d256410cf99294ad6f8b52061517c3785760cc741033948580c2a93e57c5be461133b23cdfaa11336ccb92fb85fbd6a62cd67a4c62ab7ee99
data/CHANGELOG.md CHANGED
@@ -1,6 +1,303 @@
1
1
  Unreleased Changes
2
2
  ------------------
3
3
 
4
+ 3.220.0 (2025-03-04)
5
+ ------------------
6
+
7
+ * Feature - Updated Aws::STS::Client with the latest API changes.
8
+
9
+ 3.219.0 (2025-02-18)
10
+ ------------------
11
+
12
+ * Feature - Updated Aws::STS::Client with the latest API changes.
13
+
14
+ * Feature - Updated Aws::SSOOIDC::Client with the latest API changes.
15
+
16
+ * Feature - Updated Aws::SSO::Client with the latest API changes.
17
+
18
+ 3.218.1 (2025-02-07)
19
+ ------------------
20
+
21
+ * Issue - Add handling of block in ExtendedSession delegation (#3178).
22
+
23
+ 3.218.0 (2025-02-06)
24
+ ------------------
25
+
26
+ * Feature - Updated Aws::STS::Client with the latest API changes.
27
+
28
+ * Feature - Updated Aws::SSOOIDC::Client with the latest API changes.
29
+
30
+ * Feature - Updated Aws::SSO::Client with the latest API changes.
31
+
32
+ 3.217.1 (2025-01-30)
33
+ ------------------
34
+
35
+ * Issue - Add `transfer-encoding` and `connection` to list of unsigned sigv4 headers.
36
+
37
+ 3.217.0 (2025-01-24)
38
+ ------------------
39
+
40
+ * Feature - Updated Aws::SSOOIDC::Client with the latest API changes.
41
+
42
+ * Feature - Fixed typos in the descriptions.
43
+
44
+ 3.216.1 (2025-01-22)
45
+ ------------------
46
+
47
+ * Issue - Use epoch seconds instead of milliseconds in cbor encode/decode.
48
+
49
+ * Issue - Add handling of block in response delegation (#3169).
50
+
51
+ 3.216.0 (2025-01-15)
52
+ ------------------
53
+
54
+ * Feature - Updated Aws::STS::Client with the latest API changes.
55
+
56
+ * Feature - Updated Aws::SSOOIDC::Client with the latest API changes.
57
+
58
+ * Feature - Updated Aws::SSO::Client with the latest API changes.
59
+
60
+ * Feature - Always calculate request checksums for operations that support or require it. Supported config options are `when_supported` and `when_required`. The default value is `when_supported`. This option is configured in code with `:request_checksum_calculation`, in the shared config file as `request_checksum_calculation`, and in the ENV as `ENV['AWS_REQUEST_CHECKSUM_CALCULATION']`.
61
+
62
+ * Feature - Always validate response checksums for operations that support or require it. Supported config options are `when_supported` and `when_required`. The default value is `when_supported`. This option is configured in code with `:response_checksum_validation`, in the shared config file as `response_checksum_validation`, and in the ENV as `ENV['AWS_RESPONSE_CHECKSUM_VALIDATION']`.
63
+
64
+ * Feature - Support CRC64NVME checksums through the `aws-crt` gem.
65
+
66
+ 3.215.1 (2025-01-14)
67
+ ------------------
68
+
69
+ * Issue - Fixed error when attempting to log an unlinked tempfile.
70
+
71
+ 3.215.0 (2025-01-10)
72
+ ------------------
73
+
74
+ * Feature - Updated Aws::STS::Client with the latest API changes.
75
+
76
+ * Feature - Fixed typos in the descriptions.
77
+
78
+ 3.214.1 (2024-12-28)
79
+ ------------------
80
+
81
+ * Issue - Fix documentation that references a non-existent method.
82
+
83
+ 3.214.0 (2024-11-25)
84
+ ------------------
85
+
86
+ * Feature - Updated configuration values for `defaults_mode`.
87
+
88
+ 3.213.0 (2024-11-14)
89
+ ------------------
90
+
91
+ * Feature - Updated Aws::STS::Client with the latest API changes.
92
+
93
+ * Feature - This release introduces the new API 'AssumeRoot', which returns short-term credentials that you can use to perform privileged tasks.
94
+
95
+ 3.212.0 (2024-11-06)
96
+ ------------------
97
+
98
+ * Feature - Updated Aws::STS::Client with the latest API changes.
99
+
100
+ 3.211.0 (2024-10-21)
101
+ ------------------
102
+
103
+ * Feature - Support functionality for services that migrate from AWS Query to AWS JSON or CBOR.
104
+
105
+ * Issue - Fix RPCv2 protocol to always send an Accept header for CBOR.
106
+
107
+ 3.210.0 (2024-10-18)
108
+ ------------------
109
+
110
+ * Feature - Updated Aws::STS::Client with the latest API changes.
111
+
112
+ * Feature - Updated Aws::SSOOIDC::Client with the latest API changes.
113
+
114
+ * Feature - Updated Aws::SSO::Client with the latest API changes.
115
+
116
+ * Feature - reduce memory usage by not using legacy endpoint data unless required.
117
+
118
+ 3.209.1 (2024-09-25)
119
+ ------------------
120
+
121
+ * Issue - Add all core plugins to autoloads.
122
+
123
+ 3.209.0 (2024-09-24)
124
+ ------------------
125
+
126
+ * Feature - Updated Aws::STS::Client with the latest API changes.
127
+
128
+ * Feature - Updated Aws::SSOOIDC::Client with the latest API changes.
129
+
130
+ * Feature - Updated Aws::SSO::Client with the latest API changes.
131
+
132
+ * Issue - Add service identifiers to GlobalConfig's list of identifiers outside of autoload (#3113).
133
+
134
+ * Issue - Ignore invalid ARNs when trying to parse accountId in assume role credentials.
135
+
136
+ 3.208.0 (2024-09-23)
137
+ ------------------
138
+
139
+ * Feature - Updated Aws::STS::Client with the latest API changes.
140
+
141
+ * Feature - Updated Aws::SSOOIDC::Client with the latest API changes.
142
+
143
+ * Feature - Updated Aws::SSO::Client with the latest API changes.
144
+
145
+ * Feature - Use autoloading at the service level to load service clients and resources.
146
+
147
+ 3.207.0 (2024-09-20)
148
+ ------------------
149
+
150
+ * Feature - Updated Aws::STS::Client with the latest API changes.
151
+
152
+ * Feature - Updated Aws::SSOOIDC::Client with the latest API changes.
153
+
154
+ * Feature - Updated Aws::SSO::Client with the latest API changes.
155
+
156
+ * Feature - Support Account ID credentials using `ENV['AWS_ACCOUNT_ID']`, `aws_account_id` shared config, or the `account_id` Client configuration option.
157
+
158
+ * Feature - Support Account ID endpoint mode using `ENV['AWS_ACCOUNT_ID_ENDPOINT_MODE']`, `aws_account_id_endpoint_mode` shared config, or the `account_id_endpoint_mode` Client configuration option. Defaults to `preferred`, which will use the account id endpoint if available. Set to `disabled` to disable account id endpoints. Set to `required` to require account id endpoint usage; an error is raised if credentials do not have an account id.
159
+
160
+ 3.206.0 (2024-09-17)
161
+ ------------------
162
+
163
+ * Feature - Support `sigv4a` endpoint auth without CRT.
164
+
165
+ 3.205.0 (2024-09-11)
166
+ ------------------
167
+
168
+ * Feature - Updated Aws::STS::Client with the latest API changes.
169
+
170
+ * Feature - Updated Aws::SSOOIDC::Client with the latest API changes.
171
+
172
+ * Feature - Updated Aws::SSO::Client with the latest API changes.
173
+
174
+ * Issue - Additional metrics collection in the User-Agent plugin.
175
+
176
+ 3.204.0 (2024-09-10)
177
+ ------------------
178
+
179
+ * Feature - Updated Aws::STS::Client with the latest API changes.
180
+
181
+ * Feature - Updated Aws::SSOOIDC::Client with the latest API changes.
182
+
183
+ * Feature - Updated Aws::SSO::Client with the latest API changes.
184
+
185
+ * Issue - Add support for `ssl_cert` and `ssl_key` configuration options to support mTLS.
186
+
187
+ 3.203.0 (2024-09-03)
188
+ ------------------
189
+
190
+ * Feature - Updated Aws::STS::Client with the latest API changes.
191
+
192
+ * Feature - Updated Aws::SSOOIDC::Client with the latest API changes.
193
+
194
+ * Feature - Updated Aws::SSO::Client with the latest API changes.
195
+
196
+ * Feature - Add support for Observability which includes a configuration, `telemetry_provider` and an OpenTelemetry-based telemetry provider.
197
+
198
+ 3.202.2 (2024-08-30)
199
+ ------------------
200
+
201
+ * Issue - revert auto-loading of bundled gems.
202
+
203
+ 3.202.1 (2024-08-29)
204
+ ------------------
205
+
206
+ * Issue - require default plugins when loading aws-sdk-core.
207
+
208
+ 3.202.0 (2024-08-27)
209
+ ------------------
210
+
211
+ * Feature - Updated Aws::STS::Client with the latest API changes.
212
+
213
+ * Feature - Updated Aws::SSOOIDC::Client with the latest API changes.
214
+
215
+ * Feature - Updated Aws::SSO::Client with the latest API changes.
216
+
217
+ * Issue - Reduce initial memory usage by auto-loading bundled gems (STS, SSO, SSOOIDC).
218
+
219
+ 3.201.5 (2024-08-15)
220
+ ------------------
221
+
222
+ * Issue - Allow legacy/undocumented `sigv4_signer` configuration to override resolved signer.
223
+
224
+ * Issue - Consider sigv4a supported without crt check.
225
+
226
+ 3.201.4 (2024-08-08)
227
+ ------------------
228
+
229
+ * Issue - Update waiters to handle expected boolean values when matching errors.
230
+
231
+ 3.201.3 (2024-07-23)
232
+ ------------------
233
+
234
+ * Issue - Add `disableNormalizePath` when resolving auth_scheme for S3.
235
+
236
+ 3.201.2 (2024-07-18)
237
+ ------------------
238
+
239
+ * Issue - Allow modeled types to be used for Union inputs.
240
+ * Issue - Ensure that nested sensitive members and sensitive members of lists and maps are filtered.
241
+
242
+ 3.201.1 (2024-07-05)
243
+ ------------------
244
+
245
+ * Issue - Fix `Aws::ProcessCredentials` warning in cases where shared config is used.
246
+
247
+ 3.201.0 (2024-07-02)
248
+ ------------------
249
+
250
+ * Feature - Updated Aws::STS::Client with the latest API changes.
251
+
252
+ * Feature - Updated Aws::SSOOIDC::Client with the latest API changes.
253
+
254
+ * Feature - Updated Aws::SSO::Client with the latest API changes.
255
+
256
+ * Feature - Support `auth` trait to enable SigV4a based services.
257
+
258
+ * Feature - Support configuration for sigv4a signing regions using `ENV['AWS_SIGV4A_SIGNING_REGION_SET']`, `sigv4a_signing_region_set` shared config, or the `sigv4a_signing_region_set` client option.
259
+
260
+ 3.200.0 (2024-06-28)
261
+ ------------------
262
+
263
+ * Feature - Updated Aws::STS::Client with the latest API changes.
264
+
265
+ * Feature - Updated Aws::SSOOIDC::Client with the latest API changes.
266
+
267
+ * Feature - Updated Aws::SSO::Client with the latest API changes.
268
+
269
+ 3.199.0 (2024-06-25)
270
+ ------------------
271
+
272
+ * Feature - Support RpcV2 protocol.
273
+
274
+ * Feature - Add CBOR encoder and decoder.
275
+
276
+ * Issue - Enhance, refactor, and rebase protocols to be consistent. Ensure protocol tests are run for each engine.
277
+
278
+ 3.198.0 (2024-06-24)
279
+ ------------------
280
+
281
+ * Feature - Updated Aws::STS::Client with the latest API changes.
282
+
283
+ * Feature - Updated Aws::SSOOIDC::Client with the latest API changes.
284
+
285
+ * Feature - Updated Aws::SSO::Client with the latest API changes.
286
+
287
+ * Feature - Support `:plugins` option on all Clients or using `Aws.config[:plugins]`.
288
+
289
+ 3.197.2 (2024-06-20)
290
+ ------------------
291
+
292
+ * Issue - fix issue in Endpoint `attr` matcher when path is only an array index.
293
+
294
+ * Issue - Fix trailing slash in endpoint URLs for rest-json and rest-xml services.
295
+
296
+ 3.197.1 (2024-06-19)
297
+ ------------------
298
+
299
+ * Issue - Support an array of string arguments for `Aws::ProcessCredentials` to be executed by `system`.
300
+
4
301
  3.197.0 (2024-06-05)
5
302
  ------------------
6
303
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 3.197.0
1
+ 3.220.0
@@ -128,8 +128,7 @@ module Aws
128
128
  "override" => 3100
129
129
  }
130
130
  },
131
- "in-region" => {
132
- },
131
+ "in-region" => {},
133
132
  "cross-region" => {
134
133
  "connectTimeoutInMillis" => {
135
134
  "override" => 3100
data/lib/aws-defaults.rb CHANGED
@@ -1,3 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- require_relative 'aws-defaults/default_configuration'
3
+ module Aws
4
+ autoload :DefaultsModeConfiguration, 'aws-defaults/default_configuration'
5
+ autoload :DefaultsModeConfigResolver, 'aws-defaults/defaults_mode_config_resolver'
6
+ end
@@ -24,9 +24,7 @@ module Aws
24
24
  # arn.resource
25
25
  # # => foo/bar
26
26
  #
27
- # # Note: parser available for parsing resource details
28
- # @see Aws::ARNParser#parse_resource
29
- #
27
+ # @see ARNParser
30
28
  # @see https://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html#genref-arns
31
29
  class ARN
32
30
 
@@ -62,13 +62,20 @@ module Aws
62
62
  private
63
63
 
64
64
  def refresh
65
- c = @client.assume_role(@assume_role_params).credentials
65
+ resp = @client.assume_role(@assume_role_params)
66
+ creds = resp.credentials
66
67
  @credentials = Credentials.new(
67
- c.access_key_id,
68
- c.secret_access_key,
69
- c.session_token
68
+ creds.access_key_id,
69
+ creds.secret_access_key,
70
+ creds.session_token,
71
+ account_id: parse_account_id(resp)
70
72
  )
71
- @expiration = c.expiration
73
+ @expiration = creds.expiration
74
+ end
75
+
76
+ def parse_account_id(resp)
77
+ arn = resp.assumed_role_user&.arn
78
+ ARNParser.parse(arn).account_id if ARNParser.arn?(arn)
72
79
  end
73
80
 
74
81
  class << self
@@ -60,7 +60,7 @@ module Aws
60
60
  # not provided, generate encoded UUID as session name
61
61
  @assume_role_web_identity_params[:role_session_name] = _session_name
62
62
  end
63
- @client = client_opts[:client] || STS::Client.new(client_opts.merge(credentials: false))
63
+ @client = client_opts[:client] || STS::Client.new(client_opts.merge(credentials: nil))
64
64
  super
65
65
  end
66
66
 
@@ -73,14 +73,15 @@ module Aws
73
73
  # read from token file everytime it refreshes
74
74
  @assume_role_web_identity_params[:web_identity_token] = _token_from_file(@token_file)
75
75
 
76
- c = @client.assume_role_with_web_identity(
77
- @assume_role_web_identity_params).credentials
76
+ resp = @client.assume_role_with_web_identity(@assume_role_web_identity_params)
77
+ creds = resp.credentials
78
78
  @credentials = Credentials.new(
79
- c.access_key_id,
80
- c.secret_access_key,
81
- c.session_token
79
+ creds.access_key_id,
80
+ creds.secret_access_key,
81
+ creds.session_token,
82
+ account_id: parse_account_id(resp)
82
83
  )
83
- @expiration = c.expiration
84
+ @expiration = creds.expiration
84
85
  end
85
86
 
86
87
  def _token_from_file(path)
@@ -94,6 +95,11 @@ module Aws
94
95
  Base64.strict_encode64(SecureRandom.uuid)
95
96
  end
96
97
 
98
+ def parse_account_id(resp)
99
+ arn = resp.assumed_role_user&.arn
100
+ ARNParser.parse(arn).account_id if ARNParser.arn?(arn)
101
+ end
102
+
97
103
  class << self
98
104
 
99
105
  # @api private
@@ -22,12 +22,11 @@ module Aws
22
22
  end
23
23
 
24
24
  def attach_eventstream_listeners(context, rules)
25
-
26
25
  context.http_response.on_headers(200) do
27
- protocol = context.config.api.metadata['protocol']
28
- output_handler = context[:output_event_stream_handler] || context[:event_stream_handler]
26
+ output_handler = context[:output_event_stream_handler] ||
27
+ context[:event_stream_handler]
29
28
  context.http_response.body = EventStreamDecoder.new(
30
- protocol,
29
+ context.config.protocol,
31
30
  rules,
32
31
  context.operation.output,
33
32
  context.operation.errors,
@@ -10,7 +10,7 @@ module Aws
10
10
  if eventstream_member = eventstream_input?(context)
11
11
  input_es_handler = context[:input_event_stream_handler]
12
12
  input_es_handler.event_emitter.encoder = EventStreamEncoder.new(
13
- context.config.api.metadata['protocol'],
13
+ context.config.protocol,
14
14
  eventstream_member,
15
15
  context.operation.input,
16
16
  signer_for(context)
@@ -47,6 +47,7 @@ module Aws
47
47
  when 'rest-xml' then Aws::Xml::Parser
48
48
  when 'rest-json' then Aws::Json::Parser
49
49
  when 'json' then Aws::Json::Parser
50
+ when 'smithy-rpc-v2-cbor' then Aws::RpcV2::Parser
50
51
  else raise "unsupported protocol #{protocol} for event stream"
51
52
  end
52
53
  end
@@ -43,9 +43,10 @@ module Aws
43
43
 
44
44
  def serializer_class(protocol)
45
45
  case protocol
46
- when 'rest-xml' then Xml::Builder
47
- when 'rest-json' then Json::Builder
48
- when 'json' then Json::Builder
46
+ when 'rest-xml' then Aws::Xml::Builder
47
+ when 'rest-json' then Aws::Json::Builder
48
+ when 'json' then Aws::Json::Builder
49
+ when 'smithy-rpc-v2-cbor' then Aws::RpcV2::Builder
49
50
  else raise "unsupported protocol #{protocol} for event stream"
50
51
  end
51
52
  end