aws-sdk-core 3.125.6 → 3.188.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (109) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +533 -0
  3. data/VERSION +1 -1
  4. data/lib/aws-defaults/default_configuration.rb +4 -4
  5. data/lib/aws-sdk-core/arn.rb +13 -0
  6. data/lib/aws-sdk-core/assume_role_credentials.rb +21 -7
  7. data/lib/aws-sdk-core/assume_role_web_identity_credentials.rb +14 -10
  8. data/lib/aws-sdk-core/binary/encode_handler.rb +12 -1
  9. data/lib/aws-sdk-core/client_stubs.rb +5 -1
  10. data/lib/aws-sdk-core/credential_provider.rb +3 -0
  11. data/lib/aws-sdk-core/credential_provider_chain.rb +8 -5
  12. data/lib/aws-sdk-core/ec2_metadata.rb +3 -2
  13. data/lib/aws-sdk-core/ecs_credentials.rb +186 -52
  14. data/lib/aws-sdk-core/endpoints/condition.rb +41 -0
  15. data/lib/aws-sdk-core/endpoints/endpoint.rb +17 -0
  16. data/lib/aws-sdk-core/endpoints/endpoint_rule.rb +75 -0
  17. data/lib/aws-sdk-core/endpoints/error_rule.rb +42 -0
  18. data/lib/aws-sdk-core/endpoints/function.rb +80 -0
  19. data/lib/aws-sdk-core/endpoints/matchers.rb +131 -0
  20. data/lib/aws-sdk-core/endpoints/reference.rb +31 -0
  21. data/lib/aws-sdk-core/endpoints/rule.rb +25 -0
  22. data/lib/aws-sdk-core/endpoints/rule_set.rb +52 -0
  23. data/lib/aws-sdk-core/endpoints/rules_provider.rb +37 -0
  24. data/lib/aws-sdk-core/endpoints/templater.rb +58 -0
  25. data/lib/aws-sdk-core/endpoints/tree_rule.rb +45 -0
  26. data/lib/aws-sdk-core/endpoints/url.rb +60 -0
  27. data/lib/aws-sdk-core/endpoints.rb +78 -0
  28. data/lib/aws-sdk-core/errors.rb +14 -1
  29. data/lib/aws-sdk-core/ini_parser.rb +7 -0
  30. data/lib/aws-sdk-core/instance_profile_credentials.rb +124 -31
  31. data/lib/aws-sdk-core/json/error_handler.rb +20 -1
  32. data/lib/aws-sdk-core/json/handler.rb +8 -1
  33. data/lib/aws-sdk-core/json/parser.rb +27 -2
  34. data/lib/aws-sdk-core/log/formatter.rb +6 -0
  35. data/lib/aws-sdk-core/pageable_response.rb +81 -32
  36. data/lib/aws-sdk-core/param_validator.rb +2 -2
  37. data/lib/aws-sdk-core/plugins/bearer_authorization.rb +67 -0
  38. data/lib/aws-sdk-core/plugins/checksum_algorithm.rb +340 -0
  39. data/lib/aws-sdk-core/plugins/credentials_configuration.rb +24 -0
  40. data/lib/aws-sdk-core/plugins/endpoint_discovery.rb +6 -2
  41. data/lib/aws-sdk-core/plugins/http_checksum.rb +8 -1
  42. data/lib/aws-sdk-core/plugins/jsonvalue_converter.rb +34 -6
  43. data/lib/aws-sdk-core/plugins/recursion_detection.rb +38 -0
  44. data/lib/aws-sdk-core/plugins/regional_endpoint.rb +111 -30
  45. data/lib/aws-sdk-core/plugins/request_compression.rb +217 -0
  46. data/lib/aws-sdk-core/plugins/response_paging.rb +1 -1
  47. data/lib/aws-sdk-core/plugins/retries/error_inspector.rb +3 -2
  48. data/lib/aws-sdk-core/plugins/retry_errors.rb +12 -2
  49. data/lib/aws-sdk-core/plugins/sign.rb +201 -0
  50. data/lib/aws-sdk-core/plugins/signature_v2.rb +1 -0
  51. data/lib/aws-sdk-core/plugins/signature_v4.rb +15 -8
  52. data/lib/aws-sdk-core/plugins/stub_responses.rb +5 -1
  53. data/lib/aws-sdk-core/plugins/user_agent.rb +117 -14
  54. data/lib/aws-sdk-core/process_credentials.rb +9 -11
  55. data/lib/aws-sdk-core/refreshing_credentials.rb +41 -16
  56. data/lib/aws-sdk-core/refreshing_token.rb +71 -0
  57. data/lib/aws-sdk-core/rest/handler.rb +1 -1
  58. data/lib/aws-sdk-core/rest/request/headers.rb +2 -6
  59. data/lib/aws-sdk-core/rest/request/querystring_builder.rb +43 -29
  60. data/lib/aws-sdk-core/shared_config.rb +107 -12
  61. data/lib/aws-sdk-core/sso_credentials.rb +91 -50
  62. data/lib/aws-sdk-core/sso_token_provider.rb +135 -0
  63. data/lib/aws-sdk-core/static_token_provider.rb +14 -0
  64. data/lib/aws-sdk-core/structure.rb +6 -4
  65. data/lib/aws-sdk-core/stubbing/stub_data.rb +11 -0
  66. data/lib/aws-sdk-core/token.rb +31 -0
  67. data/lib/aws-sdk-core/token_provider.rb +15 -0
  68. data/lib/aws-sdk-core/token_provider_chain.rb +51 -0
  69. data/lib/aws-sdk-core/waiters/poller.rb +3 -1
  70. data/lib/aws-sdk-core/xml/error_handler.rb +7 -0
  71. data/lib/aws-sdk-core/xml/parser/engines/oga.rb +2 -0
  72. data/lib/aws-sdk-core.rb +14 -0
  73. data/lib/aws-sdk-sso/client.rb +75 -11
  74. data/lib/aws-sdk-sso/endpoint_parameters.rb +66 -0
  75. data/lib/aws-sdk-sso/endpoint_provider.rb +57 -0
  76. data/lib/aws-sdk-sso/endpoints.rb +72 -0
  77. data/lib/aws-sdk-sso/plugins/endpoints.rb +76 -0
  78. data/lib/aws-sdk-sso/types.rb +8 -43
  79. data/lib/aws-sdk-sso.rb +5 -1
  80. data/lib/aws-sdk-ssooidc/client.rb +935 -0
  81. data/lib/aws-sdk-ssooidc/client_api.rb +271 -0
  82. data/lib/aws-sdk-ssooidc/customizations.rb +1 -0
  83. data/lib/aws-sdk-ssooidc/endpoint_parameters.rb +66 -0
  84. data/lib/aws-sdk-ssooidc/endpoint_provider.rb +57 -0
  85. data/lib/aws-sdk-ssooidc/endpoints.rb +72 -0
  86. data/lib/aws-sdk-ssooidc/errors.rb +321 -0
  87. data/lib/aws-sdk-ssooidc/plugins/endpoints.rb +76 -0
  88. data/lib/aws-sdk-ssooidc/resource.rb +26 -0
  89. data/lib/aws-sdk-ssooidc/types.rb +755 -0
  90. data/lib/aws-sdk-ssooidc.rb +59 -0
  91. data/lib/aws-sdk-sts/client.rb +330 -262
  92. data/lib/aws-sdk-sts/client_api.rb +12 -1
  93. data/lib/aws-sdk-sts/endpoint_parameters.rb +78 -0
  94. data/lib/aws-sdk-sts/endpoint_provider.rb +112 -0
  95. data/lib/aws-sdk-sts/endpoints.rb +136 -0
  96. data/lib/aws-sdk-sts/plugins/endpoints.rb +84 -0
  97. data/lib/aws-sdk-sts/presigner.rb +14 -16
  98. data/lib/aws-sdk-sts/types.rb +135 -204
  99. data/lib/aws-sdk-sts.rb +5 -1
  100. data/lib/seahorse/client/async_base.rb +0 -1
  101. data/lib/seahorse/client/configuration.rb +1 -5
  102. data/lib/seahorse/client/h2/connection.rb +12 -11
  103. data/lib/seahorse/client/net_http/patches.rb +1 -4
  104. data/lib/seahorse/client/plugins/h2.rb +3 -3
  105. data/lib/seahorse/client/plugins/request_callback.rb +40 -9
  106. data/lib/seahorse/client/response.rb +6 -0
  107. data/lib/seahorse/model/operation.rb +6 -0
  108. data/lib/seahorse/util.rb +4 -0
  109. metadata +59 -9
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 7697e88b23e150cf35d43ec085b450e20b156027735bfc96d0ae247d7c39f0f5
4
- data.tar.gz: e2b958820fd48609f9a1533538ab105fb9513d15c68eecbc3c4314b2e5d3d986
3
+ metadata.gz: 116ce287a47541305621ccf38cc1e53f756812b453ad271432f09b149e0a6a1e
4
+ data.tar.gz: dead4ace5e8003c81b726f8d33e4d9a87ef67d4ee05f9db0a1b597a0e08efeed
5
5
  SHA512:
