aws-sdk-core 3.121.1 → 3.174.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (112) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +491 -0
  3. data/VERSION +1 -1
  4. data/lib/aws-defaults/default_configuration.rb +153 -0
  5. data/lib/aws-defaults/defaults_mode_config_resolver.rb +107 -0
  6. data/lib/aws-defaults.rb +3 -0
  7. data/lib/aws-sdk-core/arn.rb +13 -0
  8. data/lib/aws-sdk-core/assume_role_credentials.rb +21 -7
  9. data/lib/aws-sdk-core/assume_role_web_identity_credentials.rb +14 -10
  10. data/lib/aws-sdk-core/binary/encode_handler.rb +12 -1
  11. data/lib/aws-sdk-core/client_stubs.rb +5 -1
  12. data/lib/aws-sdk-core/credential_provider_chain.rb +8 -5
  13. data/lib/aws-sdk-core/ec2_metadata.rb +3 -2
  14. data/lib/aws-sdk-core/ecs_credentials.rb +121 -53
  15. data/lib/aws-sdk-core/endpoints/condition.rb +41 -0
  16. data/lib/aws-sdk-core/endpoints/endpoint.rb +17 -0
  17. data/lib/aws-sdk-core/endpoints/endpoint_rule.rb +75 -0
  18. data/lib/aws-sdk-core/endpoints/error_rule.rb +42 -0
  19. data/lib/aws-sdk-core/endpoints/function.rb +80 -0
  20. data/lib/aws-sdk-core/endpoints/matchers.rb +127 -0
  21. data/lib/aws-sdk-core/endpoints/reference.rb +31 -0
  22. data/lib/aws-sdk-core/endpoints/rule.rb +25 -0
  23. data/lib/aws-sdk-core/endpoints/rule_set.rb +52 -0
  24. data/lib/aws-sdk-core/endpoints/rules_provider.rb +37 -0
  25. data/lib/aws-sdk-core/endpoints/templater.rb +58 -0
  26. data/lib/aws-sdk-core/endpoints/tree_rule.rb +45 -0
  27. data/lib/aws-sdk-core/endpoints/url.rb +60 -0
  28. data/lib/aws-sdk-core/endpoints.rb +74 -0
  29. data/lib/aws-sdk-core/errors.rb +14 -1
  30. data/lib/aws-sdk-core/instance_profile_credentials.rb +85 -14
  31. data/lib/aws-sdk-core/json/error_handler.rb +20 -1
  32. data/lib/aws-sdk-core/log/formatter.rb +6 -0
  33. data/lib/aws-sdk-core/pageable_response.rb +81 -32
  34. data/lib/aws-sdk-core/plugins/bearer_authorization.rb +67 -0
  35. data/lib/aws-sdk-core/plugins/checksum_algorithm.rb +340 -0
  36. data/lib/aws-sdk-core/plugins/credentials_configuration.rb +27 -1
  37. data/lib/aws-sdk-core/plugins/defaults_mode.rb +40 -0
  38. data/lib/aws-sdk-core/plugins/endpoint_discovery.rb +6 -2
  39. data/lib/aws-sdk-core/plugins/http_checksum.rb +8 -1
  40. data/lib/aws-sdk-core/plugins/jsonvalue_converter.rb +34 -6
  41. data/lib/aws-sdk-core/plugins/protocols/api_gateway.rb +17 -0
  42. data/lib/aws-sdk-core/plugins/protocols/rest_json.rb +16 -1
  43. data/lib/aws-sdk-core/plugins/recursion_detection.rb +38 -0
  44. data/lib/aws-sdk-core/plugins/regional_endpoint.rb +52 -1
  45. data/lib/aws-sdk-core/plugins/response_paging.rb +1 -1
  46. data/lib/aws-sdk-core/plugins/retries/error_inspector.rb +7 -4
  47. data/lib/aws-sdk-core/plugins/retry_errors.rb +21 -5
  48. data/lib/aws-sdk-core/plugins/sign.rb +200 -0
  49. data/lib/aws-sdk-core/plugins/signature_v2.rb +1 -0
  50. data/lib/aws-sdk-core/plugins/signature_v4.rb +28 -31
  51. data/lib/aws-sdk-core/plugins/stub_responses.rb +5 -1
  52. data/lib/aws-sdk-core/plugins/user_agent.rb +117 -14
  53. data/lib/aws-sdk-core/process_credentials.rb +9 -11
  54. data/lib/aws-sdk-core/refreshing_credentials.rb +42 -11
  55. data/lib/aws-sdk-core/refreshing_token.rb +71 -0
  56. data/lib/aws-sdk-core/rest/handler.rb +1 -1
  57. data/lib/aws-sdk-core/rest/request/body.rb +19 -1
  58. data/lib/aws-sdk-core/rest/request/headers.rb +14 -6
  59. data/lib/aws-sdk-core/rest/response/headers.rb +3 -1
  60. data/lib/aws-sdk-core/shared_config.rb +82 -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/token.rb +31 -0
  66. data/lib/aws-sdk-core/token_provider.rb +15 -0
  67. data/lib/aws-sdk-core/token_provider_chain.rb +51 -0
  68. data/lib/aws-sdk-core/waiters/poller.rb +3 -1
  69. data/lib/aws-sdk-core/xml/error_handler.rb +7 -0
  70. data/lib/aws-sdk-core/xml/parser/engines/oga.rb +2 -0
  71. data/lib/aws-sdk-core/xml/parser/engines/ox.rb +1 -1
  72. data/lib/aws-sdk-core.rb +20 -0
  73. data/lib/aws-sdk-sso/client.rb +82 -15
  74. data/lib/aws-sdk-sso/endpoint_parameters.rb +66 -0
  75. data/lib/aws-sdk-sso/endpoint_provider.rb +51 -0
  76. data/lib/aws-sdk-sso/endpoints.rb +71 -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 +611 -0
  81. data/lib/aws-sdk-ssooidc/client_api.rb +216 -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 +51 -0
  85. data/lib/aws-sdk-ssooidc/endpoints.rb +57 -0
  86. data/lib/aws-sdk-ssooidc/errors.rb +290 -0
  87. data/lib/aws-sdk-ssooidc/plugins/endpoints.rb +74 -0
  88. data/lib/aws-sdk-ssooidc/resource.rb +26 -0
  89. data/lib/aws-sdk-ssooidc/types.rb +502 -0
  90. data/lib/aws-sdk-ssooidc.rb +59 -0
  91. data/lib/aws-sdk-sts/client.rb +377 -361
  92. data/lib/aws-sdk-sts/endpoint_parameters.rb +78 -0
  93. data/lib/aws-sdk-sts/endpoint_provider.rb +112 -0
  94. data/lib/aws-sdk-sts/endpoints.rb +135 -0
  95. data/lib/aws-sdk-sts/plugins/endpoints.rb +84 -0
  96. data/lib/aws-sdk-sts/plugins/sts_regional_endpoints.rb +5 -1
  97. data/lib/aws-sdk-sts/presigner.rb +13 -9
  98. data/lib/aws-sdk-sts/types.rb +127 -225
  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 +6 -2
  102. data/lib/seahorse/client/h2/connection.rb +12 -11
  103. data/lib/seahorse/client/net_http/connection_pool.rb +7 -0
  104. data/lib/seahorse/client/net_http/handler.rb +15 -7
  105. data/lib/seahorse/client/net_http/patches.rb +16 -0
  106. data/lib/seahorse/client/plugins/content_length.rb +11 -5
  107. data/lib/seahorse/client/plugins/net_http.rb +33 -2
  108. data/lib/seahorse/client/plugins/request_callback.rb +9 -9
  109. data/lib/seahorse/model/operation.rb +3 -0
  110. data/lib/seahorse/util.rb +4 -0
  111. metadata +61 -9
  112. data/lib/aws-sdk-sso/plugins/content_type.rb +0 -25
