aws-sdk-core 3.269.0 → 3.270.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.
- checksums.yaml +4 -4
- data/CHANGELOG.md +11 -0
- data/VERSION +1 -1
- data/lib/aws-sdk-core/plugins/retry_errors.rb +1 -0
- data/lib/aws-sdk-signin/client.rb +391 -9
- data/lib/aws-sdk-signin/client_api.rb +138 -0
- data/lib/aws-sdk-signin/endpoints.rb +33 -0
- data/lib/aws-sdk-signin/types.rb +357 -19
- data/lib/aws-sdk-signin.rb +2 -2
- data/lib/aws-sdk-sso/client.rb +1 -1
- data/lib/aws-sdk-sso.rb +1 -1
- data/lib/aws-sdk-ssooidc/client.rb +1 -1
- data/lib/aws-sdk-ssooidc.rb +1 -1
- data/lib/aws-sdk-sts/client.rb +1 -1
- data/lib/aws-sdk-sts.rb +1 -1
- data/lib/seahorse/client/configuration.rb +68 -1
- metadata +1 -1
data/lib/aws-sdk-signin/types.rb
CHANGED
|
@@ -55,6 +55,74 @@ module Aws::Signin
|
|
|
55
55
|
include Aws::Structure
|
|
56
56
|
end
|
|
57
57
|
|
|
58
|
+
# A session that could not be revoked
|
|
59
|
+
#
|
|
60
|
+
# @!attribute [rw] session_arn
|
|
61
|
+
# The session ARN
|
|
62
|
+
# @return [String]
|
|
63
|
+
#
|
|
64
|
+
# @!attribute [rw] code
|
|
65
|
+
# The error code
|
|
66
|
+
# @return [String]
|
|
67
|
+
#
|
|
68
|
+
# @!attribute [rw] message
|
|
69
|
+
# The error message
|
|
70
|
+
# @return [String]
|
|
71
|
+
#
|
|
72
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/signin-2023-01-01/BatchRevokeSessionError AWS API Documentation
|
|
73
|
+
#
|
|
74
|
+
class BatchRevokeSessionError < Struct.new(
|
|
75
|
+
:session_arn,
|
|
76
|
+
:code,
|
|
77
|
+
:message)
|
|
78
|
+
SENSITIVE = []
|
|
79
|
+
include Aws::Structure
|
|
80
|
+
end
|
|
81
|
+
|
|
82
|
+
# Input for BatchRevokeSessions operation
|
|
83
|
+
#
|
|
84
|
+
# @!attribute [rw] principal_arn
|
|
85
|
+
# The identity that owns the sessions. Omit to use the caller. Specify
|
|
86
|
+
# arn:aws:iam::\{account-id}:* to revoke any session in the account.
|
|
87
|
+
# @return [String]
|
|
88
|
+
#
|
|
89
|
+
# @!attribute [rw] session_arns
|
|
90
|
+
# The ARNs of the sessions to revoke
|
|
91
|
+
# @return [Array<String>]
|
|
92
|
+
#
|
|
93
|
+
# @!attribute [rw] reason
|
|
94
|
+
# The reason for revoking the sessions
|
|
95
|
+
# @return [String]
|
|
96
|
+
#
|
|
97
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/signin-2023-01-01/BatchRevokeSessionsInput AWS API Documentation
|
|
98
|
+
#
|
|
99
|
+
class BatchRevokeSessionsInput < Struct.new(
|
|
100
|
+
:principal_arn,
|
|
101
|
+
:session_arns,
|
|
102
|
+
:reason)
|
|
103
|
+
SENSITIVE = []
|
|
104
|
+
include Aws::Structure
|
|
105
|
+
end
|
|
106
|
+
|
|
107
|
+
# Output for BatchRevokeSessions operation
|
|
108
|
+
#
|
|
109
|
+
# @!attribute [rw] revoked_sessions
|
|
110
|
+
# Sessions that were revoked
|
|
111
|
+
# @return [Array<Types::RevokedSession>]
|
|
112
|
+
#
|
|
113
|
+
# @!attribute [rw] errors
|
|
114
|
+
# Sessions that could not be revoked
|
|
115
|
+
# @return [Array<Types::BatchRevokeSessionError>]
|
|
116
|
+
#
|
|
117
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/signin-2023-01-01/BatchRevokeSessionsOutput AWS API Documentation
|
|
118
|
+
#
|
|
119
|
+
class BatchRevokeSessionsOutput < Struct.new(
|
|
120
|
+
:revoked_sessions,
|
|
121
|
+
:errors)
|
|
122
|
+
SENSITIVE = []
|
|
123
|
+
include Aws::Structure
|
|
124
|
+
end
|
|
125
|
+
|
|
58
126
|
# Error thrown when request conflicts with current state
|
|
59
127
|
#
|
|
60
128
|
# HTTP Status Code: 409 Conflict
|
|
@@ -292,7 +360,7 @@ module Aws::Signin
|
|
|
292
360
|
# RFC 6749 §5.1.
|
|
293
361
|
#
|
|
294
362
|
# @!attribute [rw] access_token
|
|
295
|
-
#
|
|
363
|
+
# The access token containing principal identity, resource scope, and
|
|
296
364
|
# session metadata.
|
|
297
365
|
# @return [String]
|
|
298
366
|
#
|
|
@@ -301,7 +369,7 @@ module Aws::Signin
|
|
|
301
369
|
# @return [String]
|
|
302
370
|
#
|
|
303
371
|
# @!attribute [rw] expires_in
|
|
304
|
-
#
|
|
372
|
+
# The token lifetime in seconds. Value is the minimum of the caller's
|
|
305
373
|
# session validity and 1 hour (3600 seconds).
|
|
306
374
|
# @return [Integer]
|
|
307
375
|
#
|
|
@@ -318,8 +386,9 @@ module Aws::Signin
|
|
|
318
386
|
# Input structure for CreateOAuth2TokenWithTokenExchange operation
|
|
319
387
|
#
|
|
320
388
|
# @!attribute [rw] grant_type
|
|
321
|
-
# The OAuth 2.0 grant type. Currently
|
|
322
|
-
# "urn:ietf:params:oauth:grant-type:token-exchange"
|
|
389
|
+
# The OAuth 2.0 grant type. Currently supports
|
|
390
|
+
# "urn:ietf:params:oauth:grant-type:token-exchange" and
|
|
391
|
+
# "urn:ietf:params:oauth:grant-type:jwt-bearer".
|
|
323
392
|
# @return [String]
|
|
324
393
|
#
|
|
325
394
|
# @!attribute [rw] subject_token
|
|
@@ -334,17 +403,38 @@ module Aws::Signin
|
|
|
334
403
|
# "grant\_type=urn:ietf:params:oauth:grant-type:token-exchange".
|
|
335
404
|
# @return [String]
|
|
336
405
|
#
|
|
406
|
+
# @!attribute [rw] assertion
|
|
407
|
+
# The JWT authorization grant, as defined in RFC 7523. Required when
|
|
408
|
+
# "grant\_type=urn:ietf:params:oauth:grant-type:jwt-bearer".
|
|
409
|
+
# @return [String]
|
|
410
|
+
#
|
|
411
|
+
# @!attribute [rw] client_id
|
|
412
|
+
# The OAuth 2.0 client identifier. If provided with
|
|
413
|
+
# "grant\_type=urn:ietf:params:oauth:grant-type:jwt-bearer", must
|
|
414
|
+
# match the assertion's "client\_id" claim.
|
|
415
|
+
# @return [String]
|
|
416
|
+
#
|
|
337
417
|
# @!attribute [rw] resource
|
|
338
|
-
# The OAuth resource for which the access token is requested
|
|
339
|
-
#
|
|
340
|
-
#
|
|
418
|
+
# The OAuth resource for which the access token is requested:
|
|
419
|
+
#
|
|
420
|
+
# * "grant\_type=urn:ietf:params:oauth:grant-type:token-exchange":
|
|
421
|
+
# Required. Must be a service principal. Example:
|
|
422
|
+
# "glue.amazonaws.com".
|
|
423
|
+
# * "grant\_type=urn:ietf:params:oauth:grant-type:jwt-bearer":
|
|
424
|
+
# Required when the assertion has no "resource" claim, otherwise
|
|
425
|
+
# must match it. Must be a URI. Example:
|
|
426
|
+
# "https://aws-mcp.us-east-1.api.aws/mcp".
|
|
341
427
|
# @return [String]
|
|
342
428
|
#
|
|
343
429
|
# @!attribute [rw] scope
|
|
344
|
-
# IAM managed policy Amazon Resource Names (ARNs) to apply as
|
|
345
|
-
# policies that further scope down the permissions of the
|
|
346
|
-
# access token, provided as a space-delimited list. Example:
|
|
430
|
+
# The IAM managed policy Amazon Resource Names (ARNs) to apply as
|
|
431
|
+
# session policies that further scope down the permissions of the
|
|
432
|
+
# issued access token, provided as a space-delimited list. Example:
|
|
347
433
|
# "arn:aws:iam::444455556666:policy/MyPolicy".
|
|
434
|
+
#
|
|
435
|
+
# If provided with
|
|
436
|
+
# "grant\_type=urn:ietf:params:oauth:grant-type:jwt-bearer", must
|
|
437
|
+
# match the assertion's "scope" claim.
|
|
348
438
|
# @return [String]
|
|
349
439
|
#
|
|
350
440
|
# @see http://docs.aws.amazon.com/goto/WebAPI/signin-2023-01-01/CreateOAuth2TokenWithTokenExchangeRequest AWS API Documentation
|
|
@@ -353,26 +443,29 @@ module Aws::Signin
|
|
|
353
443
|
:grant_type,
|
|
354
444
|
:subject_token,
|
|
355
445
|
:subject_token_type,
|
|
446
|
+
:assertion,
|
|
447
|
+
:client_id,
|
|
356
448
|
:resource,
|
|
357
449
|
:scope)
|
|
358
|
-
SENSITIVE = [:subject_token]
|
|
450
|
+
SENSITIVE = [:subject_token, :assertion]
|
|
359
451
|
include Aws::Structure
|
|
360
452
|
end
|
|
361
453
|
|
|
362
454
|
# Output structure for CreateOAuth2TokenWithTokenExchange operation.
|
|
363
455
|
#
|
|
364
|
-
# Contains the access token,
|
|
365
|
-
#
|
|
456
|
+
# Contains the access token, token type, and expiration as defined in
|
|
457
|
+
# RFC 6749 §5.1, plus fields specific to the grant type.
|
|
366
458
|
#
|
|
367
459
|
# @!attribute [rw] access_token
|
|
368
|
-
#
|
|
460
|
+
# The access token containing principal identity, resource scope, and
|
|
369
461
|
# session metadata.
|
|
370
462
|
# @return [String]
|
|
371
463
|
#
|
|
372
464
|
# @!attribute [rw] issued_token_type
|
|
373
|
-
# The token type of the issued token.
|
|
374
|
-
# "urn:ietf:params:oauth:
|
|
375
|
-
#
|
|
465
|
+
# The token type of the issued token. Returned when
|
|
466
|
+
# "grant\_type=urn:ietf:params:oauth:grant-type:token-exchange". Value
|
|
467
|
+
# is "urn:ietf:params:oauth:token-type:access\_token" as defined in
|
|
468
|
+
# RFC 8693 §2.2.1.
|
|
376
469
|
# @return [String]
|
|
377
470
|
#
|
|
378
471
|
# @!attribute [rw] token_type
|
|
@@ -381,17 +474,31 @@ module Aws::Signin
|
|
|
381
474
|
# @return [String]
|
|
382
475
|
#
|
|
383
476
|
# @!attribute [rw] expires_in
|
|
384
|
-
#
|
|
477
|
+
# The token lifetime in seconds. Value is the minimum of the provided
|
|
385
478
|
# token's validity and 1 hour (3600 seconds).
|
|
386
479
|
# @return [Integer]
|
|
387
480
|
#
|
|
481
|
+
# @!attribute [rw] resource
|
|
482
|
+
# The resource the access token is scoped to. Returned when
|
|
483
|
+
# "grant\_type=urn:ietf:params:oauth:grant-type:jwt-bearer".
|
|
484
|
+
# @return [String]
|
|
485
|
+
#
|
|
486
|
+
# @!attribute [rw] scope
|
|
487
|
+
# The IAM managed policy ARNs applied as session policies, as a
|
|
488
|
+
# space-delimited list. Returned when
|
|
489
|
+
# "grant\_type=urn:ietf:params:oauth:grant-type:jwt-bearer" and the
|
|
490
|
+
# assertion has a scope.
|
|
491
|
+
# @return [String]
|
|
492
|
+
#
|
|
388
493
|
# @see http://docs.aws.amazon.com/goto/WebAPI/signin-2023-01-01/CreateOAuth2TokenWithTokenExchangeResponse AWS API Documentation
|
|
389
494
|
#
|
|
390
495
|
class CreateOAuth2TokenWithTokenExchangeResponse < Struct.new(
|
|
391
496
|
:access_token,
|
|
392
497
|
:issued_token_type,
|
|
393
498
|
:token_type,
|
|
394
|
-
:expires_in
|
|
499
|
+
:expires_in,
|
|
500
|
+
:resource,
|
|
501
|
+
:scope)
|
|
395
502
|
SENSITIVE = [:access_token]
|
|
396
503
|
include Aws::Structure
|
|
397
504
|
end
|
|
@@ -522,6 +629,102 @@ module Aws::Signin
|
|
|
522
629
|
include Aws::Structure
|
|
523
630
|
end
|
|
524
631
|
|
|
632
|
+
# Input for GetSession operation
|
|
633
|
+
#
|
|
634
|
+
# @!attribute [rw] session_arn
|
|
635
|
+
# The ARN of the session to retrieve
|
|
636
|
+
# @return [String]
|
|
637
|
+
#
|
|
638
|
+
# @!attribute [rw] principal_arn
|
|
639
|
+
# The identity that owns the session. Omit to use the caller. Specify
|
|
640
|
+
# arn:aws:iam::\{account-id}:* to retrieve any session in the
|
|
641
|
+
# account.
|
|
642
|
+
# @return [String]
|
|
643
|
+
#
|
|
644
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/signin-2023-01-01/GetSessionInput AWS API Documentation
|
|
645
|
+
#
|
|
646
|
+
class GetSessionInput < Struct.new(
|
|
647
|
+
:session_arn,
|
|
648
|
+
:principal_arn)
|
|
649
|
+
SENSITIVE = []
|
|
650
|
+
include Aws::Structure
|
|
651
|
+
end
|
|
652
|
+
|
|
653
|
+
# Output for GetSession operation
|
|
654
|
+
#
|
|
655
|
+
# @!attribute [rw] session_arn
|
|
656
|
+
# The session ARN
|
|
657
|
+
# @return [String]
|
|
658
|
+
#
|
|
659
|
+
# @!attribute [rw] principal_arn
|
|
660
|
+
# The IAM identity that owns the session
|
|
661
|
+
# @return [String]
|
|
662
|
+
#
|
|
663
|
+
# @!attribute [rw] role
|
|
664
|
+
# The IAM role for the session, when the owner is a role
|
|
665
|
+
# @return [String]
|
|
666
|
+
#
|
|
667
|
+
# @!attribute [rw] status
|
|
668
|
+
# The session status
|
|
669
|
+
# @return [String]
|
|
670
|
+
#
|
|
671
|
+
# @!attribute [rw] client_id
|
|
672
|
+
# The OAuth client that created the session
|
|
673
|
+
# @return [String]
|
|
674
|
+
#
|
|
675
|
+
# @!attribute [rw] client_type
|
|
676
|
+
# The type of OAuth client that created the session
|
|
677
|
+
# @return [String]
|
|
678
|
+
#
|
|
679
|
+
# @!attribute [rw] resource
|
|
680
|
+
# The resource that the session's tokens are bound to
|
|
681
|
+
# @return [String]
|
|
682
|
+
#
|
|
683
|
+
# @!attribute [rw] issued_at
|
|
684
|
+
# The time the session was created, in Unix epoch seconds
|
|
685
|
+
# @return [Integer]
|
|
686
|
+
#
|
|
687
|
+
# @!attribute [rw] expires_at
|
|
688
|
+
# The time the session expires, in Unix epoch seconds
|
|
689
|
+
# @return [Integer]
|
|
690
|
+
#
|
|
691
|
+
# @!attribute [rw] last_used_at
|
|
692
|
+
# The time the session was last refreshed, in Unix epoch seconds
|
|
693
|
+
# @return [Integer]
|
|
694
|
+
#
|
|
695
|
+
# @!attribute [rw] issued_in_region
|
|
696
|
+
# The AWS Region where the session was created
|
|
697
|
+
# @return [String]
|
|
698
|
+
#
|
|
699
|
+
# @!attribute [rw] origin_session_arn
|
|
700
|
+
# The ARN of the session this session originated from
|
|
701
|
+
# @return [String]
|
|
702
|
+
#
|
|
703
|
+
# @!attribute [rw] user_agent
|
|
704
|
+
# The user agent captured when the session was created or last
|
|
705
|
+
# refreshed
|
|
706
|
+
# @return [String]
|
|
707
|
+
#
|
|
708
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/signin-2023-01-01/GetSessionOutput AWS API Documentation
|
|
709
|
+
#
|
|
710
|
+
class GetSessionOutput < Struct.new(
|
|
711
|
+
:session_arn,
|
|
712
|
+
:principal_arn,
|
|
713
|
+
:role,
|
|
714
|
+
:status,
|
|
715
|
+
:client_id,
|
|
716
|
+
:client_type,
|
|
717
|
+
:resource,
|
|
718
|
+
:issued_at,
|
|
719
|
+
:expires_at,
|
|
720
|
+
:last_used_at,
|
|
721
|
+
:issued_in_region,
|
|
722
|
+
:origin_session_arn,
|
|
723
|
+
:user_agent)
|
|
724
|
+
SENSITIVE = []
|
|
725
|
+
include Aws::Structure
|
|
726
|
+
end
|
|
727
|
+
|
|
525
728
|
# The request failed because of an internal server error.
|
|
526
729
|
#
|
|
527
730
|
# @!attribute [rw] error
|
|
@@ -731,6 +934,73 @@ module Aws::Signin
|
|
|
731
934
|
include Aws::Structure
|
|
732
935
|
end
|
|
733
936
|
|
|
937
|
+
# Input for ListSessions operation
|
|
938
|
+
#
|
|
939
|
+
# @!attribute [rw] principal_arn
|
|
940
|
+
# The identity whose sessions to list. Omit to list the caller's own
|
|
941
|
+
# sessions. Specify arn:aws:iam::\{account-id}:* to list all sessions
|
|
942
|
+
# in the account.
|
|
943
|
+
# @return [String]
|
|
944
|
+
#
|
|
945
|
+
# @!attribute [rw] max_results
|
|
946
|
+
# Maximum number of results to return
|
|
947
|
+
# @return [Integer]
|
|
948
|
+
#
|
|
949
|
+
# @!attribute [rw] next_token
|
|
950
|
+
# Token for pagination
|
|
951
|
+
# @return [String]
|
|
952
|
+
#
|
|
953
|
+
# @!attribute [rw] status
|
|
954
|
+
# Returns only sessions with this status
|
|
955
|
+
# @return [String]
|
|
956
|
+
#
|
|
957
|
+
# @!attribute [rw] client_id
|
|
958
|
+
# Returns only sessions created by this OAuth client
|
|
959
|
+
# @return [String]
|
|
960
|
+
#
|
|
961
|
+
# @!attribute [rw] issued_after
|
|
962
|
+
# Returns only sessions created at or after this time, in Unix epoch
|
|
963
|
+
# seconds
|
|
964
|
+
# @return [Integer]
|
|
965
|
+
#
|
|
966
|
+
# @!attribute [rw] issued_before
|
|
967
|
+
# Returns only sessions created before this time, in Unix epoch
|
|
968
|
+
# seconds
|
|
969
|
+
# @return [Integer]
|
|
970
|
+
#
|
|
971
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/signin-2023-01-01/ListSessionsInput AWS API Documentation
|
|
972
|
+
#
|
|
973
|
+
class ListSessionsInput < Struct.new(
|
|
974
|
+
:principal_arn,
|
|
975
|
+
:max_results,
|
|
976
|
+
:next_token,
|
|
977
|
+
:status,
|
|
978
|
+
:client_id,
|
|
979
|
+
:issued_after,
|
|
980
|
+
:issued_before)
|
|
981
|
+
SENSITIVE = []
|
|
982
|
+
include Aws::Structure
|
|
983
|
+
end
|
|
984
|
+
|
|
985
|
+
# Output for ListSessions operation
|
|
986
|
+
#
|
|
987
|
+
# @!attribute [rw] items
|
|
988
|
+
# List of session summaries
|
|
989
|
+
# @return [Array<Types::Session>]
|
|
990
|
+
#
|
|
991
|
+
# @!attribute [rw] next_token
|
|
992
|
+
# Token for next page of results
|
|
993
|
+
# @return [String]
|
|
994
|
+
#
|
|
995
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/signin-2023-01-01/ListSessionsOutput AWS API Documentation
|
|
996
|
+
#
|
|
997
|
+
class ListSessionsOutput < Struct.new(
|
|
998
|
+
:items,
|
|
999
|
+
:next_token)
|
|
1000
|
+
SENSITIVE = []
|
|
1001
|
+
include Aws::Structure
|
|
1002
|
+
end
|
|
1003
|
+
|
|
734
1004
|
# Summary of a permission statement
|
|
735
1005
|
#
|
|
736
1006
|
# @!attribute [rw] sid
|
|
@@ -941,6 +1211,20 @@ module Aws::Signin
|
|
|
941
1211
|
#
|
|
942
1212
|
class RevokeOAuth2TokenWithIAMResponse < Aws::EmptyStructure; end
|
|
943
1213
|
|
|
1214
|
+
# A session that was revoked
|
|
1215
|
+
#
|
|
1216
|
+
# @!attribute [rw] session_arn
|
|
1217
|
+
# The revoked session ARN
|
|
1218
|
+
# @return [String]
|
|
1219
|
+
#
|
|
1220
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/signin-2023-01-01/RevokedSession AWS API Documentation
|
|
1221
|
+
#
|
|
1222
|
+
class RevokedSession < Struct.new(
|
|
1223
|
+
:session_arn)
|
|
1224
|
+
SENSITIVE = []
|
|
1225
|
+
include Aws::Structure
|
|
1226
|
+
end
|
|
1227
|
+
|
|
944
1228
|
# Error thrown when service quota is exceeded
|
|
945
1229
|
#
|
|
946
1230
|
# HTTP Status Code: 402 Payment Required (used as quota exceeded
|
|
@@ -986,6 +1270,60 @@ module Aws::Signin
|
|
|
986
1270
|
include Aws::Structure
|
|
987
1271
|
end
|
|
988
1272
|
|
|
1273
|
+
# Summary of a sign-in session
|
|
1274
|
+
#
|
|
1275
|
+
# @!attribute [rw] session_arn
|
|
1276
|
+
# The session ARN
|
|
1277
|
+
# @return [String]
|
|
1278
|
+
#
|
|
1279
|
+
# @!attribute [rw] principal_arn
|
|
1280
|
+
# The IAM identity that owns the session
|
|
1281
|
+
# @return [String]
|
|
1282
|
+
#
|
|
1283
|
+
# @!attribute [rw] role
|
|
1284
|
+
# The IAM role for the session, when the owner is a role
|
|
1285
|
+
# @return [String]
|
|
1286
|
+
#
|
|
1287
|
+
# @!attribute [rw] status
|
|
1288
|
+
# The session status
|
|
1289
|
+
# @return [String]
|
|
1290
|
+
#
|
|
1291
|
+
# @!attribute [rw] issued_at
|
|
1292
|
+
# The time the session was created, in Unix epoch seconds
|
|
1293
|
+
# @return [Integer]
|
|
1294
|
+
#
|
|
1295
|
+
# @!attribute [rw] expires_at
|
|
1296
|
+
# The time the session expires, in Unix epoch seconds
|
|
1297
|
+
# @return [Integer]
|
|
1298
|
+
#
|
|
1299
|
+
# @!attribute [rw] client_id
|
|
1300
|
+
# The OAuth client that created the session
|
|
1301
|
+
# @return [String]
|
|
1302
|
+
#
|
|
1303
|
+
# @!attribute [rw] client_type
|
|
1304
|
+
# The type of OAuth client that created the session
|
|
1305
|
+
# @return [String]
|
|
1306
|
+
#
|
|
1307
|
+
# @!attribute [rw] resource
|
|
1308
|
+
# The resource that the session's tokens are bound to
|
|
1309
|
+
# @return [String]
|
|
1310
|
+
#
|
|
1311
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/signin-2023-01-01/Session AWS API Documentation
|
|
1312
|
+
#
|
|
1313
|
+
class Session < Struct.new(
|
|
1314
|
+
:session_arn,
|
|
1315
|
+
:principal_arn,
|
|
1316
|
+
:role,
|
|
1317
|
+
:status,
|
|
1318
|
+
:issued_at,
|
|
1319
|
+
:expires_at,
|
|
1320
|
+
:client_id,
|
|
1321
|
+
:client_type,
|
|
1322
|
+
:resource)
|
|
1323
|
+
SENSITIVE = []
|
|
1324
|
+
include Aws::Structure
|
|
1325
|
+
end
|
|
1326
|
+
|
|
989
1327
|
# SignIn resource-based policy document
|
|
990
1328
|
#
|
|
991
1329
|
# @!attribute [rw] version
|
data/lib/aws-sdk-signin.rb
CHANGED
|
@@ -25,7 +25,7 @@ Aws::Plugins::GlobalConfiguration.add_identifier(:signin)
|
|
|
25
25
|
# structure.
|
|
26
26
|
#
|
|
27
27
|
# signin = Aws::Signin::Client.new
|
|
28
|
-
# resp = signin.
|
|
28
|
+
# resp = signin.batch_revoke_sessions(params)
|
|
29
29
|
#
|
|
30
30
|
# See {Client} for more information.
|
|
31
31
|
#
|
|
@@ -56,7 +56,7 @@ module Aws::Signin
|
|
|
56
56
|
autoload :EndpointProvider, 'aws-sdk-signin/endpoint_provider'
|
|
57
57
|
autoload :Endpoints, 'aws-sdk-signin/endpoints'
|
|
58
58
|
|
|
59
|
-
GEM_VERSION = '3.
|
|
59
|
+
GEM_VERSION = '3.270.0'
|
|
60
60
|
|
|
61
61
|
end
|
|
62
62
|
|
data/lib/aws-sdk-sso/client.rb
CHANGED
data/lib/aws-sdk-sso.rb
CHANGED
data/lib/aws-sdk-ssooidc.rb
CHANGED
data/lib/aws-sdk-sts/client.rb
CHANGED
data/lib/aws-sdk-sts.rb
CHANGED
|
@@ -73,6 +73,73 @@ module Seahorse
|
|
|
73
73
|
end
|
|
74
74
|
end
|
|
75
75
|
|
|
76
|
+
# @api private
|
|
77
|
+
class DynamicStruct
|
|
78
|
+
attr_reader :members
|
|
79
|
+
|
|
80
|
+
def initialize(members)
|
|
81
|
+
@members = members.map(&:to_sym).to_set
|
|
82
|
+
@attributes = {}
|
|
83
|
+
end
|
|
84
|
+
|
|
85
|
+
def [](name)
|
|
86
|
+
name = name.to_sym
|
|
87
|
+
unless @members.include?(name)
|
|
88
|
+
raise NameError, "No member #{name} in Struct"
|
|
89
|
+
end
|
|
90
|
+
|
|
91
|
+
@attributes[name]
|
|
92
|
+
end
|
|
93
|
+
|
|
94
|
+
def []=(name, value)
|
|
95
|
+
name = name.to_sym
|
|
96
|
+
unless @members.include?(name)
|
|
97
|
+
raise NameError, "No member #{name} in Struct"
|
|
98
|
+
end
|
|
99
|
+
|
|
100
|
+
@attributes[name] = value
|
|
101
|
+
end
|
|
102
|
+
|
|
103
|
+
def each_pair
|
|
104
|
+
return enum_for(:each_pair) unless block_given?
|
|
105
|
+
|
|
106
|
+
@members.each do |member|
|
|
107
|
+
yield(member, @attributes[member])
|
|
108
|
+
end
|
|
109
|
+
self
|
|
110
|
+
end
|
|
111
|
+
|
|
112
|
+
def initialize_copy(source)
|
|
113
|
+
super
|
|
114
|
+
@members = @members.dup
|
|
115
|
+
@attributes = @attributes.dup
|
|
116
|
+
end
|
|
117
|
+
|
|
118
|
+
private
|
|
119
|
+
|
|
120
|
+
alias_method :write_attribute, :[]=
|
|
121
|
+
alias_method :read_attribute, :[]
|
|
122
|
+
|
|
123
|
+
def method_missing(name, *args, **kwargs, &block)
|
|
124
|
+
if name.end_with?('=')
|
|
125
|
+
attr_name = name[0..-2].to_sym
|
|
126
|
+
if @members.include?(attr_name)
|
|
127
|
+
write_attribute(attr_name, *args, **kwargs, &block)
|
|
128
|
+
else
|
|
129
|
+
super
|
|
130
|
+
end
|
|
131
|
+
elsif @members.include?(name)
|
|
132
|
+
read_attribute(name, *args, **kwargs, &block)
|
|
133
|
+
else
|
|
134
|
+
super
|
|
135
|
+
end
|
|
136
|
+
end
|
|
137
|
+
|
|
138
|
+
def respond_to_missing?(name, include_private = false)
|
|
139
|
+
@members.include?(name) || (name.end_with?('=') && @members.include?(name[0..-2].to_sym)) || super
|
|
140
|
+
end
|
|
141
|
+
end
|
|
142
|
+
|
|
76
143
|
# @api private
|
|
77
144
|
def initialize
|
|
78
145
|
@defaults = Hash.new { |h,k| h[k] = Defaults.new }
|
|
@@ -156,7 +223,7 @@ module Seahorse
|
|
|
156
223
|
private
|
|
157
224
|
|
|
158
225
|
def empty_struct
|
|
159
|
-
|
|
226
|
+
DynamicStruct.new(@defaults.keys.sort)
|
|
160
227
|
end
|
|
161
228
|
|
|
162
229
|
def apply_options(struct, options)
|