aws-sdk-personalizeruntime 1.47.0 → 1.49.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 +10 -0
 - data/VERSION +1 -1
 - data/lib/aws-sdk-personalizeruntime/client.rb +74 -46
 - data/lib/aws-sdk-personalizeruntime/client_api.rb +6 -0
 - data/lib/aws-sdk-personalizeruntime/types.rb +29 -2
 - data/lib/aws-sdk-personalizeruntime.rb +1 -1
 - data/sig/types.rbs +2 -1
 - metadata +4 -4
 
    
        checksums.yaml
    CHANGED
    
    | 
         @@ -1,7 +1,7 @@ 
     | 
|
| 
       1 
1 
     | 
    
         
             
            ---
         
     | 
| 
       2 
2 
     | 
    
         
             
            SHA256:
         
     | 
| 
       3 
     | 
    
         
            -
              metadata.gz:  
     | 
| 
       4 
     | 
    
         
            -
              data.tar.gz:  
     | 
| 
      
 3 
     | 
    
         
            +
              metadata.gz: 6e6097c3f5dfdcf1c95736e8e3482ed92302a9525d24a266e246568136473f0d
         
     | 
| 
      
 4 
     | 
    
         
            +
              data.tar.gz: e313368d8f7b48c5368462d008987d42a4658f06e683725ee5857efd3ce4aee2
         
     | 
| 
       5 
5 
     | 
    
         
             
            SHA512:
         
     | 
| 
       6 
     | 
    
         
            -
              metadata.gz:  
     | 
| 
       7 
     | 
    
         
            -
              data.tar.gz:  
     | 
| 
      
 6 
     | 
    
         
            +
              metadata.gz: e49ec4ac3ee5f3d4b6d4aa08bf4d97c229b526524053a7d8de30906ef0e56ecc3fdbd001de7d393932590cd369bc2f051127944b42f55cad1673d8f7a73bb895
         
     | 
| 
      
 7 
     | 
    
         
            +
              data.tar.gz: 36257dbd7c9112f49e6c59de004cadfee86e56ce5aad44a388f0746333e513325127c1fd65e1ca80445ad0ef5b844e2c195015d67771a67d8986cc6cfae08ef2
         
     | 
    
        data/CHANGELOG.md
    CHANGED
    
    | 
         @@ -1,6 +1,16 @@ 
     | 
|
| 
       1 
1 
     | 
    
         
             
            Unreleased Changes
         
     | 
| 
       2 
2 
     | 
    
         
             
            ------------------
         
     | 
| 
       3 
3 
     | 
    
         | 
| 
      
 4 
     | 
    
         
            +
            1.49.0 (2024-05-01)
         
     | 
| 
      
 5 
     | 
    
         
            +
            ------------------
         
     | 
| 
      
 6 
     | 
    
         
            +
             
     | 
| 
      
 7 
     | 
    
         
            +
            * Feature - This release adds support for a Reason attribute for predicted items generated by User-Personalization-v2.
         
     | 
| 
      
 8 
     | 
    
         
            +
             
     | 
| 
      
 9 
     | 
    
         
            +
            1.48.0 (2024-04-25)
         
     | 
| 
      
 10 
     | 
    
         
            +
            ------------------
         
     | 
| 
      
 11 
     | 
    
         
            +
             
     | 
| 
      
 12 
     | 
    
         
            +
            * Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
         
     | 
| 
      
 13 
     | 
    
         
            +
             
     | 
| 
       4 
14 
     | 
    
         
             
            1.47.0 (2024-01-26)
         
     | 
| 
       5 
15 
     | 
    
         
             
            ------------------
         
     | 
| 
       6 
16 
     | 
    
         | 
    
        data/VERSION
    CHANGED
    
    | 
         @@ -1 +1 @@ 
     | 
|
| 
       1 
     | 
    
         
            -
            1. 
     | 
| 
      
 1 
     | 
    
         
            +
            1.49.0
         
     | 
| 
         @@ -22,6 +22,7 @@ require 'aws-sdk-core/plugins/endpoint_pattern.rb' 
     | 
|
| 
       22 
22 
     | 
    
         
             
            require 'aws-sdk-core/plugins/response_paging.rb'
         
     | 
| 
       23 
23 
     | 
    
         
             
            require 'aws-sdk-core/plugins/stub_responses.rb'
         
     | 
| 
       24 
