aws-sdk-core 3.214.1 → 3.218.1
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 +60 -0
- data/VERSION +1 -1
- data/lib/aws-sdk-core/cbor/decoder.rb +0 -2
- data/lib/aws-sdk-core/cbor/encoder.rb +2 -2
- data/lib/aws-sdk-core/log/param_formatter.rb +7 -3
- data/lib/aws-sdk-core/plugins/checksum_algorithm.rb +332 -170
- data/lib/aws-sdk-core/plugins/http_checksum.rb +2 -8
- data/lib/aws-sdk-core/plugins/sign.rb +1 -1
- data/lib/aws-sdk-core/plugins/user_agent.rb +10 -1
- data/lib/aws-sdk-core/shared_config.rb +2 -0
- data/lib/aws-sdk-sso/client.rb +24 -1
- data/lib/aws-sdk-sso/endpoint_provider.rb +14 -18
- data/lib/aws-sdk-sso.rb +1 -1
- data/lib/aws-sdk-ssooidc/client.rb +48 -19
- data/lib/aws-sdk-ssooidc/endpoint_provider.rb +14 -18
- data/lib/aws-sdk-ssooidc/types.rb +20 -15
- data/lib/aws-sdk-ssooidc.rb +1 -1
- data/lib/aws-sdk-sts/client.rb +35 -13
- data/lib/aws-sdk-sts/endpoint_provider.rb +33 -38
- data/lib/aws-sdk-sts/types.rb +5 -6
- data/lib/aws-sdk-sts.rb +1 -1
- data/lib/seahorse/client/net_http/connection_pool.rb +2 -0
- data/lib/seahorse/client/response.rb +2 -0
- metadata +22 -8
    
        data/lib/aws-sdk-sso/client.rb
    CHANGED
    
    | @@ -257,11 +257,34 @@ module Aws::SSO | |
| 257 257 | 
             
                #     Used when loading credentials from the shared credentials file
         | 
| 258 258 | 
             
                #     at HOME/.aws/credentials.  When not specified, 'default' is used.
         | 
| 259 259 | 
             
                #
         | 
| 260 | 
            +
                #   @option options [String] :request_checksum_calculation ("when_supported")
         | 
| 261 | 
            +
                #     Determines when a checksum will be calculated for request payloads. Values are:
         | 
| 262 | 
            +
                #
         | 
| 263 | 
            +
                #     * `when_supported` - (default) When set, a checksum will be
         | 
| 264 | 
            +
                #       calculated for all request payloads of operations modeled with the
         | 
| 265 | 
            +
                #       `httpChecksum` trait where `requestChecksumRequired` is `true` and/or a
         | 
| 266 | 
            +
                #       `requestAlgorithmMember` is modeled.
         | 
| 267 | 
            +
                #     * `when_required` - When set, a checksum will only be calculated for
         | 
| 268 | 
            +
                #       request payloads of operations modeled with the  `httpChecksum` trait where
         | 
| 269 | 
            +
                #       `requestChecksumRequired` is `true` or where a `requestAlgorithmMember`
         | 
| 270 | 
            +
                #       is modeled and supplied.
         | 
| 271 | 
            +
                #
         | 
| 260 272 | 
             
                #   @option options [Integer] :request_min_compression_size_bytes (10240)
         | 
| 261 273 | 
             
                #     The minimum size in bytes that triggers compression for request
         | 
| 262 274 | 
             
                #     bodies. The value must be non-negative integer value between 0
         | 
| 263 275 | 
             
                #     and 10485780 bytes inclusive.
         | 
| 264 276 | 
             
                #
         | 
| 277 | 
            +
                #   @option options [String] :response_checksum_validation ("when_supported")
         | 
| 278 | 
            +
                #     Determines when checksum validation will be performed on response payloads. Values are:
         | 
| 279 | 
            +
                #
         | 
| 280 | 
            +
                #     * `when_supported` - (default) When set, checksum validation is performed on all
         | 
| 281 | 
            +
                #       response payloads of operations modeled with the `httpChecksum` trait where
         | 
| 282 | 
            +
                #       `responseAlgorithms` is modeled, except when no modeled checksum algorithms
         | 
| 283 | 
            +
                #       are supported.
         | 
| 284 | 
            +
                #     * `when_required` - When set, checksum validation is not performed on
         | 
| 285 | 
            +
                #       response payloads of operations unless the checksum algorithm is supported and
         | 
| 286 | 
            +
                #       the `requestValidationModeMember` member is set to `ENABLED`.
         | 
| 287 | 
            +
                #
         | 
| 265 288 | 
             
                #   @option options [Proc] :retry_backoff
         | 
| 266 289 | 
             
                #     A proc or lambda used for backoff. Defaults to 2**retries * retry_base_delay.
         | 
| 267 290 | 
             
                #     This option is only used in the `legacy` retry mode.
         | 
| @@ -669,7 +692,7 @@ module Aws::SSO | |
| 669 692 | 
             
                    tracer: tracer
         | 
| 670 693 | 
             
                  )
         | 
| 671 694 | 
             
                  context[:gem_name] = 'aws-sdk-core'
         | 
| 672 | 
            -
                  context[:gem_version] = '3. | 
| 695 | 
            +
                  context[:gem_version] = '3.218.1'
         | 
| 673 696 | 
             
                  Seahorse::Client::Request.new(handlers, context)
         | 
| 674 697 | 
             
                end
         | 
| 675 698 |  | 
| @@ -10,43 +10,39 @@ | |
| 10 10 | 
             
            module Aws::SSO
         | 
| 11 11 | 
             
              class EndpointProvider
         | 
