github.com/aavshr/aws-sdk-go@v1.41.3/models/apis/personalize-runtime/2018-05-22/docs-2.json (about) 1 { 2 "version": "2.0", 3 "service": "<p/>", 4 "operations": { 5 "GetPersonalizedRanking": "<p>Re-ranks a list of recommended items for the given user. The first item in the list is deemed the most likely item to be of interest to the user.</p> <note> <p>The solution backing the campaign must have been created using a recipe of type PERSONALIZED_RANKING.</p> </note>", 6 "GetRecommendations": "<p>Returns a list of recommended items. The required input depends on the recipe type used to create the solution backing the campaign, as follows:</p> <ul> <li> <p>RELATED_ITEMS - <code>itemId</code> required, <code>userId</code> not used</p> </li> <li> <p>USER_PERSONALIZATION - <code>itemId</code> optional, <code>userId</code> required</p> </li> </ul> <note> <p>Campaigns that are backed by a solution created using a recipe of type PERSONALIZED_RANKING use the API.</p> </note>" 7 }, 8 "shapes": { 9 "Arn": { 10 "base": null, 11 "refs": { 12 "GetPersonalizedRankingRequest$campaignArn": "<p>The Amazon Resource Name (ARN) of the campaign to use for generating the personalized ranking.</p>", 13 "GetPersonalizedRankingRequest$filterArn": "<p>The Amazon Resource Name (ARN) of a filter you created to include items or exclude items from recommendations for a given user. For more information, see <a href=\"https://docs.aws.amazon.com/personalize/latest/dg/filter.html\">Filtering Recommendations</a>.</p>", 14 "GetRecommendationsRequest$campaignArn": "<p>The Amazon Resource Name (ARN) of the campaign to use for getting recommendations.</p>", 15 "GetRecommendationsRequest$filterArn": "<p>The ARN of the filter to apply to the returned recommendations. For more information, see <a href=\"https://docs.aws.amazon.com/personalize/latest/dg/filter.html\">Filtering Recommendations</a>.</p> <p>When using this parameter, be sure the filter resource is <code>ACTIVE</code>.</p>" 16 } 17 }, 18 "AttributeName": { 19 "base": null, 20 "refs": { 21 "Context$key": null 22 } 23 }, 24 "AttributeValue": { 25 "base": null, 26 "refs": { 27 "Context$value": null 28 } 29 }, 30 "Context": { 31 "base": null, 32 "refs": { 33 "GetPersonalizedRankingRequest$context": "<p>The contextual metadata to use when getting recommendations. Contextual metadata includes any interaction information that might be relevant when getting a user's recommendations, such as the user's current location or device type.</p>", 34 "GetRecommendationsRequest$context": "<p>The contextual metadata to use when getting recommendations. Contextual metadata includes any interaction information that might be relevant when getting a user's recommendations, such as the user's current location or device type.</p>" 35 } 36 }, 37 "ErrorMessage": { 38 "base": null, 39 "refs": { 40 "InvalidInputException$message": null, 41 "ResourceNotFoundException$message": null 42 } 43 }, 44 "FilterAttributeName": { 45 "base": null, 46 "refs": { 47 "FilterValues$key": null 48 } 49 }, 50 "FilterAttributeValue": { 51 "base": null, 52 "refs": { 53 "FilterValues$value": null 54 } 55 }, 56 "FilterValues": { 57 "base": null, 58 "refs": { 59 "GetPersonalizedRankingRequest$filterValues": "<p>The values to use when filtering recommendations. For each placeholder parameter in your filter expression, provide the parameter name (in matching case) as a key and the filter value(s) as the corresponding value. Separate multiple values for one parameter with a comma. </p> <p>For filter expressions that use an <code>INCLUDE</code> element to include items, you must provide values for all parameters that are defined in the expression. For filters with expressions that use an <code>EXCLUDE</code> element to exclude items, you can omit the <code>filter-values</code>.In this case, Amazon Personalize doesn't use that portion of the expression to filter recommendations.</p> <p>For more information, see <a href=\"https://docs.aws.amazon.com/personalize/latest/dg/filter.html\">Filtering Recommendations</a>.</p>", 60 "GetRecommendationsRequest$filterValues": "<p>The values to use when filtering recommendations. For each placeholder parameter in your filter expression, provide the parameter name (in matching case) as a key and the filter value(s) as the corresponding value. Separate multiple values for one parameter with a comma. </p> <p>For filter expressions that use an <code>INCLUDE</code> element to include items, you must provide values for all parameters that are defined in the expression. For filters with expressions that use an <code>EXCLUDE</code> element to exclude items, you can omit the <code>filter-values</code>.In this case, Amazon Personalize doesn't use that portion of the expression to filter recommendations.</p> <p>For more information, see <a href=\"https://docs.aws.amazon.com/personalize/latest/dg/filter.html\">Filtering Recommendations</a>.</p>" 61 } 62 }, 63 "GetPersonalizedRankingRequest": { 64 "base": null, 65 "refs": { 66 } 67 }, 68 "GetPersonalizedRankingResponse": { 69 "base": null, 70 "refs": { 71 } 72 }, 73 "GetRecommendationsRequest": { 74 "base": null, 75 "refs": { 76 } 77 }, 78 "GetRecommendationsResponse": { 79 "base": null, 80 "refs": { 81 } 82 }, 83 "InputList": { 84 "base": null, 85 "refs": { 86 "GetPersonalizedRankingRequest$inputList": "<p>A list of items (by <code>itemId</code>) to rank. If an item was not included in the training dataset, the item is appended to the end of the reranked list. The maximum is 500.</p>" 87 } 88 }, 89 "InvalidInputException": { 90 "base": "<p>Provide a valid value for the field or parameter.</p>", 91 "refs": { 92 } 93 }, 94 "ItemID": { 95 "base": null, 96 "refs": { 97 "GetRecommendationsRequest$itemId": "<p>The item ID to provide recommendations for.</p> <p>Required for <code>RELATED_ITEMS</code> recipe type.</p>", 98 "InputList$member": null, 99 "PredictedItem$itemId": "<p>The recommended item ID.</p>" 100 } 101 }, 102 "ItemList": { 103 "base": null, 104 "refs": { 105 "GetPersonalizedRankingResponse$personalizedRanking": "<p>A list of items in order of most likely interest to the user. The maximum is 500.</p>", 106 "GetRecommendationsResponse$itemList": "<p>A list of recommendations sorted in ascending order by prediction score. There can be a maximum of 500 items in the list.</p>" 107 } 108 }, 109 "NumResults": { 110 "base": null, 111 "refs": { 112 "GetRecommendationsRequest$numResults": "<p>The number of results to return. The default is 25. The maximum is 500.</p>" 113 } 114 }, 115 "PredictedItem": { 116 "base": "<p>An object that identifies an item.</p> <p>The and APIs return a list of <code>PredictedItem</code>s.</p>", 117 "refs": { 118 "ItemList$member": null 119 } 120 }, 121 "RecommendationID": { 122 "base": null, 123 "refs": { 124 "GetPersonalizedRankingResponse$recommendationId": "<p>The ID of the recommendation.</p>", 125 "GetRecommendationsResponse$recommendationId": "<p>The ID of the recommendation.</p>" 126 } 127 }, 128 "ResourceNotFoundException": { 129 "base": "<p>The specified resource does not exist.</p>", 130 "refs": { 131 } 132 }, 133 "Score": { 134 "base": null, 135 "refs": { 136 "PredictedItem$score": "<p>A numeric representation of the model's certainty that the item will be the next user selection. For more information on scoring logic, see <a>how-scores-work</a>.</p>" 137 } 138 }, 139 "UserID": { 140 "base": null, 141 "refs": { 142 "GetPersonalizedRankingRequest$userId": "<p>The user for which you want the campaign to provide a personalized ranking.</p>", 143 "GetRecommendationsRequest$userId": "<p>The user ID to provide recommendations for.</p> <p>Required for <code>USER_PERSONALIZATION</code> recipe type.</p>" 144 } 145 } 146 } 147 }