aws-sdk-credentialbroker 1.0.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.
@@ -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::CredentialBroker
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,448 @@
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::CredentialBroker
11
+ module Types
12
+
13
+ # The caller is not authorized to perform the request, or a resource the
14
+ # request depends on refused access. `reason` distinguishes a denial by
15
+ # this service from a denial reported by a dependency the caller
16
+ # configured, such as a customer-owned secret, KMS key, or external
17
+ # identity provider, which usually points at a permission or
18
+ # configuration fix outside this API.
19
+ #
20
+ # @!attribute [rw] message
21
+ # @return [String]
22
+ #
23
+ # @!attribute [rw] reason
24
+ # Identifies what denied the request. New values may be added over
25
+ # time, so treat an unrecognized value as a generic authorization
26
+ # failure and rely on `message` for detail.
27
+ # @return [String]
28
+ #
29
+ # @see http://docs.aws.amazon.com/goto/WebAPI/credentialbroker-2026-07-01/AccessDeniedException AWS API Documentation
30
+ #
31
+ class AccessDeniedException < Struct.new(
32
+ :message,
33
+ :reason)
34
+ SENSITIVE = []
35
+ include Aws::Structure
36
+ end
37
+
38
+ # @!attribute [rw] session_uri
39
+ # The session handle from StartOAuthSession.
40
+ # @return [String]
41
+ #
42
+ # @see http://docs.aws.amazon.com/goto/WebAPI/credentialbroker-2026-07-01/CompleteOAuthSessionBindingRequest AWS API Documentation
43
+ #
44
+ class CompleteOAuthSessionBindingRequest < Struct.new(
45
+ :session_uri)
46
+ SENSITIVE = []
47
+ include Aws::Structure
48
+ end
49
+
50
+ # @!attribute [rw] session_uri
51
+ # Echoes the bound session handle.
52
+ # @return [String]
53
+ #
54
+ # @see http://docs.aws.amazon.com/goto/WebAPI/credentialbroker-2026-07-01/CompleteOAuthSessionBindingResponse AWS API Documentation
55
+ #
56
+ class CompleteOAuthSessionBindingResponse < Struct.new(
57
+ :session_uri)
58
+ SENSITIVE = []
59
+ include Aws::Structure
60
+ end
61
+
62
+ # The request conflicts with the current state of the resource. Nothing
63
+ # was changed. Depending on `reason`, the request may succeed if retried
64
+ # once the resource reaches a settled state, or it may require different
65
+ # input (for example a name that is not already taken).
66
+ #
67
+ # @!attribute [rw] message
68
+ # @return [String]
69
+ #
70
+ # @!attribute [rw] resource_id
71
+ # The identifier of the resource the request conflicted with, when the
72
+ # service attributes the conflict to a single resource.
73
+ # @return [String]
74
+ #
75
+ # @!attribute [rw] resource_type
76
+ # The type of the resource named by `resourceId`, when present.
77
+ # @return [String]
78
+ #
79
+ # @!attribute [rw] reason
80
+ # Identifies the kind of state conflict that caused the request to be
81
+ # rejected. New values may be added over time, so treat an
82
+ # unrecognized value as a generic conflict and rely on `message`.
83
+ # @return [String]
84
+ #
85
+ # @see http://docs.aws.amazon.com/goto/WebAPI/credentialbroker-2026-07-01/ConflictException AWS API Documentation
86
+ #
87
+ class ConflictException < Struct.new(
88
+ :message,
89
+ :resource_id,
90
+ :resource_type,
91
+ :reason)
92
+ SENSITIVE = []
93
+ include Aws::Structure
94
+ end
95
+
96
+ # @!attribute [rw] credential_provider_arn
97
+ # Amazon Resource Name of the credential provider to obtain the key
98
+ # from. The provider must be an API key provider and must be READY.
99
+ # @return [String]
100
+ #
101
+ # @see http://docs.aws.amazon.com/goto/WebAPI/credentialbroker-2026-07-01/GetApiKeyRequest AWS API Documentation
102
+ #
103
+ class GetApiKeyRequest < Struct.new(
104
+ :credential_provider_arn)
105
+ SENSITIVE = []
106
+ include Aws::Structure
107
+ end
108
+
109
+ # @!attribute [rw] api_key
110
+ # The API key. Present it to the third-party API however that API
111
+ # expects, commonly a header or query parameter.
112
+ # @return [String]
113
+ #
114
+ # @see http://docs.aws.amazon.com/goto/WebAPI/credentialbroker-2026-07-01/GetApiKeyResponse AWS API Documentation
115
+ #
116
+ class GetApiKeyResponse < Struct.new(
117
+ :api_key)
118
+ SENSITIVE = [:api_key]
119
+ include Aws::Structure
120
+ end
121
+
122
+ # @!attribute [rw] credential_provider_arn
123
+ # Amazon Resource Name of the credential provider to obtain the token
124
+ # from. The provider must be an OAuth provider and must be READY.
125
+ # @return [String]
126
+ #
127
+ # @!attribute [rw] grant_type
128
+ # How the token is obtained. Must be one of the grant types the
129
+ # provider allows; a grant the provider does not allow is rejected.
130
+ # @return [String]
131
+ #
132
+ # @!attribute [rw] scopes
133
+ # The OAuth scopes to request from the authorization server.
134
+ # @return [Array<String>]
135
+ #
136
+ # @!attribute [rw] resources
137
+ # Resource indicators (RFC 8707) naming the APIs this token is for.
138
+ # Omit unless the authorization server requires them.
139
+ # @return [Array<String>]
140
+ #
141
+ # @!attribute [rw] audiences
142
+ # Audience values (RFC 8693) naming the intended recipients of this
143
+ # token. Omit unless the authorization server requires them.
144
+ # @return [Array<String>]
145
+ #
146
+ # @!attribute [rw] custom_parameters
147
+ # Extra parameters to include in the request to the authorization
148
+ # server, for vendor extensions. Added to the standard OAuth
149
+ # parameters; they never override them.
150
+ # @return [Hash<String,String>]
151
+ #
152
+ # @!attribute [rw] force_authentication
153
+ # Request a new token from the authorization server even when the
154
+ # broker already holds a valid one for this provider. Defaults to
155
+ # false, which returns the held token when one is available.
156
+ # @return [Boolean]
157
+ #
158
+ # @!attribute [rw] session_uri
159
+ # Return the token obtained for a consent session that a user has
160
+ # already completed. Supply the handle returned when the session was
161
+ # started.
162
+ # @return [String]
163
+ #
164
+ # @see http://docs.aws.amazon.com/goto/WebAPI/credentialbroker-2026-07-01/GetOAuthTokenRequest AWS API Documentation
165
+ #
166
+ class GetOAuthTokenRequest < Struct.new(
167
+ :credential_provider_arn,
168
+ :grant_type,
169
+ :scopes,
170
+ :resources,
171
+ :audiences,
172
+ :custom_parameters,
173
+ :force_authentication,
174
+ :session_uri)
175
+ SENSITIVE = [:custom_parameters]
176
+ include Aws::Structure
177
+ end
178
+
179
+ # @!attribute [rw] access_token
180
+ # The access token. Present it to the third-party API as a bearer
181
+ # credential.
182
+ # @return [String]
183
+ #
184
+ # @!attribute [rw] expires_at
185
+ # When the access token expires. Absent when the authorization server
186
+ # does not report an expiry, in which case the token's lifetime is
187
+ # whatever that server applies.
188
+ # @return [Time]
189
+ #
190
+ # @!attribute [rw] session_status
191
+ # Status of the consent session named in the request, so a repeated
192
+ # call can tell whether the user has finished granting consent.
193
+ # @return [String]
194
+ #
195
+ # @see http://docs.aws.amazon.com/goto/WebAPI/credentialbroker-2026-07-01/GetOAuthTokenResponse AWS API Documentation
196
+ #
197
+ class GetOAuthTokenResponse < Struct.new(
198
+ :access_token,
199
+ :expires_at,
200
+ :session_status)
201
+ SENSITIVE = [:access_token]
202
+ include Aws::Structure
203
+ end
204
+
205
+ # The request failed because of an unexpected error in the service.
206
+ # Whether the request took effect is undefined, so for a create or
207
+ # update, read the resource back before retrying. Retryable: the same
208
+ # request may succeed later.
209
+ #
210
+ # @!attribute [rw] message
211
+ # @return [String]
212
+ #
213
+ # @!attribute [rw] retry_after_seconds
214
+ # The number of seconds to wait before retrying. If this field is
215
+ # absent, retry with exponential backoff.
216
+ # @return [Integer]
217
+ #
218
+ # @see http://docs.aws.amazon.com/goto/WebAPI/credentialbroker-2026-07-01/InternalServerException AWS API Documentation
219
+ #
220
+ class InternalServerException < Struct.new(
221
+ :message,
222
+ :retry_after_seconds)
223
+ SENSITIVE = []
224
+ include Aws::Structure
225
+ end
226
+
227
+ # The requested resource does not exist, or the caller is not permitted
228
+ # to know that it exists. A resource that was deleted, or that is still
229
+ # being created, can also be reported this way.
230
+ #
231
+ # @!attribute [rw] message
232
+ # @return [String]
233
+ #
234
+ # @!attribute [rw] resource_id
235
+ # The identifier of the resource that could not be found, echoed from
236
+ # the request.
237
+ # @return [String]
238
+ #
239
+ # @!attribute [rw] resource_type
240
+ # The type of the resource named by `resourceId`, when present.
241
+ # @return [String]
242
+ #
243
+ # @see http://docs.aws.amazon.com/goto/WebAPI/credentialbroker-2026-07-01/ResourceNotFoundException AWS API Documentation
244
+ #
245
+ class ResourceNotFoundException < Struct.new(
246
+ :message,
247
+ :resource_id,
248
+ :resource_type)
249
+ SENSITIVE = []
250
+ include Aws::Structure
251
+ end
252
+
253
+ # The request would exceed a service quota, so it was rejected and
254
+ # nothing was created or changed. Delete resources that are no longer
255
+ # needed, or request a quota increase in Service Quotas using
256
+ # `serviceCode` and `quotaCode`, then retry.
257
+ #
258
+ # @!attribute [rw] message
259
+ # @return [String]
260
+ #
261
+ # @!attribute [rw] resource_id
262
+ # The identifier of the resource whose quota was exceeded, when the
263
+ # quota applies to a specific resource rather than the account.
264
+ # @return [String]
265
+ #
266
+ # @!attribute [rw] resource_type
267
+ # The type of the resource named by `resourceId`, when present.
268
+ # @return [String]
269
+ #
270
+ # @!attribute [rw] service_code
271
+ # The Service Quotas requirement that identifies the originating
272
+ # service.
273
+ # @return [String]
274
+ #
275
+ # @!attribute [rw] quota_code
276
+ # The Service Quotas requirement that identifies the originating
277
+ # quota.
278
+ # @return [String]
279
+ #
280
+ # @see http://docs.aws.amazon.com/goto/WebAPI/credentialbroker-2026-07-01/ServiceQuotaExceededException AWS API Documentation
281
+ #
282
+ class ServiceQuotaExceededException < Struct.new(
283
+ :message,
284
+ :resource_id,
285
+ :resource_type,
286
+ :service_code,
287
+ :quota_code)
288
+ SENSITIVE = []
289
+ include Aws::Structure
290
+ end
291
+
292
+ # A downstream dependency the broker relies on is temporarily
293
+ # unavailable, notably the customer's external IdP token/discovery
294
+ # endpoint (upstream 5xx, `server_error`, or `temporarily_unavailable`).
295
+ # Retryable: the same request may succeed later.
296
+ #
297
+ # @!attribute [rw] message
298
+ # @return [String]
299
+ #
300
+ # @!attribute [rw] retry_after_seconds
301
+ # The number of seconds to wait before retrying. If this field is
302
+ # absent, retry with exponential backoff.
303
+ # @return [Integer]
304
+ #
305
+ # @see http://docs.aws.amazon.com/goto/WebAPI/credentialbroker-2026-07-01/ServiceUnavailableException AWS API Documentation
306
+ #
307
+ class ServiceUnavailableException < Struct.new(
308
+ :message,
309
+ :retry_after_seconds)
310
+ SENSITIVE = []
311
+ include Aws::Structure
312
+ end
313
+
314
+ # @!attribute [rw] credential_provider_arn
315
+ # Amazon Resource Name of the credential provider the user is granting
316
+ # consent for.
317
+ # @return [String]
318
+ #
319
+ # @!attribute [rw] scopes
320
+ # The OAuth scopes to request from the authorization server.
321
+ # @return [Array<String>]
322
+ #
323
+ # @!attribute [rw] session_binding_url
324
+ # The URL the end user's browser is returned to once they have
325
+ # responded to the consent prompt. Must match one of the
326
+ # session-binding URLs allowed on the provider.
327
+ # @return [String]
328
+ #
329
+ # @!attribute [rw] resources
330
+ # Resource indicators (RFC 8707) naming the APIs this token is for.
331
+ # Omit unless the authorization server requires them.
332
+ # @return [Array<String>]
333
+ #
334
+ # @!attribute [rw] audiences
335
+ # Audience values (RFC 8693) naming the intended recipients of this
336
+ # token. Omit unless the authorization server requires them.
337
+ # @return [Array<String>]
338
+ #
339
+ # @!attribute [rw] custom_parameters
340
+ # Extra parameters to include in the request to the authorization
341
+ # server, for vendor extensions. Added to the standard OAuth
342
+ # parameters; they never override them.
343
+ # @return [Hash<String,String>]
344
+ #
345
+ # @!attribute [rw] custom_state
346
+ # An opaque string of your own that is sent back to your
347
+ # session-binding URL unchanged. Use it to tie the response to the
348
+ # request you issued, so your handler can reject a response it did not
349
+ # initiate.
350
+ # @return [String]
351
+ #
352
+ # @see http://docs.aws.amazon.com/goto/WebAPI/credentialbroker-2026-07-01/StartOAuthSessionRequest AWS API Documentation
353
+ #
354
+ class StartOAuthSessionRequest < Struct.new(
355
+ :credential_provider_arn,
356
+ :scopes,
357
+ :session_binding_url,
358
+ :resources,
359
+ :audiences,
360
+ :custom_parameters,
361
+ :custom_state)
362
+ SENSITIVE = [:custom_parameters, :custom_state]
363
+ include Aws::Structure
364
+ end
365
+
366
+ # @!attribute [rw] authorization_url
367
+ # The URL to send the end user's browser to so they can grant
368
+ # consent. Present only when consent is required; absent when a token
369
+ # was available and is returned instead.
370
+ # @return [String]
371
+ #
372
+ # @!attribute [rw] session_uri
373
+ # Opaque handle to the pending consent session. Present only when
374
+ # interactive consent is required (absent when accessToken is
375
+ # returned).
376
+ # @return [String]
377
+ #
378
+ # @!attribute [rw] session_status
379
+ # Status of the session (IN\_PROGRESS when consent is required).
380
+ # @return [String]
381
+ #
382
+ # @!attribute [rw] access_token
383
+ # Present only when a valid token already existed (no consent needed).
384
+ # @return [String]
385
+ #
386
+ # @!attribute [rw] expires_at
387
+ # Expiry of accessToken when returned.
388
+ # @return [Time]
389
+ #
390
+ # @see http://docs.aws.amazon.com/goto/WebAPI/credentialbroker-2026-07-01/StartOAuthSessionResponse AWS API Documentation
391
+ #
392
+ class StartOAuthSessionResponse < Struct.new(
393
+ :authorization_url,
394
+ :session_uri,
395
+ :session_status,
396
+ :access_token,
397
+ :expires_at)
398
+ SENSITIVE = [:access_token]
399
+ include Aws::Structure
400
+ end
401
+
402
+ # The request was denied because the caller exceeded a request rate
403
+ # limit. Nothing was changed. Retry with exponential backoff, honoring
404
+ # `retryAfterSeconds` when it is present.
405
+ #
406
+ # @!attribute [rw] message
407
+ # @return [String]
408
+ #
409
+ # @!attribute [rw] retry_after_seconds
410
+ # The number of seconds to wait before retrying. If this field is
411
+ # absent, retry with exponential backoff.
412
+ # @return [Integer]
413
+ #
414
+ # @see http://docs.aws.amazon.com/goto/WebAPI/credentialbroker-2026-07-01/ThrottlingException AWS API Documentation
415
+ #
416
+ class ThrottlingException < Struct.new(
417
+ :message,
418
+ :retry_after_seconds)
419
+ SENSITIVE = []
420
+ include Aws::Structure
421
+ end
422
+
423
+ # The request is not valid. The request was rejected before any change
424
+ # was made, so it is safe to correct the input and retry. Use `reason`
425
+ # to branch in code and `message` for the human-readable detail of which
426
+ # field or combination of fields was at fault.
427
+ #
428
+ # @!attribute [rw] message
429
+ # @return [String]
430
+ #
431
+ # @!attribute [rw] reason
432
+ # Identifies which validation check a request failed. New values may
433
+ # be added over time, so treat an unrecognized value as a generic
434
+ # validation failure and rely on `message` for detail.
435
+ # @return [String]
436
+ #
437
+ # @see http://docs.aws.amazon.com/goto/WebAPI/credentialbroker-2026-07-01/ValidationException AWS API Documentation
438
+ #
439
+ class ValidationException < Struct.new(
440
+ :message,
441
+ :reason)
442
+ SENSITIVE = []
443
+ include Aws::Structure
444
+ end
445
+
446
+ end
447
+ end
448
+
@@ -0,0 +1,15 @@
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
+ require 'aws-sdk-core/waiters'
11
+
12
+ module Aws::CredentialBroker
13
+ module Waiters
14
+ end
15
+ end
@@ -0,0 +1,62 @@
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
+ require 'aws-sdk-core'
12
+ require 'aws-sigv4'
13
+
14
+ Aws::Plugins::GlobalConfiguration.add_identifier(:credentialbroker)
15
+
16
+ # This module provides support for AWS IAM CredentialBroker. This module is available in the
17
+ # `aws-sdk-credentialbroker` gem.
18
+ #
19
+ # # Client
20
+ #
21
+ # The {Client} class provides one method for each API operation. Operation
22
+ # methods each accept a hash of request parameters and return a response
23
+ # structure.
24
+ #
25
+ # credential_broker = Aws::CredentialBroker::Client.new
26
+ # resp = credential_broker.complete_o_auth_session_binding(params)
27
+ #
28
+ # See {Client} for more information.
29
+ #
30
+ # # Errors
31
+ #
32
+ # Errors returned from AWS IAM CredentialBroker are defined in the
33
+ # {Errors} module and all extend {Errors::ServiceError}.
34
+ #
35
+ # begin
36
+ # # do stuff
37
+ # rescue Aws::CredentialBroker::Errors::ServiceError
38
+ # # rescues all AWS IAM CredentialBroker API errors
39
+ # end
40
+ #
41
+ # See {Errors} for more information.
42
+ #
43
+ # @!group service
44
+ module Aws::CredentialBroker
45
+ autoload :Types, 'aws-sdk-credentialbroker/types'
46
+ autoload :ClientApi, 'aws-sdk-credentialbroker/client_api'
47
+ module Plugins
48
+ autoload :Endpoints, 'aws-sdk-credentialbroker/plugins/endpoints.rb'
49
+ end
50
+ autoload :Client, 'aws-sdk-credentialbroker/client'
51
+ autoload :Errors, 'aws-sdk-credentialbroker/errors'
52
+ autoload :Waiters, 'aws-sdk-credentialbroker/waiters'
53
+ autoload :Resource, 'aws-sdk-credentialbroker/resource'
54
+ autoload :EndpointParameters, 'aws-sdk-credentialbroker/endpoint_parameters'
55
+ autoload :EndpointProvider, 'aws-sdk-credentialbroker/endpoint_provider'
56
+ autoload :Endpoints, 'aws-sdk-credentialbroker/endpoints'
57
+
58
+ GEM_VERSION = '1.0.0'
59
+
60
+ end
61
+
62
+ require_relative 'aws-sdk-credentialbroker/customizations'
data/sig/client.rbs ADDED
@@ -0,0 +1,143 @@
1
+ # WARNING ABOUT GENERATED CODE
2
+ #
3
+ # This file is generated. See the contributing guide for more information:
4
+ # https://github.com/aws/aws-sdk-ruby/blob/version-3/CONTRIBUTING.md
5
+ #
6
+ # WARNING ABOUT GENERATED CODE
7
+
8
+ module Aws
9
+ module CredentialBroker
10
+ class Client < ::Seahorse::Client::Base
11
+ include ::Aws::ClientStubs
12
+
13
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/CredentialBroker/Client.html#initialize-instance_method
14
+ def self.new: (
15
+ ?credentials: untyped,
16
+ ?region: String,
17
+ ?access_key_id: String,
18
+ ?account_id: String,
19
+ ?active_endpoint_cache: bool,
20
+ ?adaptive_retry_wait_to_fill: bool,
21
+ ?auth_scheme_preference: Array[String],
22
+ ?client_side_monitoring: bool,
23
+ ?client_side_monitoring_client_id: String,
24
+ ?client_side_monitoring_host: String,
25
+ ?client_side_monitoring_port: Integer,
26
+ ?client_side_monitoring_publisher: untyped,
27
+ ?convert_params: bool,
28
+ ?correct_clock_skew: bool,
29
+ ?defaults_mode: String,
30
+ ?disable_clock_skew_correction: bool,
31
+ ?disable_host_prefix_injection: bool,
32
+ ?disable_request_compression: bool,
33
+ ?endpoint: String,
34
+ ?endpoint_cache_max_entries: Integer,
35
+ ?endpoint_cache_max_threads: Integer,
36
+ ?endpoint_cache_poll_interval: Integer,
37
+ ?endpoint_discovery: bool,
38
+ ?ignore_configured_endpoint_urls: bool,
39
+ ?log_formatter: untyped,
40
+ ?log_level: Symbol,
41
+ ?logger: untyped,
42
+ ?max_attempts: Integer,
43
+ ?profile: String,
44
+ ?request_checksum_calculation: String,
45
+ ?request_min_compression_size_bytes: Integer,
46
+ ?response_checksum_validation: String,
47
+ ?retry_backoff: Proc,
48
+ ?retry_base_delay: Float,
49
+ ?retry_jitter: (:none | :equal | :full | ^(Integer) -> Integer),
50
+ ?retry_limit: Integer,
51
+ ?retry_max_delay: Integer,
52
+ ?retry_mode: ("legacy" | "standard" | "adaptive"),
53
+ ?sdk_ua_app_id: String,
54
+ ?secret_access_key: String,
55
+ ?session_token: String,
56
+ ?sigv4a_signing_region_set: Array[String],
57
+ ?stub_responses: untyped,
58
+ ?telemetry_provider: Aws::Telemetry::TelemetryProviderBase,
59
+ ?token_provider: untyped,
60
+ ?use_dualstack_endpoint: bool,
61
+ ?use_fips_endpoint: bool,
62
+ ?validate_params: bool,
63
+ ?endpoint_provider: untyped,
64
+ ?http_proxy: String,
65
+ ?http_open_timeout: (Float | Integer),
66
+ ?http_read_timeout: (Float | Integer),
67
+ ?http_idle_timeout: (Float | Integer),
68
+ ?http_continue_timeout: (Float | Integer),
69
+ ?ssl_timeout: (Float | Integer | nil),
70
+ ?http_wire_trace: bool,
71
+ ?ssl_verify_peer: bool,
72
+ ?ssl_ca_bundle: String,
73
+ ?ssl_ca_directory: String,
74
+ ?ssl_ca_store: String,
75
+ ?on_chunk_received: Proc,
76
+ ?on_chunk_sent: Proc,
77
+ ?raise_response_errors: bool
78
+ ) -> instance
79
+ | (?Hash[Symbol, untyped]) -> instance
80
+
81
+
82
+ interface _CompleteOAuthSessionBindingResponseSuccess
83
+ include ::Seahorse::Client::_ResponseSuccess[Types::CompleteOAuthSessionBindingResponse]
84
+ def session_uri: () -> ::String
85
+ end
86
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/CredentialBroker/Client.html#complete_o_auth_session_binding-instance_method
87
+ def complete_o_auth_session_binding: (
88
+ session_uri: ::String
89
+ ) -> _CompleteOAuthSessionBindingResponseSuccess
90
+ | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _CompleteOAuthSessionBindingResponseSuccess
91
+
92
+ interface _GetApiKeyResponseSuccess
93
+ include ::Seahorse::Client::_ResponseSuccess[Types::GetApiKeyResponse]
94
+ def api_key: () -> ::String
95
+ end
96
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/CredentialBroker/Client.html#get_api_key-instance_method
97
+ def get_api_key: (
98
+ credential_provider_arn: ::String
99
+ ) -> _GetApiKeyResponseSuccess
100
+ | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _GetApiKeyResponseSuccess
101
+
102
+ interface _GetOAuthTokenResponseSuccess
103
+ include ::Seahorse::Client::_ResponseSuccess[Types::GetOAuthTokenResponse]
104
+ def access_token: () -> ::String
105
+ def expires_at: () -> ::Time
106
+ def session_status: () -> ("IN_PROGRESS" | "COMPLETED" | "FAILED")
107
+ end
108
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/CredentialBroker/Client.html#get_o_auth_token-instance_method
109
+ def get_o_auth_token: (
110
+ credential_provider_arn: ::String,
111
+ grant_type: ("CLIENT_CREDENTIALS" | "TOKEN_EXCHANGE" | "JWT_AUTHORIZATION_GRANT" | "AUTHORIZATION_CODE"),
112
+ ?scopes: Array[::String],
113
+ ?resources: Array[::String],
114
+ ?audiences: Array[::String],
115
+ ?custom_parameters: Hash[::String, ::String],
116
+ ?force_authentication: bool,
117
+ ?session_uri: ::String
118
+ ) -> _GetOAuthTokenResponseSuccess
119
+ | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _GetOAuthTokenResponseSuccess
120
+
121
+ interface _StartOAuthSessionResponseSuccess
122
+ include ::Seahorse::Client::_ResponseSuccess[Types::StartOAuthSessionResponse]
123
+ def authorization_url: () -> ::String
124
+ def session_uri: () -> ::String
125
+ def session_status: () -> ("IN_PROGRESS" | "COMPLETED" | "FAILED")
126
+ def access_token: () -> ::String
127
+ def expires_at: () -> ::Time
128
+ end
129
+ # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/CredentialBroker/Client.html#start_o_auth_session-instance_method
130
+ def start_o_auth_session: (
131
+ credential_provider_arn: ::String,
132
+ ?scopes: Array[::String],
133
+ session_binding_url: ::String,
134
+ ?resources: Array[::String],
135
+ ?audiences: Array[::String],
136
+ ?custom_parameters: Hash[::String, ::String],
137
+ ?custom_state: ::String
138
+ ) -> _StartOAuthSessionResponseSuccess
139
+ | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _StartOAuthSessionResponseSuccess
140
+ end
141
+ end
142
+ end
143
+