| 12 12 | 
             
                def resolve_endpoint(parameters)
         | 
| 13 | 
            -
                   | 
| 14 | 
            -
             | 
| 15 | 
            -
                  use_fips = parameters.use_fips
         | 
| 16 | 
            -
                  endpoint = parameters.endpoint
         | 
| 17 | 
            -
                  if Aws::Endpoints::Matchers.set?(endpoint)
         | 
| 18 | 
            -
                    if Aws::Endpoints::Matchers.boolean_equals?(use_fips, true)
         | 
| 13 | 
            +
                  if Aws::Endpoints::Matchers.set?(parameters.endpoint)
         | 
| 14 | 
            +
                    if Aws::Endpoints::Matchers.boolean_equals?(parameters.use_fips, true)
         | 
| 19 15 | 
             
                      raise ArgumentError, "Invalid Configuration: FIPS and custom endpoint are not supported"
         | 
| 20 16 | 
             
                    end
         | 
| 21 | 
            -
                    if Aws::Endpoints::Matchers.boolean_equals?(use_dual_stack, true)
         | 
| 17 | 
            +
                    if Aws::Endpoints::Matchers.boolean_equals?(parameters.use_dual_stack, true)
         | 
| 22 18 | 
             
                      raise ArgumentError, "Invalid Configuration: Dualstack and custom endpoint are not supported"
         | 
| 23 19 | 
             
                    end
         | 
| 24 | 
            -
                    return Aws::Endpoints::Endpoint.new(url: endpoint, headers: {}, properties: {})
         | 
| 20 | 
            +
                    return Aws::Endpoints::Endpoint.new(url: parameters.endpoint, headers: {}, properties: {})
         | 
| 25 21 | 
             
                  end
         | 
| 26 | 
            -
                  if Aws::Endpoints::Matchers.set?(region)
         | 
| 27 | 
            -
                    if (partition_result = Aws::Endpoints::Matchers.aws_partition(region))
         | 
| 28 | 
            -
                      if Aws::Endpoints::Matchers.boolean_equals?(use_fips, true) && Aws::Endpoints::Matchers.boolean_equals?(use_dual_stack, true)
         | 
| 22 | 
            +
                  if Aws::Endpoints::Matchers.set?(parameters.region)
         | 
| 23 | 
            +
                    if (partition_result = Aws::Endpoints::Matchers.aws_partition(parameters.region))
         | 
| 24 | 
            +
                      if Aws::Endpoints::Matchers.boolean_equals?(parameters.use_fips, true) && Aws::Endpoints::Matchers.boolean_equals?(parameters.use_dual_stack, true)
         | 
| 29 25 | 
             
                        if Aws::Endpoints::Matchers.boolean_equals?(true, Aws::Endpoints::Matchers.attr(partition_result, "supportsFIPS")) && Aws::Endpoints::Matchers.boolean_equals?(true, Aws::Endpoints::Matchers.attr(partition_result, "supportsDualStack"))
         | 
| 30 | 
            -
                          return Aws::Endpoints::Endpoint.new(url: "https://portal.sso-fips.#{region}.#{partition_result['dualStackDnsSuffix']}", headers: {}, properties: {})
         | 
| 26 | 
            +
                          return Aws::Endpoints::Endpoint.new(url: "https://portal.sso-fips.#{parameters.region}.#{partition_result['dualStackDnsSuffix']}", headers: {}, properties: {})
         | 
| 31 27 | 
             
                        end
         | 
| 32 28 | 
             
                        raise ArgumentError, "FIPS and DualStack are enabled, but this partition does not support one or both"
         | 
| 33 29 | 
             
                      end
         | 
| 34 | 
            -
                      if Aws::Endpoints::Matchers.boolean_equals?(use_fips, true)
         | 
| 30 | 
            +
                      if Aws::Endpoints::Matchers.boolean_equals?(parameters.use_fips, true)
         | 
| 35 31 | 
             
                        if Aws::Endpoints::Matchers.boolean_equals?(true, Aws::Endpoints::Matchers.attr(partition_result, "supportsFIPS"))
         | 
| 36 32 | 
             
                          if Aws::Endpoints::Matchers.string_equals?("aws-us-gov", Aws::Endpoints::Matchers.attr(partition_result, "name"))
         | 
| 37 | 
            -
                            return Aws::Endpoints::Endpoint.new(url: "https://portal.sso.#{region}.amazonaws.com", headers: {}, properties: {})
         | 
| 33 | 
            +
                            return Aws::Endpoints::Endpoint.new(url: "https://portal.sso.#{parameters.region}.amazonaws.com", headers: {}, properties: {})
         | 
| 38 34 | 
             
                          end
         | 
| 39 | 
            -
                          return Aws::Endpoints::Endpoint.new(url: "https://portal.sso-fips.#{region}.#{partition_result['dnsSuffix']}", headers: {}, properties: {})
         | 
| 35 | 
            +
                          return Aws::Endpoints::Endpoint.new(url: "https://portal.sso-fips.#{parameters.region}.#{partition_result['dnsSuffix']}", headers: {}, properties: {})
         | 
| 40 36 | 
             
                        end
         | 
| 41 37 | 
             
                        raise ArgumentError, "FIPS is enabled but this partition does not support FIPS"
         | 
| 42 38 | 
             
                      end
         | 
| 43 | 
            -
                      if Aws::Endpoints::Matchers.boolean_equals?(use_dual_stack, true)
         | 
| 39 | 
            +
                      if Aws::Endpoints::Matchers.boolean_equals?(parameters.use_dual_stack, true)
         | 