24 
     | 
    
         
             
            require 'aws-sdk-core/plugins/idempotency_token.rb'
         
     | 
| 
      
 25 
     | 
    
         
            +
            require 'aws-sdk-core/plugins/invocation_id.rb'
         
     | 
| 
       25 
26 
     | 
    
         
             
            require 'aws-sdk-core/plugins/jsonvalue_converter.rb'
         
     | 
| 
       26 
27 
     | 
    
         
             
            require 'aws-sdk-core/plugins/client_metrics_plugin.rb'
         
     | 
| 
       27 
28 
     | 
    
         
             
            require 'aws-sdk-core/plugins/client_metrics_send_plugin.rb'
         
     | 
| 
         @@ -72,6 +73,7 @@ module Aws::PersonalizeRuntime 
     | 
|
| 
       72 
73 
     | 
    
         
             
                add_plugin(Aws::Plugins::ResponsePaging)
         
     | 
| 
       73 
74 
     | 
    
         
             
                add_plugin(Aws::Plugins::StubResponses)
         
     | 
| 
       74 
75 
     | 
    
         
             
                add_plugin(Aws::Plugins::IdempotencyToken)
         
     | 
| 
      
 76 
     | 
    
         
            +
                add_plugin(Aws::Plugins::InvocationId)
         
     | 
| 
       75 
77 
     | 
    
         
             
                add_plugin(Aws::Plugins::JsonvalueConverter)
         
     | 
| 
       76 
78 
     | 
    
         
             
                add_plugin(Aws::Plugins::ClientMetricsPlugin)
         
     | 
| 
       77 
79 
     | 
    
         
             
                add_plugin(Aws::Plugins::ClientMetricsSendPlugin)
         
     | 
| 
         @@ -196,10 +198,17 @@ module Aws::PersonalizeRuntime 
     | 
|
| 
       196 
198 
     | 
    
         
             
                #     When set to 'true' the request body will not be compressed
         
     | 
| 
       197 
199 
     | 
    
         
             
                #     for supported operations.
         
     | 
| 
       198 
200 
     | 
    
         
             
                #
         
     | 
| 
       199 
     | 
    
         
            -
                #   @option options [String] :endpoint
         
     | 
| 
       200 
     | 
    
         
            -
                #      
     | 
| 
       201 
     | 
    
         
            -
                #      
     | 
| 
       202 
     | 
    
         
            -
                #      
     | 
| 
      
 201 
     | 
    
         
            +
                #   @option options [String, URI::HTTPS, URI::HTTP] :endpoint
         
     | 
| 
      
 202 
     | 
    
         
            +
                #     Normally you should not configure the `:endpoint` option
         
     | 
| 
      
 203 
     | 
    
         
            +
                #     directly. This is normally constructed from the `:region`
         
     | 
| 
      
 204 
     | 
    
         
            +
                #     option. Configuring `:endpoint` is normally reserved for
         
     | 
| 
      
 205 
     | 
    
         
            +
                #     connecting to test or custom endpoints. The endpoint should
         
     | 
| 
      
 206 
     | 
    
         
            +
                #     be a URI formatted like:
         
     | 
| 
      
 207 
     | 
    
         
            +
                #
         
     | 
| 
      
 208 
     | 
    
         
            +
                #         'http://example.com'
         
     | 
| 
      
 209 
     | 
    
         
            +
                #         'https://example.com'
         
     | 
| 
      
 210 
     | 
    
         
            +
                #         'http://example.com:123'
         
     | 
| 
      
 211 
     | 
    
         
            +
                #
         
     | 
| 
       203 
212 
     | 
    
         
             
                #
         
     | 
| 
       204 
213 
     | 
    
         
             
                #   @option options [Integer] :endpoint_cache_max_entries (1000)
         
     | 
| 
       205 
214 
     | 
    
         
             
                #     Used for the maximum size limit of the LRU cache storing endpoints data
         
     | 
| 
         @@ -337,50 +346,65 @@ module Aws::PersonalizeRuntime 
     | 
|
| 
       337 
346 
     | 
    
         
             
                #   @option options [Aws::PersonalizeRuntime::EndpointProvider] :endpoint_provider
         
     | 
| 
       338 
347 
     | 
    
         
             
                #     The endpoint provider used to resolve endpoints. Any object that responds to `#resolve_endpoint(parameters)` where `parameters` is a Struct similar to `Aws::PersonalizeRuntime::EndpointParameters`
         
     | 
