aws-sdk-core 3.190.3 → 3.240.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 (203) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +645 -0
  3. data/VERSION +1 -1
  4. data/lib/aws-defaults.rb +4 -1
  5. data/lib/aws-sdk-core/arn.rb +1 -3
  6. data/lib/aws-sdk-core/assume_role_credentials.rb +21 -13
  7. data/lib/aws-sdk-core/assume_role_web_identity_credentials.rb +16 -9
  8. data/lib/aws-sdk-core/binary/decode_handler.rb +3 -9
  9. data/lib/aws-sdk-core/binary/encode_handler.rb +1 -1
  10. data/lib/aws-sdk-core/binary/event_builder.rb +34 -37
  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 +36 -55
  18. data/lib/aws-sdk-core/credential_provider.rb +5 -1
  19. data/lib/aws-sdk-core/credential_provider_chain.rb +101 -25
  20. data/lib/aws-sdk-core/credentials.rb +19 -6
  21. data/lib/aws-sdk-core/ec2_metadata.rb +1 -1
  22. data/lib/aws-sdk-core/ecs_credentials.rb +16 -14
  23. data/lib/aws-sdk-core/endpoints/endpoint.rb +3 -1
  24. data/lib/aws-sdk-core/endpoints/matchers.rb +8 -10
  25. data/lib/aws-sdk-core/endpoints.rb +101 -21
  26. data/lib/aws-sdk-core/error_handler.rb +46 -0
  27. data/lib/aws-sdk-core/errors.rb +16 -4
  28. data/lib/aws-sdk-core/event_emitter.rb +1 -17
  29. data/lib/aws-sdk-core/instance_profile_credentials.rb +148 -157
  30. data/lib/aws-sdk-core/json/builder.rb +8 -1
  31. data/lib/aws-sdk-core/json/error_handler.rb +29 -13
  32. data/lib/aws-sdk-core/json/handler.rb +6 -6
  33. data/lib/aws-sdk-core/json/json_engine.rb +3 -1
  34. data/lib/aws-sdk-core/json/oj_engine.rb +7 -1
  35. data/lib/aws-sdk-core/json/parser.rb +6 -1
  36. data/lib/aws-sdk-core/json.rb +43 -14
  37. data/lib/aws-sdk-core/log/param_filter.rb +2 -2
  38. data/lib/aws-sdk-core/log/param_formatter.rb +7 -3
  39. data/lib/aws-sdk-core/log.rb +10 -0
  40. data/lib/aws-sdk-core/login_credentials.rb +229 -0
  41. data/lib/aws-sdk-core/lru_cache.rb +75 -0
  42. data/lib/aws-sdk-core/pageable_response.rb +1 -1
  43. data/lib/aws-sdk-core/param_validator.rb +7 -2
  44. data/lib/aws-sdk-core/plugins/bearer_authorization.rb +2 -0
  45. data/lib/aws-sdk-core/plugins/checksum_algorithm.rb +347 -170
  46. data/lib/aws-sdk-core/plugins/client_metrics_plugin.rb +1 -1
  47. data/lib/aws-sdk-core/plugins/client_metrics_send_plugin.rb +14 -2
  48. data/lib/aws-sdk-core/plugins/credentials_configuration.rb +78 -56
  49. data/lib/aws-sdk-core/plugins/endpoint_pattern.rb +40 -32
  50. data/lib/aws-sdk-core/plugins/global_configuration.rb +8 -9
  51. data/lib/aws-sdk-core/plugins/http_checksum.rb +2 -8
  52. data/lib/aws-sdk-core/plugins/invocation_id.rb +1 -11
  53. data/lib/aws-sdk-core/plugins/logging.rb +2 -0
  54. data/lib/aws-sdk-core/plugins/protocols/api_gateway.rb +3 -1
  55. data/lib/aws-sdk-core/plugins/protocols/ec2.rb +2 -24
  56. data/lib/aws-sdk-core/plugins/protocols/json_rpc.rb +6 -8
  57. data/lib/aws-sdk-core/plugins/protocols/query.rb +4 -2
  58. data/lib/aws-sdk-core/plugins/protocols/rest_json.rb +3 -15
  59. data/lib/aws-sdk-core/plugins/protocols/rest_xml.rb +3 -0
  60. data/lib/aws-sdk-core/plugins/protocols/rpc_v2.rb +17 -0
  61. data/lib/aws-sdk-core/plugins/regional_endpoint.rb +74 -25
  62. data/lib/aws-sdk-core/plugins/request_compression.rb +11 -2
  63. data/lib/aws-sdk-core/plugins/retry_errors.rb +12 -3
  64. data/lib/aws-sdk-core/plugins/sign.rb +42 -26
  65. data/lib/aws-sdk-core/plugins/signature_v2.rb +2 -1
  66. data/lib/aws-sdk-core/plugins/signature_v4.rb +2 -1
  67. data/lib/aws-sdk-core/plugins/stub_responses.rb +59 -9
  68. data/lib/aws-sdk-core/plugins/telemetry.rb +75 -0
  69. data/lib/aws-sdk-core/plugins/transfer_encoding.rb +16 -9
  70. data/lib/aws-sdk-core/plugins/user_agent.rb +103 -26
  71. data/lib/aws-sdk-core/plugins.rb +39 -0
  72. data/lib/aws-sdk-core/process_credentials.rb +48 -29
  73. data/lib/aws-sdk-core/query/ec2_handler.rb +27 -0
  74. data/lib/aws-sdk-core/query/ec2_param_builder.rb +5 -7
  75. data/lib/aws-sdk-core/query/handler.rb +4 -4
  76. data/lib/aws-sdk-core/query/param_builder.rb +2 -2
  77. data/lib/aws-sdk-core/query.rb +2 -1
  78. data/lib/aws-sdk-core/refreshing_credentials.rb +8 -11
  79. data/lib/aws-sdk-core/resources.rb +8 -0
  80. data/lib/aws-sdk-core/rest/content_type_handler.rb +60 -0
  81. data/lib/aws-sdk-core/rest/handler.rb +3 -4
  82. data/lib/aws-sdk-core/rest/request/body.rb +32 -5
  83. data/lib/aws-sdk-core/rest/request/endpoint.rb +24 -4
  84. data/lib/aws-sdk-core/rest/request/headers.rb +15 -7
  85. data/lib/aws-sdk-core/rest/request/querystring_builder.rb +23 -11
  86. data/lib/aws-sdk-core/rest/response/body.rb +15 -1
  87. data/lib/aws-sdk-core/rest/response/header_list_parser.rb +79 -0
  88. data/lib/aws-sdk-core/rest/response/headers.rb +8 -3
  89. data/lib/aws-sdk-core/rest.rb +1 -0
  90. data/lib/aws-sdk-core/rpc_v2/builder.rb +62 -0
  91. data/lib/aws-sdk-core/rpc_v2/cbor_engine.rb +18 -0
  92. data/lib/aws-sdk-core/rpc_v2/content_type_handler.rb +47 -0
  93. data/lib/aws-sdk-core/rpc_v2/error_handler.rb +95 -0
  94. data/lib/aws-sdk-core/rpc_v2/handler.rb +79 -0
  95. data/lib/aws-sdk-core/rpc_v2/parser.rb +98 -0
  96. data/lib/aws-sdk-core/rpc_v2.rb +69 -0
  97. data/lib/aws-sdk-core/shared_config.rb +108 -22
  98. data/lib/aws-sdk-core/shared_credentials.rb +1 -7
  99. data/lib/aws-sdk-core/sso_credentials.rb +5 -2
  100. data/lib/aws-sdk-core/static_token_provider.rb +1 -2
  101. data/lib/aws-sdk-core/stubbing/protocols/ec2.rb +12 -11
  102. data/lib/aws-sdk-core/stubbing/protocols/json.rb +11 -10
  103. data/lib/aws-sdk-core/stubbing/protocols/query.rb +7 -6
  104. data/lib/aws-sdk-core/stubbing/protocols/rest.rb +2 -1
  105. data/lib/aws-sdk-core/stubbing/protocols/rest_json.rb +9 -8
  106. data/lib/aws-sdk-core/stubbing/protocols/rest_xml.rb +6 -5
  107. data/lib/aws-sdk-core/stubbing/protocols/rpc_v2.rb +39 -0
  108. data/lib/aws-sdk-core/stubbing.rb +22 -0
  109. data/lib/aws-sdk-core/telemetry/base.rb +177 -0
  110. data/lib/aws-sdk-core/telemetry/no_op.rb +70 -0
  111. data/lib/aws-sdk-core/telemetry/otel.rb +235 -0
  112. data/lib/aws-sdk-core/telemetry/span_kind.rb +22 -0
  113. data/lib/aws-sdk-core/telemetry/span_status.rb +59 -0
  114. data/lib/aws-sdk-core/telemetry.rb +78 -0
  115. data/lib/aws-sdk-core/token.rb +3 -3
  116. data/lib/aws-sdk-core/token_provider.rb +4 -0
  117. data/lib/aws-sdk-core/token_provider_chain.rb +2 -6
  118. data/lib/aws-sdk-core/util.rb +41 -1
  119. data/lib/aws-sdk-core/waiters/poller.rb +10 -5
  120. data/lib/aws-sdk-core/xml/builder.rb +17 -9
  121. data/lib/aws-sdk-core/xml/error_handler.rb +35 -43
  122. data/lib/aws-sdk-core/xml/parser/frame.rb +4 -20
  123. data/lib/aws-sdk-core/xml/parser/stack.rb +2 -0
  124. data/lib/aws-sdk-core/xml/parser.rb +2 -6
  125. data/lib/aws-sdk-core.rb +86 -107
  126. data/lib/aws-sdk-signin/client.rb +604 -0
  127. data/lib/aws-sdk-signin/client_api.rb +119 -0
  128. data/lib/aws-sdk-signin/customizations.rb +1 -0
  129. data/lib/aws-sdk-signin/endpoint_parameters.rb +69 -0
  130. data/lib/aws-sdk-signin/endpoint_provider.rb +59 -0
  131. data/lib/aws-sdk-signin/endpoints.rb +20 -0
  132. data/lib/aws-sdk-signin/errors.rb +122 -0
  133. data/lib/aws-sdk-signin/plugins/endpoints.rb +77 -0
  134. data/lib/aws-sdk-signin/resource.rb +26 -0
  135. data/lib/aws-sdk-signin/types.rb +299 -0
  136. data/lib/aws-sdk-signin.rb +63 -0
  137. data/lib/aws-sdk-sso/client.rb +189 -96
  138. data/lib/aws-sdk-sso/client_api.rb +7 -0
  139. data/lib/aws-sdk-sso/endpoint_parameters.rb +13 -10
  140. data/lib/aws-sdk-sso/endpoint_provider.rb +16 -20
  141. data/lib/aws-sdk-sso/endpoints.rb +2 -54
  142. data/lib/aws-sdk-sso/plugins/endpoints.rb +20 -20
  143. data/lib/aws-sdk-sso/types.rb +1 -0
  144. data/lib/aws-sdk-sso.rb +15 -11
  145. data/lib/aws-sdk-ssooidc/client.rb +293 -122
  146. data/lib/aws-sdk-ssooidc/client_api.rb +38 -0
  147. data/lib/aws-sdk-ssooidc/endpoint_parameters.rb +13 -10
  148. data/lib/aws-sdk-ssooidc/endpoint_provider.rb +14 -18
  149. data/lib/aws-sdk-ssooidc/endpoints.rb +2 -54
  150. data/lib/aws-sdk-ssooidc/errors.rb +31 -0
  151. data/lib/aws-sdk-ssooidc/plugins/endpoints.rb +20 -20
  152. data/lib/aws-sdk-ssooidc/types.rb +142 -29
  153. data/lib/aws-sdk-ssooidc.rb +15 -11
  154. data/lib/aws-sdk-sts/client.rb +529 -156
  155. data/lib/aws-sdk-sts/client_api.rb +108 -8
  156. data/lib/aws-sdk-sts/customizations.rb +5 -2
  157. data/lib/aws-sdk-sts/endpoint_parameters.rb +15 -14
  158. data/lib/aws-sdk-sts/endpoint_provider.rb +50 -55
  159. data/lib/aws-sdk-sts/endpoints.rb +2 -118
  160. data/lib/aws-sdk-sts/errors.rb +79 -0
  161. data/lib/aws-sdk-sts/plugins/endpoints.rb +20 -28
  162. data/lib/aws-sdk-sts/presigner.rb +2 -6
  163. data/lib/aws-sdk-sts/types.rb +344 -32
  164. data/lib/aws-sdk-sts.rb +15 -11
  165. data/lib/seahorse/client/async_base.rb +4 -5
  166. data/lib/seahorse/client/async_response.rb +19 -0
  167. data/lib/seahorse/client/base.rb +18 -21
  168. data/lib/seahorse/client/h2/connection.rb +18 -28
  169. data/lib/seahorse/client/h2/handler.rb +19 -3
  170. data/lib/seahorse/client/handler.rb +1 -1
  171. data/lib/seahorse/client/http/response.rb +1 -1
  172. data/lib/seahorse/client/net_http/connection_pool.rb +15 -12
  173. data/lib/seahorse/client/net_http/handler.rb +21 -9
  174. data/lib/seahorse/client/networking_error.rb +1 -1
  175. data/lib/seahorse/client/plugin.rb +9 -0
  176. data/lib/seahorse/client/plugins/endpoint.rb +0 -1
  177. data/lib/seahorse/client/plugins/h2.rb +4 -4
  178. data/lib/seahorse/client/plugins/net_http.rb +57 -16
  179. data/lib/seahorse/client/request_context.rb +9 -2
  180. data/lib/seahorse/client/response.rb +2 -0
  181. data/lib/seahorse/model/shapes.rb +2 -2
  182. data/lib/seahorse/util.rb +2 -1
  183. data/sig/aws-sdk-core/async_client_stubs.rbs +21 -0
  184. data/sig/aws-sdk-core/client_stubs.rbs +10 -0
  185. data/sig/aws-sdk-core/errors.rbs +22 -0
  186. data/sig/aws-sdk-core/resources/collection.rbs +21 -0
  187. data/sig/aws-sdk-core/structure.rbs +4 -0
  188. data/sig/aws-sdk-core/telemetry/base.rbs +46 -0
  189. data/sig/aws-sdk-core/telemetry/otel.rbs +22 -0
  190. data/sig/aws-sdk-core/telemetry/span_kind.rbs +15 -0
  191. data/sig/aws-sdk-core/telemetry/span_status.rbs +24 -0
  192. data/sig/aws-sdk-core/waiters/errors.rbs +20 -0
  193. data/sig/aws-sdk-core.rbs +7 -0
  194. data/sig/seahorse/client/async_base.rbs +18 -0
  195. data/sig/seahorse/client/base.rbs +25 -0
  196. data/sig/seahorse/client/handler_builder.rbs +16 -0
  197. data/sig/seahorse/client/response.rbs +61 -0
  198. metadata +117 -23
  199. /data/lib/aws-sdk-core/xml/parser/{engines/libxml.rb → libxml_engine.rb} +0 -0
  200. /data/lib/aws-sdk-core/xml/parser/{engines/nokogiri.rb → nokogiri_engine.rb} +0 -0
  201. /data/lib/aws-sdk-core/xml/parser/{engines/oga.rb → oga_engine.rb} +0 -0
  202. /data/lib/aws-sdk-core/xml/parser/{engines/ox.rb → ox_engine.rb} +0 -0
  203. /data/lib/aws-sdk-core/xml/parser/{engines/rexml.rb → rexml_engine.rb} +0 -0