| 44 40 | 
             
                        if Aws::Endpoints::Matchers.boolean_equals?(true, Aws::Endpoints::Matchers.attr(partition_result, "supportsDualStack"))
         | 
| 45 | 
            -
                          return Aws::Endpoints::Endpoint.new(url: "https://portal.sso.#{region}.#{partition_result['dualStackDnsSuffix']}", headers: {}, properties: {})
         | 
| 41 | 
            +
                          return Aws::Endpoints::Endpoint.new(url: "https://portal.sso.#{parameters.region}.#{partition_result['dualStackDnsSuffix']}", headers: {}, properties: {})
         | 
| 46 42 | 
             
                        end
         | 
| 47 43 | 
             
                        raise ArgumentError, "DualStack is enabled but this partition does not support DualStack"
         | 
| 48 44 | 
             
                      end
         | 
| 49 | 
            -
                      return Aws::Endpoints::Endpoint.new(url: "https://portal.sso.#{region}.#{partition_result['dnsSuffix']}", headers: {}, properties: {})
         | 
| 45 | 
            +
                      return Aws::Endpoints::Endpoint.new(url: "https://portal.sso.#{parameters.region}.#{partition_result['dnsSuffix']}", headers: {}, properties: {})
         | 
| 50 46 | 
             
                    end
         | 
| 51 47 | 
             
                  end
         | 
| 52 48 | 
             
                  raise ArgumentError, "Invalid Configuration: Missing Region"
         | 
    
        data/lib/aws-sdk-sso.rb
    CHANGED
    
    
| @@ -257,11 +257,34 @@ module Aws::SSOOIDC | |
| 257 257 | 
             
                #     Used when loading credentials from the shared credentials file
         | 
| 258 258 | 
             
                #     at HOME/.aws/credentials.  When not specified, 'default' is used.
         | 
| 259 259 | 
             
                #
         | 
| 260 | 
            +
                #   @option options [String] :request_checksum_calculation ("when_supported")
         | 
| 261 | 
            +
                #     Determines when a checksum will be calculated for request payloads. Values are:
         | 
| 262 | 
            +
                #
         | 
| 263 | 
            +
                #     * `when_supported` - (default) When set, a checksum will be
         | 
| 264 | 
            +
                #       calculated for all request payloads of operations modeled with the
         | 
| 265 | 
            +
                #       `httpChecksum` trait where `requestChecksumRequired` is `true` and/or a
         | 
| 266 | 
            +
                #       `requestAlgorithmMember` is modeled.
         | 
| 267 | 
            +
                #     * `when_required` - When set, a checksum will only be calculated for
         | 
| 268 | 
            +
                #       request payloads of operations modeled with the  `httpChecksum` trait where
         | 
| 269 | 
            +
                #       `requestChecksumRequired` is `true` or where a `requestAlgorithmMember`
         | 
| 270 | 
            +
                #       is modeled and supplied.
         | 
| 271 | 
            +
                #
         | 
| 260 272 | 
             
                #   @option options [Integer] :request_min_compression_size_bytes (10240)
         | 
| 261 273 | 
             
                #     The minimum size in bytes that triggers compression for request
         | 
| 262 274 | 
             
                #     bodies. The value must be non-negative integer value between 0
         | 
| 263 275 | 
             
                #     and 10485780 bytes inclusive.
         | 
| 264 276 | 
             
                #
         | 
| 277 | 
            +
                #   @option options [String] :response_checksum_validation ("when_supported")
         | 
| 278 | 
            +
                #     Determines when checksum validation will be performed on response payloads. Values are:
         | 
| 279 | 
            +
                #
         | 
| 280 | 
            +
                #     * `when_supported` - (default) When set, checksum validation is performed on all
         | 
| 281 | 
            +
                #       response payloads of operations modeled with the `httpChecksum` trait where
         | 
| 282 | 
            +
                #       `responseAlgorithms` is modeled, except when no modeled checksum algorithms
         | 
| 283 | 
            +
                #       are supported.
         | 
| 284 | 
            +
                #     * `when_required` - When set, checksum validation is not performed on
         | 
| 285 | 
            +
                #       response payloads of operations unless the checksum algorithm is supported and
         | 
| 286 | 
            +
                #       the `requestValidationModeMember` member is set to `ENABLED`.
         | 
| 287 | 
            +
                #
         | 
| 265 288 | 
             
                #   @option options [Proc] :retry_backoff
         | 
| 266 289 | 
             
                #     A proc or lambda used for backoff. Defaults to 2**retries * retry_base_delay.
         | 
| 267 290 | 
             
                #     This option is only used in the `legacy` retry mode.
         | 
| @@ -449,7 +472,7 @@ module Aws::SSOOIDC | |
| 449 472 |  | 
| 450 473 | 
             
                # Creates and returns access and refresh tokens for clients that are
         | 
| 451 474 | 
             
                # authenticated using client secrets. The access token can be used to
         | 
| 452 | 
            -
                # fetch short- | 
| 475 | 
            +
                # fetch short-lived credentials for the assigned AWS accounts or to
         | 
| 453 476 | 
             
                # access application APIs using `bearer` authentication.
         | 
| 454 477 | 
             
                #
         | 
| 455 478 | 
             
                # @option params [required, String] :client_id
         | 
| @@ -461,30 +484,28 @@ module Aws::SSOOIDC | |
| 461 484 | 
             
                #   the persisted result of the RegisterClient API.
         | 
| 462 485 | 
             
                #
         | 
| 463 486 | 
             
                # @option params [required, String] :grant_type
         | 
| 464 | 
            -
                #   Supports the following OAuth grant types:  | 