| 
       339 
348 
     | 
    
         
             
                #
         
     | 
| 
       340 
     | 
    
         
            -
                #   @option options [ 
     | 
| 
       341 
     | 
    
         
            -
                #      
     | 
| 
       342 
     | 
    
         
            -
                #
         
     | 
| 
       343 
     | 
    
         
            -
                # 
     | 
| 
       344 
     | 
    
         
            -
                #      
     | 
| 
       345 
     | 
    
         
            -
                # 
     | 
| 
       346 
     | 
    
         
            -
                #
         
     | 
| 
       347 
     | 
    
         
            -
                # 
     | 
| 
       348 
     | 
    
         
            -
                #      
     | 
| 
       349 
     | 
    
         
            -
                #      
     | 
| 
       350 
     | 
    
         
            -
                #
         
     | 
| 
       351 
     | 
    
         
            -
                #   @option options [Float] : 
     | 
| 
       352 
     | 
    
         
            -
                #      
     | 
| 
       353 
     | 
    
         
            -
                #      
     | 
| 
       354 
     | 
    
         
            -
                # 
     | 
| 
       355 
     | 
    
         
            -
                #
         
     | 
| 
       356 
     | 
    
         
            -
                # 
     | 
| 
       357 
     | 
    
         
            -
                # 
     | 
| 
       358 
     | 
    
         
            -
                # 
     | 
| 
       359 
     | 
    
         
            -
                #      
     | 
| 
       360 
     | 
    
         
            -
                #      
     | 
| 
       361 
     | 
    
         
            -
                # 
     | 
| 
       362 
     | 
    
         
            -
                #
         
     | 
| 
       363 
     | 
    
         
            -
                # 
     | 
| 
       364 
     | 
    
         
            -
                # 
     | 
| 
      
 349 
     | 
    
         
            +
                #   @option options [Float] :http_continue_timeout (1)
         
     | 
| 
      
 350 
     | 
    
         
            +
                #     The number of seconds to wait for a 100-continue response before sending the
         
     | 
| 
      
 351 
     | 
    
         
            +
                #     request body.  This option has no effect unless the request has "Expect"
         
     | 
| 
      
 352 
     | 
    
         
            +
                #     header set to "100-continue".  Defaults to `nil` which  disables this
         
     | 
| 
      
 353 
     | 
    
         
            +
                #     behaviour.  This value can safely be set per request on the session.
         
     | 
| 
      
 354 
     | 
    
         
            +
                #
         
     | 
| 
      
 355 
     | 
    
         
            +
                #   @option options [Float] :http_idle_timeout (5)
         
     | 
| 
      
 356 
     | 
    
         
            +
                #     The number of seconds a connection is allowed to sit idle before it
         
     | 
| 
      
 357 
     | 
    
         
            +
                #     is considered stale.  Stale connections are closed and removed from the
         
     | 
| 
      
 358 
     | 
    
         
            +
                #     pool before making a request.
         
     | 
| 
      
 359 
     | 
    
         
            +
                #
         
     | 
| 
      
 360 
     | 
    
         
            +
                #   @option options [Float] :http_open_timeout (15)
         
     | 
| 
      
 361 
     | 
    
         
            +
                #     The default number of seconds to wait for response data.
         
     | 
| 
      
 362 
     | 
    
         
            +
                #     This value can safely be set per-request on the session.
         
     | 
| 
      
 363 
     | 
    
         
            +
                #
         
     | 
| 
      
 364 
     | 
    
         
            +
                #   @option options [URI::HTTP,String] :http_proxy
         
     | 
| 
      
 365 
     | 
    
         
            +
                #     A proxy to send requests through.  Formatted like 'http://proxy.com:123'.
         
     | 
| 
      
 366 
     | 
    
         
            +
                #
         
     | 
| 
      
 367 
     | 
    
         
            +
                #   @option options [Float] :http_read_timeout (60)
         
     | 
| 
      
 368 
     | 
    
         
            +
                #     The default number of seconds to wait for response data.
         
     | 
| 
      
 369 
     | 
    
         
            +
                #     This value can safely be set per-request on the session.
         
     | 
| 
      
 370 
     | 
    
         
            +
                #
         
     | 
| 
      
 371 
     | 
    
         
            +
                #   @option options [Boolean] :http_wire_trace (false)
         
     | 
