api.go 64 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823
  1. // THIS FILE IS AUTOMATICALLY GENERATED. DO NOT EDIT.
  2. // Package support provides a client for AWS Support.
  3. package support
  4. import (
  5. "github.com/aws/aws-sdk-go/aws/awsutil"
  6. "github.com/aws/aws-sdk-go/aws/request"
  7. )
  8. const opAddAttachmentsToSet = "AddAttachmentsToSet"
  9. // AddAttachmentsToSetRequest generates a request for the AddAttachmentsToSet operation.
  10. func (c *Support) AddAttachmentsToSetRequest(input *AddAttachmentsToSetInput) (req *request.Request, output *AddAttachmentsToSetOutput) {
  11. op := &request.Operation{
  12. Name: opAddAttachmentsToSet,
  13. HTTPMethod: "POST",
  14. HTTPPath: "/",
  15. }
  16. if input == nil {
  17. input = &AddAttachmentsToSetInput{}
  18. }
  19. req = c.newRequest(op, input, output)
  20. output = &AddAttachmentsToSetOutput{}
  21. req.Data = output
  22. return
  23. }
  24. // Adds one or more attachments to an attachment set. If an AttachmentSetId
  25. // is not specified, a new attachment set is created, and the ID of the set
  26. // is returned in the response. If an AttachmentSetId is specified, the attachments
  27. // are added to the specified set, if it exists.
  28. //
  29. // An attachment set is a temporary container for attachments that are to be
  30. // added to a case or case communication. The set is available for one hour
  31. // after it is created; the ExpiryTime returned in the response indicates when
  32. // the set expires. The maximum number of attachments in a set is 3, and the
  33. // maximum size of any attachment in the set is 5 MB.
  34. func (c *Support) AddAttachmentsToSet(input *AddAttachmentsToSetInput) (*AddAttachmentsToSetOutput, error) {
  35. req, out := c.AddAttachmentsToSetRequest(input)
  36. err := req.Send()
  37. return out, err
  38. }
  39. const opAddCommunicationToCase = "AddCommunicationToCase"
  40. // AddCommunicationToCaseRequest generates a request for the AddCommunicationToCase operation.
  41. func (c *Support) AddCommunicationToCaseRequest(input *AddCommunicationToCaseInput) (req *request.Request, output *AddCommunicationToCaseOutput) {
  42. op := &request.Operation{
  43. Name: opAddCommunicationToCase,
  44. HTTPMethod: "POST",
  45. HTTPPath: "/",
  46. }
  47. if input == nil {
  48. input = &AddCommunicationToCaseInput{}
  49. }
  50. req = c.newRequest(op, input, output)
  51. output = &AddCommunicationToCaseOutput{}
  52. req.Data = output
  53. return
  54. }
  55. // Adds additional customer communication to an AWS Support case. You use the
  56. // CaseId value to identify the case to add communication to. You can list a
  57. // set of email addresses to copy on the communication using the CcEmailAddresses
  58. // value. The CommunicationBody value contains the text of the communication.
  59. //
  60. // The response indicates the success or failure of the request.
  61. //
  62. // This operation implements a subset of the features of the AWS Support Center.
  63. func (c *Support) AddCommunicationToCase(input *AddCommunicationToCaseInput) (*AddCommunicationToCaseOutput, error) {
  64. req, out := c.AddCommunicationToCaseRequest(input)
  65. err := req.Send()
  66. return out, err
  67. }
  68. const opCreateCase = "CreateCase"
  69. // CreateCaseRequest generates a request for the CreateCase operation.
  70. func (c *Support) CreateCaseRequest(input *CreateCaseInput) (req *request.Request, output *CreateCaseOutput) {
  71. op := &request.Operation{
  72. Name: opCreateCase,
  73. HTTPMethod: "POST",
  74. HTTPPath: "/",
  75. }
  76. if input == nil {
  77. input = &CreateCaseInput{}
  78. }
  79. req = c.newRequest(op, input, output)
  80. output = &CreateCaseOutput{}
  81. req.Data = output
  82. return
  83. }
  84. // Creates a new case in the AWS Support Center. This operation is modeled on
  85. // the behavior of the AWS Support Center Create Case (https://console.aws.amazon.com/support/home#/case/create)
  86. // page. Its parameters require you to specify the following information:
  87. //
  88. // IssueType. The type of issue for the case. You can specify either "customer-service"
  89. // or "technical." If you do not indicate a value, the default is "technical."
  90. // ServiceCode. The code for an AWS service. You obtain the ServiceCode by
  91. // calling DescribeServices. CategoryCode. The category for the service defined
  92. // for the ServiceCode value. You also obtain the category code for a service
  93. // by calling DescribeServices. Each AWS service defines its own set of category
  94. // codes. SeverityCode. A value that indicates the urgency of the case, which
  95. // in turn determines the response time according to your service level agreement
  96. // with AWS Support. You obtain the SeverityCode by calling DescribeSeverityLevels.
  97. // Subject. The Subject field on the AWS Support Center Create Case (https://console.aws.amazon.com/support/home#/case/create)
  98. // page. CommunicationBody. The Description field on the AWS Support Center
  99. // Create Case (https://console.aws.amazon.com/support/home#/case/create) page.
  100. // AttachmentSetId. The ID of a set of attachments that has been created by
  101. // using AddAttachmentsToSet. Language. The human language in which AWS Support
  102. // handles the case. English and Japanese are currently supported. CcEmailAddresses.
  103. // The AWS Support Center CC field on the Create Case (https://console.aws.amazon.com/support/home#/case/create)
  104. // page. You can list email addresses to be copied on any correspondence about
  105. // the case. The account that opens the case is already identified by passing
  106. // the AWS Credentials in the HTTP POST method or in a method or function call
  107. // from one of the programming languages supported by an AWS SDK (http://aws.amazon.com/tools/).
  108. // To add additional communication or attachments to an existing case, use
  109. // AddCommunicationToCase.
  110. //
  111. // A successful CreateCase request returns an AWS Support case number. Case
  112. // numbers are used by the DescribeCases operation to retrieve existing AWS
  113. // Support cases.
  114. func (c *Support) CreateCase(input *CreateCaseInput) (*CreateCaseOutput, error) {
  115. req, out := c.CreateCaseRequest(input)
  116. err := req.Send()
  117. return out, err
  118. }
  119. const opDescribeAttachment = "DescribeAttachment"
  120. // DescribeAttachmentRequest generates a request for the DescribeAttachment operation.
  121. func (c *Support) DescribeAttachmentRequest(input *DescribeAttachmentInput) (req *request.Request, output *DescribeAttachmentOutput) {
  122. op := &request.Operation{
  123. Name: opDescribeAttachment,
  124. HTTPMethod: "POST",
  125. HTTPPath: "/",
  126. }
  127. if input == nil {
  128. input = &DescribeAttachmentInput{}
  129. }
  130. req = c.newRequest(op, input, output)
  131. output = &DescribeAttachmentOutput{}
  132. req.Data = output
  133. return
  134. }
  135. // Returns the attachment that has the specified ID. Attachment IDs are generated
  136. // by the case management system when you add an attachment to a case or case
  137. // communication. Attachment IDs are returned in the AttachmentDetails objects
  138. // that are returned by the DescribeCommunications operation.
  139. func (c *Support) DescribeAttachment(input *DescribeAttachmentInput) (*DescribeAttachmentOutput, error) {
  140. req, out := c.DescribeAttachmentRequest(input)
  141. err := req.Send()
  142. return out, err
  143. }
  144. const opDescribeCases = "DescribeCases"
  145. // DescribeCasesRequest generates a request for the DescribeCases operation.
  146. func (c *Support) DescribeCasesRequest(input *DescribeCasesInput) (req *request.Request, output *DescribeCasesOutput) {
  147. op := &request.Operation{
  148. Name: opDescribeCases,
  149. HTTPMethod: "POST",
  150. HTTPPath: "/",
  151. Paginator: &request.Paginator{
  152. InputTokens: []string{"nextToken"},
  153. OutputTokens: []string{"nextToken"},
  154. LimitToken: "maxResults",
  155. TruncationToken: "",
  156. },
  157. }
  158. if input == nil {
  159. input = &DescribeCasesInput{}
  160. }
  161. req = c.newRequest(op, input, output)
  162. output = &DescribeCasesOutput{}
  163. req.Data = output
  164. return
  165. }
  166. // Returns a list of cases that you specify by passing one or more case IDs.
  167. // In addition, you can filter the cases by date by setting values for the AfterTime
  168. // and BeforeTime request parameters. You can set values for the IncludeResolvedCases
  169. // and IncludeCommunications request parameters to control how much information
  170. // is returned.
  171. //
  172. // Case data is available for 12 months after creation. If a case was created
  173. // more than 12 months ago, a request for data might cause an error.
  174. //
  175. // The response returns the following in JSON format:
  176. //
  177. // One or more CaseDetails data types. One or more NextToken values, which
  178. // specify where to paginate the returned records represented by the CaseDetails
  179. // objects.
  180. func (c *Support) DescribeCases(input *DescribeCasesInput) (*DescribeCasesOutput, error) {
  181. req, out := c.DescribeCasesRequest(input)
  182. err := req.Send()
  183. return out, err
  184. }
  185. func (c *Support) DescribeCasesPages(input *DescribeCasesInput, fn func(p *DescribeCasesOutput, lastPage bool) (shouldContinue bool)) error {
  186. page, _ := c.DescribeCasesRequest(input)
  187. return page.EachPage(func(p interface{}, lastPage bool) bool {
  188. return fn(p.(*DescribeCasesOutput), lastPage)
  189. })
  190. }
  191. const opDescribeCommunications = "DescribeCommunications"
  192. // DescribeCommunicationsRequest generates a request for the DescribeCommunications operation.
  193. func (c *Support) DescribeCommunicationsRequest(input *DescribeCommunicationsInput) (req *request.Request, output *DescribeCommunicationsOutput) {
  194. op := &request.Operation{
  195. Name: opDescribeCommunications,
  196. HTTPMethod: "POST",
  197. HTTPPath: "/",
  198. Paginator: &request.Paginator{
  199. InputTokens: []string{"nextToken"},
  200. OutputTokens: []string{"nextToken"},
  201. LimitToken: "maxResults",
  202. TruncationToken: "",
  203. },
  204. }
  205. if input == nil {
  206. input = &DescribeCommunicationsInput{}
  207. }
  208. req = c.newRequest(op, input, output)
  209. output = &DescribeCommunicationsOutput{}
  210. req.Data = output
  211. return
  212. }
  213. // Returns communications (and attachments) for one or more support cases. You
  214. // can use the AfterTime and BeforeTime parameters to filter by date. You can
  215. // use the CaseId parameter to restrict the results to a particular case.
  216. //
  217. // Case data is available for 12 months after creation. If a case was created
  218. // more than 12 months ago, a request for data might cause an error.
  219. //
  220. // You can use the MaxResults and NextToken parameters to control the pagination
  221. // of the result set. Set MaxResults to the number of cases you want displayed
  222. // on each page, and use NextToken to specify the resumption of pagination.
  223. func (c *Support) DescribeCommunications(input *DescribeCommunicationsInput) (*DescribeCommunicationsOutput, error) {
  224. req, out := c.DescribeCommunicationsRequest(input)
  225. err := req.Send()
  226. return out, err
  227. }
  228. func (c *Support) DescribeCommunicationsPages(input *DescribeCommunicationsInput, fn func(p *DescribeCommunicationsOutput, lastPage bool) (shouldContinue bool)) error {
  229. page, _ := c.DescribeCommunicationsRequest(input)
  230. return page.EachPage(func(p interface{}, lastPage bool) bool {
  231. return fn(p.(*DescribeCommunicationsOutput), lastPage)
  232. })
  233. }
  234. const opDescribeServices = "DescribeServices"
  235. // DescribeServicesRequest generates a request for the DescribeServices operation.
  236. func (c *Support) DescribeServicesRequest(input *DescribeServicesInput) (req *request.Request, output *DescribeServicesOutput) {
  237. op := &request.Operation{
  238. Name: opDescribeServices,
  239. HTTPMethod: "POST",
  240. HTTPPath: "/",
  241. }
  242. if input == nil {
  243. input = &DescribeServicesInput{}
  244. }
  245. req = c.newRequest(op, input, output)
  246. output = &DescribeServicesOutput{}
  247. req.Data = output
  248. return
  249. }
  250. // Returns the current list of AWS services and a list of service categories
  251. // that applies to each one. You then use service names and categories in your
  252. // CreateCase requests. Each AWS service has its own set of categories.
  253. //
  254. // The service codes and category codes correspond to the values that are displayed
  255. // in the Service and Category drop-down lists on the AWS Support Center Create
  256. // Case (https://console.aws.amazon.com/support/home#/case/create) page. The
  257. // values in those fields, however, do not necessarily match the service codes
  258. // and categories returned by the DescribeServices request. Always use the service
  259. // codes and categories obtained programmatically. This practice ensures that
  260. // you always have the most recent set of service and category codes.
  261. func (c *Support) DescribeServices(input *DescribeServicesInput) (*DescribeServicesOutput, error) {
  262. req, out := c.DescribeServicesRequest(input)
  263. err := req.Send()
  264. return out, err
  265. }
  266. const opDescribeSeverityLevels = "DescribeSeverityLevels"
  267. // DescribeSeverityLevelsRequest generates a request for the DescribeSeverityLevels operation.
  268. func (c *Support) DescribeSeverityLevelsRequest(input *DescribeSeverityLevelsInput) (req *request.Request, output *DescribeSeverityLevelsOutput) {
  269. op := &request.Operation{
  270. Name: opDescribeSeverityLevels,
  271. HTTPMethod: "POST",
  272. HTTPPath: "/",
  273. }
  274. if input == nil {
  275. input = &DescribeSeverityLevelsInput{}
  276. }
  277. req = c.newRequest(op, input, output)
  278. output = &DescribeSeverityLevelsOutput{}
  279. req.Data = output
  280. return
  281. }
  282. // Returns the list of severity levels that you can assign to an AWS Support
  283. // case. The severity level for a case is also a field in the CaseDetails data
  284. // type included in any CreateCase request.
  285. func (c *Support) DescribeSeverityLevels(input *DescribeSeverityLevelsInput) (*DescribeSeverityLevelsOutput, error) {
  286. req, out := c.DescribeSeverityLevelsRequest(input)
  287. err := req.Send()
  288. return out, err
  289. }
  290. const opDescribeTrustedAdvisorCheckRefreshStatuses = "DescribeTrustedAdvisorCheckRefreshStatuses"
  291. // DescribeTrustedAdvisorCheckRefreshStatusesRequest generates a request for the DescribeTrustedAdvisorCheckRefreshStatuses operation.
  292. func (c *Support) DescribeTrustedAdvisorCheckRefreshStatusesRequest(input *DescribeTrustedAdvisorCheckRefreshStatusesInput) (req *request.Request, output *DescribeTrustedAdvisorCheckRefreshStatusesOutput) {
  293. op := &request.Operation{
  294. Name: opDescribeTrustedAdvisorCheckRefreshStatuses,
  295. HTTPMethod: "POST",
  296. HTTPPath: "/",
  297. }
  298. if input == nil {
  299. input = &DescribeTrustedAdvisorCheckRefreshStatusesInput{}
  300. }
  301. req = c.newRequest(op, input, output)
  302. output = &DescribeTrustedAdvisorCheckRefreshStatusesOutput{}
  303. req.Data = output
  304. return
  305. }
  306. // Returns the refresh status of the Trusted Advisor checks that have the specified
  307. // check IDs. Check IDs can be obtained by calling DescribeTrustedAdvisorChecks.
  308. func (c *Support) DescribeTrustedAdvisorCheckRefreshStatuses(input *DescribeTrustedAdvisorCheckRefreshStatusesInput) (*DescribeTrustedAdvisorCheckRefreshStatusesOutput, error) {
  309. req, out := c.DescribeTrustedAdvisorCheckRefreshStatusesRequest(input)
  310. err := req.Send()
  311. return out, err
  312. }
  313. const opDescribeTrustedAdvisorCheckResult = "DescribeTrustedAdvisorCheckResult"
  314. // DescribeTrustedAdvisorCheckResultRequest generates a request for the DescribeTrustedAdvisorCheckResult operation.
  315. func (c *Support) DescribeTrustedAdvisorCheckResultRequest(input *DescribeTrustedAdvisorCheckResultInput) (req *request.Request, output *DescribeTrustedAdvisorCheckResultOutput) {
  316. op := &request.Operation{
  317. Name: opDescribeTrustedAdvisorCheckResult,
  318. HTTPMethod: "POST",
  319. HTTPPath: "/",
  320. }
  321. if input == nil {
  322. input = &DescribeTrustedAdvisorCheckResultInput{}
  323. }
  324. req = c.newRequest(op, input, output)
  325. output = &DescribeTrustedAdvisorCheckResultOutput{}
  326. req.Data = output
  327. return
  328. }
  329. // Returns the results of the Trusted Advisor check that has the specified check
  330. // ID. Check IDs can be obtained by calling DescribeTrustedAdvisorChecks.
  331. //
  332. // The response contains a TrustedAdvisorCheckResult object, which contains
  333. // these three objects:
  334. //
  335. // TrustedAdvisorCategorySpecificSummary TrustedAdvisorResourceDetail TrustedAdvisorResourcesSummary
  336. // In addition, the response contains these fields:
  337. //
  338. // Status. The alert status of the check: "ok" (green), "warning" (yellow),
  339. // "error" (red), or "not_available". Timestamp. The time of the last refresh
  340. // of the check. CheckId. The unique identifier for the check.
  341. func (c *Support) DescribeTrustedAdvisorCheckResult(input *DescribeTrustedAdvisorCheckResultInput) (*DescribeTrustedAdvisorCheckResultOutput, error) {
  342. req, out := c.DescribeTrustedAdvisorCheckResultRequest(input)
  343. err := req.Send()
  344. return out, err
  345. }
  346. const opDescribeTrustedAdvisorCheckSummaries = "DescribeTrustedAdvisorCheckSummaries"
  347. // DescribeTrustedAdvisorCheckSummariesRequest generates a request for the DescribeTrustedAdvisorCheckSummaries operation.
  348. func (c *Support) DescribeTrustedAdvisorCheckSummariesRequest(input *DescribeTrustedAdvisorCheckSummariesInput) (req *request.Request, output *DescribeTrustedAdvisorCheckSummariesOutput) {
  349. op := &request.Operation{
  350. Name: opDescribeTrustedAdvisorCheckSummaries,
  351. HTTPMethod: "POST",
  352. HTTPPath: "/",
  353. }
  354. if input == nil {
  355. input = &DescribeTrustedAdvisorCheckSummariesInput{}
  356. }
  357. req = c.newRequest(op, input, output)
  358. output = &DescribeTrustedAdvisorCheckSummariesOutput{}
  359. req.Data = output
  360. return
  361. }
  362. // Returns the summaries of the results of the Trusted Advisor checks that have
  363. // the specified check IDs. Check IDs can be obtained by calling DescribeTrustedAdvisorChecks.
  364. //
  365. // The response contains an array of TrustedAdvisorCheckSummary objects.
  366. func (c *Support) DescribeTrustedAdvisorCheckSummaries(input *DescribeTrustedAdvisorCheckSummariesInput) (*DescribeTrustedAdvisorCheckSummariesOutput, error) {
  367. req, out := c.DescribeTrustedAdvisorCheckSummariesRequest(input)
  368. err := req.Send()
  369. return out, err
  370. }
  371. const opDescribeTrustedAdvisorChecks = "DescribeTrustedAdvisorChecks"
  372. // DescribeTrustedAdvisorChecksRequest generates a request for the DescribeTrustedAdvisorChecks operation.
  373. func (c *Support) DescribeTrustedAdvisorChecksRequest(input *DescribeTrustedAdvisorChecksInput) (req *request.Request, output *DescribeTrustedAdvisorChecksOutput) {
  374. op := &request.Operation{
  375. Name: opDescribeTrustedAdvisorChecks,
  376. HTTPMethod: "POST",
  377. HTTPPath: "/",
  378. }
  379. if input == nil {
  380. input = &DescribeTrustedAdvisorChecksInput{}
  381. }
  382. req = c.newRequest(op, input, output)
  383. output = &DescribeTrustedAdvisorChecksOutput{}
  384. req.Data = output
  385. return
  386. }
  387. // Returns information about all available Trusted Advisor checks, including
  388. // name, ID, category, description, and metadata. You must specify a language
  389. // code; English ("en") and Japanese ("ja") are currently supported. The response
  390. // contains a TrustedAdvisorCheckDescription for each check.
  391. func (c *Support) DescribeTrustedAdvisorChecks(input *DescribeTrustedAdvisorChecksInput) (*DescribeTrustedAdvisorChecksOutput, error) {
  392. req, out := c.DescribeTrustedAdvisorChecksRequest(input)
  393. err := req.Send()
  394. return out, err
  395. }
  396. const opRefreshTrustedAdvisorCheck = "RefreshTrustedAdvisorCheck"
  397. // RefreshTrustedAdvisorCheckRequest generates a request for the RefreshTrustedAdvisorCheck operation.
  398. func (c *Support) RefreshTrustedAdvisorCheckRequest(input *RefreshTrustedAdvisorCheckInput) (req *request.Request, output *RefreshTrustedAdvisorCheckOutput) {
  399. op := &request.Operation{
  400. Name: opRefreshTrustedAdvisorCheck,
  401. HTTPMethod: "POST",
  402. HTTPPath: "/",
  403. }
  404. if input == nil {
  405. input = &RefreshTrustedAdvisorCheckInput{}
  406. }
  407. req = c.newRequest(op, input, output)
  408. output = &RefreshTrustedAdvisorCheckOutput{}
  409. req.Data = output
  410. return
  411. }
  412. // Requests a refresh of the Trusted Advisor check that has the specified check
  413. // ID. Check IDs can be obtained by calling DescribeTrustedAdvisorChecks.
  414. //
  415. // The response contains a TrustedAdvisorCheckRefreshStatus object, which contains
  416. // these fields:
  417. //
  418. // Status. The refresh status of the check: "none", "enqueued", "processing",
  419. // "success", or "abandoned". MillisUntilNextRefreshable. The amount of time,
  420. // in milliseconds, until the check is eligible for refresh. CheckId. The unique
  421. // identifier for the check.
  422. func (c *Support) RefreshTrustedAdvisorCheck(input *RefreshTrustedAdvisorCheckInput) (*RefreshTrustedAdvisorCheckOutput, error) {
  423. req, out := c.RefreshTrustedAdvisorCheckRequest(input)
  424. err := req.Send()
  425. return out, err
  426. }
  427. const opResolveCase = "ResolveCase"
  428. // ResolveCaseRequest generates a request for the ResolveCase operation.
  429. func (c *Support) ResolveCaseRequest(input *ResolveCaseInput) (req *request.Request, output *ResolveCaseOutput) {
  430. op := &request.Operation{
  431. Name: opResolveCase,
  432. HTTPMethod: "POST",
  433. HTTPPath: "/",
  434. }
  435. if input == nil {
  436. input = &ResolveCaseInput{}
  437. }
  438. req = c.newRequest(op, input, output)
  439. output = &ResolveCaseOutput{}
  440. req.Data = output
  441. return
  442. }
  443. // Takes a CaseId and returns the initial state of the case along with the state
  444. // of the case after the call to ResolveCase completed.
  445. func (c *Support) ResolveCase(input *ResolveCaseInput) (*ResolveCaseOutput, error) {
  446. req, out := c.ResolveCaseRequest(input)
  447. err := req.Send()
  448. return out, err
  449. }
  450. type AddAttachmentsToSetInput struct {
  451. // The ID of the attachment set. If an AttachmentSetId is not specified, a new
  452. // attachment set is created, and the ID of the set is returned in the response.
  453. // If an AttachmentSetId is specified, the attachments are added to the specified
  454. // set, if it exists.
  455. AttachmentSetId *string `locationName:"attachmentSetId" type:"string"`
  456. // One or more attachments to add to the set. The limit is 3 attachments per
  457. // set, and the size limit is 5 MB per attachment.
  458. Attachments []*Attachment `locationName:"attachments" type:"list" required:"true"`
  459. metadataAddAttachmentsToSetInput `json:"-" xml:"-"`
  460. }
  461. type metadataAddAttachmentsToSetInput struct {
  462. SDKShapeTraits bool `type:"structure"`
  463. }
  464. // String returns the string representation
  465. func (s AddAttachmentsToSetInput) String() string {
  466. return awsutil.Prettify(s)
  467. }
  468. // GoString returns the string representation
  469. func (s AddAttachmentsToSetInput) GoString() string {
  470. return s.String()
  471. }
  472. // The ID and expiry time of the attachment set returned by the AddAttachmentsToSet
  473. // operation.
  474. type AddAttachmentsToSetOutput struct {
  475. // The ID of the attachment set. If an AttachmentSetId was not specified, a
  476. // new attachment set is created, and the ID of the set is returned in the response.
  477. // If an AttachmentSetId was specified, the attachments are added to the specified
  478. // set, if it exists.
  479. AttachmentSetId *string `locationName:"attachmentSetId" type:"string"`
  480. // The time and date when the attachment set expires.
  481. ExpiryTime *string `locationName:"expiryTime" type:"string"`
  482. metadataAddAttachmentsToSetOutput `json:"-" xml:"-"`
  483. }
  484. type metadataAddAttachmentsToSetOutput struct {
  485. SDKShapeTraits bool `type:"structure"`
  486. }
  487. // String returns the string representation
  488. func (s AddAttachmentsToSetOutput) String() string {
  489. return awsutil.Prettify(s)
  490. }
  491. // GoString returns the string representation
  492. func (s AddAttachmentsToSetOutput) GoString() string {
  493. return s.String()
  494. }
  495. // To be written.
  496. type AddCommunicationToCaseInput struct {
  497. // The ID of a set of one or more attachments for the communication to add to
  498. // the case. Create the set by calling AddAttachmentsToSet
  499. AttachmentSetId *string `locationName:"attachmentSetId" type:"string"`
  500. // The AWS Support case ID requested or returned in the call. The case ID is
  501. // an alphanumeric string formatted as shown in this example: case-12345678910-2013-c4c1d2bf33c5cf47
  502. CaseId *string `locationName:"caseId" type:"string"`
  503. // The email addresses in the CC line of an email to be added to the support
  504. // case.
  505. CcEmailAddresses []*string `locationName:"ccEmailAddresses" type:"list"`
  506. // The body of an email communication to add to the support case.
  507. CommunicationBody *string `locationName:"communicationBody" type:"string" required:"true"`
  508. metadataAddCommunicationToCaseInput `json:"-" xml:"-"`
  509. }
  510. type metadataAddCommunicationToCaseInput struct {
  511. SDKShapeTraits bool `type:"structure"`
  512. }
  513. // String returns the string representation
  514. func (s AddCommunicationToCaseInput) String() string {
  515. return awsutil.Prettify(s)
  516. }
  517. // GoString returns the string representation
  518. func (s AddCommunicationToCaseInput) GoString() string {
  519. return s.String()
  520. }
  521. // The result of the AddCommunicationToCase operation.
  522. type AddCommunicationToCaseOutput struct {
  523. // True if AddCommunicationToCase succeeds. Otherwise, returns an error.
  524. Result *bool `locationName:"result" type:"boolean"`
  525. metadataAddCommunicationToCaseOutput `json:"-" xml:"-"`
  526. }
  527. type metadataAddCommunicationToCaseOutput struct {
  528. SDKShapeTraits bool `type:"structure"`
  529. }
  530. // String returns the string representation
  531. func (s AddCommunicationToCaseOutput) String() string {
  532. return awsutil.Prettify(s)
  533. }
  534. // GoString returns the string representation
  535. func (s AddCommunicationToCaseOutput) GoString() string {
  536. return s.String()
  537. }
  538. // An attachment to a case communication. The attachment consists of the file
  539. // name and the content of the file.
  540. type Attachment struct {
  541. // The content of the attachment file.
  542. Data []byte `locationName:"data" type:"blob"`
  543. // The name of the attachment file.
  544. FileName *string `locationName:"fileName" type:"string"`
  545. metadataAttachment `json:"-" xml:"-"`
  546. }
  547. type metadataAttachment struct {
  548. SDKShapeTraits bool `type:"structure"`
  549. }
  550. // String returns the string representation
  551. func (s Attachment) String() string {
  552. return awsutil.Prettify(s)
  553. }
  554. // GoString returns the string representation
  555. func (s Attachment) GoString() string {
  556. return s.String()
  557. }
  558. // The file name and ID of an attachment to a case communication. You can use
  559. // the ID to retrieve the attachment with the DescribeAttachment operation.
  560. type AttachmentDetails struct {
  561. // The ID of the attachment.
  562. AttachmentId *string `locationName:"attachmentId" type:"string"`
  563. // The file name of the attachment.
  564. FileName *string `locationName:"fileName" type:"string"`
  565. metadataAttachmentDetails `json:"-" xml:"-"`
  566. }
  567. type metadataAttachmentDetails struct {
  568. SDKShapeTraits bool `type:"structure"`
  569. }
  570. // String returns the string representation
  571. func (s AttachmentDetails) String() string {
  572. return awsutil.Prettify(s)
  573. }
  574. // GoString returns the string representation
  575. func (s AttachmentDetails) GoString() string {
  576. return s.String()
  577. }
  578. // A JSON-formatted object that contains the metadata for a support case. It
  579. // is contained the response from a DescribeCases request. CaseDetails contains
  580. // the following fields:
  581. //
  582. // CaseID. The AWS Support case ID requested or returned in the call. The
  583. // case ID is an alphanumeric string formatted as shown in this example: case-12345678910-2013-c4c1d2bf33c5cf47.
  584. // CategoryCode. The category of problem for the AWS Support case. Corresponds
  585. // to the CategoryCode values returned by a call to DescribeServices. DisplayId.
  586. // The identifier for the case on pages in the AWS Support Center. Language.
  587. // The ISO 639-1 code for the language in which AWS provides support. AWS Support
  588. // currently supports English ("en") and Japanese ("ja"). Language parameters
  589. // must be passed explicitly for operations that take them. RecentCommunications.
  590. // One or more Communication objects. Fields of these objects are Attachments,
  591. // Body, CaseId, SubmittedBy, and TimeCreated. NextToken. A resumption point
  592. // for pagination. ServiceCode. The identifier for the AWS service that corresponds
  593. // to the service code defined in the call to DescribeServices. SeverityCode.
  594. // The severity code assigned to the case. Contains one of the values returned
  595. // by the call to DescribeSeverityLevels. Status. The status of the case in
  596. // the AWS Support Center. Subject. The subject line of the case. SubmittedBy.
  597. // The email address of the account that submitted the case. TimeCreated. The
  598. // time the case was created, in ISO-8601 format.
  599. type CaseDetails struct {
  600. // The AWS Support case ID requested or returned in the call. The case ID is
  601. // an alphanumeric string formatted as shown in this example: case-12345678910-2013-c4c1d2bf33c5cf47
  602. CaseId *string `locationName:"caseId" type:"string"`
  603. // The category of problem for the AWS Support case.
  604. CategoryCode *string `locationName:"categoryCode" type:"string"`
  605. // The email addresses that receive copies of communication about the case.
  606. CcEmailAddresses []*string `locationName:"ccEmailAddresses" type:"list"`
  607. // The ID displayed for the case in the AWS Support Center. This is a numeric
  608. // string.
  609. DisplayId *string `locationName:"displayId" type:"string"`
  610. // The ISO 639-1 code for the language in which AWS provides support. AWS Support
  611. // currently supports English ("en") and Japanese ("ja"). Language parameters
  612. // must be passed explicitly for operations that take them.
  613. Language *string `locationName:"language" type:"string"`
  614. // The five most recent communications between you and AWS Support Center, including
  615. // the IDs of any attachments to the communications. Also includes a nextToken
  616. // that you can use to retrieve earlier communications.
  617. RecentCommunications *RecentCaseCommunications `locationName:"recentCommunications" type:"structure"`
  618. // The code for the AWS service returned by the call to DescribeServices.
  619. ServiceCode *string `locationName:"serviceCode" type:"string"`
  620. // The code for the severity level returned by the call to DescribeSeverityLevels.
  621. SeverityCode *string `locationName:"severityCode" type:"string"`
  622. // The status of the case.
  623. Status *string `locationName:"status" type:"string"`
  624. // The subject line for the case in the AWS Support Center.
  625. Subject *string `locationName:"subject" type:"string"`
  626. // The email address of the account that submitted the case.
  627. SubmittedBy *string `locationName:"submittedBy" type:"string"`
  628. // The time that the case was case created in the AWS Support Center.
  629. TimeCreated *string `locationName:"timeCreated" type:"string"`
  630. metadataCaseDetails `json:"-" xml:"-"`
  631. }
  632. type metadataCaseDetails struct {
  633. SDKShapeTraits bool `type:"structure"`
  634. }
  635. // String returns the string representation
  636. func (s CaseDetails) String() string {
  637. return awsutil.Prettify(s)
  638. }
  639. // GoString returns the string representation
  640. func (s CaseDetails) GoString() string {
  641. return s.String()
  642. }
  643. // A JSON-formatted name/value pair that represents the category name and category
  644. // code of the problem, selected from the DescribeServices response for each
  645. // AWS service.
  646. type Category struct {
  647. // The category code for the support case.
  648. Code *string `locationName:"code" type:"string"`
  649. // The category name for the support case.
  650. Name *string `locationName:"name" type:"string"`
  651. metadataCategory `json:"-" xml:"-"`
  652. }
  653. type metadataCategory struct {
  654. SDKShapeTraits bool `type:"structure"`
  655. }
  656. // String returns the string representation
  657. func (s Category) String() string {
  658. return awsutil.Prettify(s)
  659. }
  660. // GoString returns the string representation
  661. func (s Category) GoString() string {
  662. return s.String()
  663. }
  664. // A communication associated with an AWS Support case. The communication consists
  665. // of the case ID, the message body, attachment information, the account email
  666. // address, and the date and time of the communication.
  667. type Communication struct {
  668. // Information about the attachments to the case communication.
  669. AttachmentSet []*AttachmentDetails `locationName:"attachmentSet" type:"list"`
  670. // The text of the communication between the customer and AWS Support.
  671. Body *string `locationName:"body" type:"string"`
  672. // The AWS Support case ID requested or returned in the call. The case ID is
  673. // an alphanumeric string formatted as shown in this example: case-12345678910-2013-c4c1d2bf33c5cf47
  674. CaseId *string `locationName:"caseId" type:"string"`
  675. // The email address of the account that submitted the AWS Support case.
  676. SubmittedBy *string `locationName:"submittedBy" type:"string"`
  677. // The time the communication was created.
  678. TimeCreated *string `locationName:"timeCreated" type:"string"`
  679. metadataCommunication `json:"-" xml:"-"`
  680. }
  681. type metadataCommunication struct {
  682. SDKShapeTraits bool `type:"structure"`
  683. }
  684. // String returns the string representation
  685. func (s Communication) String() string {
  686. return awsutil.Prettify(s)
  687. }
  688. // GoString returns the string representation
  689. func (s Communication) GoString() string {
  690. return s.String()
  691. }
  692. type CreateCaseInput struct {
  693. // The ID of a set of one or more attachments for the case. Create the set by
  694. // using AddAttachmentsToSet.
  695. AttachmentSetId *string `locationName:"attachmentSetId" type:"string"`
  696. // The category of problem for the AWS Support case.
  697. CategoryCode *string `locationName:"categoryCode" type:"string"`
  698. // A list of email addresses that AWS Support copies on case correspondence.
  699. CcEmailAddresses []*string `locationName:"ccEmailAddresses" type:"list"`
  700. // The communication body text when you create an AWS Support case by calling
  701. // CreateCase.
  702. CommunicationBody *string `locationName:"communicationBody" type:"string" required:"true"`
  703. // The type of issue for the case. You can specify either "customer-service"
  704. // or "technical." If you do not indicate a value, the default is "technical."
  705. IssueType *string `locationName:"issueType" type:"string"`
  706. // The ISO 639-1 code for the language in which AWS provides support. AWS Support
  707. // currently supports English ("en") and Japanese ("ja"). Language parameters
  708. // must be passed explicitly for operations that take them.
  709. Language *string `locationName:"language" type:"string"`
  710. // The code for the AWS service returned by the call to DescribeServices.
  711. ServiceCode *string `locationName:"serviceCode" type:"string"`
  712. // The code for the severity level returned by the call to DescribeSeverityLevels.
  713. //
  714. // The availability of severity levels depends on each customer's support subscription.
  715. // In other words, your subscription may not necessarily require the urgent
  716. // level of response time.
  717. SeverityCode *string `locationName:"severityCode" type:"string"`
  718. // The title of the AWS Support case.
  719. Subject *string `locationName:"subject" type:"string" required:"true"`
  720. metadataCreateCaseInput `json:"-" xml:"-"`
  721. }
  722. type metadataCreateCaseInput struct {
  723. SDKShapeTraits bool `type:"structure"`
  724. }
  725. // String returns the string representation
  726. func (s CreateCaseInput) String() string {
  727. return awsutil.Prettify(s)
  728. }
  729. // GoString returns the string representation
  730. func (s CreateCaseInput) GoString() string {
  731. return s.String()
  732. }
  733. // The AWS Support case ID returned by a successful completion of the CreateCase
  734. // operation.
  735. type CreateCaseOutput struct {
  736. // The AWS Support case ID requested or returned in the call. The case ID is
  737. // an alphanumeric string formatted as shown in this example: case-12345678910-2013-c4c1d2bf33c5cf47
  738. CaseId *string `locationName:"caseId" type:"string"`
  739. metadataCreateCaseOutput `json:"-" xml:"-"`
  740. }
  741. type metadataCreateCaseOutput struct {
  742. SDKShapeTraits bool `type:"structure"`
  743. }
  744. // String returns the string representation
  745. func (s CreateCaseOutput) String() string {
  746. return awsutil.Prettify(s)
  747. }
  748. // GoString returns the string representation
  749. func (s CreateCaseOutput) GoString() string {
  750. return s.String()
  751. }
  752. type DescribeAttachmentInput struct {
  753. // The ID of the attachment to return. Attachment IDs are returned by the DescribeCommunications
  754. // operation.
  755. AttachmentId *string `locationName:"attachmentId" type:"string" required:"true"`
  756. metadataDescribeAttachmentInput `json:"-" xml:"-"`
  757. }
  758. type metadataDescribeAttachmentInput struct {
  759. SDKShapeTraits bool `type:"structure"`
  760. }
  761. // String returns the string representation
  762. func (s DescribeAttachmentInput) String() string {
  763. return awsutil.Prettify(s)
  764. }
  765. // GoString returns the string representation
  766. func (s DescribeAttachmentInput) GoString() string {
  767. return s.String()
  768. }
  769. // The content and file name of the attachment returned by the DescribeAttachment
  770. // operation.
  771. type DescribeAttachmentOutput struct {
  772. // The attachment content and file name.
  773. Attachment *Attachment `locationName:"attachment" type:"structure"`
  774. metadataDescribeAttachmentOutput `json:"-" xml:"-"`
  775. }
  776. type metadataDescribeAttachmentOutput struct {
  777. SDKShapeTraits bool `type:"structure"`
  778. }
  779. // String returns the string representation
  780. func (s DescribeAttachmentOutput) String() string {
  781. return awsutil.Prettify(s)
  782. }
  783. // GoString returns the string representation
  784. func (s DescribeAttachmentOutput) GoString() string {
  785. return s.String()
  786. }
  787. type DescribeCasesInput struct {
  788. // The start date for a filtered date search on support case communications.
  789. // Case communications are available for 12 months after creation.
  790. AfterTime *string `locationName:"afterTime" type:"string"`
  791. // The end date for a filtered date search on support case communications. Case
  792. // communications are available for 12 months after creation.
  793. BeforeTime *string `locationName:"beforeTime" type:"string"`
  794. // A list of ID numbers of the support cases you want returned. The maximum
  795. // number of cases is 100.
  796. CaseIdList []*string `locationName:"caseIdList" type:"list"`
  797. // The ID displayed for a case in the AWS Support Center user interface.
  798. DisplayId *string `locationName:"displayId" type:"string"`
  799. // Specifies whether communications should be included in the DescribeCases
  800. // results. The default is true.
  801. IncludeCommunications *bool `locationName:"includeCommunications" type:"boolean"`
  802. // Specifies whether resolved support cases should be included in the DescribeCases
  803. // results. The default is false.
  804. IncludeResolvedCases *bool `locationName:"includeResolvedCases" type:"boolean"`
  805. // The ISO 639-1 code for the language in which AWS provides support. AWS Support
  806. // currently supports English ("en") and Japanese ("ja"). Language parameters
  807. // must be passed explicitly for operations that take them.
  808. Language *string `locationName:"language" type:"string"`
  809. // The maximum number of results to return before paginating.
  810. MaxResults *int64 `locationName:"maxResults" type:"integer"`
  811. // A resumption point for pagination.
  812. NextToken *string `locationName:"nextToken" type:"string"`
  813. metadataDescribeCasesInput `json:"-" xml:"-"`
  814. }
  815. type metadataDescribeCasesInput struct {
  816. SDKShapeTraits bool `type:"structure"`
  817. }
  818. // String returns the string representation
  819. func (s DescribeCasesInput) String() string {
  820. return awsutil.Prettify(s)
  821. }
  822. // GoString returns the string representation
  823. func (s DescribeCasesInput) GoString() string {
  824. return s.String()
  825. }
  826. // Returns an array of CaseDetails objects and a NextToken that defines a point
  827. // for pagination in the result set.
  828. type DescribeCasesOutput struct {
  829. // The details for the cases that match the request.
  830. Cases []*CaseDetails `locationName:"cases" type:"list"`
  831. // A resumption point for pagination.
  832. NextToken *string `locationName:"nextToken" type:"string"`
  833. metadataDescribeCasesOutput `json:"-" xml:"-"`
  834. }
  835. type metadataDescribeCasesOutput struct {
  836. SDKShapeTraits bool `type:"structure"`
  837. }
  838. // String returns the string representation
  839. func (s DescribeCasesOutput) String() string {
  840. return awsutil.Prettify(s)
  841. }
  842. // GoString returns the string representation
  843. func (s DescribeCasesOutput) GoString() string {
  844. return s.String()
  845. }
  846. type DescribeCommunicationsInput struct {
  847. // The start date for a filtered date search on support case communications.
  848. // Case communications are available for 12 months after creation.
  849. AfterTime *string `locationName:"afterTime" type:"string"`
  850. // The end date for a filtered date search on support case communications. Case
  851. // communications are available for 12 months after creation.
  852. BeforeTime *string `locationName:"beforeTime" type:"string"`
  853. // The AWS Support case ID requested or returned in the call. The case ID is
  854. // an alphanumeric string formatted as shown in this example: case-12345678910-2013-c4c1d2bf33c5cf47
  855. CaseId *string `locationName:"caseId" type:"string" required:"true"`
  856. // The maximum number of results to return before paginating.
  857. MaxResults *int64 `locationName:"maxResults" type:"integer"`
  858. // A resumption point for pagination.
  859. NextToken *string `locationName:"nextToken" type:"string"`
  860. metadataDescribeCommunicationsInput `json:"-" xml:"-"`
  861. }
  862. type metadataDescribeCommunicationsInput struct {
  863. SDKShapeTraits bool `type:"structure"`
  864. }
  865. // String returns the string representation
  866. func (s DescribeCommunicationsInput) String() string {
  867. return awsutil.Prettify(s)
  868. }
  869. // GoString returns the string representation
  870. func (s DescribeCommunicationsInput) GoString() string {
  871. return s.String()
  872. }
  873. // The communications returned by the DescribeCommunications operation.
  874. type DescribeCommunicationsOutput struct {
  875. // The communications for the case.
  876. Communications []*Communication `locationName:"communications" type:"list"`
  877. // A resumption point for pagination.
  878. NextToken *string `locationName:"nextToken" type:"string"`
  879. metadataDescribeCommunicationsOutput `json:"-" xml:"-"`
  880. }
  881. type metadataDescribeCommunicationsOutput struct {
  882. SDKShapeTraits bool `type:"structure"`
  883. }
  884. // String returns the string representation
  885. func (s DescribeCommunicationsOutput) String() string {
  886. return awsutil.Prettify(s)
  887. }
  888. // GoString returns the string representation
  889. func (s DescribeCommunicationsOutput) GoString() string {
  890. return s.String()
  891. }
  892. type DescribeServicesInput struct {
  893. // The ISO 639-1 code for the language in which AWS provides support. AWS Support
  894. // currently supports English ("en") and Japanese ("ja"). Language parameters
  895. // must be passed explicitly for operations that take them.
  896. Language *string `locationName:"language" type:"string"`
  897. // A JSON-formatted list of service codes available for AWS services.
  898. ServiceCodeList []*string `locationName:"serviceCodeList" type:"list"`
  899. metadataDescribeServicesInput `json:"-" xml:"-"`
  900. }
  901. type metadataDescribeServicesInput struct {
  902. SDKShapeTraits bool `type:"structure"`
  903. }
  904. // String returns the string representation
  905. func (s DescribeServicesInput) String() string {
  906. return awsutil.Prettify(s)
  907. }
  908. // GoString returns the string representation
  909. func (s DescribeServicesInput) GoString() string {
  910. return s.String()
  911. }
  912. // The list of AWS services returned by the DescribeServices operation.
  913. type DescribeServicesOutput struct {
  914. // A JSON-formatted list of AWS services.
  915. Services []*Service `locationName:"services" type:"list"`
  916. metadataDescribeServicesOutput `json:"-" xml:"-"`
  917. }
  918. type metadataDescribeServicesOutput struct {
  919. SDKShapeTraits bool `type:"structure"`
  920. }
  921. // String returns the string representation
  922. func (s DescribeServicesOutput) String() string {
  923. return awsutil.Prettify(s)
  924. }
  925. // GoString returns the string representation
  926. func (s DescribeServicesOutput) GoString() string {
  927. return s.String()
  928. }
  929. type DescribeSeverityLevelsInput struct {
  930. // The ISO 639-1 code for the language in which AWS provides support. AWS Support
  931. // currently supports English ("en") and Japanese ("ja"). Language parameters
  932. // must be passed explicitly for operations that take them.
  933. Language *string `locationName:"language" type:"string"`
  934. metadataDescribeSeverityLevelsInput `json:"-" xml:"-"`
  935. }
  936. type metadataDescribeSeverityLevelsInput struct {
  937. SDKShapeTraits bool `type:"structure"`
  938. }
  939. // String returns the string representation
  940. func (s DescribeSeverityLevelsInput) String() string {
  941. return awsutil.Prettify(s)
  942. }
  943. // GoString returns the string representation
  944. func (s DescribeSeverityLevelsInput) GoString() string {
  945. return s.String()
  946. }
  947. // The list of severity levels returned by the DescribeSeverityLevels operation.
  948. type DescribeSeverityLevelsOutput struct {
  949. // The available severity levels for the support case. Available severity levels
  950. // are defined by your service level agreement with AWS.
  951. SeverityLevels []*SeverityLevel `locationName:"severityLevels" type:"list"`
  952. metadataDescribeSeverityLevelsOutput `json:"-" xml:"-"`
  953. }
  954. type metadataDescribeSeverityLevelsOutput struct {
  955. SDKShapeTraits bool `type:"structure"`
  956. }
  957. // String returns the string representation
  958. func (s DescribeSeverityLevelsOutput) String() string {
  959. return awsutil.Prettify(s)
  960. }
  961. // GoString returns the string representation
  962. func (s DescribeSeverityLevelsOutput) GoString() string {
  963. return s.String()
  964. }
  965. type DescribeTrustedAdvisorCheckRefreshStatusesInput struct {
  966. // The IDs of the Trusted Advisor checks.
  967. CheckIds []*string `locationName:"checkIds" type:"list" required:"true"`
  968. metadataDescribeTrustedAdvisorCheckRefreshStatusesInput `json:"-" xml:"-"`
  969. }
  970. type metadataDescribeTrustedAdvisorCheckRefreshStatusesInput struct {
  971. SDKShapeTraits bool `type:"structure"`
  972. }
  973. // String returns the string representation
  974. func (s DescribeTrustedAdvisorCheckRefreshStatusesInput) String() string {
  975. return awsutil.Prettify(s)
  976. }
  977. // GoString returns the string representation
  978. func (s DescribeTrustedAdvisorCheckRefreshStatusesInput) GoString() string {
  979. return s.String()
  980. }
  981. // The statuses of the Trusted Advisor checks returned by the DescribeTrustedAdvisorCheckRefreshStatuses
  982. // operation.
  983. type DescribeTrustedAdvisorCheckRefreshStatusesOutput struct {
  984. // The refresh status of the specified Trusted Advisor checks.
  985. Statuses []*TrustedAdvisorCheckRefreshStatus `locationName:"statuses" type:"list" required:"true"`
  986. metadataDescribeTrustedAdvisorCheckRefreshStatusesOutput `json:"-" xml:"-"`
  987. }
  988. type metadataDescribeTrustedAdvisorCheckRefreshStatusesOutput struct {
  989. SDKShapeTraits bool `type:"structure"`
  990. }
  991. // String returns the string representation
  992. func (s DescribeTrustedAdvisorCheckRefreshStatusesOutput) String() string {
  993. return awsutil.Prettify(s)
  994. }
  995. // GoString returns the string representation
  996. func (s DescribeTrustedAdvisorCheckRefreshStatusesOutput) GoString() string {
  997. return s.String()
  998. }
  999. type DescribeTrustedAdvisorCheckResultInput struct {
  1000. // The unique identifier for the Trusted Advisor check.
  1001. CheckId *string `locationName:"checkId" type:"string" required:"true"`
  1002. // The ISO 639-1 code for the language in which AWS provides support. AWS Support
  1003. // currently supports English ("en") and Japanese ("ja"). Language parameters
  1004. // must be passed explicitly for operations that take them.
  1005. Language *string `locationName:"language" type:"string"`
  1006. metadataDescribeTrustedAdvisorCheckResultInput `json:"-" xml:"-"`
  1007. }
  1008. type metadataDescribeTrustedAdvisorCheckResultInput struct {
  1009. SDKShapeTraits bool `type:"structure"`
  1010. }
  1011. // String returns the string representation
  1012. func (s DescribeTrustedAdvisorCheckResultInput) String() string {
  1013. return awsutil.Prettify(s)
  1014. }
  1015. // GoString returns the string representation
  1016. func (s DescribeTrustedAdvisorCheckResultInput) GoString() string {
  1017. return s.String()
  1018. }
  1019. // The result of the Trusted Advisor check returned by the DescribeTrustedAdvisorCheckResult
  1020. // operation.
  1021. type DescribeTrustedAdvisorCheckResultOutput struct {
  1022. // The detailed results of the Trusted Advisor check.
  1023. Result *TrustedAdvisorCheckResult `locationName:"result" type:"structure"`
  1024. metadataDescribeTrustedAdvisorCheckResultOutput `json:"-" xml:"-"`
  1025. }
  1026. type metadataDescribeTrustedAdvisorCheckResultOutput struct {
  1027. SDKShapeTraits bool `type:"structure"`
  1028. }
  1029. // String returns the string representation
  1030. func (s DescribeTrustedAdvisorCheckResultOutput) String() string {
  1031. return awsutil.Prettify(s)
  1032. }
  1033. // GoString returns the string representation
  1034. func (s DescribeTrustedAdvisorCheckResultOutput) GoString() string {
  1035. return s.String()
  1036. }
  1037. type DescribeTrustedAdvisorCheckSummariesInput struct {
  1038. // The IDs of the Trusted Advisor checks.
  1039. CheckIds []*string `locationName:"checkIds" type:"list" required:"true"`
  1040. metadataDescribeTrustedAdvisorCheckSummariesInput `json:"-" xml:"-"`
  1041. }
  1042. type metadataDescribeTrustedAdvisorCheckSummariesInput struct {
  1043. SDKShapeTraits bool `type:"structure"`
  1044. }
  1045. // String returns the string representation
  1046. func (s DescribeTrustedAdvisorCheckSummariesInput) String() string {
  1047. return awsutil.Prettify(s)
  1048. }
  1049. // GoString returns the string representation
  1050. func (s DescribeTrustedAdvisorCheckSummariesInput) GoString() string {
  1051. return s.String()
  1052. }
  1053. // The summaries of the Trusted Advisor checks returned by the DescribeTrustedAdvisorCheckSummaries
  1054. // operation.
  1055. type DescribeTrustedAdvisorCheckSummariesOutput struct {
  1056. // The summary information for the requested Trusted Advisor checks.
  1057. Summaries []*TrustedAdvisorCheckSummary `locationName:"summaries" type:"list" required:"true"`
  1058. metadataDescribeTrustedAdvisorCheckSummariesOutput `json:"-" xml:"-"`
  1059. }
  1060. type metadataDescribeTrustedAdvisorCheckSummariesOutput struct {
  1061. SDKShapeTraits bool `type:"structure"`
  1062. }
  1063. // String returns the string representation
  1064. func (s DescribeTrustedAdvisorCheckSummariesOutput) String() string {
  1065. return awsutil.Prettify(s)
  1066. }
  1067. // GoString returns the string representation
  1068. func (s DescribeTrustedAdvisorCheckSummariesOutput) GoString() string {
  1069. return s.String()
  1070. }
  1071. type DescribeTrustedAdvisorChecksInput struct {
  1072. // The ISO 639-1 code for the language in which AWS provides support. AWS Support
  1073. // currently supports English ("en") and Japanese ("ja"). Language parameters
  1074. // must be passed explicitly for operations that take them.
  1075. Language *string `locationName:"language" type:"string" required:"true"`
  1076. metadataDescribeTrustedAdvisorChecksInput `json:"-" xml:"-"`
  1077. }
  1078. type metadataDescribeTrustedAdvisorChecksInput struct {
  1079. SDKShapeTraits bool `type:"structure"`
  1080. }
  1081. // String returns the string representation
  1082. func (s DescribeTrustedAdvisorChecksInput) String() string {
  1083. return awsutil.Prettify(s)
  1084. }
  1085. // GoString returns the string representation
  1086. func (s DescribeTrustedAdvisorChecksInput) GoString() string {
  1087. return s.String()
  1088. }
  1089. // Information about the Trusted Advisor checks returned by the DescribeTrustedAdvisorChecks
  1090. // operation.
  1091. type DescribeTrustedAdvisorChecksOutput struct {
  1092. // Information about all available Trusted Advisor checks.
  1093. Checks []*TrustedAdvisorCheckDescription `locationName:"checks" type:"list" required:"true"`
  1094. metadataDescribeTrustedAdvisorChecksOutput `json:"-" xml:"-"`
  1095. }
  1096. type metadataDescribeTrustedAdvisorChecksOutput struct {
  1097. SDKShapeTraits bool `type:"structure"`
  1098. }
  1099. // String returns the string representation
  1100. func (s DescribeTrustedAdvisorChecksOutput) String() string {
  1101. return awsutil.Prettify(s)
  1102. }
  1103. // GoString returns the string representation
  1104. func (s DescribeTrustedAdvisorChecksOutput) GoString() string {
  1105. return s.String()
  1106. }
  1107. // The five most recent communications associated with the case.
  1108. type RecentCaseCommunications struct {
  1109. // The five most recent communications associated with the case.
  1110. Communications []*Communication `locationName:"communications" type:"list"`
  1111. // A resumption point for pagination.
  1112. NextToken *string `locationName:"nextToken" type:"string"`
  1113. metadataRecentCaseCommunications `json:"-" xml:"-"`
  1114. }
  1115. type metadataRecentCaseCommunications struct {
  1116. SDKShapeTraits bool `type:"structure"`
  1117. }
  1118. // String returns the string representation
  1119. func (s RecentCaseCommunications) String() string {
  1120. return awsutil.Prettify(s)
  1121. }
  1122. // GoString returns the string representation
  1123. func (s RecentCaseCommunications) GoString() string {
  1124. return s.String()
  1125. }
  1126. type RefreshTrustedAdvisorCheckInput struct {
  1127. // The unique identifier for the Trusted Advisor check.
  1128. CheckId *string `locationName:"checkId" type:"string" required:"true"`
  1129. metadataRefreshTrustedAdvisorCheckInput `json:"-" xml:"-"`
  1130. }
  1131. type metadataRefreshTrustedAdvisorCheckInput struct {
  1132. SDKShapeTraits bool `type:"structure"`
  1133. }
  1134. // String returns the string representation
  1135. func (s RefreshTrustedAdvisorCheckInput) String() string {
  1136. return awsutil.Prettify(s)
  1137. }
  1138. // GoString returns the string representation
  1139. func (s RefreshTrustedAdvisorCheckInput) GoString() string {
  1140. return s.String()
  1141. }
  1142. // The current refresh status of a Trusted Advisor check.
  1143. type RefreshTrustedAdvisorCheckOutput struct {
  1144. // The current refresh status for a check, including the amount of time until
  1145. // the check is eligible for refresh.
  1146. Status *TrustedAdvisorCheckRefreshStatus `locationName:"status" type:"structure" required:"true"`
  1147. metadataRefreshTrustedAdvisorCheckOutput `json:"-" xml:"-"`
  1148. }
  1149. type metadataRefreshTrustedAdvisorCheckOutput struct {
  1150. SDKShapeTraits bool `type:"structure"`
  1151. }
  1152. // String returns the string representation
  1153. func (s RefreshTrustedAdvisorCheckOutput) String() string {
  1154. return awsutil.Prettify(s)
  1155. }
  1156. // GoString returns the string representation
  1157. func (s RefreshTrustedAdvisorCheckOutput) GoString() string {
  1158. return s.String()
  1159. }
  1160. type ResolveCaseInput struct {
  1161. // The AWS Support case ID requested or returned in the call. The case ID is
  1162. // an alphanumeric string formatted as shown in this example: case-12345678910-2013-c4c1d2bf33c5cf47
  1163. CaseId *string `locationName:"caseId" type:"string"`
  1164. metadataResolveCaseInput `json:"-" xml:"-"`
  1165. }
  1166. type metadataResolveCaseInput struct {
  1167. SDKShapeTraits bool `type:"structure"`
  1168. }
  1169. // String returns the string representation
  1170. func (s ResolveCaseInput) String() string {
  1171. return awsutil.Prettify(s)
  1172. }
  1173. // GoString returns the string representation
  1174. func (s ResolveCaseInput) GoString() string {
  1175. return s.String()
  1176. }
  1177. // The status of the case returned by the ResolveCase operation.
  1178. type ResolveCaseOutput struct {
  1179. // The status of the case after the ResolveCase request was processed.
  1180. FinalCaseStatus *string `locationName:"finalCaseStatus" type:"string"`
  1181. // The status of the case when the ResolveCase request was sent.
  1182. InitialCaseStatus *string `locationName:"initialCaseStatus" type:"string"`
  1183. metadataResolveCaseOutput `json:"-" xml:"-"`
  1184. }
  1185. type metadataResolveCaseOutput struct {
  1186. SDKShapeTraits bool `type:"structure"`
  1187. }
  1188. // String returns the string representation
  1189. func (s ResolveCaseOutput) String() string {
  1190. return awsutil.Prettify(s)
  1191. }
  1192. // GoString returns the string representation
  1193. func (s ResolveCaseOutput) GoString() string {
  1194. return s.String()
  1195. }
  1196. // Information about an AWS service returned by the DescribeServices operation.
  1197. type Service struct {
  1198. // A list of categories that describe the type of support issue a case describes.
  1199. // Categories consist of a category name and a category code. Category names
  1200. // and codes are passed to AWS Support when you call CreateCase.
  1201. Categories []*Category `locationName:"categories" type:"list"`
  1202. // The code for an AWS service returned by the DescribeServices response. The
  1203. // Name element contains the corresponding friendly name.
  1204. Code *string `locationName:"code" type:"string"`
  1205. // The friendly name for an AWS service. The Code element contains the corresponding
  1206. // code.
  1207. Name *string `locationName:"name" type:"string"`
  1208. metadataService `json:"-" xml:"-"`
  1209. }
  1210. type metadataService struct {
  1211. SDKShapeTraits bool `type:"structure"`
  1212. }
  1213. // String returns the string representation
  1214. func (s Service) String() string {
  1215. return awsutil.Prettify(s)
  1216. }
  1217. // GoString returns the string representation
  1218. func (s Service) GoString() string {
  1219. return s.String()
  1220. }
  1221. // A code and name pair that represent a severity level that can be applied
  1222. // to a support case.
  1223. type SeverityLevel struct {
  1224. // One of four values: "low," "medium," "high," and "urgent". These values correspond
  1225. // to response times returned to the caller in SeverityLevel.name.
  1226. Code *string `locationName:"code" type:"string"`
  1227. // The name of the severity level that corresponds to the severity level code.
  1228. Name *string `locationName:"name" type:"string"`
  1229. metadataSeverityLevel `json:"-" xml:"-"`
  1230. }
  1231. type metadataSeverityLevel struct {
  1232. SDKShapeTraits bool `type:"structure"`
  1233. }
  1234. // String returns the string representation
  1235. func (s SeverityLevel) String() string {
  1236. return awsutil.Prettify(s)
  1237. }
  1238. // GoString returns the string representation
  1239. func (s SeverityLevel) GoString() string {
  1240. return s.String()
  1241. }
  1242. // The container for summary information that relates to the category of the
  1243. // Trusted Advisor check.
  1244. type TrustedAdvisorCategorySpecificSummary struct {
  1245. // The summary information about cost savings for a Trusted Advisor check that
  1246. // is in the Cost Optimizing category.
  1247. CostOptimizing *TrustedAdvisorCostOptimizingSummary `locationName:"costOptimizing" type:"structure"`
  1248. metadataTrustedAdvisorCategorySpecificSummary `json:"-" xml:"-"`
  1249. }
  1250. type metadataTrustedAdvisorCategorySpecificSummary struct {
  1251. SDKShapeTraits bool `type:"structure"`
  1252. }
  1253. // String returns the string representation
  1254. func (s TrustedAdvisorCategorySpecificSummary) String() string {
  1255. return awsutil.Prettify(s)
  1256. }
  1257. // GoString returns the string representation
  1258. func (s TrustedAdvisorCategorySpecificSummary) GoString() string {
  1259. return s.String()
  1260. }
  1261. // The description and metadata for a Trusted Advisor check.
  1262. type TrustedAdvisorCheckDescription struct {
  1263. // The category of the Trusted Advisor check.
  1264. Category *string `locationName:"category" type:"string" required:"true"`
  1265. // The description of the Trusted Advisor check, which includes the alert criteria
  1266. // and recommended actions (contains HTML markup).
  1267. Description *string `locationName:"description" type:"string" required:"true"`
  1268. // The unique identifier for the Trusted Advisor check.
  1269. Id *string `locationName:"id" type:"string" required:"true"`
  1270. // The column headings for the data returned by the Trusted Advisor check. The
  1271. // order of the headings corresponds to the order of the data in the Metadata
  1272. // element of the TrustedAdvisorResourceDetail for the check. Metadata contains
  1273. // all the data that is shown in the Excel download, even in those cases where
  1274. // the UI shows just summary data.
  1275. Metadata []*string `locationName:"metadata" type:"list" required:"true"`
  1276. // The display name for the Trusted Advisor check.
  1277. Name *string `locationName:"name" type:"string" required:"true"`
  1278. metadataTrustedAdvisorCheckDescription `json:"-" xml:"-"`
  1279. }
  1280. type metadataTrustedAdvisorCheckDescription struct {
  1281. SDKShapeTraits bool `type:"structure"`
  1282. }
  1283. // String returns the string representation
  1284. func (s TrustedAdvisorCheckDescription) String() string {
  1285. return awsutil.Prettify(s)
  1286. }
  1287. // GoString returns the string representation
  1288. func (s TrustedAdvisorCheckDescription) GoString() string {
  1289. return s.String()
  1290. }
  1291. // The refresh status of a Trusted Advisor check.
  1292. type TrustedAdvisorCheckRefreshStatus struct {
  1293. // The unique identifier for the Trusted Advisor check.
  1294. CheckId *string `locationName:"checkId" type:"string" required:"true"`
  1295. // The amount of time, in milliseconds, until the Trusted Advisor check is eligible
  1296. // for refresh.
  1297. MillisUntilNextRefreshable *int64 `locationName:"millisUntilNextRefreshable" type:"long" required:"true"`
  1298. // The status of the Trusted Advisor check for which a refresh has been requested:
  1299. // "none", "enqueued", "processing", "success", or "abandoned".
  1300. Status *string `locationName:"status" type:"string" required:"true"`
  1301. metadataTrustedAdvisorCheckRefreshStatus `json:"-" xml:"-"`
  1302. }
  1303. type metadataTrustedAdvisorCheckRefreshStatus struct {
  1304. SDKShapeTraits bool `type:"structure"`
  1305. }
  1306. // String returns the string representation
  1307. func (s TrustedAdvisorCheckRefreshStatus) String() string {
  1308. return awsutil.Prettify(s)
  1309. }
  1310. // GoString returns the string representation
  1311. func (s TrustedAdvisorCheckRefreshStatus) GoString() string {
  1312. return s.String()
  1313. }
  1314. // The results of a Trusted Advisor check returned by DescribeTrustedAdvisorCheckResult.
  1315. type TrustedAdvisorCheckResult struct {
  1316. // Summary information that relates to the category of the check. Cost Optimizing
  1317. // is the only category that is currently supported.
  1318. CategorySpecificSummary *TrustedAdvisorCategorySpecificSummary `locationName:"categorySpecificSummary" type:"structure" required:"true"`
  1319. // The unique identifier for the Trusted Advisor check.
  1320. CheckId *string `locationName:"checkId" type:"string" required:"true"`
  1321. // The details about each resource listed in the check result.
  1322. FlaggedResources []*TrustedAdvisorResourceDetail `locationName:"flaggedResources" type:"list" required:"true"`
  1323. // Details about AWS resources that were analyzed in a call to Trusted Advisor
  1324. // DescribeTrustedAdvisorCheckSummaries.
  1325. ResourcesSummary *TrustedAdvisorResourcesSummary `locationName:"resourcesSummary" type:"structure" required:"true"`
  1326. // The alert status of the check: "ok" (green), "warning" (yellow), "error"
  1327. // (red), or "not_available".
  1328. Status *string `locationName:"status" type:"string" required:"true"`
  1329. // The time of the last refresh of the check.
  1330. Timestamp *string `locationName:"timestamp" type:"string" required:"true"`
  1331. metadataTrustedAdvisorCheckResult `json:"-" xml:"-"`
  1332. }
  1333. type metadataTrustedAdvisorCheckResult struct {
  1334. SDKShapeTraits bool `type:"structure"`
  1335. }
  1336. // String returns the string representation
  1337. func (s TrustedAdvisorCheckResult) String() string {
  1338. return awsutil.Prettify(s)
  1339. }
  1340. // GoString returns the string representation
  1341. func (s TrustedAdvisorCheckResult) GoString() string {
  1342. return s.String()
  1343. }
  1344. // A summary of a Trusted Advisor check result, including the alert status,
  1345. // last refresh, and number of resources examined.
  1346. type TrustedAdvisorCheckSummary struct {
  1347. // Summary information that relates to the category of the check. Cost Optimizing
  1348. // is the only category that is currently supported.
  1349. CategorySpecificSummary *TrustedAdvisorCategorySpecificSummary `locationName:"categorySpecificSummary" type:"structure" required:"true"`
  1350. // The unique identifier for the Trusted Advisor check.
  1351. CheckId *string `locationName:"checkId" type:"string" required:"true"`
  1352. // Specifies whether the Trusted Advisor check has flagged resources.
  1353. HasFlaggedResources *bool `locationName:"hasFlaggedResources" type:"boolean"`
  1354. // Details about AWS resources that were analyzed in a call to Trusted Advisor
  1355. // DescribeTrustedAdvisorCheckSummaries.
  1356. ResourcesSummary *TrustedAdvisorResourcesSummary `locationName:"resourcesSummary" type:"structure" required:"true"`
  1357. // The alert status of the check: "ok" (green), "warning" (yellow), "error"
  1358. // (red), or "not_available".
  1359. Status *string `locationName:"status" type:"string" required:"true"`
  1360. // The time of the last refresh of the check.
  1361. Timestamp *string `locationName:"timestamp" type:"string" required:"true"`
  1362. metadataTrustedAdvisorCheckSummary `json:"-" xml:"-"`
  1363. }
  1364. type metadataTrustedAdvisorCheckSummary struct {
  1365. SDKShapeTraits bool `type:"structure"`
  1366. }
  1367. // String returns the string representation
  1368. func (s TrustedAdvisorCheckSummary) String() string {
  1369. return awsutil.Prettify(s)
  1370. }
  1371. // GoString returns the string representation
  1372. func (s TrustedAdvisorCheckSummary) GoString() string {
  1373. return s.String()
  1374. }
  1375. // The estimated cost savings that might be realized if the recommended actions
  1376. // are taken.
  1377. type TrustedAdvisorCostOptimizingSummary struct {
  1378. // The estimated monthly savings that might be realized if the recommended actions
  1379. // are taken.
  1380. EstimatedMonthlySavings *float64 `locationName:"estimatedMonthlySavings" type:"double" required:"true"`
  1381. // The estimated percentage of savings that might be realized if the recommended
  1382. // actions are taken.
  1383. EstimatedPercentMonthlySavings *float64 `locationName:"estimatedPercentMonthlySavings" type:"double" required:"true"`
  1384. metadataTrustedAdvisorCostOptimizingSummary `json:"-" xml:"-"`
  1385. }
  1386. type metadataTrustedAdvisorCostOptimizingSummary struct {
  1387. SDKShapeTraits bool `type:"structure"`
  1388. }
  1389. // String returns the string representation
  1390. func (s TrustedAdvisorCostOptimizingSummary) String() string {
  1391. return awsutil.Prettify(s)
  1392. }
  1393. // GoString returns the string representation
  1394. func (s TrustedAdvisorCostOptimizingSummary) GoString() string {
  1395. return s.String()
  1396. }
  1397. // Contains information about a resource identified by a Trusted Advisor check.
  1398. type TrustedAdvisorResourceDetail struct {
  1399. // Specifies whether the AWS resource was ignored by Trusted Advisor because
  1400. // it was marked as suppressed by the user.
  1401. IsSuppressed *bool `locationName:"isSuppressed" type:"boolean"`
  1402. // Additional information about the identified resource. The exact metadata
  1403. // and its order can be obtained by inspecting the TrustedAdvisorCheckDescription
  1404. // object returned by the call to DescribeTrustedAdvisorChecks. Metadata contains
  1405. // all the data that is shown in the Excel download, even in those cases where
  1406. // the UI shows just summary data.
  1407. Metadata []*string `locationName:"metadata" type:"list" required:"true"`
  1408. // The AWS region in which the identified resource is located.
  1409. Region *string `locationName:"region" type:"string" required:"true"`
  1410. // The unique identifier for the identified resource.
  1411. ResourceId *string `locationName:"resourceId" type:"string" required:"true"`
  1412. // The status code for the resource identified in the Trusted Advisor check.
  1413. Status *string `locationName:"status" type:"string" required:"true"`
  1414. metadataTrustedAdvisorResourceDetail `json:"-" xml:"-"`
  1415. }
  1416. type metadataTrustedAdvisorResourceDetail struct {
  1417. SDKShapeTraits bool `type:"structure"`
  1418. }
  1419. // String returns the string representation
  1420. func (s TrustedAdvisorResourceDetail) String() string {
  1421. return awsutil.Prettify(s)
  1422. }
  1423. // GoString returns the string representation
  1424. func (s TrustedAdvisorResourceDetail) GoString() string {
  1425. return s.String()
  1426. }
  1427. // Details about AWS resources that were analyzed in a call to Trusted Advisor
  1428. // DescribeTrustedAdvisorCheckSummaries.
  1429. type TrustedAdvisorResourcesSummary struct {
  1430. // The number of AWS resources that were flagged (listed) by the Trusted Advisor
  1431. // check.
  1432. ResourcesFlagged *int64 `locationName:"resourcesFlagged" type:"long" required:"true"`
  1433. // The number of AWS resources ignored by Trusted Advisor because information
  1434. // was unavailable.
  1435. ResourcesIgnored *int64 `locationName:"resourcesIgnored" type:"long" required:"true"`
  1436. // The number of AWS resources that were analyzed by the Trusted Advisor check.
  1437. ResourcesProcessed *int64 `locationName:"resourcesProcessed" type:"long" required:"true"`
  1438. // The number of AWS resources ignored by Trusted Advisor because they were
  1439. // marked as suppressed by the user.
  1440. ResourcesSuppressed *int64 `locationName:"resourcesSuppressed" type:"long" required:"true"`
  1441. metadataTrustedAdvisorResourcesSummary `json:"-" xml:"-"`
  1442. }
  1443. type metadataTrustedAdvisorResourcesSummary struct {
  1444. SDKShapeTraits bool `type:"structure"`
  1445. }
  1446. // String returns the string representation
  1447. func (s TrustedAdvisorResourcesSummary) String() string {
  1448. return awsutil.Prettify(s)
  1449. }
  1450. // GoString returns the string representation
  1451. func (s TrustedAdvisorResourcesSummary) GoString() string {
  1452. return s.String()
  1453. }