@@ -17,6 +17,10 @@ module Aws::SSOOIDC
17
17
  # `access_denied`.
18
18
  # @return [String]
19
19
  #
20
+ # @!attribute [rw] reason
21
+ # A string that uniquely identifies a reason for the error.
22
+ # @return [String]
23
+ #
20
24
  # @!attribute [rw] error_description
21
25
  # Human-readable text providing additional information, used to assist
22
26
  # the client developer in understanding the error that occurred.
@@ -26,6 +30,7 @@ module Aws::SSOOIDC
26
30
  #
27
31
  class AccessDeniedException < Struct.new(
28
32
  :error,
33
+ :reason,
29
34
  :error_description)
30
35
  SENSITIVE = []
31
36
  include Aws::Structure
@@ -53,6 +58,31 @@ module Aws::SSOOIDC
53
58
  include Aws::Structure
54
59
  end
55
60
 
61
+ # This structure contains Amazon Web Services-specific parameter
62
+ # extensions and the [identity context][1].
63
+ #
64
+ #
65
+ #
66
+ # [1]: https://docs.aws.amazon.com/singlesignon/latest/userguide/trustedidentitypropagation-overview.html
67
+ #
68
+ # @!attribute [rw] identity_context
69
+ # The trusted context assertion is signed and encrypted by STS. It
70
+ # provides access to `sts:identity_context` claim in the `idToken`
71
+ # without JWT parsing
72
+ #
73
+ # Identity context comprises information that Amazon Web Services
74
+ # services use to make authorization decisions when they receive
75
+ # requests.
76
+ # @return [String]
77
+ #
78
+ # @see http://docs.aws.amazon.com/goto/WebAPI/sso-oidc-2019-06-10/AwsAdditionalDetails AWS API Documentation
79
+ #
80
+ class AwsAdditionalDetails < Struct.new(
81
+ :identity_context)
82
+ SENSITIVE = []
83
+ include Aws::Structure
84
+ end
85
+
56
86
  # @!attribute [rw] client_id
