aws-sdk-core 3.251.0 → 3.253.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: ecf99427b1716ed51214604de9538ab9901b0d17fb5a5d62282740b7925de8aa
4
- data.tar.gz: 238136e308696d22945157ca92be189295ff42b716a9bed22861e1361c8c052c
3
+ metadata.gz: 1247f6da5460ed459d1ac0f815b87533c392520ead96493388af7bf93b416d6c
4
+ data.tar.gz: 0a12db04017a03fb85be3f57f36230ffb09ce880374147c99acf41526779a2cd
5
5
  SHA512:
6
- metadata.gz: ddd7a5d0d8fb62f8e7d3dd612ff2a2b4231ee18ac317a1061d13ada4526d1fc05e7c4323344fe0c4c06437b72e1e6e1e2212bf4f424710668afdcbb9c22a38d6
7
- data.tar.gz: 0d3d1b1109b28de4900a27c6e3955bddaa651a2031c238dee600f923d0dda6eff1cdd970100ef40edf945aa28be85130becc4893adcf28256a11a5500658d675
6
+ metadata.gz: 37ebe8075e08b7f183fc59920a4ae8d16b434644bd43f0e99110787548e4742ce3816d461a80519517581282a23f3de149202dc9e1a0bba9b81e7d75acaf5153
7
+ data.tar.gz: fb38b7be043ef6ba002a8d90b26dfd8d6ef4b97f02a3135f2ee434816fd9151d56d033df646880665482eed580a58438859a90df4257d7e2bdeefc8c92fcedf8
data/CHANGELOG.md CHANGED
@@ -1,6 +1,20 @@
1
1
  Unreleased Changes
2
2
  ------------------
3
3
 
4
+ 3.253.0 (2026-07-08)
5
+ ------------------
6
+
7
+ * Feature - Updated Aws::Signin::Client with the latest API changes.
8
+
9
+ * Feature - Adds support for OAuth 2.0 token operations in AWS Sign-In, CreateOAuth2TokenWithIAM (client credentials flow), IntrospectOAuth2TokenWithIAM (token inspection), and RevokeOAuth2TokenWithIAM (token revocation).
10
+
11
+ 3.252.0 (2026-06-10)
12
+ ------------------
13
+
14
+ * Feature - Updated Aws::Signin::Client with the latest API changes.
15
+
16
+ * Feature - AWS Sign-In now allows customers to control access to the AWS Management Console using resource-based policies. With this release customers can restrict console access based on network perimeters such as VPC IDs, VPC endpoints, and IP addresses.
17
+
4
18
  3.251.0 (2026-06-02)
5
19
  ------------------
6
20
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 3.251.0
1
+ 3.253.0
@@ -559,6 +559,412 @@ module Aws::Signin
559
559
  req.send_request(options)
560
560
  end
561
561
 