| 465 | 
            -
                #   Token. Specify  | 
| 466 | 
            -
                #   type that you want:
         | 
| 487 | 
            +
                #   Supports the following OAuth grant types: Authorization Code, Device
         | 
| 488 | 
            +
                #   Code, and Refresh Token. Specify one of the following values,
         | 
| 489 | 
            +
                #   depending on the grant type that you want:
         | 
| 490 | 
            +
                #
         | 
| 491 | 
            +
                #   * Authorization Code - `authorization_code`
         | 
| 467 492 | 
             
                #
         | 
| 468 493 | 
             
                #   * Device Code - `urn:ietf:params:oauth:grant-type:device_code`
         | 
| 469 494 | 
             
                #
         | 
| 470 495 | 
             
                #   * Refresh Token - `refresh_token`
         | 
| 471 496 | 
             
                #
         | 
| 472 | 
            -
                #   For information about how to obtain the device code, see the
         | 
| 473 | 
            -
                #   StartDeviceAuthorization topic.
         | 
| 474 | 
            -
                #
         | 
| 475 497 | 
             
                # @option params [String] :device_code
         | 
| 476 498 | 
             
                #   Used only when calling this API for the Device Code grant type. This
         | 
| 477 | 
            -
                #   short- | 
| 499 | 
            +
                #   short-lived code is used to identify this authorization request. This
         | 
| 478 500 | 
             
                #   comes from the result of the StartDeviceAuthorization API.
         | 
| 479 501 | 
             
                #
         | 
| 480 502 | 
             
                # @option params [String] :code
         | 
| 481 503 | 
             
                #   Used only when calling this API for the Authorization Code grant type.
         | 
| 482 | 
            -
                #   The short- | 
| 483 | 
            -
                #   This grant type is currently unsupported for the CreateToken API.
         | 
| 504 | 
            +
                #   The short-lived code is used to identify this authorization request.
         | 
| 484 505 | 
             
                #
         | 
| 485 506 | 
             
                # @option params [String] :refresh_token
         | 
| 486 507 | 
             
                #   Used only when calling this API for the Refresh Token grant type. This
         | 
| 487 | 
            -
                #   token is used to refresh short- | 
| 508 | 
            +
                #   token is used to refresh short-lived tokens, such as the access token,
         | 
| 488 509 | 
             
                #   that might expire.
         | 
| 489 510 | 
             
                #
         | 
| 490 511 | 
             
                #   For more information about the features and limitations of the current
         | 
| @@ -590,7 +611,7 @@ module Aws::SSOOIDC | |
| 590 611 |  | 
| 591 612 | 
             
                # Creates and returns access and refresh tokens for clients and
         | 
| 592 613 | 
             
                # applications that are authenticated using IAM entities. The access
         | 
| 593 | 
            -
                # token can be used to fetch short- | 
| 614 | 
            +
                # token can be used to fetch short-lived credentials for the assigned
         | 
| 594 615 | 
             
                # Amazon Web Services accounts or to access application APIs using
         | 
| 595 616 | 
             
                # `bearer` authentication.
         | 
| 596 617 | 
             
                #
         | 
| @@ -613,14 +634,14 @@ module Aws::SSOOIDC | |
| 613 634 | 
             
                #
         | 
| 614 635 | 
             
                # @option params [String] :code
         | 
| 615 636 | 
             
                #   Used only when calling this API for the Authorization Code grant type.
         | 
| 616 | 
            -
                #   This short- | 
| 637 | 
            +
                #   This short-lived code is used to identify this authorization request.
         | 
| 617 638 | 
             
                #   The code is obtained through a redirect from IAM Identity Center to a
         | 
| 618 639 | 
             
                #   redirect URI persisted in the Authorization Code GrantOptions for the
         | 
| 619 640 | 
             
                #   application.
         | 
| 620 641 | 
             
                #
         | 
| 621 642 | 
             
                # @option params [String] :refresh_token
         | 
| 622 643 | 
             
                #   Used only when calling this API for the Refresh Token grant type. This
         | 
| 623 | 
            -
                #   token is used to refresh short- | 
| 644 | 
            +
                #   token is used to refresh short-lived tokens, such as the access token,
         | 
| 624 645 | 
             
                #   that might expire.
         | 
| 625 646 | 
             
                #
         | 
| 626 647 | 
             
                #   For more information about the features and limitations of the current
         | 
| @@ -823,9 +844,10 @@ module Aws::SSOOIDC | |
| 823 844 | 
             
                  req.send_request(options)
         | 
| 824 845 | 
             
                end
         | 
| 825 846 |  | 
| 826 | 
            -
                # Registers a client with IAM Identity Center. This allows | 
| 827 | 
            -
                #  | 
| 828 | 
            -
                #  | 
| 847 | 
            +
                # Registers a public client with IAM Identity Center. This allows
         | 
| 848 | 
            +
                # clients to perform authorization using the authorization
         | 
| 849 | 
            +
                # code grant with Proof Key for Code Exchange (PKCE) or the device
         | 
| 850 | 
            +
                # code grant.
         | 
| 829 851 | 
             
                #
         | 
| 830 852 | 
             
                # @option params [required, String] :client_name
         | 
| 831 853 | 
             
                #   The friendly name of the client.
         | 
| @@ -847,7 +869,14 @@ module Aws::SSOOIDC | |
| 847 869 | 
             
                # @option params [Array<String>] :grant_types
         | 
| 848 870 | 
             
                #   The list of OAuth 2.0 grant types that are defined by the client. This
         | 
| 849 871 | 
             
                #   list is used to restrict the token granting flows available to the
         | 
