Update Go AWS SDK to the latest version

This commit is contained in:
Andrey Smirnov
2019-07-13 00:03:55 +03:00
committed by Andrey Smirnov
parent d08be990ef
commit 94a72b23ff
2183 changed files with 885887 additions and 228114 deletions
@@ -0,0 +1,132 @@
{
"version":"2.0",
"metadata":{
"apiVersion":"2018-05-22",
"endpointPrefix":"personalize-runtime",
"jsonVersion":"1.1",
"protocol":"rest-json",
"serviceFullName":"Amazon Personalize Runtime",
"serviceId":"Personalize Runtime",
"signatureVersion":"v4",
"signingName":"personalize",
"uid":"personalize-runtime-2018-05-22"
},
"operations":{
"GetPersonalizedRanking":{
"name":"GetPersonalizedRanking",
"http":{
"method":"POST",
"requestUri":"/personalize-ranking"
},
"input":{"shape":"GetPersonalizedRankingRequest"},
"output":{"shape":"GetPersonalizedRankingResponse"},
"errors":[
{"shape":"InvalidInputException"},
{"shape":"ResourceNotFoundException"}
],
"idempotent":true
},
"GetRecommendations":{
"name":"GetRecommendations",
"http":{
"method":"POST",
"requestUri":"/recommendations"
},
"input":{"shape":"GetRecommendationsRequest"},
"output":{"shape":"GetRecommendationsResponse"},
"errors":[
{"shape":"InvalidInputException"},
{"shape":"ResourceNotFoundException"}
],
"idempotent":true
}
},
"shapes":{
"Arn":{
"type":"string",
"max":256,
"pattern":"arn:([a-z\\d-]+):personalize:.*:.*:.+"
},
"ErrorMessage":{"type":"string"},
"GetPersonalizedRankingRequest":{
"type":"structure",
"required":[
"campaignArn",
"inputList",
"userId"
],
"members":{
"campaignArn":{"shape":"Arn"},
"inputList":{"shape":"InputList"},
"userId":{"shape":"UserID"}
}
},
"GetPersonalizedRankingResponse":{
"type":"structure",
"members":{
"personalizedRanking":{"shape":"ItemList"}
}
},
"GetRecommendationsRequest":{
"type":"structure",
"required":["campaignArn"],
"members":{
"campaignArn":{"shape":"Arn"},
"itemId":{"shape":"ItemID"},
"userId":{"shape":"UserID"},
"numResults":{"shape":"NumResults"}
}
},
"GetRecommendationsResponse":{
"type":"structure",
"members":{
"itemList":{"shape":"ItemList"}
}
},
"InputList":{
"type":"list",
"member":{"shape":"ItemID"},
"max":100
},
"InvalidInputException":{
"type":"structure",
"members":{
"message":{"shape":"ErrorMessage"}
},
"error":{"httpStatusCode":400},
"exception":true
},
"ItemID":{
"type":"string",
"max":256
},
"ItemList":{
"type":"list",
"member":{"shape":"PredictedItem"},
"max":100
},
"NumResults":{
"type":"integer",
"max":100,
"min":0
},
"PredictedItem":{
"type":"structure",
"members":{
"itemId":{"shape":"ItemID"}
}
},
"ResourceNotFoundException":{
"type":"structure",
"members":{
"message":{"shape":"ErrorMessage"}
},
"error":{"httpStatusCode":404},
"exception":true
},
"UserID":{
"type":"string",
"max":256
}
}
}
@@ -0,0 +1,94 @@
{
"version": "2.0",
"service": "<p/>",
"operations": {
"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>",
"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>"
},
"shapes": {
"Arn": {
"base": null,
"refs": {
"GetPersonalizedRankingRequest$campaignArn": "<p>The Amazon Resource Name (ARN) of the campaign to use for generating the personalized ranking.</p>",
"GetRecommendationsRequest$campaignArn": "<p>The Amazon Resource Name (ARN) of the campaign to use for getting recommendations.</p>"
}
},
"ErrorMessage": {
"base": null,
"refs": {
"InvalidInputException$message": null,
"ResourceNotFoundException$message": null
}
},
"GetPersonalizedRankingRequest": {
"base": null,
"refs": {
}
},
"GetPersonalizedRankingResponse": {
"base": null,
"refs": {
}
},
"GetRecommendationsRequest": {
"base": null,
"refs": {
}
},
"GetRecommendationsResponse": {
"base": null,
"refs": {
}
},
"InputList": {
"base": null,
"refs": {
"GetPersonalizedRankingRequest$inputList": "<p>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.</p>"
}
},
"InvalidInputException": {
"base": "<p>Provide a valid value for the field or parameter.</p>",
"refs": {
}
},
"ItemID": {
"base": null,
"refs": {
"GetRecommendationsRequest$itemId": "<p>The item ID to provide recommendations for.</p> <p>Required for <code>RELATED_ITEMS</code> recipe type.</p>",
"InputList$member": null,
"PredictedItem$itemId": "<p>The recommended item ID.</p>"
}
},
"ItemList": {
"base": null,
"refs": {
"GetPersonalizedRankingResponse$personalizedRanking": "<p>A list of items in order of most likely interest to the user.</p>",
"GetRecommendationsResponse$itemList": "<p>A list of recommendations.</p>"
}
},
"NumResults": {
"base": null,
"refs": {
"GetRecommendationsRequest$numResults": "<p>The number of results to return. The default is 25. The maximum is 100.</p>"
}
},
"PredictedItem": {
"base": "<p>An object that identifies an item.</p> <p>The and APIs return a list of <code>PredictedItem</code>s.</p>",
"refs": {
"ItemList$member": null
}
},
"ResourceNotFoundException": {
"base": "<p>The specified resource does not exist.</p>",
"refs": {
}
},
"UserID": {
"base": null,
"refs": {
"GetPersonalizedRankingRequest$userId": "<p>The user for which you want the campaign to provide a personalized ranking.</p>",
"GetRecommendationsRequest$userId": "<p>The user ID to provide recommendations for.</p> <p>Required for <code>USER_PERSONALIZATION</code> recipe type.</p>"
}
}
}
}
@@ -0,0 +1,5 @@
{
"version": "1.0",
"examples": {
}
}
@@ -0,0 +1,4 @@
{
"pagination": {
}
}