6
- metadata.gz: a4b344c92e66c33a08007014096ced99a8994068663f00a1b46b38826e1c801b48ec503198f290866bcabdc53791cc146097a26110b51b74f032130402c70cba
7
- data.tar.gz: 1399f142cfc9a1e9632b0d8b70b305d40cb7ef0cb57cbd763ad1d7dacba66ca7f77b1f28e6a61b8165657ea6c6ace1088b02d81ec595f00e9c9bffc89e7b8b9d
6
+ metadata.gz: 5c8e05a07f49a55341bd54cfc39da5383de63172059a51167f26d6410d94f2a2dc6b5afa184efcbd565606e82a4706804d80c7da19ee3a6e32023e743cd24651
7
+ data.tar.gz: 8e2b3599e93a1fbaa7e1db5509b76a522a0eed215b6823d92cd90575829ace8f0d647e7c936d37ce067a9a25c105761d866fb34239e426240193802aa7d28658
data/CHANGELOG.md CHANGED
@@ -1,6 +1,539 @@
1
1
  Unreleased Changes
2
2
  ------------------
3
3
 
4
+ 3.188.0 (2023-11-22)
5
+ ------------------
6
+
7
+ * Feature - AWS SDK for Ruby no longer supports Ruby runtime versions 2.3 and 2.4.
8
+
9
+ * Feature - Support `AWS_CONTAINER_AUTHORIZATION_TOKEN_FILE` in `ECSCredentials` and also allow for ECS and EKS link-local http addresses.
10
+
11
+ 3.187.1 (2023-11-20)
12
+ ------------------
13
+
14
+ * Issue - For `awsQueryCompatible` services, default an empty list or map for shapes that were previously flattened in the query protocol.
15
+
16
+ 3.187.0 (2023-11-17)
17
+ ------------------
18
+
19
+ * Feature - Updated Aws::STS::Client with the latest API changes.
20
+
21
+ * Feature - Updated Aws::SSOOIDC::Client with the latest API changes.
22
+
23
+ 3.186.0 (2023-11-02)
24
+ ------------------
25
+
26
+ * Feature - Support disabling IMDSv1 in `InstanceProfileCredentials` using `ENV['AWS_EC2_METADATA_V1_DISABLED']`, `ec2_metadata_v1_disabled` shared config, or the `disable_imds_v1` credentials option.
27
+
28
+ 3.185.2 (2023-10-31)
29
+ ------------------
30
+
31
+ * Issue - Fix query string support to lists of booleans, floats, integers and timestamps per rest-json protocol.
32
+
33
+ 3.185.1 (2023-10-05)
34
+ ------------------
35
+
36
+ * Issue - Ignore `__type` when deserializing Unions.
37
+
38
+ 3.185.0 (2023-10-02)
39
+ ------------------
40
+
41
+ * Feature - Updated Aws::STS::Client with the latest API changes.
42
+
43
+ * Feature - Updated Aws::SSO::Client with the latest API changes.
44
+
45
+ 3.184.0 (2023-09-27)
46
+ ------------------
47
+
48
+ * Feature - Change the `ServiceError` data member from read only to read/write.
49
+
50
+ 3.183.1 (2023-09-25)
51
+ ------------------
52
+
53
+ * Issue - Remove value inspection from param validation errors.
54
+
55
+ 3.183.0 (2023-09-20)
56
+ ------------------
57
+
58
+ * Feature - Updated Aws::SSOOIDC::Client with the latest API changes.
59
+
60
+ 3.182.0 (2023-09-19)
61
+ ------------------
62
+
63
+ * Feature - Updated Aws::SSOOIDC::Client with the latest API changes.
64
+
65
+ * Feature - Updated Aws::SSO::Client with the latest API changes.
66
+
67
+ 3.181.1 (2023-09-14)
68
+ ------------------
69
+
70
+ * Issue - Fix host label validation in endpoint matchers.
71
+
72
+ 3.181.0 (2023-08-22)
73
+ ------------------
74
+
75
+ * Feature - Add support for `on_chunk_received` callback.
76
+
77
+ 3.180.3 (2023-08-09)
78
+ ------------------
79
+
80
+ * Issue - Add support for sso-session names with whitespace configured by the CLI `aws sso configure` command (#2895).
81
+
82
+ 3.180.2 (2023-08-07)
83
+ ------------------
84
+
85
+ * Issue - Fix parsing of ini files with mixes of blank properties and nested configurations.
86
+
87
+ 3.180.1 (2023-07-31)
88
+ ------------------
89
+
90
+ * Issue - Remove checksums from default stubs (#2888).
91
+
92
+ 3.180.0 (2023-07-25)
93
+ ------------------
94
+
95
+ * Feature - Updated Aws::STS::Client with the latest API changes.
96
+
97
+ 3.179.0 (2023-07-24)
98
+ ------------------
99
+
100
+ * Feature - Add `checksum_validated` method to response.
101
+
102
+ 3.178.0 (2023-07-11)
103
+ ------------------
104
+
105
+ * Feature - Updated Aws::STS::Client with the latest API changes.
106
+
107
+ * Feature - Updated Aws::SSOOIDC::Client with the latest API changes.
108
+
109
+ * Feature - Updated Aws::SSO::Client with the latest API changes.
110
+
111
+ * Feature - Add support for configuring the endpoint URL in the shared configuration file or via an environment variable for a specific AWS service or all AWS services.
112
+
113
+ 3.177.0 (2023-07-06)
114
+ ------------------
115
+
116
+ * Feature - Updated Aws::STS::Client with the latest API changes.
117
+
118
+ * Feature - Updated Aws::SSOOIDC::Client with the latest API changes.
119
+
120
+ * Feature - Updated Aws::SSO::Client with the latest API changes.
121
+
122
+ * Feature - Add support for Request Compression.
123
+
124
+ 3.176.1 (2023-06-29)
125
+ ------------------
126
+
127
+ * Issue - Fix signing for S3/S3 Control and `aws-crt` gem for certain object keys (#2849).
128
+
129
+ * Issue - Ensure `SSOCredentials` `#expiration` is a `Time` (#2874)
130
+
131
+ 3.176.0 (2023-06-28)
132
+ ------------------
133
+
134
+ * Feature - Add :expiration accessor to `CredentialProvider` and do not refresh credentials when checking expiration (#2872).
135
+
136
+ 3.175.0 (2023-06-15)
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
+ 3.174.0 (2023-05-31)
146
+ ------------------
147
+
148
+ * Feature - Updated Aws::STS::Client with the latest API changes.
149
+
150
+ * Feature - Updated Aws::SSOOIDC::Client with the latest API changes.
151
+
152
+ * Feature - Updated Aws::SSO::Client with the latest API changes.
153
+
154
+ * Feature - Improve User-Agent metrics tracking.
155
+
156
+ 3.173.1 (2023-05-24)
157
+ ------------------
158
+
159
+ * Issue - Updated `checksum_algorithm` plugin to use IO.copy_stream for JRuby.
160
+
161
+ 3.173.0 (2023-05-18)
162
+ ------------------
163
+
164
+ * Feature - Updated Aws::STS::Client with the latest API changes.
165
+
166
+ 3.172.0 (2023-05-08)
167
+ ------------------
168
+
169
+ * Feature - Updated Aws::STS::Client with the latest API changes.
170
+
171
+ * Feature - Add :region option to `Aws::Log::Formatter`.
172
+
173
+ 3.171.1 (2023-05-04)
174
+ ------------------
175
+
176
+ * Issue - Fix error code parsing in AWS query compatible JSON services.
177
+
178
+ 3.171.0 (2023-03-22)
179
+ ------------------
180
+
181
+ * Feature - Add support for `AWS_CONTAINER_CREDENTIALS_FULL_URI` and `AWS_CONTAINER_AUTHORIZATION_TOKEN` environment variables to `ECSCredentials`.
182
+
183
+ 3.170.1 (2023-03-17)
184
+ ------------------
185
+
186
+ * Issue - Reduce memory usage in H2::Connection when `http_wire_log` is not set.
187
+
188
+ 3.170.0 (2023-01-25)
189
+ ------------------
190
+
191
+ * Feature - Updated Aws::STS::Client with the latest API changes.
192
+
193
+ 3.169.0 (2023-01-18)
194
+ ------------------
195
+
196
+ * Feature - Updated Aws::STS::Client with the latest API changes.
197
+
198
+ * Feature - Updated Aws::SSOOIDC::Client with the latest API changes.
199
+
200
+ * Feature - Updated Aws::SSO::Client with the latest API changes.
201
+
202
+ * Issue - Replace runtime endpoint resolution approach with generated ruby code for STS, SSO, and SSOOIDC.
203
+
204
+ 3.168.4 (2022-12-08)
205
+ ------------------
206
+
207
+ * Issue - Fix Sign to not sign Sigv2 requests to S3.
208
+
209
+ 3.168.3 (2022-12-02)
210
+ ------------------
211
+
212
+ * Issue - Retry S3's `BadDigest` error
213
+
214
+ 3.168.2 (2022-11-29)
215
+ ------------------
216
+
217
+ * Issue - Allow region resolution in `AssumeRoleCredentials` from `CredentialProviderChain`.
218
+
219
+ 3.168.1 (2022-11-18)
220
+ ------------------
221
+
222
+ * Issue - Fix initialization of SSOTokenProvider when `AWS_PROFILE` is specified.
223
+
224
+ 3.168.0 (2022-11-17)
225
+ ------------------
226
+
227
+ * Feature - Updated Aws::STS::Client with the latest API changes.
228
+
229
+ 3.167.0 (2022-11-09)
230
+ ------------------
231
+
232
+ * Issue - Ensure the stream_thread is not killed before H2 connection status is updated (#2779).
233
+
234
+ * Feature - Add token refresh support to `SSOCredentialProvider`.
235
+
236
+ 3.166.0 (2022-10-26)
237
+ ------------------
238
+
239
+ * Feature - Updated Aws::STS::Client with the latest API changes.
240
+
241
+ * Feature - Updated Aws::SSOOIDC::Client with the latest API changes.
242
+
243
+ * Feature - Updated Aws::SSO::Client with the latest API changes.
244
+
245
+ 3.165.1 (2022-10-25)
246
+ ------------------
247
+
248
+ * Issue - Require the SignatureV4 plugin to fix compatability with older `aws-sdk-s3` versions (#2774).
249
+
250
+ 3.165.0 (2022-10-25)
251
+ ------------------
252
+
253
+ * Feature - Updated Aws::SSOOIDC::Client with the latest API changes.
254
+
255
+ * Feature - Updated Aws::SSO::Client with the latest API changes.
256
+
257
+ * Feature - Add support for service gems to dynamically determine their own endpoints via modeling. Service gems now generate a plugin called "Endpoints" that defines configuration for EndpointProvider, a new public type, and any client config related to endpoints. Endpoint providers will resolve values using another new public type, Endpoint Parameters, generated for each service. The plugin will use the endpoint provider to resolve an endpoint and then apply it to the request prior to serialization. Endpoint providers can be composed to change endpoint resolution logic, i.e. for testing. In addition to endpoints, the endpoint provider may also override the authentication scheme (auth scheme) which details how the request should be signed for the endpoint. A new "Sign" plugin in core replaces the SignatureV4 plugin that will generically sign any type of auth scheme that a service might have.
258
+
259
+ 3.164.0 (2022-10-21)
260
+ ------------------
261
+
262
+ * Feature - Updated Aws::SSOOIDC::Client with the latest API changes.
263
+
264
+ 3.163.0 (2022-10-20)
265
+ ------------------
266
+
267
+ * Feature - Updated Aws::SSOOIDC::Client with the latest API changes.
268
+
269
+ 3.162.0 (2022-10-19)
270
+ ------------------
271
+
272
+ * Feature - Updated Aws::SSOOIDC::Client with the latest API changes.
273
+
274
+ 3.161.0 (2022-10-18)
275
+ ------------------
276
+
277
+ * Feature - Support AwsQueryCompatible trait to read error code from x-amzn-query-error header.
278
+
279
+ 3.160.0 (2022-10-13)
280
+ ------------------
281
+
282
+ * Feature - Updated Aws::SSO::Client with the latest API changes.
283
+
284
+ 3.159.0 (2022-10-07)
285
+ ------------------
286
+
287
+ * Feature - Updated Aws::SSO::Client with the latest API changes.
288
+
289
+ 3.158.1 (2022-10-06)
290
+ ------------------
291
+
292
+ * Issue - Ensure that the ReadCallbackIO is always unwrapped (#2761).
293
+
294
+ 3.158.0 (2022-09-30)
295
+ ------------------
296
+
297
+ * Feature - Updated Aws::SSO::Client with the latest API changes.
298
+
299
+ 3.157.0 (2022-09-29)
300
+ ------------------
301
+
302
+ * Feature - Updated Aws::SSO::Client with the latest API changes.
303
+
304
+ 3.156.0 (2022-09-27)
305
+ ------------------
306
+
307
+ * Feature - Updated Aws::SSO::Client with the latest API changes.
308
+
309
+ 3.155.0 (2022-09-26)
310
+ ------------------
311
+
312
+ * Feature - Updated Aws::SSO::Client with the latest API changes.
313
+
314
+ 3.154.0 (2022-09-23)
315
+ ------------------
316
+
317
+ * Feature - Updated Aws::SSO::Client with the latest API changes.
318
+
319
+ 3.153.0 (2022-09-22)
320
+ ------------------
321
+
322
+ * Feature - Updated Aws::SSO::Client with the latest API changes.
323
+
324
+ 3.152.0 (2022-09-21)
325
+ ------------------
326
+
327
+ * Feature - Updated Aws::SSO::Client with the latest API changes.
328
+
329
+ 3.151.0 (2022-09-20)
330
+ ------------------
331
+
332
+ * Feature - Updated Aws::SSO::Client with the latest API changes.
333
+
334
+ 3.150.0 (2022-09-19)
335
+ ------------------
336
+
337
+ * Feature - Updated Aws::SSO::Client with the latest API changes.
338
+
339
+ 3.149.0 (2022-09-16)
340
+ ------------------
341
+
342
+ * Feature - Updated Aws::SSO::Client with the latest API changes.
343
+
344
+ 3.148.0 (2022-09-15)
345
+ ------------------
346
+
347
+ * Feature - Updated Aws::SSO::Client with the latest API changes.
348
+
349
+ 3.147.0 (2022-09-14)
350
+ ------------------
351
+
352
+ * Feature - Updated Aws::SSO::Client with the latest API changes.
353
+
354
+ 3.146.0 (2022-09-13)
355
+ ------------------
356
+
357
+ * Feature - Updated Aws::SSO::Client with the latest API changes.
358
+
359
+ 3.145.0 (2022-09-12)
360
+ ------------------
361
+
362
+ * Feature - Updated Aws::SSO::Client with the latest API changes.
363
+
364
+ 3.144.0 (2022-09-09)
365
+ ------------------
366
+
367
+ * Feature - Updated Aws::SSO::Client with the latest API changes.
368
+
369
+ 3.143.0 (2022-09-08)
370
+ ------------------
371
+
372
+ * Feature - Updated Aws::SSO::Client with the latest API changes.
373
+
374
+ 3.142.0 (2022-09-07)
375
+ ------------------
376
+
377
+ * Feature - Updated Aws::SSO::Client with the latest API changes.
378
+
379
+ 3.141.0 (2022-09-06)
380
+ ------------------
381
+
382
+ * Feature - Updated Aws::SSO::Client with the latest API changes.
383
+
384
+ 3.140.0 (2022-09-02)
385
+ ------------------
386
+
387
+ * Feature - Updated Aws::SSO::Client with the latest API changes.
388
+
389
+ 3.139.0 (2022-09-01)
390
+ ------------------
391
+
392
+ * Feature - Updated Aws::SSO::Client with the latest API changes.
393
+
394
+ 3.138.0 (2022-08-31)
395
+ ------------------
396
+
397
+ * Feature - Updated Aws::SSO::Client with the latest API changes.
398
+
399
+ 3.137.0 (2022-08-30)
400
+ ------------------
401
+
402
+ * Feature - Updated Aws::SSO::Client with the latest API changes.
403
+
404
+ * Issue - Fix errors in recursion detection when `_X_AMZN_TRACE_ID` is unset (#2748).
405
+
406
+ 3.136.0 (2022-08-25)
407
+ ------------------
408
+
409
+ * Feature - Updated Aws::SSO::Client with the latest API changes.
410
+
411
+ * Feature - Updated Aws::SSOOIDC::Client with the latest API changes.
412
+
413
+ 3.135.0 (2022-08-24)
414
+ ------------------
415
+
416
+ * Feature - Updated Aws::SSO::Client with the latest API changes.
417
+
418
+ 3.134.0 (2022-08-23)
419
+ ------------------
420
+
421
+ * Feature - Updated Aws::SSO::Client with the latest API changes.
422
+
423
+ * Feature - Add support for Bearer Token Authentication and TokenProviders.
424
+
425
+ * Issue - Validate that `_X_AMZN_TRACE_ID` ENV value contains only valid, non-control characters.
426
+
427
+ 3.133.0 (2022-08-22)
428
+ ------------------
429
+
430
+ * Feature - Moved functionality from `aws-sdk-ssooidc` into core.
431
+
432
+ 3.132.0 (2022-08-08)
433
+ ------------------
434
+
435
+ * Feature - Updated Aws::SSO::Client with the latest API changes.
436
+
437
+ 3.131.6 (2022-08-03)
438
+ ------------------
439
+
440
+ * Issue - Fix typo in `RecursionDetection`, change amz to amzn in header and env name.
441
+
442
+ 3.131.5 (2022-07-28)
443
+ ------------------
444
+
445
+ * Issue - Fix `to_json` usage in nested hashes by defining `as_json` (#2733).
446
+
447
+ 3.131.4 (2022-07-27)
448
+ ------------------
449
+
450
+ * Issue - Fix `to_json` usage on pageable responses when using Rails (#2733).
451
+ * Issue - Use `expand_path` on credential/config paths in SharedConfig (#2735).
452
+
453
+ 3.131.3 (2022-07-18)
454
+ ------------------
455
+
456
+ * Issue - Add support for serializing shapes on the body with `jsonvalue` members.
457
+
458
+ 3.131.2 (2022-06-20)
459
+ ------------------
460
+
461
+ * Issue - Populate context :request_id for XML error responses.
462
+
463
+ 3.131.1 (2022-05-20)
464
+ ------------------
465
+
466
+ * Issue - Bump the minimum version of `jmespath` dependency.
467
+
468
+ 3.131.0 (2022-05-16)
469
+ ------------------
470
+
471
+ * Feature - Updated Aws::STS::Client with the latest API changes.
472
+
473
+ 3.130.2 (2022-04-22)
474
+ ------------------
475
+
476
+ * Issue - Don't pass `:before_refresh` to Client constructors in RefreshingCredential implementations (#2690).
477
+
478
+ 3.130.1 (2022-04-12)
479
+ ------------------
480
+
481
+ * Issue - Don't call `refresh!` on non-refreshable `Credentials` when retrying errors (#2685).
482
+
483
+ 3.130.0 (2022-03-11)
484
+ ------------------
485
+
486
+ * Feature - Asynchronously refresh AWS credentials (#2641).
487
+
488
+ * Issue - Add x-amz-region-set to list of headers deleted for re-sign.
489
+
490
+ 3.129.1 (2022-03-10)
491
+ ------------------
492
+
493
+ * Issue - Make stubs thread safe by creating new responses for each operation call (#2675).
494
+
495
+ 3.129.0 (2022-03-08)
496
+ ------------------
497
+
498
+ * Feature - Add support for cases when `InstanceProfileCredentials` (IMDS) is unable to refresh credentials.
499
+
500
+ 3.128.1 (2022-03-07)
501
+ ------------------
502
+
503
+ * Issue - Fixed `Aws::PageableResponse` invalidating Ruby's global constant cache.
504
+
505
+ 3.128.0 (2022-03-04)
506
+ ------------------
507
+
508
+ * Feature - Updated Aws::STS::Client with the latest API changes.
509
+
510
+ 3.127.0 (2022-02-24)
511
+ ------------------
512
+
513
+ * Feature - Updated Aws::STS::Client with the latest API changes.
514
+
515
+ * Feature - Updated Aws::SSO::Client with the latest API changes.
516
+
517
+ * Feature - Support `HttpChecksum` trait for requests and responses.
518
+
519
+ 3.126.2 (2022-02-16)
520
+ ------------------
521
+
522
+ * Issue - Add a before_refresh callback to AssumeRoleCredentials (#2529).
523
+ * Issue - Raise a `NoSuchProfileError` when config and credentials files don't exist.
524
+
525
+ 3.126.1 (2022-02-14)
526
+ ------------------
527
+
528
+ * Issue - Set `create_time` on IMDS tokens before fetch to reduce chance of using expired tokens and retry failures due to using expired tokens.
529
+
530
+ 3.126.0 (2022-02-03)
531
+ ------------------
532
+
533
+ * Feature - Updated Aws::SSO::Client with the latest API changes.
534
+
535
+ * Feature - Add support for recursion detection.
536
+
4
537
  3.125.6 (2022-02-02)
5
538
  ------------------
6
539
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 3.125.6
1
+ 3.188.0
@@ -20,7 +20,7 @@ module Aws
20
20
  # * Globally via the "AWS_DEFAULTS_MODE" environment variable.
21
21
  #
22
22
  #
23
- # @code_generation START - documentation
23
+ # #defaults START - documentation
24
24
  # The following `:default_mode` values are supported:
25
25
  #
26
26
  # * `'standard'` -
@@ -105,10 +105,10 @@ module Aws
105
105
  # [2]: https://docs.aws.amazon.com/sdkref/latest/guide/setting-global-retry_mode.html
106
106
  # [3]: https://docs.aws.amazon.com/sdkref/latest/guide/setting-global-sts_regional_endpoints.html
107
107
  #
108
- # @code_generation END - documentation
108
+ # #defaults END - documentation
109
109
  module DefaultsModeConfiguration
110
110
  # @api private
111
- # @code_generation START - configuration
111
+ # #defaults START - configuration
112
112
  SDK_DEFAULT_CONFIGURATION =
113
113
  {
114
114
  "version" => 1,
@@ -148,6 +148,6 @@ module Aws
148
148
  }
149
149
  }
150
150
  }
151
- # @code_generation END - configuration
151
+ # #defaults END - configuration
152
152
  end
153
153
  end
@@ -88,5 +88,18 @@ module Aws
88
88
  resource: @resource
89
89
  }
90
90
  end
91
+
92
+ # Return the ARN as JSON
93
+ #
94
+ # @return [Hash]
95
+ def as_json(_options = nil)
96
+ {
97
+ 'partition' => @partition,
98
+ 'service' => @service,
99
+ 'region' => @region,
100
+ 'accountId' => @account_id,
101
+ 'resource' => @resource
102
+ }
103
+ end
91
104
  end
92
105
  end
@@ -3,20 +3,20 @@
3
3
  require 'set'
4
4
 
5
5
  module Aws
6
-
7
- # An auto-refreshing credential provider that works by assuming
8
- # a role via {Aws::STS::Client#assume_role}.
6
+ # An auto-refreshing credential provider that assumes a role via
7
+ # {Aws::STS::Client#assume_role}.
9
8
  #
10
9
  # role_credentials = Aws::AssumeRoleCredentials.new(
11
10
  # client: Aws::STS::Client.new(...),
12
11
  # role_arn: "linked::account::arn",
13
12
  # role_session_name: "session-name"
14
13
  # )
15
- #
16
14
  # ec2 = Aws::EC2::Client.new(credentials: role_credentials)
17
15
  #
18
- # If you omit `:client` option, a new {STS::Client} object will be
19
- # constructed.
16
+ # If you omit `:client` option, a new {Aws::STS::Client} object will be
17
+ # constructed with additional options that were provided.
18
+ #
19
+ # @see Aws::STS::Client#assume_role
20
20
  class AssumeRoleCredentials
21
21
 
22
22
  include CredentialProvider
@@ -28,23 +28,37 @@ module Aws
28
28
  # @option options [Integer] :duration_seconds
29
29
  # @option options [String] :external_id
30
30
  # @option options [STS::Client] :client
31
+ # @option options [Callable] before_refresh Proc called before
32
+ # credentials are refreshed. Useful for updating tokens.
33
+ # `before_refresh` is called when AWS credentials are
34
+ # required and need to be refreshed. Tokens can be refreshed using
35
+ # the following example:
36
+ #
37
+ # before_refresh = Proc.new do |assume_role_credentials| do
38
+ # assume_role_credentials.assume_role_params['token_code'] = update_token
39
+ # end
40
+ #
31
41
  def initialize(options = {})
32
42
  client_opts = {}
33
43
  @assume_role_params = {}
34
44
  options.each_pair do |key, value|
35
45
  if self.class.assume_role_options.include?(key)
36
46
  @assume_role_params[key] = value
37
- else
47
+ elsif !CLIENT_EXCLUDE_OPTIONS.include?(key)
38
48
  client_opts[key] = value
39
49
  end
40
50
  end
41
51
  @client = client_opts[:client] || STS::Client.new(client_opts)
52
+ @async_refresh = true
42
53
  super
43
54
  end
44
55
 
45
56
  # @return [STS::Client]
46
57
  attr_reader :client
47
58
 
59
+ # @return [Hash]
60
+ attr_reader :assume_role_params
61
+
48
62
  private
49
63
 
50
64
  def refresh