Skip to content

Commit 7ab1028

Browse files
author
AWS
committed
Amazon Redshift Update: LisRecommendations API to fetch Amazon Redshift Advisor recommendations.
1 parent 6a83122 commit 7ab1028

File tree

3 files changed

+189
-0
lines changed

3 files changed

+189
-0
lines changed
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"type": "feature",
3+
"category": "Amazon Redshift",
4+
"contributor": "",
5+
"description": "LisRecommendations API to fetch Amazon Redshift Advisor recommendations."
6+
}

services/redshift/src/main/resources/codegen-resources/paginators-1.json

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -209,6 +209,12 @@
209209
"limit_key": "MaxRecords",
210210
"output_token": "Marker",
211211
"result_key": "ReservedNodeOfferings"
212+
},
213+
"ListRecommendations": {
214+
"input_token": "Marker",
215+
"limit_key": "MaxRecords",
216+
"output_token": "Marker",
217+
"result_key": "Recommendations"
212218
}
213219
}
214220
}

services/redshift/src/main/resources/codegen-resources/service-2.json

Lines changed: 177 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1760,6 +1760,23 @@
17601760
],
17611761
"documentation":"<p>Get the resource policy for a specified resource.</p>"
17621762
},
1763+
"ListRecommendations":{
1764+
"name":"ListRecommendations",
1765+
"http":{
1766+
"method":"POST",
1767+
"requestUri":"/"
1768+
},
1769+
"input":{"shape":"ListRecommendationsMessage"},
1770+
"output":{
1771+
"shape":"ListRecommendationsResult",
1772+
"resultWrapper":"ListRecommendationsResult"
1773+
},
1774+
"errors":[
1775+
{"shape":"ClusterNotFoundFault"},
1776+
{"shape":"UnsupportedOperationFault"}
1777+
],
1778+
"documentation":"<p>List the Amazon Redshift Advisor recommendations for one or multiple Amazon Redshift clusters in an Amazon Web Services account.</p>"
1779+
},
17631780
"ModifyAquaConfiguration":{
17641781
"name":"ModifyAquaConfiguration",
17651782
"http":{
@@ -7264,6 +7281,14 @@
72647281
"min":1,
72657282
"pattern":"^[a-zA-Z0-9_+.#@$-]+$"
72667283
},
7284+
"ImpactRankingType":{
7285+
"type":"string",
7286+
"enum":[
7287+
"HIGH",
7288+
"MEDIUM",
7289+
"LOW"
7290+
]
7291+
},
72677292
"ImportTablesCompleted":{
72687293
"type":"list",
72697294
"member":{"shape":"String"}
@@ -7832,6 +7857,40 @@
78327857
},
78337858
"exception":true
78347859
},
7860+
"ListRecommendationsMessage":{
7861+
"type":"structure",
7862+
"members":{
7863+
"ClusterIdentifier":{
7864+
"shape":"String",
7865+
"documentation":"<p>The unique identifier of the Amazon Redshift cluster for which the list of Advisor recommendations is returned. If the neither the cluster identifier and the cluster namespace ARN parameters are specified, then recommendations for all clusters in the account are returned.</p>"
7866+
},
7867+
"NamespaceArn":{
7868+
"shape":"String",
7869+
"documentation":"<p>The Amazon Redshift cluster namespace Amazon Resource Name (ARN) for which the list of Advisor recommendations is returned. If the neither the cluster identifier and the cluster namespace ARN parameters are specified, then recommendations for all clusters in the account are returned.</p>"
7870+
},
7871+
"MaxRecords":{
7872+
"shape":"IntegerOptional",
7873+
"documentation":"<p>The maximum number of response records to return in each call. If the number of remaining response records exceeds the specified MaxRecords value, a value is returned in a marker field of the response. You can retrieve the next set of records by retrying the command with the returned marker value.</p>"
7874+
},
7875+
"Marker":{
7876+
"shape":"String",
7877+
"documentation":"<p>A value that indicates the starting point for the next set of response records in a subsequent request. If a value is returned in a response, you can retrieve the next set of records by providing this returned marker value in the Marker parameter and retrying the command. If the Marker field is empty, all response records have been retrieved for the request. </p>"
7878+
}
7879+
}
7880+
},
7881+
"ListRecommendationsResult":{
7882+
"type":"structure",
7883+
"members":{
7884+
"Recommendations":{
7885+
"shape":"RecommendationList",
7886+
"documentation":"<p>The Advisor recommendations for action on the Amazon Redshift cluster.</p>"
7887+
},
7888+
"Marker":{
7889+
"shape":"String",
7890+
"documentation":"<p>A value that indicates the starting point for the next set of response records in a subsequent request. If a value is returned in a response, you can retrieve the next set of records by providing this returned marker value in the Marker parameter and retrying the command. If the Marker field is empty, all response records have been retrieved for the request. </p>"
7891+
}
7892+
}
7893+
},
78357894
"LogDestinationType":{
78367895
"type":"string",
78377896
"enum":[
@@ -9013,6 +9072,103 @@
90139072
"Cluster":{"shape":"Cluster"}
90149073
}
90159074
},
9075+
"Recommendation":{
9076+
"type":"structure",
9077+
"members":{
9078+
"Id":{
9079+
"shape":"String",
9080+
"documentation":"<p>A unique identifier of the Advisor recommendation.</p>"
9081+
},
9082+
"ClusterIdentifier":{
9083+
"shape":"String",
9084+
"documentation":"<p>The unique identifier of the cluster for which the recommendation is returned.</p>"
9085+
},
9086+
"NamespaceArn":{
9087+
"shape":"String",
9088+
"documentation":"<p>The Amazon Redshift cluster namespace ARN for which the recommendations is returned.</p>"
9089+
},
9090+
"CreatedAt":{
9091+
"shape":"TStamp",
9092+
"documentation":"<p>The date and time (UTC) that the recommendation was created.</p>"
9093+
},
9094+
"RecommendationType":{
9095+
"shape":"String",
9096+
"documentation":"<p>The type of Advisor recommendation.</p>"
9097+
},
9098+
"Title":{
9099+
"shape":"String",
9100+
"documentation":"<p>The title of the recommendation.</p>"
9101+
},
9102+
"Description":{
9103+
"shape":"String",
9104+
"documentation":"<p>The description of the recommendation.</p>"
9105+
},
9106+
"Observation":{
9107+
"shape":"String",
9108+
"documentation":"<p>The description of what was observed about your cluster.</p>"
9109+
},
9110+
"ImpactRanking":{
9111+
"shape":"ImpactRankingType",
9112+
"documentation":"<p>The scale of the impact that the Advisor recommendation has to the performance and cost of the cluster.</p>"
9113+
},
9114+
"RecommendationText":{
9115+
"shape":"String",
9116+
"documentation":"<p>The description of the recommendation.</p>"
9117+
},
9118+
"RecommendedActions":{
9119+
"shape":"RecommendedActionList",
9120+
"documentation":"<p>List of Amazon Redshift recommended actions.</p>"
9121+
},
9122+
"ReferenceLinks":{
9123+
"shape":"ReferenceLinkList",
9124+
"documentation":"<p>List of helpful links for more information about the Advisor recommendation.</p>"
9125+
}
9126+
},
9127+
"documentation":"<p>An Amazon Redshift Advisor recommended action on the Amazon Redshift cluster.</p>"
9128+
},
9129+
"RecommendationList":{
9130+
"type":"list",
9131+
"member":{
9132+
"shape":"Recommendation",
9133+
"locationName":"Recommendation"
9134+
}
9135+
},
9136+
"RecommendedAction":{
9137+
"type":"structure",
9138+
"members":{
9139+
"Text":{
9140+
"shape":"String",
9141+
"documentation":"<p>The specific instruction about the command.</p>"
9142+
},
9143+
"Database":{
9144+
"shape":"String",
9145+
"documentation":"<p>The database name to perform the action on. Only applicable if the type of command is SQL.</p>"
9146+
},
9147+
"Command":{
9148+
"shape":"String",
9149+
"documentation":"<p>The command to run.</p>"
9150+
},
9151+
"Type":{
9152+
"shape":"RecommendedActionType",
9153+
"documentation":"<p>The type of command.</p>"
9154+
}
9155+
},
9156+
"documentation":"<p>The recommended action from the Amazon Redshift Advisor recommendation.</p>"
9157+
},
9158+
"RecommendedActionList":{
9159+
"type":"list",
9160+
"member":{
9161+
"shape":"RecommendedAction",
9162+
"locationName":"RecommendedAction"
9163+
}
9164+
},
9165+
"RecommendedActionType":{
9166+
"type":"string",
9167+
"enum":[
9168+
"SQL",
9169+
"CLI"
9170+
]
9171+
},
90169172
"RecurringCharge":{
90179173
"type":"structure",
90189174
"members":{
@@ -9128,6 +9284,27 @@
91289284
},
91299285
"exception":true
91309286
},
9287+
"ReferenceLink":{
9288+
"type":"structure",
9289+
"members":{
9290+
"Text":{
9291+
"shape":"String",
9292+
"documentation":"<p>The hyperlink text that describes the link to more information.</p>"
9293+
},
9294+
"Link":{
9295+
"shape":"String",
9296+
"documentation":"<p>The URL address to find more information.</p>"
9297+
}
9298+
},
9299+
"documentation":"<p>A link to an Amazon Redshift Advisor reference for more information about a recommendation.</p>"
9300+
},
9301+
"ReferenceLinkList":{
9302+
"type":"list",
9303+
"member":{
9304+
"shape":"ReferenceLink",
9305+
"locationName":"ReferenceLink"
9306+
}
9307+
},
91319308
"RejectDataShareMessage":{
91329309
"type":"structure",
91339310
"required":["DataShareArn"],

0 commit comments

Comments
 (0)