| 
      
 372 
     | 
    
         
            +
                #     When `true`,  HTTP debug output will be sent to the `:logger`.
         
     | 
| 
      
 373 
     | 
    
         
            +
                #
         
     | 
| 
      
 374 
     | 
    
         
            +
                #   @option options [Proc] :on_chunk_received
         
     | 
| 
      
 375 
     | 
    
         
            +
                #     When a Proc object is provided, it will be used as callback when each chunk
         
     | 
| 
      
 376 
     | 
    
         
            +
                #     of the response body is received. It provides three arguments: the chunk,
         
     | 
| 
      
 377 
     | 
    
         
            +
                #     the number of bytes received, and the total number of
         
     | 
| 
      
 378 
     | 
    
         
            +
                #     bytes in the response (or nil if the server did not send a `content-length`).
         
     | 
| 
      
 379 
     | 
    
         
            +
                #
         
     | 
| 
      
 380 
     | 
    
         
            +
                #   @option options [Proc] :on_chunk_sent
         
     | 
| 
      
 381 
     | 
    
         
            +
                #     When a Proc object is provided, it will be used as callback when each chunk
         
     | 
| 
      
 382 
     | 
    
         
            +
                #     of the request body is sent. It provides three arguments: the chunk,
         
     | 
| 
      
 383 
     | 
    
         
            +
                #     the number of bytes read from the body, and the total number of
         
     | 
| 
      
 384 
     | 
    
         
            +
                #     bytes in the body.
         
     | 
| 
      
 385 
     | 
    
         
            +
                #
         
     | 
| 
      
 386 
     | 
    
         
            +
                #   @option options [Boolean] :raise_response_errors (true)
         
     | 
| 
      
 387 
     | 
    
         
            +
                #     When `true`, response errors are raised.
         
     | 
| 
      
 388 
     | 
    
         
            +
                #
         
     | 
| 
      
 389 
     | 
    
         
            +
                #   @option options [String] :ssl_ca_bundle
         
     | 
| 
      
 390 
     | 
    
         
            +
                #     Full path to the SSL certificate authority bundle file that should be used when
         
     | 
| 
      
 391 
     | 
    
         
            +
                #     verifying peer certificates.  If you do not pass `:ssl_ca_bundle` or
         
     | 
| 
      
 392 
     | 
    
         
            +
                #     `:ssl_ca_directory` the the system default will be used if available.
         
     | 
| 
      
 393 
     | 
    
         
            +
                #
         
     | 
| 
      
 394 
     | 
    
         
            +
                #   @option options [String] :ssl_ca_directory
         
     | 
| 
      
 395 
     | 
    
         
            +
                #     Full path of the directory that contains the unbundled SSL certificate
         
     | 
| 
      
 396 
     | 
    
         
            +
                #     authority files for verifying peer certificates.  If you do
         
     | 
| 
      
 397 
     | 
    
         
            +
                #     not pass `:ssl_ca_bundle` or `:ssl_ca_directory` the the system
         
     | 
| 
      
 398 
     | 
    
         
            +
                #     default will be used if available.
         
     | 
| 
       365 
399 
     | 
    
         
             
                #
         
     | 
| 
       366 
     | 
    
         
            -
                #   @option options [ 
     | 
| 
       367 
     | 
    
         
            -
                #      
     | 
| 
      
 400 
     | 
    
         
            +
                #   @option options [String] :ssl_ca_store
         
     | 
| 
      
 401 
     | 
    
         
            +
                #     Sets the X509::Store to verify peer certificate.
         
     | 
| 
       368 
402 
     | 
    
         
             
                #
         
     | 
| 
       369 
     | 
    
         
            -
                #   @option options [ 
     | 
| 
       370 
     | 
    
         
            -
                #      
     | 
| 
       371 
     | 
    
         
            -
                #     connection.
         
     | 
| 
      
 403 
     | 
    
         
            +
                #   @option options [Float] :ssl_timeout
         
     | 
| 
      
 404 
     | 
    
         
            +
                #     Sets the SSL timeout in seconds
         
     | 
| 
       372 
405 
     | 
    
         
             
                #
         
     | 
| 
       373 
     | 
    
         
            -
                #   @option options [ 
     | 
| 
       374 
     | 
    
         
            -
                #      
     | 
| 
       375 
     | 
    
         
            -
                #     verifying peer certificates.  If you do not pass
         
     | 
