aws-sdk-core 3.209.1 → 3.220.1

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 (61) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +119 -0
  3. data/VERSION +1 -1
  4. data/lib/aws-defaults/default_configuration.rb +1 -2
  5. data/lib/aws-sdk-core/arn.rb +1 -3
  6. data/lib/aws-sdk-core/cbor/decoder.rb +0 -2
  7. data/lib/aws-sdk-core/cbor/encoder.rb +2 -2
  8. data/lib/aws-sdk-core/cbor.rb +3 -56
  9. data/lib/aws-sdk-core/client_stubs.rb +29 -55
  10. data/lib/aws-sdk-core/endpoints/matchers.rb +1 -8
  11. data/lib/aws-sdk-core/json/error_handler.rb +2 -1
  12. data/lib/aws-sdk-core/json/handler.rb +1 -0
  13. data/lib/aws-sdk-core/log/param_formatter.rb +7 -3
  14. data/lib/aws-sdk-core/plugins/checksum_algorithm.rb +332 -170
  15. data/lib/aws-sdk-core/plugins/http_checksum.rb +2 -8
  16. data/lib/aws-sdk-core/plugins/regional_endpoint.rb +44 -25
  17. data/lib/aws-sdk-core/plugins/sign.rb +1 -1
  18. data/lib/aws-sdk-core/plugins/stub_responses.rb +24 -8
  19. data/lib/aws-sdk-core/plugins/user_agent.rb +10 -1
  20. data/lib/aws-sdk-core/rest/request/headers.rb +2 -2
  21. data/lib/aws-sdk-core/rpc_v2/builder.rb +1 -1
  22. data/lib/aws-sdk-core/{cbor → rpc_v2}/cbor_engine.rb +4 -5
  23. data/lib/aws-sdk-core/rpc_v2/content_type_handler.rb +3 -1
  24. data/lib/aws-sdk-core/rpc_v2/error_handler.rb +3 -2
  25. data/lib/aws-sdk-core/rpc_v2/handler.rb +2 -1
  26. data/lib/aws-sdk-core/rpc_v2/parser.rb +1 -1
  27. data/lib/aws-sdk-core/rpc_v2.rb +65 -2
  28. data/lib/aws-sdk-core/shared_config.rb +2 -0
  29. data/lib/aws-sdk-core/stubbing/protocols/ec2.rb +12 -11
  30. data/lib/aws-sdk-core/stubbing/protocols/json.rb +11 -10
  31. data/lib/aws-sdk-core/stubbing/protocols/query.rb +7 -6
  32. data/lib/aws-sdk-core/stubbing/protocols/rest.rb +2 -1
  33. data/lib/aws-sdk-core/stubbing/protocols/rest_json.rb +9 -8
  34. data/lib/aws-sdk-core/stubbing/protocols/rest_xml.rb +6 -5
  35. data/lib/aws-sdk-core/stubbing/protocols/rpc_v2.rb +13 -15
  36. data/lib/aws-sdk-core/stubbing.rb +2 -2
  37. data/lib/aws-sdk-sso/client.rb +52 -29
  38. data/lib/aws-sdk-sso/endpoint_parameters.rb +9 -6
  39. data/lib/aws-sdk-sso/endpoint_provider.rb +14 -18
  40. data/lib/aws-sdk-sso/endpoints.rb +2 -42
  41. data/lib/aws-sdk-sso/plugins/endpoints.rb +1 -14
  42. data/lib/aws-sdk-sso.rb +1 -1
  43. data/lib/aws-sdk-ssooidc/client.rb +76 -47
  44. data/lib/aws-sdk-ssooidc/endpoint_parameters.rb +9 -6
  45. data/lib/aws-sdk-ssooidc/endpoint_provider.rb +14 -18
  46. data/lib/aws-sdk-ssooidc/endpoints.rb +2 -42
  47. data/lib/aws-sdk-ssooidc/plugins/endpoints.rb +1 -14
  48. data/lib/aws-sdk-ssooidc/types.rb +20 -15
  49. data/lib/aws-sdk-ssooidc.rb +1 -1
  50. data/lib/aws-sdk-sts/client.rb +260 -81
  51. data/lib/aws-sdk-sts/client_api.rb +23 -0
  52. data/lib/aws-sdk-sts/endpoint_parameters.rb +10 -9
  53. data/lib/aws-sdk-sts/endpoint_provider.rb +33 -38
  54. data/lib/aws-sdk-sts/endpoints.rb +2 -94
  55. data/lib/aws-sdk-sts/errors.rb +16 -0
  56. data/lib/aws-sdk-sts/plugins/endpoints.rb +1 -22
  57. data/lib/aws-sdk-sts/types.rb +170 -28
  58. data/lib/aws-sdk-sts.rb +1 -1
  59. data/lib/seahorse/client/net_http/connection_pool.rb +2 -0
  60. data/lib/seahorse/client/response.rb +2 -0
  61. metadata +25 -11