| 850 | 
            -
                #   client.
         | 
| 872 | 
            +
                #   client. Supports the following OAuth 2.0 grant types: Authorization
         | 
| 873 | 
            +
                #   Code, Device Code, and Refresh Token.
         | 
| 874 | 
            +
                #
         | 
| 875 | 
            +
                #   * Authorization Code - `authorization_code`
         | 
| 876 | 
            +
                #
         | 
| 877 | 
            +
                #   * Device Code - `urn:ietf:params:oauth:grant-type:device_code`
         | 
| 878 | 
            +
                #
         | 
| 879 | 
            +
                #   * Refresh Token - `refresh_token`
         | 
| 851 880 | 
             
                #
         | 
| 852 881 | 
             
                # @option params [String] :issuer_url
         | 
| 853 882 | 
             
                #   The IAM Identity Center Issuer URL associated with an instance of IAM
         | 
| @@ -1022,7 +1051,7 @@ module Aws::SSOOIDC | |
| 1022 1051 | 
             
                    tracer: tracer
         | 
| 1023 1052 | 
             
                  )
         | 
| 1024 1053 | 
             
                  context[:gem_name] = 'aws-sdk-core'
         | 
| 1025 | 
            -
                  context[:gem_version] = '3. | 
| 1054 | 
            +
                  context[:gem_version] = '3.218.1'
         | 
| 1026 1055 | 
             
                  Seahorse::Client::Request.new(handlers, context)
         | 
| 1027 1056 | 
             
                end
         | 
| 1028 1057 |  | 
| @@ -10,43 +10,39 @@ | |
| 10 10 | 
             
            module Aws::SSOOIDC
         | 
| 11 11 | 
             
              class EndpointProvider
         | 
| 12 12 | 
             
                def resolve_endpoint(parameters)
         | 
| 13 | 
            -
                   | 
| 14 | 
            -
             | 
| 15 | 
            -
                  use_fips = parameters.use_fips
         | 
| 16 | 
            -
                  endpoint = parameters.endpoint
         | 
| 17 | 
            -
                  if Aws::Endpoints::Matchers.set?(endpoint)
         | 
| 18 | 
            -
                    if Aws::Endpoints::Matchers.boolean_equals?(use_fips, true)
         | 
| 13 | 
            +
                  if Aws::Endpoints::Matchers.set?(parameters.endpoint)
         | 
| 14 | 
            +
                    if Aws::Endpoints::Matchers.boolean_equals?(parameters.use_fips, true)
         | 
| 19 15 | 
             
                      raise ArgumentError, "Invalid Configuration: FIPS and custom endpoint are not supported"
         | 
| 20 16 | 
             
                    end
         | 
| 21 | 
            -
                    if Aws::Endpoints::Matchers.boolean_equals?(use_dual_stack, true)
         | 
| 17 | 
            +
                    if Aws::Endpoints::Matchers.boolean_equals?(parameters.use_dual_stack, true)
         | 
| 22 18 | 
             
                      raise ArgumentError, "Invalid Configuration: Dualstack and custom endpoint are not supported"
         | 
| 23 19 | 
             
                    end
         | 
| 24 | 
            -
                    return Aws::Endpoints::Endpoint.new(url: endpoint, headers: {}, properties: {})
         | 
| 20 | 
            +
                    return Aws::Endpoints::Endpoint.new(url: parameters.endpoint, headers: {}, properties: {})
         | 
| 25 21 | 
             
                  end
         | 
| 26 | 
            -
                  if Aws::Endpoints::Matchers.set?(region)
         | 
| 27 | 
            -
                    if (partition_result = Aws::Endpoints::Matchers.aws_partition(region))
         | 
| 28 | 
            -
                      if Aws::Endpoints::Matchers.boolean_equals?(use_fips, true) && Aws::Endpoints::Matchers.boolean_equals?(use_dual_stack, true)
         | 
| 22 | 
            +
                  if Aws::Endpoints::Matchers.set?(parameters.region)
         | 
| 23 | 
            +
                    if (partition_result = Aws::Endpoints::Matchers.aws_partition(parameters.region))
         | 
| 24 | 
            +
                      if Aws::Endpoints::Matchers.boolean_equals?(parameters.use_fips, true) && Aws::Endpoints::Matchers.boolean_equals?(parameters.use_dual_stack, true)
         | 
| 29 25 | 
             
                        if Aws::Endpoints::Matchers.boolean_equals?(true, Aws::Endpoints::Matchers.attr(partition_result, "supportsFIPS")) && Aws::Endpoints::Matchers.boolean_equals?(true, Aws::Endpoints::Matchers.attr(partition_result, "supportsDualStack"))
         | 
| 30 | 
            -
                          return Aws::Endpoints::Endpoint.new(url: "https://oidc-fips.#{region}.#{partition_result['dualStackDnsSuffix']}", headers: {}, properties: {})
         | 
| 26 | 
            +
                          return Aws::Endpoints::Endpoint.new(url: "https://oidc-fips.#{parameters.region}.#{partition_result['dualStackDnsSuffix']}", headers: {}, properties: {})
         | 
| 31 27 | 
             
                        end
         | 
| 32 28 | 
             
                        raise ArgumentError, "FIPS and DualStack are enabled, but this partition does not support one or both"
         | 
| 33 29 | 
             
                      end
         | 
| 34 | 
            -
                      if Aws::Endpoints::Matchers.boolean_equals?(use_fips, true)
         | 
| 30 | 
            +
                      if Aws::Endpoints::Matchers.boolean_equals?(parameters.use_fips, true)
         | 