| 
       376 
     | 
    
         
            -
                #     `:ssl_ca_bundle` or `:ssl_ca_directory` the the system default
         
     | 
| 
       377 
     | 
    
         
            -
                #     will be used if available.
         
     | 
| 
       378 
     | 
    
         
            -
                #
         
     | 
| 
       379 
     | 
    
         
            -
                #   @option options [String] :ssl_ca_directory Full path of the
         
     | 
| 
       380 
     | 
    
         
            -
                #     directory that contains the unbundled SSL certificate
         
     | 
| 
       381 
     | 
    
         
            -
                #     authority files for verifying peer certificates.  If you do
         
     | 
| 
       382 
     | 
    
         
            -
                #     not pass `:ssl_ca_bundle` or `:ssl_ca_directory` the the
         
     | 
| 
       383 
     | 
    
         
            -
                #     system default will be used if available.
         
     | 
| 
      
 406 
     | 
    
         
            +
                #   @option options [Boolean] :ssl_verify_peer (true)
         
     | 
| 
      
 407 
     | 
    
         
            +
                #     When `true`, SSL peer certificates are verified when establishing a connection.
         
     | 
| 
       384 
408 
     | 
    
         
             
                #
         
     | 
| 
       385 
409 
     | 
    
         
             
                def initialize(*args)
         
     | 
| 
       386 
410 
     | 
    
         
             
                  super
         
     | 
| 
         @@ -578,6 +602,8 @@ module Aws::PersonalizeRuntime 
     | 
|
| 
       578 
602 
     | 
    
         
             
                #   resp.personalized_ranking[0].promotion_name #=> String
         
     | 
| 
       579 
603 
     | 
    
         
             
                #   resp.personalized_ranking[0].metadata #=> Hash
         
     | 
| 
       580 
604 
     | 
    
         
             
                #   resp.personalized_ranking[0].metadata["ColumnName"] #=> String
         
     | 
| 
      
 605 
     | 
    
         
            +
                #   resp.personalized_ranking[0].reason #=> Array
         
     | 
| 
      
 606 
     | 
    
         
            +
                #   resp.personalized_ranking[0].reason[0] #=> String
         
     | 
| 
       581 
607 
     | 
    
         
             
                #   resp.recommendation_id #=> String
         
     | 
| 
       582 
608 
     | 
    
         
             
                #
         
     | 
| 
       583 
609 
     | 
    
         
             
                # @see http://docs.aws.amazon.com/goto/WebAPI/personalize-runtime-2018-05-22/GetPersonalizedRanking AWS API Documentation
         
     | 
| 
         @@ -737,6 +763,8 @@ module Aws::PersonalizeRuntime 
     | 
|
| 
       737 
763 
     | 
    
         
             
                #   resp.item_list[0].promotion_name #=> String
         
     | 
| 
       738 
764 
     | 
    
         
             
                #   resp.item_list[0].metadata #=> Hash
         
     | 
| 
       739 
765 
     | 
    
         
             
                #   resp.item_list[0].metadata["ColumnName"] #=> String
         
     | 
| 
      
 766 
     | 
    
         
            +
                #   resp.item_list[0].reason #=> Array
         
     | 
| 
      
 767 
     | 
    
         
            +
                #   resp.item_list[0].reason[0] #=> String
         
     | 
| 
       740 
768 
     | 
    
         
             
                #   resp.recommendation_id #=> String
         
     | 
| 
       741 
769 
     | 
    
         
             
                #
         
     | 
| 
       742 
770 
     | 
    
         
             
                # @see http://docs.aws.amazon.com/goto/WebAPI/personalize-runtime-2018-05-22/GetRecommendations AWS API Documentation
         
     | 
| 
         @@ -761,7 +789,7 @@ module Aws::PersonalizeRuntime 
     | 
|
| 
       761 
789 
     | 
    
         
             
                    params: params,
         
     | 
| 
       762 
790 
     | 
    
         
             
                    config: config)
         
     | 
| 
       763 
791 
     | 
    
         
             
                  context[:gem_name] = 'aws-sdk-personalizeruntime'
         
     | 
| 
       764 
     | 
    
         
            -
                  context[:gem_version] = '1. 
     | 
| 
      
 792 
     | 
    
         
            +
                  context[:gem_version] = '1.49.0'
         
     | 
| 
       765 
793 
     | 
    
         
             
                  Seahorse::Client::Request.new(handlers, context)
         
     | 
