3 Star 1 Fork 0

Gitee 极速下载/aws-sdk-go

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
此仓库是为了提升国内下载速度的镜像仓库,每日同步一次。 原始仓库: https://github.com/aws/aws-sdk-go
克隆/下载
api.go 117.86 KB
一键复制 编辑 原始数据 按行查看 历史
12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326
// THIS FILE IS AUTOMATICALLY GENERATED. DO NOT EDIT.
// Package support provides a client for AWS Support.
package support
import (
"github.com/aws/aws-sdk-go/aws/awsutil"
"github.com/aws/aws-sdk-go/aws/request"
)
const opAddAttachmentsToSet = "AddAttachmentsToSet"
// AddAttachmentsToSetRequest generates a "aws/request.Request" representing the
// client's request for the AddAttachmentsToSet operation. The "output" return
// value can be used to capture response data after the request's "Send" method
// is called.
//
// See AddAttachmentsToSet for usage and error information.
//
// Creating a request object using this method should be used when you want to inject
// custom logic into the request's lifecycle using a custom handler, or if you want to
// access properties on the request object before or after sending the request. If
// you just want the service response, call the AddAttachmentsToSet method directly
// instead.
//
// Note: You must call the "Send" method on the returned request object in order
// to execute the request.
//
// // Example sending a request using the AddAttachmentsToSetRequest method.
// req, resp := client.AddAttachmentsToSetRequest(params)
//
// err := req.Send()
// if err == nil { // resp is now filled
// fmt.Println(resp)
// }
//
// Please also see https://docs.aws.amazon.com/goto/WebAPI/support-2013-04-15/AddAttachmentsToSet
func (c *Support) AddAttachmentsToSetRequest(input *AddAttachmentsToSetInput) (req *request.Request, output *AddAttachmentsToSetOutput) {
op := &request.Operation{
Name: opAddAttachmentsToSet,
HTTPMethod: "POST",
HTTPPath: "/",
}
if input == nil {
input = &AddAttachmentsToSetInput{}
}
output = &AddAttachmentsToSetOutput{}
req = c.newRequest(op, input, output)
return
}
// AddAttachmentsToSet API operation for AWS Support.
//
// Adds one or more attachments to an attachment set. If an attachmentSetId
// is not specified, a new attachment set is created, and the ID of the set
// is returned in the response. If an attachmentSetId is specified, the attachments
// are added to the specified set, if it exists.
//
// An attachment set is a temporary container for attachments that are to be
// added to a case or case communication. The set is available for one hour
// after it is created; the expiryTime returned in the response indicates when
// the set expires. The maximum number of attachments in a set is 3, and the
// maximum size of any attachment in the set is 5 MB.
//
// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
// with awserr.Error's Code and Message methods to get detailed information about
// the error.
//
// See the AWS API reference guide for AWS Support's
// API operation AddAttachmentsToSet for usage and error information.
//
// Returned Error Codes:
// * ErrCodeInternalServerError "InternalServerError"
// An internal server error occurred.
//
// * ErrCodeAttachmentSetIdNotFound "AttachmentSetIdNotFound"
// An attachment set with the specified ID could not be found.
//
// * ErrCodeAttachmentSetExpired "AttachmentSetExpired"
// The expiration time of the attachment set has passed. The set expires 1 hour
// after it is created.
//
// * ErrCodeAttachmentSetSizeLimitExceeded "AttachmentSetSizeLimitExceeded"
// A limit for the size of an attachment set has been exceeded. The limits are
// 3 attachments and 5 MB per attachment.
//
// * ErrCodeAttachmentLimitExceeded "AttachmentLimitExceeded"
// The limit for the number of attachment sets created in a short period of
// time has been exceeded.
//
// Please also see https://docs.aws.amazon.com/goto/WebAPI/support-2013-04-15/AddAttachmentsToSet
func (c *Support) AddAttachmentsToSet(input *AddAttachmentsToSetInput) (*AddAttachmentsToSetOutput, error) {
req, out := c.AddAttachmentsToSetRequest(input)
err := req.Send()
return out, err
}
const opAddCommunicationToCase = "AddCommunicationToCase"
// AddCommunicationToCaseRequest generates a "aws/request.Request" representing the
// client's request for the AddCommunicationToCase operation. The "output" return
// value can be used to capture response data after the request's "Send" method
// is called.
//
// See AddCommunicationToCase for usage and error information.
//
// Creating a request object using this method should be used when you want to inject
// custom logic into the request's lifecycle using a custom handler, or if you want to
// access properties on the request object before or after sending the request. If
// you just want the service response, call the AddCommunicationToCase method directly
// instead.
//
// Note: You must call the "Send" method on the returned request object in order
// to execute the request.
//
// // Example sending a request using the AddCommunicationToCaseRequest method.
// req, resp := client.AddCommunicationToCaseRequest(params)
//
// err := req.Send()
// if err == nil { // resp is now filled
// fmt.Println(resp)
// }
//
// Please also see https://docs.aws.amazon.com/goto/WebAPI/support-2013-04-15/AddCommunicationToCase
func (c *Support) AddCommunicationToCaseRequest(input *AddCommunicationToCaseInput) (req *request.Request, output *AddCommunicationToCaseOutput) {
op := &request.Operation{
Name: opAddCommunicationToCase,
HTTPMethod: "POST",
HTTPPath: "/",
}
if input == nil {
input = &AddCommunicationToCaseInput{}
}
output = &AddCommunicationToCaseOutput{}
req = c.newRequest(op, input, output)
return
}
// AddCommunicationToCase API operation for AWS Support.
//
// Adds additional customer communication to an AWS Support case. You use the
// caseId value to identify the case to add communication to. You can list a
// set of email addresses to copy on the communication using the ccEmailAddresses
// value. The communicationBody value contains the text of the communication.
//
// The response indicates the success or failure of the request.
//
// This operation implements a subset of the features of the AWS Support Center.
//
// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
// with awserr.Error's Code and Message methods to get detailed information about
// the error.
//
// See the AWS API reference guide for AWS Support's
// API operation AddCommunicationToCase for usage and error information.
//
// Returned Error Codes:
// * ErrCodeInternalServerError "InternalServerError"
// An internal server error occurred.
//
// * ErrCodeCaseIdNotFound "CaseIdNotFound"
// The requested caseId could not be located.
//
// * ErrCodeAttachmentSetIdNotFound "AttachmentSetIdNotFound"
// An attachment set with the specified ID could not be found.
//
// * ErrCodeAttachmentSetExpired "AttachmentSetExpired"
// The expiration time of the attachment set has passed. The set expires 1 hour
// after it is created.
//
// Please also see https://docs.aws.amazon.com/goto/WebAPI/support-2013-04-15/AddCommunicationToCase
func (c *Support) AddCommunicationToCase(input *AddCommunicationToCaseInput) (*AddCommunicationToCaseOutput, error) {
req, out := c.AddCommunicationToCaseRequest(input)
err := req.Send()
return out, err
}
const opCreateCase = "CreateCase"
// CreateCaseRequest generates a "aws/request.Request" representing the
// client's request for the CreateCase operation. The "output" return
// value can be used to capture response data after the request's "Send" method
// is called.
//
// See CreateCase for usage and error information.
//
// Creating a request object using this method should be used when you want to inject
// custom logic into the request's lifecycle using a custom handler, or if you want to
// access properties on the request object before or after sending the request. If
// you just want the service response, call the CreateCase method directly
// instead.
//
// Note: You must call the "Send" method on the returned request object in order
// to execute the request.
//
// // Example sending a request using the CreateCaseRequest method.
// req, resp := client.CreateCaseRequest(params)
//
// err := req.Send()
// if err == nil { // resp is now filled
// fmt.Println(resp)
// }
//
// Please also see https://docs.aws.amazon.com/goto/WebAPI/support-2013-04-15/CreateCase
func (c *Support) CreateCaseRequest(input *CreateCaseInput) (req *request.Request, output *CreateCaseOutput) {
op := &request.Operation{
Name: opCreateCase,
HTTPMethod: "POST",
HTTPPath: "/",
}
if input == nil {
input = &CreateCaseInput{}
}
output = &CreateCaseOutput{}
req = c.newRequest(op, input, output)
return
}
// CreateCase API operation for AWS Support.
//
// Creates a new case in the AWS Support Center. This operation is modeled on
// the behavior of the AWS Support Center Create Case (https://console.aws.amazon.com/support/home#/case/create)
// page. Its parameters require you to specify the following information:
//
// * issueType. The type of issue for the case. You can specify either "customer-service"
// or "technical." If you do not indicate a value, the default is "technical."
//
//
// * serviceCode. The code for an AWS service. You obtain the serviceCode
// by calling DescribeServices.
//
// * categoryCode. The category for the service defined for the serviceCode
// value. You also obtain the category code for a service by calling DescribeServices.
// Each AWS service defines its own set of category codes.
//
// * severityCode. A value that indicates the urgency of the case, which
// in turn determines the response time according to your service level agreement
// with AWS Support. You obtain the SeverityCode by calling DescribeSeverityLevels.
//
// * subject. The Subject field on the AWS Support Center Create Case (https://console.aws.amazon.com/support/home#/case/create)
// page.
//
// * communicationBody. The Description field on the AWS Support Center Create
// Case (https://console.aws.amazon.com/support/home#/case/create) page.
//
// * attachmentSetId. The ID of a set of attachments that has been created
// by using AddAttachmentsToSet.
//
// * language. The human language in which AWS Support handles the case.
// English and Japanese are currently supported.
//
// * ccEmailAddresses. The AWS Support Center CC field on the Create Case
// (https://console.aws.amazon.com/support/home#/case/create) page. You can
// list email addresses to be copied on any correspondence about the case.
// The account that opens the case is already identified by passing the AWS
// Credentials in the HTTP POST method or in a method or function call from
// one of the programming languages supported by an AWS SDK (http://aws.amazon.com/tools/).
//
//
// To add additional communication or attachments to an existing case, use AddCommunicationToCase.
//
// A successful CreateCase request returns an AWS Support case number. Case
// numbers are used by the DescribeCases operation to retrieve existing AWS
// Support cases.
//
// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
// with awserr.Error's Code and Message methods to get detailed information about
// the error.
//
// See the AWS API reference guide for AWS Support's
// API operation CreateCase for usage and error information.
//
// Returned Error Codes:
// * ErrCodeInternalServerError "InternalServerError"
// An internal server error occurred.
//
// * ErrCodeCaseCreationLimitExceeded "CaseCreationLimitExceeded"
// The case creation limit for the account has been exceeded.
//
// * ErrCodeAttachmentSetIdNotFound "AttachmentSetIdNotFound"
// An attachment set with the specified ID could not be found.
//
// * ErrCodeAttachmentSetExpired "AttachmentSetExpired"
// The expiration time of the attachment set has passed. The set expires 1 hour
// after it is created.
//
// Please also see https://docs.aws.amazon.com/goto/WebAPI/support-2013-04-15/CreateCase
func (c *Support) CreateCase(input *CreateCaseInput) (*CreateCaseOutput, error) {
req, out := c.CreateCaseRequest(input)
err := req.Send()
return out, err
}
const opDescribeAttachment = "DescribeAttachment"
// DescribeAttachmentRequest generates a "aws/request.Request" representing the
// client's request for the DescribeAttachment operation. The "output" return
// value can be used to capture response data after the request's "Send" method
// is called.
//
// See DescribeAttachment for usage and error information.
//
// Creating a request object using this method should be used when you want to inject
// custom logic into the request's lifecycle using a custom handler, or if you want to
// access properties on the request object before or after sending the request. If
// you just want the service response, call the DescribeAttachment method directly
// instead.
//
// Note: You must call the "Send" method on the returned request object in order
// to execute the request.
//
// // Example sending a request using the DescribeAttachmentRequest method.
// req, resp := client.DescribeAttachmentRequest(params)
//
// err := req.Send()
// if err == nil { // resp is now filled
// fmt.Println(resp)
// }
//
// Please also see https://docs.aws.amazon.com/goto/WebAPI/support-2013-04-15/DescribeAttachment
func (c *Support) DescribeAttachmentRequest(input *DescribeAttachmentInput) (req *request.Request, output *DescribeAttachmentOutput) {
op := &request.Operation{
Name: opDescribeAttachment,
HTTPMethod: "POST",
HTTPPath: "/",
}
if input == nil {
input = &DescribeAttachmentInput{}
}
output = &DescribeAttachmentOutput{}
req = c.newRequest(op, input, output)
return
}
// DescribeAttachment API operation for AWS Support.
//
// Returns the attachment that has the specified ID. Attachment IDs are generated
// by the case management system when you add an attachment to a case or case
// communication. Attachment IDs are returned in the AttachmentDetails objects
// that are returned by the DescribeCommunications operation.
//
// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
// with awserr.Error's Code and Message methods to get detailed information about
// the error.
//
// See the AWS API reference guide for AWS Support's
// API operation DescribeAttachment for usage and error information.
//
// Returned Error Codes:
// * ErrCodeInternalServerError "InternalServerError"
// An internal server error occurred.
//
// * ErrCodeDescribeAttachmentLimitExceeded "DescribeAttachmentLimitExceeded"
// The limit for the number of DescribeAttachment requests in a short period
// of time has been exceeded.
//
// * ErrCodeAttachmentIdNotFound "AttachmentIdNotFound"
// An attachment with the specified ID could not be found.
//
// Please also see https://docs.aws.amazon.com/goto/WebAPI/support-2013-04-15/DescribeAttachment
func (c *Support) DescribeAttachment(input *DescribeAttachmentInput) (*DescribeAttachmentOutput, error) {
req, out := c.DescribeAttachmentRequest(input)
err := req.Send()
return out, err
}
const opDescribeCases = "DescribeCases"
// DescribeCasesRequest generates a "aws/request.Request" representing the
// client's request for the DescribeCases operation. The "output" return
// value can be used to capture response data after the request's "Send" method
// is called.
//
// See DescribeCases for usage and error information.
//
// Creating a request object using this method should be used when you want to inject
// custom logic into the request's lifecycle using a custom handler, or if you want to
// access properties on the request object before or after sending the request. If
// you just want the service response, call the DescribeCases method directly
// instead.
//
// Note: You must call the "Send" method on the returned request object in order
// to execute the request.
//
// // Example sending a request using the DescribeCasesRequest method.
// req, resp := client.DescribeCasesRequest(params)
//
// err := req.Send()
// if err == nil { // resp is now filled
// fmt.Println(resp)
// }
//
// Please also see https://docs.aws.amazon.com/goto/WebAPI/support-2013-04-15/DescribeCases
func (c *Support) DescribeCasesRequest(input *DescribeCasesInput) (req *request.Request, output *DescribeCasesOutput) {
op := &request.Operation{
Name: opDescribeCases,
HTTPMethod: "POST",
HTTPPath: "/",
Paginator: &request.Paginator{
InputTokens: []string{"nextToken"},
OutputTokens: []string{"nextToken"},
LimitToken: "maxResults",
TruncationToken: "",
},
}
if input == nil {
input = &DescribeCasesInput{}
}
output = &DescribeCasesOutput{}
req = c.newRequest(op, input, output)
return
}
// DescribeCases API operation for AWS Support.
//
// Returns a list of cases that you specify by passing one or more case IDs.
// In addition, you can filter the cases by date by setting values for the afterTime
// and beforeTime request parameters. You can set values for the includeResolvedCases
// and includeCommunications request parameters to control how much information
// is returned.
//
// Case data is available for 12 months after creation. If a case was created
// more than 12 months ago, a request for data might cause an error.
//
// The response returns the following in JSON format:
//
// * One or more CaseDetails data types.
//
// * One or more nextToken values, which specify where to paginate the returned
// records represented by the CaseDetails objects.
//
// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
// with awserr.Error's Code and Message methods to get detailed information about
// the error.
//
// See the AWS API reference guide for AWS Support's
// API operation DescribeCases for usage and error information.
//
// Returned Error Codes:
// * ErrCodeInternalServerError "InternalServerError"
// An internal server error occurred.
//
// * ErrCodeCaseIdNotFound "CaseIdNotFound"
// The requested caseId could not be located.
//
// Please also see https://docs.aws.amazon.com/goto/WebAPI/support-2013-04-15/DescribeCases
func (c *Support) DescribeCases(input *DescribeCasesInput) (*DescribeCasesOutput, error) {
req, out := c.DescribeCasesRequest(input)
err := req.Send()
return out, err
}
// DescribeCasesPages iterates over the pages of a DescribeCases operation,
// calling the "fn" function with the response data for each page. To stop
// iterating, return false from the fn function.
//
// See DescribeCases method for more information on how to use this operation.
//
// Note: This operation can generate multiple requests to a service.
//
// // Example iterating over at most 3 pages of a DescribeCases operation.
// pageNum := 0
// err := client.DescribeCasesPages(params,
// func(page *DescribeCasesOutput, lastPage bool) bool {
// pageNum++
// fmt.Println(page)
// return pageNum <= 3
// })
//
func (c *Support) DescribeCasesPages(input *DescribeCasesInput, fn func(p *DescribeCasesOutput, lastPage bool) (shouldContinue bool)) error {
page, _ := c.DescribeCasesRequest(input)
page.Handlers.Build.PushBack(request.MakeAddToUserAgentFreeFormHandler("Paginator"))
return page.EachPage(func(p interface{}, lastPage bool) bool {
return fn(p.(*DescribeCasesOutput), lastPage)
})
}
const opDescribeCommunications = "DescribeCommunications"
// DescribeCommunicationsRequest generates a "aws/request.Request" representing the
// client's request for the DescribeCommunications operation. The "output" return
// value can be used to capture response data after the request's "Send" method
// is called.
//
// See DescribeCommunications for usage and error information.
//
// Creating a request object using this method should be used when you want to inject
// custom logic into the request's lifecycle using a custom handler, or if you want to
// access properties on the request object before or after sending the request. If
// you just want the service response, call the DescribeCommunications method directly
// instead.
//
// Note: You must call the "Send" method on the returned request object in order
// to execute the request.
//
// // Example sending a request using the DescribeCommunicationsRequest method.
// req, resp := client.DescribeCommunicationsRequest(params)
//
// err := req.Send()
// if err == nil { // resp is now filled
// fmt.Println(resp)
// }
//
// Please also see https://docs.aws.amazon.com/goto/WebAPI/support-2013-04-15/DescribeCommunications
func (c *Support) DescribeCommunicationsRequest(input *DescribeCommunicationsInput) (req *request.Request, output *DescribeCommunicationsOutput) {
op := &request.Operation{
Name: opDescribeCommunications,
HTTPMethod: "POST",
HTTPPath: "/",
Paginator: &request.Paginator{
InputTokens: []string{"nextToken"},
OutputTokens: []string{"nextToken"},
LimitToken: "maxResults",
TruncationToken: "",
},
}
if input == nil {
input = &DescribeCommunicationsInput{}
}
output = &DescribeCommunicationsOutput{}
req = c.newRequest(op, input, output)
return
}
// DescribeCommunications API operation for AWS Support.
//
// Returns communications (and attachments) for one or more support cases. You
// can use the afterTime and beforeTime parameters to filter by date. You can
// use the caseId parameter to restrict the results to a particular case.
//
// Case data is available for 12 months after creation. If a case was created
// more than 12 months ago, a request for data might cause an error.
//
// You can use the maxResults and nextToken parameters to control the pagination
// of the result set. Set maxResults to the number of cases you want displayed
// on each page, and use nextToken to specify the resumption of pagination.
//
// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
// with awserr.Error's Code and Message methods to get detailed information about
// the error.
//
// See the AWS API reference guide for AWS Support's
// API operation DescribeCommunications for usage and error information.
//
// Returned Error Codes:
// * ErrCodeInternalServerError "InternalServerError"
// An internal server error occurred.
//
// * ErrCodeCaseIdNotFound "CaseIdNotFound"
// The requested caseId could not be located.
//
// Please also see https://docs.aws.amazon.com/goto/WebAPI/support-2013-04-15/DescribeCommunications
func (c *Support) DescribeCommunications(input *DescribeCommunicationsInput) (*DescribeCommunicationsOutput, error) {
req, out := c.DescribeCommunicationsRequest(input)
err := req.Send()
return out, err
}
// DescribeCommunicationsPages iterates over the pages of a DescribeCommunications operation,
// calling the "fn" function with the response data for each page. To stop
// iterating, return false from the fn function.
//
// See DescribeCommunications method for more information on how to use this operation.
//
// Note: This operation can generate multiple requests to a service.
//
// // Example iterating over at most 3 pages of a DescribeCommunications operation.
// pageNum := 0
// err := client.DescribeCommunicationsPages(params,
// func(page *DescribeCommunicationsOutput, lastPage bool) bool {
// pageNum++
// fmt.Println(page)
// return pageNum <= 3
// })
//
func (c *Support) DescribeCommunicationsPages(input *DescribeCommunicationsInput, fn func(p *DescribeCommunicationsOutput, lastPage bool) (shouldContinue bool)) error {
page, _ := c.DescribeCommunicationsRequest(input)
page.Handlers.Build.PushBack(request.MakeAddToUserAgentFreeFormHandler("Paginator"))
return page.EachPage(func(p interface{}, lastPage bool) bool {
return fn(p.(*DescribeCommunicationsOutput), lastPage)
})
}
const opDescribeServices = "DescribeServices"
// DescribeServicesRequest generates a "aws/request.Request" representing the
// client's request for the DescribeServices operation. The "output" return
// value can be used to capture response data after the request's "Send" method
// is called.
//
// See DescribeServices for usage and error information.
//
// Creating a request object using this method should be used when you want to inject
// custom logic into the request's lifecycle using a custom handler, or if you want to
// access properties on the request object before or after sending the request. If
// you just want the service response, call the DescribeServices method directly
// instead.
//
// Note: You must call the "Send" method on the returned request object in order
// to execute the request.
//
// // Example sending a request using the DescribeServicesRequest method.
// req, resp := client.DescribeServicesRequest(params)
//
// err := req.Send()
// if err == nil { // resp is now filled
// fmt.Println(resp)
// }
//
// Please also see https://docs.aws.amazon.com/goto/WebAPI/support-2013-04-15/DescribeServices
func (c *Support) DescribeServicesRequest(input *DescribeServicesInput) (req *request.Request, output *DescribeServicesOutput) {
op := &request.Operation{
Name: opDescribeServices,
HTTPMethod: "POST",
HTTPPath: "/",
}
if input == nil {
input = &DescribeServicesInput{}
}
output = &DescribeServicesOutput{}
req = c.newRequest(op, input, output)
return
}
// DescribeServices API operation for AWS Support.
//
// Returns the current list of AWS services and a list of service categories
// that applies to each one. You then use service names and categories in your
// CreateCase requests. Each AWS service has its own set of categories.
//
// The service codes and category codes correspond to the values that are displayed
// in the Service and Category drop-down lists on the AWS Support Center Create
// Case (https://console.aws.amazon.com/support/home#/case/create) page. The
// values in those fields, however, do not necessarily match the service codes
// and categories returned by the DescribeServices request. Always use the service
// codes and categories obtained programmatically. This practice ensures that
// you always have the most recent set of service and category codes.
//
// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
// with awserr.Error's Code and Message methods to get detailed information about
// the error.
//
// See the AWS API reference guide for AWS Support's
// API operation DescribeServices for usage and error information.
//
// Returned Error Codes:
// * ErrCodeInternalServerError "InternalServerError"
// An internal server error occurred.
//
// Please also see https://docs.aws.amazon.com/goto/WebAPI/support-2013-04-15/DescribeServices
func (c *Support) DescribeServices(input *DescribeServicesInput) (*DescribeServicesOutput, error) {
req, out := c.DescribeServicesRequest(input)
err := req.Send()
return out, err
}
const opDescribeSeverityLevels = "DescribeSeverityLevels"
// DescribeSeverityLevelsRequest generates a "aws/request.Request" representing the
// client's request for the DescribeSeverityLevels operation. The "output" return
// value can be used to capture response data after the request's "Send" method
// is called.
//
// See DescribeSeverityLevels for usage and error information.
//
// Creating a request object using this method should be used when you want to inject
// custom logic into the request's lifecycle using a custom handler, or if you want to
// access properties on the request object before or after sending the request. If
// you just want the service response, call the DescribeSeverityLevels method directly
// instead.
//
// Note: You must call the "Send" method on the returned request object in order
// to execute the request.
//
// // Example sending a request using the DescribeSeverityLevelsRequest method.
// req, resp := client.DescribeSeverityLevelsRequest(params)
//
// err := req.Send()
// if err == nil { // resp is now filled
// fmt.Println(resp)
// }
//
// Please also see https://docs.aws.amazon.com/goto/WebAPI/support-2013-04-15/DescribeSeverityLevels
func (c *Support) DescribeSeverityLevelsRequest(input *DescribeSeverityLevelsInput) (req *request.Request, output *DescribeSeverityLevelsOutput) {
op := &request.Operation{
Name: opDescribeSeverityLevels,
HTTPMethod: "POST",
HTTPPath: "/",
}
if input == nil {
input = &DescribeSeverityLevelsInput{}
}
output = &DescribeSeverityLevelsOutput{}
req = c.newRequest(op, input, output)
return
}
// DescribeSeverityLevels API operation for AWS Support.
//
// Returns the list of severity levels that you can assign to an AWS Support
// case. The severity level for a case is also a field in the CaseDetails data
// type included in any CreateCase request.
//
// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
// with awserr.Error's Code and Message methods to get detailed information about
// the error.
//
// See the AWS API reference guide for AWS Support's
// API operation DescribeSeverityLevels for usage and error information.
//
// Returned Error Codes:
// * ErrCodeInternalServerError "InternalServerError"
// An internal server error occurred.
//
// Please also see https://docs.aws.amazon.com/goto/WebAPI/support-2013-04-15/DescribeSeverityLevels
func (c *Support) DescribeSeverityLevels(input *DescribeSeverityLevelsInput) (*DescribeSeverityLevelsOutput, error) {
req, out := c.DescribeSeverityLevelsRequest(input)
err := req.Send()
return out, err
}
const opDescribeTrustedAdvisorCheckRefreshStatuses = "DescribeTrustedAdvisorCheckRefreshStatuses"
// DescribeTrustedAdvisorCheckRefreshStatusesRequest generates a "aws/request.Request" representing the
// client's request for the DescribeTrustedAdvisorCheckRefreshStatuses operation. The "output" return
// value can be used to capture response data after the request's "Send" method
// is called.
//
// See DescribeTrustedAdvisorCheckRefreshStatuses for usage and error information.
//
// Creating a request object using this method should be used when you want to inject
// custom logic into the request's lifecycle using a custom handler, or if you want to
// access properties on the request object before or after sending the request. If
// you just want the service response, call the DescribeTrustedAdvisorCheckRefreshStatuses method directly
// instead.
//
// Note: You must call the "Send" method on the returned request object in order
// to execute the request.
//
// // Example sending a request using the DescribeTrustedAdvisorCheckRefreshStatusesRequest method.
// req, resp := client.DescribeTrustedAdvisorCheckRefreshStatusesRequest(params)
//
// err := req.Send()
// if err == nil { // resp is now filled
// fmt.Println(resp)
// }
//
// Please also see https://docs.aws.amazon.com/goto/WebAPI/support-2013-04-15/DescribeTrustedAdvisorCheckRefreshStatuses
func (c *Support) DescribeTrustedAdvisorCheckRefreshStatusesRequest(input *DescribeTrustedAdvisorCheckRefreshStatusesInput) (req *request.Request, output *DescribeTrustedAdvisorCheckRefreshStatusesOutput) {
op := &request.Operation{
Name: opDescribeTrustedAdvisorCheckRefreshStatuses,
HTTPMethod: "POST",
HTTPPath: "/",
}
if input == nil {
input = &DescribeTrustedAdvisorCheckRefreshStatusesInput{}
}
output = &DescribeTrustedAdvisorCheckRefreshStatusesOutput{}
req = c.newRequest(op, input, output)
return
}
// DescribeTrustedAdvisorCheckRefreshStatuses API operation for AWS Support.
//
// Returns the refresh status of the Trusted Advisor checks that have the specified
// check IDs. Check IDs can be obtained by calling DescribeTrustedAdvisorChecks.
//
// Some checks are refreshed automatically, and their refresh statuses cannot
// be retrieved by using this operation. Use of the DescribeTrustedAdvisorCheckRefreshStatuses
// operation for these checks causes an InvalidParameterValue error.
//
// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
// with awserr.Error's Code and Message methods to get detailed information about
// the error.
//
// See the AWS API reference guide for AWS Support's
// API operation DescribeTrustedAdvisorCheckRefreshStatuses for usage and error information.
//
// Returned Error Codes:
// * ErrCodeInternalServerError "InternalServerError"
// An internal server error occurred.
//
// Please also see https://docs.aws.amazon.com/goto/WebAPI/support-2013-04-15/DescribeTrustedAdvisorCheckRefreshStatuses
func (c *Support) DescribeTrustedAdvisorCheckRefreshStatuses(input *DescribeTrustedAdvisorCheckRefreshStatusesInput) (*DescribeTrustedAdvisorCheckRefreshStatusesOutput, error) {
req, out := c.DescribeTrustedAdvisorCheckRefreshStatusesRequest(input)
err := req.Send()
return out, err
}
const opDescribeTrustedAdvisorCheckResult = "DescribeTrustedAdvisorCheckResult"
// DescribeTrustedAdvisorCheckResultRequest generates a "aws/request.Request" representing the
// client's request for the DescribeTrustedAdvisorCheckResult operation. The "output" return
// value can be used to capture response data after the request's "Send" method
// is called.
//
// See DescribeTrustedAdvisorCheckResult for usage and error information.
//
// Creating a request object using this method should be used when you want to inject
// custom logic into the request's lifecycle using a custom handler, or if you want to
// access properties on the request object before or after sending the request. If
// you just want the service response, call the DescribeTrustedAdvisorCheckResult method directly
// instead.
//
// Note: You must call the "Send" method on the returned request object in order
// to execute the request.
//
// // Example sending a request using the DescribeTrustedAdvisorCheckResultRequest method.
// req, resp := client.DescribeTrustedAdvisorCheckResultRequest(params)
//
// err := req.Send()
// if err == nil { // resp is now filled
// fmt.Println(resp)
// }
//
// Please also see https://docs.aws.amazon.com/goto/WebAPI/support-2013-04-15/DescribeTrustedAdvisorCheckResult
func (c *Support) DescribeTrustedAdvisorCheckResultRequest(input *DescribeTrustedAdvisorCheckResultInput) (req *request.Request, output *DescribeTrustedAdvisorCheckResultOutput) {
op := &request.Operation{
Name: opDescribeTrustedAdvisorCheckResult,
HTTPMethod: "POST",
HTTPPath: "/",
}
if input == nil {
input = &DescribeTrustedAdvisorCheckResultInput{}
}
output = &DescribeTrustedAdvisorCheckResultOutput{}
req = c.newRequest(op, input, output)
return
}
// DescribeTrustedAdvisorCheckResult API operation for AWS Support.
//
// Returns the results of the Trusted Advisor check that has the specified check
// ID. Check IDs can be obtained by calling DescribeTrustedAdvisorChecks.
//
// The response contains a TrustedAdvisorCheckResult object, which contains
// these three objects:
//
// * TrustedAdvisorCategorySpecificSummary
//
// * TrustedAdvisorResourceDetail
//
// * TrustedAdvisorResourcesSummary
//
// In addition, the response contains these fields:
//
// * status. The alert status of the check: "ok" (green), "warning" (yellow),
// "error" (red), or "not_available".
//
// * timestamp. The time of the last refresh of the check.
//
// * checkId. The unique identifier for the check.
//
// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
// with awserr.Error's Code and Message methods to get detailed information about
// the error.
//
// See the AWS API reference guide for AWS Support's
// API operation DescribeTrustedAdvisorCheckResult for usage and error information.
//
// Returned Error Codes:
// * ErrCodeInternalServerError "InternalServerError"
// An internal server error occurred.
//
// Please also see https://docs.aws.amazon.com/goto/WebAPI/support-2013-04-15/DescribeTrustedAdvisorCheckResult
func (c *Support) DescribeTrustedAdvisorCheckResult(input *DescribeTrustedAdvisorCheckResultInput) (*DescribeTrustedAdvisorCheckResultOutput, error) {
req, out := c.DescribeTrustedAdvisorCheckResultRequest(input)
err := req.Send()
return out, err
}
const opDescribeTrustedAdvisorCheckSummaries = "DescribeTrustedAdvisorCheckSummaries"
// DescribeTrustedAdvisorCheckSummariesRequest generates a "aws/request.Request" representing the
// client's request for the DescribeTrustedAdvisorCheckSummaries operation. The "output" return
// value can be used to capture response data after the request's "Send" method
// is called.
//
// See DescribeTrustedAdvisorCheckSummaries for usage and error information.
//
// Creating a request object using this method should be used when you want to inject
// custom logic into the request's lifecycle using a custom handler, or if you want to
// access properties on the request object before or after sending the request. If
// you just want the service response, call the DescribeTrustedAdvisorCheckSummaries method directly
// instead.
//
// Note: You must call the "Send" method on the returned request object in order
// to execute the request.
//
// // Example sending a request using the DescribeTrustedAdvisorCheckSummariesRequest method.
// req, resp := client.DescribeTrustedAdvisorCheckSummariesRequest(params)
//
// err := req.Send()
// if err == nil { // resp is now filled
// fmt.Println(resp)
// }
//
// Please also see https://docs.aws.amazon.com/goto/WebAPI/support-2013-04-15/DescribeTrustedAdvisorCheckSummaries
func (c *Support) DescribeTrustedAdvisorCheckSummariesRequest(input *DescribeTrustedAdvisorCheckSummariesInput) (req *request.Request, output *DescribeTrustedAdvisorCheckSummariesOutput) {
op := &request.Operation{
Name: opDescribeTrustedAdvisorCheckSummaries,
HTTPMethod: "POST",
HTTPPath: "/",
}
if input == nil {
input = &DescribeTrustedAdvisorCheckSummariesInput{}
}
output = &DescribeTrustedAdvisorCheckSummariesOutput{}
req = c.newRequest(op, input, output)
return
}
// DescribeTrustedAdvisorCheckSummaries API operation for AWS Support.
//
// Returns the summaries of the results of the Trusted Advisor checks that have
// the specified check IDs. Check IDs can be obtained by calling DescribeTrustedAdvisorChecks.
//
// The response contains an array of TrustedAdvisorCheckSummary objects.
//
// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
// with awserr.Error's Code and Message methods to get detailed information about
// the error.
//
// See the AWS API reference guide for AWS Support's
// API operation DescribeTrustedAdvisorCheckSummaries for usage and error information.
//
// Returned Error Codes:
// * ErrCodeInternalServerError "InternalServerError"
// An internal server error occurred.
//
// Please also see https://docs.aws.amazon.com/goto/WebAPI/support-2013-04-15/DescribeTrustedAdvisorCheckSummaries
func (c *Support) DescribeTrustedAdvisorCheckSummaries(input *DescribeTrustedAdvisorCheckSummariesInput) (*DescribeTrustedAdvisorCheckSummariesOutput, error) {
req, out := c.DescribeTrustedAdvisorCheckSummariesRequest(input)
err := req.Send()
return out, err
}
const opDescribeTrustedAdvisorChecks = "DescribeTrustedAdvisorChecks"
// DescribeTrustedAdvisorChecksRequest generates a "aws/request.Request" representing the
// client's request for the DescribeTrustedAdvisorChecks operation. The "output" return
// value can be used to capture response data after the request's "Send" method
// is called.
//
// See DescribeTrustedAdvisorChecks for usage and error information.
//
// Creating a request object using this method should be used when you want to inject
// custom logic into the request's lifecycle using a custom handler, or if you want to
// access properties on the request object before or after sending the request. If
// you just want the service response, call the DescribeTrustedAdvisorChecks method directly
// instead.
//
// Note: You must call the "Send" method on the returned request object in order
// to execute the request.
//
// // Example sending a request using the DescribeTrustedAdvisorChecksRequest method.
// req, resp := client.DescribeTrustedAdvisorChecksRequest(params)
//
// err := req.Send()
// if err == nil { // resp is now filled
// fmt.Println(resp)
// }
//
// Please also see https://docs.aws.amazon.com/goto/WebAPI/support-2013-04-15/DescribeTrustedAdvisorChecks
func (c *Support) DescribeTrustedAdvisorChecksRequest(input *DescribeTrustedAdvisorChecksInput) (req *request.Request, output *DescribeTrustedAdvisorChecksOutput) {
op := &request.Operation{
Name: opDescribeTrustedAdvisorChecks,
HTTPMethod: "POST",
HTTPPath: "/",
}
if input == nil {
input = &DescribeTrustedAdvisorChecksInput{}
}
output = &DescribeTrustedAdvisorChecksOutput{}
req = c.newRequest(op, input, output)
return
}
// DescribeTrustedAdvisorChecks API operation for AWS Support.
//
// Returns information about all available Trusted Advisor checks, including
// name, ID, category, description, and metadata. You must specify a language
// code; English ("en") and Japanese ("ja") are currently supported. The response
// contains a TrustedAdvisorCheckDescription for each check.
//
// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
// with awserr.Error's Code and Message methods to get detailed information about
// the error.
//
// See the AWS API reference guide for AWS Support's
// API operation DescribeTrustedAdvisorChecks for usage and error information.
//
// Returned Error Codes:
// * ErrCodeInternalServerError "InternalServerError"
// An internal server error occurred.
//
// Please also see https://docs.aws.amazon.com/goto/WebAPI/support-2013-04-15/DescribeTrustedAdvisorChecks
func (c *Support) DescribeTrustedAdvisorChecks(input *DescribeTrustedAdvisorChecksInput) (*DescribeTrustedAdvisorChecksOutput, error) {
req, out := c.DescribeTrustedAdvisorChecksRequest(input)
err := req.Send()
return out, err
}
const opRefreshTrustedAdvisorCheck = "RefreshTrustedAdvisorCheck"
// RefreshTrustedAdvisorCheckRequest generates a "aws/request.Request" representing the
// client's request for the RefreshTrustedAdvisorCheck operation. The "output" return
// value can be used to capture response data after the request's "Send" method
// is called.
//
// See RefreshTrustedAdvisorCheck for usage and error information.
//
// Creating a request object using this method should be used when you want to inject
// custom logic into the request's lifecycle using a custom handler, or if you want to
// access properties on the request object before or after sending the request. If
// you just want the service response, call the RefreshTrustedAdvisorCheck method directly
// instead.
//
// Note: You must call the "Send" method on the returned request object in order
// to execute the request.
//
// // Example sending a request using the RefreshTrustedAdvisorCheckRequest method.
// req, resp := client.RefreshTrustedAdvisorCheckRequest(params)
//
// err := req.Send()
// if err == nil { // resp is now filled
// fmt.Println(resp)
// }
//
// Please also see https://docs.aws.amazon.com/goto/WebAPI/support-2013-04-15/RefreshTrustedAdvisorCheck
func (c *Support) RefreshTrustedAdvisorCheckRequest(input *RefreshTrustedAdvisorCheckInput) (req *request.Request, output *RefreshTrustedAdvisorCheckOutput) {
op := &request.Operation{
Name: opRefreshTrustedAdvisorCheck,
HTTPMethod: "POST",
HTTPPath: "/",
}
if input == nil {
input = &RefreshTrustedAdvisorCheckInput{}
}
output = &RefreshTrustedAdvisorCheckOutput{}
req = c.newRequest(op, input, output)
return
}
// RefreshTrustedAdvisorCheck API operation for AWS Support.
//
// Requests a refresh of the Trusted Advisor check that has the specified check
// ID. Check IDs can be obtained by calling DescribeTrustedAdvisorChecks.
//
// Some checks are refreshed automatically, and they cannot be refreshed by
// using this operation. Use of the RefreshTrustedAdvisorCheck operation for
// these checks causes an InvalidParameterValue error.
//
// The response contains a TrustedAdvisorCheckRefreshStatus object, which contains
// these fields:
//
// * status. The refresh status of the check: "none", "enqueued", "processing",
// "success", or "abandoned".
//
// * millisUntilNextRefreshable. The amount of time, in milliseconds, until
// the check is eligible for refresh.
//
// * checkId. The unique identifier for the check.
//
// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
// with awserr.Error's Code and Message methods to get detailed information about
// the error.
//
// See the AWS API reference guide for AWS Support's
// API operation RefreshTrustedAdvisorCheck for usage and error information.
//
// Returned Error Codes:
// * ErrCodeInternalServerError "InternalServerError"
// An internal server error occurred.
//
// Please also see https://docs.aws.amazon.com/goto/WebAPI/support-2013-04-15/RefreshTrustedAdvisorCheck
func (c *Support) RefreshTrustedAdvisorCheck(input *RefreshTrustedAdvisorCheckInput) (*RefreshTrustedAdvisorCheckOutput, error) {
req, out := c.RefreshTrustedAdvisorCheckRequest(input)
err := req.Send()
return out, err
}
const opResolveCase = "ResolveCase"
// ResolveCaseRequest generates a "aws/request.Request" representing the
// client's request for the ResolveCase operation. The "output" return
// value can be used to capture response data after the request's "Send" method
// is called.
//
// See ResolveCase for usage and error information.
//
// Creating a request object using this method should be used when you want to inject
// custom logic into the request's lifecycle using a custom handler, or if you want to
// access properties on the request object before or after sending the request. If
// you just want the service response, call the ResolveCase method directly
// instead.
//
// Note: You must call the "Send" method on the returned request object in order
// to execute the request.
//
// // Example sending a request using the ResolveCaseRequest method.
// req, resp := client.ResolveCaseRequest(params)
//
// err := req.Send()
// if err == nil { // resp is now filled
// fmt.Println(resp)
// }
//
// Please also see https://docs.aws.amazon.com/goto/WebAPI/support-2013-04-15/ResolveCase
func (c *Support) ResolveCaseRequest(input *ResolveCaseInput) (req *request.Request, output *ResolveCaseOutput) {
op := &request.Operation{
Name: opResolveCase,
HTTPMethod: "POST",
HTTPPath: "/",
}
if input == nil {
input = &ResolveCaseInput{}
}
output = &ResolveCaseOutput{}
req = c.newRequest(op, input, output)
return
}
// ResolveCase API operation for AWS Support.
//
// Takes a caseId and returns the initial state of the case along with the state
// of the case after the call to ResolveCase completed.
//
// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
// with awserr.Error's Code and Message methods to get detailed information about
// the error.
//
// See the AWS API reference guide for AWS Support's
// API operation ResolveCase for usage and error information.
//
// Returned Error Codes:
// * ErrCodeInternalServerError "InternalServerError"
// An internal server error occurred.
//
// * ErrCodeCaseIdNotFound "CaseIdNotFound"
// The requested caseId could not be located.
//
// Please also see https://docs.aws.amazon.com/goto/WebAPI/support-2013-04-15/ResolveCase
func (c *Support) ResolveCase(input *ResolveCaseInput) (*ResolveCaseOutput, error) {
req, out := c.ResolveCaseRequest(input)
err := req.Send()
return out, err
}
// Please also see https://docs.aws.amazon.com/goto/WebAPI/support-2013-04-15/AddAttachmentsToSetRequest
type AddAttachmentsToSetInput struct {
_ struct{} `type:"structure"`
// The ID of the attachment set. If an attachmentSetId is not specified, a new
// attachment set is created, and the ID of the set is returned in the response.
// If an attachmentSetId is specified, the attachments are added to the specified
// set, if it exists.
AttachmentSetId *string `locationName:"attachmentSetId" type:"string"`
// One or more attachments to add to the set. The limit is 3 attachments per
// set, and the size limit is 5 MB per attachment.
//
// Attachments is a required field
Attachments []*Attachment `locationName:"attachments" type:"list" required:"true"`
}
// String returns the string representation
func (s AddAttachmentsToSetInput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s AddAttachmentsToSetInput) GoString() string {
return s.String()
}
// Validate inspects the fields of the type to determine if they are valid.
func (s *AddAttachmentsToSetInput) Validate() error {
invalidParams := request.ErrInvalidParams{Context: "AddAttachmentsToSetInput"}
if s.Attachments == nil {
invalidParams.Add(request.NewErrParamRequired("Attachments"))
}
if invalidParams.Len() > 0 {
return invalidParams
}
return nil
}
// SetAttachmentSetId sets the AttachmentSetId field's value.
func (s *AddAttachmentsToSetInput) SetAttachmentSetId(v string) *AddAttachmentsToSetInput {
s.AttachmentSetId = &v
return s
}
// SetAttachments sets the Attachments field's value.
func (s *AddAttachmentsToSetInput) SetAttachments(v []*Attachment) *AddAttachmentsToSetInput {
s.Attachments = v
return s
}
// The ID and expiry time of the attachment set returned by the AddAttachmentsToSet
// operation.
// Please also see https://docs.aws.amazon.com/goto/WebAPI/support-2013-04-15/AddAttachmentsToSetResponse
type AddAttachmentsToSetOutput struct {
_ struct{} `type:"structure"`
// The ID of the attachment set. If an attachmentSetId was not specified, a
// new attachment set is created, and the ID of the set is returned in the response.
// If an attachmentSetId was specified, the attachments are added to the specified
// set, if it exists.
AttachmentSetId *string `locationName:"attachmentSetId" type:"string"`
// The time and date when the attachment set expires.
ExpiryTime *string `locationName:"expiryTime" type:"string"`
}
// String returns the string representation
func (s AddAttachmentsToSetOutput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s AddAttachmentsToSetOutput) GoString() string {
return s.String()
}
// SetAttachmentSetId sets the AttachmentSetId field's value.
func (s *AddAttachmentsToSetOutput) SetAttachmentSetId(v string) *AddAttachmentsToSetOutput {
s.AttachmentSetId = &v
return s
}
// SetExpiryTime sets the ExpiryTime field's value.
func (s *AddAttachmentsToSetOutput) SetExpiryTime(v string) *AddAttachmentsToSetOutput {
s.ExpiryTime = &v
return s
}
// To be written.
// Please also see https://docs.aws.amazon.com/goto/WebAPI/support-2013-04-15/AddCommunicationToCaseRequest
type AddCommunicationToCaseInput struct {
_ struct{} `type:"structure"`
// The ID of a set of one or more attachments for the communication to add to
// the case. Create the set by calling AddAttachmentsToSet
AttachmentSetId *string `locationName:"attachmentSetId" type:"string"`
// The AWS Support case ID requested or returned in the call. The case ID is
// an alphanumeric string formatted as shown in this example: case-12345678910-2013-c4c1d2bf33c5cf47
CaseId *string `locationName:"caseId" type:"string"`
// The email addresses in the CC line of an email to be added to the support
// case.
CcEmailAddresses []*string `locationName:"ccEmailAddresses" type:"list"`
// The body of an email communication to add to the support case.
//
// CommunicationBody is a required field
CommunicationBody *string `locationName:"communicationBody" min:"1" type:"string" required:"true"`
}
// String returns the string representation
func (s AddCommunicationToCaseInput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s AddCommunicationToCaseInput) GoString() string {
return s.String()
}
// Validate inspects the fields of the type to determine if they are valid.
func (s *AddCommunicationToCaseInput) Validate() error {
invalidParams := request.ErrInvalidParams{Context: "AddCommunicationToCaseInput"}
if s.CommunicationBody == nil {
invalidParams.Add(request.NewErrParamRequired("CommunicationBody"))
}
if s.CommunicationBody != nil && len(*s.CommunicationBody) < 1 {
invalidParams.Add(request.NewErrParamMinLen("CommunicationBody", 1))
}
if invalidParams.Len() > 0 {
return invalidParams
}
return nil
}
// SetAttachmentSetId sets the AttachmentSetId field's value.
func (s *AddCommunicationToCaseInput) SetAttachmentSetId(v string) *AddCommunicationToCaseInput {
s.AttachmentSetId = &v
return s
}
// SetCaseId sets the CaseId field's value.
func (s *AddCommunicationToCaseInput) SetCaseId(v string) *AddCommunicationToCaseInput {
s.CaseId = &v
return s
}
// SetCcEmailAddresses sets the CcEmailAddresses field's value.
func (s *AddCommunicationToCaseInput) SetCcEmailAddresses(v []*string) *AddCommunicationToCaseInput {
s.CcEmailAddresses = v
return s
}
// SetCommunicationBody sets the CommunicationBody field's value.
func (s *AddCommunicationToCaseInput) SetCommunicationBody(v string) *AddCommunicationToCaseInput {
s.CommunicationBody = &v
return s
}
// The result of the AddCommunicationToCase operation.
// Please also see https://docs.aws.amazon.com/goto/WebAPI/support-2013-04-15/AddCommunicationToCaseResponse
type AddCommunicationToCaseOutput struct {
_ struct{} `type:"structure"`
// True if AddCommunicationToCase succeeds. Otherwise, returns an error.
Result *bool `locationName:"result" type:"boolean"`
}
// String returns the string representation
func (s AddCommunicationToCaseOutput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s AddCommunicationToCaseOutput) GoString() string {
return s.String()
}
// SetResult sets the Result field's value.
func (s *AddCommunicationToCaseOutput) SetResult(v bool) *AddCommunicationToCaseOutput {
s.Result = &v
return s
}
// An attachment to a case communication. The attachment consists of the file
// name and the content of the file.
// Please also see https://docs.aws.amazon.com/goto/WebAPI/support-2013-04-15/Attachment
type Attachment struct {
_ struct{} `type:"structure"`
// The content of the attachment file.
//
// Data is automatically base64 encoded/decoded by the SDK.
Data []byte `locationName:"data" type:"blob"`
// The name of the attachment file.
FileName *string `locationName:"fileName" type:"string"`
}
// String returns the string representation
func (s Attachment) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s Attachment) GoString() string {
return s.String()
}
// SetData sets the Data field's value.
func (s *Attachment) SetData(v []byte) *Attachment {
s.Data = v
return s
}
// SetFileName sets the FileName field's value.
func (s *Attachment) SetFileName(v string) *Attachment {
s.FileName = &v
return s
}
// The file name and ID of an attachment to a case communication. You can use
// the ID to retrieve the attachment with the DescribeAttachment operation.
// Please also see https://docs.aws.amazon.com/goto/WebAPI/support-2013-04-15/AttachmentDetails
type AttachmentDetails struct {
_ struct{} `type:"structure"`
// The ID of the attachment.
AttachmentId *string `locationName:"attachmentId" type:"string"`
// The file name of the attachment.
FileName *string `locationName:"fileName" type:"string"`
}
// String returns the string representation
func (s AttachmentDetails) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s AttachmentDetails) GoString() string {
return s.String()
}
// SetAttachmentId sets the AttachmentId field's value.
func (s *AttachmentDetails) SetAttachmentId(v string) *AttachmentDetails {
s.AttachmentId = &v
return s
}
// SetFileName sets the FileName field's value.
func (s *AttachmentDetails) SetFileName(v string) *AttachmentDetails {
s.FileName = &v
return s
}
// A JSON-formatted object that contains the metadata for a support case. It
// is contained the response from a DescribeCases request. CaseDetails contains
// the following fields:
//
// * caseId. The AWS Support case ID requested or returned in the call. The
// case ID is an alphanumeric string formatted as shown in this example:
// case-12345678910-2013-c4c1d2bf33c5cf47.
//
// * categoryCode. The category of problem for the AWS Support case. Corresponds
// to the CategoryCode values returned by a call to DescribeServices.
//
// * displayId. The identifier for the case on pages in the AWS Support Center.
//
// * language. The ISO 639-1 code for the language in which AWS provides
// support. AWS Support currently supports English ("en") and Japanese ("ja").
// Language parameters must be passed explicitly for operations that take
// them.
//
// * recentCommunications. One or more Communication objects. Fields of these
// objects are attachments, body, caseId, submittedBy, and timeCreated.
//
// * nextToken. A resumption point for pagination.
//
// * serviceCode. The identifier for the AWS service that corresponds to
// the service code defined in the call to DescribeServices.
//
// * severityCode. The severity code assigned to the case. Contains one of
// the values returned by the call to DescribeSeverityLevels.
//
// * status. The status of the case in the AWS Support Center.
//
// * subject. The subject line of the case.
//
// * submittedBy. The email address of the account that submitted the case.
//
// * timeCreated. The time the case was created, in ISO-8601 format.
// Please also see https://docs.aws.amazon.com/goto/WebAPI/support-2013-04-15/CaseDetails
type CaseDetails struct {
_ struct{} `type:"structure"`
// The AWS Support case ID requested or returned in the call. The case ID is
// an alphanumeric string formatted as shown in this example: case-12345678910-2013-c4c1d2bf33c5cf47
CaseId *string `locationName:"caseId" type:"string"`
// The category of problem for the AWS Support case.
CategoryCode *string `locationName:"categoryCode" type:"string"`
// The email addresses that receive copies of communication about the case.
CcEmailAddresses []*string `locationName:"ccEmailAddresses" type:"list"`
// The ID displayed for the case in the AWS Support Center. This is a numeric
// string.
DisplayId *string `locationName:"displayId" type:"string"`
// The ISO 639-1 code for the language in which AWS provides support. AWS Support
// currently supports English ("en") and Japanese ("ja"). Language parameters
// must be passed explicitly for operations that take them.
Language *string `locationName:"language" type:"string"`
// The five most recent communications between you and AWS Support Center, including
// the IDs of any attachments to the communications. Also includes a nextToken
// that you can use to retrieve earlier communications.
RecentCommunications *RecentCaseCommunications `locationName:"recentCommunications" type:"structure"`
// The code for the AWS service returned by the call to DescribeServices.
ServiceCode *string `locationName:"serviceCode" type:"string"`
// The code for the severity level returned by the call to DescribeSeverityLevels.
SeverityCode *string `locationName:"severityCode" type:"string"`
// The status of the case.
Status *string `locationName:"status" type:"string"`
// The subject line for the case in the AWS Support Center.
Subject *string `locationName:"subject" type:"string"`
// The email address of the account that submitted the case.
SubmittedBy *string `locationName:"submittedBy" type:"string"`
// The time that the case was case created in the AWS Support Center.
TimeCreated *string `locationName:"timeCreated" type:"string"`
}
// String returns the string representation
func (s CaseDetails) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s CaseDetails) GoString() string {
return s.String()
}
// SetCaseId sets the CaseId field's value.
func (s *CaseDetails) SetCaseId(v string) *CaseDetails {
s.CaseId = &v
return s
}
// SetCategoryCode sets the CategoryCode field's value.
func (s *CaseDetails) SetCategoryCode(v string) *CaseDetails {
s.CategoryCode = &v
return s
}
// SetCcEmailAddresses sets the CcEmailAddresses field's value.
func (s *CaseDetails) SetCcEmailAddresses(v []*string) *CaseDetails {
s.CcEmailAddresses = v
return s
}
// SetDisplayId sets the DisplayId field's value.
func (s *CaseDetails) SetDisplayId(v string) *CaseDetails {
s.DisplayId = &v
return s
}
// SetLanguage sets the Language field's value.
func (s *CaseDetails) SetLanguage(v string) *CaseDetails {
s.Language = &v
return s
}
// SetRecentCommunications sets the RecentCommunications field's value.
func (s *CaseDetails) SetRecentCommunications(v *RecentCaseCommunications) *CaseDetails {
s.RecentCommunications = v
return s
}
// SetServiceCode sets the ServiceCode field's value.
func (s *CaseDetails) SetServiceCode(v string) *CaseDetails {
s.ServiceCode = &v
return s
}
// SetSeverityCode sets the SeverityCode field's value.
func (s *CaseDetails) SetSeverityCode(v string) *CaseDetails {
s.SeverityCode = &v
return s
}
// SetStatus sets the Status field's value.
func (s *CaseDetails) SetStatus(v string) *CaseDetails {
s.Status = &v
return s
}
// SetSubject sets the Subject field's value.
func (s *CaseDetails) SetSubject(v string) *CaseDetails {
s.Subject = &v
return s
}
// SetSubmittedBy sets the SubmittedBy field's value.
func (s *CaseDetails) SetSubmittedBy(v string) *CaseDetails {
s.SubmittedBy = &v
return s
}
// SetTimeCreated sets the TimeCreated field's value.
func (s *CaseDetails) SetTimeCreated(v string) *CaseDetails {
s.TimeCreated = &v
return s
}
// A JSON-formatted name/value pair that represents the category name and category
// code of the problem, selected from the DescribeServices response for each
// AWS service.
// Please also see https://docs.aws.amazon.com/goto/WebAPI/support-2013-04-15/Category
type Category struct {
_ struct{} `type:"structure"`
// The category code for the support case.
Code *string `locationName:"code" type:"string"`
// The category name for the support case.
Name *string `locationName:"name" type:"string"`
}
// String returns the string representation
func (s Category) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s Category) GoString() string {
return s.String()
}
// SetCode sets the Code field's value.
func (s *Category) SetCode(v string) *Category {
s.Code = &v
return s
}
// SetName sets the Name field's value.
func (s *Category) SetName(v string) *Category {
s.Name = &v
return s
}
// A communication associated with an AWS Support case. The communication consists
// of the case ID, the message body, attachment information, the account email
// address, and the date and time of the communication.
// Please also see https://docs.aws.amazon.com/goto/WebAPI/support-2013-04-15/Communication
type Communication struct {
_ struct{} `type:"structure"`
// Information about the attachments to the case communication.
AttachmentSet []*AttachmentDetails `locationName:"attachmentSet" type:"list"`
// The text of the communication between the customer and AWS Support.
Body *string `locationName:"body" min:"1" type:"string"`
// The AWS Support case ID requested or returned in the call. The case ID is
// an alphanumeric string formatted as shown in this example: case-12345678910-2013-c4c1d2bf33c5cf47
CaseId *string `locationName:"caseId" type:"string"`
// The email address of the account that submitted the AWS Support case.
SubmittedBy *string `locationName:"submittedBy" type:"string"`
// The time the communication was created.
TimeCreated *string `locationName:"timeCreated" type:"string"`
}
// String returns the string representation
func (s Communication) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s Communication) GoString() string {
return s.String()
}
// SetAttachmentSet sets the AttachmentSet field's value.
func (s *Communication) SetAttachmentSet(v []*AttachmentDetails) *Communication {
s.AttachmentSet = v
return s
}
// SetBody sets the Body field's value.
func (s *Communication) SetBody(v string) *Communication {
s.Body = &v
return s
}
// SetCaseId sets the CaseId field's value.
func (s *Communication) SetCaseId(v string) *Communication {
s.CaseId = &v
return s
}
// SetSubmittedBy sets the SubmittedBy field's value.
func (s *Communication) SetSubmittedBy(v string) *Communication {
s.SubmittedBy = &v
return s
}
// SetTimeCreated sets the TimeCreated field's value.
func (s *Communication) SetTimeCreated(v string) *Communication {
s.TimeCreated = &v
return s
}
// Please also see https://docs.aws.amazon.com/goto/WebAPI/support-2013-04-15/CreateCaseRequest
type CreateCaseInput struct {
_ struct{} `type:"structure"`
// The ID of a set of one or more attachments for the case. Create the set by
// using AddAttachmentsToSet.
AttachmentSetId *string `locationName:"attachmentSetId" type:"string"`
// The category of problem for the AWS Support case.
CategoryCode *string `locationName:"categoryCode" type:"string"`
// A list of email addresses that AWS Support copies on case correspondence.
CcEmailAddresses []*string `locationName:"ccEmailAddresses" type:"list"`
// The communication body text when you create an AWS Support case by calling
// CreateCase.
//
// CommunicationBody is a required field
CommunicationBody *string `locationName:"communicationBody" min:"1" type:"string" required:"true"`
// The type of issue for the case. You can specify either "customer-service"
// or "technical." If you do not indicate a value, the default is "technical."
IssueType *string `locationName:"issueType" type:"string"`
// The ISO 639-1 code for the language in which AWS provides support. AWS Support
// currently supports English ("en") and Japanese ("ja"). Language parameters
// must be passed explicitly for operations that take them.
Language *string `locationName:"language" type:"string"`
// The code for the AWS service returned by the call to DescribeServices.
ServiceCode *string `locationName:"serviceCode" type:"string"`
// The code for the severity level returned by the call to DescribeSeverityLevels.
//
// The availability of severity levels depends on each customer's support subscription.
// In other words, your subscription may not necessarily require the urgent
// level of response time.
SeverityCode *string `locationName:"severityCode" type:"string"`
// The title of the AWS Support case.
//
// Subject is a required field
Subject *string `locationName:"subject" type:"string" required:"true"`
}
// String returns the string representation
func (s CreateCaseInput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s CreateCaseInput) GoString() string {
return s.String()
}
// Validate inspects the fields of the type to determine if they are valid.
func (s *CreateCaseInput) Validate() error {
invalidParams := request.ErrInvalidParams{Context: "CreateCaseInput"}
if s.CommunicationBody == nil {
invalidParams.Add(request.NewErrParamRequired("CommunicationBody"))
}
if s.CommunicationBody != nil && len(*s.CommunicationBody) < 1 {
invalidParams.Add(request.NewErrParamMinLen("CommunicationBody", 1))
}
if s.Subject == nil {
invalidParams.Add(request.NewErrParamRequired("Subject"))
}
if invalidParams.Len() > 0 {
return invalidParams
}
return nil
}
// SetAttachmentSetId sets the AttachmentSetId field's value.
func (s *CreateCaseInput) SetAttachmentSetId(v string) *CreateCaseInput {
s.AttachmentSetId = &v
return s
}
// SetCategoryCode sets the CategoryCode field's value.
func (s *CreateCaseInput) SetCategoryCode(v string) *CreateCaseInput {
s.CategoryCode = &v
return s
}
// SetCcEmailAddresses sets the CcEmailAddresses field's value.
func (s *CreateCaseInput) SetCcEmailAddresses(v []*string) *CreateCaseInput {
s.CcEmailAddresses = v
return s
}
// SetCommunicationBody sets the CommunicationBody field's value.
func (s *CreateCaseInput) SetCommunicationBody(v string) *CreateCaseInput {
s.CommunicationBody = &v
return s
}
// SetIssueType sets the IssueType field's value.
func (s *CreateCaseInput) SetIssueType(v string) *CreateCaseInput {
s.IssueType = &v
return s
}
// SetLanguage sets the Language field's value.
func (s *CreateCaseInput) SetLanguage(v string) *CreateCaseInput {
s.Language = &v
return s
}
// SetServiceCode sets the ServiceCode field's value.
func (s *CreateCaseInput) SetServiceCode(v string) *CreateCaseInput {
s.ServiceCode = &v
return s
}
// SetSeverityCode sets the SeverityCode field's value.
func (s *CreateCaseInput) SetSeverityCode(v string) *CreateCaseInput {
s.SeverityCode = &v
return s
}
// SetSubject sets the Subject field's value.
func (s *CreateCaseInput) SetSubject(v string) *CreateCaseInput {
s.Subject = &v
return s
}
// The AWS Support case ID returned by a successful completion of the CreateCase
// operation.
// Please also see https://docs.aws.amazon.com/goto/WebAPI/support-2013-04-15/CreateCaseResponse
type CreateCaseOutput struct {
_ struct{} `type:"structure"`
// The AWS Support case ID requested or returned in the call. The case ID is
// an alphanumeric string formatted as shown in this example: case-12345678910-2013-c4c1d2bf33c5cf47
CaseId *string `locationName:"caseId" type:"string"`
}
// String returns the string representation
func (s CreateCaseOutput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s CreateCaseOutput) GoString() string {
return s.String()
}
// SetCaseId sets the CaseId field's value.
func (s *CreateCaseOutput) SetCaseId(v string) *CreateCaseOutput {
s.CaseId = &v
return s
}
// Please also see https://docs.aws.amazon.com/goto/WebAPI/support-2013-04-15/DescribeAttachmentRequest
type DescribeAttachmentInput struct {
_ struct{} `type:"structure"`
// The ID of the attachment to return. Attachment IDs are returned by the DescribeCommunications
// operation.
//
// AttachmentId is a required field
AttachmentId *string `locationName:"attachmentId" type:"string" required:"true"`
}
// String returns the string representation
func (s DescribeAttachmentInput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s DescribeAttachmentInput) GoString() string {
return s.String()
}
// Validate inspects the fields of the type to determine if they are valid.
func (s *DescribeAttachmentInput) Validate() error {
invalidParams := request.ErrInvalidParams{Context: "DescribeAttachmentInput"}
if s.AttachmentId == nil {
invalidParams.Add(request.NewErrParamRequired("AttachmentId"))
}
if invalidParams.Len() > 0 {
return invalidParams
}
return nil
}
// SetAttachmentId sets the AttachmentId field's value.
func (s *DescribeAttachmentInput) SetAttachmentId(v string) *DescribeAttachmentInput {
s.AttachmentId = &v
return s
}
// The content and file name of the attachment returned by the DescribeAttachment
// operation.
// Please also see https://docs.aws.amazon.com/goto/WebAPI/support-2013-04-15/DescribeAttachmentResponse
type DescribeAttachmentOutput struct {
_ struct{} `type:"structure"`
// The attachment content and file name.
Attachment *Attachment `locationName:"attachment" type:"structure"`
}
// String returns the string representation
func (s DescribeAttachmentOutput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s DescribeAttachmentOutput) GoString() string {
return s.String()
}
// SetAttachment sets the Attachment field's value.
func (s *DescribeAttachmentOutput) SetAttachment(v *Attachment) *DescribeAttachmentOutput {
s.Attachment = v
return s
}
// Please also see https://docs.aws.amazon.com/goto/WebAPI/support-2013-04-15/DescribeCasesRequest
type DescribeCasesInput struct {
_ struct{} `type:"structure"`
// The start date for a filtered date search on support case communications.
// Case communications are available for 12 months after creation.
AfterTime *string `locationName:"afterTime" type:"string"`
// The end date for a filtered date search on support case communications. Case
// communications are available for 12 months after creation.
BeforeTime *string `locationName:"beforeTime" type:"string"`
// A list of ID numbers of the support cases you want returned. The maximum
// number of cases is 100.
CaseIdList []*string `locationName:"caseIdList" type:"list"`
// The ID displayed for a case in the AWS Support Center user interface.
DisplayId *string `locationName:"displayId" type:"string"`
// Specifies whether communications should be included in the DescribeCases
// results. The default is true.
IncludeCommunications *bool `locationName:"includeCommunications" type:"boolean"`
// Specifies whether resolved support cases should be included in the DescribeCases
// results. The default is false.
IncludeResolvedCases *bool `locationName:"includeResolvedCases" type:"boolean"`
// The ISO 639-1 code for the language in which AWS provides support. AWS Support
// currently supports English ("en") and Japanese ("ja"). Language parameters
// must be passed explicitly for operations that take them.
Language *string `locationName:"language" type:"string"`
// The maximum number of results to return before paginating.
MaxResults *int64 `locationName:"maxResults" min:"10" type:"integer"`
// A resumption point for pagination.
NextToken *string `locationName:"nextToken" type:"string"`
}
// String returns the string representation
func (s DescribeCasesInput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s DescribeCasesInput) GoString() string {
return s.String()
}
// Validate inspects the fields of the type to determine if they are valid.
func (s *DescribeCasesInput) Validate() error {
invalidParams := request.ErrInvalidParams{Context: "DescribeCasesInput"}
if s.MaxResults != nil && *s.MaxResults < 10 {
invalidParams.Add(request.NewErrParamMinValue("MaxResults", 10))
}
if invalidParams.Len() > 0 {
return invalidParams
}
return nil
}
// SetAfterTime sets the AfterTime field's value.
func (s *DescribeCasesInput) SetAfterTime(v string) *DescribeCasesInput {
s.AfterTime = &v
return s
}
// SetBeforeTime sets the BeforeTime field's value.
func (s *DescribeCasesInput) SetBeforeTime(v string) *DescribeCasesInput {
s.BeforeTime = &v
return s
}
// SetCaseIdList sets the CaseIdList field's value.
func (s *DescribeCasesInput) SetCaseIdList(v []*string) *DescribeCasesInput {
s.CaseIdList = v
return s
}
// SetDisplayId sets the DisplayId field's value.
func (s *DescribeCasesInput) SetDisplayId(v string) *DescribeCasesInput {
s.DisplayId = &v
return s
}
// SetIncludeCommunications sets the IncludeCommunications field's value.
func (s *DescribeCasesInput) SetIncludeCommunications(v bool) *DescribeCasesInput {
s.IncludeCommunications = &v
return s
}
// SetIncludeResolvedCases sets the IncludeResolvedCases field's value.
func (s *DescribeCasesInput) SetIncludeResolvedCases(v bool) *DescribeCasesInput {
s.IncludeResolvedCases = &v
return s
}
// SetLanguage sets the Language field's value.
func (s *DescribeCasesInput) SetLanguage(v string) *DescribeCasesInput {
s.Language = &v
return s
}
// SetMaxResults sets the MaxResults field's value.
func (s *DescribeCasesInput) SetMaxResults(v int64) *DescribeCasesInput {
s.MaxResults = &v
return s
}
// SetNextToken sets the NextToken field's value.
func (s *DescribeCasesInput) SetNextToken(v string) *DescribeCasesInput {
s.NextToken = &v
return s
}
// Returns an array of CaseDetails objects and a nextToken that defines a point
// for pagination in the result set.
// Please also see https://docs.aws.amazon.com/goto/WebAPI/support-2013-04-15/DescribeCasesResponse
type DescribeCasesOutput struct {
_ struct{} `type:"structure"`
// The details for the cases that match the request.
Cases []*CaseDetails `locationName:"cases" type:"list"`
// A resumption point for pagination.
NextToken *string `locationName:"nextToken" type:"string"`
}
// String returns the string representation
func (s DescribeCasesOutput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s DescribeCasesOutput) GoString() string {
return s.String()
}
// SetCases sets the Cases field's value.
func (s *DescribeCasesOutput) SetCases(v []*CaseDetails) *DescribeCasesOutput {
s.Cases = v
return s
}
// SetNextToken sets the NextToken field's value.
func (s *DescribeCasesOutput) SetNextToken(v string) *DescribeCasesOutput {
s.NextToken = &v
return s
}
// Please also see https://docs.aws.amazon.com/goto/WebAPI/support-2013-04-15/DescribeCommunicationsRequest
type DescribeCommunicationsInput struct {
_ struct{} `type:"structure"`
// The start date for a filtered date search on support case communications.
// Case communications are available for 12 months after creation.
AfterTime *string `locationName:"afterTime" type:"string"`
// The end date for a filtered date search on support case communications. Case
// communications are available for 12 months after creation.
BeforeTime *string `locationName:"beforeTime" type:"string"`
// The AWS Support case ID requested or returned in the call. The case ID is
// an alphanumeric string formatted as shown in this example: case-12345678910-2013-c4c1d2bf33c5cf47
//
// CaseId is a required field
CaseId *string `locationName:"caseId" type:"string" required:"true"`
// The maximum number of results to return before paginating.
MaxResults *int64 `locationName:"maxResults" min:"10" type:"integer"`
// A resumption point for pagination.
NextToken *string `locationName:"nextToken" type:"string"`
}
// String returns the string representation
func (s DescribeCommunicationsInput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s DescribeCommunicationsInput) GoString() string {
return s.String()
}
// Validate inspects the fields of the type to determine if they are valid.
func (s *DescribeCommunicationsInput) Validate() error {
invalidParams := request.ErrInvalidParams{Context: "DescribeCommunicationsInput"}
if s.CaseId == nil {
invalidParams.Add(request.NewErrParamRequired("CaseId"))
}
if s.MaxResults != nil && *s.MaxResults < 10 {
invalidParams.Add(request.NewErrParamMinValue("MaxResults", 10))
}
if invalidParams.Len() > 0 {
return invalidParams
}
return nil
}
// SetAfterTime sets the AfterTime field's value.
func (s *DescribeCommunicationsInput) SetAfterTime(v string) *DescribeCommunicationsInput {
s.AfterTime = &v
return s
}
// SetBeforeTime sets the BeforeTime field's value.
func (s *DescribeCommunicationsInput) SetBeforeTime(v string) *DescribeCommunicationsInput {
s.BeforeTime = &v
return s
}
// SetCaseId sets the CaseId field's value.
func (s *DescribeCommunicationsInput) SetCaseId(v string) *DescribeCommunicationsInput {
s.CaseId = &v
return s
}
// SetMaxResults sets the MaxResults field's value.
func (s *DescribeCommunicationsInput) SetMaxResults(v int64) *DescribeCommunicationsInput {
s.MaxResults = &v
return s
}
// SetNextToken sets the NextToken field's value.
func (s *DescribeCommunicationsInput) SetNextToken(v string) *DescribeCommunicationsInput {
s.NextToken = &v
return s
}
// The communications returned by the DescribeCommunications operation.
// Please also see https://docs.aws.amazon.com/goto/WebAPI/support-2013-04-15/DescribeCommunicationsResponse
type DescribeCommunicationsOutput struct {
_ struct{} `type:"structure"`
// The communications for the case.
Communications []*Communication `locationName:"communications" type:"list"`
// A resumption point for pagination.
NextToken *string `locationName:"nextToken" type:"string"`
}
// String returns the string representation
func (s DescribeCommunicationsOutput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s DescribeCommunicationsOutput) GoString() string {
return s.String()
}
// SetCommunications sets the Communications field's value.
func (s *DescribeCommunicationsOutput) SetCommunications(v []*Communication) *DescribeCommunicationsOutput {
s.Communications = v
return s
}
// SetNextToken sets the NextToken field's value.
func (s *DescribeCommunicationsOutput) SetNextToken(v string) *DescribeCommunicationsOutput {
s.NextToken = &v
return s
}
// Please also see https://docs.aws.amazon.com/goto/WebAPI/support-2013-04-15/DescribeServicesRequest
type DescribeServicesInput struct {
_ struct{} `type:"structure"`
// The ISO 639-1 code for the language in which AWS provides support. AWS Support
// currently supports English ("en") and Japanese ("ja"). Language parameters
// must be passed explicitly for operations that take them.
Language *string `locationName:"language" type:"string"`
// A JSON-formatted list of service codes available for AWS services.
ServiceCodeList []*string `locationName:"serviceCodeList" type:"list"`
}
// String returns the string representation
func (s DescribeServicesInput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s DescribeServicesInput) GoString() string {
return s.String()
}
// SetLanguage sets the Language field's value.
func (s *DescribeServicesInput) SetLanguage(v string) *DescribeServicesInput {
s.Language = &v
return s
}
// SetServiceCodeList sets the ServiceCodeList field's value.
func (s *DescribeServicesInput) SetServiceCodeList(v []*string) *DescribeServicesInput {
s.ServiceCodeList = v
return s
}
// The list of AWS services returned by the DescribeServices operation.
// Please also see https://docs.aws.amazon.com/goto/WebAPI/support-2013-04-15/DescribeServicesResponse
type DescribeServicesOutput struct {
_ struct{} `type:"structure"`
// A JSON-formatted list of AWS services.
Services []*Service `locationName:"services" type:"list"`
}
// String returns the string representation
func (s DescribeServicesOutput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s DescribeServicesOutput) GoString() string {
return s.String()
}
// SetServices sets the Services field's value.
func (s *DescribeServicesOutput) SetServices(v []*Service) *DescribeServicesOutput {
s.Services = v
return s
}
// Please also see https://docs.aws.amazon.com/goto/WebAPI/support-2013-04-15/DescribeSeverityLevelsRequest
type DescribeSeverityLevelsInput struct {
_ struct{} `type:"structure"`
// The ISO 639-1 code for the language in which AWS provides support. AWS Support
// currently supports English ("en") and Japanese ("ja"). Language parameters
// must be passed explicitly for operations that take them.
Language *string `locationName:"language" type:"string"`
}
// String returns the string representation
func (s DescribeSeverityLevelsInput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s DescribeSeverityLevelsInput) GoString() string {
return s.String()
}
// SetLanguage sets the Language field's value.
func (s *DescribeSeverityLevelsInput) SetLanguage(v string) *DescribeSeverityLevelsInput {
s.Language = &v
return s
}
// The list of severity levels returned by the DescribeSeverityLevels operation.
// Please also see https://docs.aws.amazon.com/goto/WebAPI/support-2013-04-15/DescribeSeverityLevelsResponse
type DescribeSeverityLevelsOutput struct {
_ struct{} `type:"structure"`
// The available severity levels for the support case. Available severity levels
// are defined by your service level agreement with AWS.
SeverityLevels []*SeverityLevel `locationName:"severityLevels" type:"list"`
}
// String returns the string representation
func (s DescribeSeverityLevelsOutput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s DescribeSeverityLevelsOutput) GoString() string {
return s.String()
}
// SetSeverityLevels sets the SeverityLevels field's value.
func (s *DescribeSeverityLevelsOutput) SetSeverityLevels(v []*SeverityLevel) *DescribeSeverityLevelsOutput {
s.SeverityLevels = v
return s
}
// Please also see https://docs.aws.amazon.com/goto/WebAPI/support-2013-04-15/DescribeTrustedAdvisorCheckRefreshStatusesRequest
type DescribeTrustedAdvisorCheckRefreshStatusesInput struct {
_ struct{} `type:"structure"`
// The IDs of the Trusted Advisor checks to get the status of. Note: Specifying
// the check ID of a check that is automatically refreshed causes an InvalidParameterValue
// error.
//
// CheckIds is a required field
CheckIds []*string `locationName:"checkIds" type:"list" required:"true"`
}
// String returns the string representation
func (s DescribeTrustedAdvisorCheckRefreshStatusesInput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s DescribeTrustedAdvisorCheckRefreshStatusesInput) GoString() string {
return s.String()
}
// Validate inspects the fields of the type to determine if they are valid.
func (s *DescribeTrustedAdvisorCheckRefreshStatusesInput) Validate() error {
invalidParams := request.ErrInvalidParams{Context: "DescribeTrustedAdvisorCheckRefreshStatusesInput"}
if s.CheckIds == nil {
invalidParams.Add(request.NewErrParamRequired("CheckIds"))
}
if invalidParams.Len() > 0 {
return invalidParams
}
return nil
}
// SetCheckIds sets the CheckIds field's value.
func (s *DescribeTrustedAdvisorCheckRefreshStatusesInput) SetCheckIds(v []*string) *DescribeTrustedAdvisorCheckRefreshStatusesInput {
s.CheckIds = v
return s
}
// The statuses of the Trusted Advisor checks returned by the DescribeTrustedAdvisorCheckRefreshStatuses
// operation.
// Please also see https://docs.aws.amazon.com/goto/WebAPI/support-2013-04-15/DescribeTrustedAdvisorCheckRefreshStatusesResponse
type DescribeTrustedAdvisorCheckRefreshStatusesOutput struct {
_ struct{} `type:"structure"`
// The refresh status of the specified Trusted Advisor checks.
//
// Statuses is a required field
Statuses []*TrustedAdvisorCheckRefreshStatus `locationName:"statuses" type:"list" required:"true"`
}
// String returns the string representation
func (s DescribeTrustedAdvisorCheckRefreshStatusesOutput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s DescribeTrustedAdvisorCheckRefreshStatusesOutput) GoString() string {
return s.String()
}
// SetStatuses sets the Statuses field's value.
func (s *DescribeTrustedAdvisorCheckRefreshStatusesOutput) SetStatuses(v []*TrustedAdvisorCheckRefreshStatus) *DescribeTrustedAdvisorCheckRefreshStatusesOutput {
s.Statuses = v
return s
}
// Please also see https://docs.aws.amazon.com/goto/WebAPI/support-2013-04-15/DescribeTrustedAdvisorCheckResultRequest
type DescribeTrustedAdvisorCheckResultInput struct {
_ struct{} `type:"structure"`
// The unique identifier for the Trusted Advisor check.
//
// CheckId is a required field
CheckId *string `locationName:"checkId" type:"string" required:"true"`
// The ISO 639-1 code for the language in which AWS provides support. AWS Support
// currently supports English ("en") and Japanese ("ja"). Language parameters
// must be passed explicitly for operations that take them.
Language *string `locationName:"language" type:"string"`
}
// String returns the string representation
func (s DescribeTrustedAdvisorCheckResultInput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s DescribeTrustedAdvisorCheckResultInput) GoString() string {
return s.String()
}
// Validate inspects the fields of the type to determine if they are valid.
func (s *DescribeTrustedAdvisorCheckResultInput) Validate() error {
invalidParams := request.ErrInvalidParams{Context: "DescribeTrustedAdvisorCheckResultInput"}
if s.CheckId == nil {
invalidParams.Add(request.NewErrParamRequired("CheckId"))
}
if invalidParams.Len() > 0 {
return invalidParams
}
return nil
}
// SetCheckId sets the CheckId field's value.
func (s *DescribeTrustedAdvisorCheckResultInput) SetCheckId(v string) *DescribeTrustedAdvisorCheckResultInput {
s.CheckId = &v
return s
}
// SetLanguage sets the Language field's value.
func (s *DescribeTrustedAdvisorCheckResultInput) SetLanguage(v string) *DescribeTrustedAdvisorCheckResultInput {
s.Language = &v
return s
}
// The result of the Trusted Advisor check returned by the DescribeTrustedAdvisorCheckResult
// operation.
// Please also see https://docs.aws.amazon.com/goto/WebAPI/support-2013-04-15/DescribeTrustedAdvisorCheckResultResponse
type DescribeTrustedAdvisorCheckResultOutput struct {
_ struct{} `type:"structure"`
// The detailed results of the Trusted Advisor check.
Result *TrustedAdvisorCheckResult `locationName:"result" type:"structure"`
}
// String returns the string representation
func (s DescribeTrustedAdvisorCheckResultOutput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s DescribeTrustedAdvisorCheckResultOutput) GoString() string {
return s.String()
}
// SetResult sets the Result field's value.
func (s *DescribeTrustedAdvisorCheckResultOutput) SetResult(v *TrustedAdvisorCheckResult) *DescribeTrustedAdvisorCheckResultOutput {
s.Result = v
return s
}
// Please also see https://docs.aws.amazon.com/goto/WebAPI/support-2013-04-15/DescribeTrustedAdvisorCheckSummariesRequest
type DescribeTrustedAdvisorCheckSummariesInput struct {
_ struct{} `type:"structure"`
// The IDs of the Trusted Advisor checks.
//
// CheckIds is a required field
CheckIds []*string `locationName:"checkIds" type:"list" required:"true"`
}
// String returns the string representation
func (s DescribeTrustedAdvisorCheckSummariesInput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s DescribeTrustedAdvisorCheckSummariesInput) GoString() string {
return s.String()
}
// Validate inspects the fields of the type to determine if they are valid.
func (s *DescribeTrustedAdvisorCheckSummariesInput) Validate() error {
invalidParams := request.ErrInvalidParams{Context: "DescribeTrustedAdvisorCheckSummariesInput"}
if s.CheckIds == nil {
invalidParams.Add(request.NewErrParamRequired("CheckIds"))
}
if invalidParams.Len() > 0 {
return invalidParams
}
return nil
}
// SetCheckIds sets the CheckIds field's value.
func (s *DescribeTrustedAdvisorCheckSummariesInput) SetCheckIds(v []*string) *DescribeTrustedAdvisorCheckSummariesInput {
s.CheckIds = v
return s
}
// The summaries of the Trusted Advisor checks returned by the DescribeTrustedAdvisorCheckSummaries
// operation.
// Please also see https://docs.aws.amazon.com/goto/WebAPI/support-2013-04-15/DescribeTrustedAdvisorCheckSummariesResponse
type DescribeTrustedAdvisorCheckSummariesOutput struct {
_ struct{} `type:"structure"`
// The summary information for the requested Trusted Advisor checks.
//
// Summaries is a required field
Summaries []*TrustedAdvisorCheckSummary `locationName:"summaries" type:"list" required:"true"`
}
// String returns the string representation
func (s DescribeTrustedAdvisorCheckSummariesOutput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s DescribeTrustedAdvisorCheckSummariesOutput) GoString() string {
return s.String()
}
// SetSummaries sets the Summaries field's value.
func (s *DescribeTrustedAdvisorCheckSummariesOutput) SetSummaries(v []*TrustedAdvisorCheckSummary) *DescribeTrustedAdvisorCheckSummariesOutput {
s.Summaries = v
return s
}
// Please also see https://docs.aws.amazon.com/goto/WebAPI/support-2013-04-15/DescribeTrustedAdvisorChecksRequest
type DescribeTrustedAdvisorChecksInput struct {
_ struct{} `type:"structure"`
// The ISO 639-1 code for the language in which AWS provides support. AWS Support
// currently supports English ("en") and Japanese ("ja"). Language parameters
// must be passed explicitly for operations that take them.
//
// Language is a required field
Language *string `locationName:"language" type:"string" required:"true"`
}
// String returns the string representation
func (s DescribeTrustedAdvisorChecksInput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s DescribeTrustedAdvisorChecksInput) GoString() string {
return s.String()
}
// Validate inspects the fields of the type to determine if they are valid.
func (s *DescribeTrustedAdvisorChecksInput) Validate() error {
invalidParams := request.ErrInvalidParams{Context: "DescribeTrustedAdvisorChecksInput"}
if s.Language == nil {
invalidParams.Add(request.NewErrParamRequired("Language"))
}
if invalidParams.Len() > 0 {
return invalidParams
}
return nil
}
// SetLanguage sets the Language field's value.
func (s *DescribeTrustedAdvisorChecksInput) SetLanguage(v string) *DescribeTrustedAdvisorChecksInput {
s.Language = &v
return s
}
// Information about the Trusted Advisor checks returned by the DescribeTrustedAdvisorChecks
// operation.
// Please also see https://docs.aws.amazon.com/goto/WebAPI/support-2013-04-15/DescribeTrustedAdvisorChecksResponse
type DescribeTrustedAdvisorChecksOutput struct {
_ struct{} `type:"structure"`
// Information about all available Trusted Advisor checks.
//
// Checks is a required field
Checks []*TrustedAdvisorCheckDescription `locationName:"checks" type:"list" required:"true"`
}
// String returns the string representation
func (s DescribeTrustedAdvisorChecksOutput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s DescribeTrustedAdvisorChecksOutput) GoString() string {
return s.String()
}
// SetChecks sets the Checks field's value.
func (s *DescribeTrustedAdvisorChecksOutput) SetChecks(v []*TrustedAdvisorCheckDescription) *DescribeTrustedAdvisorChecksOutput {
s.Checks = v
return s
}
// The five most recent communications associated with the case.
// Please also see https://docs.aws.amazon.com/goto/WebAPI/support-2013-04-15/RecentCaseCommunications
type RecentCaseCommunications struct {
_ struct{} `type:"structure"`
// The five most recent communications associated with the case.
Communications []*Communication `locationName:"communications" type:"list"`
// A resumption point for pagination.
NextToken *string `locationName:"nextToken" type:"string"`
}
// String returns the string representation
func (s RecentCaseCommunications) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s RecentCaseCommunications) GoString() string {
return s.String()
}
// SetCommunications sets the Communications field's value.
func (s *RecentCaseCommunications) SetCommunications(v []*Communication) *RecentCaseCommunications {
s.Communications = v
return s
}
// SetNextToken sets the NextToken field's value.
func (s *RecentCaseCommunications) SetNextToken(v string) *RecentCaseCommunications {
s.NextToken = &v
return s
}
// Please also see https://docs.aws.amazon.com/goto/WebAPI/support-2013-04-15/RefreshTrustedAdvisorCheckRequest
type RefreshTrustedAdvisorCheckInput struct {
_ struct{} `type:"structure"`
// The unique identifier for the Trusted Advisor check to refresh. Note: Specifying
// the check ID of a check that is automatically refreshed causes an InvalidParameterValue
// error.
//
// CheckId is a required field
CheckId *string `locationName:"checkId" type:"string" required:"true"`
}
// String returns the string representation
func (s RefreshTrustedAdvisorCheckInput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s RefreshTrustedAdvisorCheckInput) GoString() string {
return s.String()
}
// Validate inspects the fields of the type to determine if they are valid.
func (s *RefreshTrustedAdvisorCheckInput) Validate() error {
invalidParams := request.ErrInvalidParams{Context: "RefreshTrustedAdvisorCheckInput"}
if s.CheckId == nil {
invalidParams.Add(request.NewErrParamRequired("CheckId"))
}
if invalidParams.Len() > 0 {
return invalidParams
}
return nil
}
// SetCheckId sets the CheckId field's value.
func (s *RefreshTrustedAdvisorCheckInput) SetCheckId(v string) *RefreshTrustedAdvisorCheckInput {
s.CheckId = &v
return s
}
// The current refresh status of a Trusted Advisor check.
// Please also see https://docs.aws.amazon.com/goto/WebAPI/support-2013-04-15/RefreshTrustedAdvisorCheckResponse
type RefreshTrustedAdvisorCheckOutput struct {
_ struct{} `type:"structure"`
// The current refresh status for a check, including the amount of time until
// the check is eligible for refresh.
//
// Status is a required field
Status *TrustedAdvisorCheckRefreshStatus `locationName:"status" type:"structure" required:"true"`
}
// String returns the string representation
func (s RefreshTrustedAdvisorCheckOutput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s RefreshTrustedAdvisorCheckOutput) GoString() string {
return s.String()
}
// SetStatus sets the Status field's value.
func (s *RefreshTrustedAdvisorCheckOutput) SetStatus(v *TrustedAdvisorCheckRefreshStatus) *RefreshTrustedAdvisorCheckOutput {
s.Status = v
return s
}
// Please also see https://docs.aws.amazon.com/goto/WebAPI/support-2013-04-15/ResolveCaseRequest
type ResolveCaseInput struct {
_ struct{} `type:"structure"`
// The AWS Support case ID requested or returned in the call. The case ID is
// an alphanumeric string formatted as shown in this example: case-12345678910-2013-c4c1d2bf33c5cf47
CaseId *string `locationName:"caseId" type:"string"`
}
// String returns the string representation
func (s ResolveCaseInput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s ResolveCaseInput) GoString() string {
return s.String()
}
// SetCaseId sets the CaseId field's value.
func (s *ResolveCaseInput) SetCaseId(v string) *ResolveCaseInput {
s.CaseId = &v
return s
}
// The status of the case returned by the ResolveCase operation.
// Please also see https://docs.aws.amazon.com/goto/WebAPI/support-2013-04-15/ResolveCaseResponse
type ResolveCaseOutput struct {
_ struct{} `type:"structure"`
// The status of the case after the ResolveCase request was processed.
FinalCaseStatus *string `locationName:"finalCaseStatus" type:"string"`
// The status of the case when the ResolveCase request was sent.
InitialCaseStatus *string `locationName:"initialCaseStatus" type:"string"`
}
// String returns the string representation
func (s ResolveCaseOutput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s ResolveCaseOutput) GoString() string {
return s.String()
}
// SetFinalCaseStatus sets the FinalCaseStatus field's value.
func (s *ResolveCaseOutput) SetFinalCaseStatus(v string) *ResolveCaseOutput {
s.FinalCaseStatus = &v
return s
}
// SetInitialCaseStatus sets the InitialCaseStatus field's value.
func (s *ResolveCaseOutput) SetInitialCaseStatus(v string) *ResolveCaseOutput {
s.InitialCaseStatus = &v
return s
}
// Information about an AWS service returned by the DescribeServices operation.
// Please also see https://docs.aws.amazon.com/goto/WebAPI/support-2013-04-15/Service
type Service struct {
_ struct{} `type:"structure"`
// A list of categories that describe the type of support issue a case describes.
// Categories consist of a category name and a category code. Category names
// and codes are passed to AWS Support when you call CreateCase.
Categories []*Category `locationName:"categories" type:"list"`
// The code for an AWS service returned by the DescribeServices response. The
// name element contains the corresponding friendly name.
Code *string `locationName:"code" type:"string"`
// The friendly name for an AWS service. The code element contains the corresponding
// code.
Name *string `locationName:"name" type:"string"`
}
// String returns the string representation
func (s Service) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s Service) GoString() string {
return s.String()
}
// SetCategories sets the Categories field's value.
func (s *Service) SetCategories(v []*Category) *Service {
s.Categories = v
return s
}
// SetCode sets the Code field's value.
func (s *Service) SetCode(v string) *Service {
s.Code = &v
return s
}
// SetName sets the Name field's value.
func (s *Service) SetName(v string) *Service {
s.Name = &v
return s
}
// A code and name pair that represent a severity level that can be applied
// to a support case.
// Please also see https://docs.aws.amazon.com/goto/WebAPI/support-2013-04-15/SeverityLevel
type SeverityLevel struct {
_ struct{} `type:"structure"`
// One of four values: "low," "medium," "high," and "urgent". These values correspond
// to response times returned to the caller in severityLevel.name.
Code *string `locationName:"code" type:"string"`
// The name of the severity level that corresponds to the severity level code.
Name *string `locationName:"name" type:"string"`
}
// String returns the string representation
func (s SeverityLevel) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s SeverityLevel) GoString() string {
return s.String()
}
// SetCode sets the Code field's value.
func (s *SeverityLevel) SetCode(v string) *SeverityLevel {
s.Code = &v
return s
}
// SetName sets the Name field's value.
func (s *SeverityLevel) SetName(v string) *SeverityLevel {
s.Name = &v
return s
}
// The container for summary information that relates to the category of the
// Trusted Advisor check.
// Please also see https://docs.aws.amazon.com/goto/WebAPI/support-2013-04-15/TrustedAdvisorCategorySpecificSummary
type TrustedAdvisorCategorySpecificSummary struct {
_ struct{} `type:"structure"`
// The summary information about cost savings for a Trusted Advisor check that
// is in the Cost Optimizing category.
CostOptimizing *TrustedAdvisorCostOptimizingSummary `locationName:"costOptimizing" type:"structure"`
}
// String returns the string representation
func (s TrustedAdvisorCategorySpecificSummary) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s TrustedAdvisorCategorySpecificSummary) GoString() string {
return s.String()
}
// SetCostOptimizing sets the CostOptimizing field's value.
func (s *TrustedAdvisorCategorySpecificSummary) SetCostOptimizing(v *TrustedAdvisorCostOptimizingSummary) *TrustedAdvisorCategorySpecificSummary {
s.CostOptimizing = v
return s
}
// The description and metadata for a Trusted Advisor check.
// Please also see https://docs.aws.amazon.com/goto/WebAPI/support-2013-04-15/TrustedAdvisorCheckDescription
type TrustedAdvisorCheckDescription struct {
_ struct{} `type:"structure"`
// The category of the Trusted Advisor check.
//
// Category is a required field
Category *string `locationName:"category" type:"string" required:"true"`
// The description of the Trusted Advisor check, which includes the alert criteria
// and recommended actions (contains HTML markup).
//
// Description is a required field
Description *string `locationName:"description" type:"string" required:"true"`
// The unique identifier for the Trusted Advisor check.
//
// Id is a required field
Id *string `locationName:"id" type:"string" required:"true"`
// The column headings for the data returned by the Trusted Advisor check. The
// order of the headings corresponds to the order of the data in the Metadata
// element of the TrustedAdvisorResourceDetail for the check. Metadata contains
// all the data that is shown in the Excel download, even in those cases where
// the UI shows just summary data.
//
// Metadata is a required field
Metadata []*string `locationName:"metadata" type:"list" required:"true"`
// The display name for the Trusted Advisor check.
//
// Name is a required field
Name *string `locationName:"name" type:"string" required:"true"`
}
// String returns the string representation
func (s TrustedAdvisorCheckDescription) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s TrustedAdvisorCheckDescription) GoString() string {
return s.String()
}
// SetCategory sets the Category field's value.
func (s *TrustedAdvisorCheckDescription) SetCategory(v string) *TrustedAdvisorCheckDescription {
s.Category = &v
return s
}
// SetDescription sets the Description field's value.
func (s *TrustedAdvisorCheckDescription) SetDescription(v string) *TrustedAdvisorCheckDescription {
s.Description = &v
return s
}
// SetId sets the Id field's value.
func (s *TrustedAdvisorCheckDescription) SetId(v string) *TrustedAdvisorCheckDescription {
s.Id = &v
return s
}
// SetMetadata sets the Metadata field's value.
func (s *TrustedAdvisorCheckDescription) SetMetadata(v []*string) *TrustedAdvisorCheckDescription {
s.Metadata = v
return s
}
// SetName sets the Name field's value.
func (s *TrustedAdvisorCheckDescription) SetName(v string) *TrustedAdvisorCheckDescription {
s.Name = &v
return s
}
// The refresh status of a Trusted Advisor check.
// Please also see https://docs.aws.amazon.com/goto/WebAPI/support-2013-04-15/TrustedAdvisorCheckRefreshStatus
type TrustedAdvisorCheckRefreshStatus struct {
_ struct{} `type:"structure"`
// The unique identifier for the Trusted Advisor check.
//
// CheckId is a required field
CheckId *string `locationName:"checkId" type:"string" required:"true"`
// The amount of time, in milliseconds, until the Trusted Advisor check is eligible
// for refresh.
//
// MillisUntilNextRefreshable is a required field
MillisUntilNextRefreshable *int64 `locationName:"millisUntilNextRefreshable" type:"long" required:"true"`
// The status of the Trusted Advisor check for which a refresh has been requested:
// "none", "enqueued", "processing", "success", or "abandoned".
//
// Status is a required field
Status *string `locationName:"status" type:"string" required:"true"`
}
// String returns the string representation
func (s TrustedAdvisorCheckRefreshStatus) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s TrustedAdvisorCheckRefreshStatus) GoString() string {
return s.String()
}
// SetCheckId sets the CheckId field's value.
func (s *TrustedAdvisorCheckRefreshStatus) SetCheckId(v string) *TrustedAdvisorCheckRefreshStatus {
s.CheckId = &v
return s
}
// SetMillisUntilNextRefreshable sets the MillisUntilNextRefreshable field's value.
func (s *TrustedAdvisorCheckRefreshStatus) SetMillisUntilNextRefreshable(v int64) *TrustedAdvisorCheckRefreshStatus {
s.MillisUntilNextRefreshable = &v
return s
}
// SetStatus sets the Status field's value.
func (s *TrustedAdvisorCheckRefreshStatus) SetStatus(v string) *TrustedAdvisorCheckRefreshStatus {
s.Status = &v
return s
}
// The results of a Trusted Advisor check returned by DescribeTrustedAdvisorCheckResult.
// Please also see https://docs.aws.amazon.com/goto/WebAPI/support-2013-04-15/TrustedAdvisorCheckResult
type TrustedAdvisorCheckResult struct {
_ struct{} `type:"structure"`
// Summary information that relates to the category of the check. Cost Optimizing
// is the only category that is currently supported.
//
// CategorySpecificSummary is a required field
CategorySpecificSummary *TrustedAdvisorCategorySpecificSummary `locationName:"categorySpecificSummary" type:"structure" required:"true"`
// The unique identifier for the Trusted Advisor check.
//
// CheckId is a required field
CheckId *string `locationName:"checkId" type:"string" required:"true"`
// The details about each resource listed in the check result.
//
// FlaggedResources is a required field
FlaggedResources []*TrustedAdvisorResourceDetail `locationName:"flaggedResources" type:"list" required:"true"`
// Details about AWS resources that were analyzed in a call to Trusted Advisor
// DescribeTrustedAdvisorCheckSummaries.
//
// ResourcesSummary is a required field
ResourcesSummary *TrustedAdvisorResourcesSummary `locationName:"resourcesSummary" type:"structure" required:"true"`
// The alert status of the check: "ok" (green), "warning" (yellow), "error"
// (red), or "not_available".
//
// Status is a required field
Status *string `locationName:"status" type:"string" required:"true"`
// The time of the last refresh of the check.
//
// Timestamp is a required field
Timestamp *string `locationName:"timestamp" type:"string" required:"true"`
}
// String returns the string representation
func (s TrustedAdvisorCheckResult) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s TrustedAdvisorCheckResult) GoString() string {
return s.String()
}
// SetCategorySpecificSummary sets the CategorySpecificSummary field's value.
func (s *TrustedAdvisorCheckResult) SetCategorySpecificSummary(v *TrustedAdvisorCategorySpecificSummary) *TrustedAdvisorCheckResult {
s.CategorySpecificSummary = v
return s
}
// SetCheckId sets the CheckId field's value.
func (s *TrustedAdvisorCheckResult) SetCheckId(v string) *TrustedAdvisorCheckResult {
s.CheckId = &v
return s
}
// SetFlaggedResources sets the FlaggedResources field's value.
func (s *TrustedAdvisorCheckResult) SetFlaggedResources(v []*TrustedAdvisorResourceDetail) *TrustedAdvisorCheckResult {
s.FlaggedResources = v
return s
}
// SetResourcesSummary sets the ResourcesSummary field's value.
func (s *TrustedAdvisorCheckResult) SetResourcesSummary(v *TrustedAdvisorResourcesSummary) *TrustedAdvisorCheckResult {
s.ResourcesSummary = v
return s
}
// SetStatus sets the Status field's value.
func (s *TrustedAdvisorCheckResult) SetStatus(v string) *TrustedAdvisorCheckResult {
s.Status = &v
return s
}
// SetTimestamp sets the Timestamp field's value.
func (s *TrustedAdvisorCheckResult) SetTimestamp(v string) *TrustedAdvisorCheckResult {
s.Timestamp = &v
return s
}
// A summary of a Trusted Advisor check result, including the alert status,
// last refresh, and number of resources examined.
// Please also see https://docs.aws.amazon.com/goto/WebAPI/support-2013-04-15/TrustedAdvisorCheckSummary
type TrustedAdvisorCheckSummary struct {
_ struct{} `type:"structure"`
// Summary information that relates to the category of the check. Cost Optimizing
// is the only category that is currently supported.
//
// CategorySpecificSummary is a required field
CategorySpecificSummary *TrustedAdvisorCategorySpecificSummary `locationName:"categorySpecificSummary" type:"structure" required:"true"`
// The unique identifier for the Trusted Advisor check.
//
// CheckId is a required field
CheckId *string `locationName:"checkId" type:"string" required:"true"`
// Specifies whether the Trusted Advisor check has flagged resources.
HasFlaggedResources *bool `locationName:"hasFlaggedResources" type:"boolean"`
// Details about AWS resources that were analyzed in a call to Trusted Advisor
// DescribeTrustedAdvisorCheckSummaries.
//
// ResourcesSummary is a required field
ResourcesSummary *TrustedAdvisorResourcesSummary `locationName:"resourcesSummary" type:"structure" required:"true"`
// The alert status of the check: "ok" (green), "warning" (yellow), "error"
// (red), or "not_available".
//
// Status is a required field
Status *string `locationName:"status" type:"string" required:"true"`
// The time of the last refresh of the check.
//
// Timestamp is a required field
Timestamp *string `locationName:"timestamp" type:"string" required:"true"`
}
// String returns the string representation
func (s TrustedAdvisorCheckSummary) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s TrustedAdvisorCheckSummary) GoString() string {
return s.String()
}
// SetCategorySpecificSummary sets the CategorySpecificSummary field's value.
func (s *TrustedAdvisorCheckSummary) SetCategorySpecificSummary(v *TrustedAdvisorCategorySpecificSummary) *TrustedAdvisorCheckSummary {
s.CategorySpecificSummary = v
return s
}
// SetCheckId sets the CheckId field's value.
func (s *TrustedAdvisorCheckSummary) SetCheckId(v string) *TrustedAdvisorCheckSummary {
s.CheckId = &v
return s
}
// SetHasFlaggedResources sets the HasFlaggedResources field's value.
func (s *TrustedAdvisorCheckSummary) SetHasFlaggedResources(v bool) *TrustedAdvisorCheckSummary {
s.HasFlaggedResources = &v
return s
}
// SetResourcesSummary sets the ResourcesSummary field's value.
func (s *TrustedAdvisorCheckSummary) SetResourcesSummary(v *TrustedAdvisorResourcesSummary) *TrustedAdvisorCheckSummary {
s.ResourcesSummary = v
return s
}
// SetStatus sets the Status field's value.
func (s *TrustedAdvisorCheckSummary) SetStatus(v string) *TrustedAdvisorCheckSummary {
s.Status = &v
return s
}
// SetTimestamp sets the Timestamp field's value.
func (s *TrustedAdvisorCheckSummary) SetTimestamp(v string) *TrustedAdvisorCheckSummary {
s.Timestamp = &v
return s
}
// The estimated cost savings that might be realized if the recommended actions
// are taken.
// Please also see https://docs.aws.amazon.com/goto/WebAPI/support-2013-04-15/TrustedAdvisorCostOptimizingSummary
type TrustedAdvisorCostOptimizingSummary struct {
_ struct{} `type:"structure"`
// The estimated monthly savings that might be realized if the recommended actions
// are taken.
//
// EstimatedMonthlySavings is a required field
EstimatedMonthlySavings *float64 `locationName:"estimatedMonthlySavings" type:"double" required:"true"`
// The estimated percentage of savings that might be realized if the recommended
// actions are taken.
//
// EstimatedPercentMonthlySavings is a required field
EstimatedPercentMonthlySavings *float64 `locationName:"estimatedPercentMonthlySavings" type:"double" required:"true"`
}
// String returns the string representation
func (s TrustedAdvisorCostOptimizingSummary) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s TrustedAdvisorCostOptimizingSummary) GoString() string {
return s.String()
}
// SetEstimatedMonthlySavings sets the EstimatedMonthlySavings field's value.
func (s *TrustedAdvisorCostOptimizingSummary) SetEstimatedMonthlySavings(v float64) *TrustedAdvisorCostOptimizingSummary {
s.EstimatedMonthlySavings = &v
return s
}
// SetEstimatedPercentMonthlySavings sets the EstimatedPercentMonthlySavings field's value.
func (s *TrustedAdvisorCostOptimizingSummary) SetEstimatedPercentMonthlySavings(v float64) *TrustedAdvisorCostOptimizingSummary {
s.EstimatedPercentMonthlySavings = &v
return s
}
// Contains information about a resource identified by a Trusted Advisor check.
// Please also see https://docs.aws.amazon.com/goto/WebAPI/support-2013-04-15/TrustedAdvisorResourceDetail
type TrustedAdvisorResourceDetail struct {
_ struct{} `type:"structure"`
// Specifies whether the AWS resource was ignored by Trusted Advisor because
// it was marked as suppressed by the user.
IsSuppressed *bool `locationName:"isSuppressed" type:"boolean"`
// Additional information about the identified resource. The exact metadata
// and its order can be obtained by inspecting the TrustedAdvisorCheckDescription
// object returned by the call to DescribeTrustedAdvisorChecks. Metadata contains
// all the data that is shown in the Excel download, even in those cases where
// the UI shows just summary data.
//
// Metadata is a required field
Metadata []*string `locationName:"metadata" type:"list" required:"true"`
// The AWS region in which the identified resource is located.
Region *string `locationName:"region" type:"string"`
// The unique identifier for the identified resource.
//
// ResourceId is a required field
ResourceId *string `locationName:"resourceId" type:"string" required:"true"`
// The status code for the resource identified in the Trusted Advisor check.
//
// Status is a required field
Status *string `locationName:"status" type:"string" required:"true"`
}
// String returns the string representation
func (s TrustedAdvisorResourceDetail) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s TrustedAdvisorResourceDetail) GoString() string {
return s.String()
}
// SetIsSuppressed sets the IsSuppressed field's value.
func (s *TrustedAdvisorResourceDetail) SetIsSuppressed(v bool) *TrustedAdvisorResourceDetail {
s.IsSuppressed = &v
return s
}
// SetMetadata sets the Metadata field's value.
func (s *TrustedAdvisorResourceDetail) SetMetadata(v []*string) *TrustedAdvisorResourceDetail {
s.Metadata = v
return s
}
// SetRegion sets the Region field's value.
func (s *TrustedAdvisorResourceDetail) SetRegion(v string) *TrustedAdvisorResourceDetail {
s.Region = &v
return s
}
// SetResourceId sets the ResourceId field's value.
func (s *TrustedAdvisorResourceDetail) SetResourceId(v string) *TrustedAdvisorResourceDetail {
s.ResourceId = &v
return s
}
// SetStatus sets the Status field's value.
func (s *TrustedAdvisorResourceDetail) SetStatus(v string) *TrustedAdvisorResourceDetail {
s.Status = &v
return s
}
// Details about AWS resources that were analyzed in a call to Trusted Advisor
// DescribeTrustedAdvisorCheckSummaries.
// Please also see https://docs.aws.amazon.com/goto/WebAPI/support-2013-04-15/TrustedAdvisorResourcesSummary
type TrustedAdvisorResourcesSummary struct {
_ struct{} `type:"structure"`
// The number of AWS resources that were flagged (listed) by the Trusted Advisor
// check.
//
// ResourcesFlagged is a required field
ResourcesFlagged *int64 `locationName:"resourcesFlagged" type:"long" required:"true"`
// The number of AWS resources ignored by Trusted Advisor because information
// was unavailable.
//
// ResourcesIgnored is a required field
ResourcesIgnored *int64 `locationName:"resourcesIgnored" type:"long" required:"true"`
// The number of AWS resources that were analyzed by the Trusted Advisor check.
//
// ResourcesProcessed is a required field
ResourcesProcessed *int64 `locationName:"resourcesProcessed" type:"long" required:"true"`
// The number of AWS resources ignored by Trusted Advisor because they were
// marked as suppressed by the user.
//
// ResourcesSuppressed is a required field
ResourcesSuppressed *int64 `locationName:"resourcesSuppressed" type:"long" required:"true"`
}
// String returns the string representation
func (s TrustedAdvisorResourcesSummary) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s TrustedAdvisorResourcesSummary) GoString() string {
return s.String()
}
// SetResourcesFlagged sets the ResourcesFlagged field's value.
func (s *TrustedAdvisorResourcesSummary) SetResourcesFlagged(v int64) *TrustedAdvisorResourcesSummary {
s.ResourcesFlagged = &v
return s
}
// SetResourcesIgnored sets the ResourcesIgnored field's value.
func (s *TrustedAdvisorResourcesSummary) SetResourcesIgnored(v int64) *TrustedAdvisorResourcesSummary {
s.ResourcesIgnored = &v
return s
}
// SetResourcesProcessed sets the ResourcesProcessed field's value.
func (s *TrustedAdvisorResourcesSummary) SetResourcesProcessed(v int64) *TrustedAdvisorResourcesSummary {
s.ResourcesProcessed = &v
return s
}
// SetResourcesSuppressed sets the ResourcesSuppressed field's value.
func (s *TrustedAdvisorResourcesSummary) SetResourcesSuppressed(v int64) *TrustedAdvisorResourcesSummary {
s.ResourcesSuppressed = &v
return s
}
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/mirrors/aws-sdk-go.git
git@gitee.com:mirrors/aws-sdk-go.git
mirrors
aws-sdk-go
aws-sdk-go
v1.7.0

搜索帮助

23e8dbc6 1850385 7e0993f3 1850385