api.go 90 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548
  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 "aws/request.Request" representing the
  10. // client's request for the AddAttachmentsToSet operation. The "output" return
  11. // value can be used to capture response data after the request's "Send" method
  12. // is called.
  13. //
  14. // See AddAttachmentsToSet for usage and error information.
  15. //
  16. // Creating a request object using this method should be used when you want to inject
  17. // custom logic into the request's lifecycle using a custom handler, or if you want to
  18. // access properties on the request object before or after sending the request. If
  19. // you just want the service response, call the AddAttachmentsToSet method directly
  20. // instead.
  21. //
  22. // Note: You must call the "Send" method on the returned request object in order
  23. // to execute the request.
  24. //
  25. // // Example sending a request using the AddAttachmentsToSetRequest method.
  26. // req, resp := client.AddAttachmentsToSetRequest(params)
  27. //
  28. // err := req.Send()
  29. // if err == nil { // resp is now filled
  30. // fmt.Println(resp)
  31. // }
  32. //
  33. func (c *Support) AddAttachmentsToSetRequest(input *AddAttachmentsToSetInput) (req *request.Request, output *AddAttachmentsToSetOutput) {
  34. op := &request.Operation{
  35. Name: opAddAttachmentsToSet,
  36. HTTPMethod: "POST",
  37. HTTPPath: "/",
  38. }
  39. if input == nil {
  40. input = &AddAttachmentsToSetInput{}
  41. }
  42. req = c.newRequest(op, input, output)
  43. output = &AddAttachmentsToSetOutput{}
  44. req.Data = output
  45. return
  46. }
  47. // AddAttachmentsToSet API operation for AWS Support.
  48. //
  49. // Adds one or more attachments to an attachment set. If an attachmentSetId
  50. // is not specified, a new attachment set is created, and the ID of the set
  51. // is returned in the response. If an attachmentSetId is specified, the attachments
  52. // are added to the specified set, if it exists.
  53. //
  54. // An attachment set is a temporary container for attachments that are to be
  55. // added to a case or case communication. The set is available for one hour
  56. // after it is created; the expiryTime returned in the response indicates when
  57. // the set expires. The maximum number of attachments in a set is 3, and the
  58. // maximum size of any attachment in the set is 5 MB.
  59. //
  60. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  61. // with awserr.Error's Code and Message methods to get detailed information about
  62. // the error.
  63. //
  64. // See the AWS API reference guide for AWS Support's
  65. // API operation AddAttachmentsToSet for usage and error information.
  66. //
  67. // Returned Error Codes:
  68. // * InternalServerError
  69. // An internal server error occurred.
  70. //
  71. // * AttachmentSetIdNotFound
  72. // An attachment set with the specified ID could not be found.
  73. //
  74. // * AttachmentSetExpired
  75. // The expiration time of the attachment set has passed. The set expires 1 hour
  76. // after it is created.
  77. //
  78. // * AttachmentSetSizeLimitExceeded
  79. // A limit for the size of an attachment set has been exceeded. The limits are
  80. // 3 attachments and 5 MB per attachment.
  81. //
  82. // * AttachmentLimitExceeded
  83. // The limit for the number of attachment sets created in a short period of
  84. // time has been exceeded.
  85. //
  86. func (c *Support) AddAttachmentsToSet(input *AddAttachmentsToSetInput) (*AddAttachmentsToSetOutput, error) {
  87. req, out := c.AddAttachmentsToSetRequest(input)
  88. err := req.Send()
  89. return out, err
  90. }
  91. const opAddCommunicationToCase = "AddCommunicationToCase"
  92. // AddCommunicationToCaseRequest generates a "aws/request.Request" representing the
  93. // client's request for the AddCommunicationToCase operation. The "output" return
  94. // value can be used to capture response data after the request's "Send" method
  95. // is called.
  96. //
  97. // See AddCommunicationToCase for usage and error information.
  98. //
  99. // Creating a request object using this method should be used when you want to inject
  100. // custom logic into the request's lifecycle using a custom handler, or if you want to
  101. // access properties on the request object before or after sending the request. If
  102. // you just want the service response, call the AddCommunicationToCase method directly
  103. // instead.
  104. //
  105. // Note: You must call the "Send" method on the returned request object in order
  106. // to execute the request.
  107. //
  108. // // Example sending a request using the AddCommunicationToCaseRequest method.
  109. // req, resp := client.AddCommunicationToCaseRequest(params)
  110. //
  111. // err := req.Send()
  112. // if err == nil { // resp is now filled
  113. // fmt.Println(resp)
  114. // }
  115. //
  116. func (c *Support) AddCommunicationToCaseRequest(input *AddCommunicationToCaseInput) (req *request.Request, output *AddCommunicationToCaseOutput) {
  117. op := &request.Operation{
  118. Name: opAddCommunicationToCase,
  119. HTTPMethod: "POST",
  120. HTTPPath: "/",
  121. }
  122. if input == nil {
  123. input = &AddCommunicationToCaseInput{}
  124. }
  125. req = c.newRequest(op, input, output)
  126. output = &AddCommunicationToCaseOutput{}
  127. req.Data = output
  128. return
  129. }
  130. // AddCommunicationToCase API operation for AWS Support.
  131. //
  132. // Adds additional customer communication to an AWS Support case. You use the
  133. // caseId value to identify the case to add communication to. You can list a
  134. // set of email addresses to copy on the communication using the ccEmailAddresses
  135. // value. The communicationBody value contains the text of the communication.
  136. //
  137. // The response indicates the success or failure of the request.
  138. //
  139. // This operation implements a subset of the features of the AWS Support Center.
  140. //
  141. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  142. // with awserr.Error's Code and Message methods to get detailed information about
  143. // the error.
  144. //
  145. // See the AWS API reference guide for AWS Support's
  146. // API operation AddCommunicationToCase for usage and error information.
  147. //
  148. // Returned Error Codes:
  149. // * InternalServerError
  150. // An internal server error occurred.
  151. //
  152. // * CaseIdNotFound
  153. // The requested caseId could not be located.
  154. //
  155. // * AttachmentSetIdNotFound
  156. // An attachment set with the specified ID could not be found.
  157. //
  158. // * AttachmentSetExpired
  159. // The expiration time of the attachment set has passed. The set expires 1 hour
  160. // after it is created.
  161. //
  162. func (c *Support) AddCommunicationToCase(input *AddCommunicationToCaseInput) (*AddCommunicationToCaseOutput, error) {
  163. req, out := c.AddCommunicationToCaseRequest(input)
  164. err := req.Send()
  165. return out, err
  166. }
  167. const opCreateCase = "CreateCase"
  168. // CreateCaseRequest generates a "aws/request.Request" representing the
  169. // client's request for the CreateCase operation. The "output" return
  170. // value can be used to capture response data after the request's "Send" method
  171. // is called.
  172. //
  173. // See CreateCase for usage and error information.
  174. //
  175. // Creating a request object using this method should be used when you want to inject
  176. // custom logic into the request's lifecycle using a custom handler, or if you want to
  177. // access properties on the request object before or after sending the request. If
  178. // you just want the service response, call the CreateCase method directly
  179. // instead.
  180. //
  181. // Note: You must call the "Send" method on the returned request object in order
  182. // to execute the request.
  183. //
  184. // // Example sending a request using the CreateCaseRequest method.
  185. // req, resp := client.CreateCaseRequest(params)
  186. //
  187. // err := req.Send()
  188. // if err == nil { // resp is now filled
  189. // fmt.Println(resp)
  190. // }
  191. //
  192. func (c *Support) CreateCaseRequest(input *CreateCaseInput) (req *request.Request, output *CreateCaseOutput) {
  193. op := &request.Operation{
  194. Name: opCreateCase,
  195. HTTPMethod: "POST",
  196. HTTPPath: "/",
  197. }
  198. if input == nil {
  199. input = &CreateCaseInput{}
  200. }
  201. req = c.newRequest(op, input, output)
  202. output = &CreateCaseOutput{}
  203. req.Data = output
  204. return
  205. }
  206. // CreateCase API operation for AWS Support.
  207. //
  208. // Creates a new case in the AWS Support Center. This operation is modeled on
  209. // the behavior of the AWS Support Center Create Case (https://console.aws.amazon.com/support/home#/case/create)
  210. // page. Its parameters require you to specify the following information:
  211. //
  212. // * issueType. The type of issue for the case. You can specify either "customer-service"
  213. // or "technical." If you do not indicate a value, the default is "technical."
  214. //
  215. //
  216. // * serviceCode. The code for an AWS service. You obtain the serviceCode
  217. // by calling DescribeServices.
  218. //
  219. // * categoryCode. The category for the service defined for the serviceCode
  220. // value. You also obtain the category code for a service by calling DescribeServices.
  221. // Each AWS service defines its own set of category codes.
  222. //
  223. // * severityCode. A value that indicates the urgency of the case, which
  224. // in turn determines the response time according to your service level agreement
  225. // with AWS Support. You obtain the SeverityCode by calling DescribeSeverityLevels.
  226. //
  227. // * subject. The Subject field on the AWS Support Center Create Case (https://console.aws.amazon.com/support/home#/case/create)
  228. // page.
  229. //
  230. // * communicationBody. The Description field on the AWS Support Center Create
  231. // Case (https://console.aws.amazon.com/support/home#/case/create) page.
  232. //
  233. // * attachmentSetId. The ID of a set of attachments that has been created
  234. // by using AddAttachmentsToSet.
  235. //
  236. // * language. The human language in which AWS Support handles the case.
  237. // English and Japanese are currently supported.
  238. //
  239. // * ccEmailAddresses. The AWS Support Center CC field on the Create Case
  240. // (https://console.aws.amazon.com/support/home#/case/create) page. You can
  241. // list email addresses to be copied on any correspondence about the case.
  242. // The account that opens the case is already identified by passing the AWS
  243. // Credentials in the HTTP POST method or in a method or function call from
  244. // one of the programming languages supported by an AWS SDK (http://aws.amazon.com/tools/).
  245. //
  246. //
  247. // To add additional communication or attachments to an existing case, use AddCommunicationToCase.
  248. //
  249. // A successful CreateCase request returns an AWS Support case number. Case
  250. // numbers are used by the DescribeCases operation to retrieve existing AWS
  251. // Support cases.
  252. //
  253. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  254. // with awserr.Error's Code and Message methods to get detailed information about
  255. // the error.
  256. //
  257. // See the AWS API reference guide for AWS Support's
  258. // API operation CreateCase for usage and error information.
  259. //
  260. // Returned Error Codes:
  261. // * InternalServerError
  262. // An internal server error occurred.
  263. //
  264. // * CaseCreationLimitExceeded
  265. // The case creation limit for the account has been exceeded.
  266. //
  267. // * AttachmentSetIdNotFound
  268. // An attachment set with the specified ID could not be found.
  269. //
  270. // * AttachmentSetExpired
  271. // The expiration time of the attachment set has passed. The set expires 1 hour
  272. // after it is created.
  273. //
  274. func (c *Support) CreateCase(input *CreateCaseInput) (*CreateCaseOutput, error) {
  275. req, out := c.CreateCaseRequest(input)
  276. err := req.Send()
  277. return out, err
  278. }
  279. const opDescribeAttachment = "DescribeAttachment"
  280. // DescribeAttachmentRequest generates a "aws/request.Request" representing the
  281. // client's request for the DescribeAttachment operation. The "output" return
  282. // value can be used to capture response data after the request's "Send" method
  283. // is called.
  284. //
  285. // See DescribeAttachment for usage and error information.
  286. //
  287. // Creating a request object using this method should be used when you want to inject
  288. // custom logic into the request's lifecycle using a custom handler, or if you want to
  289. // access properties on the request object before or after sending the request. If
  290. // you just want the service response, call the DescribeAttachment method directly
  291. // instead.
  292. //
  293. // Note: You must call the "Send" method on the returned request object in order
  294. // to execute the request.
  295. //
  296. // // Example sending a request using the DescribeAttachmentRequest method.
  297. // req, resp := client.DescribeAttachmentRequest(params)
  298. //
  299. // err := req.Send()
  300. // if err == nil { // resp is now filled
  301. // fmt.Println(resp)
  302. // }
  303. //
  304. func (c *Support) DescribeAttachmentRequest(input *DescribeAttachmentInput) (req *request.Request, output *DescribeAttachmentOutput) {
  305. op := &request.Operation{
  306. Name: opDescribeAttachment,
  307. HTTPMethod: "POST",
  308. HTTPPath: "/",
  309. }
  310. if input == nil {
  311. input = &DescribeAttachmentInput{}
  312. }
  313. req = c.newRequest(op, input, output)
  314. output = &DescribeAttachmentOutput{}
  315. req.Data = output
  316. return
  317. }
  318. // DescribeAttachment API operation for AWS Support.
  319. //
  320. // Returns the attachment that has the specified ID. Attachment IDs are generated
  321. // by the case management system when you add an attachment to a case or case
  322. // communication. Attachment IDs are returned in the AttachmentDetails objects
  323. // that are returned by the DescribeCommunications operation.
  324. //
  325. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  326. // with awserr.Error's Code and Message methods to get detailed information about
  327. // the error.
  328. //
  329. // See the AWS API reference guide for AWS Support's
  330. // API operation DescribeAttachment for usage and error information.
  331. //
  332. // Returned Error Codes:
  333. // * InternalServerError
  334. // An internal server error occurred.
  335. //
  336. // * DescribeAttachmentLimitExceeded
  337. // The limit for the number of DescribeAttachment requests in a short period
  338. // of time has been exceeded.
  339. //
  340. // * AttachmentIdNotFound
  341. // An attachment with the specified ID could not be found.
  342. //
  343. func (c *Support) DescribeAttachment(input *DescribeAttachmentInput) (*DescribeAttachmentOutput, error) {
  344. req, out := c.DescribeAttachmentRequest(input)
  345. err := req.Send()
  346. return out, err
  347. }
  348. const opDescribeCases = "DescribeCases"
  349. // DescribeCasesRequest generates a "aws/request.Request" representing the
  350. // client's request for the DescribeCases operation. The "output" return
  351. // value can be used to capture response data after the request's "Send" method
  352. // is called.
  353. //
  354. // See DescribeCases for usage and error information.
  355. //
  356. // Creating a request object using this method should be used when you want to inject
  357. // custom logic into the request's lifecycle using a custom handler, or if you want to
  358. // access properties on the request object before or after sending the request. If
  359. // you just want the service response, call the DescribeCases method directly
  360. // instead.
  361. //
  362. // Note: You must call the "Send" method on the returned request object in order
  363. // to execute the request.
  364. //
  365. // // Example sending a request using the DescribeCasesRequest method.
  366. // req, resp := client.DescribeCasesRequest(params)
  367. //
  368. // err := req.Send()
  369. // if err == nil { // resp is now filled
  370. // fmt.Println(resp)
  371. // }
  372. //
  373. func (c *Support) DescribeCasesRequest(input *DescribeCasesInput) (req *request.Request, output *DescribeCasesOutput) {
  374. op := &request.Operation{
  375. Name: opDescribeCases,
  376. HTTPMethod: "POST",
  377. HTTPPath: "/",
  378. Paginator: &request.Paginator{
  379. InputTokens: []string{"nextToken"},
  380. OutputTokens: []string{"nextToken"},
  381. LimitToken: "maxResults",
  382. TruncationToken: "",
  383. },
  384. }
  385. if input == nil {
  386. input = &DescribeCasesInput{}
  387. }
  388. req = c.newRequest(op, input, output)
  389. output = &DescribeCasesOutput{}
  390. req.Data = output
  391. return
  392. }
  393. // DescribeCases API operation for AWS Support.
  394. //
  395. // Returns a list of cases that you specify by passing one or more case IDs.
  396. // In addition, you can filter the cases by date by setting values for the afterTime
  397. // and beforeTime request parameters. You can set values for the includeResolvedCases
  398. // and includeCommunications request parameters to control how much information
  399. // is returned.
  400. //
  401. // Case data is available for 12 months after creation. If a case was created
  402. // more than 12 months ago, a request for data might cause an error.
  403. //
  404. // The response returns the following in JSON format:
  405. //
  406. // * One or more CaseDetails data types.
  407. //
  408. // * One or more nextToken values, which specify where to paginate the returned
  409. // records represented by the CaseDetails objects.
  410. //
  411. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  412. // with awserr.Error's Code and Message methods to get detailed information about
  413. // the error.
  414. //
  415. // See the AWS API reference guide for AWS Support's
  416. // API operation DescribeCases for usage and error information.
  417. //
  418. // Returned Error Codes:
  419. // * InternalServerError
  420. // An internal server error occurred.
  421. //
  422. // * CaseIdNotFound
  423. // The requested caseId could not be located.
  424. //
  425. func (c *Support) DescribeCases(input *DescribeCasesInput) (*DescribeCasesOutput, error) {
  426. req, out := c.DescribeCasesRequest(input)
  427. err := req.Send()
  428. return out, err
  429. }
  430. // DescribeCasesPages iterates over the pages of a DescribeCases operation,
  431. // calling the "fn" function with the response data for each page. To stop
  432. // iterating, return false from the fn function.
  433. //
  434. // See DescribeCases method for more information on how to use this operation.
  435. //
  436. // Note: This operation can generate multiple requests to a service.
  437. //
  438. // // Example iterating over at most 3 pages of a DescribeCases operation.
  439. // pageNum := 0
  440. // err := client.DescribeCasesPages(params,
  441. // func(page *DescribeCasesOutput, lastPage bool) bool {
  442. // pageNum++
  443. // fmt.Println(page)
  444. // return pageNum <= 3
  445. // })
  446. //
  447. func (c *Support) DescribeCasesPages(input *DescribeCasesInput, fn func(p *DescribeCasesOutput, lastPage bool) (shouldContinue bool)) error {
  448. page, _ := c.DescribeCasesRequest(input)
  449. page.Handlers.Build.PushBack(request.MakeAddToUserAgentFreeFormHandler("Paginator"))
  450. return page.EachPage(func(p interface{}, lastPage bool) bool {
  451. return fn(p.(*DescribeCasesOutput), lastPage)
  452. })
  453. }
  454. const opDescribeCommunications = "DescribeCommunications"
  455. // DescribeCommunicationsRequest generates a "aws/request.Request" representing the
  456. // client's request for the DescribeCommunications operation. The "output" return
  457. // value can be used to capture response data after the request's "Send" method
  458. // is called.
  459. //
  460. // See DescribeCommunications for usage and error information.
  461. //
  462. // Creating a request object using this method should be used when you want to inject
  463. // custom logic into the request's lifecycle using a custom handler, or if you want to
  464. // access properties on the request object before or after sending the request. If
  465. // you just want the service response, call the DescribeCommunications method directly
  466. // instead.
  467. //
  468. // Note: You must call the "Send" method on the returned request object in order
  469. // to execute the request.
  470. //
  471. // // Example sending a request using the DescribeCommunicationsRequest method.
  472. // req, resp := client.DescribeCommunicationsRequest(params)
  473. //
  474. // err := req.Send()
  475. // if err == nil { // resp is now filled
  476. // fmt.Println(resp)
  477. // }
  478. //
  479. func (c *Support) DescribeCommunicationsRequest(input *DescribeCommunicationsInput) (req *request.Request, output *DescribeCommunicationsOutput) {
  480. op := &request.Operation{
  481. Name: opDescribeCommunications,
  482. HTTPMethod: "POST",
  483. HTTPPath: "/",
  484. Paginator: &request.Paginator{
  485. InputTokens: []string{"nextToken"},
  486. OutputTokens: []string{"nextToken"},
  487. LimitToken: "maxResults",
  488. TruncationToken: "",
  489. },
  490. }
  491. if input == nil {
  492. input = &DescribeCommunicationsInput{}
  493. }
  494. req = c.newRequest(op, input, output)
  495. output = &DescribeCommunicationsOutput{}
  496. req.Data = output
  497. return
  498. }
  499. // DescribeCommunications API operation for AWS Support.
  500. //
  501. // Returns communications (and attachments) for one or more support cases. You
  502. // can use the afterTime and beforeTime parameters to filter by date. You can
  503. // use the caseId parameter to restrict the results to a particular case.
  504. //
  505. // Case data is available for 12 months after creation. If a case was created
  506. // more than 12 months ago, a request for data might cause an error.
  507. //
  508. // You can use the maxResults and nextToken parameters to control the pagination
  509. // of the result set. Set maxResults to the number of cases you want displayed
  510. // on each page, and use nextToken to specify the resumption of pagination.
  511. //
  512. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  513. // with awserr.Error's Code and Message methods to get detailed information about
  514. // the error.
  515. //
  516. // See the AWS API reference guide for AWS Support's
  517. // API operation DescribeCommunications for usage and error information.
  518. //
  519. // Returned Error Codes:
  520. // * InternalServerError
  521. // An internal server error occurred.
  522. //
  523. // * CaseIdNotFound
  524. // The requested caseId could not be located.
  525. //
  526. func (c *Support) DescribeCommunications(input *DescribeCommunicationsInput) (*DescribeCommunicationsOutput, error) {
  527. req, out := c.DescribeCommunicationsRequest(input)
  528. err := req.Send()
  529. return out, err
  530. }
  531. // DescribeCommunicationsPages iterates over the pages of a DescribeCommunications operation,
  532. // calling the "fn" function with the response data for each page. To stop
  533. // iterating, return false from the fn function.
  534. //
  535. // See DescribeCommunications method for more information on how to use this operation.
  536. //
  537. // Note: This operation can generate multiple requests to a service.
  538. //
  539. // // Example iterating over at most 3 pages of a DescribeCommunications operation.
  540. // pageNum := 0
  541. // err := client.DescribeCommunicationsPages(params,
  542. // func(page *DescribeCommunicationsOutput, lastPage bool) bool {
  543. // pageNum++
  544. // fmt.Println(page)
  545. // return pageNum <= 3
  546. // })
  547. //
  548. func (c *Support) DescribeCommunicationsPages(input *DescribeCommunicationsInput, fn func(p *DescribeCommunicationsOutput, lastPage bool) (shouldContinue bool)) error {
  549. page, _ := c.DescribeCommunicationsRequest(input)
  550. page.Handlers.Build.PushBack(request.MakeAddToUserAgentFreeFormHandler("Paginator"))
  551. return page.EachPage(func(p interface{}, lastPage bool) bool {
  552. return fn(p.(*DescribeCommunicationsOutput), lastPage)
  553. })
  554. }
  555. const opDescribeServices = "DescribeServices"
  556. // DescribeServicesRequest generates a "aws/request.Request" representing the
  557. // client's request for the DescribeServices operation. The "output" return
  558. // value can be used to capture response data after the request's "Send" method
  559. // is called.
  560. //
  561. // See DescribeServices for usage and error information.
  562. //
  563. // Creating a request object using this method should be used when you want to inject
  564. // custom logic into the request's lifecycle using a custom handler, or if you want to
  565. // access properties on the request object before or after sending the request. If
  566. // you just want the service response, call the DescribeServices method directly
  567. // instead.
  568. //
  569. // Note: You must call the "Send" method on the returned request object in order
  570. // to execute the request.
  571. //
  572. // // Example sending a request using the DescribeServicesRequest method.
  573. // req, resp := client.DescribeServicesRequest(params)
  574. //
  575. // err := req.Send()
  576. // if err == nil { // resp is now filled
  577. // fmt.Println(resp)
  578. // }
  579. //
  580. func (c *Support) DescribeServicesRequest(input *DescribeServicesInput) (req *request.Request, output *DescribeServicesOutput) {
  581. op := &request.Operation{
  582. Name: opDescribeServices,
  583. HTTPMethod: "POST",
  584. HTTPPath: "/",
  585. }
  586. if input == nil {
  587. input = &DescribeServicesInput{}
  588. }
  589. req = c.newRequest(op, input, output)
  590. output = &DescribeServicesOutput{}
  591. req.Data = output
  592. return
  593. }
  594. // DescribeServices API operation for AWS Support.
  595. //
  596. // Returns the current list of AWS services and a list of service categories
  597. // that applies to each one. You then use service names and categories in your
  598. // CreateCase requests. Each AWS service has its own set of categories.
  599. //
  600. // The service codes and category codes correspond to the values that are displayed
  601. // in the Service and Category drop-down lists on the AWS Support Center Create
  602. // Case (https://console.aws.amazon.com/support/home#/case/create) page. The
  603. // values in those fields, however, do not necessarily match the service codes
  604. // and categories returned by the DescribeServices request. Always use the service
  605. // codes and categories obtained programmatically. This practice ensures that
  606. // you always have the most recent set of service and category codes.
  607. //
  608. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  609. // with awserr.Error's Code and Message methods to get detailed information about
  610. // the error.
  611. //
  612. // See the AWS API reference guide for AWS Support's
  613. // API operation DescribeServices for usage and error information.
  614. //
  615. // Returned Error Codes:
  616. // * InternalServerError
  617. // An internal server error occurred.
  618. //
  619. func (c *Support) DescribeServices(input *DescribeServicesInput) (*DescribeServicesOutput, error) {
  620. req, out := c.DescribeServicesRequest(input)
  621. err := req.Send()
  622. return out, err
  623. }
  624. const opDescribeSeverityLevels = "DescribeSeverityLevels"
  625. // DescribeSeverityLevelsRequest generates a "aws/request.Request" representing the
  626. // client's request for the DescribeSeverityLevels operation. The "output" return
  627. // value can be used to capture response data after the request's "Send" method
  628. // is called.
  629. //
  630. // See DescribeSeverityLevels for usage and error information.
  631. //
  632. // Creating a request object using this method should be used when you want to inject
  633. // custom logic into the request's lifecycle using a custom handler, or if you want to
  634. // access properties on the request object before or after sending the request. If
  635. // you just want the service response, call the DescribeSeverityLevels method directly
  636. // instead.
  637. //
  638. // Note: You must call the "Send" method on the returned request object in order
  639. // to execute the request.
  640. //
  641. // // Example sending a request using the DescribeSeverityLevelsRequest method.
  642. // req, resp := client.DescribeSeverityLevelsRequest(params)
  643. //
  644. // err := req.Send()
  645. // if err == nil { // resp is now filled
  646. // fmt.Println(resp)
  647. // }
  648. //
  649. func (c *Support) DescribeSeverityLevelsRequest(input *DescribeSeverityLevelsInput) (req *request.Request, output *DescribeSeverityLevelsOutput) {
  650. op := &request.Operation{
  651. Name: opDescribeSeverityLevels,
  652. HTTPMethod: "POST",
  653. HTTPPath: "/",
  654. }
  655. if input == nil {
  656. input = &DescribeSeverityLevelsInput{}
  657. }
  658. req = c.newRequest(op, input, output)
  659. output = &DescribeSeverityLevelsOutput{}
  660. req.Data = output
  661. return
  662. }
  663. // DescribeSeverityLevels API operation for AWS Support.
  664. //
  665. // Returns the list of severity levels that you can assign to an AWS Support
  666. // case. The severity level for a case is also a field in the CaseDetails data
  667. // type included in any CreateCase request.
  668. //
  669. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  670. // with awserr.Error's Code and Message methods to get detailed information about
  671. // the error.
  672. //
  673. // See the AWS API reference guide for AWS Support's
  674. // API operation DescribeSeverityLevels for usage and error information.
  675. //
  676. // Returned Error Codes:
  677. // * InternalServerError
  678. // An internal server error occurred.
  679. //
  680. func (c *Support) DescribeSeverityLevels(input *DescribeSeverityLevelsInput) (*DescribeSeverityLevelsOutput, error) {
  681. req, out := c.DescribeSeverityLevelsRequest(input)
  682. err := req.Send()
  683. return out, err
  684. }
  685. const opDescribeTrustedAdvisorCheckRefreshStatuses = "DescribeTrustedAdvisorCheckRefreshStatuses"
  686. // DescribeTrustedAdvisorCheckRefreshStatusesRequest generates a "aws/request.Request" representing the
  687. // client's request for the DescribeTrustedAdvisorCheckRefreshStatuses operation. The "output" return
  688. // value can be used to capture response data after the request's "Send" method
  689. // is called.
  690. //
  691. // See DescribeTrustedAdvisorCheckRefreshStatuses for usage and error information.
  692. //
  693. // Creating a request object using this method should be used when you want to inject
  694. // custom logic into the request's lifecycle using a custom handler, or if you want to
  695. // access properties on the request object before or after sending the request. If
  696. // you just want the service response, call the DescribeTrustedAdvisorCheckRefreshStatuses method directly
  697. // instead.
  698. //
  699. // Note: You must call the "Send" method on the returned request object in order
  700. // to execute the request.
  701. //
  702. // // Example sending a request using the DescribeTrustedAdvisorCheckRefreshStatusesRequest method.
  703. // req, resp := client.DescribeTrustedAdvisorCheckRefreshStatusesRequest(params)
  704. //
  705. // err := req.Send()
  706. // if err == nil { // resp is now filled
  707. // fmt.Println(resp)
  708. // }
  709. //
  710. func (c *Support) DescribeTrustedAdvisorCheckRefreshStatusesRequest(input *DescribeTrustedAdvisorCheckRefreshStatusesInput) (req *request.Request, output *DescribeTrustedAdvisorCheckRefreshStatusesOutput) {
  711. op := &request.Operation{
  712. Name: opDescribeTrustedAdvisorCheckRefreshStatuses,
  713. HTTPMethod: "POST",
  714. HTTPPath: "/",
  715. }
  716. if input == nil {
  717. input = &DescribeTrustedAdvisorCheckRefreshStatusesInput{}
  718. }
  719. req = c.newRequest(op, input, output)
  720. output = &DescribeTrustedAdvisorCheckRefreshStatusesOutput{}
  721. req.Data = output
  722. return
  723. }
  724. // DescribeTrustedAdvisorCheckRefreshStatuses API operation for AWS Support.
  725. //
  726. // Returns the refresh status of the Trusted Advisor checks that have the specified
  727. // check IDs. Check IDs can be obtained by calling DescribeTrustedAdvisorChecks.
  728. //
  729. // Some checks are refreshed automatically, and their refresh statuses cannot
  730. // be retrieved by using this operation. Use of the DescribeTrustedAdvisorCheckRefreshStatuses
  731. // operation for these checks causes an InvalidParameterValue error.
  732. //
  733. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  734. // with awserr.Error's Code and Message methods to get detailed information about
  735. // the error.
  736. //
  737. // See the AWS API reference guide for AWS Support's
  738. // API operation DescribeTrustedAdvisorCheckRefreshStatuses for usage and error information.
  739. //
  740. // Returned Error Codes:
  741. // * InternalServerError
  742. // An internal server error occurred.
  743. //
  744. func (c *Support) DescribeTrustedAdvisorCheckRefreshStatuses(input *DescribeTrustedAdvisorCheckRefreshStatusesInput) (*DescribeTrustedAdvisorCheckRefreshStatusesOutput, error) {
  745. req, out := c.DescribeTrustedAdvisorCheckRefreshStatusesRequest(input)
  746. err := req.Send()
  747. return out, err
  748. }
  749. const opDescribeTrustedAdvisorCheckResult = "DescribeTrustedAdvisorCheckResult"
  750. // DescribeTrustedAdvisorCheckResultRequest generates a "aws/request.Request" representing the
  751. // client's request for the DescribeTrustedAdvisorCheckResult operation. The "output" return
  752. // value can be used to capture response data after the request's "Send" method
  753. // is called.
  754. //
  755. // See DescribeTrustedAdvisorCheckResult for usage and error information.
  756. //
  757. // Creating a request object using this method should be used when you want to inject
  758. // custom logic into the request's lifecycle using a custom handler, or if you want to
  759. // access properties on the request object before or after sending the request. If
  760. // you just want the service response, call the DescribeTrustedAdvisorCheckResult method directly
  761. // instead.
  762. //
  763. // Note: You must call the "Send" method on the returned request object in order
  764. // to execute the request.
  765. //
  766. // // Example sending a request using the DescribeTrustedAdvisorCheckResultRequest method.
  767. // req, resp := client.DescribeTrustedAdvisorCheckResultRequest(params)
  768. //
  769. // err := req.Send()
  770. // if err == nil { // resp is now filled
  771. // fmt.Println(resp)
  772. // }
  773. //
  774. func (c *Support) DescribeTrustedAdvisorCheckResultRequest(input *DescribeTrustedAdvisorCheckResultInput) (req *request.Request, output *DescribeTrustedAdvisorCheckResultOutput) {
  775. op := &request.Operation{
  776. Name: opDescribeTrustedAdvisorCheckResult,
  777. HTTPMethod: "POST",
  778. HTTPPath: "/",
  779. }
  780. if input == nil {
  781. input = &DescribeTrustedAdvisorCheckResultInput{}
  782. }
  783. req = c.newRequest(op, input, output)
  784. output = &DescribeTrustedAdvisorCheckResultOutput{}
  785. req.Data = output
  786. return
  787. }
  788. // DescribeTrustedAdvisorCheckResult API operation for AWS Support.
  789. //
  790. // Returns the results of the Trusted Advisor check that has the specified check
  791. // ID. Check IDs can be obtained by calling DescribeTrustedAdvisorChecks.
  792. //
  793. // The response contains a TrustedAdvisorCheckResult object, which contains
  794. // these three objects:
  795. //
  796. // * TrustedAdvisorCategorySpecificSummary
  797. //
  798. // * TrustedAdvisorResourceDetail
  799. //
  800. // * TrustedAdvisorResourcesSummary
  801. //
  802. // In addition, the response contains these fields:
  803. //
  804. // * status. The alert status of the check: "ok" (green), "warning" (yellow),
  805. // "error" (red), or "not_available".
  806. //
  807. // * timestamp. The time of the last refresh of the check.
  808. //
  809. // * checkId. The unique identifier for the check.
  810. //
  811. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  812. // with awserr.Error's Code and Message methods to get detailed information about
  813. // the error.
  814. //
  815. // See the AWS API reference guide for AWS Support's
  816. // API operation DescribeTrustedAdvisorCheckResult for usage and error information.
  817. //
  818. // Returned Error Codes:
  819. // * InternalServerError
  820. // An internal server error occurred.
  821. //
  822. func (c *Support) DescribeTrustedAdvisorCheckResult(input *DescribeTrustedAdvisorCheckResultInput) (*DescribeTrustedAdvisorCheckResultOutput, error) {
  823. req, out := c.DescribeTrustedAdvisorCheckResultRequest(input)
  824. err := req.Send()
  825. return out, err
  826. }
  827. const opDescribeTrustedAdvisorCheckSummaries = "DescribeTrustedAdvisorCheckSummaries"
  828. // DescribeTrustedAdvisorCheckSummariesRequest generates a "aws/request.Request" representing the
  829. // client's request for the DescribeTrustedAdvisorCheckSummaries operation. The "output" return
  830. // value can be used to capture response data after the request's "Send" method
  831. // is called.
  832. //
  833. // See DescribeTrustedAdvisorCheckSummaries for usage and error information.
  834. //
  835. // Creating a request object using this method should be used when you want to inject
  836. // custom logic into the request's lifecycle using a custom handler, or if you want to
  837. // access properties on the request object before or after sending the request. If
  838. // you just want the service response, call the DescribeTrustedAdvisorCheckSummaries method directly
  839. // instead.
  840. //
  841. // Note: You must call the "Send" method on the returned request object in order
  842. // to execute the request.
  843. //
  844. // // Example sending a request using the DescribeTrustedAdvisorCheckSummariesRequest method.
  845. // req, resp := client.DescribeTrustedAdvisorCheckSummariesRequest(params)
  846. //
  847. // err := req.Send()
  848. // if err == nil { // resp is now filled
  849. // fmt.Println(resp)
  850. // }
  851. //
  852. func (c *Support) DescribeTrustedAdvisorCheckSummariesRequest(input *DescribeTrustedAdvisorCheckSummariesInput) (req *request.Request, output *DescribeTrustedAdvisorCheckSummariesOutput) {
  853. op := &request.Operation{
  854. Name: opDescribeTrustedAdvisorCheckSummaries,
  855. HTTPMethod: "POST",
  856. HTTPPath: "/",
  857. }
  858. if input == nil {
  859. input = &DescribeTrustedAdvisorCheckSummariesInput{}
  860. }
  861. req = c.newRequest(op, input, output)
  862. output = &DescribeTrustedAdvisorCheckSummariesOutput{}
  863. req.Data = output
  864. return
  865. }
  866. // DescribeTrustedAdvisorCheckSummaries API operation for AWS Support.
  867. //
  868. // Returns the summaries of the results of the Trusted Advisor checks that have
  869. // the specified check IDs. Check IDs can be obtained by calling DescribeTrustedAdvisorChecks.
  870. //
  871. // The response contains an array of TrustedAdvisorCheckSummary objects.
  872. //
  873. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  874. // with awserr.Error's Code and Message methods to get detailed information about
  875. // the error.
  876. //
  877. // See the AWS API reference guide for AWS Support's
  878. // API operation DescribeTrustedAdvisorCheckSummaries for usage and error information.
  879. //
  880. // Returned Error Codes:
  881. // * InternalServerError
  882. // An internal server error occurred.
  883. //
  884. func (c *Support) DescribeTrustedAdvisorCheckSummaries(input *DescribeTrustedAdvisorCheckSummariesInput) (*DescribeTrustedAdvisorCheckSummariesOutput, error) {
  885. req, out := c.DescribeTrustedAdvisorCheckSummariesRequest(input)
  886. err := req.Send()
  887. return out, err
  888. }
  889. const opDescribeTrustedAdvisorChecks = "DescribeTrustedAdvisorChecks"
  890. // DescribeTrustedAdvisorChecksRequest generates a "aws/request.Request" representing the
  891. // client's request for the DescribeTrustedAdvisorChecks operation. The "output" return
  892. // value can be used to capture response data after the request's "Send" method
  893. // is called.
  894. //
  895. // See DescribeTrustedAdvisorChecks for usage and error information.
  896. //
  897. // Creating a request object using this method should be used when you want to inject
  898. // custom logic into the request's lifecycle using a custom handler, or if you want to
  899. // access properties on the request object before or after sending the request. If
  900. // you just want the service response, call the DescribeTrustedAdvisorChecks method directly
  901. // instead.
  902. //
  903. // Note: You must call the "Send" method on the returned request object in order
  904. // to execute the request.
  905. //
  906. // // Example sending a request using the DescribeTrustedAdvisorChecksRequest method.
  907. // req, resp := client.DescribeTrustedAdvisorChecksRequest(params)
  908. //
  909. // err := req.Send()
  910. // if err == nil { // resp is now filled
  911. // fmt.Println(resp)
  912. // }
  913. //
  914. func (c *Support) DescribeTrustedAdvisorChecksRequest(input *DescribeTrustedAdvisorChecksInput) (req *request.Request, output *DescribeTrustedAdvisorChecksOutput) {
  915. op := &request.Operation{
  916. Name: opDescribeTrustedAdvisorChecks,
  917. HTTPMethod: "POST",
  918. HTTPPath: "/",
  919. }
  920. if input == nil {
  921. input = &DescribeTrustedAdvisorChecksInput{}
  922. }
  923. req = c.newRequest(op, input, output)
  924. output = &DescribeTrustedAdvisorChecksOutput{}
  925. req.Data = output
  926. return
  927. }
  928. // DescribeTrustedAdvisorChecks API operation for AWS Support.
  929. //
  930. // Returns information about all available Trusted Advisor checks, including
  931. // name, ID, category, description, and metadata. You must specify a language
  932. // code; English ("en") and Japanese ("ja") are currently supported. The response
  933. // contains a TrustedAdvisorCheckDescription for each check.
  934. //
  935. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  936. // with awserr.Error's Code and Message methods to get detailed information about
  937. // the error.
  938. //
  939. // See the AWS API reference guide for AWS Support's
  940. // API operation DescribeTrustedAdvisorChecks for usage and error information.
  941. //
  942. // Returned Error Codes:
  943. // * InternalServerError
  944. // An internal server error occurred.
  945. //
  946. func (c *Support) DescribeTrustedAdvisorChecks(input *DescribeTrustedAdvisorChecksInput) (*DescribeTrustedAdvisorChecksOutput, error) {
  947. req, out := c.DescribeTrustedAdvisorChecksRequest(input)
  948. err := req.Send()
  949. return out, err
  950. }
  951. const opRefreshTrustedAdvisorCheck = "RefreshTrustedAdvisorCheck"
  952. // RefreshTrustedAdvisorCheckRequest generates a "aws/request.Request" representing the
  953. // client's request for the RefreshTrustedAdvisorCheck operation. The "output" return
  954. // value can be used to capture response data after the request's "Send" method
  955. // is called.
  956. //
  957. // See RefreshTrustedAdvisorCheck for usage and error information.
  958. //
  959. // Creating a request object using this method should be used when you want to inject
  960. // custom logic into the request's lifecycle using a custom handler, or if you want to
  961. // access properties on the request object before or after sending the request. If
  962. // you just want the service response, call the RefreshTrustedAdvisorCheck method directly
  963. // instead.
  964. //
  965. // Note: You must call the "Send" method on the returned request object in order
  966. // to execute the request.
  967. //
  968. // // Example sending a request using the RefreshTrustedAdvisorCheckRequest method.
  969. // req, resp := client.RefreshTrustedAdvisorCheckRequest(params)
  970. //
  971. // err := req.Send()
  972. // if err == nil { // resp is now filled
  973. // fmt.Println(resp)
  974. // }
  975. //
  976. func (c *Support) RefreshTrustedAdvisorCheckRequest(input *RefreshTrustedAdvisorCheckInput) (req *request.Request, output *RefreshTrustedAdvisorCheckOutput) {
  977. op := &request.Operation{
  978. Name: opRefreshTrustedAdvisorCheck,
  979. HTTPMethod: "POST",
  980. HTTPPath: "/",
  981. }
  982. if input == nil {
  983. input = &RefreshTrustedAdvisorCheckInput{}
  984. }
  985. req = c.newRequest(op, input, output)
  986. output = &RefreshTrustedAdvisorCheckOutput{}
  987. req.Data = output
  988. return
  989. }
  990. // RefreshTrustedAdvisorCheck API operation for AWS Support.
  991. //
  992. // Requests a refresh of the Trusted Advisor check that has the specified check
  993. // ID. Check IDs can be obtained by calling DescribeTrustedAdvisorChecks.
  994. //
  995. // Some checks are refreshed automatically, and they cannot be refreshed by
  996. // using this operation. Use of the RefreshTrustedAdvisorCheck operation for
  997. // these checks causes an InvalidParameterValue error.
  998. //
  999. // The response contains a TrustedAdvisorCheckRefreshStatus object, which contains
  1000. // these fields:
  1001. //
  1002. // * status. The refresh status of the check: "none", "enqueued", "processing",
  1003. // "success", or "abandoned".
  1004. //
  1005. // * millisUntilNextRefreshable. The amount of time, in milliseconds, until
  1006. // the check is eligible for refresh.
  1007. //
  1008. // * checkId. The unique identifier for the check.
  1009. //
  1010. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  1011. // with awserr.Error's Code and Message methods to get detailed information about
  1012. // the error.
  1013. //
  1014. // See the AWS API reference guide for AWS Support's
  1015. // API operation RefreshTrustedAdvisorCheck for usage and error information.
  1016. //
  1017. // Returned Error Codes:
  1018. // * InternalServerError
  1019. // An internal server error occurred.
  1020. //
  1021. func (c *Support) RefreshTrustedAdvisorCheck(input *RefreshTrustedAdvisorCheckInput) (*RefreshTrustedAdvisorCheckOutput, error) {
  1022. req, out := c.RefreshTrustedAdvisorCheckRequest(input)
  1023. err := req.Send()
  1024. return out, err
  1025. }
  1026. const opResolveCase = "ResolveCase"
  1027. // ResolveCaseRequest generates a "aws/request.Request" representing the
  1028. // client's request for the ResolveCase operation. The "output" return
  1029. // value can be used to capture response data after the request's "Send" method
  1030. // is called.
  1031. //
  1032. // See ResolveCase for usage and error information.
  1033. //
  1034. // Creating a request object using this method should be used when you want to inject
  1035. // custom logic into the request's lifecycle using a custom handler, or if you want to
  1036. // access properties on the request object before or after sending the request. If
  1037. // you just want the service response, call the ResolveCase method directly
  1038. // instead.
  1039. //
  1040. // Note: You must call the "Send" method on the returned request object in order
  1041. // to execute the request.
  1042. //
  1043. // // Example sending a request using the ResolveCaseRequest method.
  1044. // req, resp := client.ResolveCaseRequest(params)
  1045. //
  1046. // err := req.Send()
  1047. // if err == nil { // resp is now filled
  1048. // fmt.Println(resp)
  1049. // }
  1050. //
  1051. func (c *Support) ResolveCaseRequest(input *ResolveCaseInput) (req *request.Request, output *ResolveCaseOutput) {
  1052. op := &request.Operation{
  1053. Name: opResolveCase,
  1054. HTTPMethod: "POST",
  1055. HTTPPath: "/",
  1056. }
  1057. if input == nil {
  1058. input = &ResolveCaseInput{}
  1059. }
  1060. req = c.newRequest(op, input, output)
  1061. output = &ResolveCaseOutput{}
  1062. req.Data = output
  1063. return
  1064. }
  1065. // ResolveCase API operation for AWS Support.
  1066. //
  1067. // Takes a caseId and returns the initial state of the case along with the state
  1068. // of the case after the call to ResolveCase completed.
  1069. //
  1070. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  1071. // with awserr.Error's Code and Message methods to get detailed information about
  1072. // the error.
  1073. //
  1074. // See the AWS API reference guide for AWS Support's
  1075. // API operation ResolveCase for usage and error information.
  1076. //
  1077. // Returned Error Codes:
  1078. // * InternalServerError
  1079. // An internal server error occurred.
  1080. //
  1081. // * CaseIdNotFound
  1082. // The requested caseId could not be located.
  1083. //
  1084. func (c *Support) ResolveCase(input *ResolveCaseInput) (*ResolveCaseOutput, error) {
  1085. req, out := c.ResolveCaseRequest(input)
  1086. err := req.Send()
  1087. return out, err
  1088. }
  1089. type AddAttachmentsToSetInput struct {
  1090. _ struct{} `type:"structure"`
  1091. // The ID of the attachment set. If an attachmentSetId is not specified, a new
  1092. // attachment set is created, and the ID of the set is returned in the response.
  1093. // If an attachmentSetId is specified, the attachments are added to the specified
  1094. // set, if it exists.
  1095. AttachmentSetId *string `locationName:"attachmentSetId" type:"string"`
  1096. // One or more attachments to add to the set. The limit is 3 attachments per
  1097. // set, and the size limit is 5 MB per attachment.
  1098. //
  1099. // Attachments is a required field
  1100. Attachments []*Attachment `locationName:"attachments" type:"list" required:"true"`
  1101. }
  1102. // String returns the string representation
  1103. func (s AddAttachmentsToSetInput) String() string {
  1104. return awsutil.Prettify(s)
  1105. }
  1106. // GoString returns the string representation
  1107. func (s AddAttachmentsToSetInput) GoString() string {
  1108. return s.String()
  1109. }
  1110. // Validate inspects the fields of the type to determine if they are valid.
  1111. func (s *AddAttachmentsToSetInput) Validate() error {
  1112. invalidParams := request.ErrInvalidParams{Context: "AddAttachmentsToSetInput"}
  1113. if s.Attachments == nil {
  1114. invalidParams.Add(request.NewErrParamRequired("Attachments"))
  1115. }
  1116. if invalidParams.Len() > 0 {
  1117. return invalidParams
  1118. }
  1119. return nil
  1120. }
  1121. // The ID and expiry time of the attachment set returned by the AddAttachmentsToSet
  1122. // operation.
  1123. type AddAttachmentsToSetOutput struct {
  1124. _ struct{} `type:"structure"`
  1125. // The ID of the attachment set. If an attachmentSetId was not specified, a
  1126. // new attachment set is created, and the ID of the set is returned in the response.
  1127. // If an attachmentSetId was specified, the attachments are added to the specified
  1128. // set, if it exists.
  1129. AttachmentSetId *string `locationName:"attachmentSetId" type:"string"`
  1130. // The time and date when the attachment set expires.
  1131. ExpiryTime *string `locationName:"expiryTime" type:"string"`
  1132. }
  1133. // String returns the string representation
  1134. func (s AddAttachmentsToSetOutput) String() string {
  1135. return awsutil.Prettify(s)
  1136. }
  1137. // GoString returns the string representation
  1138. func (s AddAttachmentsToSetOutput) GoString() string {
  1139. return s.String()
  1140. }
  1141. // To be written.
  1142. type AddCommunicationToCaseInput struct {
  1143. _ struct{} `type:"structure"`
  1144. // The ID of a set of one or more attachments for the communication to add to
  1145. // the case. Create the set by calling AddAttachmentsToSet
  1146. AttachmentSetId *string `locationName:"attachmentSetId" type:"string"`
  1147. // The AWS Support case ID requested or returned in the call. The case ID is
  1148. // an alphanumeric string formatted as shown in this example: case-12345678910-2013-c4c1d2bf33c5cf47
  1149. CaseId *string `locationName:"caseId" type:"string"`
  1150. // The email addresses in the CC line of an email to be added to the support
  1151. // case.
  1152. CcEmailAddresses []*string `locationName:"ccEmailAddresses" type:"list"`
  1153. // The body of an email communication to add to the support case.
  1154. //
  1155. // CommunicationBody is a required field
  1156. CommunicationBody *string `locationName:"communicationBody" min:"1" type:"string" required:"true"`
  1157. }
  1158. // String returns the string representation
  1159. func (s AddCommunicationToCaseInput) String() string {
  1160. return awsutil.Prettify(s)
  1161. }
  1162. // GoString returns the string representation
  1163. func (s AddCommunicationToCaseInput) GoString() string {
  1164. return s.String()
  1165. }
  1166. // Validate inspects the fields of the type to determine if they are valid.
  1167. func (s *AddCommunicationToCaseInput) Validate() error {
  1168. invalidParams := request.ErrInvalidParams{Context: "AddCommunicationToCaseInput"}
  1169. if s.CommunicationBody == nil {
  1170. invalidParams.Add(request.NewErrParamRequired("CommunicationBody"))
  1171. }
  1172. if s.CommunicationBody != nil && len(*s.CommunicationBody) < 1 {
  1173. invalidParams.Add(request.NewErrParamMinLen("CommunicationBody", 1))
  1174. }
  1175. if invalidParams.Len() > 0 {
  1176. return invalidParams
  1177. }
  1178. return nil
  1179. }
  1180. // The result of the AddCommunicationToCase operation.
  1181. type AddCommunicationToCaseOutput struct {
  1182. _ struct{} `type:"structure"`
  1183. // True if AddCommunicationToCase succeeds. Otherwise, returns an error.
  1184. Result *bool `locationName:"result" type:"boolean"`
  1185. }
  1186. // String returns the string representation
  1187. func (s AddCommunicationToCaseOutput) String() string {
  1188. return awsutil.Prettify(s)
  1189. }
  1190. // GoString returns the string representation
  1191. func (s AddCommunicationToCaseOutput) GoString() string {
  1192. return s.String()
  1193. }
  1194. // An attachment to a case communication. The attachment consists of the file
  1195. // name and the content of the file.
  1196. type Attachment struct {
  1197. _ struct{} `type:"structure"`
  1198. // The content of the attachment file.
  1199. //
  1200. // Data is automatically base64 encoded/decoded by the SDK.
  1201. Data []byte `locationName:"data" type:"blob"`
  1202. // The name of the attachment file.
  1203. FileName *string `locationName:"fileName" type:"string"`
  1204. }
  1205. // String returns the string representation
  1206. func (s Attachment) String() string {
  1207. return awsutil.Prettify(s)
  1208. }
  1209. // GoString returns the string representation
  1210. func (s Attachment) GoString() string {
  1211. return s.String()
  1212. }
  1213. // The file name and ID of an attachment to a case communication. You can use
  1214. // the ID to retrieve the attachment with the DescribeAttachment operation.
  1215. type AttachmentDetails struct {
  1216. _ struct{} `type:"structure"`
  1217. // The ID of the attachment.
  1218. AttachmentId *string `locationName:"attachmentId" type:"string"`
  1219. // The file name of the attachment.
  1220. FileName *string `locationName:"fileName" type:"string"`
  1221. }
  1222. // String returns the string representation
  1223. func (s AttachmentDetails) String() string {
  1224. return awsutil.Prettify(s)
  1225. }
  1226. // GoString returns the string representation
  1227. func (s AttachmentDetails) GoString() string {
  1228. return s.String()
  1229. }
  1230. // A JSON-formatted object that contains the metadata for a support case. It
  1231. // is contained the response from a DescribeCases request. CaseDetails contains
  1232. // the following fields:
  1233. //
  1234. // * caseId. The AWS Support case ID requested or returned in the call. The
  1235. // case ID is an alphanumeric string formatted as shown in this example:
  1236. // case-12345678910-2013-c4c1d2bf33c5cf47.
  1237. //
  1238. // * categoryCode. The category of problem for the AWS Support case. Corresponds
  1239. // to the CategoryCode values returned by a call to DescribeServices.
  1240. //
  1241. // * displayId. The identifier for the case on pages in the AWS Support Center.
  1242. //
  1243. // * language. The ISO 639-1 code for the language in which AWS provides
  1244. // support. AWS Support currently supports English ("en") and Japanese ("ja").
  1245. // Language parameters must be passed explicitly for operations that take
  1246. // them.
  1247. //
  1248. // * recentCommunications. One or more Communication objects. Fields of these
  1249. // objects are attachments, body, caseId, submittedBy, and timeCreated.
  1250. //
  1251. // * nextToken. A resumption point for pagination.
  1252. //
  1253. // * serviceCode. The identifier for the AWS service that corresponds to
  1254. // the service code defined in the call to DescribeServices.
  1255. //
  1256. // * severityCode. The severity code assigned to the case. Contains one of
  1257. // the values returned by the call to DescribeSeverityLevels.
  1258. //
  1259. // * status. The status of the case in the AWS Support Center.
  1260. //
  1261. // * subject. The subject line of the case.
  1262. //
  1263. // * submittedBy. The email address of the account that submitted the case.
  1264. //
  1265. // * timeCreated. The time the case was created, in ISO-8601 format.
  1266. type CaseDetails struct {
  1267. _ struct{} `type:"structure"`
  1268. // The AWS Support case ID requested or returned in the call. The case ID is
  1269. // an alphanumeric string formatted as shown in this example: case-12345678910-2013-c4c1d2bf33c5cf47
  1270. CaseId *string `locationName:"caseId" type:"string"`
  1271. // The category of problem for the AWS Support case.
  1272. CategoryCode *string `locationName:"categoryCode" type:"string"`
  1273. // The email addresses that receive copies of communication about the case.
  1274. CcEmailAddresses []*string `locationName:"ccEmailAddresses" type:"list"`
  1275. // The ID displayed for the case in the AWS Support Center. This is a numeric
  1276. // string.
  1277. DisplayId *string `locationName:"displayId" type:"string"`
  1278. // The ISO 639-1 code for the language in which AWS provides support. AWS Support
  1279. // currently supports English ("en") and Japanese ("ja"). Language parameters
  1280. // must be passed explicitly for operations that take them.
  1281. Language *string `locationName:"language" type:"string"`
  1282. // The five most recent communications between you and AWS Support Center, including
  1283. // the IDs of any attachments to the communications. Also includes a nextToken
  1284. // that you can use to retrieve earlier communications.
  1285. RecentCommunications *RecentCaseCommunications `locationName:"recentCommunications" type:"structure"`
  1286. // The code for the AWS service returned by the call to DescribeServices.
  1287. ServiceCode *string `locationName:"serviceCode" type:"string"`
  1288. // The code for the severity level returned by the call to DescribeSeverityLevels.
  1289. SeverityCode *string `locationName:"severityCode" type:"string"`
  1290. // The status of the case.
  1291. Status *string `locationName:"status" type:"string"`
  1292. // The subject line for the case in the AWS Support Center.
  1293. Subject *string `locationName:"subject" type:"string"`
  1294. // The email address of the account that submitted the case.
  1295. SubmittedBy *string `locationName:"submittedBy" type:"string"`
  1296. // The time that the case was case created in the AWS Support Center.
  1297. TimeCreated *string `locationName:"timeCreated" type:"string"`
  1298. }
  1299. // String returns the string representation
  1300. func (s CaseDetails) String() string {
  1301. return awsutil.Prettify(s)
  1302. }
  1303. // GoString returns the string representation
  1304. func (s CaseDetails) GoString() string {
  1305. return s.String()
  1306. }
  1307. // A JSON-formatted name/value pair that represents the category name and category
  1308. // code of the problem, selected from the DescribeServices response for each
  1309. // AWS service.
  1310. type Category struct {
  1311. _ struct{} `type:"structure"`
  1312. // The category code for the support case.
  1313. Code *string `locationName:"code" type:"string"`
  1314. // The category name for the support case.
  1315. Name *string `locationName:"name" type:"string"`
  1316. }
  1317. // String returns the string representation
  1318. func (s Category) String() string {
  1319. return awsutil.Prettify(s)
  1320. }
  1321. // GoString returns the string representation
  1322. func (s Category) GoString() string {
  1323. return s.String()
  1324. }
  1325. // A communication associated with an AWS Support case. The communication consists
  1326. // of the case ID, the message body, attachment information, the account email
  1327. // address, and the date and time of the communication.
  1328. type Communication struct {
  1329. _ struct{} `type:"structure"`
  1330. // Information about the attachments to the case communication.
  1331. AttachmentSet []*AttachmentDetails `locationName:"attachmentSet" type:"list"`
  1332. // The text of the communication between the customer and AWS Support.
  1333. Body *string `locationName:"body" min:"1" type:"string"`
  1334. // The AWS Support case ID requested or returned in the call. The case ID is
  1335. // an alphanumeric string formatted as shown in this example: case-12345678910-2013-c4c1d2bf33c5cf47
  1336. CaseId *string `locationName:"caseId" type:"string"`
  1337. // The email address of the account that submitted the AWS Support case.
  1338. SubmittedBy *string `locationName:"submittedBy" type:"string"`
  1339. // The time the communication was created.
  1340. TimeCreated *string `locationName:"timeCreated" type:"string"`
  1341. }
  1342. // String returns the string representation
  1343. func (s Communication) String() string {
  1344. return awsutil.Prettify(s)
  1345. }
  1346. // GoString returns the string representation
  1347. func (s Communication) GoString() string {
  1348. return s.String()
  1349. }
  1350. type CreateCaseInput struct {
  1351. _ struct{} `type:"structure"`
  1352. // The ID of a set of one or more attachments for the case. Create the set by
  1353. // using AddAttachmentsToSet.
  1354. AttachmentSetId *string `locationName:"attachmentSetId" type:"string"`
  1355. // The category of problem for the AWS Support case.
  1356. CategoryCode *string `locationName:"categoryCode" type:"string"`
  1357. // A list of email addresses that AWS Support copies on case correspondence.
  1358. CcEmailAddresses []*string `locationName:"ccEmailAddresses" type:"list"`
  1359. // The communication body text when you create an AWS Support case by calling
  1360. // CreateCase.
  1361. //
  1362. // CommunicationBody is a required field
  1363. CommunicationBody *string `locationName:"communicationBody" min:"1" type:"string" required:"true"`
  1364. // The type of issue for the case. You can specify either "customer-service"
  1365. // or "technical." If you do not indicate a value, the default is "technical."
  1366. IssueType *string `locationName:"issueType" type:"string"`
  1367. // The ISO 639-1 code for the language in which AWS provides support. AWS Support
  1368. // currently supports English ("en") and Japanese ("ja"). Language parameters
  1369. // must be passed explicitly for operations that take them.
  1370. Language *string `locationName:"language" type:"string"`
  1371. // The code for the AWS service returned by the call to DescribeServices.
  1372. ServiceCode *string `locationName:"serviceCode" type:"string"`
  1373. // The code for the severity level returned by the call to DescribeSeverityLevels.
  1374. //
  1375. // The availability of severity levels depends on each customer's support subscription.
  1376. // In other words, your subscription may not necessarily require the urgent
  1377. // level of response time.
  1378. SeverityCode *string `locationName:"severityCode" type:"string"`
  1379. // The title of the AWS Support case.
  1380. //
  1381. // Subject is a required field
  1382. Subject *string `locationName:"subject" type:"string" required:"true"`
  1383. }
  1384. // String returns the string representation
  1385. func (s CreateCaseInput) String() string {
  1386. return awsutil.Prettify(s)
  1387. }
  1388. // GoString returns the string representation
  1389. func (s CreateCaseInput) GoString() string {
  1390. return s.String()
  1391. }
  1392. // Validate inspects the fields of the type to determine if they are valid.
  1393. func (s *CreateCaseInput) Validate() error {
  1394. invalidParams := request.ErrInvalidParams{Context: "CreateCaseInput"}
  1395. if s.CommunicationBody == nil {
  1396. invalidParams.Add(request.NewErrParamRequired("CommunicationBody"))
  1397. }
  1398. if s.CommunicationBody != nil && len(*s.CommunicationBody) < 1 {
  1399. invalidParams.Add(request.NewErrParamMinLen("CommunicationBody", 1))
  1400. }
  1401. if s.Subject == nil {
  1402. invalidParams.Add(request.NewErrParamRequired("Subject"))
  1403. }
  1404. if invalidParams.Len() > 0 {
  1405. return invalidParams
  1406. }
  1407. return nil
  1408. }
  1409. // The AWS Support case ID returned by a successful completion of the CreateCase
  1410. // operation.
  1411. type CreateCaseOutput struct {
  1412. _ struct{} `type:"structure"`
  1413. // The AWS Support case ID requested or returned in the call. The case ID is
  1414. // an alphanumeric string formatted as shown in this example: case-12345678910-2013-c4c1d2bf33c5cf47
  1415. CaseId *string `locationName:"caseId" type:"string"`
  1416. }
  1417. // String returns the string representation
  1418. func (s CreateCaseOutput) String() string {
  1419. return awsutil.Prettify(s)
  1420. }
  1421. // GoString returns the string representation
  1422. func (s CreateCaseOutput) GoString() string {
  1423. return s.String()
  1424. }
  1425. type DescribeAttachmentInput struct {
  1426. _ struct{} `type:"structure"`
  1427. // The ID of the attachment to return. Attachment IDs are returned by the DescribeCommunications
  1428. // operation.
  1429. //
  1430. // AttachmentId is a required field
  1431. AttachmentId *string `locationName:"attachmentId" type:"string" required:"true"`
  1432. }
  1433. // String returns the string representation
  1434. func (s DescribeAttachmentInput) String() string {
  1435. return awsutil.Prettify(s)
  1436. }
  1437. // GoString returns the string representation
  1438. func (s DescribeAttachmentInput) GoString() string {
  1439. return s.String()
  1440. }
  1441. // Validate inspects the fields of the type to determine if they are valid.
  1442. func (s *DescribeAttachmentInput) Validate() error {
  1443. invalidParams := request.ErrInvalidParams{Context: "DescribeAttachmentInput"}
  1444. if s.AttachmentId == nil {
  1445. invalidParams.Add(request.NewErrParamRequired("AttachmentId"))
  1446. }
  1447. if invalidParams.Len() > 0 {
  1448. return invalidParams
  1449. }
  1450. return nil
  1451. }
  1452. // The content and file name of the attachment returned by the DescribeAttachment
  1453. // operation.
  1454. type DescribeAttachmentOutput struct {
  1455. _ struct{} `type:"structure"`
  1456. // The attachment content and file name.
  1457. Attachment *Attachment `locationName:"attachment" type:"structure"`
  1458. }
  1459. // String returns the string representation
  1460. func (s DescribeAttachmentOutput) String() string {
  1461. return awsutil.Prettify(s)
  1462. }
  1463. // GoString returns the string representation
  1464. func (s DescribeAttachmentOutput) GoString() string {
  1465. return s.String()
  1466. }
  1467. type DescribeCasesInput struct {
  1468. _ struct{} `type:"structure"`
  1469. // The start date for a filtered date search on support case communications.
  1470. // Case communications are available for 12 months after creation.
  1471. AfterTime *string `locationName:"afterTime" type:"string"`
  1472. // The end date for a filtered date search on support case communications. Case
  1473. // communications are available for 12 months after creation.
  1474. BeforeTime *string `locationName:"beforeTime" type:"string"`
  1475. // A list of ID numbers of the support cases you want returned. The maximum
  1476. // number of cases is 100.
  1477. CaseIdList []*string `locationName:"caseIdList" type:"list"`
  1478. // The ID displayed for a case in the AWS Support Center user interface.
  1479. DisplayId *string `locationName:"displayId" type:"string"`
  1480. // Specifies whether communications should be included in the DescribeCases
  1481. // results. The default is true.
  1482. IncludeCommunications *bool `locationName:"includeCommunications" type:"boolean"`
  1483. // Specifies whether resolved support cases should be included in the DescribeCases
  1484. // results. The default is false.
  1485. IncludeResolvedCases *bool `locationName:"includeResolvedCases" type:"boolean"`
  1486. // The ISO 639-1 code for the language in which AWS provides support. AWS Support
  1487. // currently supports English ("en") and Japanese ("ja"). Language parameters
  1488. // must be passed explicitly for operations that take them.
  1489. Language *string `locationName:"language" type:"string"`
  1490. // The maximum number of results to return before paginating.
  1491. MaxResults *int64 `locationName:"maxResults" min:"10" type:"integer"`
  1492. // A resumption point for pagination.
  1493. NextToken *string `locationName:"nextToken" type:"string"`
  1494. }
  1495. // String returns the string representation
  1496. func (s DescribeCasesInput) String() string {
  1497. return awsutil.Prettify(s)
  1498. }
  1499. // GoString returns the string representation
  1500. func (s DescribeCasesInput) GoString() string {
  1501. return s.String()
  1502. }
  1503. // Validate inspects the fields of the type to determine if they are valid.
  1504. func (s *DescribeCasesInput) Validate() error {
  1505. invalidParams := request.ErrInvalidParams{Context: "DescribeCasesInput"}
  1506. if s.MaxResults != nil && *s.MaxResults < 10 {
  1507. invalidParams.Add(request.NewErrParamMinValue("MaxResults", 10))
  1508. }
  1509. if invalidParams.Len() > 0 {
  1510. return invalidParams
  1511. }
  1512. return nil
  1513. }
  1514. // Returns an array of CaseDetails objects and a nextToken that defines a point
  1515. // for pagination in the result set.
  1516. type DescribeCasesOutput struct {
  1517. _ struct{} `type:"structure"`
  1518. // The details for the cases that match the request.
  1519. Cases []*CaseDetails `locationName:"cases" type:"list"`
  1520. // A resumption point for pagination.
  1521. NextToken *string `locationName:"nextToken" type:"string"`
  1522. }
  1523. // String returns the string representation
  1524. func (s DescribeCasesOutput) String() string {
  1525. return awsutil.Prettify(s)
  1526. }
  1527. // GoString returns the string representation
  1528. func (s DescribeCasesOutput) GoString() string {
  1529. return s.String()
  1530. }
  1531. type DescribeCommunicationsInput struct {
  1532. _ struct{} `type:"structure"`
  1533. // The start date for a filtered date search on support case communications.
  1534. // Case communications are available for 12 months after creation.
  1535. AfterTime *string `locationName:"afterTime" type:"string"`
  1536. // The end date for a filtered date search on support case communications. Case
  1537. // communications are available for 12 months after creation.
  1538. BeforeTime *string `locationName:"beforeTime" type:"string"`
  1539. // The AWS Support case ID requested or returned in the call. The case ID is
  1540. // an alphanumeric string formatted as shown in this example: case-12345678910-2013-c4c1d2bf33c5cf47
  1541. //
  1542. // CaseId is a required field
  1543. CaseId *string `locationName:"caseId" type:"string" required:"true"`
  1544. // The maximum number of results to return before paginating.
  1545. MaxResults *int64 `locationName:"maxResults" min:"10" type:"integer"`
  1546. // A resumption point for pagination.
  1547. NextToken *string `locationName:"nextToken" type:"string"`
  1548. }
  1549. // String returns the string representation
  1550. func (s DescribeCommunicationsInput) String() string {
  1551. return awsutil.Prettify(s)
  1552. }
  1553. // GoString returns the string representation
  1554. func (s DescribeCommunicationsInput) GoString() string {
  1555. return s.String()
  1556. }
  1557. // Validate inspects the fields of the type to determine if they are valid.
  1558. func (s *DescribeCommunicationsInput) Validate() error {
  1559. invalidParams := request.ErrInvalidParams{Context: "DescribeCommunicationsInput"}
  1560. if s.CaseId == nil {
  1561. invalidParams.Add(request.NewErrParamRequired("CaseId"))
  1562. }
  1563. if s.MaxResults != nil && *s.MaxResults < 10 {
  1564. invalidParams.Add(request.NewErrParamMinValue("MaxResults", 10))
  1565. }
  1566. if invalidParams.Len() > 0 {
  1567. return invalidParams
  1568. }
  1569. return nil
  1570. }
  1571. // The communications returned by the DescribeCommunications operation.
  1572. type DescribeCommunicationsOutput struct {
  1573. _ struct{} `type:"structure"`
  1574. // The communications for the case.
  1575. Communications []*Communication `locationName:"communications" type:"list"`
  1576. // A resumption point for pagination.
  1577. NextToken *string `locationName:"nextToken" type:"string"`
  1578. }
  1579. // String returns the string representation
  1580. func (s DescribeCommunicationsOutput) String() string {
  1581. return awsutil.Prettify(s)
  1582. }
  1583. // GoString returns the string representation
  1584. func (s DescribeCommunicationsOutput) GoString() string {
  1585. return s.String()
  1586. }
  1587. type DescribeServicesInput struct {
  1588. _ struct{} `type:"structure"`
  1589. // The ISO 639-1 code for the language in which AWS provides support. AWS Support
  1590. // currently supports English ("en") and Japanese ("ja"). Language parameters
  1591. // must be passed explicitly for operations that take them.
  1592. Language *string `locationName:"language" type:"string"`
  1593. // A JSON-formatted list of service codes available for AWS services.
  1594. ServiceCodeList []*string `locationName:"serviceCodeList" type:"list"`
  1595. }
  1596. // String returns the string representation
  1597. func (s DescribeServicesInput) String() string {
  1598. return awsutil.Prettify(s)
  1599. }
  1600. // GoString returns the string representation
  1601. func (s DescribeServicesInput) GoString() string {
  1602. return s.String()
  1603. }
  1604. // The list of AWS services returned by the DescribeServices operation.
  1605. type DescribeServicesOutput struct {
  1606. _ struct{} `type:"structure"`
  1607. // A JSON-formatted list of AWS services.
  1608. Services []*Service `locationName:"services" type:"list"`
  1609. }
  1610. // String returns the string representation
  1611. func (s DescribeServicesOutput) String() string {
  1612. return awsutil.Prettify(s)
  1613. }
  1614. // GoString returns the string representation
  1615. func (s DescribeServicesOutput) GoString() string {
  1616. return s.String()
  1617. }
  1618. type DescribeSeverityLevelsInput struct {
  1619. _ struct{} `type:"structure"`
  1620. // The ISO 639-1 code for the language in which AWS provides support. AWS Support
  1621. // currently supports English ("en") and Japanese ("ja"). Language parameters
  1622. // must be passed explicitly for operations that take them.
  1623. Language *string `locationName:"language" type:"string"`
  1624. }
  1625. // String returns the string representation
  1626. func (s DescribeSeverityLevelsInput) String() string {
  1627. return awsutil.Prettify(s)
  1628. }
  1629. // GoString returns the string representation
  1630. func (s DescribeSeverityLevelsInput) GoString() string {
  1631. return s.String()
  1632. }
  1633. // The list of severity levels returned by the DescribeSeverityLevels operation.
  1634. type DescribeSeverityLevelsOutput struct {
  1635. _ struct{} `type:"structure"`
  1636. // The available severity levels for the support case. Available severity levels
  1637. // are defined by your service level agreement with AWS.
  1638. SeverityLevels []*SeverityLevel `locationName:"severityLevels" type:"list"`
  1639. }
  1640. // String returns the string representation
  1641. func (s DescribeSeverityLevelsOutput) String() string {
  1642. return awsutil.Prettify(s)
  1643. }
  1644. // GoString returns the string representation
  1645. func (s DescribeSeverityLevelsOutput) GoString() string {
  1646. return s.String()
  1647. }
  1648. type DescribeTrustedAdvisorCheckRefreshStatusesInput struct {
  1649. _ struct{} `type:"structure"`
  1650. // The IDs of the Trusted Advisor checks to get the status of. Note: Specifying
  1651. // the check ID of a check that is automatically refreshed causes an InvalidParameterValue
  1652. // error.
  1653. //
  1654. // CheckIds is a required field
  1655. CheckIds []*string `locationName:"checkIds" type:"list" required:"true"`
  1656. }
  1657. // String returns the string representation
  1658. func (s DescribeTrustedAdvisorCheckRefreshStatusesInput) String() string {
  1659. return awsutil.Prettify(s)
  1660. }
  1661. // GoString returns the string representation
  1662. func (s DescribeTrustedAdvisorCheckRefreshStatusesInput) GoString() string {
  1663. return s.String()
  1664. }
  1665. // Validate inspects the fields of the type to determine if they are valid.
  1666. func (s *DescribeTrustedAdvisorCheckRefreshStatusesInput) Validate() error {
  1667. invalidParams := request.ErrInvalidParams{Context: "DescribeTrustedAdvisorCheckRefreshStatusesInput"}
  1668. if s.CheckIds == nil {
  1669. invalidParams.Add(request.NewErrParamRequired("CheckIds"))
  1670. }
  1671. if invalidParams.Len() > 0 {
  1672. return invalidParams
  1673. }
  1674. return nil
  1675. }
  1676. // The statuses of the Trusted Advisor checks returned by the DescribeTrustedAdvisorCheckRefreshStatuses
  1677. // operation.
  1678. type DescribeTrustedAdvisorCheckRefreshStatusesOutput struct {
  1679. _ struct{} `type:"structure"`
  1680. // The refresh status of the specified Trusted Advisor checks.
  1681. //
  1682. // Statuses is a required field
  1683. Statuses []*TrustedAdvisorCheckRefreshStatus `locationName:"statuses" type:"list" required:"true"`
  1684. }
  1685. // String returns the string representation
  1686. func (s DescribeTrustedAdvisorCheckRefreshStatusesOutput) String() string {
  1687. return awsutil.Prettify(s)
  1688. }
  1689. // GoString returns the string representation
  1690. func (s DescribeTrustedAdvisorCheckRefreshStatusesOutput) GoString() string {
  1691. return s.String()
  1692. }
  1693. type DescribeTrustedAdvisorCheckResultInput struct {
  1694. _ struct{} `type:"structure"`
  1695. // The unique identifier for the Trusted Advisor check.
  1696. //
  1697. // CheckId is a required field
  1698. CheckId *string `locationName:"checkId" type:"string" required:"true"`
  1699. // The ISO 639-1 code for the language in which AWS provides support. AWS Support
  1700. // currently supports English ("en") and Japanese ("ja"). Language parameters
  1701. // must be passed explicitly for operations that take them.
  1702. Language *string `locationName:"language" type:"string"`
  1703. }
  1704. // String returns the string representation
  1705. func (s DescribeTrustedAdvisorCheckResultInput) String() string {
  1706. return awsutil.Prettify(s)
  1707. }
  1708. // GoString returns the string representation
  1709. func (s DescribeTrustedAdvisorCheckResultInput) GoString() string {
  1710. return s.String()
  1711. }
  1712. // Validate inspects the fields of the type to determine if they are valid.
  1713. func (s *DescribeTrustedAdvisorCheckResultInput) Validate() error {
  1714. invalidParams := request.ErrInvalidParams{Context: "DescribeTrustedAdvisorCheckResultInput"}
  1715. if s.CheckId == nil {
  1716. invalidParams.Add(request.NewErrParamRequired("CheckId"))
  1717. }
  1718. if invalidParams.Len() > 0 {
  1719. return invalidParams
  1720. }
  1721. return nil
  1722. }
  1723. // The result of the Trusted Advisor check returned by the DescribeTrustedAdvisorCheckResult
  1724. // operation.
  1725. type DescribeTrustedAdvisorCheckResultOutput struct {
  1726. _ struct{} `type:"structure"`
  1727. // The detailed results of the Trusted Advisor check.
  1728. Result *TrustedAdvisorCheckResult `locationName:"result" type:"structure"`
  1729. }
  1730. // String returns the string representation
  1731. func (s DescribeTrustedAdvisorCheckResultOutput) String() string {
  1732. return awsutil.Prettify(s)
  1733. }
  1734. // GoString returns the string representation
  1735. func (s DescribeTrustedAdvisorCheckResultOutput) GoString() string {
  1736. return s.String()
  1737. }
  1738. type DescribeTrustedAdvisorCheckSummariesInput struct {
  1739. _ struct{} `type:"structure"`
  1740. // The IDs of the Trusted Advisor checks.
  1741. //
  1742. // CheckIds is a required field
  1743. CheckIds []*string `locationName:"checkIds" type:"list" required:"true"`
  1744. }
  1745. // String returns the string representation
  1746. func (s DescribeTrustedAdvisorCheckSummariesInput) String() string {
  1747. return awsutil.Prettify(s)
  1748. }
  1749. // GoString returns the string representation
  1750. func (s DescribeTrustedAdvisorCheckSummariesInput) GoString() string {
  1751. return s.String()
  1752. }
  1753. // Validate inspects the fields of the type to determine if they are valid.
  1754. func (s *DescribeTrustedAdvisorCheckSummariesInput) Validate() error {
  1755. invalidParams := request.ErrInvalidParams{Context: "DescribeTrustedAdvisorCheckSummariesInput"}
  1756. if s.CheckIds == nil {
  1757. invalidParams.Add(request.NewErrParamRequired("CheckIds"))
  1758. }
  1759. if invalidParams.Len() > 0 {
  1760. return invalidParams
  1761. }
  1762. return nil
  1763. }
  1764. // The summaries of the Trusted Advisor checks returned by the DescribeTrustedAdvisorCheckSummaries
  1765. // operation.
  1766. type DescribeTrustedAdvisorCheckSummariesOutput struct {
  1767. _ struct{} `type:"structure"`
  1768. // The summary information for the requested Trusted Advisor checks.
  1769. //
  1770. // Summaries is a required field
  1771. Summaries []*TrustedAdvisorCheckSummary `locationName:"summaries" type:"list" required:"true"`
  1772. }
  1773. // String returns the string representation
  1774. func (s DescribeTrustedAdvisorCheckSummariesOutput) String() string {
  1775. return awsutil.Prettify(s)
  1776. }
  1777. // GoString returns the string representation
  1778. func (s DescribeTrustedAdvisorCheckSummariesOutput) GoString() string {
  1779. return s.String()
  1780. }
  1781. type DescribeTrustedAdvisorChecksInput struct {
  1782. _ struct{} `type:"structure"`
  1783. // The ISO 639-1 code for the language in which AWS provides support. AWS Support
  1784. // currently supports English ("en") and Japanese ("ja"). Language parameters
  1785. // must be passed explicitly for operations that take them.
  1786. //
  1787. // Language is a required field
  1788. Language *string `locationName:"language" type:"string" required:"true"`
  1789. }
  1790. // String returns the string representation
  1791. func (s DescribeTrustedAdvisorChecksInput) String() string {
  1792. return awsutil.Prettify(s)
  1793. }
  1794. // GoString returns the string representation
  1795. func (s DescribeTrustedAdvisorChecksInput) GoString() string {
  1796. return s.String()
  1797. }
  1798. // Validate inspects the fields of the type to determine if they are valid.
  1799. func (s *DescribeTrustedAdvisorChecksInput) Validate() error {
  1800. invalidParams := request.ErrInvalidParams{Context: "DescribeTrustedAdvisorChecksInput"}
  1801. if s.Language == nil {
  1802. invalidParams.Add(request.NewErrParamRequired("Language"))
  1803. }
  1804. if invalidParams.Len() > 0 {
  1805. return invalidParams
  1806. }
  1807. return nil
  1808. }
  1809. // Information about the Trusted Advisor checks returned by the DescribeTrustedAdvisorChecks
  1810. // operation.
  1811. type DescribeTrustedAdvisorChecksOutput struct {
  1812. _ struct{} `type:"structure"`
  1813. // Information about all available Trusted Advisor checks.
  1814. //
  1815. // Checks is a required field
  1816. Checks []*TrustedAdvisorCheckDescription `locationName:"checks" type:"list" required:"true"`
  1817. }
  1818. // String returns the string representation
  1819. func (s DescribeTrustedAdvisorChecksOutput) String() string {
  1820. return awsutil.Prettify(s)
  1821. }
  1822. // GoString returns the string representation
  1823. func (s DescribeTrustedAdvisorChecksOutput) GoString() string {
  1824. return s.String()
  1825. }
  1826. // The five most recent communications associated with the case.
  1827. type RecentCaseCommunications struct {
  1828. _ struct{} `type:"structure"`
  1829. // The five most recent communications associated with the case.
  1830. Communications []*Communication `locationName:"communications" type:"list"`
  1831. // A resumption point for pagination.
  1832. NextToken *string `locationName:"nextToken" type:"string"`
  1833. }
  1834. // String returns the string representation
  1835. func (s RecentCaseCommunications) String() string {
  1836. return awsutil.Prettify(s)
  1837. }
  1838. // GoString returns the string representation
  1839. func (s RecentCaseCommunications) GoString() string {
  1840. return s.String()
  1841. }
  1842. type RefreshTrustedAdvisorCheckInput struct {
  1843. _ struct{} `type:"structure"`
  1844. // The unique identifier for the Trusted Advisor check to refresh. Note: Specifying
  1845. // the check ID of a check that is automatically refreshed causes an InvalidParameterValue
  1846. // error.
  1847. //
  1848. // CheckId is a required field
  1849. CheckId *string `locationName:"checkId" type:"string" required:"true"`
  1850. }
  1851. // String returns the string representation
  1852. func (s RefreshTrustedAdvisorCheckInput) String() string {
  1853. return awsutil.Prettify(s)
  1854. }
  1855. // GoString returns the string representation
  1856. func (s RefreshTrustedAdvisorCheckInput) GoString() string {
  1857. return s.String()
  1858. }
  1859. // Validate inspects the fields of the type to determine if they are valid.
  1860. func (s *RefreshTrustedAdvisorCheckInput) Validate() error {
  1861. invalidParams := request.ErrInvalidParams{Context: "RefreshTrustedAdvisorCheckInput"}
  1862. if s.CheckId == nil {
  1863. invalidParams.Add(request.NewErrParamRequired("CheckId"))
  1864. }
  1865. if invalidParams.Len() > 0 {
  1866. return invalidParams
  1867. }
  1868. return nil
  1869. }
  1870. // The current refresh status of a Trusted Advisor check.
  1871. type RefreshTrustedAdvisorCheckOutput struct {
  1872. _ struct{} `type:"structure"`
  1873. // The current refresh status for a check, including the amount of time until
  1874. // the check is eligible for refresh.
  1875. //
  1876. // Status is a required field
  1877. Status *TrustedAdvisorCheckRefreshStatus `locationName:"status" type:"structure" required:"true"`
  1878. }
  1879. // String returns the string representation
  1880. func (s RefreshTrustedAdvisorCheckOutput) String() string {
  1881. return awsutil.Prettify(s)
  1882. }
  1883. // GoString returns the string representation
  1884. func (s RefreshTrustedAdvisorCheckOutput) GoString() string {
  1885. return s.String()
  1886. }
  1887. type ResolveCaseInput struct {
  1888. _ struct{} `type:"structure"`
  1889. // The AWS Support case ID requested or returned in the call. The case ID is
  1890. // an alphanumeric string formatted as shown in this example: case-12345678910-2013-c4c1d2bf33c5cf47
  1891. CaseId *string `locationName:"caseId" type:"string"`
  1892. }
  1893. // String returns the string representation
  1894. func (s ResolveCaseInput) String() string {
  1895. return awsutil.Prettify(s)
  1896. }
  1897. // GoString returns the string representation
  1898. func (s ResolveCaseInput) GoString() string {
  1899. return s.String()
  1900. }
  1901. // The status of the case returned by the ResolveCase operation.
  1902. type ResolveCaseOutput struct {
  1903. _ struct{} `type:"structure"`
  1904. // The status of the case after the ResolveCase request was processed.
  1905. FinalCaseStatus *string `locationName:"finalCaseStatus" type:"string"`
  1906. // The status of the case when the ResolveCase request was sent.
  1907. InitialCaseStatus *string `locationName:"initialCaseStatus" type:"string"`
  1908. }
  1909. // String returns the string representation
  1910. func (s ResolveCaseOutput) String() string {
  1911. return awsutil.Prettify(s)
  1912. }
  1913. // GoString returns the string representation
  1914. func (s ResolveCaseOutput) GoString() string {
  1915. return s.String()
  1916. }
  1917. // Information about an AWS service returned by the DescribeServices operation.
  1918. type Service struct {
  1919. _ struct{} `type:"structure"`
  1920. // A list of categories that describe the type of support issue a case describes.
  1921. // Categories consist of a category name and a category code. Category names
  1922. // and codes are passed to AWS Support when you call CreateCase.
  1923. Categories []*Category `locationName:"categories" type:"list"`
  1924. // The code for an AWS service returned by the DescribeServices response. The
  1925. // name element contains the corresponding friendly name.
  1926. Code *string `locationName:"code" type:"string"`
  1927. // The friendly name for an AWS service. The code element contains the corresponding
  1928. // code.
  1929. Name *string `locationName:"name" type:"string"`
  1930. }
  1931. // String returns the string representation
  1932. func (s Service) String() string {
  1933. return awsutil.Prettify(s)
  1934. }
  1935. // GoString returns the string representation
  1936. func (s Service) GoString() string {
  1937. return s.String()
  1938. }
  1939. // A code and name pair that represent a severity level that can be applied
  1940. // to a support case.
  1941. type SeverityLevel struct {
  1942. _ struct{} `type:"structure"`
  1943. // One of four values: "low," "medium," "high," and "urgent". These values correspond
  1944. // to response times returned to the caller in severityLevel.name.
  1945. Code *string `locationName:"code" type:"string"`
  1946. // The name of the severity level that corresponds to the severity level code.
  1947. Name *string `locationName:"name" type:"string"`
  1948. }
  1949. // String returns the string representation
  1950. func (s SeverityLevel) String() string {
  1951. return awsutil.Prettify(s)
  1952. }
  1953. // GoString returns the string representation
  1954. func (s SeverityLevel) GoString() string {
  1955. return s.String()
  1956. }
  1957. // The container for summary information that relates to the category of the
  1958. // Trusted Advisor check.
  1959. type TrustedAdvisorCategorySpecificSummary struct {
  1960. _ struct{} `type:"structure"`
  1961. // The summary information about cost savings for a Trusted Advisor check that
  1962. // is in the Cost Optimizing category.
  1963. CostOptimizing *TrustedAdvisorCostOptimizingSummary `locationName:"costOptimizing" type:"structure"`
  1964. }
  1965. // String returns the string representation
  1966. func (s TrustedAdvisorCategorySpecificSummary) String() string {
  1967. return awsutil.Prettify(s)
  1968. }
  1969. // GoString returns the string representation
  1970. func (s TrustedAdvisorCategorySpecificSummary) GoString() string {
  1971. return s.String()
  1972. }
  1973. // The description and metadata for a Trusted Advisor check.
  1974. type TrustedAdvisorCheckDescription struct {
  1975. _ struct{} `type:"structure"`
  1976. // The category of the Trusted Advisor check.
  1977. //
  1978. // Category is a required field
  1979. Category *string `locationName:"category" type:"string" required:"true"`
  1980. // The description of the Trusted Advisor check, which includes the alert criteria
  1981. // and recommended actions (contains HTML markup).
  1982. //
  1983. // Description is a required field
  1984. Description *string `locationName:"description" type:"string" required:"true"`
  1985. // The unique identifier for the Trusted Advisor check.
  1986. //
  1987. // Id is a required field
  1988. Id *string `locationName:"id" type:"string" required:"true"`
  1989. // The column headings for the data returned by the Trusted Advisor check. The
  1990. // order of the headings corresponds to the order of the data in the Metadata
  1991. // element of the TrustedAdvisorResourceDetail for the check. Metadata contains
  1992. // all the data that is shown in the Excel download, even in those cases where
  1993. // the UI shows just summary data.
  1994. //
  1995. // Metadata is a required field
  1996. Metadata []*string `locationName:"metadata" type:"list" required:"true"`
  1997. // The display name for the Trusted Advisor check.
  1998. //
  1999. // Name is a required field
  2000. Name *string `locationName:"name" type:"string" required:"true"`
  2001. }
  2002. // String returns the string representation
  2003. func (s TrustedAdvisorCheckDescription) String() string {
  2004. return awsutil.Prettify(s)
  2005. }
  2006. // GoString returns the string representation
  2007. func (s TrustedAdvisorCheckDescription) GoString() string {
  2008. return s.String()
  2009. }
  2010. // The refresh status of a Trusted Advisor check.
  2011. type TrustedAdvisorCheckRefreshStatus struct {
  2012. _ struct{} `type:"structure"`
  2013. // The unique identifier for the Trusted Advisor check.
  2014. //
  2015. // CheckId is a required field
  2016. CheckId *string `locationName:"checkId" type:"string" required:"true"`
  2017. // The amount of time, in milliseconds, until the Trusted Advisor check is eligible
  2018. // for refresh.
  2019. //
  2020. // MillisUntilNextRefreshable is a required field
  2021. MillisUntilNextRefreshable *int64 `locationName:"millisUntilNextRefreshable" type:"long" required:"true"`
  2022. // The status of the Trusted Advisor check for which a refresh has been requested:
  2023. // "none", "enqueued", "processing", "success", or "abandoned".
  2024. //
  2025. // Status is a required field
  2026. Status *string `locationName:"status" type:"string" required:"true"`
  2027. }
  2028. // String returns the string representation
  2029. func (s TrustedAdvisorCheckRefreshStatus) String() string {
  2030. return awsutil.Prettify(s)
  2031. }
  2032. // GoString returns the string representation
  2033. func (s TrustedAdvisorCheckRefreshStatus) GoString() string {
  2034. return s.String()
  2035. }
  2036. // The results of a Trusted Advisor check returned by DescribeTrustedAdvisorCheckResult.
  2037. type TrustedAdvisorCheckResult struct {
  2038. _ struct{} `type:"structure"`
  2039. // Summary information that relates to the category of the check. Cost Optimizing
  2040. // is the only category that is currently supported.
  2041. //
  2042. // CategorySpecificSummary is a required field
  2043. CategorySpecificSummary *TrustedAdvisorCategorySpecificSummary `locationName:"categorySpecificSummary" type:"structure" required:"true"`
  2044. // The unique identifier for the Trusted Advisor check.
  2045. //
  2046. // CheckId is a required field
  2047. CheckId *string `locationName:"checkId" type:"string" required:"true"`
  2048. // The details about each resource listed in the check result.
  2049. //
  2050. // FlaggedResources is a required field
  2051. FlaggedResources []*TrustedAdvisorResourceDetail `locationName:"flaggedResources" type:"list" required:"true"`
  2052. // Details about AWS resources that were analyzed in a call to Trusted Advisor
  2053. // DescribeTrustedAdvisorCheckSummaries.
  2054. //
  2055. // ResourcesSummary is a required field
  2056. ResourcesSummary *TrustedAdvisorResourcesSummary `locationName:"resourcesSummary" type:"structure" required:"true"`
  2057. // The alert status of the check: "ok" (green), "warning" (yellow), "error"
  2058. // (red), or "not_available".
  2059. //
  2060. // Status is a required field
  2061. Status *string `locationName:"status" type:"string" required:"true"`
  2062. // The time of the last refresh of the check.
  2063. //
  2064. // Timestamp is a required field
  2065. Timestamp *string `locationName:"timestamp" type:"string" required:"true"`
  2066. }
  2067. // String returns the string representation
  2068. func (s TrustedAdvisorCheckResult) String() string {
  2069. return awsutil.Prettify(s)
  2070. }
  2071. // GoString returns the string representation
  2072. func (s TrustedAdvisorCheckResult) GoString() string {
  2073. return s.String()
  2074. }
  2075. // A summary of a Trusted Advisor check result, including the alert status,
  2076. // last refresh, and number of resources examined.
  2077. type TrustedAdvisorCheckSummary struct {
  2078. _ struct{} `type:"structure"`
  2079. // Summary information that relates to the category of the check. Cost Optimizing
  2080. // is the only category that is currently supported.
  2081. //
  2082. // CategorySpecificSummary is a required field
  2083. CategorySpecificSummary *TrustedAdvisorCategorySpecificSummary `locationName:"categorySpecificSummary" type:"structure" required:"true"`
  2084. // The unique identifier for the Trusted Advisor check.
  2085. //
  2086. // CheckId is a required field
  2087. CheckId *string `locationName:"checkId" type:"string" required:"true"`
  2088. // Specifies whether the Trusted Advisor check has flagged resources.
  2089. HasFlaggedResources *bool `locationName:"hasFlaggedResources" type:"boolean"`
  2090. // Details about AWS resources that were analyzed in a call to Trusted Advisor
  2091. // DescribeTrustedAdvisorCheckSummaries.
  2092. //
  2093. // ResourcesSummary is a required field
  2094. ResourcesSummary *TrustedAdvisorResourcesSummary `locationName:"resourcesSummary" type:"structure" required:"true"`
  2095. // The alert status of the check: "ok" (green), "warning" (yellow), "error"
  2096. // (red), or "not_available".
  2097. //
  2098. // Status is a required field
  2099. Status *string `locationName:"status" type:"string" required:"true"`
  2100. // The time of the last refresh of the check.
  2101. //
  2102. // Timestamp is a required field
  2103. Timestamp *string `locationName:"timestamp" type:"string" required:"true"`
  2104. }
  2105. // String returns the string representation
  2106. func (s TrustedAdvisorCheckSummary) String() string {
  2107. return awsutil.Prettify(s)
  2108. }
  2109. // GoString returns the string representation
  2110. func (s TrustedAdvisorCheckSummary) GoString() string {
  2111. return s.String()
  2112. }
  2113. // The estimated cost savings that might be realized if the recommended actions
  2114. // are taken.
  2115. type TrustedAdvisorCostOptimizingSummary struct {
  2116. _ struct{} `type:"structure"`
  2117. // The estimated monthly savings that might be realized if the recommended actions
  2118. // are taken.
  2119. //
  2120. // EstimatedMonthlySavings is a required field
  2121. EstimatedMonthlySavings *float64 `locationName:"estimatedMonthlySavings" type:"double" required:"true"`
  2122. // The estimated percentage of savings that might be realized if the recommended
  2123. // actions are taken.
  2124. //
  2125. // EstimatedPercentMonthlySavings is a required field
  2126. EstimatedPercentMonthlySavings *float64 `locationName:"estimatedPercentMonthlySavings" type:"double" required:"true"`
  2127. }
  2128. // String returns the string representation
  2129. func (s TrustedAdvisorCostOptimizingSummary) String() string {
  2130. return awsutil.Prettify(s)
  2131. }
  2132. // GoString returns the string representation
  2133. func (s TrustedAdvisorCostOptimizingSummary) GoString() string {
  2134. return s.String()
  2135. }
  2136. // Contains information about a resource identified by a Trusted Advisor check.
  2137. type TrustedAdvisorResourceDetail struct {
  2138. _ struct{} `type:"structure"`
  2139. // Specifies whether the AWS resource was ignored by Trusted Advisor because
  2140. // it was marked as suppressed by the user.
  2141. IsSuppressed *bool `locationName:"isSuppressed" type:"boolean"`
  2142. // Additional information about the identified resource. The exact metadata
  2143. // and its order can be obtained by inspecting the TrustedAdvisorCheckDescription
  2144. // object returned by the call to DescribeTrustedAdvisorChecks. Metadata contains
  2145. // all the data that is shown in the Excel download, even in those cases where
  2146. // the UI shows just summary data.
  2147. //
  2148. // Metadata is a required field
  2149. Metadata []*string `locationName:"metadata" type:"list" required:"true"`
  2150. // The AWS region in which the identified resource is located.
  2151. Region *string `locationName:"region" type:"string"`
  2152. // The unique identifier for the identified resource.
  2153. //
  2154. // ResourceId is a required field
  2155. ResourceId *string `locationName:"resourceId" type:"string" required:"true"`
  2156. // The status code for the resource identified in the Trusted Advisor check.
  2157. //
  2158. // Status is a required field
  2159. Status *string `locationName:"status" type:"string" required:"true"`
  2160. }
  2161. // String returns the string representation
  2162. func (s TrustedAdvisorResourceDetail) String() string {
  2163. return awsutil.Prettify(s)
  2164. }
  2165. // GoString returns the string representation
  2166. func (s TrustedAdvisorResourceDetail) GoString() string {
  2167. return s.String()
  2168. }
  2169. // Details about AWS resources that were analyzed in a call to Trusted Advisor
  2170. // DescribeTrustedAdvisorCheckSummaries.
  2171. type TrustedAdvisorResourcesSummary struct {
  2172. _ struct{} `type:"structure"`
  2173. // The number of AWS resources that were flagged (listed) by the Trusted Advisor
  2174. // check.
  2175. //
  2176. // ResourcesFlagged is a required field
  2177. ResourcesFlagged *int64 `locationName:"resourcesFlagged" type:"long" required:"true"`
  2178. // The number of AWS resources ignored by Trusted Advisor because information
  2179. // was unavailable.
  2180. //
  2181. // ResourcesIgnored is a required field
  2182. ResourcesIgnored *int64 `locationName:"resourcesIgnored" type:"long" required:"true"`
  2183. // The number of AWS resources that were analyzed by the Trusted Advisor check.
  2184. //
  2185. // ResourcesProcessed is a required field
  2186. ResourcesProcessed *int64 `locationName:"resourcesProcessed" type:"long" required:"true"`
  2187. // The number of AWS resources ignored by Trusted Advisor because they were
  2188. // marked as suppressed by the user.
  2189. //
  2190. // ResourcesSuppressed is a required field
  2191. ResourcesSuppressed *int64 `locationName:"resourcesSuppressed" type:"long" required:"true"`
  2192. }
  2193. // String returns the string representation
  2194. func (s TrustedAdvisorResourcesSummary) String() string {
  2195. return awsutil.Prettify(s)
  2196. }
  2197. // GoString returns the string representation
  2198. func (s TrustedAdvisorResourcesSummary) GoString() string {
  2199. return s.String()
  2200. }