57
87
  # The unique identifier string for the client or application. This
58
88
  # value comes from the result of the RegisterClient API.
@@ -64,34 +94,32 @@ module Aws::SSOOIDC
64
94
  # @return [String]
65
95
  #
66
96
  # @!attribute [rw] grant_type
67
- # Supports the following OAuth grant types: Device Code and Refresh
68
- # Token. Specify either of the following values, depending on the
69
- # grant type that you want:
97
+ # Supports the following OAuth grant types: Authorization Code, Device
98
+ # Code, and Refresh Token. Specify one of the following values,
99
+ # depending on the grant type that you want:
100
+ #
101
+ # * Authorization Code - `authorization_code`
70
102
  #
71
103
  # * Device Code - `urn:ietf:params:oauth:grant-type:device_code`
72
104
  #
73
105
  # * Refresh Token - `refresh_token`
74
- #
75
- # For information about how to obtain the device code, see the
76
- # StartDeviceAuthorization topic.
77
106
  # @return [String]
78
107
  #
79
108
  # @!attribute [rw] device_code
80
109
  # Used only when calling this API for the Device Code grant type. This
81
- # short-term code is used to identify this authorization request. This
82
- # comes from the result of the StartDeviceAuthorization API.
110
+ # short-lived code is used to identify this authorization request.
111
+ # This comes from the result of the StartDeviceAuthorization API.
83
112
  # @return [String]