| 35 31 | 
             
                        if Aws::Endpoints::Matchers.boolean_equals?(Aws::Endpoints::Matchers.attr(partition_result, "supportsFIPS"), true)
         | 
| 36 32 | 
             
                          if Aws::Endpoints::Matchers.string_equals?(Aws::Endpoints::Matchers.attr(partition_result, "name"), "aws-us-gov")
         | 
| 37 | 
            -
                            return Aws::Endpoints::Endpoint.new(url: "https://oidc.#{region}.amazonaws.com", headers: {}, properties: {})
         | 
| 33 | 
            +
                            return Aws::Endpoints::Endpoint.new(url: "https://oidc.#{parameters.region}.amazonaws.com", headers: {}, properties: {})
         | 
| 38 34 | 
             
                          end
         | 
| 39 | 
            -
                          return Aws::Endpoints::Endpoint.new(url: "https://oidc-fips.#{region}.#{partition_result['dnsSuffix']}", headers: {}, properties: {})
         | 
| 35 | 
            +
                          return Aws::Endpoints::Endpoint.new(url: "https://oidc-fips.#{parameters.region}.#{partition_result['dnsSuffix']}", headers: {}, properties: {})
         | 
| 40 36 | 
             
                        end
         | 
| 41 37 | 
             
                        raise ArgumentError, "FIPS is enabled but this partition does not support FIPS"
         | 
| 42 38 | 
             
                      end
         | 
| 43 | 
            -
                      if Aws::Endpoints::Matchers.boolean_equals?(use_dual_stack, true)
         | 
| 39 | 
            +
                      if Aws::Endpoints::Matchers.boolean_equals?(parameters.use_dual_stack, true)
         | 
| 44 40 | 
             
                        if Aws::Endpoints::Matchers.boolean_equals?(true, Aws::Endpoints::Matchers.attr(partition_result, "supportsDualStack"))
         | 
| 45 | 
            -
                          return Aws::Endpoints::Endpoint.new(url: "https://oidc.#{region}.#{partition_result['dualStackDnsSuffix']}", headers: {}, properties: {})
         | 
| 41 | 
            +
                          return Aws::Endpoints::Endpoint.new(url: "https://oidc.#{parameters.region}.#{partition_result['dualStackDnsSuffix']}", headers: {}, properties: {})
         | 
| 46 42 | 
             
                        end
         | 
| 47 43 | 
             
                        raise ArgumentError, "DualStack is enabled but this partition does not support DualStack"
         | 
| 48 44 | 
             
                      end
         | 
| 49 | 
            -
                      return Aws::Endpoints::Endpoint.new(url: "https://oidc.#{region}.#{partition_result['dnsSuffix']}", headers: {}, properties: {})
         | 
| 45 | 
            +
                      return Aws::Endpoints::Endpoint.new(url: "https://oidc.#{parameters.region}.#{partition_result['dnsSuffix']}", headers: {}, properties: {})
         | 
| 50 46 | 
             
                    end
         | 
| 51 47 | 
             
                  end
         | 
| 52 48 | 
             
                  raise ArgumentError, "Invalid Configuration: Missing Region"
         | 
| @@ -64,34 +64,32 @@ module Aws::SSOOIDC | |
| 64 64 | 
             
                #   @return [String]
         | 
| 65 65 | 
             
                #
         | 
| 66 66 | 
             
                # @!attribute [rw] grant_type
         | 
| 67 | 
            -
                #   Supports the following OAuth grant types:  | 
| 68 | 
            -
                #   Token. Specify  | 
| 69 | 
            -
                #   grant type that you want:
         | 
| 67 | 
            +
                #   Supports the following OAuth grant types: Authorization Code, Device
         | 
| 68 | 
            +
                #   Code, and Refresh Token. Specify one of the following values,
         | 
| 69 | 
            +
                #   depending on the grant type that you want:
         | 
| 70 | 
            +
                #
         | 
| 71 | 
            +
                #   * Authorization Code - `authorization_code`
         | 
| 70 72 | 
             
                #
         | 
| 71 73 | 
             
                #   * Device Code - `urn:ietf:params:oauth:grant-type:device_code`
         | 
| 72 74 | 
             
                #
         | 
| 73 75 | 
             
                #   * Refresh Token - `refresh_token`
         | 
| 74 | 
            -
                #
         | 
| 75 | 
            -
                #   For information about how to obtain the device code, see the
         | 
| 76 | 
            -
                #   StartDeviceAuthorization topic.
         | 
| 77 76 | 
             
                #   @return [String]
         | 
| 78 77 | 
             
                #
         | 
| 79 78 | 
             
                # @!attribute [rw] device_code
         | 
| 80 79 | 
             
                #   Used only when calling this API for the Device Code grant type. This
         | 
| 81 | 
            -
                #   short- | 
| 82 | 
            -
                #   comes from the result of the StartDeviceAuthorization API.
         | 
| 80 | 
            +
                #   short-lived code is used to identify this authorization request.
         | 
| 81 | 
            +
                #   This comes from the result of the StartDeviceAuthorization API.
         | 
| 83 82 | 
             
                #   @return [String]
         | 
| 84 83 | 
             
                #
         | 
| 85 84 | 
             
                # @!attribute [rw] code
         | 
| 86 85 | 
             
                #   Used only when calling this API for the Authorization Code grant
         | 
| 87 | 
            -
                #   type. The short- | 
| 88 | 
            -
                #   request. | 
| 89 | 
            -
                #   CreateToken API.
         | 
| 86 | 
            +
                #   type. The short-lived code is used to identify this authorization
         | 
| 87 | 
            +
                #   request.
         | 
