# WARNING ABOUT GENERATED CODE # # This file is generated. See the contributing guide for more information: # https://github.com/aws/aws-sdk-ruby/blob/master/CONTRIBUTING.md # # WARNING ABOUT GENERATED CODE module Aws::PersonalizeRuntime module Types # @note When making an API call, you may pass GetPersonalizedRankingRequest # data as a hash: # # { # campaign_arn: "Arn", # required # input_list: ["ItemID"], # required # user_id: "UserID", # required # } # # @!attribute [rw] campaign_arn # The Amazon Resource Name (ARN) of the campaign to use for generating # the personalized ranking. # @return [String] # # @!attribute [rw] input_list # A list of items (itemId's) to rank. If an item was not included in # the training dataset, the item is appended to the end of the # reranked list. # @return [Array] # # @!attribute [rw] user_id # The user for which you want the campaign to provide a personalized # ranking. # @return [String] # # @see http://docs.aws.amazon.com/goto/WebAPI/personalize-runtime-2018-05-22/GetPersonalizedRankingRequest AWS API Documentation # class GetPersonalizedRankingRequest < Struct.new( :campaign_arn, :input_list, :user_id) include Aws::Structure end # @!attribute [rw] personalized_ranking # A list of items in order of most likely interest to the user. # @return [Array] # # @see http://docs.aws.amazon.com/goto/WebAPI/personalize-runtime-2018-05-22/GetPersonalizedRankingResponse AWS API Documentation # class GetPersonalizedRankingResponse < Struct.new( :personalized_ranking) include Aws::Structure end # @note When making an API call, you may pass GetRecommendationsRequest # data as a hash: # # { # campaign_arn: "Arn", # required # item_id: "ItemID", # user_id: "UserID", # num_results: 1, # } # # @!attribute [rw] campaign_arn # The Amazon Resource Name (ARN) of the campaign to use for getting # recommendations. # @return [String] # # @!attribute [rw] item_id # The item ID to provide recommendations for. # # Required for `RELATED_ITEMS` recipe type. # @return [String] # # @!attribute [rw] user_id # The user ID to provide recommendations for. # # Required for `USER_PERSONALIZATION` recipe type. # @return [String] # # @!attribute [rw] num_results # The number of results to return. The default is 25. The maximum is # 100. # @return [Integer] # # @see http://docs.aws.amazon.com/goto/WebAPI/personalize-runtime-2018-05-22/GetRecommendationsRequest AWS API Documentation # class GetRecommendationsRequest < Struct.new( :campaign_arn, :item_id, :user_id, :num_results) include Aws::Structure end # @!attribute [rw] item_list # A list of recommendations. # @return [Array] # # @see http://docs.aws.amazon.com/goto/WebAPI/personalize-runtime-2018-05-22/GetRecommendationsResponse AWS API Documentation # class GetRecommendationsResponse < Struct.new( :item_list) include Aws::Structure end # Provide a valid value for the field or parameter. # # @!attribute [rw] message # @return [String] # # @see http://docs.aws.amazon.com/goto/WebAPI/personalize-runtime-2018-05-22/InvalidInputException AWS API Documentation # class InvalidInputException < Struct.new( :message) include Aws::Structure end # An object that identifies an item. # # The and APIs return a list of `PredictedItem`s. # # @!attribute [rw] item_id # The recommended item ID. # @return [String] # # @see http://docs.aws.amazon.com/goto/WebAPI/personalize-runtime-2018-05-22/PredictedItem AWS API Documentation # class PredictedItem < Struct.new( :item_id) include Aws::Structure end # The specified resource does not exist. # # @!attribute [rw] message # @return [String] # # @see http://docs.aws.amazon.com/goto/WebAPI/personalize-runtime-2018-05-22/ResourceNotFoundException AWS API Documentation # class ResourceNotFoundException < Struct.new( :message) include Aws::Structure end end end