| 
       766 
794 
     | 
    
         
             
                end
         
     | 
| 
       767 
795 
     | 
    
         | 
| 
         @@ -46,6 +46,8 @@ module Aws::PersonalizeRuntime 
     | 
|
| 
       46 
46 
     | 
    
         
             
                PredictedItem = Shapes::StructureShape.new(name: 'PredictedItem')
         
     | 
| 
       47 
47 
     | 
    
         
             
                Promotion = Shapes::StructureShape.new(name: 'Promotion')
         
     | 
| 
       48 
48 
     | 
    
         
             
                PromotionList = Shapes::ListShape.new(name: 'PromotionList')
         
     | 
| 
      
 49 
     | 
    
         
            +
                Reason = Shapes::StringShape.new(name: 'Reason')
         
     | 
| 
      
 50 
     | 
    
         
            +
                ReasonList = Shapes::ListShape.new(name: 'ReasonList')
         
     | 
| 
       49 
51 
     | 
    
         
             
                RecommendationID = Shapes::StringShape.new(name: 'RecommendationID')
         
     | 
| 
       50 
52 
     | 
    
         
             
                ResourceNotFoundException = Shapes::StructureShape.new(name: 'ResourceNotFoundException')
         
     | 
| 
       51 
53 
     | 
    
         
             
                Score = Shapes::FloatShape.new(name: 'Score')
         
     | 
| 
         @@ -122,6 +124,7 @@ module Aws::PersonalizeRuntime 
     | 
|
| 
       122 
124 
     | 
    
         
             
                PredictedItem.add_member(:score, Shapes::ShapeRef.new(shape: Score, location_name: "score"))
         
     | 
| 
       123 
125 
     | 
    
         
             
                PredictedItem.add_member(:promotion_name, Shapes::ShapeRef.new(shape: Name, location_name: "promotionName"))
         
     | 
| 
       124 
126 
     | 
    
         
             
                PredictedItem.add_member(:metadata, Shapes::ShapeRef.new(shape: Metadata, location_name: "metadata"))
         
     | 
| 
      
 127 
     | 
    
         
            +
                PredictedItem.add_member(:reason, Shapes::ShapeRef.new(shape: ReasonList, location_name: "reason"))
         
     | 
| 
       125 
128 
     | 
    
         
             
                PredictedItem.struct_class = Types::PredictedItem
         
     | 
| 
       126 
129 
     | 
    
         | 
| 
       127 
130 
     | 
    
         
             
                Promotion.add_member(:name, Shapes::ShapeRef.new(shape: Name, location_name: "name"))
         
     | 
| 
         @@ -132,6 +135,8 @@ module Aws::PersonalizeRuntime 
     | 
|
| 
       132 
135 
     | 
    
         | 
| 
       133 
136 
     | 
    
         
             
                PromotionList.member = Shapes::ShapeRef.new(shape: Promotion)
         
     | 
| 
       134 
137 
     | 
    
         | 
| 
      
 138 
     | 
    
         
            +
                ReasonList.member = Shapes::ShapeRef.new(shape: Reason)
         
     | 
| 
      
 139 
     | 
    
         
            +
             
     | 
| 
       135 
140 
     | 
    
         
             
                ResourceNotFoundException.add_member(:message, Shapes::ShapeRef.new(shape: ErrorMessage, location_name: "message"))
         
     | 
| 
       136 
141 
     | 
    
         
             
                ResourceNotFoundException.struct_class = Types::ResourceNotFoundException
         
     | 
| 
       137 
142 
     | 
    
         | 
| 
         @@ -146,6 +151,7 @@ module Aws::PersonalizeRuntime 
     | 
|
| 
       146 
151 
     | 
    
         
             
                    "endpointPrefix" => "personalize-runtime",
         
     | 
| 
       147 
152 
     | 
    
         
             
                    "jsonVersion" => "1.1",
         
     | 
| 
       148 
153 
     | 
    
         
             
                    "protocol" => "rest-json",
         
     | 
| 
      
 154 
     | 
    
         
            +
                    "protocols" => ["rest-json"],
         
     | 
| 
       149 
155 
     | 
    
         
             
                    "serviceFullName" => "Amazon Personalize Runtime",
         
     | 
| 
       150 
156 
     | 
    
         
             
                    "serviceId" => "Personalize Runtime",
         
     | 
| 
       151 