84
113
  #
85
114
  # @!attribute [rw] code
86
115
  # Used only when calling this API for the Authorization Code grant
87
- # type. The short-term code is used to identify this authorization
88
- # request. This grant type is currently unsupported for the
89
- # CreateToken API.
116
+ # type. The short-lived code is used to identify this authorization
117
+ # request.
90
118
  # @return [String]
91
119
  #
92
120
  # @!attribute [rw] refresh_token
93
121
  # Used only when calling this API for the Refresh Token grant type.
94
- # This token is used to refresh short-term tokens, such as the access
122
+ # This token is used to refresh short-lived tokens, such as the access
95
123
  # token, that might expire.
96
124
  #
97
125
  # For more information about the features and limitations of the
@@ -105,11 +133,9 @@ module Aws::SSOOIDC
105
133
  # @return [String]
106
134
  #
107
135
  # @!attribute [rw] scope
108
- # The list of scopes for which authorization is requested. The access
109
- # token that is issued is limited to the scopes that are granted. If
110
- # this value is not specified, IAM Identity Center authorizes all
111
- # scopes that are configured for the client during the call to
112
- # RegisterClient.
136
+ # The list of scopes for which authorization is requested. This
137
+ # parameter has no effect; the access token will always include all
138
+ # scopes configured during client registration.
113
139
  # @return [Array<String>]