562
+ # Grants permission to exchange client credentials for an OAuth 2.0
563
+ # access token scoped to a resource that can be used to access AWS
564
+ # services from applications
565
+ #
566
+ # @option params [required, String] :grant_type
567
+ # OAuth 2.0 grant type. Must be "client\_credentials".
568
+ #
569
+ # @option params [required, String] :resource
570
+ # The OAuth resource for which the access token is requested. Example:
571
+ # "aws-mcp.amazonaws.com".
572
+ #
573
+ # @return [Types::CreateOAuth2TokenWithIAMResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
574
+ #
575
+ # * {Types::CreateOAuth2TokenWithIAMResponse#access_token #access_token} => String
576
+ # * {Types::CreateOAuth2TokenWithIAMResponse#token_type #token_type} => String
577
+ # * {Types::CreateOAuth2TokenWithIAMResponse#expires_in #expires_in} => Integer
578
+ #
579
+ # @example Request syntax with placeholder values
580
+ #
581
+ # resp = client.create_o_auth_2_token_with_iam({
582
+ # grant_type: "ClientCredentialsGrantType", # required
583
+ # resource: "CreateOAuth2TokenWithIAMRequestResourceString", # required
584
+ # })
585
+ #
586
+ # @example Response structure
587
+ #
588
+ # resp.access_token #=> String
589
+ # resp.token_type #=> String
590
+ # resp.expires_in #=> Integer
591
+ #
592
+ # @see http://docs.aws.amazon.com/goto/WebAPI/signin-2023-01-01/CreateOAuth2TokenWithIAM AWS API Documentation
593
+ #
594
+ # @overload create_o_auth_2_token_with_iam(params = {})
595
+ # @param [Hash] params ({})
596
+ def create_o_auth_2_token_with_iam(params = {}, options = {})
597
+ req = build_request(:create_o_auth_2_token_with_iam, params)
598
+ req.send_request(options)
599
+ end
600
+
601
+ # Delete console authorization configuration with automatic scope
602
+ # detection
603
+ #
604
+ # @option params [String] :target_id
605
+ # Target account identifier
606
+ #
607
+ # @return [Types::DeleteConsoleAuthorizationConfigurationOutput] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
608
+ #
609
+ # * {Types::DeleteConsoleAuthorizationConfigurationOutput#target_id #target_id} => String
610
+ # * {Types::DeleteConsoleAuthorizationConfigurationOutput#scope #scope} => String
611
+ # * {Types::DeleteConsoleAuthorizationConfigurationOutput#console_authorization_enabled #console_authorization_enabled} => Boolean
612
+ #
613
+ # @example Request syntax with placeholder values
614
+ #
615
+ # resp = client.delete_console_authorization_configuration({
616
+ # target_id: "TargetId",
617
+ # })
618
+ #
619
+ # @example Response structure
620
+ #
621
+ # resp.target_id #=> String
622
+ # resp.scope #=> String
623
+ # resp.console_authorization_enabled #=> Boolean
624
+ #
625
+ # @see http://docs.aws.amazon.com/goto/WebAPI/signin-2023-01-01/DeleteConsoleAuthorizationConfiguration AWS API Documentation
626
+ #
627
+ # @overload delete_console_authorization_configuration(params = {})
628
+ # @param [Hash] params ({})
629
+ def delete_console_authorization_configuration(params = {}, options = {})
630
+ req = build_request(:delete_console_authorization_configuration, params)
631
+ req.send_request(options)
632
+ end
633
+
634
+ # Remove a permission statement from the account's SignIn
635
+ # resource-based policy
636
+ #
637
+ # @option params [required, String] :statement_id
638
+ # Unique identifier of the permission statement to delete
639
+ #
640
+ # @option params [String] :client_token
641
+ # Idempotency token for the request
642
+ #
643
+ # **A suitable default value is auto-generated.** You should normally
644
+ # not need to pass this option.**
645
+ #
646
+ # @return [Struct] Returns an empty {Seahorse::Client::Response response}.
647
+ #
648
+ # @example Request syntax with placeholder values
649
+ #
650
+ # resp = client.delete_resource_permission_statement({
651
+ # statement_id: "StatementId", # required
652
+ # client_token: "ClientToken",
653
+ # })
654
+ #
655
+ # @see http://docs.aws.amazon.com/goto/WebAPI/signin-2023-01-01/DeleteResourcePermissionStatement AWS API Documentation
656
+ #
657
+ # @overload delete_resource_permission_statement(params = {})
658
+ # @param [Hash] params ({})
659
+ def delete_resource_permission_statement(params = {}, options = {})
660
+ req = build_request(:delete_resource_permission_statement, params)
661
+ req.send_request(options)
662
+ end
663
+
664
+ # Get console authorization configuration with automatic scope detection
665
+ #
666
+ # @option params [String] :target_id
667
+ # Target account identifier
668
+ #
669
+ # @return [Types::GetConsoleAuthorizationConfigurationOutput] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
670
+ #
671
+ # * {Types::GetConsoleAuthorizationConfigurationOutput#target_id #target_id} => String
672
+ # * {Types::GetConsoleAuthorizationConfigurationOutput#scope #scope} => String
673
+ # * {Types::GetConsoleAuthorizationConfigurationOutput#console_authorization_enabled #console_authorization_enabled} => Boolean
674
+ #
675
+ # @example Request syntax with placeholder values
676
+ #
677
+ # resp = client.get_console_authorization_configuration({
678
+ # target_id: "TargetId",
679
+ # })
680
+ #
681
+ # @example Response structure
682
+ #
683
+ # resp.target_id #=> String
684
+ # resp.scope #=> String
685
+ # resp.console_authorization_enabled #=> Boolean
686
+ #
687
+ # @see http://docs.aws.amazon.com/goto/WebAPI/signin-2023-01-01/GetConsoleAuthorizationConfiguration AWS API Documentation
688
+ #
689
+ # @overload get_console_authorization_configuration(params = {})
690
+ # @param [Hash] params ({})
691
+ def get_console_authorization_configuration(params = {}, options = {})
692
+ req = build_request(:get_console_authorization_configuration, params)
693
+ req.send_request(options)
694
+ end
695
+
696
+ # Retrieve the account's consolidated SignIn resource-based policy
697
+ #
698
+ # @return [Types::GetResourcePolicyOutput] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
699
+ #
700
+ # * {Types::GetResourcePolicyOutput#signin_resource_based_policy #signin_resource_based_policy} => Types::SigninResourceBasedPolicy
701
+ #
702
+ # @example Response structure
703
+ #
704
+ # resp.signin_resource_based_policy.version #=> String
705
+ # resp.signin_resource_based_policy.statement #=> Array
706
+ # resp.signin_resource_based_policy.statement[0].effect #=> String
707
+ # resp.signin_resource_based_policy.statement[0].principal #=> Hash
708
+ # resp.signin_resource_based_policy.statement[0].principal["String"] #=> String
709
+ # resp.signin_resource_based_policy.statement[0].action #=> Array
710
+ # resp.signin_resource_based_policy.statement[0].action[0] #=> String
711
+ # resp.signin_resource_based_policy.statement[0].resource #=> String
712
+ # resp.signin_resource_based_policy.statement[0].condition #=> Hash
713
+ # resp.signin_resource_based_policy.statement[0].condition["ConditionType"] #=> Hash
714
+ # resp.signin_resource_based_policy.statement[0].condition["ConditionType"]["String"] #=> Array
715
+ # resp.signin_resource_based_policy.statement[0].condition["ConditionType"]["String"][0] #=> String
716
+ #
717
+ # @see http://docs.aws.amazon.com/goto/WebAPI/signin-2023-01-01/GetResourcePolicy AWS API Documentation
718
+ #
719
+ # @overload get_resource_policy(params = {})
720
+ # @param [Hash] params ({})
721
+ def get_resource_policy(params = {}, options = {})
722
+ req = build_request(:get_resource_policy, params)
723
+ req.send_request(options)
724
+ end
725
+
726
+ # Grants permission to inspect the metadata and state of an OAuth 2.0
727
+ # access token or refresh token
728
+ #
729
+ # Implements RFC 7662 OAuth 2.0 Token Introspection over a
730
+ # SigV4-authenticated endpoint. Inspects the metadata of an
731
+ # access\_token or refresh\_token issued by AWS Sign-In and returns the
732
+ # claims associated with it.
733
+ #
734
+ # Inactive token semantics (RFC 7662 §2.2): when the supplied token is
735
+ # unknown, expired, revoked, malformed, or owned by a different account,
736
+ # the response body is exactly \{ "active": false } with all other
737
+ # claims omitted.
738
+ #
739
+ # @option params [required, String] :token
740
+ # The string value of the token to introspect. May be either an
741
+ # access\_token or a refresh\_token issued by AWS Sign-In.
742
+ #
743
+ # @option params [String] :token_type_hint
744
+ # Optional hint about the type of the token submitted for introspection.
745
+ # The server uses this hint to optimize lookup, but still falls back to
746
+ # the other token type on miss. Allowed values: access\_token,
747
+ # refresh\_token.
748
+ #
749
+ # @return [Types::IntrospectOAuth2TokenWithIAMResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
750
+ #
751
+ # * {Types::IntrospectOAuth2TokenWithIAMResponse#active #active} => Boolean
752
+ # * {Types::IntrospectOAuth2TokenWithIAMResponse#client_id #client_id} => String
753
+ # * {Types::IntrospectOAuth2TokenWithIAMResponse#user_id #user_id} => String
754
+ # * {Types::IntrospectOAuth2TokenWithIAMResponse#token_type #token_type} => String
755
+ # * {Types::IntrospectOAuth2TokenWithIAMResponse#exp #exp} => Integer
756
+ # * {Types::IntrospectOAuth2TokenWithIAMResponse#iat #iat} => Integer
757
+ # * {Types::IntrospectOAuth2TokenWithIAMResponse#nbf #nbf} => Integer
758
+ # * {Types::IntrospectOAuth2TokenWithIAMResponse#sub #sub} => String
759
+ # * {Types::IntrospectOAuth2TokenWithIAMResponse#aud #aud} => String
760
+ # * {Types::IntrospectOAuth2TokenWithIAMResponse#iss #iss} => String
761
+ # * {Types::IntrospectOAuth2TokenWithIAMResponse#jti #jti} => String
762
+ # * {Types::IntrospectOAuth2TokenWithIAMResponse#account_id #account_id} => String
763
+ # * {Types::IntrospectOAuth2TokenWithIAMResponse#signin_session #signin_session} => String
764
+ # * {Types::IntrospectOAuth2TokenWithIAMResponse#resource #resource} => String
765
+ #
766
+ # @example Request syntax with placeholder values
767
+ #
768
+ # resp = client.introspect_o_auth_2_token_with_iam({
769
+ # token: "IntrospectionToken", # required
770
+ # token_type_hint: "TokenTypeHint",
771
+ # })
772
+ #
773
+ # @example Response structure
774
+ #
775
+ # resp.active #=> Boolean
776
+ # resp.client_id #=> String
777
+ # resp.user_id #=> String
778
+ # resp.token_type #=> String
779
+ # resp.exp #=> Integer
780
+ # resp.iat #=> Integer
781
+ # resp.nbf #=> Integer
782
+ # resp.sub #=> String
783
+ # resp.aud #=> String
784
+ # resp.iss #=> String
785
+ # resp.jti #=> String
786
+ # resp.account_id #=> String
787
+ # resp.signin_session #=> String
788
+ # resp.resource #=> String
789
+ #
790
+ # @see http://docs.aws.amazon.com/goto/WebAPI/signin-2023-01-01/IntrospectOAuth2TokenWithIAM AWS API Documentation
791
+ #
792
+ # @overload introspect_o_auth_2_token_with_iam(params = {})
793
+ # @param [Hash] params ({})
794
+ def introspect_o_auth_2_token_with_iam(params = {}, options = {})
795
+ req = build_request(:introspect_o_auth_2_token_with_iam, params)
796
+ req.send_request(options)
797
+ end
798
+
799
+ # Retrieve all permission statements in the account's SignIn
800
+ # resource-based policy
801
+ #
802
+ # @option params [Integer] :max_results
803
+ # Maximum number of results to return
804
+ #
805
+ # @option params [String] :next_token
806
+ # Token for pagination
807
+ #
808
+ # @return [Types::ListResourcePermissionStatementsOutput] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
809
+ #
810
+ # * {Types::ListResourcePermissionStatementsOutput#permission_statements #permission_statements} => Array<Types::PermissionStatementSummary>
811
+ # * {Types::ListResourcePermissionStatementsOutput#next_token #next_token} => String
812
+ #
813
+ # The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
814
+ #
815
+ # @example Request syntax with placeholder values
816
+ #
817
+ # resp = client.list_resource_permission_statements({
818
+ # max_results: 1,
819
+ # next_token: "NextToken",
820
+ # })
821
+ #
822
+ # @example Response structure
823
+ #
824
+ # resp.permission_statements #=> Array
825
+ # resp.permission_statements[0].sid #=> String
826
+ # resp.permission_statements[0].condition #=> Hash
827
+ # resp.permission_statements[0].condition["ConditionType"] #=> Hash
828
+ # resp.permission_statements[0].condition["ConditionType"]["String"] #=> Array
829
+ # resp.permission_statements[0].condition["ConditionType"]["String"][0] #=> String
830
+ # resp.next_token #=> String
831
+ #
832
+ # @see http://docs.aws.amazon.com/goto/WebAPI/signin-2023-01-01/ListResourcePermissionStatements AWS API Documentation
833
+ #
834
+ # @overload list_resource_permission_statements(params = {})
835
+ # @param [Hash] params ({})
836
+ def list_resource_permission_statements(params = {}, options = {})
837
+ req = build_request(:list_resource_permission_statements, params)
838
+ req.send_request(options)
839
+ end
840
+
841
+ # Enable console authorization configuration with automatic scope
842
+ # detection
843
+ #
844
+ # @option params [String] :target_id
845
+ # Target account identifier
846
+ #
847
+ # @return [Types::PutConsoleAuthorizationConfigurationOutput] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
848
+ #
849
+ # * {Types::PutConsoleAuthorizationConfigurationOutput#target_id #target_id} => String
850
+ # * {Types::PutConsoleAuthorizationConfigurationOutput#scope #scope} => String
851
+ # * {Types::PutConsoleAuthorizationConfigurationOutput#console_authorization_enabled #console_authorization_enabled} => Boolean
852
+ #
853
+ # @example Request syntax with placeholder values
854
+ #
855
+ # resp = client.put_console_authorization_configuration({
856
+ # target_id: "TargetId",
857
+ # })
858
+ #
859
+ # @example Response structure
860
+ #
861
+ # resp.target_id #=> String
862
+ # resp.scope #=> String
863
+ # resp.console_authorization_enabled #=> Boolean
864
+ #
865
+ # @see http://docs.aws.amazon.com/goto/WebAPI/signin-2023-01-01/PutConsoleAuthorizationConfiguration AWS API Documentation
866
+ #
867
+ # @overload put_console_authorization_configuration(params = {})
868
+ # @param [Hash] params ({})
869
+ def put_console_authorization_configuration(params = {}, options = {})
870
+ req = build_request(:put_console_authorization_configuration, params)
871
+ req.send_request(options)
872
+ end
873
+
874
+ # Create a permission statement in the account's SignIn resource-based
875
+ # policy
876
+ #
877
+ # @option params [String] :source_vpc
878
+ # VPC identifier to restrict console access
879
+ #
880
+ # @option params [String] :signin_source_vpce
881
+ # SignIn VPC endpoint identifier
882
+ #
883
+ # @option params [String] :console_source_vpce
884
+ # Console VPC endpoint identifier
885
+ #
886
+ # @option params [String] :vpc_source_ip
887
+ # Source IP address within VPC
888
+ #
889
+ # @option params [String] :source_ip
890
+ # Source IP address
891
+ #
892
+ # @option params [String] :requested_region
893
+ # AWS region where the VPC and VPC endpoint reside Required when
894
+ # sourceVpc or signinSourceVpce/consoleSourceVpce is provided
895
+ #
896
+ # @option params [String] :excluded_principal
897
+ # Principal to exclude from the permission statement
898
+ #
899
+ # @option params [String] :client_token
900
+ # Idempotency token for the request
901
+ #
902
+ # **A suitable default value is auto-generated.** You should normally
903
+ # not need to pass this option.**
904
+ #
905
+ # @return [Types::PutResourcePermissionStatementOutput] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
906
+ #
907
+ # * {Types::PutResourcePermissionStatementOutput#statement_id #statement_id} => String
908
+ #
909
+ # @example Request syntax with placeholder values
910
+ #
911
+ # resp = client.put_resource_permission_statement({
912
+ # source_vpc: "SourceVpc",
913
+ # signin_source_vpce: "SourceVpce",
914
+ # console_source_vpce: "SourceVpce",
915
+ # vpc_source_ip: "VpcSourceIp",
916
+ # source_ip: "SourceIp",
917
+ # requested_region: "RequestedRegion",
918
+ # excluded_principal: "ExcludedPrincipal",
919
+ # client_token: "ClientToken",
920
+ # })
921
+ #
922
+ # @example Response structure
923
+ #
924
+ # resp.statement_id #=> String
925
+ #
926
+ # @see http://docs.aws.amazon.com/goto/WebAPI/signin-2023-01-01/PutResourcePermissionStatement AWS API Documentation
927
+ #
928
+ # @overload put_resource_permission_statement(params = {})
929
+ # @param [Hash] params ({})
930
+ def put_resource_permission_statement(params = {}, options = {})
931
+ req = build_request(:put_resource_permission_statement, params)
932
+ req.send_request(options)
933
+ end
934
+
935
+ # Grants permission to revoke an OAuth 2.0 refresh token and its
936
+ # associated refresh tokens
937
+ #
938
+ # Revokes a refresh\_token issued by AWS Sign-In, invalidating the
939
+ # entire token chain so that the refresh\_token can no longer be used to
940
+ # mint new access\_tokens.
941
+ #
942
+ # Idempotency: revoking an already-revoked, expired, or otherwise
943
+ # invalid token still returns 200 OK with an empty body. Only the
944
+ # refresh\_token type is accepted.
945
+ #
946
+ # @option params [required, String] :token
947
+ # The refresh\_token to revoke. Must be a refresh\_token issued by AWS
948
+ # Sign-In (prefix "ASOR"); access\_tokens are not accepted for
949
+ # revocation.
950
+ #
951
+ # @return [Struct] Returns an empty {Seahorse::Client::Response response}.
952
+ #
953
+ # @example Request syntax with placeholder values
954
+ #
955
+ # resp = client.revoke_o_auth_2_token_with_iam({
956
+ # token: "RevocationToken", # required
957
+ # })
958
+ #
959
+ # @see http://docs.aws.amazon.com/goto/WebAPI/signin-2023-01-01/RevokeOAuth2TokenWithIAM AWS API Documentation
960
+ #
961
+ # @overload revoke_o_auth_2_token_with_iam(params = {})
962
+ # @param [Hash] params ({})
963
+ def revoke_o_auth_2_token_with_iam(params = {}, options = {})
964
+ req = build_request(:revoke_o_auth_2_token_with_iam, params)
965
+ req.send_request(options)
966
+ end
967
+
562
968
  # @!endgroup
563
969
 
564
970
  # @param params ({})
@@ -577,7 +983,7 @@ module Aws::Signin
577
983
  tracer: tracer
578
984
  )
579
985
  context[:gem_name] = 'aws-sdk-core'
580
- context[:gem_version] = '3.251.0'
986
+ context[:gem_version] = '3.253.0'
581
987
  Seahorse::Client::Request.new(handlers, context)
582
988
  end
583
989