157 
     | 
    
         
             
                    "signatureVersion" => "v4",
         
     | 
| 
         @@ -385,14 +385,41 @@ module Aws::PersonalizeRuntime 
     | 
|
| 
       385 
385 
     | 
    
         
             
                #   Metadata about the item from your Items dataset.
         
     | 
| 
       386 
386 
     | 
    
         
             
                #   @return [Hash<String,String>]
         
     | 
| 
       387 
387 
     | 
    
         
             
                #
         
     | 
| 
      
 388 
     | 
    
         
            +
                # @!attribute [rw] reason
         
     | 
| 
      
 389 
     | 
    
         
            +
                #   If you use User-Personalization-v2, a list of reasons for why the
         
     | 
| 
      
 390 
     | 
    
         
            +
                #   item was included in recommendations. Possible reasons include the
         
     | 
| 
      
 391 
     | 
    
         
            +
                #   following:
         
     | 
| 
      
 392 
     | 
    
         
            +
                #
         
     | 
| 
      
 393 
     | 
    
         
            +
                #   * Promoted item - Indicates the item was included as part of a
         
     | 
| 
      
 394 
     | 
    
         
            +
                #     promotion that you applied in your recommendation request.
         
     | 
| 
      
 395 
     | 
    
         
            +
                #
         
     | 
| 
      
 396 
     | 
    
         
            +
                #   * Exploration - Indicates the item was included with exploration.
         
     | 
| 
      
 397 
     | 
    
         
            +
                #     With exploration, recommendations include items with less
         
     | 
| 
      
 398 
     | 
    
         
            +
                #     interactions data or relevance for the user. For more information
         
     | 
| 
      
 399 
     | 
    
         
            +
                #     about exploration, see [Exploration][1].
         
     | 
| 
      
 400 
     | 
    
         
            +
                #
         
     | 
| 
      
 401 
     | 
    
         
            +
                #   * Popular item - Indicates the item was included as a placeholder
         
     | 
| 
      
 402 
     | 
    
         
            +
                #     popular item. If you use a filter, depending on how many
         
     | 
| 
      
 403 
     | 
    
         
            +
                #     recommendations the filter removes, Amazon Personalize might add
         
     | 
| 
      
 404 
     | 
    
         
            +
                #     placeholder items to meet the `numResults` for your recommendation
         
     | 
| 
      
 405 
     | 
    
         
            +
                #     request. These items are popular items, based on interactions
         
     | 
| 
      
 406 
     | 
    
         
            +
                #     data, that satisfy your filter criteria. They don't have a
         
     | 
| 
      
 407 
     | 
    
         
            +
                #     relevance score for the user.
         
     | 
| 
      
 408 
     | 
    
         
            +
                #
         
     | 
| 
      
 409 
     | 
    
         
            +
                #
         
     | 
| 
      
 410 
     | 
    
         
            +
                #
         
     | 
| 
      
 411 
     | 
    
         
            +
                #   [1]: https://docs.aws.amazon.com/personalize/latest/dg/use-case-recipe-features.html#about-exploration
         
     | 
| 
      
 412 
     | 
    
         
            +
                #   @return [Array<String>]
         
     | 
| 
      
 413 
     | 
    
         
            +
                #
         
     | 
| 
       388 
414 
     | 
    
         
             
                # @see http://docs.aws.amazon.com/goto/WebAPI/personalize-runtime-2018-05-22/PredictedItem AWS API Documentation
         
     | 
| 
       389 
415 
     | 
    
         
             
                #
         
     | 
| 
       390 
416 
     | 
    
         
             
                class PredictedItem < Struct.new(
         
     | 
| 
       391 
417 
     | 
    
         
             
                  :item_id,
         
     | 
| 
       392 
418 
     | 
    
         
             
                  :score,
         
     | 
| 
       393 
419 
     | 
    
         
             
                  :promotion_name,
         
     | 
| 
       394 
     | 
    
         
            -
                  :metadata 
     | 
| 
       395 
     | 
    
         
            -
                   
     | 
| 
      
 420 
     | 
    
         
            +
                  :metadata,
         
     | 
| 
      
 421 
     | 
    
         
            +
                  :reason)
         
     | 
| 
      
 422 
     | 
    
         
            +
                  SENSITIVE = [:metadata]
         
     | 
| 
       396 
423 
     | 
    
         
             
                  include Aws::Structure
         
     | 
| 
       397 
