api.go 78 KB

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