| 90 88 | 
             
                #   @return [String]
         | 
| 91 89 | 
             
                #
         | 
| 92 90 | 
             
                # @!attribute [rw] refresh_token
         | 
| 93 91 | 
             
                #   Used only when calling this API for the Refresh Token grant type.
         | 
| 94 | 
            -
                #   This token is used to refresh short- | 
| 92 | 
            +
                #   This token is used to refresh short-lived tokens, such as the access
         | 
| 95 93 | 
             
                #   token, that might expire.
         | 
| 96 94 | 
             
                #
         | 
| 97 95 | 
             
                #   For more information about the features and limitations of the
         | 
| @@ -217,7 +215,7 @@ module Aws::SSOOIDC | |
| 217 215 | 
             
                #
         | 
| 218 216 | 
             
                # @!attribute [rw] code
         | 
| 219 217 | 
             
                #   Used only when calling this API for the Authorization Code grant
         | 
| 220 | 
            -
                #   type. This short- | 
| 218 | 
            +
                #   type. This short-lived code is used to identify this authorization
         | 
| 221 219 | 
             
                #   request. The code is obtained through a redirect from IAM Identity
         | 
| 222 220 | 
             
                #   Center to a redirect URI persisted in the Authorization Code
         | 
| 223 221 | 
             
                #   GrantOptions for the application.
         | 
| @@ -225,7 +223,7 @@ module Aws::SSOOIDC | |
| 225 223 | 
             
                #
         | 
| 226 224 | 
             
                # @!attribute [rw] refresh_token
         | 
| 227 225 | 
             
                #   Used only when calling this API for the Refresh Token grant type.
         | 
| 228 | 
            -
                #   This token is used to refresh short- | 
| 226 | 
            +
                #   This token is used to refresh short-lived tokens, such as the access
         | 
| 229 227 | 
             
                #   token, that might expire.
         | 
| 230 228 | 
             
                #
         | 
| 231 229 | 
             
                #   For more information about the features and limitations of the
         | 
| @@ -606,7 +604,14 @@ module Aws::SSOOIDC | |
| 606 604 | 
             
                # @!attribute [rw] grant_types
         | 
| 607 605 | 
             
                #   The list of OAuth 2.0 grant types that are defined by the client.
         | 
| 608 606 | 
             
                #   This list is used to restrict the token granting flows available to
         | 
| 609 | 
            -
                #   the client.
         | 
| 607 | 
            +
                #   the client. Supports the following OAuth 2.0 grant types:
         | 
| 608 | 
            +
                #   Authorization Code, Device Code, and Refresh Token.
         | 
| 609 | 
            +
                #
         | 
| 610 | 
            +
                #   * Authorization Code - `authorization_code`
         | 
| 611 | 
            +
                #
         | 
| 612 | 
            +
                #   * Device Code - `urn:ietf:params:oauth:grant-type:device_code`
         | 
| 613 | 
            +
                #
         | 
| 614 | 
            +
                #   * Refresh Token - `refresh_token`
         | 
| 610 615 | 
             
                #   @return [Array<String>]
         | 
| 611 616 | 
             
                #
         | 
| 612 617 | 
             
                # @!attribute [rw] issuer_url
         | 
    
        data/lib/aws-sdk-ssooidc.rb
    CHANGED
    
    
    
        data/lib/aws-sdk-sts/client.rb
    CHANGED
    
    | @@ -259,11 +259,34 @@ module Aws::STS | |
| 259 259 | 
             
                #     Used when loading credentials from the shared credentials file
         | 
| 260 260 | 
             
                #     at HOME/.aws/credentials.  When not specified, 'default' is used.
         | 
| 261 261 | 
             
                #
         | 
| 262 | 
            +
                #   @option options [String] :request_checksum_calculation ("when_supported")
         | 
| 263 | 
            +
                #     Determines when a checksum will be calculated for request payloads. Values are:
         | 
| 264 | 
            +
                #
         | 
| 265 | 
            +
                #     * `when_supported` - (default) When set, a checksum will be
         | 
| 266 | 
            +
                #       calculated for all request payloads of operations modeled with the
         | 
| 267 | 
            +
                #       `httpChecksum` trait where `requestChecksumRequired` is `true` and/or a
         | 
| 268 | 
            +
                #       `requestAlgorithmMember` is modeled.
         | 
| 269 | 
            +
                #     * `when_required` - When set, a checksum will only be calculated for
         | 
| 270 | 
            +
                #       request payloads of operations modeled with the  `httpChecksum` trait where
         | 
| 271 | 
            +
                #       `requestChecksumRequired` is `true` or where a `requestAlgorithmMember`
         | 
| 272 | 
            +
                #       is modeled and supplied.
         | 
| 273 | 
            +
                #
         | 
| 262 274 | 
             
                #   @option options [Integer] :request_min_compression_size_bytes (10240)
         | 
| 263 275 | 
             
                #     The minimum size in bytes that triggers compression for request
         | 
| 264 276 | 
             
                #     bodies. The value must be non-negative integer value between 0
         | 
| 265 277 | 
             
                #     and 10485780 bytes inclusive.
         | 
| 266 278 | 
             
                #
         | 
| 279 | 
            +
                #   @option options [String] :response_checksum_validation ("when_supported")
         | 
| 280 | 
            +
                #     Determines when checksum validation will be performed on response payloads. Values are:
         | 
| 281 | 
            +
                #
         | 
| 282 | 
            +
                #     * `when_supported` - (default) When set, checksum validation is performed on all
         | 
| 283 | 
            +
                #       response payloads of operations modeled with the `httpChecksum` trait where
         | 