424 
     | 
    
         
             
                end
         
     | 
| 
       398 
425 
     | 
    
         | 
    
        data/sig/types.rbs
    CHANGED
    
    | 
         @@ -76,7 +76,8 @@ module Aws::PersonalizeRuntime 
     | 
|
| 
       76 
76 
     | 
    
         
             
                  attr_accessor score: ::Float
         
     | 
| 
       77 
77 
     | 
    
         
             
                  attr_accessor promotion_name: ::String
         
     | 
| 
       78 
78 
     | 
    
         
             
                  attr_accessor metadata: ::Hash[::String, ::String]
         
     | 
| 
       79 
     | 
    
         
            -
                   
     | 
| 
      
 79 
     | 
    
         
            +
                  attr_accessor reason: ::Array[::String]
         
     | 
| 
      
 80 
     | 
    
         
            +
                  SENSITIVE: [:metadata]
         
     | 
| 
       80 
81 
     | 
    
         
             
                end
         
     | 
| 
       81 
82 
     | 
    
         | 
| 
       82 
83 
     | 
    
         
             
                class Promotion
         
     | 
    
        metadata
    CHANGED
    
    | 
         @@ -1,14 +1,14 @@ 
     | 
|
| 
       1 
1 
     | 
    
         
             
            --- !ruby/object:Gem::Specification
         
     | 
| 
       2 
2 
     | 
    
         
             
            name: aws-sdk-personalizeruntime
         
     | 
| 
       3 
3 
     | 
    
         
             
            version: !ruby/object:Gem::Version
         
     | 
| 
       4 
     | 
    
         
            -
              version: 1. 
     | 
| 
      
 4 
     | 
    
         
            +
              version: 1.49.0
         
     | 
| 
       5 
5 
     | 
    
         
             
            platform: ruby
         
     | 
| 
       6 
6 
     | 
    
         
             
            authors:
         
     | 
| 
       7 
7 
     | 
    
         
             
            - Amazon Web Services
         
     | 
| 
       8 
8 
     | 
    
         
             
            autorequire:
         
     | 
| 
       9 
9 
     | 
    
         
             
            bindir: bin
         
     | 
| 
       10 
10 
     | 
    
         
             
            cert_chain: []
         
     | 
| 
       11 
     | 
    
         
            -
            date: 2024-01 
     | 
| 
      
 11 
     | 
    
         
            +
            date: 2024-05-01 00:00:00.000000000 Z
         
     | 
| 
       12 
12 
     | 
    
         
             
            dependencies:
         
     | 
| 
       13 
13 
     | 
    
         
             
            - !ruby/object:Gem::Dependency
         
     | 
| 
       14 
14 
     | 
    
         
             
              name: aws-sdk-core
         
     | 
| 
         @@ -19,7 +19,7 @@ dependencies: 
     | 
|
| 
       19 
19 
     | 
    
         
             
                    version: '3'
         
     | 
| 
       20 
20 
     | 
    
         
             
                - - ">="
         
     | 
| 
       21 
21 
     | 
    
         
             
                  - !ruby/object:Gem::Version
         
     | 
| 
       22 
     | 
    
         
            -
                    version: 3. 
     | 
| 
      
 22 
     | 
    
         
            +
                    version: 3.193.0
         
     | 
| 
       23 
23 
     | 
    
         
             
              type: :runtime
         
     | 
| 
       24 
24 
     | 
    
         
             
              prerelease: false
         
     | 
| 
       25 
25 
     | 
    
         
             
              version_requirements: !ruby/object:Gem::Requirement
         
     | 
| 
         @@ -29,7 +29,7 @@ dependencies: 
     | 
|
| 
       29 
29 
     | 
    
         
             
                    version: '3'
         
     | 
| 
       30 
30 
     | 
    
         
             
                - - ">="
         
     | 
| 
       31 
31 
     | 
    
         
             
                  - !ruby/object:Gem::Version
         
     | 
| 
       32 
     | 
    
         
            -
                    version: 3. 
     | 
| 
      
 32 
     | 
    
         
            +
                    version: 3.193.0
         
     | 
| 
       33 
33 
     | 
    
         
             
            - !ruby/object:Gem::Dependency
         
     | 
| 
       34 
34 
     | 
    
         
             
              name: aws-sigv4
         
     | 
| 
       35 
35 
     | 
    
         
             
              requirement: !ruby/object:Gem::Requirement
         
     |