114
140
  #
115
141
  # @!attribute [rw] redirect_uri
@@ -118,6 +144,13 @@ module Aws::SSOOIDC
118
144
  # that has registered to receive the authorization code.
119
145
  # @return [String]
120
146
  #
147
+ # @!attribute [rw] code_verifier
148
+ # Used only when calling this API for the Authorization Code grant
149
+ # type. This value is generated by the client and presented to
150
+ # validate the original code challenge value the client passed at
151
+ # authorization time.
152
+ # @return [String]
153
+ #
121
154
  # @see http://docs.aws.amazon.com/goto/WebAPI/sso-oidc-2019-06-10/CreateTokenRequest AWS API Documentation
122
155
  #
123
156
  class CreateTokenRequest < Struct.new(
@@ -128,14 +161,15 @@ module Aws::SSOOIDC
128
161
  :code,
129
162
  :refresh_token,
130
163
  :scope,
131
- :redirect_uri)
132
- SENSITIVE = [:client_secret, :refresh_token]
164
+ :redirect_uri,
165
+ :code_verifier)
166
+ SENSITIVE = [:client_secret, :refresh_token, :code_verifier]
133
167
  include Aws::Structure
134
168
  end
135
169
 
136
170
  # @!attribute [rw] access_token
137
- # A bearer token to access AWS accounts and applications assigned to a
138
- # user.
171
+ # A bearer token to access Amazon Web Services accounts and
172
+ # applications assigned to a user.
139
173
  # @return [String]
