api.go 125 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528
  1. // Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT.
  2. package support
  3. import (
  4. "github.com/aws/aws-sdk-go/aws"
  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 will be populated with the request's response once the request completes
  12. // successfully.
  13. //
  14. // Use "Send" method on the returned Request to send the API call to the service.
  15. // the "output" return value is not valid until after Send returns without error.
  16. //
  17. // See AddAttachmentsToSet for more information on using the AddAttachmentsToSet
  18. // API call, and error handling.
  19. //
  20. // This method is useful when you want to inject custom logic or configuration
  21. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  22. //
  23. //
  24. // // Example sending a request using the AddAttachmentsToSetRequest method.
  25. // req, resp := client.AddAttachmentsToSetRequest(params)
  26. //
  27. // err := req.Send()
  28. // if err == nil { // resp is now filled
  29. // fmt.Println(resp)
  30. // }
  31. //
  32. // See also, https://docs.aws.amazon.com/goto/WebAPI/support-2013-04-15/AddAttachmentsToSet
  33. func (c *Support) AddAttachmentsToSetRequest(input *AddAttachmentsToSetInput) (req *request.Request, output *AddAttachmentsToSetOutput) {
  34. op := &request.Operation{
  35. Name: opAddAttachmentsToSet,
  36. HTTPMethod: "POST",
  37. HTTPPath: "/",
  38. }
  39. if input == nil {
  40. input = &AddAttachmentsToSetInput{}
  41. }
  42. output = &AddAttachmentsToSetOutput{}
  43. req = c.newRequest(op, input, output)
  44. return
  45. }
  46. // AddAttachmentsToSet API operation for AWS Support.
  47. //
  48. // Adds one or more attachments to an attachment set. If an attachmentSetId
  49. // is not specified, a new attachment set is created, and the ID of the set
  50. // is returned in the response. If an attachmentSetId is specified, the attachments
  51. // are added to the specified set, if it exists.
  52. //
  53. // An attachment set is a temporary container for attachments that are to be
  54. // added to a case or case communication. The set is available for one hour
  55. // after it is created; the expiryTime returned in the response indicates when
  56. // the set expires. The maximum number of attachments in a set is 3, and the
  57. // maximum size of any attachment in the set is 5 MB.
  58. //
  59. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  60. // with awserr.Error's Code and Message methods to get detailed information about
  61. // the error.
  62. //
  63. // See the AWS API reference guide for AWS Support's
  64. // API operation AddAttachmentsToSet for usage and error information.
  65. //
  66. // Returned Error Codes:
  67. // * ErrCodeInternalServerError "InternalServerError"
  68. // An internal server error occurred.
  69. //
  70. // * ErrCodeAttachmentSetIdNotFound "AttachmentSetIdNotFound"
  71. // An attachment set with the specified ID could not be found.
  72. //
  73. // * ErrCodeAttachmentSetExpired "AttachmentSetExpired"
  74. // The expiration time of the attachment set has passed. The set expires 1 hour
  75. // after it is created.
  76. //
  77. // * ErrCodeAttachmentSetSizeLimitExceeded "AttachmentSetSizeLimitExceeded"
  78. // A limit for the size of an attachment set has been exceeded. The limits are
  79. // 3 attachments and 5 MB per attachment.
  80. //
  81. // * ErrCodeAttachmentLimitExceeded "AttachmentLimitExceeded"
  82. // The limit for the number of attachment sets created in a short period of
  83. // time has been exceeded.
  84. //
  85. // See also, https://docs.aws.amazon.com/goto/WebAPI/support-2013-04-15/AddAttachmentsToSet
  86. func (c *Support) AddAttachmentsToSet(input *AddAttachmentsToSetInput) (*AddAttachmentsToSetOutput, error) {
  87. req, out := c.AddAttachmentsToSetRequest(input)
  88. return out, req.Send()
  89. }
  90. // AddAttachmentsToSetWithContext is the same as AddAttachmentsToSet with the addition of
  91. // the ability to pass a context and additional request options.
  92. //
  93. // See AddAttachmentsToSet for details on how to use this API operation.
  94. //
  95. // The context must be non-nil and will be used for request cancellation. If
  96. // the context is nil a panic will occur. In the future the SDK may create
  97. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  98. // for more information on using Contexts.
  99. func (c *Support) AddAttachmentsToSetWithContext(ctx aws.Context, input *AddAttachmentsToSetInput, opts ...request.Option) (*AddAttachmentsToSetOutput, error) {
  100. req, out := c.AddAttachmentsToSetRequest(input)
  101. req.SetContext(ctx)
  102. req.ApplyOptions(opts...)
  103. return out, req.Send()
  104. }
  105. const opAddCommunicationToCase = "AddCommunicationToCase"
  106. // AddCommunicationToCaseRequest generates a "aws/request.Request" representing the
  107. // client's request for the AddCommunicationToCase operation. The "output" return
  108. // value will be populated with the request's response once the request completes
  109. // successfully.
  110. //
  111. // Use "Send" method on the returned Request to send the API call to the service.
  112. // the "output" return value is not valid until after Send returns without error.
  113. //
  114. // See AddCommunicationToCase for more information on using the AddCommunicationToCase
  115. // API call, and error handling.
  116. //
  117. // This method is useful when you want to inject custom logic or configuration
  118. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  119. //
  120. //
  121. // // Example sending a request using the AddCommunicationToCaseRequest method.
  122. // req, resp := client.AddCommunicationToCaseRequest(params)
  123. //
  124. // err := req.Send()
  125. // if err == nil { // resp is now filled
  126. // fmt.Println(resp)
  127. // }
  128. //
  129. // See also, https://docs.aws.amazon.com/goto/WebAPI/support-2013-04-15/AddCommunicationToCase
  130. func (c *Support) AddCommunicationToCaseRequest(input *AddCommunicationToCaseInput) (req *request.Request, output *AddCommunicationToCaseOutput) {
  131. op := &request.Operation{
  132. Name: opAddCommunicationToCase,
  133. HTTPMethod: "POST",
  134. HTTPPath: "/",
  135. }
  136. if input == nil {
  137. input = &AddCommunicationToCaseInput{}
  138. }
  139. output = &AddCommunicationToCaseOutput{}
  140. req = c.newRequest(op, input, output)
  141. return
  142. }
  143. // AddCommunicationToCase API operation for AWS Support.
  144. //
  145. // Adds additional customer communication to an AWS Support case. You use the
  146. // caseId value to identify the case to add communication to. You can list a
  147. // set of email addresses to copy on the communication using the ccEmailAddresses
  148. // value. The communicationBody value contains the text of the communication.
  149. //
  150. // The response indicates the success or failure of the request.
  151. //
  152. // This operation implements a subset of the features of the AWS Support Center.
  153. //
  154. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  155. // with awserr.Error's Code and Message methods to get detailed information about
  156. // the error.
  157. //
  158. // See the AWS API reference guide for AWS Support's
  159. // API operation AddCommunicationToCase for usage and error information.
  160. //
  161. // Returned Error Codes:
  162. // * ErrCodeInternalServerError "InternalServerError"
  163. // An internal server error occurred.
  164. //
  165. // * ErrCodeCaseIdNotFound "CaseIdNotFound"
  166. // The requested caseId could not be located.
  167. //
  168. // * ErrCodeAttachmentSetIdNotFound "AttachmentSetIdNotFound"
  169. // An attachment set with the specified ID could not be found.
  170. //
  171. // * ErrCodeAttachmentSetExpired "AttachmentSetExpired"
  172. // The expiration time of the attachment set has passed. The set expires 1 hour
  173. // after it is created.
  174. //
  175. // See also, https://docs.aws.amazon.com/goto/WebAPI/support-2013-04-15/AddCommunicationToCase
  176. func (c *Support) AddCommunicationToCase(input *AddCommunicationToCaseInput) (*AddCommunicationToCaseOutput, error) {
  177. req, out := c.AddCommunicationToCaseRequest(input)
  178. return out, req.Send()
  179. }
  180. // AddCommunicationToCaseWithContext is the same as AddCommunicationToCase with the addition of
  181. // the ability to pass a context and additional request options.
  182. //
  183. // See AddCommunicationToCase for details on how to use this API operation.
  184. //
  185. // The context must be non-nil and will be used for request cancellation. If
  186. // the context is nil a panic will occur. In the future the SDK may create
  187. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  188. // for more information on using Contexts.
  189. func (c *Support) AddCommunicationToCaseWithContext(ctx aws.Context, input *AddCommunicationToCaseInput, opts ...request.Option) (*AddCommunicationToCaseOutput, error) {
  190. req, out := c.AddCommunicationToCaseRequest(input)
  191. req.SetContext(ctx)
  192. req.ApplyOptions(opts...)
  193. return out, req.Send()
  194. }
  195. const opCreateCase = "CreateCase"
  196. // CreateCaseRequest generates a "aws/request.Request" representing the
  197. // client's request for the CreateCase operation. The "output" return
  198. // value will be populated with the request's response once the request completes
  199. // successfully.
  200. //
  201. // Use "Send" method on the returned Request to send the API call to the service.
  202. // the "output" return value is not valid until after Send returns without error.
  203. //
  204. // See CreateCase for more information on using the CreateCase
  205. // API call, and error handling.
  206. //
  207. // This method is useful when you want to inject custom logic or configuration
  208. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  209. //
  210. //
  211. // // Example sending a request using the CreateCaseRequest method.
  212. // req, resp := client.CreateCaseRequest(params)
  213. //
  214. // err := req.Send()
  215. // if err == nil { // resp is now filled
  216. // fmt.Println(resp)
  217. // }
  218. //
  219. // See also, https://docs.aws.amazon.com/goto/WebAPI/support-2013-04-15/CreateCase
  220. func (c *Support) CreateCaseRequest(input *CreateCaseInput) (req *request.Request, output *CreateCaseOutput) {
  221. op := &request.Operation{
  222. Name: opCreateCase,
  223. HTTPMethod: "POST",
  224. HTTPPath: "/",
  225. }
  226. if input == nil {
  227. input = &CreateCaseInput{}
  228. }
  229. output = &CreateCaseOutput{}
  230. req = c.newRequest(op, input, output)
  231. return
  232. }
  233. // CreateCase API operation for AWS Support.
  234. //
  235. // Creates a new case in the AWS Support Center. This operation is modeled on
  236. // the behavior of the AWS Support Center Create Case (https://console.aws.amazon.com/support/home#/case/create)
  237. // page. Its parameters require you to specify the following information:
  238. //
  239. // * issueType. The type of issue for the case. You can specify either "customer-service"
  240. // or "technical." If you do not indicate a value, the default is "technical."
  241. //
  242. //
  243. // * serviceCode. The code for an AWS service. You obtain the serviceCode
  244. // by calling DescribeServices.
  245. //
  246. // * categoryCode. The category for the service defined for the serviceCode
  247. // value. You also obtain the category code for a service by calling DescribeServices.
  248. // Each AWS service defines its own set of category codes.
  249. //
  250. // * severityCode. A value that indicates the urgency of the case, which
  251. // in turn determines the response time according to your service level agreement
  252. // with AWS Support. You obtain the SeverityCode by calling DescribeSeverityLevels.
  253. //
  254. // * subject. The Subject field on the AWS Support Center Create Case (https://console.aws.amazon.com/support/home#/case/create)
  255. // page.
  256. //
  257. // * communicationBody. The Description field on the AWS Support Center Create
  258. // Case (https://console.aws.amazon.com/support/home#/case/create) page.
  259. //
  260. // * attachmentSetId. The ID of a set of attachments that has been created
  261. // by using AddAttachmentsToSet.
  262. //
  263. // * language. The human language in which AWS Support handles the case.
  264. // English and Japanese are currently supported.
  265. //
  266. // * ccEmailAddresses. The AWS Support Center CC field on the Create Case
  267. // (https://console.aws.amazon.com/support/home#/case/create) page. You can
  268. // list email addresses to be copied on any correspondence about the case.
  269. // The account that opens the case is already identified by passing the AWS
  270. // Credentials in the HTTP POST method or in a method or function call from
  271. // one of the programming languages supported by an AWS SDK (http://aws.amazon.com/tools/).
  272. //
  273. //
  274. // To add additional communication or attachments to an existing case, use AddCommunicationToCase.
  275. //
  276. // A successful CreateCase request returns an AWS Support case number. Case
  277. // numbers are used by the DescribeCases operation to retrieve existing AWS
  278. // Support cases.
  279. //
  280. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  281. // with awserr.Error's Code and Message methods to get detailed information about
  282. // the error.
  283. //
  284. // See the AWS API reference guide for AWS Support's
  285. // API operation CreateCase for usage and error information.
  286. //
  287. // Returned Error Codes:
  288. // * ErrCodeInternalServerError "InternalServerError"
  289. // An internal server error occurred.
  290. //
  291. // * ErrCodeCaseCreationLimitExceeded "CaseCreationLimitExceeded"
  292. // The case creation limit for the account has been exceeded.
  293. //
  294. // * ErrCodeAttachmentSetIdNotFound "AttachmentSetIdNotFound"
  295. // An attachment set with the specified ID could not be found.
  296. //
  297. // * ErrCodeAttachmentSetExpired "AttachmentSetExpired"
  298. // The expiration time of the attachment set has passed. The set expires 1 hour
  299. // after it is created.
  300. //
  301. // See also, https://docs.aws.amazon.com/goto/WebAPI/support-2013-04-15/CreateCase
  302. func (c *Support) CreateCase(input *CreateCaseInput) (*CreateCaseOutput, error) {
  303. req, out := c.CreateCaseRequest(input)
  304. return out, req.Send()
  305. }
  306. // CreateCaseWithContext is the same as CreateCase with the addition of
  307. // the ability to pass a context and additional request options.
  308. //
  309. // See CreateCase for details on how to use this API operation.
  310. //
  311. // The context must be non-nil and will be used for request cancellation. If
  312. // the context is nil a panic will occur. In the future the SDK may create
  313. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  314. // for more information on using Contexts.
  315. func (c *Support) CreateCaseWithContext(ctx aws.Context, input *CreateCaseInput, opts ...request.Option) (*CreateCaseOutput, error) {
  316. req, out := c.CreateCaseRequest(input)
  317. req.SetContext(ctx)
  318. req.ApplyOptions(opts...)
  319. return out, req.Send()
  320. }
  321. const opDescribeAttachment = "DescribeAttachment"
  322. // DescribeAttachmentRequest generates a "aws/request.Request" representing the
  323. // client's request for the DescribeAttachment operation. The "output" return
  324. // value will be populated with the request's response once the request completes
  325. // successfully.
  326. //
  327. // Use "Send" method on the returned Request to send the API call to the service.
  328. // the "output" return value is not valid until after Send returns without error.
  329. //
  330. // See DescribeAttachment for more information on using the DescribeAttachment
  331. // API call, and error handling.
  332. //
  333. // This method is useful when you want to inject custom logic or configuration
  334. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  335. //
  336. //
  337. // // Example sending a request using the DescribeAttachmentRequest method.
  338. // req, resp := client.DescribeAttachmentRequest(params)
  339. //
  340. // err := req.Send()
  341. // if err == nil { // resp is now filled
  342. // fmt.Println(resp)
  343. // }
  344. //
  345. // See also, https://docs.aws.amazon.com/goto/WebAPI/support-2013-04-15/DescribeAttachment
  346. func (c *Support) DescribeAttachmentRequest(input *DescribeAttachmentInput) (req *request.Request, output *DescribeAttachmentOutput) {
  347. op := &request.Operation{
  348. Name: opDescribeAttachment,
  349. HTTPMethod: "POST",
  350. HTTPPath: "/",
  351. }
  352. if input == nil {
  353. input = &DescribeAttachmentInput{}
  354. }
  355. output = &DescribeAttachmentOutput{}
  356. req = c.newRequest(op, input, output)
  357. return
  358. }
  359. // DescribeAttachment API operation for AWS Support.
  360. //
  361. // Returns the attachment that has the specified ID. Attachment IDs are generated
  362. // by the case management system when you add an attachment to a case or case
  363. // communication. Attachment IDs are returned in the AttachmentDetails objects
  364. // that are returned by the DescribeCommunications operation.
  365. //
  366. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  367. // with awserr.Error's Code and Message methods to get detailed information about
  368. // the error.
  369. //
  370. // See the AWS API reference guide for AWS Support's
  371. // API operation DescribeAttachment for usage and error information.
  372. //
  373. // Returned Error Codes:
  374. // * ErrCodeInternalServerError "InternalServerError"
  375. // An internal server error occurred.
  376. //
  377. // * ErrCodeDescribeAttachmentLimitExceeded "DescribeAttachmentLimitExceeded"
  378. // The limit for the number of DescribeAttachment requests in a short period
  379. // of time has been exceeded.
  380. //
  381. // * ErrCodeAttachmentIdNotFound "AttachmentIdNotFound"
  382. // An attachment with the specified ID could not be found.
  383. //
  384. // See also, https://docs.aws.amazon.com/goto/WebAPI/support-2013-04-15/DescribeAttachment
  385. func (c *Support) DescribeAttachment(input *DescribeAttachmentInput) (*DescribeAttachmentOutput, error) {
  386. req, out := c.DescribeAttachmentRequest(input)
  387. return out, req.Send()
  388. }
  389. // DescribeAttachmentWithContext is the same as DescribeAttachment with the addition of
  390. // the ability to pass a context and additional request options.
  391. //
  392. // See DescribeAttachment for details on how to use this API operation.
  393. //
  394. // The context must be non-nil and will be used for request cancellation. If
  395. // the context is nil a panic will occur. In the future the SDK may create
  396. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  397. // for more information on using Contexts.
  398. func (c *Support) DescribeAttachmentWithContext(ctx aws.Context, input *DescribeAttachmentInput, opts ...request.Option) (*DescribeAttachmentOutput, error) {
  399. req, out := c.DescribeAttachmentRequest(input)
  400. req.SetContext(ctx)
  401. req.ApplyOptions(opts...)
  402. return out, req.Send()
  403. }
  404. const opDescribeCases = "DescribeCases"
  405. // DescribeCasesRequest generates a "aws/request.Request" representing the
  406. // client's request for the DescribeCases operation. The "output" return
  407. // value will be populated with the request's response once the request completes
  408. // successfully.
  409. //
  410. // Use "Send" method on the returned Request to send the API call to the service.
  411. // the "output" return value is not valid until after Send returns without error.
  412. //
  413. // See DescribeCases for more information on using the DescribeCases
  414. // API call, and error handling.
  415. //
  416. // This method is useful when you want to inject custom logic or configuration
  417. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  418. //
  419. //
  420. // // Example sending a request using the DescribeCasesRequest method.
  421. // req, resp := client.DescribeCasesRequest(params)
  422. //
  423. // err := req.Send()
  424. // if err == nil { // resp is now filled
  425. // fmt.Println(resp)
  426. // }
  427. //
  428. // See also, https://docs.aws.amazon.com/goto/WebAPI/support-2013-04-15/DescribeCases
  429. func (c *Support) DescribeCasesRequest(input *DescribeCasesInput) (req *request.Request, output *DescribeCasesOutput) {
  430. op := &request.Operation{
  431. Name: opDescribeCases,
  432. HTTPMethod: "POST",
  433. HTTPPath: "/",
  434. Paginator: &request.Paginator{
  435. InputTokens: []string{"nextToken"},
  436. OutputTokens: []string{"nextToken"},
  437. LimitToken: "maxResults",
  438. TruncationToken: "",
  439. },
  440. }
  441. if input == nil {
  442. input = &DescribeCasesInput{}
  443. }
  444. output = &DescribeCasesOutput{}
  445. req = c.newRequest(op, input, output)
  446. return
  447. }
  448. // DescribeCases API operation for AWS Support.
  449. //
  450. // Returns a list of cases that you specify by passing one or more case IDs.
  451. // In addition, you can filter the cases by date by setting values for the afterTime
  452. // and beforeTime request parameters. You can set values for the includeResolvedCases
  453. // and includeCommunications request parameters to control how much information
  454. // is returned.
  455. //
  456. // Case data is available for 12 months after creation. If a case was created
  457. // more than 12 months ago, a request for data might cause an error.
  458. //
  459. // The response returns the following in JSON format:
  460. //
  461. // * One or more CaseDetails data types.
  462. //
  463. // * One or more nextToken values, which specify where to paginate the returned
  464. // records represented by the CaseDetails objects.
  465. //
  466. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  467. // with awserr.Error's Code and Message methods to get detailed information about
  468. // the error.
  469. //
  470. // See the AWS API reference guide for AWS Support's
  471. // API operation DescribeCases for usage and error information.
  472. //
  473. // Returned Error Codes:
  474. // * ErrCodeInternalServerError "InternalServerError"
  475. // An internal server error occurred.
  476. //
  477. // * ErrCodeCaseIdNotFound "CaseIdNotFound"
  478. // The requested caseId could not be located.
  479. //
  480. // See also, https://docs.aws.amazon.com/goto/WebAPI/support-2013-04-15/DescribeCases
  481. func (c *Support) DescribeCases(input *DescribeCasesInput) (*DescribeCasesOutput, error) {
  482. req, out := c.DescribeCasesRequest(input)
  483. return out, req.Send()
  484. }
  485. // DescribeCasesWithContext is the same as DescribeCases with the addition of
  486. // the ability to pass a context and additional request options.
  487. //
  488. // See DescribeCases for details on how to use this API operation.
  489. //
  490. // The context must be non-nil and will be used for request cancellation. If
  491. // the context is nil a panic will occur. In the future the SDK may create
  492. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  493. // for more information on using Contexts.
  494. func (c *Support) DescribeCasesWithContext(ctx aws.Context, input *DescribeCasesInput, opts ...request.Option) (*DescribeCasesOutput, error) {
  495. req, out := c.DescribeCasesRequest(input)
  496. req.SetContext(ctx)
  497. req.ApplyOptions(opts...)
  498. return out, req.Send()
  499. }
  500. // DescribeCasesPages iterates over the pages of a DescribeCases operation,
  501. // calling the "fn" function with the response data for each page. To stop
  502. // iterating, return false from the fn function.
  503. //
  504. // See DescribeCases method for more information on how to use this operation.
  505. //
  506. // Note: This operation can generate multiple requests to a service.
  507. //
  508. // // Example iterating over at most 3 pages of a DescribeCases operation.
  509. // pageNum := 0
  510. // err := client.DescribeCasesPages(params,
  511. // func(page *DescribeCasesOutput, lastPage bool) bool {
  512. // pageNum++
  513. // fmt.Println(page)
  514. // return pageNum <= 3
  515. // })
  516. //
  517. func (c *Support) DescribeCasesPages(input *DescribeCasesInput, fn func(*DescribeCasesOutput, bool) bool) error {
  518. return c.DescribeCasesPagesWithContext(aws.BackgroundContext(), input, fn)
  519. }
  520. // DescribeCasesPagesWithContext same as DescribeCasesPages except
  521. // it takes a Context and allows setting request options on the pages.
  522. //
  523. // The context must be non-nil and will be used for request cancellation. If
  524. // the context is nil a panic will occur. In the future the SDK may create
  525. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  526. // for more information on using Contexts.
  527. func (c *Support) DescribeCasesPagesWithContext(ctx aws.Context, input *DescribeCasesInput, fn func(*DescribeCasesOutput, bool) bool, opts ...request.Option) error {
  528. p := request.Pagination{
  529. NewRequest: func() (*request.Request, error) {
  530. var inCpy *DescribeCasesInput
  531. if input != nil {
  532. tmp := *input
  533. inCpy = &tmp
  534. }
  535. req, _ := c.DescribeCasesRequest(inCpy)
  536. req.SetContext(ctx)
  537. req.ApplyOptions(opts...)
  538. return req, nil
  539. },
  540. }
  541. cont := true
  542. for p.Next() && cont {
  543. cont = fn(p.Page().(*DescribeCasesOutput), !p.HasNextPage())
  544. }
  545. return p.Err()
  546. }
  547. const opDescribeCommunications = "DescribeCommunications"
  548. // DescribeCommunicationsRequest generates a "aws/request.Request" representing the
  549. // client's request for the DescribeCommunications operation. The "output" return
  550. // value will be populated with the request's response once the request completes
  551. // successfully.
  552. //
  553. // Use "Send" method on the returned Request to send the API call to the service.
  554. // the "output" return value is not valid until after Send returns without error.
  555. //
  556. // See DescribeCommunications for more information on using the DescribeCommunications
  557. // API call, and error handling.
  558. //
  559. // This method is useful when you want to inject custom logic or configuration
  560. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  561. //
  562. //
  563. // // Example sending a request using the DescribeCommunicationsRequest method.
  564. // req, resp := client.DescribeCommunicationsRequest(params)
  565. //
  566. // err := req.Send()
  567. // if err == nil { // resp is now filled
  568. // fmt.Println(resp)
  569. // }
  570. //
  571. // See also, https://docs.aws.amazon.com/goto/WebAPI/support-2013-04-15/DescribeCommunications
  572. func (c *Support) DescribeCommunicationsRequest(input *DescribeCommunicationsInput) (req *request.Request, output *DescribeCommunicationsOutput) {
  573. op := &request.Operation{
  574. Name: opDescribeCommunications,
  575. HTTPMethod: "POST",
  576. HTTPPath: "/",
  577. Paginator: &request.Paginator{
  578. InputTokens: []string{"nextToken"},
  579. OutputTokens: []string{"nextToken"},
  580. LimitToken: "maxResults",
  581. TruncationToken: "",
  582. },
  583. }
  584. if input == nil {
  585. input = &DescribeCommunicationsInput{}
  586. }
  587. output = &DescribeCommunicationsOutput{}
  588. req = c.newRequest(op, input, output)
  589. return
  590. }
  591. // DescribeCommunications API operation for AWS Support.
  592. //
  593. // Returns communications (and attachments) for one or more support cases. You
  594. // can use the afterTime and beforeTime parameters to filter by date. You can
  595. // use the caseId parameter to restrict the results to a particular case.
  596. //
  597. // Case data is available for 12 months after creation. If a case was created
  598. // more than 12 months ago, a request for data might cause an error.
  599. //
  600. // You can use the maxResults and nextToken parameters to control the pagination
  601. // of the result set. Set maxResults to the number of cases you want displayed
  602. // on each page, and use nextToken to specify the resumption of pagination.
  603. //
  604. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  605. // with awserr.Error's Code and Message methods to get detailed information about
  606. // the error.
  607. //
  608. // See the AWS API reference guide for AWS Support's
  609. // API operation DescribeCommunications for usage and error information.
  610. //
  611. // Returned Error Codes:
  612. // * ErrCodeInternalServerError "InternalServerError"
  613. // An internal server error occurred.
  614. //
  615. // * ErrCodeCaseIdNotFound "CaseIdNotFound"
  616. // The requested caseId could not be located.
  617. //
  618. // See also, https://docs.aws.amazon.com/goto/WebAPI/support-2013-04-15/DescribeCommunications
  619. func (c *Support) DescribeCommunications(input *DescribeCommunicationsInput) (*DescribeCommunicationsOutput, error) {
  620. req, out := c.DescribeCommunicationsRequest(input)
  621. return out, req.Send()
  622. }
  623. // DescribeCommunicationsWithContext is the same as DescribeCommunications with the addition of
  624. // the ability to pass a context and additional request options.
  625. //
  626. // See DescribeCommunications for details on how to use this API operation.
  627. //
  628. // The context must be non-nil and will be used for request cancellation. If
  629. // the context is nil a panic will occur. In the future the SDK may create
  630. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  631. // for more information on using Contexts.
  632. func (c *Support) DescribeCommunicationsWithContext(ctx aws.Context, input *DescribeCommunicationsInput, opts ...request.Option) (*DescribeCommunicationsOutput, error) {
  633. req, out := c.DescribeCommunicationsRequest(input)
  634. req.SetContext(ctx)
  635. req.ApplyOptions(opts...)
  636. return out, req.Send()
  637. }
  638. // DescribeCommunicationsPages iterates over the pages of a DescribeCommunications operation,
  639. // calling the "fn" function with the response data for each page. To stop
  640. // iterating, return false from the fn function.
  641. //
  642. // See DescribeCommunications method for more information on how to use this operation.
  643. //
  644. // Note: This operation can generate multiple requests to a service.
  645. //
  646. // // Example iterating over at most 3 pages of a DescribeCommunications operation.
  647. // pageNum := 0
  648. // err := client.DescribeCommunicationsPages(params,
  649. // func(page *DescribeCommunicationsOutput, lastPage bool) bool {
  650. // pageNum++
  651. // fmt.Println(page)
  652. // return pageNum <= 3
  653. // })
  654. //
  655. func (c *Support) DescribeCommunicationsPages(input *DescribeCommunicationsInput, fn func(*DescribeCommunicationsOutput, bool) bool) error {
  656. return c.DescribeCommunicationsPagesWithContext(aws.BackgroundContext(), input, fn)
  657. }
  658. // DescribeCommunicationsPagesWithContext same as DescribeCommunicationsPages except
  659. // it takes a Context and allows setting request options on the pages.
  660. //
  661. // The context must be non-nil and will be used for request cancellation. If
  662. // the context is nil a panic will occur. In the future the SDK may create
  663. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  664. // for more information on using Contexts.
  665. func (c *Support) DescribeCommunicationsPagesWithContext(ctx aws.Context, input *DescribeCommunicationsInput, fn func(*DescribeCommunicationsOutput, bool) bool, opts ...request.Option) error {
  666. p := request.Pagination{
  667. NewRequest: func() (*request.Request, error) {
  668. var inCpy *DescribeCommunicationsInput
  669. if input != nil {
  670. tmp := *input
  671. inCpy = &tmp
  672. }
  673. req, _ := c.DescribeCommunicationsRequest(inCpy)
  674. req.SetContext(ctx)
  675. req.ApplyOptions(opts...)
  676. return req, nil
  677. },
  678. }
  679. cont := true
  680. for p.Next() && cont {
  681. cont = fn(p.Page().(*DescribeCommunicationsOutput), !p.HasNextPage())
  682. }
  683. return p.Err()
  684. }
  685. const opDescribeServices = "DescribeServices"
  686. // DescribeServicesRequest generates a "aws/request.Request" representing the
  687. // client's request for the DescribeServices operation. The "output" return
  688. // value will be populated with the request's response once the request completes
  689. // successfully.
  690. //
  691. // Use "Send" method on the returned Request to send the API call to the service.
  692. // the "output" return value is not valid until after Send returns without error.
  693. //
  694. // See DescribeServices for more information on using the DescribeServices
  695. // API call, and error handling.
  696. //
  697. // This method is useful when you want to inject custom logic or configuration
  698. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  699. //
  700. //
  701. // // Example sending a request using the DescribeServicesRequest method.
  702. // req, resp := client.DescribeServicesRequest(params)
  703. //
  704. // err := req.Send()
  705. // if err == nil { // resp is now filled
  706. // fmt.Println(resp)
  707. // }
  708. //
  709. // See also, https://docs.aws.amazon.com/goto/WebAPI/support-2013-04-15/DescribeServices
  710. func (c *Support) DescribeServicesRequest(input *DescribeServicesInput) (req *request.Request, output *DescribeServicesOutput) {
  711. op := &request.Operation{
  712. Name: opDescribeServices,
  713. HTTPMethod: "POST",
  714. HTTPPath: "/",
  715. }
  716. if input == nil {
  717. input = &DescribeServicesInput{}
  718. }
  719. output = &DescribeServicesOutput{}
  720. req = c.newRequest(op, input, output)
  721. return
  722. }
  723. // DescribeServices API operation for AWS Support.
  724. //
  725. // Returns the current list of AWS services and a list of service categories
  726. // that applies to each one. You then use service names and categories in your
  727. // CreateCase requests. Each AWS service has its own set of categories.
  728. //
  729. // The service codes and category codes correspond to the values that are displayed
  730. // in the Service and Category drop-down lists on the AWS Support Center Create
  731. // Case (https://console.aws.amazon.com/support/home#/case/create) page. The
  732. // values in those fields, however, do not necessarily match the service codes
  733. // and categories returned by the DescribeServices request. Always use the service
  734. // codes and categories obtained programmatically. This practice ensures that
  735. // you always have the most recent set of service and category codes.
  736. //
  737. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  738. // with awserr.Error's Code and Message methods to get detailed information about
  739. // the error.
  740. //
  741. // See the AWS API reference guide for AWS Support's
  742. // API operation DescribeServices for usage and error information.
  743. //
  744. // Returned Error Codes:
  745. // * ErrCodeInternalServerError "InternalServerError"
  746. // An internal server error occurred.
  747. //
  748. // See also, https://docs.aws.amazon.com/goto/WebAPI/support-2013-04-15/DescribeServices
  749. func (c *Support) DescribeServices(input *DescribeServicesInput) (*DescribeServicesOutput, error) {
  750. req, out := c.DescribeServicesRequest(input)
  751. return out, req.Send()
  752. }
  753. // DescribeServicesWithContext is the same as DescribeServices with the addition of
  754. // the ability to pass a context and additional request options.
  755. //
  756. // See DescribeServices for details on how to use this API operation.
  757. //
  758. // The context must be non-nil and will be used for request cancellation. If
  759. // the context is nil a panic will occur. In the future the SDK may create
  760. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  761. // for more information on using Contexts.
  762. func (c *Support) DescribeServicesWithContext(ctx aws.Context, input *DescribeServicesInput, opts ...request.Option) (*DescribeServicesOutput, error) {
  763. req, out := c.DescribeServicesRequest(input)
  764. req.SetContext(ctx)
  765. req.ApplyOptions(opts...)
  766. return out, req.Send()
  767. }
  768. const opDescribeSeverityLevels = "DescribeSeverityLevels"
  769. // DescribeSeverityLevelsRequest generates a "aws/request.Request" representing the
  770. // client's request for the DescribeSeverityLevels operation. The "output" return
  771. // value will be populated with the request's response once the request completes
  772. // successfully.
  773. //
  774. // Use "Send" method on the returned Request to send the API call to the service.
  775. // the "output" return value is not valid until after Send returns without error.
  776. //
  777. // See DescribeSeverityLevels for more information on using the DescribeSeverityLevels
  778. // API call, and error handling.
  779. //
  780. // This method is useful when you want to inject custom logic or configuration
  781. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  782. //
  783. //
  784. // // Example sending a request using the DescribeSeverityLevelsRequest method.
  785. // req, resp := client.DescribeSeverityLevelsRequest(params)
  786. //
  787. // err := req.Send()
  788. // if err == nil { // resp is now filled
  789. // fmt.Println(resp)
  790. // }
  791. //
  792. // See also, https://docs.aws.amazon.com/goto/WebAPI/support-2013-04-15/DescribeSeverityLevels
  793. func (c *Support) DescribeSeverityLevelsRequest(input *DescribeSeverityLevelsInput) (req *request.Request, output *DescribeSeverityLevelsOutput) {
  794. op := &request.Operation{
  795. Name: opDescribeSeverityLevels,
  796. HTTPMethod: "POST",
  797. HTTPPath: "/",
  798. }
  799. if input == nil {
  800. input = &DescribeSeverityLevelsInput{}
  801. }
  802. output = &DescribeSeverityLevelsOutput{}
  803. req = c.newRequest(op, input, output)
  804. return
  805. }
  806. // DescribeSeverityLevels API operation for AWS Support.
  807. //
  808. // Returns the list of severity levels that you can assign to an AWS Support
  809. // case. The severity level for a case is also a field in the CaseDetails data
  810. // type included in any CreateCase request.
  811. //
  812. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  813. // with awserr.Error's Code and Message methods to get detailed information about
  814. // the error.
  815. //
  816. // See the AWS API reference guide for AWS Support's
  817. // API operation DescribeSeverityLevels for usage and error information.
  818. //
  819. // Returned Error Codes:
  820. // * ErrCodeInternalServerError "InternalServerError"
  821. // An internal server error occurred.
  822. //
  823. // See also, https://docs.aws.amazon.com/goto/WebAPI/support-2013-04-15/DescribeSeverityLevels
  824. func (c *Support) DescribeSeverityLevels(input *DescribeSeverityLevelsInput) (*DescribeSeverityLevelsOutput, error) {
  825. req, out := c.DescribeSeverityLevelsRequest(input)
  826. return out, req.Send()
  827. }
  828. // DescribeSeverityLevelsWithContext is the same as DescribeSeverityLevels with the addition of
  829. // the ability to pass a context and additional request options.
  830. //
  831. // See DescribeSeverityLevels for details on how to use this API operation.
  832. //
  833. // The context must be non-nil and will be used for request cancellation. If
  834. // the context is nil a panic will occur. In the future the SDK may create
  835. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  836. // for more information on using Contexts.
  837. func (c *Support) DescribeSeverityLevelsWithContext(ctx aws.Context, input *DescribeSeverityLevelsInput, opts ...request.Option) (*DescribeSeverityLevelsOutput, error) {
  838. req, out := c.DescribeSeverityLevelsRequest(input)
  839. req.SetContext(ctx)
  840. req.ApplyOptions(opts...)
  841. return out, req.Send()
  842. }
  843. const opDescribeTrustedAdvisorCheckRefreshStatuses = "DescribeTrustedAdvisorCheckRefreshStatuses"
  844. // DescribeTrustedAdvisorCheckRefreshStatusesRequest generates a "aws/request.Request" representing the
  845. // client's request for the DescribeTrustedAdvisorCheckRefreshStatuses operation. The "output" return
  846. // value will be populated with the request's response once the request completes
  847. // successfully.
  848. //
  849. // Use "Send" method on the returned Request to send the API call to the service.
  850. // the "output" return value is not valid until after Send returns without error.
  851. //
  852. // See DescribeTrustedAdvisorCheckRefreshStatuses for more information on using the DescribeTrustedAdvisorCheckRefreshStatuses
  853. // API call, and error handling.
  854. //
  855. // This method is useful when you want to inject custom logic or configuration
  856. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  857. //
  858. //
  859. // // Example sending a request using the DescribeTrustedAdvisorCheckRefreshStatusesRequest method.
  860. // req, resp := client.DescribeTrustedAdvisorCheckRefreshStatusesRequest(params)
  861. //
  862. // err := req.Send()
  863. // if err == nil { // resp is now filled
  864. // fmt.Println(resp)
  865. // }
  866. //
  867. // See also, https://docs.aws.amazon.com/goto/WebAPI/support-2013-04-15/DescribeTrustedAdvisorCheckRefreshStatuses
  868. func (c *Support) DescribeTrustedAdvisorCheckRefreshStatusesRequest(input *DescribeTrustedAdvisorCheckRefreshStatusesInput) (req *request.Request, output *DescribeTrustedAdvisorCheckRefreshStatusesOutput) {
  869. op := &request.Operation{
  870. Name: opDescribeTrustedAdvisorCheckRefreshStatuses,
  871. HTTPMethod: "POST",
  872. HTTPPath: "/",
  873. }
  874. if input == nil {
  875. input = &DescribeTrustedAdvisorCheckRefreshStatusesInput{}
  876. }
  877. output = &DescribeTrustedAdvisorCheckRefreshStatusesOutput{}
  878. req = c.newRequest(op, input, output)
  879. return
  880. }
  881. // DescribeTrustedAdvisorCheckRefreshStatuses API operation for AWS Support.
  882. //
  883. // Returns the refresh status of the Trusted Advisor checks that have the specified
  884. // check IDs. Check IDs can be obtained by calling DescribeTrustedAdvisorChecks.
  885. //
  886. // Some checks are refreshed automatically, and their refresh statuses cannot
  887. // be retrieved by using this operation. Use of the DescribeTrustedAdvisorCheckRefreshStatuses
  888. // operation for these checks causes an InvalidParameterValue error.
  889. //
  890. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  891. // with awserr.Error's Code and Message methods to get detailed information about
  892. // the error.
  893. //
  894. // See the AWS API reference guide for AWS Support's
  895. // API operation DescribeTrustedAdvisorCheckRefreshStatuses for usage and error information.
  896. //
  897. // Returned Error Codes:
  898. // * ErrCodeInternalServerError "InternalServerError"
  899. // An internal server error occurred.
  900. //
  901. // See also, https://docs.aws.amazon.com/goto/WebAPI/support-2013-04-15/DescribeTrustedAdvisorCheckRefreshStatuses
  902. func (c *Support) DescribeTrustedAdvisorCheckRefreshStatuses(input *DescribeTrustedAdvisorCheckRefreshStatusesInput) (*DescribeTrustedAdvisorCheckRefreshStatusesOutput, error) {
  903. req, out := c.DescribeTrustedAdvisorCheckRefreshStatusesRequest(input)
  904. return out, req.Send()
  905. }
  906. // DescribeTrustedAdvisorCheckRefreshStatusesWithContext is the same as DescribeTrustedAdvisorCheckRefreshStatuses with the addition of
  907. // the ability to pass a context and additional request options.
  908. //
  909. // See DescribeTrustedAdvisorCheckRefreshStatuses for details on how to use this API operation.
  910. //
  911. // The context must be non-nil and will be used for request cancellation. If
  912. // the context is nil a panic will occur. In the future the SDK may create
  913. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  914. // for more information on using Contexts.
  915. func (c *Support) DescribeTrustedAdvisorCheckRefreshStatusesWithContext(ctx aws.Context, input *DescribeTrustedAdvisorCheckRefreshStatusesInput, opts ...request.Option) (*DescribeTrustedAdvisorCheckRefreshStatusesOutput, error) {
  916. req, out := c.DescribeTrustedAdvisorCheckRefreshStatusesRequest(input)
  917. req.SetContext(ctx)
  918. req.ApplyOptions(opts...)
  919. return out, req.Send()
  920. }
  921. const opDescribeTrustedAdvisorCheckResult = "DescribeTrustedAdvisorCheckResult"
  922. // DescribeTrustedAdvisorCheckResultRequest generates a "aws/request.Request" representing the
  923. // client's request for the DescribeTrustedAdvisorCheckResult operation. The "output" return
  924. // value will be populated with the request's response once the request completes
  925. // successfully.
  926. //
  927. // Use "Send" method on the returned Request to send the API call to the service.
  928. // the "output" return value is not valid until after Send returns without error.
  929. //
  930. // See DescribeTrustedAdvisorCheckResult for more information on using the DescribeTrustedAdvisorCheckResult
  931. // API call, and error handling.
  932. //
  933. // This method is useful when you want to inject custom logic or configuration
  934. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  935. //
  936. //
  937. // // Example sending a request using the DescribeTrustedAdvisorCheckResultRequest method.
  938. // req, resp := client.DescribeTrustedAdvisorCheckResultRequest(params)
  939. //
  940. // err := req.Send()
  941. // if err == nil { // resp is now filled
  942. // fmt.Println(resp)
  943. // }
  944. //
  945. // See also, https://docs.aws.amazon.com/goto/WebAPI/support-2013-04-15/DescribeTrustedAdvisorCheckResult
  946. func (c *Support) DescribeTrustedAdvisorCheckResultRequest(input *DescribeTrustedAdvisorCheckResultInput) (req *request.Request, output *DescribeTrustedAdvisorCheckResultOutput) {
  947. op := &request.Operation{
  948. Name: opDescribeTrustedAdvisorCheckResult,
  949. HTTPMethod: "POST",
  950. HTTPPath: "/",
  951. }
  952. if input == nil {
  953. input = &DescribeTrustedAdvisorCheckResultInput{}
  954. }
  955. output = &DescribeTrustedAdvisorCheckResultOutput{}
  956. req = c.newRequest(op, input, output)
  957. return
  958. }
  959. // DescribeTrustedAdvisorCheckResult API operation for AWS Support.
  960. //
  961. // Returns the results of the Trusted Advisor check that has the specified check
  962. // ID. Check IDs can be obtained by calling DescribeTrustedAdvisorChecks.
  963. //
  964. // The response contains a TrustedAdvisorCheckResult object, which contains
  965. // these three objects:
  966. //
  967. // * TrustedAdvisorCategorySpecificSummary
  968. //
  969. // * TrustedAdvisorResourceDetail
  970. //
  971. // * TrustedAdvisorResourcesSummary
  972. //
  973. // In addition, the response contains these fields:
  974. //
  975. // * status. The alert status of the check: "ok" (green), "warning" (yellow),
  976. // "error" (red), or "not_available".
  977. //
  978. // * timestamp. The time of the last refresh of the check.
  979. //
  980. // * checkId. The unique identifier for the check.
  981. //
  982. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  983. // with awserr.Error's Code and Message methods to get detailed information about
  984. // the error.
  985. //
  986. // See the AWS API reference guide for AWS Support's
  987. // API operation DescribeTrustedAdvisorCheckResult for usage and error information.
  988. //
  989. // Returned Error Codes:
  990. // * ErrCodeInternalServerError "InternalServerError"
  991. // An internal server error occurred.
  992. //
  993. // See also, https://docs.aws.amazon.com/goto/WebAPI/support-2013-04-15/DescribeTrustedAdvisorCheckResult
  994. func (c *Support) DescribeTrustedAdvisorCheckResult(input *DescribeTrustedAdvisorCheckResultInput) (*DescribeTrustedAdvisorCheckResultOutput, error) {
  995. req, out := c.DescribeTrustedAdvisorCheckResultRequest(input)
  996. return out, req.Send()
  997. }
  998. // DescribeTrustedAdvisorCheckResultWithContext is the same as DescribeTrustedAdvisorCheckResult with the addition of
  999. // the ability to pass a context and additional request options.
  1000. //
  1001. // See DescribeTrustedAdvisorCheckResult for details on how to use this API operation.
  1002. //
  1003. // The context must be non-nil and will be used for request cancellation. If
  1004. // the context is nil a panic will occur. In the future the SDK may create
  1005. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  1006. // for more information on using Contexts.
  1007. func (c *Support) DescribeTrustedAdvisorCheckResultWithContext(ctx aws.Context, input *DescribeTrustedAdvisorCheckResultInput, opts ...request.Option) (*DescribeTrustedAdvisorCheckResultOutput, error) {
  1008. req, out := c.DescribeTrustedAdvisorCheckResultRequest(input)
  1009. req.SetContext(ctx)
  1010. req.ApplyOptions(opts...)
  1011. return out, req.Send()
  1012. }
  1013. const opDescribeTrustedAdvisorCheckSummaries = "DescribeTrustedAdvisorCheckSummaries"
  1014. // DescribeTrustedAdvisorCheckSummariesRequest generates a "aws/request.Request" representing the
  1015. // client's request for the DescribeTrustedAdvisorCheckSummaries operation. The "output" return
  1016. // value will be populated with the request's response once the request completes
  1017. // successfully.
  1018. //
  1019. // Use "Send" method on the returned Request to send the API call to the service.
  1020. // the "output" return value is not valid until after Send returns without error.
  1021. //
  1022. // See DescribeTrustedAdvisorCheckSummaries for more information on using the DescribeTrustedAdvisorCheckSummaries
  1023. // API call, and error handling.
  1024. //
  1025. // This method is useful when you want to inject custom logic or configuration
  1026. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  1027. //
  1028. //
  1029. // // Example sending a request using the DescribeTrustedAdvisorCheckSummariesRequest method.
  1030. // req, resp := client.DescribeTrustedAdvisorCheckSummariesRequest(params)
  1031. //
  1032. // err := req.Send()
  1033. // if err == nil { // resp is now filled
  1034. // fmt.Println(resp)
  1035. // }
  1036. //
  1037. // See also, https://docs.aws.amazon.com/goto/WebAPI/support-2013-04-15/DescribeTrustedAdvisorCheckSummaries
  1038. func (c *Support) DescribeTrustedAdvisorCheckSummariesRequest(input *DescribeTrustedAdvisorCheckSummariesInput) (req *request.Request, output *DescribeTrustedAdvisorCheckSummariesOutput) {
  1039. op := &request.Operation{
  1040. Name: opDescribeTrustedAdvisorCheckSummaries,
  1041. HTTPMethod: "POST",
  1042. HTTPPath: "/",
  1043. }
  1044. if input == nil {
  1045. input = &DescribeTrustedAdvisorCheckSummariesInput{}
  1046. }
  1047. output = &DescribeTrustedAdvisorCheckSummariesOutput{}
  1048. req = c.newRequest(op, input, output)
  1049. return
  1050. }
  1051. // DescribeTrustedAdvisorCheckSummaries API operation for AWS Support.
  1052. //
  1053. // Returns the summaries of the results of the Trusted Advisor checks that have
  1054. // the specified check IDs. Check IDs can be obtained by calling DescribeTrustedAdvisorChecks.
  1055. //
  1056. // The response contains an array of TrustedAdvisorCheckSummary objects.
  1057. //
  1058. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  1059. // with awserr.Error's Code and Message methods to get detailed information about
  1060. // the error.
  1061. //
  1062. // See the AWS API reference guide for AWS Support's
  1063. // API operation DescribeTrustedAdvisorCheckSummaries for usage and error information.
  1064. //
  1065. // Returned Error Codes:
  1066. // * ErrCodeInternalServerError "InternalServerError"
  1067. // An internal server error occurred.
  1068. //
  1069. // See also, https://docs.aws.amazon.com/goto/WebAPI/support-2013-04-15/DescribeTrustedAdvisorCheckSummaries
  1070. func (c *Support) DescribeTrustedAdvisorCheckSummaries(input *DescribeTrustedAdvisorCheckSummariesInput) (*DescribeTrustedAdvisorCheckSummariesOutput, error) {
  1071. req, out := c.DescribeTrustedAdvisorCheckSummariesRequest(input)
  1072. return out, req.Send()
  1073. }
  1074. // DescribeTrustedAdvisorCheckSummariesWithContext is the same as DescribeTrustedAdvisorCheckSummaries with the addition of
  1075. // the ability to pass a context and additional request options.
  1076. //
  1077. // See DescribeTrustedAdvisorCheckSummaries for details on how to use this API operation.
  1078. //
  1079. // The context must be non-nil and will be used for request cancellation. If
  1080. // the context is nil a panic will occur. In the future the SDK may create
  1081. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  1082. // for more information on using Contexts.
  1083. func (c *Support) DescribeTrustedAdvisorCheckSummariesWithContext(ctx aws.Context, input *DescribeTrustedAdvisorCheckSummariesInput, opts ...request.Option) (*DescribeTrustedAdvisorCheckSummariesOutput, error) {
  1084. req, out := c.DescribeTrustedAdvisorCheckSummariesRequest(input)
  1085. req.SetContext(ctx)
  1086. req.ApplyOptions(opts...)
  1087. return out, req.Send()
  1088. }
  1089. const opDescribeTrustedAdvisorChecks = "DescribeTrustedAdvisorChecks"
  1090. // DescribeTrustedAdvisorChecksRequest generates a "aws/request.Request" representing the
  1091. // client's request for the DescribeTrustedAdvisorChecks operation. The "output" return
  1092. // value will be populated with the request's response once the request completes
  1093. // successfully.
  1094. //
  1095. // Use "Send" method on the returned Request to send the API call to the service.
  1096. // the "output" return value is not valid until after Send returns without error.
  1097. //
  1098. // See DescribeTrustedAdvisorChecks for more information on using the DescribeTrustedAdvisorChecks
  1099. // API call, and error handling.
  1100. //
  1101. // This method is useful when you want to inject custom logic or configuration
  1102. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  1103. //
  1104. //
  1105. // // Example sending a request using the DescribeTrustedAdvisorChecksRequest method.
  1106. // req, resp := client.DescribeTrustedAdvisorChecksRequest(params)
  1107. //
  1108. // err := req.Send()
  1109. // if err == nil { // resp is now filled
  1110. // fmt.Println(resp)
  1111. // }
  1112. //
  1113. // See also, https://docs.aws.amazon.com/goto/WebAPI/support-2013-04-15/DescribeTrustedAdvisorChecks
  1114. func (c *Support) DescribeTrustedAdvisorChecksRequest(input *DescribeTrustedAdvisorChecksInput) (req *request.Request, output *DescribeTrustedAdvisorChecksOutput) {
  1115. op := &request.Operation{
  1116. Name: opDescribeTrustedAdvisorChecks,
  1117. HTTPMethod: "POST",
  1118. HTTPPath: "/",
  1119. }
  1120. if input == nil {
  1121. input = &DescribeTrustedAdvisorChecksInput{}
  1122. }
  1123. output = &DescribeTrustedAdvisorChecksOutput{}
  1124. req = c.newRequest(op, input, output)
  1125. return
  1126. }
  1127. // DescribeTrustedAdvisorChecks API operation for AWS Support.
  1128. //
  1129. // Returns information about all available Trusted Advisor checks, including
  1130. // name, ID, category, description, and metadata. You must specify a language
  1131. // code; English ("en") and Japanese ("ja") are currently supported. The response
  1132. // contains a TrustedAdvisorCheckDescription for each check.
  1133. //
  1134. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  1135. // with awserr.Error's Code and Message methods to get detailed information about
  1136. // the error.
  1137. //
  1138. // See the AWS API reference guide for AWS Support's
  1139. // API operation DescribeTrustedAdvisorChecks for usage and error information.
  1140. //
  1141. // Returned Error Codes:
  1142. // * ErrCodeInternalServerError "InternalServerError"
  1143. // An internal server error occurred.
  1144. //
  1145. // See also, https://docs.aws.amazon.com/goto/WebAPI/support-2013-04-15/DescribeTrustedAdvisorChecks
  1146. func (c *Support) DescribeTrustedAdvisorChecks(input *DescribeTrustedAdvisorChecksInput) (*DescribeTrustedAdvisorChecksOutput, error) {
  1147. req, out := c.DescribeTrustedAdvisorChecksRequest(input)
  1148. return out, req.Send()
  1149. }
  1150. // DescribeTrustedAdvisorChecksWithContext is the same as DescribeTrustedAdvisorChecks with the addition of
  1151. // the ability to pass a context and additional request options.
  1152. //
  1153. // See DescribeTrustedAdvisorChecks for details on how to use this API operation.
  1154. //
  1155. // The context must be non-nil and will be used for request cancellation. If
  1156. // the context is nil a panic will occur. In the future the SDK may create
  1157. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  1158. // for more information on using Contexts.
  1159. func (c *Support) DescribeTrustedAdvisorChecksWithContext(ctx aws.Context, input *DescribeTrustedAdvisorChecksInput, opts ...request.Option) (*DescribeTrustedAdvisorChecksOutput, error) {
  1160. req, out := c.DescribeTrustedAdvisorChecksRequest(input)
  1161. req.SetContext(ctx)
  1162. req.ApplyOptions(opts...)
  1163. return out, req.Send()
  1164. }
  1165. const opRefreshTrustedAdvisorCheck = "RefreshTrustedAdvisorCheck"
  1166. // RefreshTrustedAdvisorCheckRequest generates a "aws/request.Request" representing the
  1167. // client's request for the RefreshTrustedAdvisorCheck operation. The "output" return
  1168. // value will be populated with the request's response once the request completes
  1169. // successfully.
  1170. //
  1171. // Use "Send" method on the returned Request to send the API call to the service.
  1172. // the "output" return value is not valid until after Send returns without error.
  1173. //
  1174. // See RefreshTrustedAdvisorCheck for more information on using the RefreshTrustedAdvisorCheck
  1175. // API call, and error handling.
  1176. //
  1177. // This method is useful when you want to inject custom logic or configuration
  1178. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  1179. //
  1180. //
  1181. // // Example sending a request using the RefreshTrustedAdvisorCheckRequest method.
  1182. // req, resp := client.RefreshTrustedAdvisorCheckRequest(params)
  1183. //
  1184. // err := req.Send()
  1185. // if err == nil { // resp is now filled
  1186. // fmt.Println(resp)
  1187. // }
  1188. //
  1189. // See also, https://docs.aws.amazon.com/goto/WebAPI/support-2013-04-15/RefreshTrustedAdvisorCheck
  1190. func (c *Support) RefreshTrustedAdvisorCheckRequest(input *RefreshTrustedAdvisorCheckInput) (req *request.Request, output *RefreshTrustedAdvisorCheckOutput) {
  1191. op := &request.Operation{
  1192. Name: opRefreshTrustedAdvisorCheck,
  1193. HTTPMethod: "POST",
  1194. HTTPPath: "/",
  1195. }
  1196. if input == nil {
  1197. input = &RefreshTrustedAdvisorCheckInput{}
  1198. }
  1199. output = &RefreshTrustedAdvisorCheckOutput{}
  1200. req = c.newRequest(op, input, output)
  1201. return
  1202. }
  1203. // RefreshTrustedAdvisorCheck API operation for AWS Support.
  1204. //
  1205. // Requests a refresh of the Trusted Advisor check that has the specified check
  1206. // ID. Check IDs can be obtained by calling DescribeTrustedAdvisorChecks.
  1207. //
  1208. // Some checks are refreshed automatically, and they cannot be refreshed by
  1209. // using this operation. Use of the RefreshTrustedAdvisorCheck operation for
  1210. // these checks causes an InvalidParameterValue error.
  1211. //
  1212. // The response contains a TrustedAdvisorCheckRefreshStatus object, which contains
  1213. // these fields:
  1214. //
  1215. // * status. The refresh status of the check: "none", "enqueued", "processing",
  1216. // "success", or "abandoned".
  1217. //
  1218. // * millisUntilNextRefreshable. The amount of time, in milliseconds, until
  1219. // the check is eligible for refresh.
  1220. //
  1221. // * checkId. The unique identifier for the check.
  1222. //
  1223. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  1224. // with awserr.Error's Code and Message methods to get detailed information about
  1225. // the error.
  1226. //
  1227. // See the AWS API reference guide for AWS Support's
  1228. // API operation RefreshTrustedAdvisorCheck for usage and error information.
  1229. //
  1230. // Returned Error Codes:
  1231. // * ErrCodeInternalServerError "InternalServerError"
  1232. // An internal server error occurred.
  1233. //
  1234. // See also, https://docs.aws.amazon.com/goto/WebAPI/support-2013-04-15/RefreshTrustedAdvisorCheck
  1235. func (c *Support) RefreshTrustedAdvisorCheck(input *RefreshTrustedAdvisorCheckInput) (*RefreshTrustedAdvisorCheckOutput, error) {
  1236. req, out := c.RefreshTrustedAdvisorCheckRequest(input)
  1237. return out, req.Send()
  1238. }
  1239. // RefreshTrustedAdvisorCheckWithContext is the same as RefreshTrustedAdvisorCheck with the addition of
  1240. // the ability to pass a context and additional request options.
  1241. //
  1242. // See RefreshTrustedAdvisorCheck for details on how to use this API operation.
  1243. //
  1244. // The context must be non-nil and will be used for request cancellation. If
  1245. // the context is nil a panic will occur. In the future the SDK may create
  1246. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  1247. // for more information on using Contexts.
  1248. func (c *Support) RefreshTrustedAdvisorCheckWithContext(ctx aws.Context, input *RefreshTrustedAdvisorCheckInput, opts ...request.Option) (*RefreshTrustedAdvisorCheckOutput, error) {
  1249. req, out := c.RefreshTrustedAdvisorCheckRequest(input)
  1250. req.SetContext(ctx)
  1251. req.ApplyOptions(opts...)
  1252. return out, req.Send()
  1253. }
  1254. const opResolveCase = "ResolveCase"
  1255. // ResolveCaseRequest generates a "aws/request.Request" representing the
  1256. // client's request for the ResolveCase operation. The "output" return
  1257. // value will be populated with the request's response once the request completes
  1258. // successfully.
  1259. //
  1260. // Use "Send" method on the returned Request to send the API call to the service.
  1261. // the "output" return value is not valid until after Send returns without error.
  1262. //
  1263. // See ResolveCase for more information on using the ResolveCase
  1264. // API call, and error handling.
  1265. //
  1266. // This method is useful when you want to inject custom logic or configuration
  1267. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  1268. //
  1269. //
  1270. // // Example sending a request using the ResolveCaseRequest method.
  1271. // req, resp := client.ResolveCaseRequest(params)
  1272. //
  1273. // err := req.Send()
  1274. // if err == nil { // resp is now filled
  1275. // fmt.Println(resp)
  1276. // }
  1277. //
  1278. // See also, https://docs.aws.amazon.com/goto/WebAPI/support-2013-04-15/ResolveCase
  1279. func (c *Support) ResolveCaseRequest(input *ResolveCaseInput) (req *request.Request, output *ResolveCaseOutput) {
  1280. op := &request.Operation{
  1281. Name: opResolveCase,
  1282. HTTPMethod: "POST",
  1283. HTTPPath: "/",
  1284. }
  1285. if input == nil {
  1286. input = &ResolveCaseInput{}
  1287. }
  1288. output = &ResolveCaseOutput{}
  1289. req = c.newRequest(op, input, output)
  1290. return
  1291. }
  1292. // ResolveCase API operation for AWS Support.
  1293. //
  1294. // Takes a caseId and returns the initial state of the case along with the state
  1295. // of the case after the call to ResolveCase completed.
  1296. //
  1297. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  1298. // with awserr.Error's Code and Message methods to get detailed information about
  1299. // the error.
  1300. //
  1301. // See the AWS API reference guide for AWS Support's
  1302. // API operation ResolveCase for usage and error information.
  1303. //
  1304. // Returned Error Codes:
  1305. // * ErrCodeInternalServerError "InternalServerError"
  1306. // An internal server error occurred.
  1307. //
  1308. // * ErrCodeCaseIdNotFound "CaseIdNotFound"
  1309. // The requested caseId could not be located.
  1310. //
  1311. // See also, https://docs.aws.amazon.com/goto/WebAPI/support-2013-04-15/ResolveCase
  1312. func (c *Support) ResolveCase(input *ResolveCaseInput) (*ResolveCaseOutput, error) {
  1313. req, out := c.ResolveCaseRequest(input)
  1314. return out, req.Send()
  1315. }
  1316. // ResolveCaseWithContext is the same as ResolveCase with the addition of
  1317. // the ability to pass a context and additional request options.
  1318. //
  1319. // See ResolveCase for details on how to use this API operation.
  1320. //
  1321. // The context must be non-nil and will be used for request cancellation. If
  1322. // the context is nil a panic will occur. In the future the SDK may create
  1323. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  1324. // for more information on using Contexts.
  1325. func (c *Support) ResolveCaseWithContext(ctx aws.Context, input *ResolveCaseInput, opts ...request.Option) (*ResolveCaseOutput, error) {
  1326. req, out := c.ResolveCaseRequest(input)
  1327. req.SetContext(ctx)
  1328. req.ApplyOptions(opts...)
  1329. return out, req.Send()
  1330. }
  1331. type AddAttachmentsToSetInput struct {
  1332. _ struct{} `type:"structure"`
  1333. // The ID of the attachment set. If an attachmentSetId is not specified, a new
  1334. // attachment set is created, and the ID of the set is returned in the response.
  1335. // If an attachmentSetId is specified, the attachments are added to the specified
  1336. // set, if it exists.
  1337. AttachmentSetId *string `locationName:"attachmentSetId" type:"string"`
  1338. // One or more attachments to add to the set. The limit is 3 attachments per
  1339. // set, and the size limit is 5 MB per attachment.
  1340. //
  1341. // Attachments is a required field
  1342. Attachments []*Attachment `locationName:"attachments" type:"list" required:"true"`
  1343. }
  1344. // String returns the string representation
  1345. func (s AddAttachmentsToSetInput) String() string {
  1346. return awsutil.Prettify(s)
  1347. }
  1348. // GoString returns the string representation
  1349. func (s AddAttachmentsToSetInput) GoString() string {
  1350. return s.String()
  1351. }
  1352. // Validate inspects the fields of the type to determine if they are valid.
  1353. func (s *AddAttachmentsToSetInput) Validate() error {
  1354. invalidParams := request.ErrInvalidParams{Context: "AddAttachmentsToSetInput"}
  1355. if s.Attachments == nil {
  1356. invalidParams.Add(request.NewErrParamRequired("Attachments"))
  1357. }
  1358. if invalidParams.Len() > 0 {
  1359. return invalidParams
  1360. }
  1361. return nil
  1362. }
  1363. // SetAttachmentSetId sets the AttachmentSetId field's value.
  1364. func (s *AddAttachmentsToSetInput) SetAttachmentSetId(v string) *AddAttachmentsToSetInput {
  1365. s.AttachmentSetId = &v
  1366. return s
  1367. }
  1368. // SetAttachments sets the Attachments field's value.
  1369. func (s *AddAttachmentsToSetInput) SetAttachments(v []*Attachment) *AddAttachmentsToSetInput {
  1370. s.Attachments = v
  1371. return s
  1372. }
  1373. // The ID and expiry time of the attachment set returned by the AddAttachmentsToSet
  1374. // operation.
  1375. type AddAttachmentsToSetOutput struct {
  1376. _ struct{} `type:"structure"`
  1377. // The ID of the attachment set. If an attachmentSetId was not specified, a
  1378. // new attachment set is created, and the ID of the set is returned in the response.
  1379. // If an attachmentSetId was specified, the attachments are added to the specified
  1380. // set, if it exists.
  1381. AttachmentSetId *string `locationName:"attachmentSetId" type:"string"`
  1382. // The time and date when the attachment set expires.
  1383. ExpiryTime *string `locationName:"expiryTime" type:"string"`
  1384. }
  1385. // String returns the string representation
  1386. func (s AddAttachmentsToSetOutput) String() string {
  1387. return awsutil.Prettify(s)
  1388. }
  1389. // GoString returns the string representation
  1390. func (s AddAttachmentsToSetOutput) GoString() string {
  1391. return s.String()
  1392. }
  1393. // SetAttachmentSetId sets the AttachmentSetId field's value.
  1394. func (s *AddAttachmentsToSetOutput) SetAttachmentSetId(v string) *AddAttachmentsToSetOutput {
  1395. s.AttachmentSetId = &v
  1396. return s
  1397. }
  1398. // SetExpiryTime sets the ExpiryTime field's value.
  1399. func (s *AddAttachmentsToSetOutput) SetExpiryTime(v string) *AddAttachmentsToSetOutput {
  1400. s.ExpiryTime = &v
  1401. return s
  1402. }
  1403. // To be written.
  1404. type AddCommunicationToCaseInput struct {
  1405. _ struct{} `type:"structure"`
  1406. // The ID of a set of one or more attachments for the communication to add to
  1407. // the case. Create the set by calling AddAttachmentsToSet
  1408. AttachmentSetId *string `locationName:"attachmentSetId" type:"string"`
  1409. // The AWS Support case ID requested or returned in the call. The case ID is
  1410. // an alphanumeric string formatted as shown in this example: case-12345678910-2013-c4c1d2bf33c5cf47
  1411. CaseId *string `locationName:"caseId" type:"string"`
  1412. // The email addresses in the CC line of an email to be added to the support
  1413. // case.
  1414. CcEmailAddresses []*string `locationName:"ccEmailAddresses" type:"list"`
  1415. // The body of an email communication to add to the support case.
  1416. //
  1417. // CommunicationBody is a required field
  1418. CommunicationBody *string `locationName:"communicationBody" min:"1" type:"string" required:"true"`
  1419. }
  1420. // String returns the string representation
  1421. func (s AddCommunicationToCaseInput) String() string {
  1422. return awsutil.Prettify(s)
  1423. }
  1424. // GoString returns the string representation
  1425. func (s AddCommunicationToCaseInput) GoString() string {
  1426. return s.String()
  1427. }
  1428. // Validate inspects the fields of the type to determine if they are valid.
  1429. func (s *AddCommunicationToCaseInput) Validate() error {
  1430. invalidParams := request.ErrInvalidParams{Context: "AddCommunicationToCaseInput"}
  1431. if s.CommunicationBody == nil {
  1432. invalidParams.Add(request.NewErrParamRequired("CommunicationBody"))
  1433. }
  1434. if s.CommunicationBody != nil && len(*s.CommunicationBody) < 1 {
  1435. invalidParams.Add(request.NewErrParamMinLen("CommunicationBody", 1))
  1436. }
  1437. if invalidParams.Len() > 0 {
  1438. return invalidParams
  1439. }
  1440. return nil
  1441. }
  1442. // SetAttachmentSetId sets the AttachmentSetId field's value.
  1443. func (s *AddCommunicationToCaseInput) SetAttachmentSetId(v string) *AddCommunicationToCaseInput {
  1444. s.AttachmentSetId = &v
  1445. return s
  1446. }
  1447. // SetCaseId sets the CaseId field's value.
  1448. func (s *AddCommunicationToCaseInput) SetCaseId(v string) *AddCommunicationToCaseInput {
  1449. s.CaseId = &v
  1450. return s
  1451. }
  1452. // SetCcEmailAddresses sets the CcEmailAddresses field's value.
  1453. func (s *AddCommunicationToCaseInput) SetCcEmailAddresses(v []*string) *AddCommunicationToCaseInput {
  1454. s.CcEmailAddresses = v
  1455. return s
  1456. }
  1457. // SetCommunicationBody sets the CommunicationBody field's value.
  1458. func (s *AddCommunicationToCaseInput) SetCommunicationBody(v string) *AddCommunicationToCaseInput {
  1459. s.CommunicationBody = &v
  1460. return s
  1461. }
  1462. // The result of the AddCommunicationToCase operation.
  1463. type AddCommunicationToCaseOutput struct {
  1464. _ struct{} `type:"structure"`
  1465. // True if AddCommunicationToCase succeeds. Otherwise, returns an error.
  1466. Result *bool `locationName:"result" type:"boolean"`
  1467. }
  1468. // String returns the string representation
  1469. func (s AddCommunicationToCaseOutput) String() string {
  1470. return awsutil.Prettify(s)
  1471. }
  1472. // GoString returns the string representation
  1473. func (s AddCommunicationToCaseOutput) GoString() string {
  1474. return s.String()
  1475. }
  1476. // SetResult sets the Result field's value.
  1477. func (s *AddCommunicationToCaseOutput) SetResult(v bool) *AddCommunicationToCaseOutput {
  1478. s.Result = &v
  1479. return s
  1480. }
  1481. // An attachment to a case communication. The attachment consists of the file
  1482. // name and the content of the file.
  1483. type Attachment struct {
  1484. _ struct{} `type:"structure"`
  1485. // The content of the attachment file.
  1486. //
  1487. // Data is automatically base64 encoded/decoded by the SDK.
  1488. Data []byte `locationName:"data" type:"blob"`
  1489. // The name of the attachment file.
  1490. FileName *string `locationName:"fileName" type:"string"`
  1491. }
  1492. // String returns the string representation
  1493. func (s Attachment) String() string {
  1494. return awsutil.Prettify(s)
  1495. }
  1496. // GoString returns the string representation
  1497. func (s Attachment) GoString() string {
  1498. return s.String()
  1499. }
  1500. // SetData sets the Data field's value.
  1501. func (s *Attachment) SetData(v []byte) *Attachment {
  1502. s.Data = v
  1503. return s
  1504. }
  1505. // SetFileName sets the FileName field's value.
  1506. func (s *Attachment) SetFileName(v string) *Attachment {
  1507. s.FileName = &v
  1508. return s
  1509. }
  1510. // The file name and ID of an attachment to a case communication. You can use
  1511. // the ID to retrieve the attachment with the DescribeAttachment operation.
  1512. type AttachmentDetails struct {
  1513. _ struct{} `type:"structure"`
  1514. // The ID of the attachment.
  1515. AttachmentId *string `locationName:"attachmentId" type:"string"`
  1516. // The file name of the attachment.
  1517. FileName *string `locationName:"fileName" type:"string"`
  1518. }
  1519. // String returns the string representation
  1520. func (s AttachmentDetails) String() string {
  1521. return awsutil.Prettify(s)
  1522. }
  1523. // GoString returns the string representation
  1524. func (s AttachmentDetails) GoString() string {
  1525. return s.String()
  1526. }
  1527. // SetAttachmentId sets the AttachmentId field's value.
  1528. func (s *AttachmentDetails) SetAttachmentId(v string) *AttachmentDetails {
  1529. s.AttachmentId = &v
  1530. return s
  1531. }
  1532. // SetFileName sets the FileName field's value.
  1533. func (s *AttachmentDetails) SetFileName(v string) *AttachmentDetails {
  1534. s.FileName = &v
  1535. return s
  1536. }
  1537. // A JSON-formatted object that contains the metadata for a support case. It
  1538. // is contained the response from a DescribeCases request. CaseDetails contains
  1539. // the following fields:
  1540. //
  1541. // * caseId. The AWS Support case ID requested or returned in the call. The
  1542. // case ID is an alphanumeric string formatted as shown in this example:
  1543. // case-12345678910-2013-c4c1d2bf33c5cf47.
  1544. //
  1545. // * categoryCode. The category of problem for the AWS Support case. Corresponds
  1546. // to the CategoryCode values returned by a call to DescribeServices.
  1547. //
  1548. // * displayId. The identifier for the case on pages in the AWS Support Center.
  1549. //
  1550. // * language. The ISO 639-1 code for the language in which AWS provides
  1551. // support. AWS Support currently supports English ("en") and Japanese ("ja").
  1552. // Language parameters must be passed explicitly for operations that take
  1553. // them.
  1554. //
  1555. // * recentCommunications. One or more Communication objects. Fields of these
  1556. // objects are attachments, body, caseId, submittedBy, and timeCreated.
  1557. //
  1558. // * nextToken. A resumption point for pagination.
  1559. //
  1560. // * serviceCode. The identifier for the AWS service that corresponds to
  1561. // the service code defined in the call to DescribeServices.
  1562. //
  1563. // * severityCode. The severity code assigned to the case. Contains one of
  1564. // the values returned by the call to DescribeSeverityLevels.
  1565. //
  1566. // * status. The status of the case in the AWS Support Center.
  1567. //
  1568. // * subject. The subject line of the case.
  1569. //
  1570. // * submittedBy. The email address of the account that submitted the case.
  1571. //
  1572. // * timeCreated. The time the case was created, in ISO-8601 format.
  1573. type CaseDetails struct {
  1574. _ struct{} `type:"structure"`
  1575. // The AWS Support case ID requested or returned in the call. The case ID is
  1576. // an alphanumeric string formatted as shown in this example: case-12345678910-2013-c4c1d2bf33c5cf47
  1577. CaseId *string `locationName:"caseId" type:"string"`
  1578. // The category of problem for the AWS Support case.
  1579. CategoryCode *string `locationName:"categoryCode" type:"string"`
  1580. // The email addresses that receive copies of communication about the case.
  1581. CcEmailAddresses []*string `locationName:"ccEmailAddresses" type:"list"`
  1582. // The ID displayed for the case in the AWS Support Center. This is a numeric
  1583. // string.
  1584. DisplayId *string `locationName:"displayId" type:"string"`
  1585. // The ISO 639-1 code for the language in which AWS provides support. AWS Support
  1586. // currently supports English ("en") and Japanese ("ja"). Language parameters
  1587. // must be passed explicitly for operations that take them.
  1588. Language *string `locationName:"language" type:"string"`
  1589. // The five most recent communications between you and AWS Support Center, including
  1590. // the IDs of any attachments to the communications. Also includes a nextToken
  1591. // that you can use to retrieve earlier communications.
  1592. RecentCommunications *RecentCaseCommunications `locationName:"recentCommunications" type:"structure"`
  1593. // The code for the AWS service returned by the call to DescribeServices.
  1594. ServiceCode *string `locationName:"serviceCode" type:"string"`
  1595. // The code for the severity level returned by the call to DescribeSeverityLevels.
  1596. SeverityCode *string `locationName:"severityCode" type:"string"`
  1597. // The status of the case.
  1598. Status *string `locationName:"status" type:"string"`
  1599. // The subject line for the case in the AWS Support Center.
  1600. Subject *string `locationName:"subject" type:"string"`
  1601. // The email address of the account that submitted the case.
  1602. SubmittedBy *string `locationName:"submittedBy" type:"string"`
  1603. // The time that the case was case created in the AWS Support Center.
  1604. TimeCreated *string `locationName:"timeCreated" type:"string"`
  1605. }
  1606. // String returns the string representation
  1607. func (s CaseDetails) String() string {
  1608. return awsutil.Prettify(s)
  1609. }
  1610. // GoString returns the string representation
  1611. func (s CaseDetails) GoString() string {
  1612. return s.String()
  1613. }
  1614. // SetCaseId sets the CaseId field's value.
  1615. func (s *CaseDetails) SetCaseId(v string) *CaseDetails {
  1616. s.CaseId = &v
  1617. return s
  1618. }
  1619. // SetCategoryCode sets the CategoryCode field's value.
  1620. func (s *CaseDetails) SetCategoryCode(v string) *CaseDetails {
  1621. s.CategoryCode = &v
  1622. return s
  1623. }
  1624. // SetCcEmailAddresses sets the CcEmailAddresses field's value.
  1625. func (s *CaseDetails) SetCcEmailAddresses(v []*string) *CaseDetails {
  1626. s.CcEmailAddresses = v
  1627. return s
  1628. }
  1629. // SetDisplayId sets the DisplayId field's value.
  1630. func (s *CaseDetails) SetDisplayId(v string) *CaseDetails {
  1631. s.DisplayId = &v
  1632. return s
  1633. }
  1634. // SetLanguage sets the Language field's value.
  1635. func (s *CaseDetails) SetLanguage(v string) *CaseDetails {
  1636. s.Language = &v
  1637. return s
  1638. }
  1639. // SetRecentCommunications sets the RecentCommunications field's value.
  1640. func (s *CaseDetails) SetRecentCommunications(v *RecentCaseCommunications) *CaseDetails {
  1641. s.RecentCommunications = v
  1642. return s
  1643. }
  1644. // SetServiceCode sets the ServiceCode field's value.
  1645. func (s *CaseDetails) SetServiceCode(v string) *CaseDetails {
  1646. s.ServiceCode = &v
  1647. return s
  1648. }
  1649. // SetSeverityCode sets the SeverityCode field's value.
  1650. func (s *CaseDetails) SetSeverityCode(v string) *CaseDetails {
  1651. s.SeverityCode = &v
  1652. return s
  1653. }
  1654. // SetStatus sets the Status field's value.
  1655. func (s *CaseDetails) SetStatus(v string) *CaseDetails {
  1656. s.Status = &v
  1657. return s
  1658. }
  1659. // SetSubject sets the Subject field's value.
  1660. func (s *CaseDetails) SetSubject(v string) *CaseDetails {
  1661. s.Subject = &v
  1662. return s
  1663. }
  1664. // SetSubmittedBy sets the SubmittedBy field's value.
  1665. func (s *CaseDetails) SetSubmittedBy(v string) *CaseDetails {
  1666. s.SubmittedBy = &v
  1667. return s
  1668. }
  1669. // SetTimeCreated sets the TimeCreated field's value.
  1670. func (s *CaseDetails) SetTimeCreated(v string) *CaseDetails {
  1671. s.TimeCreated = &v
  1672. return s
  1673. }
  1674. // A JSON-formatted name/value pair that represents the category name and category
  1675. // code of the problem, selected from the DescribeServices response for each
  1676. // AWS service.
  1677. type Category struct {
  1678. _ struct{} `type:"structure"`
  1679. // The category code for the support case.
  1680. Code *string `locationName:"code" type:"string"`
  1681. // The category name for the support case.
  1682. Name *string `locationName:"name" type:"string"`
  1683. }
  1684. // String returns the string representation
  1685. func (s Category) String() string {
  1686. return awsutil.Prettify(s)
  1687. }
  1688. // GoString returns the string representation
  1689. func (s Category) GoString() string {
  1690. return s.String()
  1691. }
  1692. // SetCode sets the Code field's value.
  1693. func (s *Category) SetCode(v string) *Category {
  1694. s.Code = &v
  1695. return s
  1696. }
  1697. // SetName sets the Name field's value.
  1698. func (s *Category) SetName(v string) *Category {
  1699. s.Name = &v
  1700. return s
  1701. }
  1702. // A communication associated with an AWS Support case. The communication consists
  1703. // of the case ID, the message body, attachment information, the account email
  1704. // address, and the date and time of the communication.
  1705. type Communication struct {
  1706. _ struct{} `type:"structure"`
  1707. // Information about the attachments to the case communication.
  1708. AttachmentSet []*AttachmentDetails `locationName:"attachmentSet" type:"list"`
  1709. // The text of the communication between the customer and AWS Support.
  1710. Body *string `locationName:"body" min:"1" type:"string"`
  1711. // The AWS Support case ID requested or returned in the call. The case ID is
  1712. // an alphanumeric string formatted as shown in this example: case-12345678910-2013-c4c1d2bf33c5cf47
  1713. CaseId *string `locationName:"caseId" type:"string"`
  1714. // The email address of the account that submitted the AWS Support case.
  1715. SubmittedBy *string `locationName:"submittedBy" type:"string"`
  1716. // The time the communication was created.
  1717. TimeCreated *string `locationName:"timeCreated" type:"string"`
  1718. }
  1719. // String returns the string representation
  1720. func (s Communication) String() string {
  1721. return awsutil.Prettify(s)
  1722. }
  1723. // GoString returns the string representation
  1724. func (s Communication) GoString() string {
  1725. return s.String()
  1726. }
  1727. // SetAttachmentSet sets the AttachmentSet field's value.
  1728. func (s *Communication) SetAttachmentSet(v []*AttachmentDetails) *Communication {
  1729. s.AttachmentSet = v
  1730. return s
  1731. }
  1732. // SetBody sets the Body field's value.
  1733. func (s *Communication) SetBody(v string) *Communication {
  1734. s.Body = &v
  1735. return s
  1736. }
  1737. // SetCaseId sets the CaseId field's value.
  1738. func (s *Communication) SetCaseId(v string) *Communication {
  1739. s.CaseId = &v
  1740. return s
  1741. }
  1742. // SetSubmittedBy sets the SubmittedBy field's value.
  1743. func (s *Communication) SetSubmittedBy(v string) *Communication {
  1744. s.SubmittedBy = &v
  1745. return s
  1746. }
  1747. // SetTimeCreated sets the TimeCreated field's value.
  1748. func (s *Communication) SetTimeCreated(v string) *Communication {
  1749. s.TimeCreated = &v
  1750. return s
  1751. }
  1752. type CreateCaseInput struct {
  1753. _ struct{} `type:"structure"`
  1754. // The ID of a set of one or more attachments for the case. Create the set by
  1755. // using AddAttachmentsToSet.
  1756. AttachmentSetId *string `locationName:"attachmentSetId" type:"string"`
  1757. // The category of problem for the AWS Support case.
  1758. CategoryCode *string `locationName:"categoryCode" type:"string"`
  1759. // A list of email addresses that AWS Support copies on case correspondence.
  1760. CcEmailAddresses []*string `locationName:"ccEmailAddresses" type:"list"`
  1761. // The communication body text when you create an AWS Support case by calling
  1762. // CreateCase.
  1763. //
  1764. // CommunicationBody is a required field
  1765. CommunicationBody *string `locationName:"communicationBody" min:"1" type:"string" required:"true"`
  1766. // The type of issue for the case. You can specify either "customer-service"
  1767. // or "technical." If you do not indicate a value, the default is "technical."
  1768. IssueType *string `locationName:"issueType" type:"string"`
  1769. // The ISO 639-1 code for the language in which AWS provides support. AWS Support
  1770. // currently supports English ("en") and Japanese ("ja"). Language parameters
  1771. // must be passed explicitly for operations that take them.
  1772. Language *string `locationName:"language" type:"string"`
  1773. // The code for the AWS service returned by the call to DescribeServices.
  1774. ServiceCode *string `locationName:"serviceCode" type:"string"`
  1775. // The code for the severity level returned by the call to DescribeSeverityLevels.
  1776. //
  1777. // The availability of severity levels depends on each customer's support subscription.
  1778. // In other words, your subscription may not necessarily require the urgent
  1779. // level of response time.
  1780. SeverityCode *string `locationName:"severityCode" type:"string"`
  1781. // The title of the AWS Support case.
  1782. //
  1783. // Subject is a required field
  1784. Subject *string `locationName:"subject" type:"string" required:"true"`
  1785. }
  1786. // String returns the string representation
  1787. func (s CreateCaseInput) String() string {
  1788. return awsutil.Prettify(s)
  1789. }
  1790. // GoString returns the string representation
  1791. func (s CreateCaseInput) GoString() string {
  1792. return s.String()
  1793. }
  1794. // Validate inspects the fields of the type to determine if they are valid.
  1795. func (s *CreateCaseInput) Validate() error {
  1796. invalidParams := request.ErrInvalidParams{Context: "CreateCaseInput"}
  1797. if s.CommunicationBody == nil {
  1798. invalidParams.Add(request.NewErrParamRequired("CommunicationBody"))
  1799. }
  1800. if s.CommunicationBody != nil && len(*s.CommunicationBody) < 1 {
  1801. invalidParams.Add(request.NewErrParamMinLen("CommunicationBody", 1))
  1802. }
  1803. if s.Subject == nil {
  1804. invalidParams.Add(request.NewErrParamRequired("Subject"))
  1805. }
  1806. if invalidParams.Len() > 0 {
  1807. return invalidParams
  1808. }
  1809. return nil
  1810. }
  1811. // SetAttachmentSetId sets the AttachmentSetId field's value.
  1812. func (s *CreateCaseInput) SetAttachmentSetId(v string) *CreateCaseInput {
  1813. s.AttachmentSetId = &v
  1814. return s
  1815. }
  1816. // SetCategoryCode sets the CategoryCode field's value.
  1817. func (s *CreateCaseInput) SetCategoryCode(v string) *CreateCaseInput {
  1818. s.CategoryCode = &v
  1819. return s
  1820. }
  1821. // SetCcEmailAddresses sets the CcEmailAddresses field's value.
  1822. func (s *CreateCaseInput) SetCcEmailAddresses(v []*string) *CreateCaseInput {
  1823. s.CcEmailAddresses = v
  1824. return s
  1825. }
  1826. // SetCommunicationBody sets the CommunicationBody field's value.
  1827. func (s *CreateCaseInput) SetCommunicationBody(v string) *CreateCaseInput {
  1828. s.CommunicationBody = &v
  1829. return s
  1830. }
  1831. // SetIssueType sets the IssueType field's value.
  1832. func (s *CreateCaseInput) SetIssueType(v string) *CreateCaseInput {
  1833. s.IssueType = &v
  1834. return s
  1835. }
  1836. // SetLanguage sets the Language field's value.
  1837. func (s *CreateCaseInput) SetLanguage(v string) *CreateCaseInput {
  1838. s.Language = &v
  1839. return s
  1840. }
  1841. // SetServiceCode sets the ServiceCode field's value.
  1842. func (s *CreateCaseInput) SetServiceCode(v string) *CreateCaseInput {
  1843. s.ServiceCode = &v
  1844. return s
  1845. }
  1846. // SetSeverityCode sets the SeverityCode field's value.
  1847. func (s *CreateCaseInput) SetSeverityCode(v string) *CreateCaseInput {
  1848. s.SeverityCode = &v
  1849. return s
  1850. }
  1851. // SetSubject sets the Subject field's value.
  1852. func (s *CreateCaseInput) SetSubject(v string) *CreateCaseInput {
  1853. s.Subject = &v
  1854. return s
  1855. }
  1856. // The AWS Support case ID returned by a successful completion of the CreateCase
  1857. // operation.
  1858. type CreateCaseOutput struct {
  1859. _ struct{} `type:"structure"`
  1860. // The AWS Support case ID requested or returned in the call. The case ID is
  1861. // an alphanumeric string formatted as shown in this example: case-12345678910-2013-c4c1d2bf33c5cf47
  1862. CaseId *string `locationName:"caseId" type:"string"`
  1863. }
  1864. // String returns the string representation
  1865. func (s CreateCaseOutput) String() string {
  1866. return awsutil.Prettify(s)
  1867. }
  1868. // GoString returns the string representation
  1869. func (s CreateCaseOutput) GoString() string {
  1870. return s.String()
  1871. }
  1872. // SetCaseId sets the CaseId field's value.
  1873. func (s *CreateCaseOutput) SetCaseId(v string) *CreateCaseOutput {
  1874. s.CaseId = &v
  1875. return s
  1876. }
  1877. type DescribeAttachmentInput struct {
  1878. _ struct{} `type:"structure"`
  1879. // The ID of the attachment to return. Attachment IDs are returned by the DescribeCommunications
  1880. // operation.
  1881. //
  1882. // AttachmentId is a required field
  1883. AttachmentId *string `locationName:"attachmentId" type:"string" required:"true"`
  1884. }
  1885. // String returns the string representation
  1886. func (s DescribeAttachmentInput) String() string {
  1887. return awsutil.Prettify(s)
  1888. }
  1889. // GoString returns the string representation
  1890. func (s DescribeAttachmentInput) GoString() string {
  1891. return s.String()
  1892. }
  1893. // Validate inspects the fields of the type to determine if they are valid.
  1894. func (s *DescribeAttachmentInput) Validate() error {
  1895. invalidParams := request.ErrInvalidParams{Context: "DescribeAttachmentInput"}
  1896. if s.AttachmentId == nil {
  1897. invalidParams.Add(request.NewErrParamRequired("AttachmentId"))
  1898. }
  1899. if invalidParams.Len() > 0 {
  1900. return invalidParams
  1901. }
  1902. return nil
  1903. }
  1904. // SetAttachmentId sets the AttachmentId field's value.
  1905. func (s *DescribeAttachmentInput) SetAttachmentId(v string) *DescribeAttachmentInput {
  1906. s.AttachmentId = &v
  1907. return s
  1908. }
  1909. // The content and file name of the attachment returned by the DescribeAttachment
  1910. // operation.
  1911. type DescribeAttachmentOutput struct {
  1912. _ struct{} `type:"structure"`
  1913. // The attachment content and file name.
  1914. Attachment *Attachment `locationName:"attachment" type:"structure"`
  1915. }
  1916. // String returns the string representation
  1917. func (s DescribeAttachmentOutput) String() string {
  1918. return awsutil.Prettify(s)
  1919. }
  1920. // GoString returns the string representation
  1921. func (s DescribeAttachmentOutput) GoString() string {
  1922. return s.String()
  1923. }
  1924. // SetAttachment sets the Attachment field's value.
  1925. func (s *DescribeAttachmentOutput) SetAttachment(v *Attachment) *DescribeAttachmentOutput {
  1926. s.Attachment = v
  1927. return s
  1928. }
  1929. type DescribeCasesInput struct {
  1930. _ struct{} `type:"structure"`
  1931. // The start date for a filtered date search on support case communications.
  1932. // Case communications are available for 12 months after creation.
  1933. AfterTime *string `locationName:"afterTime" type:"string"`
  1934. // The end date for a filtered date search on support case communications. Case
  1935. // communications are available for 12 months after creation.
  1936. BeforeTime *string `locationName:"beforeTime" type:"string"`
  1937. // A list of ID numbers of the support cases you want returned. The maximum
  1938. // number of cases is 100.
  1939. CaseIdList []*string `locationName:"caseIdList" type:"list"`
  1940. // The ID displayed for a case in the AWS Support Center user interface.
  1941. DisplayId *string `locationName:"displayId" type:"string"`
  1942. // Specifies whether communications should be included in the DescribeCases
  1943. // results. The default is true.
  1944. IncludeCommunications *bool `locationName:"includeCommunications" type:"boolean"`
  1945. // Specifies whether resolved support cases should be included in the DescribeCases
  1946. // results. The default is false.
  1947. IncludeResolvedCases *bool `locationName:"includeResolvedCases" type:"boolean"`
  1948. // The ISO 639-1 code for the language in which AWS provides support. AWS Support
  1949. // currently supports English ("en") and Japanese ("ja"). Language parameters
  1950. // must be passed explicitly for operations that take them.
  1951. Language *string `locationName:"language" type:"string"`
  1952. // The maximum number of results to return before paginating.
  1953. MaxResults *int64 `locationName:"maxResults" min:"10" type:"integer"`
  1954. // A resumption point for pagination.
  1955. NextToken *string `locationName:"nextToken" type:"string"`
  1956. }
  1957. // String returns the string representation
  1958. func (s DescribeCasesInput) String() string {
  1959. return awsutil.Prettify(s)
  1960. }
  1961. // GoString returns the string representation
  1962. func (s DescribeCasesInput) GoString() string {
  1963. return s.String()
  1964. }
  1965. // Validate inspects the fields of the type to determine if they are valid.
  1966. func (s *DescribeCasesInput) Validate() error {
  1967. invalidParams := request.ErrInvalidParams{Context: "DescribeCasesInput"}
  1968. if s.MaxResults != nil && *s.MaxResults < 10 {
  1969. invalidParams.Add(request.NewErrParamMinValue("MaxResults", 10))
  1970. }
  1971. if invalidParams.Len() > 0 {
  1972. return invalidParams
  1973. }
  1974. return nil
  1975. }
  1976. // SetAfterTime sets the AfterTime field's value.
  1977. func (s *DescribeCasesInput) SetAfterTime(v string) *DescribeCasesInput {
  1978. s.AfterTime = &v
  1979. return s
  1980. }
  1981. // SetBeforeTime sets the BeforeTime field's value.
  1982. func (s *DescribeCasesInput) SetBeforeTime(v string) *DescribeCasesInput {
  1983. s.BeforeTime = &v
  1984. return s
  1985. }
  1986. // SetCaseIdList sets the CaseIdList field's value.
  1987. func (s *DescribeCasesInput) SetCaseIdList(v []*string) *DescribeCasesInput {
  1988. s.CaseIdList = v
  1989. return s
  1990. }
  1991. // SetDisplayId sets the DisplayId field's value.
  1992. func (s *DescribeCasesInput) SetDisplayId(v string) *DescribeCasesInput {
  1993. s.DisplayId = &v
  1994. return s
  1995. }
  1996. // SetIncludeCommunications sets the IncludeCommunications field's value.
  1997. func (s *DescribeCasesInput) SetIncludeCommunications(v bool) *DescribeCasesInput {
  1998. s.IncludeCommunications = &v
  1999. return s
  2000. }
  2001. // SetIncludeResolvedCases sets the IncludeResolvedCases field's value.
  2002. func (s *DescribeCasesInput) SetIncludeResolvedCases(v bool) *DescribeCasesInput {
  2003. s.IncludeResolvedCases = &v
  2004. return s
  2005. }
  2006. // SetLanguage sets the Language field's value.
  2007. func (s *DescribeCasesInput) SetLanguage(v string) *DescribeCasesInput {
  2008. s.Language = &v
  2009. return s
  2010. }
  2011. // SetMaxResults sets the MaxResults field's value.
  2012. func (s *DescribeCasesInput) SetMaxResults(v int64) *DescribeCasesInput {
  2013. s.MaxResults = &v
  2014. return s
  2015. }
  2016. // SetNextToken sets the NextToken field's value.
  2017. func (s *DescribeCasesInput) SetNextToken(v string) *DescribeCasesInput {
  2018. s.NextToken = &v
  2019. return s
  2020. }
  2021. // Returns an array of CaseDetails objects and a nextToken that defines a point
  2022. // for pagination in the result set.
  2023. type DescribeCasesOutput struct {
  2024. _ struct{} `type:"structure"`
  2025. // The details for the cases that match the request.
  2026. Cases []*CaseDetails `locationName:"cases" type:"list"`
  2027. // A resumption point for pagination.
  2028. NextToken *string `locationName:"nextToken" type:"string"`
  2029. }
  2030. // String returns the string representation
  2031. func (s DescribeCasesOutput) String() string {
  2032. return awsutil.Prettify(s)
  2033. }
  2034. // GoString returns the string representation
  2035. func (s DescribeCasesOutput) GoString() string {
  2036. return s.String()
  2037. }
  2038. // SetCases sets the Cases field's value.
  2039. func (s *DescribeCasesOutput) SetCases(v []*CaseDetails) *DescribeCasesOutput {
  2040. s.Cases = v
  2041. return s
  2042. }
  2043. // SetNextToken sets the NextToken field's value.
  2044. func (s *DescribeCasesOutput) SetNextToken(v string) *DescribeCasesOutput {
  2045. s.NextToken = &v
  2046. return s
  2047. }
  2048. type DescribeCommunicationsInput struct {
  2049. _ struct{} `type:"structure"`
  2050. // The start date for a filtered date search on support case communications.
  2051. // Case communications are available for 12 months after creation.
  2052. AfterTime *string `locationName:"afterTime" type:"string"`
  2053. // The end date for a filtered date search on support case communications. Case
  2054. // communications are available for 12 months after creation.
  2055. BeforeTime *string `locationName:"beforeTime" type:"string"`
  2056. // The AWS Support case ID requested or returned in the call. The case ID is
  2057. // an alphanumeric string formatted as shown in this example: case-12345678910-2013-c4c1d2bf33c5cf47
  2058. //
  2059. // CaseId is a required field
  2060. CaseId *string `locationName:"caseId" type:"string" required:"true"`
  2061. // The maximum number of results to return before paginating.
  2062. MaxResults *int64 `locationName:"maxResults" min:"10" type:"integer"`
  2063. // A resumption point for pagination.
  2064. NextToken *string `locationName:"nextToken" type:"string"`
  2065. }
  2066. // String returns the string representation
  2067. func (s DescribeCommunicationsInput) String() string {
  2068. return awsutil.Prettify(s)
  2069. }
  2070. // GoString returns the string representation
  2071. func (s DescribeCommunicationsInput) GoString() string {
  2072. return s.String()
  2073. }
  2074. // Validate inspects the fields of the type to determine if they are valid.
  2075. func (s *DescribeCommunicationsInput) Validate() error {
  2076. invalidParams := request.ErrInvalidParams{Context: "DescribeCommunicationsInput"}
  2077. if s.CaseId == nil {
  2078. invalidParams.Add(request.NewErrParamRequired("CaseId"))
  2079. }
  2080. if s.MaxResults != nil && *s.MaxResults < 10 {
  2081. invalidParams.Add(request.NewErrParamMinValue("MaxResults", 10))
  2082. }
  2083. if invalidParams.Len() > 0 {
  2084. return invalidParams
  2085. }
  2086. return nil
  2087. }
  2088. // SetAfterTime sets the AfterTime field's value.
  2089. func (s *DescribeCommunicationsInput) SetAfterTime(v string) *DescribeCommunicationsInput {
  2090. s.AfterTime = &v
  2091. return s
  2092. }
  2093. // SetBeforeTime sets the BeforeTime field's value.
  2094. func (s *DescribeCommunicationsInput) SetBeforeTime(v string) *DescribeCommunicationsInput {
  2095. s.BeforeTime = &v
  2096. return s
  2097. }
  2098. // SetCaseId sets the CaseId field's value.
  2099. func (s *DescribeCommunicationsInput) SetCaseId(v string) *DescribeCommunicationsInput {
  2100. s.CaseId = &v
  2101. return s
  2102. }
  2103. // SetMaxResults sets the MaxResults field's value.
  2104. func (s *DescribeCommunicationsInput) SetMaxResults(v int64) *DescribeCommunicationsInput {
  2105. s.MaxResults = &v
  2106. return s
  2107. }
  2108. // SetNextToken sets the NextToken field's value.
  2109. func (s *DescribeCommunicationsInput) SetNextToken(v string) *DescribeCommunicationsInput {
  2110. s.NextToken = &v
  2111. return s
  2112. }
  2113. // The communications returned by the DescribeCommunications operation.
  2114. type DescribeCommunicationsOutput struct {
  2115. _ struct{} `type:"structure"`
  2116. // The communications for the case.
  2117. Communications []*Communication `locationName:"communications" type:"list"`
  2118. // A resumption point for pagination.
  2119. NextToken *string `locationName:"nextToken" type:"string"`
  2120. }
  2121. // String returns the string representation
  2122. func (s DescribeCommunicationsOutput) String() string {
  2123. return awsutil.Prettify(s)
  2124. }
  2125. // GoString returns the string representation
  2126. func (s DescribeCommunicationsOutput) GoString() string {
  2127. return s.String()
  2128. }
  2129. // SetCommunications sets the Communications field's value.
  2130. func (s *DescribeCommunicationsOutput) SetCommunications(v []*Communication) *DescribeCommunicationsOutput {
  2131. s.Communications = v
  2132. return s
  2133. }
  2134. // SetNextToken sets the NextToken field's value.
  2135. func (s *DescribeCommunicationsOutput) SetNextToken(v string) *DescribeCommunicationsOutput {
  2136. s.NextToken = &v
  2137. return s
  2138. }
  2139. type DescribeServicesInput struct {
  2140. _ struct{} `type:"structure"`
  2141. // The ISO 639-1 code for the language in which AWS provides support. AWS Support
  2142. // currently supports English ("en") and Japanese ("ja"). Language parameters
  2143. // must be passed explicitly for operations that take them.
  2144. Language *string `locationName:"language" type:"string"`
  2145. // A JSON-formatted list of service codes available for AWS services.
  2146. ServiceCodeList []*string `locationName:"serviceCodeList" type:"list"`
  2147. }
  2148. // String returns the string representation
  2149. func (s DescribeServicesInput) String() string {
  2150. return awsutil.Prettify(s)
  2151. }
  2152. // GoString returns the string representation
  2153. func (s DescribeServicesInput) GoString() string {
  2154. return s.String()
  2155. }
  2156. // SetLanguage sets the Language field's value.
  2157. func (s *DescribeServicesInput) SetLanguage(v string) *DescribeServicesInput {
  2158. s.Language = &v
  2159. return s
  2160. }
  2161. // SetServiceCodeList sets the ServiceCodeList field's value.
  2162. func (s *DescribeServicesInput) SetServiceCodeList(v []*string) *DescribeServicesInput {
  2163. s.ServiceCodeList = v
  2164. return s
  2165. }
  2166. // The list of AWS services returned by the DescribeServices operation.
  2167. type DescribeServicesOutput struct {
  2168. _ struct{} `type:"structure"`
  2169. // A JSON-formatted list of AWS services.
  2170. Services []*Service `locationName:"services" type:"list"`
  2171. }
  2172. // String returns the string representation
  2173. func (s DescribeServicesOutput) String() string {
  2174. return awsutil.Prettify(s)
  2175. }
  2176. // GoString returns the string representation
  2177. func (s DescribeServicesOutput) GoString() string {
  2178. return s.String()
  2179. }
  2180. // SetServices sets the Services field's value.
  2181. func (s *DescribeServicesOutput) SetServices(v []*Service) *DescribeServicesOutput {
  2182. s.Services = v
  2183. return s
  2184. }
  2185. type DescribeSeverityLevelsInput struct {
  2186. _ struct{} `type:"structure"`
  2187. // The ISO 639-1 code for the language in which AWS provides support. AWS Support
  2188. // currently supports English ("en") and Japanese ("ja"). Language parameters
  2189. // must be passed explicitly for operations that take them.
  2190. Language *string `locationName:"language" type:"string"`
  2191. }
  2192. // String returns the string representation
  2193. func (s DescribeSeverityLevelsInput) String() string {
  2194. return awsutil.Prettify(s)
  2195. }
  2196. // GoString returns the string representation
  2197. func (s DescribeSeverityLevelsInput) GoString() string {
  2198. return s.String()
  2199. }
  2200. // SetLanguage sets the Language field's value.
  2201. func (s *DescribeSeverityLevelsInput) SetLanguage(v string) *DescribeSeverityLevelsInput {
  2202. s.Language = &v
  2203. return s
  2204. }
  2205. // The list of severity levels returned by the DescribeSeverityLevels operation.
  2206. type DescribeSeverityLevelsOutput struct {
  2207. _ struct{} `type:"structure"`
  2208. // The available severity levels for the support case. Available severity levels
  2209. // are defined by your service level agreement with AWS.
  2210. SeverityLevels []*SeverityLevel `locationName:"severityLevels" type:"list"`
  2211. }
  2212. // String returns the string representation
  2213. func (s DescribeSeverityLevelsOutput) String() string {
  2214. return awsutil.Prettify(s)
  2215. }
  2216. // GoString returns the string representation
  2217. func (s DescribeSeverityLevelsOutput) GoString() string {
  2218. return s.String()
  2219. }
  2220. // SetSeverityLevels sets the SeverityLevels field's value.
  2221. func (s *DescribeSeverityLevelsOutput) SetSeverityLevels(v []*SeverityLevel) *DescribeSeverityLevelsOutput {
  2222. s.SeverityLevels = v
  2223. return s
  2224. }
  2225. type DescribeTrustedAdvisorCheckRefreshStatusesInput struct {
  2226. _ struct{} `type:"structure"`
  2227. // The IDs of the Trusted Advisor checks to get the status of. Note: Specifying
  2228. // the check ID of a check that is automatically refreshed causes an InvalidParameterValue
  2229. // error.
  2230. //
  2231. // CheckIds is a required field
  2232. CheckIds []*string `locationName:"checkIds" type:"list" required:"true"`
  2233. }
  2234. // String returns the string representation
  2235. func (s DescribeTrustedAdvisorCheckRefreshStatusesInput) String() string {
  2236. return awsutil.Prettify(s)
  2237. }
  2238. // GoString returns the string representation
  2239. func (s DescribeTrustedAdvisorCheckRefreshStatusesInput) GoString() string {
  2240. return s.String()
  2241. }
  2242. // Validate inspects the fields of the type to determine if they are valid.
  2243. func (s *DescribeTrustedAdvisorCheckRefreshStatusesInput) Validate() error {
  2244. invalidParams := request.ErrInvalidParams{Context: "DescribeTrustedAdvisorCheckRefreshStatusesInput"}
  2245. if s.CheckIds == nil {
  2246. invalidParams.Add(request.NewErrParamRequired("CheckIds"))
  2247. }
  2248. if invalidParams.Len() > 0 {
  2249. return invalidParams
  2250. }
  2251. return nil
  2252. }
  2253. // SetCheckIds sets the CheckIds field's value.
  2254. func (s *DescribeTrustedAdvisorCheckRefreshStatusesInput) SetCheckIds(v []*string) *DescribeTrustedAdvisorCheckRefreshStatusesInput {
  2255. s.CheckIds = v
  2256. return s
  2257. }
  2258. // The statuses of the Trusted Advisor checks returned by the DescribeTrustedAdvisorCheckRefreshStatuses
  2259. // operation.
  2260. type DescribeTrustedAdvisorCheckRefreshStatusesOutput struct {
  2261. _ struct{} `type:"structure"`
  2262. // The refresh status of the specified Trusted Advisor checks.
  2263. //
  2264. // Statuses is a required field
  2265. Statuses []*TrustedAdvisorCheckRefreshStatus `locationName:"statuses" type:"list" required:"true"`
  2266. }
  2267. // String returns the string representation
  2268. func (s DescribeTrustedAdvisorCheckRefreshStatusesOutput) String() string {
  2269. return awsutil.Prettify(s)
  2270. }
  2271. // GoString returns the string representation
  2272. func (s DescribeTrustedAdvisorCheckRefreshStatusesOutput) GoString() string {
  2273. return s.String()
  2274. }
  2275. // SetStatuses sets the Statuses field's value.
  2276. func (s *DescribeTrustedAdvisorCheckRefreshStatusesOutput) SetStatuses(v []*TrustedAdvisorCheckRefreshStatus) *DescribeTrustedAdvisorCheckRefreshStatusesOutput {
  2277. s.Statuses = v
  2278. return s
  2279. }
  2280. type DescribeTrustedAdvisorCheckResultInput struct {
  2281. _ struct{} `type:"structure"`
  2282. // The unique identifier for the Trusted Advisor check.
  2283. //
  2284. // CheckId is a required field
  2285. CheckId *string `locationName:"checkId" type:"string" required:"true"`
  2286. // The ISO 639-1 code for the language in which AWS provides support. AWS Support
  2287. // currently supports English ("en") and Japanese ("ja"). Language parameters
  2288. // must be passed explicitly for operations that take them.
  2289. Language *string `locationName:"language" type:"string"`
  2290. }
  2291. // String returns the string representation
  2292. func (s DescribeTrustedAdvisorCheckResultInput) String() string {
  2293. return awsutil.Prettify(s)
  2294. }
  2295. // GoString returns the string representation
  2296. func (s DescribeTrustedAdvisorCheckResultInput) GoString() string {
  2297. return s.String()
  2298. }
  2299. // Validate inspects the fields of the type to determine if they are valid.
  2300. func (s *DescribeTrustedAdvisorCheckResultInput) Validate() error {
  2301. invalidParams := request.ErrInvalidParams{Context: "DescribeTrustedAdvisorCheckResultInput"}
  2302. if s.CheckId == nil {
  2303. invalidParams.Add(request.NewErrParamRequired("CheckId"))
  2304. }
  2305. if invalidParams.Len() > 0 {
  2306. return invalidParams
  2307. }
  2308. return nil
  2309. }
  2310. // SetCheckId sets the CheckId field's value.
  2311. func (s *DescribeTrustedAdvisorCheckResultInput) SetCheckId(v string) *DescribeTrustedAdvisorCheckResultInput {
  2312. s.CheckId = &v
  2313. return s
  2314. }
  2315. // SetLanguage sets the Language field's value.
  2316. func (s *DescribeTrustedAdvisorCheckResultInput) SetLanguage(v string) *DescribeTrustedAdvisorCheckResultInput {
  2317. s.Language = &v
  2318. return s
  2319. }
  2320. // The result of the Trusted Advisor check returned by the DescribeTrustedAdvisorCheckResult
  2321. // operation.
  2322. type DescribeTrustedAdvisorCheckResultOutput struct {
  2323. _ struct{} `type:"structure"`
  2324. // The detailed results of the Trusted Advisor check.
  2325. Result *TrustedAdvisorCheckResult `locationName:"result" type:"structure"`
  2326. }
  2327. // String returns the string representation
  2328. func (s DescribeTrustedAdvisorCheckResultOutput) String() string {
  2329. return awsutil.Prettify(s)
  2330. }
  2331. // GoString returns the string representation
  2332. func (s DescribeTrustedAdvisorCheckResultOutput) GoString() string {
  2333. return s.String()
  2334. }
  2335. // SetResult sets the Result field's value.
  2336. func (s *DescribeTrustedAdvisorCheckResultOutput) SetResult(v *TrustedAdvisorCheckResult) *DescribeTrustedAdvisorCheckResultOutput {
  2337. s.Result = v
  2338. return s
  2339. }
  2340. type DescribeTrustedAdvisorCheckSummariesInput struct {
  2341. _ struct{} `type:"structure"`
  2342. // The IDs of the Trusted Advisor checks.
  2343. //
  2344. // CheckIds is a required field
  2345. CheckIds []*string `locationName:"checkIds" type:"list" required:"true"`
  2346. }
  2347. // String returns the string representation
  2348. func (s DescribeTrustedAdvisorCheckSummariesInput) String() string {
  2349. return awsutil.Prettify(s)
  2350. }
  2351. // GoString returns the string representation
  2352. func (s DescribeTrustedAdvisorCheckSummariesInput) GoString() string {
  2353. return s.String()
  2354. }
  2355. // Validate inspects the fields of the type to determine if they are valid.
  2356. func (s *DescribeTrustedAdvisorCheckSummariesInput) Validate() error {
  2357. invalidParams := request.ErrInvalidParams{Context: "DescribeTrustedAdvisorCheckSummariesInput"}
  2358. if s.CheckIds == nil {
  2359. invalidParams.Add(request.NewErrParamRequired("CheckIds"))
  2360. }
  2361. if invalidParams.Len() > 0 {
  2362. return invalidParams
  2363. }
  2364. return nil
  2365. }
  2366. // SetCheckIds sets the CheckIds field's value.
  2367. func (s *DescribeTrustedAdvisorCheckSummariesInput) SetCheckIds(v []*string) *DescribeTrustedAdvisorCheckSummariesInput {
  2368. s.CheckIds = v
  2369. return s
  2370. }
  2371. // The summaries of the Trusted Advisor checks returned by the DescribeTrustedAdvisorCheckSummaries
  2372. // operation.
  2373. type DescribeTrustedAdvisorCheckSummariesOutput struct {
  2374. _ struct{} `type:"structure"`
  2375. // The summary information for the requested Trusted Advisor checks.
  2376. //
  2377. // Summaries is a required field
  2378. Summaries []*TrustedAdvisorCheckSummary `locationName:"summaries" type:"list" required:"true"`
  2379. }
  2380. // String returns the string representation
  2381. func (s DescribeTrustedAdvisorCheckSummariesOutput) String() string {
  2382. return awsutil.Prettify(s)
  2383. }
  2384. // GoString returns the string representation
  2385. func (s DescribeTrustedAdvisorCheckSummariesOutput) GoString() string {
  2386. return s.String()
  2387. }
  2388. // SetSummaries sets the Summaries field's value.
  2389. func (s *DescribeTrustedAdvisorCheckSummariesOutput) SetSummaries(v []*TrustedAdvisorCheckSummary) *DescribeTrustedAdvisorCheckSummariesOutput {
  2390. s.Summaries = v
  2391. return s
  2392. }
  2393. type DescribeTrustedAdvisorChecksInput struct {
  2394. _ struct{} `type:"structure"`
  2395. // The ISO 639-1 code for the language in which AWS provides support. AWS Support
  2396. // currently supports English ("en") and Japanese ("ja"). Language parameters
  2397. // must be passed explicitly for operations that take them.
  2398. //
  2399. // Language is a required field
  2400. Language *string `locationName:"language" type:"string" required:"true"`
  2401. }
  2402. // String returns the string representation
  2403. func (s DescribeTrustedAdvisorChecksInput) String() string {
  2404. return awsutil.Prettify(s)
  2405. }
  2406. // GoString returns the string representation
  2407. func (s DescribeTrustedAdvisorChecksInput) GoString() string {
  2408. return s.String()
  2409. }
  2410. // Validate inspects the fields of the type to determine if they are valid.
  2411. func (s *DescribeTrustedAdvisorChecksInput) Validate() error {
  2412. invalidParams := request.ErrInvalidParams{Context: "DescribeTrustedAdvisorChecksInput"}
  2413. if s.Language == nil {
  2414. invalidParams.Add(request.NewErrParamRequired("Language"))
  2415. }
  2416. if invalidParams.Len() > 0 {
  2417. return invalidParams
  2418. }
  2419. return nil
  2420. }
  2421. // SetLanguage sets the Language field's value.
  2422. func (s *DescribeTrustedAdvisorChecksInput) SetLanguage(v string) *DescribeTrustedAdvisorChecksInput {
  2423. s.Language = &v
  2424. return s
  2425. }
  2426. // Information about the Trusted Advisor checks returned by the DescribeTrustedAdvisorChecks
  2427. // operation.
  2428. type DescribeTrustedAdvisorChecksOutput struct {
  2429. _ struct{} `type:"structure"`
  2430. // Information about all available Trusted Advisor checks.
  2431. //
  2432. // Checks is a required field
  2433. Checks []*TrustedAdvisorCheckDescription `locationName:"checks" type:"list" required:"true"`
  2434. }
  2435. // String returns the string representation
  2436. func (s DescribeTrustedAdvisorChecksOutput) String() string {
  2437. return awsutil.Prettify(s)
  2438. }
  2439. // GoString returns the string representation
  2440. func (s DescribeTrustedAdvisorChecksOutput) GoString() string {
  2441. return s.String()
  2442. }
  2443. // SetChecks sets the Checks field's value.
  2444. func (s *DescribeTrustedAdvisorChecksOutput) SetChecks(v []*TrustedAdvisorCheckDescription) *DescribeTrustedAdvisorChecksOutput {
  2445. s.Checks = v
  2446. return s
  2447. }
  2448. // The five most recent communications associated with the case.
  2449. type RecentCaseCommunications struct {
  2450. _ struct{} `type:"structure"`
  2451. // The five most recent communications associated with the case.
  2452. Communications []*Communication `locationName:"communications" type:"list"`
  2453. // A resumption point for pagination.
  2454. NextToken *string `locationName:"nextToken" type:"string"`
  2455. }
  2456. // String returns the string representation
  2457. func (s RecentCaseCommunications) String() string {
  2458. return awsutil.Prettify(s)
  2459. }
  2460. // GoString returns the string representation
  2461. func (s RecentCaseCommunications) GoString() string {
  2462. return s.String()
  2463. }
  2464. // SetCommunications sets the Communications field's value.
  2465. func (s *RecentCaseCommunications) SetCommunications(v []*Communication) *RecentCaseCommunications {
  2466. s.Communications = v
  2467. return s
  2468. }
  2469. // SetNextToken sets the NextToken field's value.
  2470. func (s *RecentCaseCommunications) SetNextToken(v string) *RecentCaseCommunications {
  2471. s.NextToken = &v
  2472. return s
  2473. }
  2474. type RefreshTrustedAdvisorCheckInput struct {
  2475. _ struct{} `type:"structure"`
  2476. // The unique identifier for the Trusted Advisor check to refresh. Note: Specifying
  2477. // the check ID of a check that is automatically refreshed causes an InvalidParameterValue
  2478. // error.
  2479. //
  2480. // CheckId is a required field
  2481. CheckId *string `locationName:"checkId" type:"string" required:"true"`
  2482. }
  2483. // String returns the string representation
  2484. func (s RefreshTrustedAdvisorCheckInput) String() string {
  2485. return awsutil.Prettify(s)
  2486. }
  2487. // GoString returns the string representation
  2488. func (s RefreshTrustedAdvisorCheckInput) GoString() string {
  2489. return s.String()
  2490. }
  2491. // Validate inspects the fields of the type to determine if they are valid.
  2492. func (s *RefreshTrustedAdvisorCheckInput) Validate() error {
  2493. invalidParams := request.ErrInvalidParams{Context: "RefreshTrustedAdvisorCheckInput"}
  2494. if s.CheckId == nil {
  2495. invalidParams.Add(request.NewErrParamRequired("CheckId"))
  2496. }
  2497. if invalidParams.Len() > 0 {
  2498. return invalidParams
  2499. }
  2500. return nil
  2501. }
  2502. // SetCheckId sets the CheckId field's value.
  2503. func (s *RefreshTrustedAdvisorCheckInput) SetCheckId(v string) *RefreshTrustedAdvisorCheckInput {
  2504. s.CheckId = &v
  2505. return s
  2506. }
  2507. // The current refresh status of a Trusted Advisor check.
  2508. type RefreshTrustedAdvisorCheckOutput struct {
  2509. _ struct{} `type:"structure"`
  2510. // The current refresh status for a check, including the amount of time until
  2511. // the check is eligible for refresh.
  2512. //
  2513. // Status is a required field
  2514. Status *TrustedAdvisorCheckRefreshStatus `locationName:"status" type:"structure" required:"true"`
  2515. }
  2516. // String returns the string representation
  2517. func (s RefreshTrustedAdvisorCheckOutput) String() string {
  2518. return awsutil.Prettify(s)
  2519. }
  2520. // GoString returns the string representation
  2521. func (s RefreshTrustedAdvisorCheckOutput) GoString() string {
  2522. return s.String()
  2523. }
  2524. // SetStatus sets the Status field's value.
  2525. func (s *RefreshTrustedAdvisorCheckOutput) SetStatus(v *TrustedAdvisorCheckRefreshStatus) *RefreshTrustedAdvisorCheckOutput {
  2526. s.Status = v
  2527. return s
  2528. }
  2529. type ResolveCaseInput struct {
  2530. _ struct{} `type:"structure"`
  2531. // The AWS Support case ID requested or returned in the call. The case ID is
  2532. // an alphanumeric string formatted as shown in this example: case-12345678910-2013-c4c1d2bf33c5cf47
  2533. CaseId *string `locationName:"caseId" type:"string"`
  2534. }
  2535. // String returns the string representation
  2536. func (s ResolveCaseInput) String() string {
  2537. return awsutil.Prettify(s)
  2538. }
  2539. // GoString returns the string representation
  2540. func (s ResolveCaseInput) GoString() string {
  2541. return s.String()
  2542. }
  2543. // SetCaseId sets the CaseId field's value.
  2544. func (s *ResolveCaseInput) SetCaseId(v string) *ResolveCaseInput {
  2545. s.CaseId = &v
  2546. return s
  2547. }
  2548. // The status of the case returned by the ResolveCase operation.
  2549. type ResolveCaseOutput struct {
  2550. _ struct{} `type:"structure"`
  2551. // The status of the case after the ResolveCase request was processed.
  2552. FinalCaseStatus *string `locationName:"finalCaseStatus" type:"string"`
  2553. // The status of the case when the ResolveCase request was sent.
  2554. InitialCaseStatus *string `locationName:"initialCaseStatus" type:"string"`
  2555. }
  2556. // String returns the string representation
  2557. func (s ResolveCaseOutput) String() string {
  2558. return awsutil.Prettify(s)
  2559. }
  2560. // GoString returns the string representation
  2561. func (s ResolveCaseOutput) GoString() string {
  2562. return s.String()
  2563. }
  2564. // SetFinalCaseStatus sets the FinalCaseStatus field's value.
  2565. func (s *ResolveCaseOutput) SetFinalCaseStatus(v string) *ResolveCaseOutput {
  2566. s.FinalCaseStatus = &v
  2567. return s
  2568. }
  2569. // SetInitialCaseStatus sets the InitialCaseStatus field's value.
  2570. func (s *ResolveCaseOutput) SetInitialCaseStatus(v string) *ResolveCaseOutput {
  2571. s.InitialCaseStatus = &v
  2572. return s
  2573. }
  2574. // Information about an AWS service returned by the DescribeServices operation.
  2575. type Service struct {
  2576. _ struct{} `type:"structure"`
  2577. // A list of categories that describe the type of support issue a case describes.
  2578. // Categories consist of a category name and a category code. Category names
  2579. // and codes are passed to AWS Support when you call CreateCase.
  2580. Categories []*Category `locationName:"categories" type:"list"`
  2581. // The code for an AWS service returned by the DescribeServices response. The
  2582. // name element contains the corresponding friendly name.
  2583. Code *string `locationName:"code" type:"string"`
  2584. // The friendly name for an AWS service. The code element contains the corresponding
  2585. // code.
  2586. Name *string `locationName:"name" type:"string"`
  2587. }
  2588. // String returns the string representation
  2589. func (s Service) String() string {
  2590. return awsutil.Prettify(s)
  2591. }
  2592. // GoString returns the string representation
  2593. func (s Service) GoString() string {
  2594. return s.String()
  2595. }
  2596. // SetCategories sets the Categories field's value.
  2597. func (s *Service) SetCategories(v []*Category) *Service {
  2598. s.Categories = v
  2599. return s
  2600. }
  2601. // SetCode sets the Code field's value.
  2602. func (s *Service) SetCode(v string) *Service {
  2603. s.Code = &v
  2604. return s
  2605. }
  2606. // SetName sets the Name field's value.
  2607. func (s *Service) SetName(v string) *Service {
  2608. s.Name = &v
  2609. return s
  2610. }
  2611. // A code and name pair that represent a severity level that can be applied
  2612. // to a support case.
  2613. type SeverityLevel struct {
  2614. _ struct{} `type:"structure"`
  2615. // One of four values: "low," "medium," "high," and "urgent". These values correspond
  2616. // to response times returned to the caller in severityLevel.name.
  2617. Code *string `locationName:"code" type:"string"`
  2618. // The name of the severity level that corresponds to the severity level code.
  2619. Name *string `locationName:"name" type:"string"`
  2620. }
  2621. // String returns the string representation
  2622. func (s SeverityLevel) String() string {
  2623. return awsutil.Prettify(s)
  2624. }
  2625. // GoString returns the string representation
  2626. func (s SeverityLevel) GoString() string {
  2627. return s.String()
  2628. }
  2629. // SetCode sets the Code field's value.
  2630. func (s *SeverityLevel) SetCode(v string) *SeverityLevel {
  2631. s.Code = &v
  2632. return s
  2633. }
  2634. // SetName sets the Name field's value.
  2635. func (s *SeverityLevel) SetName(v string) *SeverityLevel {
  2636. s.Name = &v
  2637. return s
  2638. }
  2639. // The container for summary information that relates to the category of the
  2640. // Trusted Advisor check.
  2641. type TrustedAdvisorCategorySpecificSummary struct {
  2642. _ struct{} `type:"structure"`
  2643. // The summary information about cost savings for a Trusted Advisor check that
  2644. // is in the Cost Optimizing category.
  2645. CostOptimizing *TrustedAdvisorCostOptimizingSummary `locationName:"costOptimizing" type:"structure"`
  2646. }
  2647. // String returns the string representation
  2648. func (s TrustedAdvisorCategorySpecificSummary) String() string {
  2649. return awsutil.Prettify(s)
  2650. }
  2651. // GoString returns the string representation
  2652. func (s TrustedAdvisorCategorySpecificSummary) GoString() string {
  2653. return s.String()
  2654. }
  2655. // SetCostOptimizing sets the CostOptimizing field's value.
  2656. func (s *TrustedAdvisorCategorySpecificSummary) SetCostOptimizing(v *TrustedAdvisorCostOptimizingSummary) *TrustedAdvisorCategorySpecificSummary {
  2657. s.CostOptimizing = v
  2658. return s
  2659. }
  2660. // The description and metadata for a Trusted Advisor check.
  2661. type TrustedAdvisorCheckDescription struct {
  2662. _ struct{} `type:"structure"`
  2663. // The category of the Trusted Advisor check.
  2664. //
  2665. // Category is a required field
  2666. Category *string `locationName:"category" type:"string" required:"true"`
  2667. // The description of the Trusted Advisor check, which includes the alert criteria
  2668. // and recommended actions (contains HTML markup).
  2669. //
  2670. // Description is a required field
  2671. Description *string `locationName:"description" type:"string" required:"true"`
  2672. // The unique identifier for the Trusted Advisor check.
  2673. //
  2674. // Id is a required field
  2675. Id *string `locationName:"id" type:"string" required:"true"`
  2676. // The column headings for the data returned by the Trusted Advisor check. The
  2677. // order of the headings corresponds to the order of the data in the Metadata
  2678. // element of the TrustedAdvisorResourceDetail for the check. Metadata contains
  2679. // all the data that is shown in the Excel download, even in those cases where
  2680. // the UI shows just summary data.
  2681. //
  2682. // Metadata is a required field
  2683. Metadata []*string `locationName:"metadata" type:"list" required:"true"`
  2684. // The display name for the Trusted Advisor check.
  2685. //
  2686. // Name is a required field
  2687. Name *string `locationName:"name" type:"string" required:"true"`
  2688. }
  2689. // String returns the string representation
  2690. func (s TrustedAdvisorCheckDescription) String() string {
  2691. return awsutil.Prettify(s)
  2692. }
  2693. // GoString returns the string representation
  2694. func (s TrustedAdvisorCheckDescription) GoString() string {
  2695. return s.String()
  2696. }
  2697. // SetCategory sets the Category field's value.
  2698. func (s *TrustedAdvisorCheckDescription) SetCategory(v string) *TrustedAdvisorCheckDescription {
  2699. s.Category = &v
  2700. return s
  2701. }
  2702. // SetDescription sets the Description field's value.
  2703. func (s *TrustedAdvisorCheckDescription) SetDescription(v string) *TrustedAdvisorCheckDescription {
  2704. s.Description = &v
  2705. return s
  2706. }
  2707. // SetId sets the Id field's value.
  2708. func (s *TrustedAdvisorCheckDescription) SetId(v string) *TrustedAdvisorCheckDescription {
  2709. s.Id = &v
  2710. return s
  2711. }
  2712. // SetMetadata sets the Metadata field's value.
  2713. func (s *TrustedAdvisorCheckDescription) SetMetadata(v []*string) *TrustedAdvisorCheckDescription {
  2714. s.Metadata = v
  2715. return s
  2716. }
  2717. // SetName sets the Name field's value.
  2718. func (s *TrustedAdvisorCheckDescription) SetName(v string) *TrustedAdvisorCheckDescription {
  2719. s.Name = &v
  2720. return s
  2721. }
  2722. // The refresh status of a Trusted Advisor check.
  2723. type TrustedAdvisorCheckRefreshStatus struct {
  2724. _ struct{} `type:"structure"`
  2725. // The unique identifier for the Trusted Advisor check.
  2726. //
  2727. // CheckId is a required field
  2728. CheckId *string `locationName:"checkId" type:"string" required:"true"`
  2729. // The amount of time, in milliseconds, until the Trusted Advisor check is eligible
  2730. // for refresh.
  2731. //
  2732. // MillisUntilNextRefreshable is a required field
  2733. MillisUntilNextRefreshable *int64 `locationName:"millisUntilNextRefreshable" type:"long" required:"true"`
  2734. // The status of the Trusted Advisor check for which a refresh has been requested:
  2735. // "none", "enqueued", "processing", "success", or "abandoned".
  2736. //
  2737. // Status is a required field
  2738. Status *string `locationName:"status" type:"string" required:"true"`
  2739. }
  2740. // String returns the string representation
  2741. func (s TrustedAdvisorCheckRefreshStatus) String() string {
  2742. return awsutil.Prettify(s)
  2743. }
  2744. // GoString returns the string representation
  2745. func (s TrustedAdvisorCheckRefreshStatus) GoString() string {
  2746. return s.String()
  2747. }
  2748. // SetCheckId sets the CheckId field's value.
  2749. func (s *TrustedAdvisorCheckRefreshStatus) SetCheckId(v string) *TrustedAdvisorCheckRefreshStatus {
  2750. s.CheckId = &v
  2751. return s
  2752. }
  2753. // SetMillisUntilNextRefreshable sets the MillisUntilNextRefreshable field's value.
  2754. func (s *TrustedAdvisorCheckRefreshStatus) SetMillisUntilNextRefreshable(v int64) *TrustedAdvisorCheckRefreshStatus {
  2755. s.MillisUntilNextRefreshable = &v
  2756. return s
  2757. }
  2758. // SetStatus sets the Status field's value.
  2759. func (s *TrustedAdvisorCheckRefreshStatus) SetStatus(v string) *TrustedAdvisorCheckRefreshStatus {
  2760. s.Status = &v
  2761. return s
  2762. }
  2763. // The results of a Trusted Advisor check returned by DescribeTrustedAdvisorCheckResult.
  2764. type TrustedAdvisorCheckResult struct {
  2765. _ struct{} `type:"structure"`
  2766. // Summary information that relates to the category of the check. Cost Optimizing
  2767. // is the only category that is currently supported.
  2768. //
  2769. // CategorySpecificSummary is a required field
  2770. CategorySpecificSummary *TrustedAdvisorCategorySpecificSummary `locationName:"categorySpecificSummary" type:"structure" required:"true"`
  2771. // The unique identifier for the Trusted Advisor check.
  2772. //
  2773. // CheckId is a required field
  2774. CheckId *string `locationName:"checkId" type:"string" required:"true"`
  2775. // The details about each resource listed in the check result.
  2776. //
  2777. // FlaggedResources is a required field
  2778. FlaggedResources []*TrustedAdvisorResourceDetail `locationName:"flaggedResources" type:"list" required:"true"`
  2779. // Details about AWS resources that were analyzed in a call to Trusted Advisor
  2780. // DescribeTrustedAdvisorCheckSummaries.
  2781. //
  2782. // ResourcesSummary is a required field
  2783. ResourcesSummary *TrustedAdvisorResourcesSummary `locationName:"resourcesSummary" type:"structure" required:"true"`
  2784. // The alert status of the check: "ok" (green), "warning" (yellow), "error"
  2785. // (red), or "not_available".
  2786. //
  2787. // Status is a required field
  2788. Status *string `locationName:"status" type:"string" required:"true"`
  2789. // The time of the last refresh of the check.
  2790. //
  2791. // Timestamp is a required field
  2792. Timestamp *string `locationName:"timestamp" type:"string" required:"true"`
  2793. }
  2794. // String returns the string representation
  2795. func (s TrustedAdvisorCheckResult) String() string {
  2796. return awsutil.Prettify(s)
  2797. }
  2798. // GoString returns the string representation
  2799. func (s TrustedAdvisorCheckResult) GoString() string {
  2800. return s.String()
  2801. }
  2802. // SetCategorySpecificSummary sets the CategorySpecificSummary field's value.
  2803. func (s *TrustedAdvisorCheckResult) SetCategorySpecificSummary(v *TrustedAdvisorCategorySpecificSummary) *TrustedAdvisorCheckResult {
  2804. s.CategorySpecificSummary = v
  2805. return s
  2806. }
  2807. // SetCheckId sets the CheckId field's value.
  2808. func (s *TrustedAdvisorCheckResult) SetCheckId(v string) *TrustedAdvisorCheckResult {
  2809. s.CheckId = &v
  2810. return s
  2811. }
  2812. // SetFlaggedResources sets the FlaggedResources field's value.
  2813. func (s *TrustedAdvisorCheckResult) SetFlaggedResources(v []*TrustedAdvisorResourceDetail) *TrustedAdvisorCheckResult {
  2814. s.FlaggedResources = v
  2815. return s
  2816. }
  2817. // SetResourcesSummary sets the ResourcesSummary field's value.
  2818. func (s *TrustedAdvisorCheckResult) SetResourcesSummary(v *TrustedAdvisorResourcesSummary) *TrustedAdvisorCheckResult {
  2819. s.ResourcesSummary = v
  2820. return s
  2821. }
  2822. // SetStatus sets the Status field's value.
  2823. func (s *TrustedAdvisorCheckResult) SetStatus(v string) *TrustedAdvisorCheckResult {
  2824. s.Status = &v
  2825. return s
  2826. }
  2827. // SetTimestamp sets the Timestamp field's value.
  2828. func (s *TrustedAdvisorCheckResult) SetTimestamp(v string) *TrustedAdvisorCheckResult {
  2829. s.Timestamp = &v
  2830. return s
  2831. }
  2832. // A summary of a Trusted Advisor check result, including the alert status,
  2833. // last refresh, and number of resources examined.
  2834. type TrustedAdvisorCheckSummary struct {
  2835. _ struct{} `type:"structure"`
  2836. // Summary information that relates to the category of the check. Cost Optimizing
  2837. // is the only category that is currently supported.
  2838. //
  2839. // CategorySpecificSummary is a required field
  2840. CategorySpecificSummary *TrustedAdvisorCategorySpecificSummary `locationName:"categorySpecificSummary" type:"structure" required:"true"`
  2841. // The unique identifier for the Trusted Advisor check.
  2842. //
  2843. // CheckId is a required field
  2844. CheckId *string `locationName:"checkId" type:"string" required:"true"`
  2845. // Specifies whether the Trusted Advisor check has flagged resources.
  2846. HasFlaggedResources *bool `locationName:"hasFlaggedResources" type:"boolean"`
  2847. // Details about AWS resources that were analyzed in a call to Trusted Advisor
  2848. // DescribeTrustedAdvisorCheckSummaries.
  2849. //
  2850. // ResourcesSummary is a required field
  2851. ResourcesSummary *TrustedAdvisorResourcesSummary `locationName:"resourcesSummary" type:"structure" required:"true"`
  2852. // The alert status of the check: "ok" (green), "warning" (yellow), "error"
  2853. // (red), or "not_available".
  2854. //
  2855. // Status is a required field
  2856. Status *string `locationName:"status" type:"string" required:"true"`
  2857. // The time of the last refresh of the check.
  2858. //
  2859. // Timestamp is a required field
  2860. Timestamp *string `locationName:"timestamp" type:"string" required:"true"`
  2861. }
  2862. // String returns the string representation
  2863. func (s TrustedAdvisorCheckSummary) String() string {
  2864. return awsutil.Prettify(s)
  2865. }
  2866. // GoString returns the string representation
  2867. func (s TrustedAdvisorCheckSummary) GoString() string {
  2868. return s.String()
  2869. }
  2870. // SetCategorySpecificSummary sets the CategorySpecificSummary field's value.
  2871. func (s *TrustedAdvisorCheckSummary) SetCategorySpecificSummary(v *TrustedAdvisorCategorySpecificSummary) *TrustedAdvisorCheckSummary {
  2872. s.CategorySpecificSummary = v
  2873. return s
  2874. }
  2875. // SetCheckId sets the CheckId field's value.
  2876. func (s *TrustedAdvisorCheckSummary) SetCheckId(v string) *TrustedAdvisorCheckSummary {
  2877. s.CheckId = &v
  2878. return s
  2879. }
  2880. // SetHasFlaggedResources sets the HasFlaggedResources field's value.
  2881. func (s *TrustedAdvisorCheckSummary) SetHasFlaggedResources(v bool) *TrustedAdvisorCheckSummary {
  2882. s.HasFlaggedResources = &v
  2883. return s
  2884. }
  2885. // SetResourcesSummary sets the ResourcesSummary field's value.
  2886. func (s *TrustedAdvisorCheckSummary) SetResourcesSummary(v *TrustedAdvisorResourcesSummary) *TrustedAdvisorCheckSummary {
  2887. s.ResourcesSummary = v
  2888. return s
  2889. }
  2890. // SetStatus sets the Status field's value.
  2891. func (s *TrustedAdvisorCheckSummary) SetStatus(v string) *TrustedAdvisorCheckSummary {
  2892. s.Status = &v
  2893. return s
  2894. }
  2895. // SetTimestamp sets the Timestamp field's value.
  2896. func (s *TrustedAdvisorCheckSummary) SetTimestamp(v string) *TrustedAdvisorCheckSummary {
  2897. s.Timestamp = &v
  2898. return s
  2899. }
  2900. // The estimated cost savings that might be realized if the recommended actions
  2901. // are taken.
  2902. type TrustedAdvisorCostOptimizingSummary struct {
  2903. _ struct{} `type:"structure"`
  2904. // The estimated monthly savings that might be realized if the recommended actions
  2905. // are taken.
  2906. //
  2907. // EstimatedMonthlySavings is a required field
  2908. EstimatedMonthlySavings *float64 `locationName:"estimatedMonthlySavings" type:"double" required:"true"`
  2909. // The estimated percentage of savings that might be realized if the recommended
  2910. // actions are taken.
  2911. //
  2912. // EstimatedPercentMonthlySavings is a required field
  2913. EstimatedPercentMonthlySavings *float64 `locationName:"estimatedPercentMonthlySavings" type:"double" required:"true"`
  2914. }
  2915. // String returns the string representation
  2916. func (s TrustedAdvisorCostOptimizingSummary) String() string {
  2917. return awsutil.Prettify(s)
  2918. }
  2919. // GoString returns the string representation
  2920. func (s TrustedAdvisorCostOptimizingSummary) GoString() string {
  2921. return s.String()
  2922. }
  2923. // SetEstimatedMonthlySavings sets the EstimatedMonthlySavings field's value.
  2924. func (s *TrustedAdvisorCostOptimizingSummary) SetEstimatedMonthlySavings(v float64) *TrustedAdvisorCostOptimizingSummary {
  2925. s.EstimatedMonthlySavings = &v
  2926. return s
  2927. }
  2928. // SetEstimatedPercentMonthlySavings sets the EstimatedPercentMonthlySavings field's value.
  2929. func (s *TrustedAdvisorCostOptimizingSummary) SetEstimatedPercentMonthlySavings(v float64) *TrustedAdvisorCostOptimizingSummary {
  2930. s.EstimatedPercentMonthlySavings = &v
  2931. return s
  2932. }
  2933. // Contains information about a resource identified by a Trusted Advisor check.
  2934. type TrustedAdvisorResourceDetail struct {
  2935. _ struct{} `type:"structure"`
  2936. // Specifies whether the AWS resource was ignored by Trusted Advisor because
  2937. // it was marked as suppressed by the user.
  2938. IsSuppressed *bool `locationName:"isSuppressed" type:"boolean"`
  2939. // Additional information about the identified resource. The exact metadata
  2940. // and its order can be obtained by inspecting the TrustedAdvisorCheckDescription
  2941. // object returned by the call to DescribeTrustedAdvisorChecks. Metadata contains
  2942. // all the data that is shown in the Excel download, even in those cases where
  2943. // the UI shows just summary data.
  2944. //
  2945. // Metadata is a required field
  2946. Metadata []*string `locationName:"metadata" type:"list" required:"true"`
  2947. // The AWS region in which the identified resource is located.
  2948. Region *string `locationName:"region" type:"string"`
  2949. // The unique identifier for the identified resource.
  2950. //
  2951. // ResourceId is a required field
  2952. ResourceId *string `locationName:"resourceId" type:"string" required:"true"`
  2953. // The status code for the resource identified in the Trusted Advisor check.
  2954. //
  2955. // Status is a required field
  2956. Status *string `locationName:"status" type:"string" required:"true"`
  2957. }
  2958. // String returns the string representation
  2959. func (s TrustedAdvisorResourceDetail) String() string {
  2960. return awsutil.Prettify(s)
  2961. }
  2962. // GoString returns the string representation
  2963. func (s TrustedAdvisorResourceDetail) GoString() string {
  2964. return s.String()
  2965. }
  2966. // SetIsSuppressed sets the IsSuppressed field's value.
  2967. func (s *TrustedAdvisorResourceDetail) SetIsSuppressed(v bool) *TrustedAdvisorResourceDetail {
  2968. s.IsSuppressed = &v
  2969. return s
  2970. }
  2971. // SetMetadata sets the Metadata field's value.
  2972. func (s *TrustedAdvisorResourceDetail) SetMetadata(v []*string) *TrustedAdvisorResourceDetail {
  2973. s.Metadata = v
  2974. return s
  2975. }
  2976. // SetRegion sets the Region field's value.
  2977. func (s *TrustedAdvisorResourceDetail) SetRegion(v string) *TrustedAdvisorResourceDetail {
  2978. s.Region = &v
  2979. return s
  2980. }
  2981. // SetResourceId sets the ResourceId field's value.
  2982. func (s *TrustedAdvisorResourceDetail) SetResourceId(v string) *TrustedAdvisorResourceDetail {
  2983. s.ResourceId = &v
  2984. return s
  2985. }
  2986. // SetStatus sets the Status field's value.
  2987. func (s *TrustedAdvisorResourceDetail) SetStatus(v string) *TrustedAdvisorResourceDetail {
  2988. s.Status = &v
  2989. return s
  2990. }
  2991. // Details about AWS resources that were analyzed in a call to Trusted Advisor
  2992. // DescribeTrustedAdvisorCheckSummaries.
  2993. type TrustedAdvisorResourcesSummary struct {
  2994. _ struct{} `type:"structure"`
  2995. // The number of AWS resources that were flagged (listed) by the Trusted Advisor
  2996. // check.
  2997. //
  2998. // ResourcesFlagged is a required field
  2999. ResourcesFlagged *int64 `locationName:"resourcesFlagged" type:"long" required:"true"`
  3000. // The number of AWS resources ignored by Trusted Advisor because information
  3001. // was unavailable.
  3002. //
  3003. // ResourcesIgnored is a required field
  3004. ResourcesIgnored *int64 `locationName:"resourcesIgnored" type:"long" required:"true"`
  3005. // The number of AWS resources that were analyzed by the Trusted Advisor check.
  3006. //
  3007. // ResourcesProcessed is a required field
  3008. ResourcesProcessed *int64 `locationName:"resourcesProcessed" type:"long" required:"true"`
  3009. // The number of AWS resources ignored by Trusted Advisor because they were
  3010. // marked as suppressed by the user.
  3011. //
  3012. // ResourcesSuppressed is a required field
  3013. ResourcesSuppressed *int64 `locationName:"resourcesSuppressed" type:"long" required:"true"`
  3014. }
  3015. // String returns the string representation
  3016. func (s TrustedAdvisorResourcesSummary) String() string {
  3017. return awsutil.Prettify(s)
  3018. }
  3019. // GoString returns the string representation
  3020. func (s TrustedAdvisorResourcesSummary) GoString() string {
  3021. return s.String()
  3022. }
  3023. // SetResourcesFlagged sets the ResourcesFlagged field's value.
  3024. func (s *TrustedAdvisorResourcesSummary) SetResourcesFlagged(v int64) *TrustedAdvisorResourcesSummary {
  3025. s.ResourcesFlagged = &v
  3026. return s
  3027. }
  3028. // SetResourcesIgnored sets the ResourcesIgnored field's value.
  3029. func (s *TrustedAdvisorResourcesSummary) SetResourcesIgnored(v int64) *TrustedAdvisorResourcesSummary {
  3030. s.ResourcesIgnored = &v
  3031. return s
  3032. }
  3033. // SetResourcesProcessed sets the ResourcesProcessed field's value.
  3034. func (s *TrustedAdvisorResourcesSummary) SetResourcesProcessed(v int64) *TrustedAdvisorResourcesSummary {
  3035. s.ResourcesProcessed = &v
  3036. return s
  3037. }
  3038. // SetResourcesSuppressed sets the ResourcesSuppressed field's value.
  3039. func (s *TrustedAdvisorResourcesSummary) SetResourcesSuppressed(v int64) *TrustedAdvisorResourcesSummary {
  3040. s.ResourcesSuppressed = &v
  3041. return s
  3042. }