aws-sdk-core 3.130.1 → 3.178.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (94) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +377 -1
  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 +6 -11
  7. data/lib/aws-sdk-core/assume_role_web_identity_credentials.rb +8 -10
  8. data/lib/aws-sdk-core/binary/encode_handler.rb +12 -1
  9. data/lib/aws-sdk-core/credential_provider.rb +3 -0
  10. data/lib/aws-sdk-core/credential_provider_chain.rb +8 -5
  11. data/lib/aws-sdk-core/ecs_credentials.rb +116 -53
  12. data/lib/aws-sdk-core/endpoints/condition.rb +41 -0
  13. data/lib/aws-sdk-core/endpoints/endpoint.rb +17 -0
  14. data/lib/aws-sdk-core/endpoints/endpoint_rule.rb +75 -0
  15. data/lib/aws-sdk-core/endpoints/error_rule.rb +42 -0
  16. data/lib/aws-sdk-core/endpoints/function.rb +80 -0
  17. data/lib/aws-sdk-core/endpoints/matchers.rb +127 -0
  18. data/lib/aws-sdk-core/endpoints/reference.rb +31 -0
  19. data/lib/aws-sdk-core/endpoints/rule.rb +25 -0
  20. data/lib/aws-sdk-core/endpoints/rule_set.rb +52 -0
  21. data/lib/aws-sdk-core/endpoints/rules_provider.rb +37 -0
  22. data/lib/aws-sdk-core/endpoints/templater.rb +58 -0
  23. data/lib/aws-sdk-core/endpoints/tree_rule.rb +45 -0
  24. data/lib/aws-sdk-core/endpoints/url.rb +60 -0
  25. data/lib/aws-sdk-core/endpoints.rb +78 -0
  26. data/lib/aws-sdk-core/errors.rb +13 -0
  27. data/lib/aws-sdk-core/ini_parser.rb +1 -1
  28. data/lib/aws-sdk-core/instance_profile_credentials.rb +5 -0
  29. data/lib/aws-sdk-core/json/error_handler.rb +20 -1
  30. data/lib/aws-sdk-core/log/formatter.rb +6 -0
  31. data/lib/aws-sdk-core/pageable_response.rb +10 -1
  32. data/lib/aws-sdk-core/plugins/bearer_authorization.rb +67 -0
  33. data/lib/aws-sdk-core/plugins/checksum_algorithm.rb +1 -1
  34. data/lib/aws-sdk-core/plugins/credentials_configuration.rb +24 -0
  35. data/lib/aws-sdk-core/plugins/endpoint_discovery.rb +6 -2
  36. data/lib/aws-sdk-core/plugins/jsonvalue_converter.rb +34 -6
  37. data/lib/aws-sdk-core/plugins/recursion_detection.rb +14 -3
  38. data/lib/aws-sdk-core/plugins/regional_endpoint.rb +111 -30
  39. data/lib/aws-sdk-core/plugins/request_compression.rb +217 -0
  40. data/lib/aws-sdk-core/plugins/retries/error_inspector.rb +2 -1
  41. data/lib/aws-sdk-core/plugins/sign.rb +201 -0
  42. data/lib/aws-sdk-core/plugins/signature_v2.rb +1 -0
  43. data/lib/aws-sdk-core/plugins/signature_v4.rb +13 -7
  44. data/lib/aws-sdk-core/plugins/user_agent.rb +117 -14
  45. data/lib/aws-sdk-core/process_credentials.rb +6 -9
  46. data/lib/aws-sdk-core/refreshing_credentials.rb +2 -6
  47. data/lib/aws-sdk-core/refreshing_token.rb +71 -0
  48. data/lib/aws-sdk-core/rest/handler.rb +1 -1
  49. data/lib/aws-sdk-core/rest/request/headers.rb +2 -6
  50. data/lib/aws-sdk-core/shared_config.rb +101 -6
  51. data/lib/aws-sdk-core/sso_credentials.rb +85 -50
  52. data/lib/aws-sdk-core/sso_token_provider.rb +135 -0
  53. data/lib/aws-sdk-core/static_token_provider.rb +14 -0
  54. data/lib/aws-sdk-core/structure.rb +6 -4
  55. data/lib/aws-sdk-core/token.rb +31 -0
  56. data/lib/aws-sdk-core/token_provider.rb +15 -0
  57. data/lib/aws-sdk-core/token_provider_chain.rb +51 -0
  58. data/lib/aws-sdk-core/waiters/poller.rb +3 -1
  59. data/lib/aws-sdk-core/xml/error_handler.rb +7 -0
  60. data/lib/aws-sdk-core/xml/parser/engines/oga.rb +2 -0
  61. data/lib/aws-sdk-core.rb +14 -0
  62. data/lib/aws-sdk-sso/client.rb +71 -11
  63. data/lib/aws-sdk-sso/endpoint_parameters.rb +66 -0
  64. data/lib/aws-sdk-sso/endpoint_provider.rb +51 -0
  65. data/lib/aws-sdk-sso/endpoints.rb +72 -0
  66. data/lib/aws-sdk-sso/plugins/endpoints.rb +76 -0
  67. data/lib/aws-sdk-sso/types.rb +8 -43
  68. data/lib/aws-sdk-sso.rb +5 -1
  69. data/lib/aws-sdk-ssooidc/client.rb +626 -0
  70. data/lib/aws-sdk-ssooidc/client_api.rb +216 -0
  71. data/lib/aws-sdk-ssooidc/customizations.rb +1 -0
  72. data/lib/aws-sdk-ssooidc/endpoint_parameters.rb +66 -0
  73. data/lib/aws-sdk-ssooidc/endpoint_provider.rb +51 -0
  74. data/lib/aws-sdk-ssooidc/endpoints.rb +58 -0
  75. data/lib/aws-sdk-ssooidc/errors.rb +290 -0
  76. data/lib/aws-sdk-ssooidc/plugins/endpoints.rb +74 -0
  77. data/lib/aws-sdk-ssooidc/resource.rb +26 -0
  78. data/lib/aws-sdk-ssooidc/types.rb +502 -0
  79. data/lib/aws-sdk-ssooidc.rb +59 -0
  80. data/lib/aws-sdk-sts/client.rb +289 -245
  81. data/lib/aws-sdk-sts/endpoint_parameters.rb +78 -0
  82. data/lib/aws-sdk-sts/endpoint_provider.rb +112 -0
  83. data/lib/aws-sdk-sts/endpoints.rb +136 -0
  84. data/lib/aws-sdk-sts/plugins/endpoints.rb +84 -0
  85. data/lib/aws-sdk-sts/presigner.rb +13 -15
  86. data/lib/aws-sdk-sts/types.rb +87 -195
  87. data/lib/aws-sdk-sts.rb +5 -1
  88. data/lib/seahorse/client/async_base.rb +0 -1
  89. data/lib/seahorse/client/configuration.rb +1 -5
  90. data/lib/seahorse/client/h2/connection.rb +12 -11
  91. data/lib/seahorse/client/plugins/request_callback.rb +9 -9
  92. data/lib/seahorse/model/operation.rb +3 -0
  93. data/lib/seahorse/util.rb +4 -0
  94. metadata +56 -8
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: dffefda7cd68861a99856de10c4774c57ffcdb1c3f22d16eacb0a2096a5e5c32
4
- data.tar.gz: 60628acc0b4bb23629da2de4b5f821c91037e2e7c0b56b63dbdc4e7b771f2167
3
+ metadata.gz: 9b0103607b2d6036806605dea30ea78169454607d046e0d492141f78503f5bd0
4
+ data.tar.gz: 8886536501b3cf7aee0d37dc2b4cdefd24d8c7ecdbcae9dca1f03734e94296ed
5
5
  SHA512:
6
- metadata.gz: 6b16327c66f2fb83c9dceeec13cb5d0f9cbb519b5f999c27aa3e9f0ee0824a0545bc8b5bcc48823242fadf07b03c83fc196207a1806c7f162736bd1073af37db
7
- data.tar.gz: 0540f8d1095132e67d9d00841b2c6c594870e5addf3de30a228a0e091bcb83280aef8270a2fe3af31815ea3c354abeebe637fa4aa2d27917e51d201a9c397f2b
6
+ metadata.gz: 90e1f00ccb15c3e7777ab4cf3df3977dc0a99b0ca243482bab2953ec602dc18bcdb2a4fa69616a535ba68080821509721b5512fe2f4f05717d0f1aeb38c927ff
7
+ data.tar.gz: 305ea810a3456b951112fd30e749f8c2feca93c0975efa241fc202131b9e597c396ffcf956551dc27cd7a07d85d2b50b2fd8440047903583523f0211e3d4f60e
data/CHANGELOG.md CHANGED
@@ -1,6 +1,382 @@
1
1
  Unreleased Changes
2
2
  ------------------
3
3
 
4
+ 3.178.0 (2023-07-11)
5
+ ------------------
6
+
7
+ * Feature - Updated Aws::STS::Client with the latest API changes.
8
+
9
+ * Feature - Updated Aws::SSOOIDC::Client with the latest API changes.
10
+
11
+ * Feature - Updated Aws::SSO::Client with the latest API changes.
12
+
13
+ * 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.
14
+
15
+ 3.177.0 (2023-07-06)
16
+ ------------------
17
+
18
+ * Feature - Updated Aws::STS::Client with the latest API changes.
19
+
20
+ * Feature - Updated Aws::SSOOIDC::Client with the latest API changes.
21
+
22
+ * Feature - Updated Aws::SSO::Client with the latest API changes.
23
+
24
+ * Feature - Add support for Request Compression.
25
+
26
+ 3.176.1 (2023-06-29)
27
+ ------------------
28
+
29
+ * Issue - Fix signing for S3/S3 Control and `aws-crt` gem for certain object keys (#2849).
30
+
31
+ * Issue - Ensure `SSOCredentials` `#expiration` is a `Time` (#2874)
32
+
33
+ 3.176.0 (2023-06-28)
34
+ ------------------
35
+
36
+ * Feature - Add :expiration accessor to `CredentialProvider` and do not refresh credentials when checking expiration (#2872).
37
+
38
+ 3.175.0 (2023-06-15)
39
+ ------------------
40
+
41
+ * Feature - Updated Aws::STS::Client with the latest API changes.
42
+
43
+ * Feature - Updated Aws::SSOOIDC::Client with the latest API changes.
44
+
45
+ * Feature - Updated Aws::SSO::Client with the latest API changes.
46
+
47
+ 3.174.0 (2023-05-31)
48
+ ------------------
49
+
50
+ * Feature - Updated Aws::STS::Client with the latest API changes.
51
+
52
+ * Feature - Updated Aws::SSOOIDC::Client with the latest API changes.
53
+
54
+ * Feature - Updated Aws::SSO::Client with the latest API changes.
55
+
56
+ * Feature - Improve User-Agent metrics tracking.
57
+
58
+ 3.173.1 (2023-05-24)
59
+ ------------------
60
+
61
+ * Issue - Updated `checksum_algorithm` plugin to use IO.copy_stream for JRuby.
62
+
63
+ 3.173.0 (2023-05-18)
64
+ ------------------
65
+
66
+ * Feature - Updated Aws::STS::Client with the latest API changes.
67
+
68
+ 3.172.0 (2023-05-08)
69
+ ------------------
70
+
71
+ * Feature - Updated Aws::STS::Client with the latest API changes.
72
+
73
+ * Feature - Add :region option to `Aws::Log::Formatter`.
74
+
75
+ 3.171.1 (2023-05-04)
76
+ ------------------
77
+
78
+ * Issue - Fix error code parsing in AWS query compatible JSON services.
79
+
80
+ 3.171.0 (2023-03-22)
81
+ ------------------
82
+
83
+ * Feature - Add support for `AWS_CONTAINER_CREDENTIALS_FULL_URI` and `AWS_CONTAINER_AUTHORIZATION_TOKEN` environment variables to `ECSCredentials`.
84
+
85
+ 3.170.1 (2023-03-17)
86
+ ------------------
87
+
88
+ * Issue - Reduce memory usage in H2::Connection when `http_wire_log` is not set.
89
+
90
+ 3.170.0 (2023-01-25)
91
+ ------------------
92
+
93
+ * Feature - Updated Aws::STS::Client with the latest API changes.
94
+
95
+ 3.169.0 (2023-01-18)
96
+ ------------------
97
+
98
+ * Feature - Updated Aws::STS::Client with the latest API changes.
99
+
100
+ * Feature - Updated Aws::SSOOIDC::Client with the latest API changes.
101
+
102
+ * Feature - Updated Aws::SSO::Client with the latest API changes.
103
+
104
+ * Issue - Replace runtime endpoint resolution approach with generated ruby code for STS, SSO, and SSOOIDC.
105
+
106
+ 3.168.4 (2022-12-08)
107
+ ------------------
108
+
109
+ * Issue - Fix Sign to not sign Sigv2 requests to S3.
110
+
111
+ 3.168.3 (2022-12-02)
112
+ ------------------
113
+
114
+ * Issue - Retry S3's `BadDigest` error
115
+
116
+ 3.168.2 (2022-11-29)
117
+ ------------------
118
+
119
+ * Issue - Allow region resolution in `AssumeRoleCredentials` from `CredentialProviderChain`.
120
+
121
+ 3.168.1 (2022-11-18)
122
+ ------------------
123
+
124
+ * Issue - Fix initialization of SSOTokenProvider when `AWS_PROFILE` is specified.
125
+
126
+ 3.168.0 (2022-11-17)
127
+ ------------------
128
+
129
+ * Feature - Updated Aws::STS::Client with the latest API changes.
130
+
131
+ 3.167.0 (2022-11-09)
132
+ ------------------
133
+
134
+ * Issue - Ensure the stream_thread is not killed before H2 connection status is updated (#2779).
135
+
136
+ * Feature - Add token refresh support to `SSOCredentialProvider`.
137
+
138
+ 3.166.0 (2022-10-26)
139
+ ------------------
140
+
141
+ * Feature - Updated Aws::STS::Client with the latest API changes.
142
+
143
+ * Feature - Updated Aws::SSOOIDC::Client with the latest API changes.
144
+
145
+ * Feature - Updated Aws::SSO::Client with the latest API changes.
146
+
147
+ 3.165.1 (2022-10-25)
148
+ ------------------
149
+
150
+ * Issue - Require the SignatureV4 plugin to fix compatability with older `aws-sdk-s3` versions (#2774).
151
+
152
+ 3.165.0 (2022-10-25)
153
+ ------------------
154
+
155
+ * Feature - Updated Aws::SSOOIDC::Client with the latest API changes.
156
+
157
+ * Feature - Updated Aws::SSO::Client with the latest API changes.
158
+
159
+ * 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.
160
+
161
+ 3.164.0 (2022-10-21)
162
+ ------------------
163
+
164
+ * Feature - Updated Aws::SSOOIDC::Client with the latest API changes.
165
+
166
+ 3.163.0 (2022-10-20)
167
+ ------------------
168
+
169
+ * Feature - Updated Aws::SSOOIDC::Client with the latest API changes.
170
+
171
+ 3.162.0 (2022-10-19)
172
+ ------------------
173
+
174
+ * Feature - Updated Aws::SSOOIDC::Client with the latest API changes.
175
+
176
+ 3.161.0 (2022-10-18)
177
+ ------------------
178
+
179
+ * Feature - Support AwsQueryCompatible trait to read error code from x-amzn-query-error header.
180
+
181
+ 3.160.0 (2022-10-13)
182
+ ------------------
183
+
184
+ * Feature - Updated Aws::SSO::Client with the latest API changes.
185
+
186
+ 3.159.0 (2022-10-07)
187
+ ------------------
188
+
189
+ * Feature - Updated Aws::SSO::Client with the latest API changes.
190
+
191
+ 3.158.1 (2022-10-06)
192
+ ------------------
193
+
194
+ * Issue - Ensure that the ReadCallbackIO is always unwrapped (#2761).
195
+
196
+ 3.158.0 (2022-09-30)
197
+ ------------------
198
+
199
+ * Feature - Updated Aws::SSO::Client with the latest API changes.
200
+
201
+ 3.157.0 (2022-09-29)
202
+ ------------------
203
+
204
+ * Feature - Updated Aws::SSO::Client with the latest API changes.
205
+
206
+ 3.156.0 (2022-09-27)
207
+ ------------------
208
+
209
+ * Feature - Updated Aws::SSO::Client with the latest API changes.
210
+
211
+ 3.155.0 (2022-09-26)
212
+ ------------------
213
+
214
+ * Feature - Updated Aws::SSO::Client with the latest API changes.
215
+
216
+ 3.154.0 (2022-09-23)
217
+ ------------------
218
+
219
+ * Feature - Updated Aws::SSO::Client with the latest API changes.
220
+
221
+ 3.153.0 (2022-09-22)
222
+ ------------------
223
+
224
+ * Feature - Updated Aws::SSO::Client with the latest API changes.
225
+
226
+ 3.152.0 (2022-09-21)
227
+ ------------------
228
+
229
+ * Feature - Updated Aws::SSO::Client with the latest API changes.
230
+
231
+ 3.151.0 (2022-09-20)
232
+ ------------------
233
+
234
+ * Feature - Updated Aws::SSO::Client with the latest API changes.
235
+
236
+ 3.150.0 (2022-09-19)
237
+ ------------------
238
+
239
+ * Feature - Updated Aws::SSO::Client with the latest API changes.
240
+
241
+ 3.149.0 (2022-09-16)
242
+ ------------------
243
+
244
+ * Feature - Updated Aws::SSO::Client with the latest API changes.
245
+
246
+ 3.148.0 (2022-09-15)
247
+ ------------------
248
+
249
+ * Feature - Updated Aws::SSO::Client with the latest API changes.
250
+
251
+ 3.147.0 (2022-09-14)
252
+ ------------------
253
+
254
+ * Feature - Updated Aws::SSO::Client with the latest API changes.
255
+
256
+ 3.146.0 (2022-09-13)
257
+ ------------------
258
+
259
+ * Feature - Updated Aws::SSO::Client with the latest API changes.
260
+
261
+ 3.145.0 (2022-09-12)
262
+ ------------------
263
+
264
+ * Feature - Updated Aws::SSO::Client with the latest API changes.
265
+
266
+ 3.144.0 (2022-09-09)
267
+ ------------------
268
+
269
+ * Feature - Updated Aws::SSO::Client with the latest API changes.
270
+
271
+ 3.143.0 (2022-09-08)
272
+ ------------------
273
+
274
+ * Feature - Updated Aws::SSO::Client with the latest API changes.
275
+
276
+ 3.142.0 (2022-09-07)
277
+ ------------------
278
+
279
+ * Feature - Updated Aws::SSO::Client with the latest API changes.
280
+
281
+ 3.141.0 (2022-09-06)
282
+ ------------------
283
+
284
+ * Feature - Updated Aws::SSO::Client with the latest API changes.
285
+
286
+ 3.140.0 (2022-09-02)
287
+ ------------------
288
+
289
+ * Feature - Updated Aws::SSO::Client with the latest API changes.
290
+
291
+ 3.139.0 (2022-09-01)
292
+ ------------------
293
+
294
+ * Feature - Updated Aws::SSO::Client with the latest API changes.
295
+
296
+ 3.138.0 (2022-08-31)
297
+ ------------------
298
+
299
+ * Feature - Updated Aws::SSO::Client with the latest API changes.
300
+
301
+ 3.137.0 (2022-08-30)
302
+ ------------------
303
+
304
+ * Feature - Updated Aws::SSO::Client with the latest API changes.
305
+
306
+ * Issue - Fix errors in recursion detection when `_X_AMZN_TRACE_ID` is unset (#2748).
307
+
308
+ 3.136.0 (2022-08-25)
309
+ ------------------
310
+
311
+ * Feature - Updated Aws::SSO::Client with the latest API changes.
312
+
313
+ * Feature - Updated Aws::SSOOIDC::Client with the latest API changes.
314
+
315
+ 3.135.0 (2022-08-24)
316
+ ------------------
317
+
318
+ * Feature - Updated Aws::SSO::Client with the latest API changes.
319
+
320
+ 3.134.0 (2022-08-23)
321
+ ------------------
322
+
323
+ * Feature - Updated Aws::SSO::Client with the latest API changes.
324
+
325
+ * Feature - Add support for Bearer Token Authentication and TokenProviders.
326
+
327
+ * Issue - Validate that `_X_AMZN_TRACE_ID` ENV value contains only valid, non-control characters.
328
+
329
+ 3.133.0 (2022-08-22)
330
+ ------------------
331
+
332
+ * Feature - Moved functionality from `aws-sdk-ssooidc` into core.
333
+
334
+ 3.132.0 (2022-08-08)
335
+ ------------------
336
+
337
+ * Feature - Updated Aws::SSO::Client with the latest API changes.
338
+
339
+ 3.131.6 (2022-08-03)
340
+ ------------------
341
+
342
+ * Issue - Fix typo in `RecursionDetection`, change amz to amzn in header and env name.
343
+
344
+ 3.131.5 (2022-07-28)
345
+ ------------------
346
+
347
+ * Issue - Fix `to_json` usage in nested hashes by defining `as_json` (#2733).
348
+
349
+ 3.131.4 (2022-07-27)
350
+ ------------------
351
+
352
+ * Issue - Fix `to_json` usage on pageable responses when using Rails (#2733).
353
+ * Issue - Use `expand_path` on credential/config paths in SharedConfig (#2735).
354
+
355
+ 3.131.3 (2022-07-18)
356
+ ------------------
357
+
358
+ * Issue - Add support for serializing shapes on the body with `jsonvalue` members.
359
+
360
+ 3.131.2 (2022-06-20)
361
+ ------------------
362
+
363
+ * Issue - Populate context :request_id for XML error responses.
364
+
365
+ 3.131.1 (2022-05-20)
366
+ ------------------
367
+
368
+ * Issue - Bump the minimum version of `jmespath` dependency.
369
+
370
+ 3.131.0 (2022-05-16)
371
+ ------------------
372
+
373
+ * Feature - Updated Aws::STS::Client with the latest API changes.
374
+
375
+ 3.130.2 (2022-04-22)
376
+ ------------------
377
+
378
+ * Issue - Don't pass `:before_refresh` to Client constructors in RefreshingCredential implementations (#2690).
379
+
4
380
  3.130.1 (2022-04-12)
5
381
  ------------------
6
382
 
@@ -45,7 +421,7 @@ Unreleased Changes
45
421
  3.126.2 (2022-02-16)
46
422
  ------------------
47
423
 
48
- * Issue - Add a before_refresh callback to AssumeRoleCredentials (#2529).
424
+ * Issue - Add a before_refresh callback to AssumeRoleCredentials (#2529).
49
425
  * Issue - Raise a `NoSuchProfileError` when config and credentials files don't exist.
50
426
 
51
427
  3.126.1 (2022-02-14)
data/VERSION CHANGED
@@ -1 +1 @@
1
- 3.130.1
1
+ 3.178.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,25 +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.
20
18
  #
21
- # The AssumeRoleCredentials also provides a `before_refresh` callback
22
- # that can be used to help manage refreshing tokens.
23
- # `before_refresh` is called when AWS credentials are required and need
24
- # to be refreshed and it is called with the AssumeRoleCredentials object.
19
+ # @see Aws::STS::Client#assume_role
25
20
  class AssumeRoleCredentials
26
21
 
27
22
  include CredentialProvider
@@ -49,7 +44,7 @@ module Aws
49
44
  options.each_pair do |key, value|
50
45
  if self.class.assume_role_options.include?(key)
51
46
  @assume_role_params[key] = value
52
- else
47
+ elsif !CLIENT_EXCLUDE_OPTIONS.include?(key)
53
48
  client_opts[key] = value
54
49
  end
55
50
  end
@@ -5,9 +5,8 @@ require 'securerandom'
5
5
  require 'base64'
6
6
 
7
7
  module Aws
8
-
9
- # An auto-refreshing credential provider that works by assuming
10
- # a role via {Aws::STS::Client#assume_role_with_web_identity}.
8
+ # An auto-refreshing credential provider that assumes a role via
9
+ # {Aws::STS::Client#assume_role_with_web_identity}.
11
10
  #
12
11
  # role_credentials = Aws::AssumeRoleWebIdentityCredentials.new(
13
12
  # client: Aws::STS::Client.new(...),
@@ -16,12 +15,12 @@ module Aws
16
15
  # role_session_name: "session-name"
17
16
  # ...
18
17
  # )
19
- # For full list of parameters accepted
20
- # @see Aws::STS::Client#assume_role_with_web_identity
18
+ # ec2 = Aws::EC2::Client.new(credentials: role_credentials)
21
19
  #
20
+ # If you omit `:client` option, a new {Aws::STS::Client} object will be
21
+ # constructed with additional options that were provided.
22
22
  #
23
- # If you omit `:client` option, a new {STS::Client} object will be
24
- # constructed.
23
+ # @see Aws::STS::Client#assume_role_with_web_identity
25
24
  class AssumeRoleWebIdentityCredentials
26
25
 
27
26
  include CredentialProvider
@@ -52,7 +51,7 @@ module Aws
52
51
  options.each_pair do |key, value|
53
52
  if self.class.assume_role_web_identity_options.include?(key)
54
53
  @assume_role_web_identity_params[key] = value
55
- else
54
+ elsif !CLIENT_EXCLUDE_OPTIONS.include?(key)
56
55
  client_opts[key] = value
57
56
  end
58
57
  end
@@ -100,11 +99,10 @@ module Aws
100
99
  # @api private
101
100
  def assume_role_web_identity_options
102
101
  @arwio ||= begin
103
- input = STS::Client.api.operation(:assume_role_with_web_identity).input
102
+ input = Aws::STS::Client.api.operation(:assume_role_with_web_identity).input
104
103
  Set.new(input.shape.member_names)
105
104
  end
106
105
  end
107
-
108
106
  end
109
107
  end
110
108
  end
@@ -13,7 +13,7 @@ module Aws
13
13
  context.config.api.metadata['protocol'],
14
14
  eventstream_member,
15
15
  context.operation.input,
16
- context.config.sigv4_signer
16
+ signer_for(context)
17
17
  )
18
18
  context[:input_event_emitter] = input_es_handler.event_emitter
19
19
  end
@@ -22,6 +22,17 @@ module Aws
22
22
 
23
23
  private
24
24
 
25
+ def signer_for(context)
26
+ # New endpoint/signing logic, use the auth scheme to make a signer
27
+ if context[:auth_scheme]
28
+ Aws::Plugins::Sign.signer_for(context[:auth_scheme], context.config)
29
+ else
30
+ # Previous implementation always assumed sigv4_signer from config.
31
+ # Relies only on sigv4 signing (and plugin) for event stream services
32
+ context.config.sigv4_signer
33
+ end
34
+ end
35
+
25
36
  def eventstream_input?(ctx)
26
37
  ctx.operation.input.shape.members.each do |_, ref|
27
38
  return ref if ref.eventstream
@@ -6,6 +6,9 @@ module Aws
6
6
  # @return [Credentials]
7
7
  attr_reader :credentials
8
8
 
9
+ # @return [Time]
10
+ attr_reader :expiration
11
+
9
12
  # @return [Boolean]
10
13
  def set?
11
14
  !!credentials && credentials.set?
@@ -161,7 +161,8 @@ module Aws
161
161
 
162
162
  def instance_profile_credentials(options)
163
163
  profile_name = determine_profile_name(options)
164
- if ENV['AWS_CONTAINER_CREDENTIALS_RELATIVE_URI']
164
+ if ENV['AWS_CONTAINER_CREDENTIALS_RELATIVE_URI'] ||
165
+ ENV['AWS_CONTAINER_CREDENTIALS_FULL_URI']
165
166
  ECSCredentials.new(options)
166
167
  else
167
168
  InstanceProfileCredentials.new(options.merge(profile: profile_name))
@@ -169,12 +170,14 @@ module Aws
169
170
  end
170
171
 
171
172
  def assume_role_with_profile(options, profile_name)
172
- region = (options[:config] && options[:config].region)
173
- Aws.shared_config.assume_role_credentials_from_config(
173
+ assume_opts = {
174
174
  profile: profile_name,
175
- region: region,
176
175
  chain_config: @config
177
- )
176
+ }
177
+ if options[:config] && options[:config].region
178
+ assume_opts[:region] = options[:config].region
179
+ end
180
+ Aws.shared_config.assume_role_credentials_from_config(assume_opts)
178
181
  end
179
182
  end
180
183
  end