140
174
  #
141
175
  # @!attribute [rw] token_type
@@ -209,7 +243,7 @@ module Aws::SSOOIDC
209
243
  #
210
244
  # @!attribute [rw] code
211
245
  # Used only when calling this API for the Authorization Code grant
212
- # type. This short-term code is used to identify this authorization
246
+ # type. This short-lived code is used to identify this authorization
213
247
  # request. The code is obtained through a redirect from IAM Identity
214
248
  # Center to a redirect URI persisted in the Authorization Code
215
249
  # GrantOptions for the application.
@@ -217,7 +251,7 @@ module Aws::SSOOIDC
217
251
  #
218
252
  # @!attribute [rw] refresh_token
219
253
  # Used only when calling this API for the Refresh Token grant type.
220
- # This token is used to refresh short-term tokens, such as the access
254
+ # This token is used to refresh short-lived tokens, such as the access
221
255
  # token, that might expire.
222
256
  #
223
257
  # For more information about the features and limitations of the
@@ -278,6 +312,13 @@ module Aws::SSOOIDC
278
312
  # * Refresh Token - `urn:ietf:params:oauth:token-type:refresh_token`
279
313
  # @return [String]
280
314
  #
315
+ # @!attribute [rw] code_verifier
316
+ # Used only when calling this API for the Authorization Code grant
317
+ # type. This value is generated by the client and presented to
318
+ # validate the original code challenge value the client passed at
319
+ # authorization time.
320
+ # @return [String]
321
+ #
281
322
  # @see http://docs.aws.amazon.com/goto/WebAPI/sso-oidc-2019-06-10/CreateTokenWithIAMRequest AWS API Documentation
282
323
  #
283
324
  class CreateTokenWithIAMRequest < Struct.new(
@@ -290,14 +331,15 @@ module Aws::SSOOIDC
290
331
  :redirect_uri,
291
332
  :subject_token,
292
333
  :subject_token_type,
293
- :requested_token_type)
294
- SENSITIVE = [:refresh_token, :assertion, :subject_token]
334
+ :requested_token_type,
335
+ :code_verifier)
336
+ SENSITIVE = [:refresh_token, :assertion, :subject_token, :code_verifier]
295
337
  include Aws::Structure