| 284 | 
            +
                #       `responseAlgorithms` is modeled, except when no modeled checksum algorithms
         | 
| 285 | 
            +
                #       are supported.
         | 
| 286 | 
            +
                #     * `when_required` - When set, checksum validation is not performed on
         | 
| 287 | 
            +
                #       response payloads of operations unless the checksum algorithm is supported and
         | 
| 288 | 
            +
                #       the `requestValidationModeMember` member is set to `ENABLED`.
         | 
| 289 | 
            +
                #
         | 
| 267 290 | 
             
                #   @option options [Proc] :retry_backoff
         | 
| 268 291 | 
             
                #     A proc or lambda used for backoff. Defaults to 2**retries * retry_base_delay.
         | 
| 269 292 | 
             
                #     This option is only used in the `legacy` retry mode.
         | 
| @@ -831,7 +854,7 @@ module Aws::STS | |
| 831 854 | 
             
                #   The regex used to validate this parameter is a string of characters
         | 
| 832 855 | 
             
                #   consisting of upper- and lower-case alphanumeric characters with no
         | 
| 833 856 | 
             
                #   spaces. You can also include underscores or any of the following
         | 
| 834 | 
            -
                #   characters:  | 
| 857 | 
            +
                #   characters: +=,.@-. You cannot use a value that begins with the text
         | 
| 835 858 | 
             
                #   `aws:`. This prefix is reserved for Amazon Web Services internal use.
         | 
| 836 859 | 
             
                #
         | 
| 837 860 | 
             
                #
         | 
| @@ -1514,8 +1537,9 @@ module Aws::STS | |
| 1514 1537 | 
             
                #   authenticating the user who is using your application with a web
         | 
| 1515 1538 | 
             
                #   identity provider before the application makes an
         | 
| 1516 1539 | 
             
                #   `AssumeRoleWithWebIdentity` call. Timestamps in the token must be
         | 
| 1517 | 
            -
                #   formatted as either an integer or a long integer.  | 
| 1518 | 
            -
                #    | 
| 1540 | 
            +
                #   formatted as either an integer or a long integer. Tokens must be
         | 
| 1541 | 
            +
                #   signed using either RSA keys (RS256, RS384, or RS512) or ECDSA keys
         | 
| 1542 | 
            +
                #   (ES256, ES384, or ES512).
         | 
| 1519 1543 | 
             
                #
         | 
| 1520 1544 | 
             
                # @option params [String] :provider_id
         | 
| 1521 1545 | 
             
                #   The fully qualified host component of the domain name of the OAuth 2.0
         | 
| @@ -1708,14 +1732,14 @@ module Aws::STS | |
| 1708 1732 | 
             
                end
         | 
| 1709 1733 |  | 
| 1710 1734 | 
             
                # Returns a set of short term credentials you can use to perform
         | 
| 1711 | 
            -
                # privileged tasks  | 
| 1735 | 
            +
                # privileged tasks on a member account in your organization.
         | 
| 1712 1736 | 
             
                #
         | 
| 1713 | 
            -
                # Before you can launch a privileged session, you must have  | 
| 1714 | 
            -
                #  | 
| 1715 | 
            -
                #  | 
| 1716 | 
            -
                #  | 
| 1737 | 
            +
                # Before you can launch a privileged session, you must have centralized
         | 
| 1738 | 
            +
                # root access in your organization. For steps to enable this feature,
         | 
| 1739 | 
            +
                # see [Centralize root access for member accounts][1] in the *IAM User
         | 
| 1740 | 
            +
                # Guide*.
         | 
| 1717 1741 | 
             
                #
         | 
| 1718 | 
            -
                # <note markdown="1"> The global endpoint is not supported for AssumeRoot. You must send
         | 
| 1742 | 
            +
                # <note markdown="1"> The STS global endpoint is not supported for AssumeRoot. You must send
         | 
| 1719 1743 | 
             
                # this request to a Regional STS endpoint. For more information, see
         | 
| 1720 1744 | 
             
                # [Endpoints][2].
         | 
| 1721 1745 | 
             
                #
         | 
| @@ -1737,9 +1761,7 @@ module Aws::STS | |
| 1737 1761 | 
             
                # @option params [required, Types::PolicyDescriptorType] :task_policy_arn
         | 
| 1738 1762 | 
             
                #   The identity based policy that scopes the session to the privileged
         | 
| 1739 1763 | 
             
                #   tasks that can be performed. You can use one of following Amazon Web
         | 
| 1740 | 
            -
                #   Services managed policies to scope root session actions. | 
| 1741 | 
            -
                #   additional customer managed policies to further limit the permissions
         | 
| 1742 | 
            -
                #   for the root session.
         | 
| 1764 | 
            +
                #   Services managed policies to scope root session actions.
         | 
| 1743 1765 | 
             
                #
         | 
| 1744 1766 | 
             
                #   * [IAMAuditRootUserCredentials][1]
         | 
| 1745 1767 | 
             
                #
         | 
| @@ -2573,7 +2595,7 @@ module Aws::STS | |
| 2573 2595 | 
             
                    tracer: tracer
         | 
| 2574 2596 | 
             
                  )
         | 
| 2575 2597 | 
             
                  context[:gem_name] = 'aws-sdk-core'
         | 
| 2576 | 
            -
                  context[:gem_version] = '3. | 
| 2598 | 
            +
                  context[:gem_version] = '3.218.1'
         | 
| 2577 2599 | 
             
                  Seahorse::Client::Request.new(handlers, context)
         | 
| 2578 2600 | 
             
                end
         | 
| 2579 2601 |  |