@@ -0,0 +1,74 @@
1
+ # frozen_string_literal: true
2
+
3
+ # WARNING ABOUT GENERATED CODE
4
+ #
5
+ # This file is generated. See the contributing guide for more information:
6
+ # https://github.com/aws/aws-sdk-ruby/blob/version-3/CONTRIBUTING.md
7
+ #
8
+ # WARNING ABOUT GENERATED CODE
9
+
10
+
11
+ module Aws::SSOOIDC
12
+ module Plugins
13
+ class Endpoints < Seahorse::Client::Plugin
14
+ option(
15
+ :endpoint_provider,
16
+ doc_type: 'Aws::SSOOIDC::EndpointProvider',
17
+ docstring: 'The endpoint provider used to resolve endpoints. Any '\
18
+ 'object that responds to `#resolve_endpoint(parameters)` '\
19
+ 'where `parameters` is a Struct similar to '\
20
+ '`Aws::SSOOIDC::EndpointParameters`'
21
+ ) do |cfg|
22
+ Aws::SSOOIDC::EndpointProvider.new
23
+ end
24
+
25
+ # @api private
26
+ class Handler < Seahorse::Client::Handler
27
+ def call(context)
28
+ # If endpoint was discovered, do not resolve or apply the endpoint.
29
+ unless context[:discovered_endpoint]
30
+ params = parameters_for_operation(context)
31
+ endpoint = context.config.endpoint_provider.resolve_endpoint(params)
32
+
33
+ context.http_request.endpoint = endpoint.url
34
+ apply_endpoint_headers(context, endpoint.headers)
35
+ end
36
+
37
+ context[:endpoint_params] = params
38
+ context[:auth_scheme] =
39
+ Aws::Endpoints.resolve_auth_scheme(context, endpoint)
40
+
41
+ @handler.call(context)
42
+ end
43
+
44
+ private
45
+
46
+ def apply_endpoint_headers(context, headers)
47
+ headers.each do |key, values|
48
+ value = values
49
+ .compact
50
+ .map { |s| Seahorse::Util.escape_header_list_string(s.to_s) }
51
+ .join(',')
52
+
53
+ context.http_request.headers[key] = value
54
+ end
55
+ end
56
+
57
+ def parameters_for_operation(context)
58
+ case context.operation_name
59
+ when :create_token
60
+ Aws::SSOOIDC::Endpoints::CreateToken.build(context)
61
+ when :register_client
62
+ Aws::SSOOIDC::Endpoints::RegisterClient.build(context)
63
+ when :start_device_authorization
64
+ Aws::SSOOIDC::Endpoints::StartDeviceAuthorization.build(context)
65
+ end
66
+ end
67
+ end
68
+
69
+ def add_handlers(handlers, _config)
70
+ handlers.add(Handler, step: :build, priority: 75)
71
+ end
72
+ end
73
+ end
74
+ end
@@ -0,0 +1,26 @@
1
+ # frozen_string_literal: true
2
+
3
+ # WARNING ABOUT GENERATED CODE
4
+ #
5
+ # This file is generated. See the contributing guide for more information:
6
+ # https://github.com/aws/aws-sdk-ruby/blob/version-3/CONTRIBUTING.md
7
+ #
8
+ # WARNING ABOUT GENERATED CODE
9
+
10
+ module Aws::SSOOIDC
11
+
12
+ class Resource
13
+
14
+ # @param options ({})
15
+ # @option options [Client] :client
16
+ def initialize(options = {})
17
+ @client = options[:client] || Client.new(options)
18
+ end
19
+
20
+ # @return [Client]
21
+ def client
22
+ @client
23
+ end
24
+
25
+ end
26
+ end
@@ -0,0 +1,502 @@
1
+ # frozen_string_literal: true
2
+
3
+ # WARNING ABOUT GENERATED CODE
4
+ #
5
+ # This file is generated. See the contributing guide for more information:
6
+ # https://github.com/aws/aws-sdk-ruby/blob/version-3/CONTRIBUTING.md
7
+ #
8
+ # WARNING ABOUT GENERATED CODE
9
+
10
+ module Aws::SSOOIDC
11
+ module Types
12
+
13
+ # You do not have sufficient access to perform this action.
14
+ #
15
+ # @!attribute [rw] error
16
+ # @return [String]
17
+ #
18
+ # @!attribute [rw] error_description
19
+ # @return [String]
20
+ #
21
+ # @see http://docs.aws.amazon.com/goto/WebAPI/sso-oidc-2019-06-10/AccessDeniedException AWS API Documentation
22
+ #
23
+ class AccessDeniedException < Struct.new(
24
+ :error,
25
+ :error_description)
26
+ SENSITIVE = []
27
+ include Aws::Structure
28
+ end
29
+
30
+ # Indicates that a request to authorize a client with an access user
31
+ # session token is pending.
32
+ #
33
+ # @!attribute [rw] error
34
+ # @return [String]
35
+ #
36
+ # @!attribute [rw] error_description
37
+ # @return [String]
38
+ #
39
+ # @see http://docs.aws.amazon.com/goto/WebAPI/sso-oidc-2019-06-10/AuthorizationPendingException AWS API Documentation
40
+ #
41
+ class AuthorizationPendingException < Struct.new(
42
+ :error,
43
+ :error_description)
44
+ SENSITIVE = []
45
+ include Aws::Structure
46
+ end
47
+
48
+ # @!attribute [rw] client_id
49
+ # The unique identifier string for each client. This value should come
50
+ # from the persisted result of the RegisterClient API.
51
+ # @return [String]
52
+ #
53
+ # @!attribute [rw] client_secret
54
+ # A secret string generated for the client. This value should come
55
+ # from the persisted result of the RegisterClient API.
56
+ # @return [String]
57
+ #
58
+ # @!attribute [rw] grant_type
59
+ # Supports grant types for the authorization code, refresh token, and
60
+ # device code request. For device code requests, specify the following
61
+ # value:
62
+ #
63
+ # `urn:ietf:params:oauth:grant-type:device_code `
64
+ #
65
+ # For information about how to obtain the device code, see the
66
+ # StartDeviceAuthorization topic.
67
+ # @return [String]
68
+ #
69
+ # @!attribute [rw] device_code
70
+ # Used only when calling this API for the device code grant type. This
71
+ # short-term code is used to identify this authentication attempt.
72
+ # This should come from an in-memory reference to the result of the
73
+ # StartDeviceAuthorization API.
74
+ # @return [String]
75
+ #
76
+ # @!attribute [rw] code
77
+ # The authorization code received from the authorization service. This
78
+ # parameter is required to perform an authorization grant request to
79
+ # get access to a token.
80
+ # @return [String]
81
+ #
82
+ # @!attribute [rw] refresh_token
83
+ # Currently, `refreshToken` is not yet implemented and is not
84
+ # supported. For more information about the features and limitations
85
+ # of the current IAM Identity Center OIDC implementation, see
86
+ # *Considerations for Using this Guide* in the [IAM Identity Center
87
+ # OIDC API Reference][1].
88
+ #
89
+ # The token used to obtain an access token in the event that the
90
+ # access token is invalid or expired.
91
+ #
92
+ #
93
+ #
94
+ # [1]: https://docs.aws.amazon.com/singlesignon/latest/OIDCAPIReference/Welcome.html
95
+ # @return [String]
96
+ #
97
+ # @!attribute [rw] scope
98
+ # The list of scopes that is defined by the client. Upon
99
+ # authorization, this list is used to restrict permissions when
100
+ # granting an access token.
101
+ # @return [Array<String>]
102
+ #
103
+ # @!attribute [rw] redirect_uri
104
+ # The location of the application that will receive the authorization
105
+ # code. Users authorize the service to send the request to this
106
+ # location.
107
+ # @return [String]
108
+ #
109
+ # @see http://docs.aws.amazon.com/goto/WebAPI/sso-oidc-2019-06-10/CreateTokenRequest AWS API Documentation
110
+ #
111
+ class CreateTokenRequest < Struct.new(
112
+ :client_id,
113
+ :client_secret,
114
+ :grant_type,
115
+ :device_code,
116
+ :code,
117
+ :refresh_token,
118
+ :scope,
119
+ :redirect_uri)
120
+ SENSITIVE = []
121
+ include Aws::Structure
122
+ end
123
+
124
+ # @!attribute [rw] access_token
125
+ # An opaque token to access IAM Identity Center resources assigned to
126
+ # a user.
127
+ # @return [String]
128
+ #
129
+ # @!attribute [rw] token_type
130
+ # Used to notify the client that the returned token is an access
131
+ # token. The supported type is `BearerToken`.
132
+ # @return [String]
133
+ #
134
+ # @!attribute [rw] expires_in
135
+ # Indicates the time in seconds when an access token will expire.
136
+ # @return [Integer]
137
+ #
138
+ # @!attribute [rw] refresh_token
139
+ # Currently, `refreshToken` is not yet implemented and is not
140
+ # supported. For more information about the features and limitations
141
+ # of the current IAM Identity Center OIDC implementation, see
142
+ # *Considerations for Using this Guide* in the [IAM Identity Center
143
+ # OIDC API Reference][1].
144
+ #
145
+ # A token that, if present, can be used to refresh a previously issued
146
+ # access token that might have expired.
147
+ #
148
+ #
149
+ #
150
+ # [1]: https://docs.aws.amazon.com/singlesignon/latest/OIDCAPIReference/Welcome.html
151
+ # @return [String]
152
+ #
153
+ # @!attribute [rw] id_token
154
+ # Currently, `idToken` is not yet implemented and is not supported.
155
+ # For more information about the features and limitations of the
156
+ # current IAM Identity Center OIDC implementation, see *Considerations
157
+ # for Using this Guide* in the [IAM Identity Center OIDC API
158
+ # Reference][1].
159
+ #
160
+ # The identifier of the user that associated with the access token, if
161
+ # present.
162
+ #
163
+ #
164
+ #
165
+ # [1]: https://docs.aws.amazon.com/singlesignon/latest/OIDCAPIReference/Welcome.html
166
+ # @return [String]
167
+ #
168
+ # @see http://docs.aws.amazon.com/goto/WebAPI/sso-oidc-2019-06-10/CreateTokenResponse AWS API Documentation
169
+ #
170
+ class CreateTokenResponse < Struct.new(
171
+ :access_token,
172
+ :token_type,
173
+ :expires_in,
174
+ :refresh_token,
175
+ :id_token)
176
+ SENSITIVE = []
177
+ include Aws::Structure
178
+ end
179
+
180
+ # Indicates that the token issued by the service is expired and is no
181
+ # longer valid.
182
+ #
183
+ # @!attribute [rw] error
184
+ # @return [String]
185
+ #
186
+ # @!attribute [rw] error_description
187
+ # @return [String]
188
+ #
189
+ # @see http://docs.aws.amazon.com/goto/WebAPI/sso-oidc-2019-06-10/ExpiredTokenException AWS API Documentation
190
+ #
191
+ class ExpiredTokenException < Struct.new(
192
+ :error,
193
+ :error_description)
194
+ SENSITIVE = []
195
+ include Aws::Structure
196
+ end
197
+
198
+ # Indicates that an error from the service occurred while trying to
199
+ # process a request.
200
+ #
201
+ # @!attribute [rw] error
202
+ # @return [String]
203
+ #
204
+ # @!attribute [rw] error_description
205
+ # @return [String]
206
+ #
207
+ # @see http://docs.aws.amazon.com/goto/WebAPI/sso-oidc-2019-06-10/InternalServerException AWS API Documentation
208
+ #
209
+ class InternalServerException < Struct.new(
210
+ :error,
211
+ :error_description)
212
+ SENSITIVE = []
213
+ include Aws::Structure
214
+ end
215
+
216
+ # Indicates that the `clientId` or `clientSecret` in the request is
217
+ # invalid. For example, this can occur when a client sends an incorrect
218
+ # `clientId` or an expired `clientSecret`.
219
+ #
220
+ # @!attribute [rw] error
221
+ # @return [String]
222
+ #
223
+ # @!attribute [rw] error_description
224
+ # @return [String]
225
+ #
226
+ # @see http://docs.aws.amazon.com/goto/WebAPI/sso-oidc-2019-06-10/InvalidClientException AWS API Documentation
227
+ #
228
+ class InvalidClientException < Struct.new(
229
+ :error,
230
+ :error_description)
231
+ SENSITIVE = []
232
+ include Aws::Structure
233
+ end
234
+
235
+ # Indicates that the client information sent in the request during
236
+ # registration is invalid.
237
+ #
238
+ # @!attribute [rw] error
239
+ # @return [String]
240
+ #
241
+ # @!attribute [rw] error_description
242
+ # @return [String]
243
+ #
244
+ # @see http://docs.aws.amazon.com/goto/WebAPI/sso-oidc-2019-06-10/InvalidClientMetadataException AWS API Documentation
245
+ #
246
+ class InvalidClientMetadataException < Struct.new(
247
+ :error,
248
+ :error_description)
249
+ SENSITIVE = []
250
+ include Aws::Structure
251
+ end
252
+
253
+ # Indicates that a request contains an invalid grant. This can occur if
254
+ # a client makes a CreateToken request with an invalid grant type.
255
+ #
256
+ # @!attribute [rw] error
257
+ # @return [String]
258
+ #
259
+ # @!attribute [rw] error_description
260
+ # @return [String]
261
+ #
262
+ # @see http://docs.aws.amazon.com/goto/WebAPI/sso-oidc-2019-06-10/InvalidGrantException AWS API Documentation
263
+ #
264
+ class InvalidGrantException < Struct.new(
265
+ :error,
266
+ :error_description)
267
+ SENSITIVE = []
268
+ include Aws::Structure
269
+ end
270
+
271
+ # Indicates that something is wrong with the input to the request. For
272
+ # example, a required parameter might be missing or out of range.
273
+ #
274
+ # @!attribute [rw] error
275
+ # @return [String]
276
+ #
277
+ # @!attribute [rw] error_description
278
+ # @return [String]
279
+ #
280
+ # @see http://docs.aws.amazon.com/goto/WebAPI/sso-oidc-2019-06-10/InvalidRequestException AWS API Documentation
281
+ #
282
+ class InvalidRequestException < Struct.new(
283
+ :error,
284
+ :error_description)
285
+ SENSITIVE = []
286
+ include Aws::Structure
287
+ end
288
+
289
+ # Indicates that the scope provided in the request is invalid.
290
+ #
291
+ # @!attribute [rw] error
292
+ # @return [String]
293
+ #
294
+ # @!attribute [rw] error_description
295
+ # @return [String]
296
+ #
297
+ # @see http://docs.aws.amazon.com/goto/WebAPI/sso-oidc-2019-06-10/InvalidScopeException AWS API Documentation
298
+ #
299
+ class InvalidScopeException < Struct.new(
300
+ :error,
301
+ :error_description)
302
+ SENSITIVE = []
303
+ include Aws::Structure
304
+ end
305
+
306
+ # @!attribute [rw] client_name
307
+ # The friendly name of the client.
308
+ # @return [String]
309
+ #
310
+ # @!attribute [rw] client_type
311
+ # The type of client. The service supports only `public` as a client
312
+ # type. Anything other than public will be rejected by the service.
313
+ # @return [String]
314
+ #
315
+ # @!attribute [rw] scopes
316
+ # The list of scopes that are defined by the client. Upon
317
+ # authorization, this list is used to restrict permissions when
318
+ # granting an access token.
319
+ # @return [Array<String>]
320
+ #
321
+ # @see http://docs.aws.amazon.com/goto/WebAPI/sso-oidc-2019-06-10/RegisterClientRequest AWS API Documentation
322
+ #
323
+ class RegisterClientRequest < Struct.new(
324
+ :client_name,
325
+ :client_type,
326
+ :scopes)
327
+ SENSITIVE = []
328
+ include Aws::Structure
329
+ end
330
+
331
+ # @!attribute [rw] client_id
332
+ # The unique identifier string for each client. This client uses this
333
+ # identifier to get authenticated by the service in subsequent calls.
334
+ # @return [String]
335
+ #
336
+ # @!attribute [rw] client_secret
337
+ # A secret string generated for the client. The client will use this
338
+ # string to get authenticated by the service in subsequent calls.
339
+ # @return [String]
340
+ #
341
+ # @!attribute [rw] client_id_issued_at
342
+ # Indicates the time at which the `clientId` and `clientSecret` were
343
+ # issued.
344
+ # @return [Integer]
345
+ #
346
+ # @!attribute [rw] client_secret_expires_at
347
+ # Indicates the time at which the `clientId` and `clientSecret` will
348
+ # become invalid.
349
+ # @return [Integer]
350
+ #
351
+ # @!attribute [rw] authorization_endpoint
352
+ # The endpoint where the client can request authorization.
353
+ # @return [String]
354
+ #
355
+ # @!attribute [rw] token_endpoint
356
+ # The endpoint where the client can get an access token.
357
+ # @return [String]
358
+ #
359
+ # @see http://docs.aws.amazon.com/goto/WebAPI/sso-oidc-2019-06-10/RegisterClientResponse AWS API Documentation
360
+ #
361
+ class RegisterClientResponse < Struct.new(
362
+ :client_id,
363
+ :client_secret,
364
+ :client_id_issued_at,
365
+ :client_secret_expires_at,
366
+ :authorization_endpoint,
367
+ :token_endpoint)
368
+ SENSITIVE = []
369
+ include Aws::Structure
370
+ end
371
+
372
+ # Indicates that the client is making the request too frequently and is
373
+ # more than the service can handle.
374
+ #
375
+ # @!attribute [rw] error
376
+ # @return [String]
377
+ #
378
+ # @!attribute [rw] error_description
379
+ # @return [String]
380
+ #
381
+ # @see http://docs.aws.amazon.com/goto/WebAPI/sso-oidc-2019-06-10/SlowDownException AWS API Documentation
382
+ #
383
+ class SlowDownException < Struct.new(
384
+ :error,
385
+ :error_description)
386
+ SENSITIVE = []
387
+ include Aws::Structure
388
+ end
389
+
390
+ # @!attribute [rw] client_id
391
+ # The unique identifier string for the client that is registered with
392
+ # IAM Identity Center. This value should come from the persisted
393
+ # result of the RegisterClient API operation.
394
+ # @return [String]
395
+ #
396
+ # @!attribute [rw] client_secret
397
+ # A secret string that is generated for the client. This value should
398
+ # come from the persisted result of the RegisterClient API operation.
399
+ # @return [String]
400
+ #
401
+ # @!attribute [rw] start_url
402
+ # The URL for the AWS access portal. For more information, see [Using
403
+ # the AWS access portal][1] in the *IAM Identity Center User Guide*.
404
+ #
405
+ #
406
+ #
407
+ # [1]: https://docs.aws.amazon.com/singlesignon/latest/userguide/using-the-portal.html
408
+ # @return [String]
409
+ #
410
+ # @see http://docs.aws.amazon.com/goto/WebAPI/sso-oidc-2019-06-10/StartDeviceAuthorizationRequest AWS API Documentation
411
+ #
412
+ class StartDeviceAuthorizationRequest < Struct.new(
413
+ :client_id,
414
+ :client_secret,
415
+ :start_url)
416
+ SENSITIVE = []
417
+ include Aws::Structure
418
+ end
419
+
420
+ # @!attribute [rw] device_code
421
+ # The short-lived code that is used by the device when polling for a
422
+ # session token.
423
+ # @return [String]
424
+ #
425
+ # @!attribute [rw] user_code
426
+ # A one-time user verification code. This is needed to authorize an
427
+ # in-use device.
428
+ # @return [String]
429
+ #
430
+ # @!attribute [rw] verification_uri
431
+ # The URI of the verification page that takes the `userCode` to
432
+ # authorize the device.
433
+ # @return [String]
434
+ #
435
+ # @!attribute [rw] verification_uri_complete
436
+ # An alternate URL that the client can use to automatically launch a
437
+ # browser. This process skips the manual step in which the user visits
438
+ # the verification page and enters their code.
439
+ # @return [String]
440
+ #
441
+ # @!attribute [rw] expires_in
442
+ # Indicates the number of seconds in which the verification code will
443
+ # become invalid.
444
+ # @return [Integer]
445
+ #
446
+ # @!attribute [rw] interval
447
+ # Indicates the number of seconds the client must wait between
448
+ # attempts when polling for a session.
449
+ # @return [Integer]
450
+ #
451
+ # @see http://docs.aws.amazon.com/goto/WebAPI/sso-oidc-2019-06-10/StartDeviceAuthorizationResponse AWS API Documentation
452
+ #
453
+ class StartDeviceAuthorizationResponse < Struct.new(
454
+ :device_code,
455
+ :user_code,
456
+ :verification_uri,
457
+ :verification_uri_complete,
458
+ :expires_in,
459
+ :interval)
460
+ SENSITIVE = []
461
+ include Aws::Structure
462
+ end
463
+
464
+ # Indicates that the client is not currently authorized to make the
465
+ # request. This can happen when a `clientId` is not issued for a public
466
+ # client.
467
+ #
468
+ # @!attribute [rw] error
469
+ # @return [String]
470
+ #
471
+ # @!attribute [rw] error_description
472
+ # @return [String]
473
+ #
474
+ # @see http://docs.aws.amazon.com/goto/WebAPI/sso-oidc-2019-06-10/UnauthorizedClientException AWS API Documentation
475
+ #
476
+ class UnauthorizedClientException < Struct.new(
477
+ :error,
478
+ :error_description)
479
+ SENSITIVE = []
480
+ include Aws::Structure
481
+ end
482
+
483
+ # Indicates that the grant type in the request is not supported by the
484
+ # service.
485
+ #
486
+ # @!attribute [rw] error
487
+ # @return [String]
488
+ #
489
+ # @!attribute [rw] error_description
490
+ # @return [String]
491
+ #
492
+ # @see http://docs.aws.amazon.com/goto/WebAPI/sso-oidc-2019-06-10/UnsupportedGrantTypeException AWS API Documentation
493
+ #
494
+ class UnsupportedGrantTypeException < Struct.new(
495
+ :error,
496
+ :error_description)
497
+ SENSITIVE = []
498
+ include Aws::Structure
499
+ end
500
+
501
+ end
502
+ end
@@ -0,0 +1,59 @@
1
+ # frozen_string_literal: true
2
+
3
+ # WARNING ABOUT GENERATED CODE
4
+ #
5
+ # This file is generated. See the contributing guide for more information:
6
+ # https://github.com/aws/aws-sdk-ruby/blob/version-3/CONTRIBUTING.md
7
+ #
8
+ # WARNING ABOUT GENERATED CODE
9
+
10
+
11
+ unless Module.const_defined?(:Aws)
12
+ require 'aws-sdk-core'
13
+ require 'aws-sigv4'
14
+ end
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'
26
+
27
+ # This module provides support for AWS SSO OIDC. This module is available in the
28
+ # `aws-sdk-core` gem.
29
+ #
30
+ # # Client
31
+ #
32
+ # The {Client} class provides one method for each API operation. Operation
33
+ # methods each accept a hash of request parameters and return a response
34
+ # structure.
35
+ #
36
+ # ssooidc = Aws::SSOOIDC::Client.new
37
+ # resp = ssooidc.create_token(params)
38
+ #
39
+ # See {Client} for more information.
40
+ #
41
+ # # Errors
42
+ #
43
+ # Errors returned from AWS SSO OIDC are defined in the
44
+ # {Errors} module and all extend {Errors::ServiceError}.
45
+ #
46
+ # begin
47
+ # # do stuff
48
+ # rescue Aws::SSOOIDC::Errors::ServiceError
49
+ # # rescues all AWS SSO OIDC API errors
50
+ # end
51
+ #
52
+ # See {Errors} for more information.
53
+ #
54
+ # @!group service
55
+ module Aws::SSOOIDC
56
+
57
+ GEM_VERSION = '3.174.0'
58
+
59
+ end