296
338
  end
297
339
 
298
340
  # @!attribute [rw] access_token
299
- # A bearer token to access AWS accounts and applications assigned to a
300
- # user.
341
+ # A bearer token to access Amazon Web Services accounts and
342
+ # applications assigned to a user.
301
343
  # @return [String]
302
344
  #
303
345
  # @!attribute [rw] token_type
@@ -342,6 +384,11 @@ module Aws::SSOOIDC
342
384
  # token that is issued is limited to the scopes that are granted.
343
385
  # @return [Array<String>]
344
386
  #
387
+ # @!attribute [rw] aws_additional_details
388
+ # A structure containing information from IAM Identity Center managed
389
+ # user and group information.
390
+ # @return [Types::AwsAdditionalDetails]
391
+ #
345
392
  # @see http://docs.aws.amazon.com/goto/WebAPI/sso-oidc-2019-06-10/CreateTokenWithIAMResponse AWS API Documentation
346
393
  #
347
394
  class CreateTokenWithIAMResponse < Struct.new(
@@ -351,7 +398,8 @@ module Aws::SSOOIDC
351
398
  :refresh_token,
352
399
  :id_token,
353
400
  :issued_token_type,
354
- :scope)
401
+ :scope,
402
+ :aws_additional_details)
355
403
  SENSITIVE = [:access_token, :refresh_token, :id_token]
356
404
  include Aws::Structure
357
405
  end
@@ -467,6 +515,28 @@ module Aws::SSOOIDC
467
515
  include Aws::Structure
468
516
  end
469
517
 
518
+ # Indicates that one or more redirect URI in the request is not
519
+ # supported for this operation.
520
+ #
521
+ # @!attribute [rw] error
522
+ # Single error code. For this exception the value will be
523
+ # `invalid_redirect_uri`.
524
+ # @return [String]
525
+ #
526
+ # @!attribute [rw] error_description
527
+ # Human-readable text providing additional information, used to assist
528
+ # the client developer in understanding the error that occurred.
529
+ # @return [String]
530
+ #
531
+ # @see http://docs.aws.amazon.com/goto/WebAPI/sso-oidc-2019-06-10/InvalidRedirectUriException AWS API Documentation
532
+ #
533
+ class InvalidRedirectUriException < Struct.new(
534
+ :error,
535
+ :error_description)
536
+ SENSITIVE = []
537
+ include Aws::Structure
538
+ end
539
+
470
540
  # Indicates that something is wrong with the input to the request. For
471
541
  # example, a required parameter might be missing or out of range.
472
542
  #
@@ -475,6 +545,10 @@ module Aws::SSOOIDC
475
545
  # `invalid_request`.
476
546
  # @return [String]
477
547
  #
548
+ # @!attribute [rw] reason
549
+ # A string that uniquely identifies a reason for the error.
550
+ # @return [String]
551
+ #
478
552
  # @!attribute [rw] error_description
479
553
  # Human-readable text providing additional information, used to assist
480
554
  # the client developer in understanding the error that occurred.
@@ -484,6 +558,7 @@ module Aws::SSOOIDC
484
558
  #
485
559
  class InvalidRequestException < Struct.new(
486
560
  :error,
561
+ :reason,
487
562
  :error_description)
488
563
  SENSITIVE = []
489
564
  include Aws::Structure
@@ -559,12 +634,49 @@ module Aws::SSOOIDC
559
634
  # granting an access token.
560
635
  # @return [Array<String>]
561
636
  #
