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
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 549649100970d0d9a3ff5b88a057485bb1920b5dca1925c69ee8236a6e2cce0a
|
|
4
|
+
data.tar.gz: e4400dd402c01287bbc6c110ae88ed51d22247e77447440302374bedb0a4d63b
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 39fd059641a6f63460b8ede49984afcb73464fca5867fc697c57d56851d577a55c740515d0856550b513da8365e84f20f289998fc16f411cde7581251b25c139
|
|
7
|
+
data.tar.gz: 1cea1c36867e4a6eea89b5706cf2fa2fd10d63499284abf1d63f4ef5503a6247948fa7db3771417ea407d496a64dea0d9527db661d419bb3d5b09e1b0c055e79
|
data/CHANGELOG.md
CHANGED
|
@@ -1,6 +1,17 @@
|
|
|
1
1
|
Unreleased Changes
|
|
2
2
|
------------------
|
|
3
3
|
|
|
4
|
+
3.270.0 (2026-11-18)
|
|
5
|
+
------------------
|
|
6
|
+
|
|
7
|
+
* Feature - Updated Aws::Signin::Client with the latest API changes.
|
|
8
|
+
|
|
9
|
+
* Feature - These APIs enable customers and administrators to list, view, and revoke AWS Sign-In Sessions programmatically using the AWS CLI and SDKs, providing greater visibility and control over authenticated access.
|
|
10
|
+
|
|
11
|
+
* Feature - Back off on retries of the Kinesis `ReceiveQueueRecords` and `ReceiveDeadLetterQueueRecords` long polling operations even when the retry quota is depleted.
|
|
12
|
+
|
|
13
|
+
* Feature - Seahorse::Client::Configuration no longer generate real Ruby Struct at runtime.
|
|
14
|
+
|
|
4
15
|
3.269.0 (2026-11-16)
|
|
5
16
|
------------------
|
|
6
17
|
|
data/VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
3.
|
|
1
|
+
3.270.0
|
|
@@ -284,6 +284,7 @@ module Aws
|
|
|
284
284
|
# longPoll trait. To be removed when trait is enabled.
|
|
285
285
|
LONG_POLLING_OPERATIONS = {
|
|
286
286
|
'SQS' => Set[:receive_message],
|
|
287
|
+
'Kinesis' => Set[:receive_queue_records, :receive_dead_letter_queue_records],
|
|
287
288
|
'SFN' => Set[:get_activity_task],
|
|
288
289
|
'SWF' => Set[:poll_for_activity_task, :poll_for_decision_task]
|
|
289
290
|
}.freeze
|
|
@@ -482,6 +482,127 @@ module Aws::Signin
|
|
|
482
482
|
|
|
483
483
|
# @!group API Operations
|
|
484
484
|
|
|
485
|
+
# Revokes up to five sign-in sessions. A revoked session can no longer
|
|
486
|
+
# be refreshed. Revoking a session that is already revoked succeeds.
|
|
487
|
+
# Each session must belong to the identity specified by principalArn, or
|
|
488
|
+
# to the caller if principalArn is omitted. Failures for individual
|
|
489
|
+
# sessions are returned in the errors list and do not fail the whole
|
|
490
|
+
# request.
|
|
491
|
+
#
|
|
492
|
+
# @option params [String] :principal_arn
|
|
493
|
+
# The identity that owns the sessions. Omit to use the caller. Specify
|
|
494
|
+
# arn:aws:iam::\{account-id}:* to revoke any session in the account.
|
|
495
|
+
#
|
|
496
|
+
# @option params [required, Array<String>] :session_arns
|
|
497
|
+
# The ARNs of the sessions to revoke
|
|
498
|
+
#
|
|
499
|
+
# @option params [String] :reason
|
|
500
|
+
# The reason for revoking the sessions
|
|
501
|
+
#
|
|
502
|
+
# @return [Types::BatchRevokeSessionsOutput] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
|
503
|
+
#
|
|
504
|
+
# * {Types::BatchRevokeSessionsOutput#revoked_sessions #revoked_sessions} => Array<Types::RevokedSession>
|
|
505
|
+
# * {Types::BatchRevokeSessionsOutput#errors #errors} => Array<Types::BatchRevokeSessionError>
|
|
506
|
+
#
|
|
507
|
+
#
|
|
508
|
+
# @example Example: Revoke one of your own sessions
|
|
509
|
+
#
|
|
510
|
+
# # Revokes a session owned by the caller and records the reason.
|
|
511
|
+
#
|
|
512
|
+
# resp = client.batch_revoke_sessions({
|
|
513
|
+
# reason: "Signed out of a lost device",
|
|
514
|
+
# session_arns: [
|
|
515
|
+
# "arn:aws:signin:us-east-1:123456789012:session/3b0a6152-ba23-447d-83cf-b3b3cc7b95f7",
|
|
516
|
+
# ],
|
|
517
|
+
# })
|
|
518
|
+
#
|
|
519
|
+
# resp.to_h outputs the following:
|
|
520
|
+
# {
|
|
521
|
+
# errors: [
|
|
522
|
+
# ],
|
|
523
|
+
# revoked_sessions: [
|
|
524
|
+
# {
|
|
525
|
+
# session_arn: "arn:aws:signin:us-east-1:123456789012:session/3b0a6152-ba23-447d-83cf-b3b3cc7b95f7",
|
|
526
|
+
# },
|
|
527
|
+
# ],
|
|
528
|
+
# }
|
|
529
|
+
#
|
|
530
|
+
# @example Example: Revoke another identity's session as an account administrator
|
|
531
|
+
#
|
|
532
|
+
# # Uses the account wildcard principal ARN to revoke another IAM identity's session.
|
|
533
|
+
#
|
|
534
|
+
# resp = client.batch_revoke_sessions({
|
|
535
|
+
# principal_arn: "arn:aws:iam::123456789012:*",
|
|
536
|
+
# reason: "Revoked by account administrator",
|
|
537
|
+
# session_arns: [
|
|
538
|
+
# "arn:aws:signin:us-east-1:123456789012:session/5dbdd43b-4135-4c59-ad06-5ddbcc2c1d77",
|
|
539
|
+
# ],
|
|
540
|
+
# })
|
|
541
|
+
#
|
|
542
|
+
# resp.to_h outputs the following:
|
|
543
|
+
# {
|
|
544
|
+
# errors: [
|
|
545
|
+
# ],
|
|
546
|
+
# revoked_sessions: [
|
|
547
|
+
# {
|
|
548
|
+
# session_arn: "arn:aws:signin:us-east-1:123456789012:session/5dbdd43b-4135-4c59-ad06-5ddbcc2c1d77",
|
|
549
|
+
# },
|
|
550
|
+
# ],
|
|
551
|
+
# }
|
|
552
|
+
#
|
|
553
|
+
# @example Example: Revoke a batch of sessions with a partial failure
|
|
554
|
+
#
|
|
555
|
+
# # Revokes the caller's session and reports a session that was not found in the errors list.
|
|
556
|
+
#
|
|
557
|
+
# resp = client.batch_revoke_sessions({
|
|
558
|
+
# session_arns: [
|
|
559
|
+
# "arn:aws:signin:us-east-1:123456789012:session/ac148df8-7f37-48eb-b0cf-8987fc4a55a4",
|
|
560
|
+
# "arn:aws:signin:us-east-1:123456789012:session/36b6ae9d-4fa9-40d9-8eff-eeeb4d15f79d",
|
|
561
|
+
# ],
|
|
562
|
+
# })
|
|
563
|
+
#
|
|
564
|
+
# resp.to_h outputs the following:
|
|
565
|
+
# {
|
|
566
|
+
# errors: [
|
|
567
|
+
# {
|
|
568
|
+
# code: "ResourceNotFoundException",
|
|
569
|
+
# message: "No session found for the given sessionArn",
|
|
570
|
+
# session_arn: "arn:aws:signin:us-east-1:123456789012:session/36b6ae9d-4fa9-40d9-8eff-eeeb4d15f79d",
|
|
571
|
+
# },
|
|
572
|
+
# ],
|
|
573
|
+
# revoked_sessions: [
|
|
574
|
+
# {
|
|
575
|
+
# session_arn: "arn:aws:signin:us-east-1:123456789012:session/ac148df8-7f37-48eb-b0cf-8987fc4a55a4",
|
|
576
|
+
# },
|
|
577
|
+
# ],
|
|
578
|
+
# }
|
|
579
|
+
#
|
|
580
|
+
# @example Request syntax with placeholder values
|
|
581
|
+
#
|
|
582
|
+
# resp = client.batch_revoke_sessions({
|
|
583
|
+
# principal_arn: "PrincipalArnFilter",
|
|
584
|
+
# session_arns: ["SessionArn"], # required
|
|
585
|
+
# reason: "RevocationReason",
|
|
586
|
+
# })
|
|
587
|
+
#
|
|
588
|
+
# @example Response structure
|
|
589
|
+
#
|
|
590
|
+
# resp.revoked_sessions #=> Array
|
|
591
|
+
# resp.revoked_sessions[0].session_arn #=> String
|
|
592
|
+
# resp.errors #=> Array
|
|
593
|
+
# resp.errors[0].session_arn #=> String
|
|
594
|
+
# resp.errors[0].code #=> String
|
|
595
|
+
# resp.errors[0].message #=> String
|
|
596
|
+
#
|
|
597
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/signin-2023-01-01/BatchRevokeSessions AWS API Documentation
|
|
598
|
+
#
|
|
599
|
+
# @overload batch_revoke_sessions(params = {})
|
|
600
|
+
# @param [Hash] params ({})
|
|
601
|
+
def batch_revoke_sessions(params = {}, options = {})
|
|
602
|
+
req = build_request(:batch_revoke_sessions, params)
|
|
603
|
+
req.send_request(options)
|
|
604
|
+
end
|
|
605
|
+
|
|
485
606
|
# Creates a bearer token that represents your IAM credentials and can be
|
|
486
607
|
# used to access a supported AWS service. By default, the token is valid
|
|
487
608
|
# for 12 hours.
|
|
@@ -611,8 +732,9 @@ module Aws::Signin
|
|
|
611
732
|
# resource, which you can use to access AWS services from applications.
|
|
612
733
|
#
|
|
613
734
|
# @option params [required, String] :grant_type
|
|
614
|
-
# The OAuth 2.0 grant type. Currently
|
|
615
|
-
# "urn:ietf:params:oauth:grant-type:token-exchange"
|
|
735
|
+
# The OAuth 2.0 grant type. Currently supports
|
|
736
|
+
# "urn:ietf:params:oauth:grant-type:token-exchange" and
|
|
737
|
+
# "urn:ietf:params:oauth:grant-type:jwt-bearer".
|
|
616
738
|
#
|
|
617
739
|
# @option params [String] :subject_token
|
|
618
740
|
# The subject token that represents the identity of the party on whose
|
|
@@ -624,23 +746,43 @@ module Aws::Signin
|
|
|
624
746
|
# "urn:ietf:params:oauth:token-type:jwt". Required when
|
|
625
747
|
# "grant\_type=urn:ietf:params:oauth:grant-type:token-exchange".
|
|
626
748
|
#
|
|
749
|
+
# @option params [String] :assertion
|
|
750
|
+
# The JWT authorization grant, as defined in RFC 7523. Required when
|
|
751
|
+
# "grant\_type=urn:ietf:params:oauth:grant-type:jwt-bearer".
|
|
752
|
+
#
|
|
753
|
+
# @option params [String] :client_id
|
|
754
|
+
# The OAuth 2.0 client identifier. If provided with
|
|
755
|
+
# "grant\_type=urn:ietf:params:oauth:grant-type:jwt-bearer", must match
|
|
756
|
+
# the assertion's "client\_id" claim.
|
|
757
|
+
#
|
|
627
758
|
# @option params [String] :resource
|
|
628
|
-
# The OAuth resource for which the access token is requested
|
|
629
|
-
#
|
|
630
|
-
#
|
|
759
|
+
# The OAuth resource for which the access token is requested:
|
|
760
|
+
#
|
|
761
|
+
# * "grant\_type=urn:ietf:params:oauth:grant-type:token-exchange":
|
|
762
|
+
# Required. Must be a service principal. Example:
|
|
763
|
+
# "glue.amazonaws.com".
|
|
764
|
+
# * "grant\_type=urn:ietf:params:oauth:grant-type:jwt-bearer": Required
|
|
765
|
+
# when the assertion has no "resource" claim, otherwise must match it.
|
|
766
|
+
# Must be a URI. Example: "https://aws-mcp.us-east-1.api.aws/mcp".
|
|
631
767
|
#
|
|
632
768
|
# @option params [String] :scope
|
|
633
|
-
# IAM managed policy Amazon Resource Names (ARNs) to apply as
|
|
634
|
-
# policies that further scope down the permissions of the issued
|
|
635
|
-
# token, provided as a space-delimited list. Example:
|
|
769
|
+
# The IAM managed policy Amazon Resource Names (ARNs) to apply as
|
|
770
|
+
# session policies that further scope down the permissions of the issued
|
|
771
|
+
# access token, provided as a space-delimited list. Example:
|
|
636
772
|
# "arn:aws:iam::444455556666:policy/MyPolicy".
|
|
637
773
|
#
|
|
774
|
+
# If provided with
|
|
775
|
+
# "grant\_type=urn:ietf:params:oauth:grant-type:jwt-bearer", must match
|
|
776
|
+
# the assertion's "scope" claim.
|
|
777
|
+
#
|
|
638
778
|
# @return [Types::CreateOAuth2TokenWithTokenExchangeResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
|
639
779
|
#
|
|
640
780
|
# * {Types::CreateOAuth2TokenWithTokenExchangeResponse#access_token #access_token} => String
|
|
641
781
|
# * {Types::CreateOAuth2TokenWithTokenExchangeResponse#issued_token_type #issued_token_type} => String
|
|
642
782
|
# * {Types::CreateOAuth2TokenWithTokenExchangeResponse#token_type #token_type} => String
|
|
643
783
|
# * {Types::CreateOAuth2TokenWithTokenExchangeResponse#expires_in #expires_in} => Integer
|
|
784
|
+
# * {Types::CreateOAuth2TokenWithTokenExchangeResponse#resource #resource} => String
|
|
785
|
+
# * {Types::CreateOAuth2TokenWithTokenExchangeResponse#scope #scope} => String
|
|
644
786
|
#
|
|
645
787
|
# @example Request syntax with placeholder values
|
|
646
788
|
#
|
|
@@ -648,6 +790,8 @@ module Aws::Signin
|
|
|
648
790
|
# grant_type: "TokenExchangeGrantType", # required
|
|
649
791
|
# subject_token: "SubjectToken",
|
|
650
792
|
# subject_token_type: "SubjectTokenType",
|
|
793
|
+
# assertion: "Assertion",
|
|
794
|
+
# client_id: "JwtBearerClientId",
|
|
651
795
|
# resource: "Resource",
|
|
652
796
|
# scope: "Scope",
|
|
653
797
|
# })
|
|
@@ -658,6 +802,8 @@ module Aws::Signin
|
|
|
658
802
|
# resp.issued_token_type #=> String
|
|
659
803
|
# resp.token_type #=> String
|
|
660
804
|
# resp.expires_in #=> Integer
|
|
805
|
+
# resp.resource #=> String
|
|
806
|
+
# resp.scope #=> String
|
|
661
807
|
#
|
|
662
808
|
# @see http://docs.aws.amazon.com/goto/WebAPI/signin-2023-01-01/CreateOAuth2TokenWithTokenExchange AWS API Documentation
|
|
663
809
|
#
|
|
@@ -793,6 +939,110 @@ module Aws::Signin
|
|
|
793
939
|
req.send_request(options)
|
|
794
940
|
end
|
|
795
941
|
|
|
942
|
+
# Returns the details of a single sign-in session. The session must
|
|
943
|
+
# belong to the identity specified by principalArn, or to the caller if
|
|
944
|
+
# principalArn is omitted. A session that belongs to a different
|
|
945
|
+
# identity or account is reported as not found.
|
|
946
|
+
#
|
|
947
|
+
# @option params [required, String] :session_arn
|
|
948
|
+
# The ARN of the session to retrieve
|
|
949
|
+
#
|
|
950
|
+
# @option params [String] :principal_arn
|
|
951
|
+
# The identity that owns the session. Omit to use the caller. Specify
|
|
952
|
+
# arn:aws:iam::\{account-id}:* to retrieve any session in the account.
|
|
953
|
+
#
|
|
954
|
+
# @return [Types::GetSessionOutput] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
|
955
|
+
#
|
|
956
|
+
# * {Types::GetSessionOutput#session_arn #session_arn} => String
|
|
957
|
+
# * {Types::GetSessionOutput#principal_arn #principal_arn} => String
|
|
958
|
+
# * {Types::GetSessionOutput#role #role} => String
|
|
959
|
+
# * {Types::GetSessionOutput#status #status} => String
|
|
960
|
+
# * {Types::GetSessionOutput#client_id #client_id} => String
|
|
961
|
+
# * {Types::GetSessionOutput#client_type #client_type} => String
|
|
962
|
+
# * {Types::GetSessionOutput#resource #resource} => String
|
|
963
|
+
# * {Types::GetSessionOutput#issued_at #issued_at} => Integer
|
|
964
|
+
# * {Types::GetSessionOutput#expires_at #expires_at} => Integer
|
|
965
|
+
# * {Types::GetSessionOutput#last_used_at #last_used_at} => Integer
|
|
966
|
+
# * {Types::GetSessionOutput#issued_in_region #issued_in_region} => String
|
|
967
|
+
# * {Types::GetSessionOutput#origin_session_arn #origin_session_arn} => String
|
|
968
|
+
# * {Types::GetSessionOutput#user_agent #user_agent} => String
|
|
969
|
+
#
|
|
970
|
+
#
|
|
971
|
+
# @example Example: Get one of your own sessions
|
|
972
|
+
#
|
|
973
|
+
# # Returns a session owned by the caller when principalArn is omitted.
|
|
974
|
+
#
|
|
975
|
+
# resp = client.get_session({
|
|
976
|
+
# session_arn: "arn:aws:signin:us-east-1:123456789012:session/3b0a6152-ba23-447d-83cf-b3b3cc7b95f7",
|
|
977
|
+
# })
|
|
978
|
+
#
|
|
979
|
+
# resp.to_h outputs the following:
|
|
980
|
+
# {
|
|
981
|
+
# client_id: "arn:aws:signin:::devtools/same-device",
|
|
982
|
+
# client_type: "CLI",
|
|
983
|
+
# expires_at: 1794431207,
|
|
984
|
+
# issued_at: 1793825807,
|
|
985
|
+
# issued_in_region: "us-east-1",
|
|
986
|
+
# principal_arn: "arn:aws:iam::123456789012:role/Developer",
|
|
987
|
+
# role: "arn:aws:iam::123456789012:role/Developer",
|
|
988
|
+
# session_arn: "arn:aws:signin:us-east-1:123456789012:session/3b0a6152-ba23-447d-83cf-b3b3cc7b95f7",
|
|
989
|
+
# status: "ACTIVE",
|
|
990
|
+
# }
|
|
991
|
+
#
|
|
992
|
+
# @example Example: Get another identity's session as an account administrator
|
|
993
|
+
#
|
|
994
|
+
# # Uses the account wildcard principal ARN to get a session owned by another IAM identity.
|
|
995
|
+
#
|
|
996
|
+
# resp = client.get_session({
|
|
997
|
+
# principal_arn: "arn:aws:iam::123456789012:*",
|
|
998
|
+
# session_arn: "arn:aws:signin:us-east-1:123456789012:session/5dbdd43b-4135-4c59-ad06-5ddbcc2c1d77",
|
|
999
|
+
# })
|
|
1000
|
+
#
|
|
1001
|
+
# resp.to_h outputs the following:
|
|
1002
|
+
# {
|
|
1003
|
+
# client_id: "arn:aws:signin:::devtools/same-device",
|
|
1004
|
+
# client_type: "CLI",
|
|
1005
|
+
# expires_at: 1794431214,
|
|
1006
|
+
# issued_at: 1793826107,
|
|
1007
|
+
# issued_in_region: "us-east-1",
|
|
1008
|
+
# principal_arn: "arn:aws:iam::123456789012:role/ReadOnly",
|
|
1009
|
+
# role: "arn:aws:iam::123456789012:role/ReadOnly",
|
|
1010
|
+
# session_arn: "arn:aws:signin:us-east-1:123456789012:session/5dbdd43b-4135-4c59-ad06-5ddbcc2c1d77",
|
|
1011
|
+
# status: "ACTIVE",
|
|
1012
|
+
# }
|
|
1013
|
+
#
|
|
1014
|
+
# @example Request syntax with placeholder values
|
|
1015
|
+
#
|
|
1016
|
+
# resp = client.get_session({
|
|
1017
|
+
# session_arn: "SessionArn", # required
|
|
1018
|
+
# principal_arn: "PrincipalArnFilter",
|
|
1019
|
+
# })
|
|
1020
|
+
#
|
|
1021
|
+
# @example Response structure
|
|
1022
|
+
#
|
|
1023
|
+
# resp.session_arn #=> String
|
|
1024
|
+
# resp.principal_arn #=> String
|
|
1025
|
+
# resp.role #=> String
|
|
1026
|
+
# resp.status #=> String, one of "ACTIVE", "REVOKED"
|
|
1027
|
+
# resp.client_id #=> String
|
|
1028
|
+
# resp.client_type #=> String, one of "CLI", "MCP"
|
|
1029
|
+
# resp.resource #=> String
|
|
1030
|
+
# resp.issued_at #=> Integer
|
|
1031
|
+
# resp.expires_at #=> Integer
|
|
1032
|
+
# resp.last_used_at #=> Integer
|
|
1033
|
+
# resp.issued_in_region #=> String
|
|
1034
|
+
# resp.origin_session_arn #=> String
|
|
1035
|
+
# resp.user_agent #=> String
|
|
1036
|
+
#
|
|
1037
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/signin-2023-01-01/GetSession AWS API Documentation
|
|
1038
|
+
#
|
|
1039
|
+
# @overload get_session(params = {})
|
|
1040
|
+
# @param [Hash] params ({})
|
|
1041
|
+
def get_session(params = {}, options = {})
|
|
1042
|
+
req = build_request(:get_session, params)
|
|
1043
|
+
req.send_request(options)
|
|
1044
|
+
end
|
|
1045
|
+
|
|
796
1046
|
# Inspects the metadata and active state of an OAuth 2.0 access token or
|
|
797
1047
|
# refresh token.
|
|
798
1048
|
#
|
|
@@ -901,6 +1151,138 @@ module Aws::Signin
|
|
|
901
1151
|
req.send_request(options)
|
|
902
1152
|
end
|
|
903
1153
|
|
|
1154
|
+
# Lists sign-in sessions for an IAM identity in your account. If you
|
|
1155
|
+
# omit principalArn, the operation lists the caller's own sessions.
|
|
1156
|
+
# Specify a user or role ARN to list that identity's sessions, or
|
|
1157
|
+
# specify arn:aws:iam::\{account-id}:* to list all sessions in the
|
|
1158
|
+
# account. Filters are combined with a logical AND.
|
|
1159
|
+
#
|
|
1160
|
+
# @option params [String] :principal_arn
|
|
1161
|
+
# The identity whose sessions to list. Omit to list the caller's own
|
|
1162
|
+
# sessions. Specify arn:aws:iam::\{account-id}:* to list all sessions
|
|
1163
|
+
# in the account.
|
|
1164
|
+
#
|
|
1165
|
+
# @option params [Integer] :max_results
|
|
1166
|
+
# Maximum number of results to return
|
|
1167
|
+
#
|
|
1168
|
+
# @option params [String] :next_token
|
|
1169
|
+
# Token for pagination
|
|
1170
|
+
#
|
|
1171
|
+
# @option params [String] :status
|
|
1172
|
+
# Returns only sessions with this status
|
|
1173
|
+
#
|
|
1174
|
+
# @option params [String] :client_id
|
|
1175
|
+
# Returns only sessions created by this OAuth client
|
|
1176
|
+
#
|
|
1177
|
+
# @option params [Integer] :issued_after
|
|
1178
|
+
# Returns only sessions created at or after this time, in Unix epoch
|
|
1179
|
+
# seconds
|
|
1180
|
+
#
|
|
1181
|
+
# @option params [Integer] :issued_before
|
|
1182
|
+
# Returns only sessions created before this time, in Unix epoch seconds
|
|
1183
|
+
#
|
|
1184
|
+
# @return [Types::ListSessionsOutput] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
|
1185
|
+
#
|
|
1186
|
+
# * {Types::ListSessionsOutput#items #items} => Array<Types::Session>
|
|
1187
|
+
# * {Types::ListSessionsOutput#next_token #next_token} => String
|
|
1188
|
+
#
|
|
1189
|
+
# The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
|
|
1190
|
+
#
|
|
1191
|
+
#
|
|
1192
|
+
# @example Example: List your own sessions
|
|
1193
|
+
#
|
|
1194
|
+
# # Lists the caller's sessions when principalArn is omitted.
|
|
1195
|
+
#
|
|
1196
|
+
# resp = client.list_sessions({
|
|
1197
|
+
# })
|
|
1198
|
+
#
|
|
1199
|
+
# resp.to_h outputs the following:
|
|
1200
|
+
# {
|
|
1201
|
+
# items: [
|
|
1202
|
+
# {
|
|
1203
|
+
# client_id: "arn:aws:signin:::devtools/same-device",
|
|
1204
|
+
# client_type: "CLI",
|
|
1205
|
+
# expires_at: 1794431207,
|
|
1206
|
+
# issued_at: 1793825807,
|
|
1207
|
+
# principal_arn: "arn:aws:iam::123456789012:role/Developer",
|
|
1208
|
+
# role: "arn:aws:iam::123456789012:role/Developer",
|
|
1209
|
+
# session_arn: "arn:aws:signin:us-east-1:123456789012:session/3b0a6152-ba23-447d-83cf-b3b3cc7b95f7",
|
|
1210
|
+
# status: "ACTIVE",
|
|
1211
|
+
# },
|
|
1212
|
+
# {
|
|
1213
|
+
# client_id: "arn:aws:signin:::devtools/same-device",
|
|
1214
|
+
# client_type: "CLI",
|
|
1215
|
+
# expires_at: 1794431212,
|
|
1216
|
+
# issued_at: 1793824607,
|
|
1217
|
+
# principal_arn: "arn:aws:iam::123456789012:role/Developer",
|
|
1218
|
+
# role: "arn:aws:iam::123456789012:role/Developer",
|
|
1219
|
+
# session_arn: "arn:aws:signin:us-east-1:123456789012:session/4c63f231-2128-42cf-aa83-83589f9a0df2",
|
|
1220
|
+
# status: "ACTIVE",
|
|
1221
|
+
# },
|
|
1222
|
+
# ],
|
|
1223
|
+
# }
|
|
1224
|
+
#
|
|
1225
|
+
# @example Example: List active sessions one page at a time
|
|
1226
|
+
#
|
|
1227
|
+
# # Returns one active session and a token to request the next page.
|
|
1228
|
+
#
|
|
1229
|
+
# resp = client.list_sessions({
|
|
1230
|
+
# max_results: 1,
|
|
1231
|
+
# status: "ACTIVE",
|
|
1232
|
+
# })
|
|
1233
|
+
#
|
|
1234
|
+
# resp.to_h outputs the following:
|
|
1235
|
+
# {
|
|
1236
|
+
# items: [
|
|
1237
|
+
# {
|
|
1238
|
+
# client_id: "arn:aws:signin:::devtools/same-device",
|
|
1239
|
+
# client_type: "CLI",
|
|
1240
|
+
# expires_at: 1794431207,
|
|
1241
|
+
# issued_at: 1793825807,
|
|
1242
|
+
# principal_arn: "arn:aws:iam::123456789012:role/Developer",
|
|
1243
|
+
# role: "arn:aws:iam::123456789012:role/Developer",
|
|
1244
|
+
# session_arn: "arn:aws:signin:us-east-1:123456789012:session/3b0a6152-ba23-447d-83cf-b3b3cc7b95f7",
|
|
1245
|
+
# status: "ACTIVE",
|
|
1246
|
+
# },
|
|
1247
|
+
# ],
|
|
1248
|
+
# next_token: "AAMA-EXAMPLE-NEXT-TOKEN",
|
|
1249
|
+
# }
|
|
1250
|
+
#
|
|
1251
|
+
# @example Request syntax with placeholder values
|
|
1252
|
+
#
|
|
1253
|
+
# resp = client.list_sessions({
|
|
1254
|
+
# principal_arn: "PrincipalArnFilter",
|
|
1255
|
+
# max_results: 1,
|
|
1256
|
+
# next_token: "NextToken",
|
|
1257
|
+
# status: "ACTIVE", # accepts ACTIVE, REVOKED
|
|
1258
|
+
# client_id: "String",
|
|
1259
|
+
# issued_after: 1,
|
|
1260
|
+
# issued_before: 1,
|
|
1261
|
+
# })
|
|
1262
|
+
#
|
|
1263
|
+
# @example Response structure
|
|
1264
|
+
#
|
|
1265
|
+
# resp.items #=> Array
|
|
1266
|
+
# resp.items[0].session_arn #=> String
|
|
1267
|
+
# resp.items[0].principal_arn #=> String
|
|
1268
|
+
# resp.items[0].role #=> String
|
|
1269
|
+
# resp.items[0].status #=> String, one of "ACTIVE", "REVOKED"
|
|
1270
|
+
# resp.items[0].issued_at #=> Integer
|
|
1271
|
+
# resp.items[0].expires_at #=> Integer
|
|
1272
|
+
# resp.items[0].client_id #=> String
|
|
1273
|
+
# resp.items[0].client_type #=> String, one of "CLI", "MCP"
|
|
1274
|
+
# resp.items[0].resource #=> String
|
|
1275
|
+
# resp.next_token #=> String
|
|
1276
|
+
#
|
|
1277
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/signin-2023-01-01/ListSessions AWS API Documentation
|
|
1278
|
+
#
|
|
1279
|
+
# @overload list_sessions(params = {})
|
|
1280
|
+
# @param [Hash] params ({})
|
|
1281
|
+
def list_sessions(params = {}, options = {})
|
|
1282
|
+
req = build_request(:list_sessions, params)
|
|
1283
|
+
req.send_request(options)
|
|
1284
|
+
end
|
|
1285
|
+
|
|
904
1286
|
# Enable console authorization configuration with automatic scope
|
|
905
1287
|
# detection
|
|
906
1288
|
#
|
|
@@ -1036,7 +1418,7 @@ module Aws::Signin
|
|
|
1036
1418
|
tracer: tracer
|
|
1037
1419
|
)
|
|
1038
1420
|
context[:gem_name] = 'aws-sdk-core'
|
|
1039
|
-
context[:gem_version] = '3.
|
|
1421
|
+
context[:gem_version] = '3.270.0'
|
|
1040
1422
|
Seahorse::Client::Request.new(handlers, context)
|
|
1041
1423
|
end
|
|
1042
1424
|
|