@@ -27,7 +27,7 @@ The endpoint provider used to resolve endpoints. Any object that responds to
27
27
  class Handler < Seahorse::Client::Handler
28
28
  def call(context)
29
29
  unless context[:discovered_endpoint]
30
- params = parameters_for_operation(context)
30
+ params = Aws::SSOOIDC::Endpoints.parameters_for_operation(context)
31
31
  endpoint = context.config.endpoint_provider.resolve_endpoint(params)
32
32
 
33
33
  context.http_request.endpoint = endpoint.url
@@ -67,19 +67,6 @@ The endpoint provider used to resolve endpoints. Any object that responds to
67
67
  context.http_request.headers[key] = value
68
68
  end
69
69
  end
70
-
71
- def parameters_for_operation(context)
72
- case context.operation_name
73
- when :create_token
74
- Aws::SSOOIDC::Endpoints::CreateToken.build(context)
75
- when :create_token_with_iam
76
- Aws::SSOOIDC::Endpoints::CreateTokenWithIAM.build(context)
77
- when :register_client
78
- Aws::SSOOIDC::Endpoints::RegisterClient.build(context)
79
- when :start_device_authorization
80
- Aws::SSOOIDC::Endpoints::StartDeviceAuthorization.build(context)
81
- end
82
- end
83
70
  end
84
71
 
85
72
  def add_handlers(handlers, _config)
@@ -64,34 +64,32 @@ module Aws::SSOOIDC
64
64
  # @return [String]
65
65
  #
66
66
  # @!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:
67
+ # Supports the following OAuth grant types: Authorization Code, Device
68
+ # Code, and Refresh Token. Specify one of the following values,
69
+ # depending on the grant type that you want:
70
+ #
71
+ # * Authorization Code - `authorization_code`
70
72
  #
71
73
  # * Device Code - `urn:ietf:params:oauth:grant-type:device_code`
72
74
  #
73
75
  # * Refresh Token - `refresh_token`
74
- #
75
- # For information about how to obtain the device code, see the
76
- # StartDeviceAuthorization topic.
77
76
  # @return [String]
78
77
  #
79
78
  # @!attribute [rw] device_code
80
79
  # 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.
80
+ # short-lived code is used to identify this authorization request.
81
+ # This comes from the result of the StartDeviceAuthorization API.
83
82
  # @return [String]
84
83
  #
85
84
  # @!attribute [rw] code
86
85
  # 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.
86
+ # type. The short-lived code is used to identify this authorization
87
+ # request.
90
88
  # @return [String]
91
89
  #
92
90
  # @!attribute [rw] refresh_token
93
91
  # 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
92
+ # This token is used to refresh short-lived tokens, such as the access
95
93
  # token, that might expire.
96
94
  #
97
95
  # For more information about the features and limitations of the
@@ -217,7 +215,7 @@ module Aws::SSOOIDC
217
215
  #
218
216
  # @!attribute [rw] code
219
217
  # Used only when calling this API for the Authorization Code grant
220
- # type. This short-term code is used to identify this authorization
218
+ # type. This short-lived code is used to identify this authorization
221
219
  # request. The code is obtained through a redirect from IAM Identity
222
220
  # Center to a redirect URI persisted in the Authorization Code
223
221
  # GrantOptions for the application.
@@ -225,7 +223,7 @@ module Aws::SSOOIDC
225
223
  #
226
224
  # @!attribute [rw] refresh_token
227
225
  # Used only when calling this API for the Refresh Token grant type.
228
- # This token is used to refresh short-term tokens, such as the access
226
+ # This token is used to refresh short-lived tokens, such as the access
229
227
  # token, that might expire.
230
228
  #
231
229
  # For more information about the features and limitations of the
@@ -606,7 +604,14 @@ module Aws::SSOOIDC
606
604
  # @!attribute [rw] grant_types
607
605
  # The list of OAuth 2.0 grant types that are defined by the client.
608
606
  # This list is used to restrict the token granting flows available to
609
- # the client.
607
+ # the client. Supports the following OAuth 2.0 grant types:
608
+ # Authorization Code, Device Code, and Refresh Token.
609
+ #
610
+ # * Authorization Code - `authorization_code`
611
+ #
612
+ # * Device Code - `urn:ietf:params:oauth:grant-type:device_code`
613
+ #
614
+ # * Refresh Token - `refresh_token`
610
615
  # @return [Array<String>]
611
616
  #
612
617
  # @!attribute [rw] issuer_url
@@ -56,7 +56,7 @@ module Aws::SSOOIDC
56
56
  autoload :EndpointProvider, 'aws-sdk-ssooidc/endpoint_provider'
57
57
  autoload :Endpoints, 'aws-sdk-ssooidc/endpoints'
58
58
 
59
- GEM_VERSION = '3.209.1'
59
+ GEM_VERSION = '3.220.1'
60
60
 
61
61
  end
62
62