637
+ # @!attribute [rw] redirect_uris
638
+ # The list of redirect URI that are defined by the client. At
639
+ # completion of authorization, this list is used to restrict what
640
+ # locations the user agent can be redirected back to.
641
+ # @return [Array<String>]
642
+ #
643
+ # @!attribute [rw] grant_types
644
+ # The list of OAuth 2.0 grant types that are defined by the client.
645
+ # This list is used to restrict the token granting flows available to
646
+ # the client. Supports the following OAuth 2.0 grant types:
647
+ # Authorization Code, Device Code, and Refresh Token.
648
+ #
649
+ # * Authorization Code - `authorization_code`
650
+ #
651
+ # * Device Code - `urn:ietf:params:oauth:grant-type:device_code`
652
+ #
653
+ # * Refresh Token - `refresh_token`
654
+ # @return [Array<String>]
655
+ #
656
+ # @!attribute [rw] issuer_url
657
+ # The IAM Identity Center Issuer URL associated with an instance of
658
+ # IAM Identity Center. This value is needed for user access to
659
+ # resources through the client.
660
+ # @return [String]
661
+ #
662
+ # @!attribute [rw] entitled_application_arn
663
+ # This IAM Identity Center application ARN is used to define
664
+ # administrator-managed configuration for public client access to
665
+ # resources. At authorization, the scopes, grants, and redirect URI
666
+ # available to this client will be restricted by this application
667
+ # resource.
668
+ # @return [String]
669
+ #
562
670
  # @see http://docs.aws.amazon.com/goto/WebAPI/sso-oidc-2019-06-10/RegisterClientRequest AWS API Documentation
563
671
  #
564
672
  class RegisterClientRequest < Struct.new(
565
673
  :client_name,
566
674
  :client_type,
567
- :scopes)
675
+ :scopes,
676
+ :redirect_uris,
677
+ :grant_types,
678
+ :issuer_url,
679
+ :entitled_application_arn)
568
680
  SENSITIVE = []
569
681
  include Aws::Structure
570
682
  end
@@ -753,3 +865,4 @@ module Aws::SSOOIDC
753
865
 
754
866
  end
755
867
  end
868
+
@@ -13,16 +13,7 @@ unless Module.const_defined?(:Aws)
13
13
  require 'aws-sigv4'
14
14
  end
15
15
 
16
- require_relative 'aws-sdk-ssooidc/types'
17
- require_relative 'aws-sdk-ssooidc/client_api'
18
- require_relative 'aws-sdk-ssooidc/plugins/endpoints.rb'
19
- require_relative 'aws-sdk-ssooidc/client'
20
- require_relative 'aws-sdk-ssooidc/errors'
21
- require_relative 'aws-sdk-ssooidc/resource'
22
- require_relative 'aws-sdk-ssooidc/endpoint_parameters'
23
- require_relative 'aws-sdk-ssooidc/endpoint_provider'
24
- require_relative 'aws-sdk-ssooidc/endpoints'
25
- require_relative 'aws-sdk-ssooidc/customizations'
16
+ Aws::Plugins::GlobalConfiguration.add_identifier(:ssooidc)
26
17
 
27
18
  # This module provides support for AWS SSO OIDC. This module is available in the
28
19
  # `aws-sdk-core` gem.
@@ -53,7 +44,20 @@ require_relative 'aws-sdk-ssooidc/customizations'
53
44
  #
54
45
  # @!group service
55
46
  module Aws::SSOOIDC
47
+ autoload :Types, 'aws-sdk-ssooidc/types'
48
+ autoload :ClientApi, 'aws-sdk-ssooidc/client_api'
49
+ module Plugins
50
+ autoload :Endpoints, 'aws-sdk-ssooidc/plugins/endpoints.rb'
51
+ end
52
+ autoload :Client, 'aws-sdk-ssooidc/client'
53
+ autoload :Errors, 'aws-sdk-ssooidc/errors'
54
+ autoload :Resource, 'aws-sdk-ssooidc/resource'
55
+ autoload :EndpointParameters, 'aws-sdk-ssooidc/endpoint_parameters'
56
+ autoload :EndpointProvider, 'aws-sdk-ssooidc/endpoint_provider'
57
+ autoload :Endpoints, 'aws-sdk-ssooidc/endpoints'
56
58
 
57
- GEM_VERSION = '3.190.3'
59
+ GEM_VERSION = '3.240.0'
58
60
 
59
61
  end
62
+
63
+ require_relative 'aws-sdk-ssooidc/customizations'