| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103 |
- // THIS FILE IS AUTOMATICALLY GENERATED. DO NOT EDIT.
- // Package cloudsearch provides a client for Amazon CloudSearch.
- package cloudsearch
- import (
- "time"
- "github.com/aws/aws-sdk-go/aws/awsutil"
- "github.com/aws/aws-sdk-go/aws/request"
- )
- const opBuildSuggesters = "BuildSuggesters"
- // BuildSuggestersRequest generates a "aws/request.Request" representing the
- // client's request for the BuildSuggesters operation. The "output" return
- // value can be used to capture response data after the request's "Send" method
- // is called.
- //
- // 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 BuildSuggesters 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 BuildSuggestersRequest method.
- // req, resp := client.BuildSuggestersRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- func (c *CloudSearch) BuildSuggestersRequest(input *BuildSuggestersInput) (req *request.Request, output *BuildSuggestersOutput) {
- op := &request.Operation{
- Name: opBuildSuggesters,
- HTTPMethod: "POST",
- HTTPPath: "/",
- }
- if input == nil {
- input = &BuildSuggestersInput{}
- }
- req = c.newRequest(op, input, output)
- output = &BuildSuggestersOutput{}
- req.Data = output
- return
- }
- // Indexes the search suggestions. For more information, see Configuring Suggesters
- // (http://docs.aws.amazon.com/cloudsearch/latest/developerguide/getting-suggestions.html#configuring-suggesters)
- // in the Amazon CloudSearch Developer Guide.
- func (c *CloudSearch) BuildSuggesters(input *BuildSuggestersInput) (*BuildSuggestersOutput, error) {
- req, out := c.BuildSuggestersRequest(input)
- err := req.Send()
- return out, err
- }
- const opCreateDomain = "CreateDomain"
- // CreateDomainRequest generates a "aws/request.Request" representing the
- // client's request for the CreateDomain operation. The "output" return
- // value can be used to capture response data after the request's "Send" method
- // is called.
- //
- // 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 CreateDomain 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 CreateDomainRequest method.
- // req, resp := client.CreateDomainRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- func (c *CloudSearch) CreateDomainRequest(input *CreateDomainInput) (req *request.Request, output *CreateDomainOutput) {
- op := &request.Operation{
- Name: opCreateDomain,
- HTTPMethod: "POST",
- HTTPPath: "/",
- }
- if input == nil {
- input = &CreateDomainInput{}
- }
- req = c.newRequest(op, input, output)
- output = &CreateDomainOutput{}
- req.Data = output
- return
- }
- // Creates a new search domain. For more information, see Creating a Search
- // Domain (http://docs.aws.amazon.com/cloudsearch/latest/developerguide/creating-domains.html"
- // target="_blank) in the Amazon CloudSearch Developer Guide.
- func (c *CloudSearch) CreateDomain(input *CreateDomainInput) (*CreateDomainOutput, error) {
- req, out := c.CreateDomainRequest(input)
- err := req.Send()
- return out, err
- }
- const opDefineAnalysisScheme = "DefineAnalysisScheme"
- // DefineAnalysisSchemeRequest generates a "aws/request.Request" representing the
- // client's request for the DefineAnalysisScheme operation. The "output" return
- // value can be used to capture response data after the request's "Send" method
- // is called.
- //
- // 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 DefineAnalysisScheme 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 DefineAnalysisSchemeRequest method.
- // req, resp := client.DefineAnalysisSchemeRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- func (c *CloudSearch) DefineAnalysisSchemeRequest(input *DefineAnalysisSchemeInput) (req *request.Request, output *DefineAnalysisSchemeOutput) {
- op := &request.Operation{
- Name: opDefineAnalysisScheme,
- HTTPMethod: "POST",
- HTTPPath: "/",
- }
- if input == nil {
- input = &DefineAnalysisSchemeInput{}
- }
- req = c.newRequest(op, input, output)
- output = &DefineAnalysisSchemeOutput{}
- req.Data = output
- return
- }
- // Configures an analysis scheme that can be applied to a text or text-array
- // field to define language-specific text processing options. For more information,
- // see Configuring Analysis Schemes (http://docs.aws.amazon.com/cloudsearch/latest/developerguide/configuring-analysis-schemes.html"
- // target="_blank) in the Amazon CloudSearch Developer Guide.
- func (c *CloudSearch) DefineAnalysisScheme(input *DefineAnalysisSchemeInput) (*DefineAnalysisSchemeOutput, error) {
- req, out := c.DefineAnalysisSchemeRequest(input)
- err := req.Send()
- return out, err
- }
- const opDefineExpression = "DefineExpression"
- // DefineExpressionRequest generates a "aws/request.Request" representing the
- // client's request for the DefineExpression operation. The "output" return
- // value can be used to capture response data after the request's "Send" method
- // is called.
- //
- // 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 DefineExpression 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 DefineExpressionRequest method.
- // req, resp := client.DefineExpressionRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- func (c *CloudSearch) DefineExpressionRequest(input *DefineExpressionInput) (req *request.Request, output *DefineExpressionOutput) {
- op := &request.Operation{
- Name: opDefineExpression,
- HTTPMethod: "POST",
- HTTPPath: "/",
- }
- if input == nil {
- input = &DefineExpressionInput{}
- }
- req = c.newRequest(op, input, output)
- output = &DefineExpressionOutput{}
- req.Data = output
- return
- }
- // Configures an Expression for the search domain. Used to create new expressions
- // and modify existing ones. If the expression exists, the new configuration
- // replaces the old one. For more information, see Configuring Expressions (http://docs.aws.amazon.com/cloudsearch/latest/developerguide/configuring-expressions.html"
- // target="_blank) in the Amazon CloudSearch Developer Guide.
- func (c *CloudSearch) DefineExpression(input *DefineExpressionInput) (*DefineExpressionOutput, error) {
- req, out := c.DefineExpressionRequest(input)
- err := req.Send()
- return out, err
- }
- const opDefineIndexField = "DefineIndexField"
- // DefineIndexFieldRequest generates a "aws/request.Request" representing the
- // client's request for the DefineIndexField operation. The "output" return
- // value can be used to capture response data after the request's "Send" method
- // is called.
- //
- // 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 DefineIndexField 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 DefineIndexFieldRequest method.
- // req, resp := client.DefineIndexFieldRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- func (c *CloudSearch) DefineIndexFieldRequest(input *DefineIndexFieldInput) (req *request.Request, output *DefineIndexFieldOutput) {
- op := &request.Operation{
- Name: opDefineIndexField,
- HTTPMethod: "POST",
- HTTPPath: "/",
- }
- if input == nil {
- input = &DefineIndexFieldInput{}
- }
- req = c.newRequest(op, input, output)
- output = &DefineIndexFieldOutput{}
- req.Data = output
- return
- }
- // Configures an IndexField for the search domain. Used to create new fields
- // and modify existing ones. You must specify the name of the domain you are
- // configuring and an index field configuration. The index field configuration
- // specifies a unique name, the index field type, and the options you want to
- // configure for the field. The options you can specify depend on the IndexFieldType.
- // If the field exists, the new configuration replaces the old one. For more
- // information, see Configuring Index Fields (http://docs.aws.amazon.com/cloudsearch/latest/developerguide/configuring-index-fields.html"
- // target="_blank) in the Amazon CloudSearch Developer Guide.
- func (c *CloudSearch) DefineIndexField(input *DefineIndexFieldInput) (*DefineIndexFieldOutput, error) {
- req, out := c.DefineIndexFieldRequest(input)
- err := req.Send()
- return out, err
- }
- const opDefineSuggester = "DefineSuggester"
- // DefineSuggesterRequest generates a "aws/request.Request" representing the
- // client's request for the DefineSuggester operation. The "output" return
- // value can be used to capture response data after the request's "Send" method
- // is called.
- //
- // 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 DefineSuggester 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 DefineSuggesterRequest method.
- // req, resp := client.DefineSuggesterRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- func (c *CloudSearch) DefineSuggesterRequest(input *DefineSuggesterInput) (req *request.Request, output *DefineSuggesterOutput) {
- op := &request.Operation{
- Name: opDefineSuggester,
- HTTPMethod: "POST",
- HTTPPath: "/",
- }
- if input == nil {
- input = &DefineSuggesterInput{}
- }
- req = c.newRequest(op, input, output)
- output = &DefineSuggesterOutput{}
- req.Data = output
- return
- }
- // Configures a suggester for a domain. A suggester enables you to display possible
- // matches before users finish typing their queries. When you configure a suggester,
- // you must specify the name of the text field you want to search for possible
- // matches and a unique name for the suggester. For more information, see Getting
- // Search Suggestions (http://docs.aws.amazon.com/cloudsearch/latest/developerguide/getting-suggestions.html"
- // target="_blank) in the Amazon CloudSearch Developer Guide.
- func (c *CloudSearch) DefineSuggester(input *DefineSuggesterInput) (*DefineSuggesterOutput, error) {
- req, out := c.DefineSuggesterRequest(input)
- err := req.Send()
- return out, err
- }
- const opDeleteAnalysisScheme = "DeleteAnalysisScheme"
- // DeleteAnalysisSchemeRequest generates a "aws/request.Request" representing the
- // client's request for the DeleteAnalysisScheme operation. The "output" return
- // value can be used to capture response data after the request's "Send" method
- // is called.
- //
- // 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 DeleteAnalysisScheme 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 DeleteAnalysisSchemeRequest method.
- // req, resp := client.DeleteAnalysisSchemeRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- func (c *CloudSearch) DeleteAnalysisSchemeRequest(input *DeleteAnalysisSchemeInput) (req *request.Request, output *DeleteAnalysisSchemeOutput) {
- op := &request.Operation{
- Name: opDeleteAnalysisScheme,
- HTTPMethod: "POST",
- HTTPPath: "/",
- }
- if input == nil {
- input = &DeleteAnalysisSchemeInput{}
- }
- req = c.newRequest(op, input, output)
- output = &DeleteAnalysisSchemeOutput{}
- req.Data = output
- return
- }
- // Deletes an analysis scheme. For more information, see Configuring Analysis
- // Schemes (http://docs.aws.amazon.com/cloudsearch/latest/developerguide/configuring-analysis-schemes.html"
- // target="_blank) in the Amazon CloudSearch Developer Guide.
- func (c *CloudSearch) DeleteAnalysisScheme(input *DeleteAnalysisSchemeInput) (*DeleteAnalysisSchemeOutput, error) {
- req, out := c.DeleteAnalysisSchemeRequest(input)
- err := req.Send()
- return out, err
- }
- const opDeleteDomain = "DeleteDomain"
- // DeleteDomainRequest generates a "aws/request.Request" representing the
- // client's request for the DeleteDomain operation. The "output" return
- // value can be used to capture response data after the request's "Send" method
- // is called.
- //
- // 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 DeleteDomain 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 DeleteDomainRequest method.
- // req, resp := client.DeleteDomainRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- func (c *CloudSearch) DeleteDomainRequest(input *DeleteDomainInput) (req *request.Request, output *DeleteDomainOutput) {
- op := &request.Operation{
- Name: opDeleteDomain,
- HTTPMethod: "POST",
- HTTPPath: "/",
- }
- if input == nil {
- input = &DeleteDomainInput{}
- }
- req = c.newRequest(op, input, output)
- output = &DeleteDomainOutput{}
- req.Data = output
- return
- }
- // Permanently deletes a search domain and all of its data. Once a domain has
- // been deleted, it cannot be recovered. For more information, see Deleting
- // a Search Domain (http://docs.aws.amazon.com/cloudsearch/latest/developerguide/deleting-domains.html"
- // target="_blank) in the Amazon CloudSearch Developer Guide.
- func (c *CloudSearch) DeleteDomain(input *DeleteDomainInput) (*DeleteDomainOutput, error) {
- req, out := c.DeleteDomainRequest(input)
- err := req.Send()
- return out, err
- }
- const opDeleteExpression = "DeleteExpression"
- // DeleteExpressionRequest generates a "aws/request.Request" representing the
- // client's request for the DeleteExpression operation. The "output" return
- // value can be used to capture response data after the request's "Send" method
- // is called.
- //
- // 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 DeleteExpression 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 DeleteExpressionRequest method.
- // req, resp := client.DeleteExpressionRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- func (c *CloudSearch) DeleteExpressionRequest(input *DeleteExpressionInput) (req *request.Request, output *DeleteExpressionOutput) {
- op := &request.Operation{
- Name: opDeleteExpression,
- HTTPMethod: "POST",
- HTTPPath: "/",
- }
- if input == nil {
- input = &DeleteExpressionInput{}
- }
- req = c.newRequest(op, input, output)
- output = &DeleteExpressionOutput{}
- req.Data = output
- return
- }
- // Removes an Expression from the search domain. For more information, see Configuring
- // Expressions (http://docs.aws.amazon.com/cloudsearch/latest/developerguide/configuring-expressions.html"
- // target="_blank) in the Amazon CloudSearch Developer Guide.
- func (c *CloudSearch) DeleteExpression(input *DeleteExpressionInput) (*DeleteExpressionOutput, error) {
- req, out := c.DeleteExpressionRequest(input)
- err := req.Send()
- return out, err
- }
- const opDeleteIndexField = "DeleteIndexField"
- // DeleteIndexFieldRequest generates a "aws/request.Request" representing the
- // client's request for the DeleteIndexField operation. The "output" return
- // value can be used to capture response data after the request's "Send" method
- // is called.
- //
- // 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 DeleteIndexField 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 DeleteIndexFieldRequest method.
- // req, resp := client.DeleteIndexFieldRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- func (c *CloudSearch) DeleteIndexFieldRequest(input *DeleteIndexFieldInput) (req *request.Request, output *DeleteIndexFieldOutput) {
- op := &request.Operation{
- Name: opDeleteIndexField,
- HTTPMethod: "POST",
- HTTPPath: "/",
- }
- if input == nil {
- input = &DeleteIndexFieldInput{}
- }
- req = c.newRequest(op, input, output)
- output = &DeleteIndexFieldOutput{}
- req.Data = output
- return
- }
- // Removes an IndexField from the search domain. For more information, see Configuring
- // Index Fields (http://docs.aws.amazon.com/cloudsearch/latest/developerguide/configuring-index-fields.html"
- // target="_blank) in the Amazon CloudSearch Developer Guide.
- func (c *CloudSearch) DeleteIndexField(input *DeleteIndexFieldInput) (*DeleteIndexFieldOutput, error) {
- req, out := c.DeleteIndexFieldRequest(input)
- err := req.Send()
- return out, err
- }
- const opDeleteSuggester = "DeleteSuggester"
- // DeleteSuggesterRequest generates a "aws/request.Request" representing the
- // client's request for the DeleteSuggester operation. The "output" return
- // value can be used to capture response data after the request's "Send" method
- // is called.
- //
- // 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 DeleteSuggester 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 DeleteSuggesterRequest method.
- // req, resp := client.DeleteSuggesterRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- func (c *CloudSearch) DeleteSuggesterRequest(input *DeleteSuggesterInput) (req *request.Request, output *DeleteSuggesterOutput) {
- op := &request.Operation{
- Name: opDeleteSuggester,
- HTTPMethod: "POST",
- HTTPPath: "/",
- }
- if input == nil {
- input = &DeleteSuggesterInput{}
- }
- req = c.newRequest(op, input, output)
- output = &DeleteSuggesterOutput{}
- req.Data = output
- return
- }
- // Deletes a suggester. For more information, see Getting Search Suggestions
- // (http://docs.aws.amazon.com/cloudsearch/latest/developerguide/getting-suggestions.html"
- // target="_blank) in the Amazon CloudSearch Developer Guide.
- func (c *CloudSearch) DeleteSuggester(input *DeleteSuggesterInput) (*DeleteSuggesterOutput, error) {
- req, out := c.DeleteSuggesterRequest(input)
- err := req.Send()
- return out, err
- }
- const opDescribeAnalysisSchemes = "DescribeAnalysisSchemes"
- // DescribeAnalysisSchemesRequest generates a "aws/request.Request" representing the
- // client's request for the DescribeAnalysisSchemes operation. The "output" return
- // value can be used to capture response data after the request's "Send" method
- // is called.
- //
- // 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 DescribeAnalysisSchemes 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 DescribeAnalysisSchemesRequest method.
- // req, resp := client.DescribeAnalysisSchemesRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- func (c *CloudSearch) DescribeAnalysisSchemesRequest(input *DescribeAnalysisSchemesInput) (req *request.Request, output *DescribeAnalysisSchemesOutput) {
- op := &request.Operation{
- Name: opDescribeAnalysisSchemes,
- HTTPMethod: "POST",
- HTTPPath: "/",
- }
- if input == nil {
- input = &DescribeAnalysisSchemesInput{}
- }
- req = c.newRequest(op, input, output)
- output = &DescribeAnalysisSchemesOutput{}
- req.Data = output
- return
- }
- // Gets the analysis schemes configured for a domain. An analysis scheme defines
- // language-specific text processing options for a text field. Can be limited
- // to specific analysis schemes by name. By default, shows all analysis schemes
- // and includes any pending changes to the configuration. Set the Deployed option
- // to true to show the active configuration and exclude pending changes. For
- // more information, see Configuring Analysis Schemes (http://docs.aws.amazon.com/cloudsearch/latest/developerguide/configuring-analysis-schemes.html"
- // target="_blank) in the Amazon CloudSearch Developer Guide.
- func (c *CloudSearch) DescribeAnalysisSchemes(input *DescribeAnalysisSchemesInput) (*DescribeAnalysisSchemesOutput, error) {
- req, out := c.DescribeAnalysisSchemesRequest(input)
- err := req.Send()
- return out, err
- }
- const opDescribeAvailabilityOptions = "DescribeAvailabilityOptions"
- // DescribeAvailabilityOptionsRequest generates a "aws/request.Request" representing the
- // client's request for the DescribeAvailabilityOptions operation. The "output" return
- // value can be used to capture response data after the request's "Send" method
- // is called.
- //
- // 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 DescribeAvailabilityOptions 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 DescribeAvailabilityOptionsRequest method.
- // req, resp := client.DescribeAvailabilityOptionsRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- func (c *CloudSearch) DescribeAvailabilityOptionsRequest(input *DescribeAvailabilityOptionsInput) (req *request.Request, output *DescribeAvailabilityOptionsOutput) {
- op := &request.Operation{
- Name: opDescribeAvailabilityOptions,
- HTTPMethod: "POST",
- HTTPPath: "/",
- }
- if input == nil {
- input = &DescribeAvailabilityOptionsInput{}
- }
- req = c.newRequest(op, input, output)
- output = &DescribeAvailabilityOptionsOutput{}
- req.Data = output
- return
- }
- // Gets the availability options configured for a domain. By default, shows
- // the configuration with any pending changes. Set the Deployed option to true
- // to show the active configuration and exclude pending changes. For more information,
- // see Configuring Availability Options (http://docs.aws.amazon.com/cloudsearch/latest/developerguide/configuring-availability-options.html"
- // target="_blank) in the Amazon CloudSearch Developer Guide.
- func (c *CloudSearch) DescribeAvailabilityOptions(input *DescribeAvailabilityOptionsInput) (*DescribeAvailabilityOptionsOutput, error) {
- req, out := c.DescribeAvailabilityOptionsRequest(input)
- err := req.Send()
- return out, err
- }
- const opDescribeDomains = "DescribeDomains"
- // DescribeDomainsRequest generates a "aws/request.Request" representing the
- // client's request for the DescribeDomains operation. The "output" return
- // value can be used to capture response data after the request's "Send" method
- // is called.
- //
- // 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 DescribeDomains 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 DescribeDomainsRequest method.
- // req, resp := client.DescribeDomainsRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- func (c *CloudSearch) DescribeDomainsRequest(input *DescribeDomainsInput) (req *request.Request, output *DescribeDomainsOutput) {
- op := &request.Operation{
- Name: opDescribeDomains,
- HTTPMethod: "POST",
- HTTPPath: "/",
- }
- if input == nil {
- input = &DescribeDomainsInput{}
- }
- req = c.newRequest(op, input, output)
- output = &DescribeDomainsOutput{}
- req.Data = output
- return
- }
- // Gets information about the search domains owned by this account. Can be limited
- // to specific domains. Shows all domains by default. To get the number of searchable
- // documents in a domain, use the console or submit a matchall request to your
- // domain's search endpoint: q=matchall&q.parser=structured&size=0.
- // For more information, see Getting Information about a Search Domain (http://docs.aws.amazon.com/cloudsearch/latest/developerguide/getting-domain-info.html"
- // target="_blank) in the Amazon CloudSearch Developer Guide.
- func (c *CloudSearch) DescribeDomains(input *DescribeDomainsInput) (*DescribeDomainsOutput, error) {
- req, out := c.DescribeDomainsRequest(input)
- err := req.Send()
- return out, err
- }
- const opDescribeExpressions = "DescribeExpressions"
- // DescribeExpressionsRequest generates a "aws/request.Request" representing the
- // client's request for the DescribeExpressions operation. The "output" return
- // value can be used to capture response data after the request's "Send" method
- // is called.
- //
- // 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 DescribeExpressions 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 DescribeExpressionsRequest method.
- // req, resp := client.DescribeExpressionsRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- func (c *CloudSearch) DescribeExpressionsRequest(input *DescribeExpressionsInput) (req *request.Request, output *DescribeExpressionsOutput) {
- op := &request.Operation{
- Name: opDescribeExpressions,
- HTTPMethod: "POST",
- HTTPPath: "/",
- }
- if input == nil {
- input = &DescribeExpressionsInput{}
- }
- req = c.newRequest(op, input, output)
- output = &DescribeExpressionsOutput{}
- req.Data = output
- return
- }
- // Gets the expressions configured for the search domain. Can be limited to
- // specific expressions by name. By default, shows all expressions and includes
- // any pending changes to the configuration. Set the Deployed option to true
- // to show the active configuration and exclude pending changes. For more information,
- // see Configuring Expressions (http://docs.aws.amazon.com/cloudsearch/latest/developerguide/configuring-expressions.html"
- // target="_blank) in the Amazon CloudSearch Developer Guide.
- func (c *CloudSearch) DescribeExpressions(input *DescribeExpressionsInput) (*DescribeExpressionsOutput, error) {
- req, out := c.DescribeExpressionsRequest(input)
- err := req.Send()
- return out, err
- }
- const opDescribeIndexFields = "DescribeIndexFields"
- // DescribeIndexFieldsRequest generates a "aws/request.Request" representing the
- // client's request for the DescribeIndexFields operation. The "output" return
- // value can be used to capture response data after the request's "Send" method
- // is called.
- //
- // 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 DescribeIndexFields 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 DescribeIndexFieldsRequest method.
- // req, resp := client.DescribeIndexFieldsRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- func (c *CloudSearch) DescribeIndexFieldsRequest(input *DescribeIndexFieldsInput) (req *request.Request, output *DescribeIndexFieldsOutput) {
- op := &request.Operation{
- Name: opDescribeIndexFields,
- HTTPMethod: "POST",
- HTTPPath: "/",
- }
- if input == nil {
- input = &DescribeIndexFieldsInput{}
- }
- req = c.newRequest(op, input, output)
- output = &DescribeIndexFieldsOutput{}
- req.Data = output
- return
- }
- // Gets information about the index fields configured for the search domain.
- // Can be limited to specific fields by name. By default, shows all fields and
- // includes any pending changes to the configuration. Set the Deployed option
- // to true to show the active configuration and exclude pending changes. For
- // more information, see Getting Domain Information (http://docs.aws.amazon.com/cloudsearch/latest/developerguide/getting-domain-info.html"
- // target="_blank) in the Amazon CloudSearch Developer Guide.
- func (c *CloudSearch) DescribeIndexFields(input *DescribeIndexFieldsInput) (*DescribeIndexFieldsOutput, error) {
- req, out := c.DescribeIndexFieldsRequest(input)
- err := req.Send()
- return out, err
- }
- const opDescribeScalingParameters = "DescribeScalingParameters"
- // DescribeScalingParametersRequest generates a "aws/request.Request" representing the
- // client's request for the DescribeScalingParameters operation. The "output" return
- // value can be used to capture response data after the request's "Send" method
- // is called.
- //
- // 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 DescribeScalingParameters 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 DescribeScalingParametersRequest method.
- // req, resp := client.DescribeScalingParametersRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- func (c *CloudSearch) DescribeScalingParametersRequest(input *DescribeScalingParametersInput) (req *request.Request, output *DescribeScalingParametersOutput) {
- op := &request.Operation{
- Name: opDescribeScalingParameters,
- HTTPMethod: "POST",
- HTTPPath: "/",
- }
- if input == nil {
- input = &DescribeScalingParametersInput{}
- }
- req = c.newRequest(op, input, output)
- output = &DescribeScalingParametersOutput{}
- req.Data = output
- return
- }
- // Gets the scaling parameters configured for a domain. A domain's scaling parameters
- // specify the desired search instance type and replication count. For more
- // information, see Configuring Scaling Options (http://docs.aws.amazon.com/cloudsearch/latest/developerguide/configuring-scaling-options.html"
- // target="_blank) in the Amazon CloudSearch Developer Guide.
- func (c *CloudSearch) DescribeScalingParameters(input *DescribeScalingParametersInput) (*DescribeScalingParametersOutput, error) {
- req, out := c.DescribeScalingParametersRequest(input)
- err := req.Send()
- return out, err
- }
- const opDescribeServiceAccessPolicies = "DescribeServiceAccessPolicies"
- // DescribeServiceAccessPoliciesRequest generates a "aws/request.Request" representing the
- // client's request for the DescribeServiceAccessPolicies operation. The "output" return
- // value can be used to capture response data after the request's "Send" method
- // is called.
- //
- // 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 DescribeServiceAccessPolicies 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 DescribeServiceAccessPoliciesRequest method.
- // req, resp := client.DescribeServiceAccessPoliciesRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- func (c *CloudSearch) DescribeServiceAccessPoliciesRequest(input *DescribeServiceAccessPoliciesInput) (req *request.Request, output *DescribeServiceAccessPoliciesOutput) {
- op := &request.Operation{
- Name: opDescribeServiceAccessPolicies,
- HTTPMethod: "POST",
- HTTPPath: "/",
- }
- if input == nil {
- input = &DescribeServiceAccessPoliciesInput{}
- }
- req = c.newRequest(op, input, output)
- output = &DescribeServiceAccessPoliciesOutput{}
- req.Data = output
- return
- }
- // Gets information about the access policies that control access to the domain's
- // document and search endpoints. By default, shows the configuration with any
- // pending changes. Set the Deployed option to true to show the active configuration
- // and exclude pending changes. For more information, see Configuring Access
- // for a Search Domain (http://docs.aws.amazon.com/cloudsearch/latest/developerguide/configuring-access.html"
- // target="_blank) in the Amazon CloudSearch Developer Guide.
- func (c *CloudSearch) DescribeServiceAccessPolicies(input *DescribeServiceAccessPoliciesInput) (*DescribeServiceAccessPoliciesOutput, error) {
- req, out := c.DescribeServiceAccessPoliciesRequest(input)
- err := req.Send()
- return out, err
- }
- const opDescribeSuggesters = "DescribeSuggesters"
- // DescribeSuggestersRequest generates a "aws/request.Request" representing the
- // client's request for the DescribeSuggesters operation. The "output" return
- // value can be used to capture response data after the request's "Send" method
- // is called.
- //
- // 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 DescribeSuggesters 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 DescribeSuggestersRequest method.
- // req, resp := client.DescribeSuggestersRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- func (c *CloudSearch) DescribeSuggestersRequest(input *DescribeSuggestersInput) (req *request.Request, output *DescribeSuggestersOutput) {
- op := &request.Operation{
- Name: opDescribeSuggesters,
- HTTPMethod: "POST",
- HTTPPath: "/",
- }
- if input == nil {
- input = &DescribeSuggestersInput{}
- }
- req = c.newRequest(op, input, output)
- output = &DescribeSuggestersOutput{}
- req.Data = output
- return
- }
- // Gets the suggesters configured for a domain. A suggester enables you to display
- // possible matches before users finish typing their queries. Can be limited
- // to specific suggesters by name. By default, shows all suggesters and includes
- // any pending changes to the configuration. Set the Deployed option to true
- // to show the active configuration and exclude pending changes. For more information,
- // see Getting Search Suggestions (http://docs.aws.amazon.com/cloudsearch/latest/developerguide/getting-suggestions.html"
- // target="_blank) in the Amazon CloudSearch Developer Guide.
- func (c *CloudSearch) DescribeSuggesters(input *DescribeSuggestersInput) (*DescribeSuggestersOutput, error) {
- req, out := c.DescribeSuggestersRequest(input)
- err := req.Send()
- return out, err
- }
- const opIndexDocuments = "IndexDocuments"
- // IndexDocumentsRequest generates a "aws/request.Request" representing the
- // client's request for the IndexDocuments operation. The "output" return
- // value can be used to capture response data after the request's "Send" method
- // is called.
- //
- // 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 IndexDocuments 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 IndexDocumentsRequest method.
- // req, resp := client.IndexDocumentsRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- func (c *CloudSearch) IndexDocumentsRequest(input *IndexDocumentsInput) (req *request.Request, output *IndexDocumentsOutput) {
- op := &request.Operation{
- Name: opIndexDocuments,
- HTTPMethod: "POST",
- HTTPPath: "/",
- }
- if input == nil {
- input = &IndexDocumentsInput{}
- }
- req = c.newRequest(op, input, output)
- output = &IndexDocumentsOutput{}
- req.Data = output
- return
- }
- // Tells the search domain to start indexing its documents using the latest
- // indexing options. This operation must be invoked to activate options whose
- // OptionStatus is RequiresIndexDocuments.
- func (c *CloudSearch) IndexDocuments(input *IndexDocumentsInput) (*IndexDocumentsOutput, error) {
- req, out := c.IndexDocumentsRequest(input)
- err := req.Send()
- return out, err
- }
- const opListDomainNames = "ListDomainNames"
- // ListDomainNamesRequest generates a "aws/request.Request" representing the
- // client's request for the ListDomainNames operation. The "output" return
- // value can be used to capture response data after the request's "Send" method
- // is called.
- //
- // 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 ListDomainNames 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 ListDomainNamesRequest method.
- // req, resp := client.ListDomainNamesRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- func (c *CloudSearch) ListDomainNamesRequest(input *ListDomainNamesInput) (req *request.Request, output *ListDomainNamesOutput) {
- op := &request.Operation{
- Name: opListDomainNames,
- HTTPMethod: "POST",
- HTTPPath: "/",
- }
- if input == nil {
- input = &ListDomainNamesInput{}
- }
- req = c.newRequest(op, input, output)
- output = &ListDomainNamesOutput{}
- req.Data = output
- return
- }
- // Lists all search domains owned by an account.
- func (c *CloudSearch) ListDomainNames(input *ListDomainNamesInput) (*ListDomainNamesOutput, error) {
- req, out := c.ListDomainNamesRequest(input)
- err := req.Send()
- return out, err
- }
- const opUpdateAvailabilityOptions = "UpdateAvailabilityOptions"
- // UpdateAvailabilityOptionsRequest generates a "aws/request.Request" representing the
- // client's request for the UpdateAvailabilityOptions operation. The "output" return
- // value can be used to capture response data after the request's "Send" method
- // is called.
- //
- // 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 UpdateAvailabilityOptions 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 UpdateAvailabilityOptionsRequest method.
- // req, resp := client.UpdateAvailabilityOptionsRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- func (c *CloudSearch) UpdateAvailabilityOptionsRequest(input *UpdateAvailabilityOptionsInput) (req *request.Request, output *UpdateAvailabilityOptionsOutput) {
- op := &request.Operation{
- Name: opUpdateAvailabilityOptions,
- HTTPMethod: "POST",
- HTTPPath: "/",
- }
- if input == nil {
- input = &UpdateAvailabilityOptionsInput{}
- }
- req = c.newRequest(op, input, output)
- output = &UpdateAvailabilityOptionsOutput{}
- req.Data = output
- return
- }
- // Configures the availability options for a domain. Enabling the Multi-AZ option
- // expands an Amazon CloudSearch domain to an additional Availability Zone in
- // the same Region to increase fault tolerance in the event of a service disruption.
- // Changes to the Multi-AZ option can take about half an hour to become active.
- // For more information, see Configuring Availability Options (http://docs.aws.amazon.com/cloudsearch/latest/developerguide/configuring-availability-options.html"
- // target="_blank) in the Amazon CloudSearch Developer Guide.
- func (c *CloudSearch) UpdateAvailabilityOptions(input *UpdateAvailabilityOptionsInput) (*UpdateAvailabilityOptionsOutput, error) {
- req, out := c.UpdateAvailabilityOptionsRequest(input)
- err := req.Send()
- return out, err
- }
- const opUpdateScalingParameters = "UpdateScalingParameters"
- // UpdateScalingParametersRequest generates a "aws/request.Request" representing the
- // client's request for the UpdateScalingParameters operation. The "output" return
- // value can be used to capture response data after the request's "Send" method
- // is called.
- //
- // 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 UpdateScalingParameters 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 UpdateScalingParametersRequest method.
- // req, resp := client.UpdateScalingParametersRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- func (c *CloudSearch) UpdateScalingParametersRequest(input *UpdateScalingParametersInput) (req *request.Request, output *UpdateScalingParametersOutput) {
- op := &request.Operation{
- Name: opUpdateScalingParameters,
- HTTPMethod: "POST",
- HTTPPath: "/",
- }
- if input == nil {
- input = &UpdateScalingParametersInput{}
- }
- req = c.newRequest(op, input, output)
- output = &UpdateScalingParametersOutput{}
- req.Data = output
- return
- }
- // Configures scaling parameters for a domain. A domain's scaling parameters
- // specify the desired search instance type and replication count. Amazon CloudSearch
- // will still automatically scale your domain based on the volume of data and
- // traffic, but not below the desired instance type and replication count. If
- // the Multi-AZ option is enabled, these values control the resources used per
- // Availability Zone. For more information, see Configuring Scaling Options
- // (http://docs.aws.amazon.com/cloudsearch/latest/developerguide/configuring-scaling-options.html"
- // target="_blank) in the Amazon CloudSearch Developer Guide.
- func (c *CloudSearch) UpdateScalingParameters(input *UpdateScalingParametersInput) (*UpdateScalingParametersOutput, error) {
- req, out := c.UpdateScalingParametersRequest(input)
- err := req.Send()
- return out, err
- }
- const opUpdateServiceAccessPolicies = "UpdateServiceAccessPolicies"
- // UpdateServiceAccessPoliciesRequest generates a "aws/request.Request" representing the
- // client's request for the UpdateServiceAccessPolicies operation. The "output" return
- // value can be used to capture response data after the request's "Send" method
- // is called.
- //
- // 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 UpdateServiceAccessPolicies 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 UpdateServiceAccessPoliciesRequest method.
- // req, resp := client.UpdateServiceAccessPoliciesRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- func (c *CloudSearch) UpdateServiceAccessPoliciesRequest(input *UpdateServiceAccessPoliciesInput) (req *request.Request, output *UpdateServiceAccessPoliciesOutput) {
- op := &request.Operation{
- Name: opUpdateServiceAccessPolicies,
- HTTPMethod: "POST",
- HTTPPath: "/",
- }
- if input == nil {
- input = &UpdateServiceAccessPoliciesInput{}
- }
- req = c.newRequest(op, input, output)
- output = &UpdateServiceAccessPoliciesOutput{}
- req.Data = output
- return
- }
- // Configures the access rules that control access to the domain's document
- // and search endpoints. For more information, see Configuring Access for an
- // Amazon CloudSearch Domain (http://docs.aws.amazon.com/cloudsearch/latest/developerguide/configuring-access.html"
- // target="_blank).
- func (c *CloudSearch) UpdateServiceAccessPolicies(input *UpdateServiceAccessPoliciesInput) (*UpdateServiceAccessPoliciesOutput, error) {
- req, out := c.UpdateServiceAccessPoliciesRequest(input)
- err := req.Send()
- return out, err
- }
- // The configured access rules for the domain's document and search endpoints,
- // and the current status of those rules.
- type AccessPoliciesStatus struct {
- _ struct{} `type:"structure"`
- // Access rules for a domain's document or search service endpoints. For more
- // information, see Configuring Access for a Search Domain (http://docs.aws.amazon.com/cloudsearch/latest/developerguide/configuring-access.html"
- // target="_blank) in the Amazon CloudSearch Developer Guide. The maximum size
- // of a policy document is 100 KB.
- Options *string `type:"string" required:"true"`
- // The status of domain configuration option.
- Status *OptionStatus `type:"structure" required:"true"`
- }
- // String returns the string representation
- func (s AccessPoliciesStatus) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s AccessPoliciesStatus) GoString() string {
- return s.String()
- }
- // Synonyms, stopwords, and stemming options for an analysis scheme. Includes
- // tokenization dictionary for Japanese.
- type AnalysisOptions struct {
- _ struct{} `type:"structure"`
- // The level of algorithmic stemming to perform: none, minimal, light, or full.
- // The available levels vary depending on the language. For more information,
- // see Language Specific Text Processing Settings (http://docs.aws.amazon.com/cloudsearch/latest/developerguide/text-processing.html#text-processing-settings"
- // target="_blank) in the Amazon CloudSearch Developer Guide
- AlgorithmicStemming *string `type:"string" enum:"AlgorithmicStemming"`
- // A JSON array that contains a collection of terms, tokens, readings and part
- // of speech for Japanese Tokenizaiton. The Japanese tokenization dictionary
- // enables you to override the default tokenization for selected terms. This
- // is only valid for Japanese language fields.
- JapaneseTokenizationDictionary *string `type:"string"`
- // A JSON object that contains a collection of string:value pairs that each
- // map a term to its stem. For example, {"term1": "stem1", "term2": "stem2",
- // "term3": "stem3"}. The stemming dictionary is applied in addition to any
- // algorithmic stemming. This enables you to override the results of the algorithmic
- // stemming to correct specific cases of overstemming or understemming. The
- // maximum size of a stemming dictionary is 500 KB.
- StemmingDictionary *string `type:"string"`
- // A JSON array of terms to ignore during indexing and searching. For example,
- // ["a", "an", "the", "of"]. The stopwords dictionary must explicitly list each
- // word you want to ignore. Wildcards and regular expressions are not supported.
- Stopwords *string `type:"string"`
- // A JSON object that defines synonym groups and aliases. A synonym group is
- // an array of arrays, where each sub-array is a group of terms where each term
- // in the group is considered a synonym of every other term in the group. The
- // aliases value is an object that contains a collection of string:value pairs
- // where the string specifies a term and the array of values specifies each
- // of the aliases for that term. An alias is considered a synonym of the specified
- // term, but the term is not considered a synonym of the alias. For more information
- // about specifying synonyms, see Synonyms (http://docs.aws.amazon.com/cloudsearch/latest/developerguide/configuring-analysis-schemes.html#synonyms)
- // in the Amazon CloudSearch Developer Guide.
- Synonyms *string `type:"string"`
- }
- // String returns the string representation
- func (s AnalysisOptions) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s AnalysisOptions) GoString() string {
- return s.String()
- }
- // Configuration information for an analysis scheme. Each analysis scheme has
- // a unique name and specifies the language of the text to be processed. The
- // following options can be configured for an analysis scheme: Synonyms, Stopwords,
- // StemmingDictionary, JapaneseTokenizationDictionary and AlgorithmicStemming.
- type AnalysisScheme struct {
- _ struct{} `type:"structure"`
- // Synonyms, stopwords, and stemming options for an analysis scheme. Includes
- // tokenization dictionary for Japanese.
- AnalysisOptions *AnalysisOptions `type:"structure"`
- // An IETF RFC 4646 (http://tools.ietf.org/html/rfc4646" target="_blank) language
- // code or mul for multiple languages.
- AnalysisSchemeLanguage *string `type:"string" required:"true" enum:"AnalysisSchemeLanguage"`
- // Names must begin with a letter and can contain the following characters:
- // a-z (lowercase), 0-9, and _ (underscore).
- AnalysisSchemeName *string `min:"1" type:"string" required:"true"`
- }
- // String returns the string representation
- func (s AnalysisScheme) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s AnalysisScheme) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *AnalysisScheme) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "AnalysisScheme"}
- if s.AnalysisSchemeLanguage == nil {
- invalidParams.Add(request.NewErrParamRequired("AnalysisSchemeLanguage"))
- }
- if s.AnalysisSchemeName == nil {
- invalidParams.Add(request.NewErrParamRequired("AnalysisSchemeName"))
- }
- if s.AnalysisSchemeName != nil && len(*s.AnalysisSchemeName) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("AnalysisSchemeName", 1))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // The status and configuration of an AnalysisScheme.
- type AnalysisSchemeStatus struct {
- _ struct{} `type:"structure"`
- // Configuration information for an analysis scheme. Each analysis scheme has
- // a unique name and specifies the language of the text to be processed. The
- // following options can be configured for an analysis scheme: Synonyms, Stopwords,
- // StemmingDictionary, JapaneseTokenizationDictionary and AlgorithmicStemming.
- Options *AnalysisScheme `type:"structure" required:"true"`
- // The status of domain configuration option.
- Status *OptionStatus `type:"structure" required:"true"`
- }
- // String returns the string representation
- func (s AnalysisSchemeStatus) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s AnalysisSchemeStatus) GoString() string {
- return s.String()
- }
- // The status and configuration of the domain's availability options.
- type AvailabilityOptionsStatus struct {
- _ struct{} `type:"structure"`
- // The availability options configured for the domain.
- Options *bool `type:"boolean" required:"true"`
- // The status of domain configuration option.
- Status *OptionStatus `type:"structure" required:"true"`
- }
- // String returns the string representation
- func (s AvailabilityOptionsStatus) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s AvailabilityOptionsStatus) GoString() string {
- return s.String()
- }
- // Container for the parameters to the BuildSuggester operation. Specifies the
- // name of the domain you want to update.
- type BuildSuggestersInput struct {
- _ struct{} `type:"structure"`
- // A string that represents the name of a domain. Domain names are unique across
- // the domains owned by an account within an AWS region. Domain names start
- // with a letter or number and can contain the following characters: a-z (lowercase),
- // 0-9, and - (hyphen).
- DomainName *string `min:"3" type:"string" required:"true"`
- }
- // String returns the string representation
- func (s BuildSuggestersInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s BuildSuggestersInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *BuildSuggestersInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "BuildSuggestersInput"}
- if s.DomainName == nil {
- invalidParams.Add(request.NewErrParamRequired("DomainName"))
- }
- if s.DomainName != nil && len(*s.DomainName) < 3 {
- invalidParams.Add(request.NewErrParamMinLen("DomainName", 3))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // The result of a BuildSuggester request. Contains a list of the fields used
- // for suggestions.
- type BuildSuggestersOutput struct {
- _ struct{} `type:"structure"`
- // A list of field names.
- FieldNames []*string `type:"list"`
- }
- // String returns the string representation
- func (s BuildSuggestersOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s BuildSuggestersOutput) GoString() string {
- return s.String()
- }
- // Container for the parameters to the CreateDomain operation. Specifies a name
- // for the new search domain.
- type CreateDomainInput struct {
- _ struct{} `type:"structure"`
- // A name for the domain you are creating. Allowed characters are a-z (lower-case
- // letters), 0-9, and hyphen (-). Domain names must start with a letter or number
- // and be at least 3 and no more than 28 characters long.
- DomainName *string `min:"3" type:"string" required:"true"`
- }
- // String returns the string representation
- func (s CreateDomainInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s CreateDomainInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *CreateDomainInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "CreateDomainInput"}
- if s.DomainName == nil {
- invalidParams.Add(request.NewErrParamRequired("DomainName"))
- }
- if s.DomainName != nil && len(*s.DomainName) < 3 {
- invalidParams.Add(request.NewErrParamMinLen("DomainName", 3))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // The result of a CreateDomainRequest. Contains the status of a newly created
- // domain.
- type CreateDomainOutput struct {
- _ struct{} `type:"structure"`
- // The current status of the search domain.
- DomainStatus *DomainStatus `type:"structure"`
- }
- // String returns the string representation
- func (s CreateDomainOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s CreateDomainOutput) GoString() string {
- return s.String()
- }
- // Options for a field that contains an array of dates. Present if IndexFieldType
- // specifies the field is of type date-array. All options are enabled by default.
- type DateArrayOptions struct {
- _ struct{} `type:"structure"`
- // A value to use for the field if the field isn't specified for a document.
- DefaultValue *string `type:"string"`
- // Whether facet information can be returned for the field.
- FacetEnabled *bool `type:"boolean"`
- // Whether the contents of the field can be returned in the search results.
- ReturnEnabled *bool `type:"boolean"`
- // Whether the contents of the field are searchable.
- SearchEnabled *bool `type:"boolean"`
- // A list of source fields to map to the field.
- SourceFields *string `type:"string"`
- }
- // String returns the string representation
- func (s DateArrayOptions) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s DateArrayOptions) GoString() string {
- return s.String()
- }
- // Options for a date field. Dates and times are specified in UTC (Coordinated
- // Universal Time) according to IETF RFC3339: yyyy-mm-ddT00:00:00Z. Present
- // if IndexFieldType specifies the field is of type date. All options are enabled
- // by default.
- type DateOptions struct {
- _ struct{} `type:"structure"`
- // A value to use for the field if the field isn't specified for a document.
- DefaultValue *string `type:"string"`
- // Whether facet information can be returned for the field.
- FacetEnabled *bool `type:"boolean"`
- // Whether the contents of the field can be returned in the search results.
- ReturnEnabled *bool `type:"boolean"`
- // Whether the contents of the field are searchable.
- SearchEnabled *bool `type:"boolean"`
- // Whether the field can be used to sort the search results.
- SortEnabled *bool `type:"boolean"`
- // A string that represents the name of an index field. CloudSearch supports
- // regular index fields as well as dynamic fields. A dynamic field's name defines
- // a pattern that begins or ends with a wildcard. Any document fields that don't
- // map to a regular index field but do match a dynamic field's pattern are configured
- // with the dynamic field's indexing options.
- //
- // Regular field names begin with a letter and can contain the following characters:
- // a-z (lowercase), 0-9, and _ (underscore). Dynamic field names must begin
- // or end with a wildcard (*). The wildcard can also be the only character in
- // a dynamic field name. Multiple wildcards, and wildcards embedded within a
- // string are not supported.
- //
- // The name score is reserved and cannot be used as a field name. To reference
- // a document's ID, you can use the name _id.
- SourceField *string `min:"1" type:"string"`
- }
- // String returns the string representation
- func (s DateOptions) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s DateOptions) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *DateOptions) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "DateOptions"}
- if s.SourceField != nil && len(*s.SourceField) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("SourceField", 1))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // Container for the parameters to the DefineAnalysisScheme operation. Specifies
- // the name of the domain you want to update and the analysis scheme configuration.
- type DefineAnalysisSchemeInput struct {
- _ struct{} `type:"structure"`
- // Configuration information for an analysis scheme. Each analysis scheme has
- // a unique name and specifies the language of the text to be processed. The
- // following options can be configured for an analysis scheme: Synonyms, Stopwords,
- // StemmingDictionary, JapaneseTokenizationDictionary and AlgorithmicStemming.
- AnalysisScheme *AnalysisScheme `type:"structure" required:"true"`
- // A string that represents the name of a domain. Domain names are unique across
- // the domains owned by an account within an AWS region. Domain names start
- // with a letter or number and can contain the following characters: a-z (lowercase),
- // 0-9, and - (hyphen).
- DomainName *string `min:"3" type:"string" required:"true"`
- }
- // String returns the string representation
- func (s DefineAnalysisSchemeInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s DefineAnalysisSchemeInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *DefineAnalysisSchemeInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "DefineAnalysisSchemeInput"}
- if s.AnalysisScheme == nil {
- invalidParams.Add(request.NewErrParamRequired("AnalysisScheme"))
- }
- if s.DomainName == nil {
- invalidParams.Add(request.NewErrParamRequired("DomainName"))
- }
- if s.DomainName != nil && len(*s.DomainName) < 3 {
- invalidParams.Add(request.NewErrParamMinLen("DomainName", 3))
- }
- if s.AnalysisScheme != nil {
- if err := s.AnalysisScheme.Validate(); err != nil {
- invalidParams.AddNested("AnalysisScheme", err.(request.ErrInvalidParams))
- }
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // The result of a DefineAnalysisScheme request. Contains the status of the
- // newly-configured analysis scheme.
- type DefineAnalysisSchemeOutput struct {
- _ struct{} `type:"structure"`
- // The status and configuration of an AnalysisScheme.
- AnalysisScheme *AnalysisSchemeStatus `type:"structure" required:"true"`
- }
- // String returns the string representation
- func (s DefineAnalysisSchemeOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s DefineAnalysisSchemeOutput) GoString() string {
- return s.String()
- }
- // Container for the parameters to the DefineExpression operation. Specifies
- // the name of the domain you want to update and the expression you want to
- // configure.
- type DefineExpressionInput struct {
- _ struct{} `type:"structure"`
- // A string that represents the name of a domain. Domain names are unique across
- // the domains owned by an account within an AWS region. Domain names start
- // with a letter or number and can contain the following characters: a-z (lowercase),
- // 0-9, and - (hyphen).
- DomainName *string `min:"3" type:"string" required:"true"`
- // A named expression that can be evaluated at search time. Can be used to sort
- // the search results, define other expressions, or return computed information
- // in the search results.
- Expression *Expression `type:"structure" required:"true"`
- }
- // String returns the string representation
- func (s DefineExpressionInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s DefineExpressionInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *DefineExpressionInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "DefineExpressionInput"}
- if s.DomainName == nil {
- invalidParams.Add(request.NewErrParamRequired("DomainName"))
- }
- if s.DomainName != nil && len(*s.DomainName) < 3 {
- invalidParams.Add(request.NewErrParamMinLen("DomainName", 3))
- }
- if s.Expression == nil {
- invalidParams.Add(request.NewErrParamRequired("Expression"))
- }
- if s.Expression != nil {
- if err := s.Expression.Validate(); err != nil {
- invalidParams.AddNested("Expression", err.(request.ErrInvalidParams))
- }
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // The result of a DefineExpression request. Contains the status of the newly-configured
- // expression.
- type DefineExpressionOutput struct {
- _ struct{} `type:"structure"`
- // The value of an Expression and its current status.
- Expression *ExpressionStatus `type:"structure" required:"true"`
- }
- // String returns the string representation
- func (s DefineExpressionOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s DefineExpressionOutput) GoString() string {
- return s.String()
- }
- // Container for the parameters to the DefineIndexField operation. Specifies
- // the name of the domain you want to update and the index field configuration.
- type DefineIndexFieldInput struct {
- _ struct{} `type:"structure"`
- // A string that represents the name of a domain. Domain names are unique across
- // the domains owned by an account within an AWS region. Domain names start
- // with a letter or number and can contain the following characters: a-z (lowercase),
- // 0-9, and - (hyphen).
- DomainName *string `min:"3" type:"string" required:"true"`
- // The index field and field options you want to configure.
- IndexField *IndexField `type:"structure" required:"true"`
- }
- // String returns the string representation
- func (s DefineIndexFieldInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s DefineIndexFieldInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *DefineIndexFieldInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "DefineIndexFieldInput"}
- if s.DomainName == nil {
- invalidParams.Add(request.NewErrParamRequired("DomainName"))
- }
- if s.DomainName != nil && len(*s.DomainName) < 3 {
- invalidParams.Add(request.NewErrParamMinLen("DomainName", 3))
- }
- if s.IndexField == nil {
- invalidParams.Add(request.NewErrParamRequired("IndexField"))
- }
- if s.IndexField != nil {
- if err := s.IndexField.Validate(); err != nil {
- invalidParams.AddNested("IndexField", err.(request.ErrInvalidParams))
- }
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // The result of a DefineIndexField request. Contains the status of the newly-configured
- // index field.
- type DefineIndexFieldOutput struct {
- _ struct{} `type:"structure"`
- // The value of an IndexField and its current status.
- IndexField *IndexFieldStatus `type:"structure" required:"true"`
- }
- // String returns the string representation
- func (s DefineIndexFieldOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s DefineIndexFieldOutput) GoString() string {
- return s.String()
- }
- // Container for the parameters to the DefineSuggester operation. Specifies
- // the name of the domain you want to update and the suggester configuration.
- type DefineSuggesterInput struct {
- _ struct{} `type:"structure"`
- // A string that represents the name of a domain. Domain names are unique across
- // the domains owned by an account within an AWS region. Domain names start
- // with a letter or number and can contain the following characters: a-z (lowercase),
- // 0-9, and - (hyphen).
- DomainName *string `min:"3" type:"string" required:"true"`
- // Configuration information for a search suggester. Each suggester has a unique
- // name and specifies the text field you want to use for suggestions. The following
- // options can be configured for a suggester: FuzzyMatching, SortExpression.
- Suggester *Suggester `type:"structure" required:"true"`
- }
- // String returns the string representation
- func (s DefineSuggesterInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s DefineSuggesterInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *DefineSuggesterInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "DefineSuggesterInput"}
- if s.DomainName == nil {
- invalidParams.Add(request.NewErrParamRequired("DomainName"))
- }
- if s.DomainName != nil && len(*s.DomainName) < 3 {
- invalidParams.Add(request.NewErrParamMinLen("DomainName", 3))
- }
- if s.Suggester == nil {
- invalidParams.Add(request.NewErrParamRequired("Suggester"))
- }
- if s.Suggester != nil {
- if err := s.Suggester.Validate(); err != nil {
- invalidParams.AddNested("Suggester", err.(request.ErrInvalidParams))
- }
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // The result of a DefineSuggester request. Contains the status of the newly-configured
- // suggester.
- type DefineSuggesterOutput struct {
- _ struct{} `type:"structure"`
- // The value of a Suggester and its current status.
- Suggester *SuggesterStatus `type:"structure" required:"true"`
- }
- // String returns the string representation
- func (s DefineSuggesterOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s DefineSuggesterOutput) GoString() string {
- return s.String()
- }
- // Container for the parameters to the DeleteAnalysisScheme operation. Specifies
- // the name of the domain you want to update and the analysis scheme you want
- // to delete.
- type DeleteAnalysisSchemeInput struct {
- _ struct{} `type:"structure"`
- // The name of the analysis scheme you want to delete.
- AnalysisSchemeName *string `min:"1" type:"string" required:"true"`
- // A string that represents the name of a domain. Domain names are unique across
- // the domains owned by an account within an AWS region. Domain names start
- // with a letter or number and can contain the following characters: a-z (lowercase),
- // 0-9, and - (hyphen).
- DomainName *string `min:"3" type:"string" required:"true"`
- }
- // String returns the string representation
- func (s DeleteAnalysisSchemeInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s DeleteAnalysisSchemeInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *DeleteAnalysisSchemeInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "DeleteAnalysisSchemeInput"}
- if s.AnalysisSchemeName == nil {
- invalidParams.Add(request.NewErrParamRequired("AnalysisSchemeName"))
- }
- if s.AnalysisSchemeName != nil && len(*s.AnalysisSchemeName) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("AnalysisSchemeName", 1))
- }
- if s.DomainName == nil {
- invalidParams.Add(request.NewErrParamRequired("DomainName"))
- }
- if s.DomainName != nil && len(*s.DomainName) < 3 {
- invalidParams.Add(request.NewErrParamMinLen("DomainName", 3))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // The result of a DeleteAnalysisScheme request. Contains the status of the
- // deleted analysis scheme.
- type DeleteAnalysisSchemeOutput struct {
- _ struct{} `type:"structure"`
- // The status of the analysis scheme being deleted.
- AnalysisScheme *AnalysisSchemeStatus `type:"structure" required:"true"`
- }
- // String returns the string representation
- func (s DeleteAnalysisSchemeOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s DeleteAnalysisSchemeOutput) GoString() string {
- return s.String()
- }
- // Container for the parameters to the DeleteDomain operation. Specifies the
- // name of the domain you want to delete.
- type DeleteDomainInput struct {
- _ struct{} `type:"structure"`
- // The name of the domain you want to permanently delete.
- DomainName *string `min:"3" type:"string" required:"true"`
- }
- // String returns the string representation
- func (s DeleteDomainInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s DeleteDomainInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *DeleteDomainInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "DeleteDomainInput"}
- if s.DomainName == nil {
- invalidParams.Add(request.NewErrParamRequired("DomainName"))
- }
- if s.DomainName != nil && len(*s.DomainName) < 3 {
- invalidParams.Add(request.NewErrParamMinLen("DomainName", 3))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // The result of a DeleteDomain request. Contains the status of a newly deleted
- // domain, or no status if the domain has already been completely deleted.
- type DeleteDomainOutput struct {
- _ struct{} `type:"structure"`
- // The current status of the search domain.
- DomainStatus *DomainStatus `type:"structure"`
- }
- // String returns the string representation
- func (s DeleteDomainOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s DeleteDomainOutput) GoString() string {
- return s.String()
- }
- // Container for the parameters to the DeleteExpression operation. Specifies
- // the name of the domain you want to update and the name of the expression
- // you want to delete.
- type DeleteExpressionInput struct {
- _ struct{} `type:"structure"`
- // A string that represents the name of a domain. Domain names are unique across
- // the domains owned by an account within an AWS region. Domain names start
- // with a letter or number and can contain the following characters: a-z (lowercase),
- // 0-9, and - (hyphen).
- DomainName *string `min:"3" type:"string" required:"true"`
- // The name of the Expression to delete.
- ExpressionName *string `min:"1" type:"string" required:"true"`
- }
- // String returns the string representation
- func (s DeleteExpressionInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s DeleteExpressionInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *DeleteExpressionInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "DeleteExpressionInput"}
- if s.DomainName == nil {
- invalidParams.Add(request.NewErrParamRequired("DomainName"))
- }
- if s.DomainName != nil && len(*s.DomainName) < 3 {
- invalidParams.Add(request.NewErrParamMinLen("DomainName", 3))
- }
- if s.ExpressionName == nil {
- invalidParams.Add(request.NewErrParamRequired("ExpressionName"))
- }
- if s.ExpressionName != nil && len(*s.ExpressionName) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("ExpressionName", 1))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // The result of a DeleteExpression request. Specifies the expression being
- // deleted.
- type DeleteExpressionOutput struct {
- _ struct{} `type:"structure"`
- // The status of the expression being deleted.
- Expression *ExpressionStatus `type:"structure" required:"true"`
- }
- // String returns the string representation
- func (s DeleteExpressionOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s DeleteExpressionOutput) GoString() string {
- return s.String()
- }
- // Container for the parameters to the DeleteIndexField operation. Specifies
- // the name of the domain you want to update and the name of the index field
- // you want to delete.
- type DeleteIndexFieldInput struct {
- _ struct{} `type:"structure"`
- // A string that represents the name of a domain. Domain names are unique across
- // the domains owned by an account within an AWS region. Domain names start
- // with a letter or number and can contain the following characters: a-z (lowercase),
- // 0-9, and - (hyphen).
- DomainName *string `min:"3" type:"string" required:"true"`
- // The name of the index field your want to remove from the domain's indexing
- // options.
- IndexFieldName *string `min:"1" type:"string" required:"true"`
- }
- // String returns the string representation
- func (s DeleteIndexFieldInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s DeleteIndexFieldInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *DeleteIndexFieldInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "DeleteIndexFieldInput"}
- if s.DomainName == nil {
- invalidParams.Add(request.NewErrParamRequired("DomainName"))
- }
- if s.DomainName != nil && len(*s.DomainName) < 3 {
- invalidParams.Add(request.NewErrParamMinLen("DomainName", 3))
- }
- if s.IndexFieldName == nil {
- invalidParams.Add(request.NewErrParamRequired("IndexFieldName"))
- }
- if s.IndexFieldName != nil && len(*s.IndexFieldName) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("IndexFieldName", 1))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // The result of a DeleteIndexField request.
- type DeleteIndexFieldOutput struct {
- _ struct{} `type:"structure"`
- // The status of the index field being deleted.
- IndexField *IndexFieldStatus `type:"structure" required:"true"`
- }
- // String returns the string representation
- func (s DeleteIndexFieldOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s DeleteIndexFieldOutput) GoString() string {
- return s.String()
- }
- // Container for the parameters to the DeleteSuggester operation. Specifies
- // the name of the domain you want to update and name of the suggester you want
- // to delete.
- type DeleteSuggesterInput struct {
- _ struct{} `type:"structure"`
- // A string that represents the name of a domain. Domain names are unique across
- // the domains owned by an account within an AWS region. Domain names start
- // with a letter or number and can contain the following characters: a-z (lowercase),
- // 0-9, and - (hyphen).
- DomainName *string `min:"3" type:"string" required:"true"`
- // Specifies the name of the suggester you want to delete.
- SuggesterName *string `min:"1" type:"string" required:"true"`
- }
- // String returns the string representation
- func (s DeleteSuggesterInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s DeleteSuggesterInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *DeleteSuggesterInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "DeleteSuggesterInput"}
- if s.DomainName == nil {
- invalidParams.Add(request.NewErrParamRequired("DomainName"))
- }
- if s.DomainName != nil && len(*s.DomainName) < 3 {
- invalidParams.Add(request.NewErrParamMinLen("DomainName", 3))
- }
- if s.SuggesterName == nil {
- invalidParams.Add(request.NewErrParamRequired("SuggesterName"))
- }
- if s.SuggesterName != nil && len(*s.SuggesterName) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("SuggesterName", 1))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // The result of a DeleteSuggester request. Contains the status of the deleted
- // suggester.
- type DeleteSuggesterOutput struct {
- _ struct{} `type:"structure"`
- // The status of the suggester being deleted.
- Suggester *SuggesterStatus `type:"structure" required:"true"`
- }
- // String returns the string representation
- func (s DeleteSuggesterOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s DeleteSuggesterOutput) GoString() string {
- return s.String()
- }
- // Container for the parameters to the DescribeAnalysisSchemes operation. Specifies
- // the name of the domain you want to describe. To limit the response to particular
- // analysis schemes, specify the names of the analysis schemes you want to describe.
- // To show the active configuration and exclude any pending changes, set the
- // Deployed option to true.
- type DescribeAnalysisSchemesInput struct {
- _ struct{} `type:"structure"`
- // The analysis schemes you want to describe.
- AnalysisSchemeNames []*string `type:"list"`
- // Whether to display the deployed configuration (true) or include any pending
- // changes (false). Defaults to false.
- Deployed *bool `type:"boolean"`
- // The name of the domain you want to describe.
- DomainName *string `min:"3" type:"string" required:"true"`
- }
- // String returns the string representation
- func (s DescribeAnalysisSchemesInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s DescribeAnalysisSchemesInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *DescribeAnalysisSchemesInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "DescribeAnalysisSchemesInput"}
- if s.DomainName == nil {
- invalidParams.Add(request.NewErrParamRequired("DomainName"))
- }
- if s.DomainName != nil && len(*s.DomainName) < 3 {
- invalidParams.Add(request.NewErrParamMinLen("DomainName", 3))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // The result of a DescribeAnalysisSchemes request. Contains the analysis schemes
- // configured for the domain specified in the request.
- type DescribeAnalysisSchemesOutput struct {
- _ struct{} `type:"structure"`
- // The analysis scheme descriptions.
- AnalysisSchemes []*AnalysisSchemeStatus `type:"list" required:"true"`
- }
- // String returns the string representation
- func (s DescribeAnalysisSchemesOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s DescribeAnalysisSchemesOutput) GoString() string {
- return s.String()
- }
- // Container for the parameters to the DescribeAvailabilityOptions operation.
- // Specifies the name of the domain you want to describe. To show the active
- // configuration and exclude any pending changes, set the Deployed option to
- // true.
- type DescribeAvailabilityOptionsInput struct {
- _ struct{} `type:"structure"`
- // Whether to display the deployed configuration (true) or include any pending
- // changes (false). Defaults to false.
- Deployed *bool `type:"boolean"`
- // The name of the domain you want to describe.
- DomainName *string `min:"3" type:"string" required:"true"`
- }
- // String returns the string representation
- func (s DescribeAvailabilityOptionsInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s DescribeAvailabilityOptionsInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *DescribeAvailabilityOptionsInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "DescribeAvailabilityOptionsInput"}
- if s.DomainName == nil {
- invalidParams.Add(request.NewErrParamRequired("DomainName"))
- }
- if s.DomainName != nil && len(*s.DomainName) < 3 {
- invalidParams.Add(request.NewErrParamMinLen("DomainName", 3))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // The result of a DescribeAvailabilityOptions request. Indicates whether or
- // not the Multi-AZ option is enabled for the domain specified in the request.
- type DescribeAvailabilityOptionsOutput struct {
- _ struct{} `type:"structure"`
- // The availability options configured for the domain. Indicates whether Multi-AZ
- // is enabled for the domain.
- AvailabilityOptions *AvailabilityOptionsStatus `type:"structure"`
- }
- // String returns the string representation
- func (s DescribeAvailabilityOptionsOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s DescribeAvailabilityOptionsOutput) GoString() string {
- return s.String()
- }
- // Container for the parameters to the DescribeDomains operation. By default
- // shows the status of all domains. To restrict the response to particular domains,
- // specify the names of the domains you want to describe.
- type DescribeDomainsInput struct {
- _ struct{} `type:"structure"`
- // The names of the domains you want to include in the response.
- DomainNames []*string `type:"list"`
- }
- // String returns the string representation
- func (s DescribeDomainsInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s DescribeDomainsInput) GoString() string {
- return s.String()
- }
- // The result of a DescribeDomains request. Contains the status of the domains
- // specified in the request or all domains owned by the account.
- type DescribeDomainsOutput struct {
- _ struct{} `type:"structure"`
- // A list that contains the status of each requested domain.
- DomainStatusList []*DomainStatus `type:"list" required:"true"`
- }
- // String returns the string representation
- func (s DescribeDomainsOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s DescribeDomainsOutput) GoString() string {
- return s.String()
- }
- // Container for the parameters to the DescribeDomains operation. Specifies
- // the name of the domain you want to describe. To restrict the response to
- // particular expressions, specify the names of the expressions you want to
- // describe. To show the active configuration and exclude any pending changes,
- // set the Deployed option to true.
- type DescribeExpressionsInput struct {
- _ struct{} `type:"structure"`
- // Whether to display the deployed configuration (true) or include any pending
- // changes (false). Defaults to false.
- Deployed *bool `type:"boolean"`
- // The name of the domain you want to describe.
- DomainName *string `min:"3" type:"string" required:"true"`
- // Limits the DescribeExpressions response to the specified expressions. If
- // not specified, all expressions are shown.
- ExpressionNames []*string `type:"list"`
- }
- // String returns the string representation
- func (s DescribeExpressionsInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s DescribeExpressionsInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *DescribeExpressionsInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "DescribeExpressionsInput"}
- if s.DomainName == nil {
- invalidParams.Add(request.NewErrParamRequired("DomainName"))
- }
- if s.DomainName != nil && len(*s.DomainName) < 3 {
- invalidParams.Add(request.NewErrParamMinLen("DomainName", 3))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // The result of a DescribeExpressions request. Contains the expressions configured
- // for the domain specified in the request.
- type DescribeExpressionsOutput struct {
- _ struct{} `type:"structure"`
- // The expressions configured for the domain.
- Expressions []*ExpressionStatus `type:"list" required:"true"`
- }
- // String returns the string representation
- func (s DescribeExpressionsOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s DescribeExpressionsOutput) GoString() string {
- return s.String()
- }
- // Container for the parameters to the DescribeIndexFields operation. Specifies
- // the name of the domain you want to describe. To restrict the response to
- // particular index fields, specify the names of the index fields you want to
- // describe. To show the active configuration and exclude any pending changes,
- // set the Deployed option to true.
- type DescribeIndexFieldsInput struct {
- _ struct{} `type:"structure"`
- // Whether to display the deployed configuration (true) or include any pending
- // changes (false). Defaults to false.
- Deployed *bool `type:"boolean"`
- // The name of the domain you want to describe.
- DomainName *string `min:"3" type:"string" required:"true"`
- // A list of the index fields you want to describe. If not specified, information
- // is returned for all configured index fields.
- FieldNames []*string `type:"list"`
- }
- // String returns the string representation
- func (s DescribeIndexFieldsInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s DescribeIndexFieldsInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *DescribeIndexFieldsInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "DescribeIndexFieldsInput"}
- if s.DomainName == nil {
- invalidParams.Add(request.NewErrParamRequired("DomainName"))
- }
- if s.DomainName != nil && len(*s.DomainName) < 3 {
- invalidParams.Add(request.NewErrParamMinLen("DomainName", 3))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // The result of a DescribeIndexFields request. Contains the index fields configured
- // for the domain specified in the request.
- type DescribeIndexFieldsOutput struct {
- _ struct{} `type:"structure"`
- // The index fields configured for the domain.
- IndexFields []*IndexFieldStatus `type:"list" required:"true"`
- }
- // String returns the string representation
- func (s DescribeIndexFieldsOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s DescribeIndexFieldsOutput) GoString() string {
- return s.String()
- }
- // Container for the parameters to the DescribeScalingParameters operation.
- // Specifies the name of the domain you want to describe.
- type DescribeScalingParametersInput struct {
- _ struct{} `type:"structure"`
- // A string that represents the name of a domain. Domain names are unique across
- // the domains owned by an account within an AWS region. Domain names start
- // with a letter or number and can contain the following characters: a-z (lowercase),
- // 0-9, and - (hyphen).
- DomainName *string `min:"3" type:"string" required:"true"`
- }
- // String returns the string representation
- func (s DescribeScalingParametersInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s DescribeScalingParametersInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *DescribeScalingParametersInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "DescribeScalingParametersInput"}
- if s.DomainName == nil {
- invalidParams.Add(request.NewErrParamRequired("DomainName"))
- }
- if s.DomainName != nil && len(*s.DomainName) < 3 {
- invalidParams.Add(request.NewErrParamMinLen("DomainName", 3))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // The result of a DescribeScalingParameters request. Contains the scaling parameters
- // configured for the domain specified in the request.
- type DescribeScalingParametersOutput struct {
- _ struct{} `type:"structure"`
- // The status and configuration of a search domain's scaling parameters.
- ScalingParameters *ScalingParametersStatus `type:"structure" required:"true"`
- }
- // String returns the string representation
- func (s DescribeScalingParametersOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s DescribeScalingParametersOutput) GoString() string {
- return s.String()
- }
- // Container for the parameters to the DescribeServiceAccessPolicies operation.
- // Specifies the name of the domain you want to describe. To show the active
- // configuration and exclude any pending changes, set the Deployed option to
- // true.
- type DescribeServiceAccessPoliciesInput struct {
- _ struct{} `type:"structure"`
- // Whether to display the deployed configuration (true) or include any pending
- // changes (false). Defaults to false.
- Deployed *bool `type:"boolean"`
- // The name of the domain you want to describe.
- DomainName *string `min:"3" type:"string" required:"true"`
- }
- // String returns the string representation
- func (s DescribeServiceAccessPoliciesInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s DescribeServiceAccessPoliciesInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *DescribeServiceAccessPoliciesInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "DescribeServiceAccessPoliciesInput"}
- if s.DomainName == nil {
- invalidParams.Add(request.NewErrParamRequired("DomainName"))
- }
- if s.DomainName != nil && len(*s.DomainName) < 3 {
- invalidParams.Add(request.NewErrParamMinLen("DomainName", 3))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // The result of a DescribeServiceAccessPolicies request.
- type DescribeServiceAccessPoliciesOutput struct {
- _ struct{} `type:"structure"`
- // The access rules configured for the domain specified in the request.
- AccessPolicies *AccessPoliciesStatus `type:"structure" required:"true"`
- }
- // String returns the string representation
- func (s DescribeServiceAccessPoliciesOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s DescribeServiceAccessPoliciesOutput) GoString() string {
- return s.String()
- }
- // Container for the parameters to the DescribeSuggester operation. Specifies
- // the name of the domain you want to describe. To restrict the response to
- // particular suggesters, specify the names of the suggesters you want to describe.
- // To show the active configuration and exclude any pending changes, set the
- // Deployed option to true.
- type DescribeSuggestersInput struct {
- _ struct{} `type:"structure"`
- // Whether to display the deployed configuration (true) or include any pending
- // changes (false). Defaults to false.
- Deployed *bool `type:"boolean"`
- // The name of the domain you want to describe.
- DomainName *string `min:"3" type:"string" required:"true"`
- // The suggesters you want to describe.
- SuggesterNames []*string `type:"list"`
- }
- // String returns the string representation
- func (s DescribeSuggestersInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s DescribeSuggestersInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *DescribeSuggestersInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "DescribeSuggestersInput"}
- if s.DomainName == nil {
- invalidParams.Add(request.NewErrParamRequired("DomainName"))
- }
- if s.DomainName != nil && len(*s.DomainName) < 3 {
- invalidParams.Add(request.NewErrParamMinLen("DomainName", 3))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // The result of a DescribeSuggesters request.
- type DescribeSuggestersOutput struct {
- _ struct{} `type:"structure"`
- // The suggesters configured for the domain specified in the request.
- Suggesters []*SuggesterStatus `type:"list" required:"true"`
- }
- // String returns the string representation
- func (s DescribeSuggestersOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s DescribeSuggestersOutput) GoString() string {
- return s.String()
- }
- // Options for a search suggester.
- type DocumentSuggesterOptions struct {
- _ struct{} `type:"structure"`
- // The level of fuzziness allowed when suggesting matches for a string: none,
- // low, or high. With none, the specified string is treated as an exact prefix.
- // With low, suggestions must differ from the specified string by no more than
- // one character. With high, suggestions can differ by up to two characters.
- // The default is none.
- FuzzyMatching *string `type:"string" enum:"SuggesterFuzzyMatching"`
- // An expression that computes a score for each suggestion to control how they
- // are sorted. The scores are rounded to the nearest integer, with a floor of
- // 0 and a ceiling of 2^31-1. A document's relevance score is not computed for
- // suggestions, so sort expressions cannot reference the _score value. To sort
- // suggestions using a numeric field or existing expression, simply specify
- // the name of the field or expression. If no expression is configured for the
- // suggester, the suggestions are sorted with the closest matches listed first.
- SortExpression *string `type:"string"`
- // The name of the index field you want to use for suggestions.
- SourceField *string `min:"1" type:"string" required:"true"`
- }
- // String returns the string representation
- func (s DocumentSuggesterOptions) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s DocumentSuggesterOptions) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *DocumentSuggesterOptions) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "DocumentSuggesterOptions"}
- if s.SourceField == nil {
- invalidParams.Add(request.NewErrParamRequired("SourceField"))
- }
- if s.SourceField != nil && len(*s.SourceField) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("SourceField", 1))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // The current status of the search domain.
- type DomainStatus struct {
- _ struct{} `type:"structure"`
- // The Amazon Resource Name (ARN) of the search domain. See Identifiers for
- // IAM Entities (http://docs.aws.amazon.com/IAM/latest/UserGuide/index.html?Using_Identifiers.html"
- // target="_blank) in Using AWS Identity and Access Management for more information.
- ARN *string `type:"string"`
- // True if the search domain is created. It can take several minutes to initialize
- // a domain when CreateDomain is called. Newly created search domains are returned
- // from DescribeDomains with a false value for Created until domain creation
- // is complete.
- Created *bool `type:"boolean"`
- // True if the search domain has been deleted. The system must clean up resources
- // dedicated to the search domain when DeleteDomain is called. Newly deleted
- // search domains are returned from DescribeDomains with a true value for IsDeleted
- // for several minutes until resource cleanup is complete.
- Deleted *bool `type:"boolean"`
- // The service endpoint for updating documents in a search domain.
- DocService *ServiceEndpoint `type:"structure"`
- // An internally generated unique identifier for a domain.
- DomainId *string `min:"1" type:"string" required:"true"`
- // A string that represents the name of a domain. Domain names are unique across
- // the domains owned by an account within an AWS region. Domain names start
- // with a letter or number and can contain the following characters: a-z (lowercase),
- // 0-9, and - (hyphen).
- DomainName *string `min:"3" type:"string" required:"true"`
- Limits *Limits `type:"structure"`
- // True if processing is being done to activate the current domain configuration.
- Processing *bool `type:"boolean"`
- // True if IndexDocuments needs to be called to activate the current domain
- // configuration.
- RequiresIndexDocuments *bool `type:"boolean" required:"true"`
- // The number of search instances that are available to process search requests.
- SearchInstanceCount *int64 `min:"1" type:"integer"`
- // The instance type that is being used to process search requests.
- SearchInstanceType *string `type:"string"`
- // The number of partitions across which the search index is spread.
- SearchPartitionCount *int64 `min:"1" type:"integer"`
- // The service endpoint for requesting search results from a search domain.
- SearchService *ServiceEndpoint `type:"structure"`
- }
- // String returns the string representation
- func (s DomainStatus) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s DomainStatus) GoString() string {
- return s.String()
- }
- // Options for a field that contains an array of double-precision 64-bit floating
- // point values. Present if IndexFieldType specifies the field is of type double-array.
- // All options are enabled by default.
- type DoubleArrayOptions struct {
- _ struct{} `type:"structure"`
- // A value to use for the field if the field isn't specified for a document.
- DefaultValue *float64 `type:"double"`
- // Whether facet information can be returned for the field.
- FacetEnabled *bool `type:"boolean"`
- // Whether the contents of the field can be returned in the search results.
- ReturnEnabled *bool `type:"boolean"`
- // Whether the contents of the field are searchable.
- SearchEnabled *bool `type:"boolean"`
- // A list of source fields to map to the field.
- SourceFields *string `type:"string"`
- }
- // String returns the string representation
- func (s DoubleArrayOptions) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s DoubleArrayOptions) GoString() string {
- return s.String()
- }
- // Options for a double-precision 64-bit floating point field. Present if IndexFieldType
- // specifies the field is of type double. All options are enabled by default.
- type DoubleOptions struct {
- _ struct{} `type:"structure"`
- // A value to use for the field if the field isn't specified for a document.
- // This can be important if you are using the field in an expression and that
- // field is not present in every document.
- DefaultValue *float64 `type:"double"`
- // Whether facet information can be returned for the field.
- FacetEnabled *bool `type:"boolean"`
- // Whether the contents of the field can be returned in the search results.
- ReturnEnabled *bool `type:"boolean"`
- // Whether the contents of the field are searchable.
- SearchEnabled *bool `type:"boolean"`
- // Whether the field can be used to sort the search results.
- SortEnabled *bool `type:"boolean"`
- // The name of the source field to map to the field.
- SourceField *string `min:"1" type:"string"`
- }
- // String returns the string representation
- func (s DoubleOptions) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s DoubleOptions) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *DoubleOptions) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "DoubleOptions"}
- if s.SourceField != nil && len(*s.SourceField) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("SourceField", 1))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // A named expression that can be evaluated at search time. Can be used to sort
- // the search results, define other expressions, or return computed information
- // in the search results.
- type Expression struct {
- _ struct{} `type:"structure"`
- // Names must begin with a letter and can contain the following characters:
- // a-z (lowercase), 0-9, and _ (underscore).
- ExpressionName *string `min:"1" type:"string" required:"true"`
- // The expression to evaluate for sorting while processing a search request.
- // The Expression syntax is based on JavaScript expressions. For more information,
- // see Configuring Expressions (http://docs.aws.amazon.com/cloudsearch/latest/developerguide/configuring-expressions.html"
- // target="_blank) in the Amazon CloudSearch Developer Guide.
- ExpressionValue *string `min:"1" type:"string" required:"true"`
- }
- // String returns the string representation
- func (s Expression) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s Expression) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *Expression) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "Expression"}
- if s.ExpressionName == nil {
- invalidParams.Add(request.NewErrParamRequired("ExpressionName"))
- }
- if s.ExpressionName != nil && len(*s.ExpressionName) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("ExpressionName", 1))
- }
- if s.ExpressionValue == nil {
- invalidParams.Add(request.NewErrParamRequired("ExpressionValue"))
- }
- if s.ExpressionValue != nil && len(*s.ExpressionValue) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("ExpressionValue", 1))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // The value of an Expression and its current status.
- type ExpressionStatus struct {
- _ struct{} `type:"structure"`
- // The expression that is evaluated for sorting while processing a search request.
- Options *Expression `type:"structure" required:"true"`
- // The status of domain configuration option.
- Status *OptionStatus `type:"structure" required:"true"`
- }
- // String returns the string representation
- func (s ExpressionStatus) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s ExpressionStatus) GoString() string {
- return s.String()
- }
- // Container for the parameters to the IndexDocuments operation. Specifies the
- // name of the domain you want to re-index.
- type IndexDocumentsInput struct {
- _ struct{} `type:"structure"`
- // A string that represents the name of a domain. Domain names are unique across
- // the domains owned by an account within an AWS region. Domain names start
- // with a letter or number and can contain the following characters: a-z (lowercase),
- // 0-9, and - (hyphen).
- DomainName *string `min:"3" type:"string" required:"true"`
- }
- // String returns the string representation
- func (s IndexDocumentsInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s IndexDocumentsInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *IndexDocumentsInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "IndexDocumentsInput"}
- if s.DomainName == nil {
- invalidParams.Add(request.NewErrParamRequired("DomainName"))
- }
- if s.DomainName != nil && len(*s.DomainName) < 3 {
- invalidParams.Add(request.NewErrParamMinLen("DomainName", 3))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // The result of an IndexDocuments request. Contains the status of the indexing
- // operation, including the fields being indexed.
- type IndexDocumentsOutput struct {
- _ struct{} `type:"structure"`
- // The names of the fields that are currently being indexed.
- FieldNames []*string `type:"list"`
- }
- // String returns the string representation
- func (s IndexDocumentsOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s IndexDocumentsOutput) GoString() string {
- return s.String()
- }
- // Configuration information for a field in the index, including its name, type,
- // and options. The supported options depend on the IndexFieldType.
- type IndexField struct {
- _ struct{} `type:"structure"`
- // Options for a field that contains an array of dates. Present if IndexFieldType
- // specifies the field is of type date-array. All options are enabled by default.
- DateArrayOptions *DateArrayOptions `type:"structure"`
- // Options for a date field. Dates and times are specified in UTC (Coordinated
- // Universal Time) according to IETF RFC3339: yyyy-mm-ddT00:00:00Z. Present
- // if IndexFieldType specifies the field is of type date. All options are enabled
- // by default.
- DateOptions *DateOptions `type:"structure"`
- // Options for a field that contains an array of double-precision 64-bit floating
- // point values. Present if IndexFieldType specifies the field is of type double-array.
- // All options are enabled by default.
- DoubleArrayOptions *DoubleArrayOptions `type:"structure"`
- // Options for a double-precision 64-bit floating point field. Present if IndexFieldType
- // specifies the field is of type double. All options are enabled by default.
- DoubleOptions *DoubleOptions `type:"structure"`
- // A string that represents the name of an index field. CloudSearch supports
- // regular index fields as well as dynamic fields. A dynamic field's name defines
- // a pattern that begins or ends with a wildcard. Any document fields that don't
- // map to a regular index field but do match a dynamic field's pattern are configured
- // with the dynamic field's indexing options.
- //
- // Regular field names begin with a letter and can contain the following characters:
- // a-z (lowercase), 0-9, and _ (underscore). Dynamic field names must begin
- // or end with a wildcard (*). The wildcard can also be the only character in
- // a dynamic field name. Multiple wildcards, and wildcards embedded within a
- // string are not supported.
- //
- // The name score is reserved and cannot be used as a field name. To reference
- // a document's ID, you can use the name _id.
- IndexFieldName *string `min:"1" type:"string" required:"true"`
- // The type of field. The valid options for a field depend on the field type.
- // For more information about the supported field types, see Configuring Index
- // Fields (http://docs.aws.amazon.com/cloudsearch/latest/developerguide/configuring-index-fields.html"
- // target="_blank) in the Amazon CloudSearch Developer Guide.
- IndexFieldType *string `type:"string" required:"true" enum:"IndexFieldType"`
- // Options for a field that contains an array of 64-bit signed integers. Present
- // if IndexFieldType specifies the field is of type int-array. All options are
- // enabled by default.
- IntArrayOptions *IntArrayOptions `type:"structure"`
- // Options for a 64-bit signed integer field. Present if IndexFieldType specifies
- // the field is of type int. All options are enabled by default.
- IntOptions *IntOptions `type:"structure"`
- // Options for a latlon field. A latlon field contains a location stored as
- // a latitude and longitude value pair. Present if IndexFieldType specifies
- // the field is of type latlon. All options are enabled by default.
- LatLonOptions *LatLonOptions `type:"structure"`
- // Options for a field that contains an array of literal strings. Present if
- // IndexFieldType specifies the field is of type literal-array. All options
- // are enabled by default.
- LiteralArrayOptions *LiteralArrayOptions `type:"structure"`
- // Options for literal field. Present if IndexFieldType specifies the field
- // is of type literal. All options are enabled by default.
- LiteralOptions *LiteralOptions `type:"structure"`
- // Options for a field that contains an array of text strings. Present if IndexFieldType
- // specifies the field is of type text-array. A text-array field is always searchable.
- // All options are enabled by default.
- TextArrayOptions *TextArrayOptions `type:"structure"`
- // Options for text field. Present if IndexFieldType specifies the field is
- // of type text. A text field is always searchable. All options are enabled
- // by default.
- TextOptions *TextOptions `type:"structure"`
- }
- // String returns the string representation
- func (s IndexField) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s IndexField) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *IndexField) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "IndexField"}
- if s.IndexFieldName == nil {
- invalidParams.Add(request.NewErrParamRequired("IndexFieldName"))
- }
- if s.IndexFieldName != nil && len(*s.IndexFieldName) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("IndexFieldName", 1))
- }
- if s.IndexFieldType == nil {
- invalidParams.Add(request.NewErrParamRequired("IndexFieldType"))
- }
- if s.DateOptions != nil {
- if err := s.DateOptions.Validate(); err != nil {
- invalidParams.AddNested("DateOptions", err.(request.ErrInvalidParams))
- }
- }
- if s.DoubleOptions != nil {
- if err := s.DoubleOptions.Validate(); err != nil {
- invalidParams.AddNested("DoubleOptions", err.(request.ErrInvalidParams))
- }
- }
- if s.IntOptions != nil {
- if err := s.IntOptions.Validate(); err != nil {
- invalidParams.AddNested("IntOptions", err.(request.ErrInvalidParams))
- }
- }
- if s.LatLonOptions != nil {
- if err := s.LatLonOptions.Validate(); err != nil {
- invalidParams.AddNested("LatLonOptions", err.(request.ErrInvalidParams))
- }
- }
- if s.LiteralOptions != nil {
- if err := s.LiteralOptions.Validate(); err != nil {
- invalidParams.AddNested("LiteralOptions", err.(request.ErrInvalidParams))
- }
- }
- if s.TextOptions != nil {
- if err := s.TextOptions.Validate(); err != nil {
- invalidParams.AddNested("TextOptions", err.(request.ErrInvalidParams))
- }
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // The value of an IndexField and its current status.
- type IndexFieldStatus struct {
- _ struct{} `type:"structure"`
- // Configuration information for a field in the index, including its name, type,
- // and options. The supported options depend on the IndexFieldType.
- Options *IndexField `type:"structure" required:"true"`
- // The status of domain configuration option.
- Status *OptionStatus `type:"structure" required:"true"`
- }
- // String returns the string representation
- func (s IndexFieldStatus) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s IndexFieldStatus) GoString() string {
- return s.String()
- }
- // Options for a field that contains an array of 64-bit signed integers. Present
- // if IndexFieldType specifies the field is of type int-array. All options are
- // enabled by default.
- type IntArrayOptions struct {
- _ struct{} `type:"structure"`
- // A value to use for the field if the field isn't specified for a document.
- DefaultValue *int64 `type:"long"`
- // Whether facet information can be returned for the field.
- FacetEnabled *bool `type:"boolean"`
- // Whether the contents of the field can be returned in the search results.
- ReturnEnabled *bool `type:"boolean"`
- // Whether the contents of the field are searchable.
- SearchEnabled *bool `type:"boolean"`
- // A list of source fields to map to the field.
- SourceFields *string `type:"string"`
- }
- // String returns the string representation
- func (s IntArrayOptions) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s IntArrayOptions) GoString() string {
- return s.String()
- }
- // Options for a 64-bit signed integer field. Present if IndexFieldType specifies
- // the field is of type int. All options are enabled by default.
- type IntOptions struct {
- _ struct{} `type:"structure"`
- // A value to use for the field if the field isn't specified for a document.
- // This can be important if you are using the field in an expression and that
- // field is not present in every document.
- DefaultValue *int64 `type:"long"`
- // Whether facet information can be returned for the field.
- FacetEnabled *bool `type:"boolean"`
- // Whether the contents of the field can be returned in the search results.
- ReturnEnabled *bool `type:"boolean"`
- // Whether the contents of the field are searchable.
- SearchEnabled *bool `type:"boolean"`
- // Whether the field can be used to sort the search results.
- SortEnabled *bool `type:"boolean"`
- // The name of the source field to map to the field.
- SourceField *string `min:"1" type:"string"`
- }
- // String returns the string representation
- func (s IntOptions) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s IntOptions) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *IntOptions) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "IntOptions"}
- if s.SourceField != nil && len(*s.SourceField) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("SourceField", 1))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // Options for a latlon field. A latlon field contains a location stored as
- // a latitude and longitude value pair. Present if IndexFieldType specifies
- // the field is of type latlon. All options are enabled by default.
- type LatLonOptions struct {
- _ struct{} `type:"structure"`
- // A value to use for the field if the field isn't specified for a document.
- DefaultValue *string `type:"string"`
- // Whether facet information can be returned for the field.
- FacetEnabled *bool `type:"boolean"`
- // Whether the contents of the field can be returned in the search results.
- ReturnEnabled *bool `type:"boolean"`
- // Whether the contents of the field are searchable.
- SearchEnabled *bool `type:"boolean"`
- // Whether the field can be used to sort the search results.
- SortEnabled *bool `type:"boolean"`
- // A string that represents the name of an index field. CloudSearch supports
- // regular index fields as well as dynamic fields. A dynamic field's name defines
- // a pattern that begins or ends with a wildcard. Any document fields that don't
- // map to a regular index field but do match a dynamic field's pattern are configured
- // with the dynamic field's indexing options.
- //
- // Regular field names begin with a letter and can contain the following characters:
- // a-z (lowercase), 0-9, and _ (underscore). Dynamic field names must begin
- // or end with a wildcard (*). The wildcard can also be the only character in
- // a dynamic field name. Multiple wildcards, and wildcards embedded within a
- // string are not supported.
- //
- // The name score is reserved and cannot be used as a field name. To reference
- // a document's ID, you can use the name _id.
- SourceField *string `min:"1" type:"string"`
- }
- // String returns the string representation
- func (s LatLonOptions) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s LatLonOptions) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *LatLonOptions) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "LatLonOptions"}
- if s.SourceField != nil && len(*s.SourceField) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("SourceField", 1))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- type Limits struct {
- _ struct{} `type:"structure"`
- MaximumPartitionCount *int64 `min:"1" type:"integer" required:"true"`
- MaximumReplicationCount *int64 `min:"1" type:"integer" required:"true"`
- }
- // String returns the string representation
- func (s Limits) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s Limits) GoString() string {
- return s.String()
- }
- type ListDomainNamesInput struct {
- _ struct{} `type:"structure"`
- }
- // String returns the string representation
- func (s ListDomainNamesInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s ListDomainNamesInput) GoString() string {
- return s.String()
- }
- // The result of a ListDomainNames request. Contains a list of the domains owned
- // by an account.
- type ListDomainNamesOutput struct {
- _ struct{} `type:"structure"`
- // The names of the search domains owned by an account.
- DomainNames map[string]*string `type:"map"`
- }
- // String returns the string representation
- func (s ListDomainNamesOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s ListDomainNamesOutput) GoString() string {
- return s.String()
- }
- // Options for a field that contains an array of literal strings. Present if
- // IndexFieldType specifies the field is of type literal-array. All options
- // are enabled by default.
- type LiteralArrayOptions struct {
- _ struct{} `type:"structure"`
- // A value to use for the field if the field isn't specified for a document.
- DefaultValue *string `type:"string"`
- // Whether facet information can be returned for the field.
- FacetEnabled *bool `type:"boolean"`
- // Whether the contents of the field can be returned in the search results.
- ReturnEnabled *bool `type:"boolean"`
- // Whether the contents of the field are searchable.
- SearchEnabled *bool `type:"boolean"`
- // A list of source fields to map to the field.
- SourceFields *string `type:"string"`
- }
- // String returns the string representation
- func (s LiteralArrayOptions) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s LiteralArrayOptions) GoString() string {
- return s.String()
- }
- // Options for literal field. Present if IndexFieldType specifies the field
- // is of type literal. All options are enabled by default.
- type LiteralOptions struct {
- _ struct{} `type:"structure"`
- // A value to use for the field if the field isn't specified for a document.
- DefaultValue *string `type:"string"`
- // Whether facet information can be returned for the field.
- FacetEnabled *bool `type:"boolean"`
- // Whether the contents of the field can be returned in the search results.
- ReturnEnabled *bool `type:"boolean"`
- // Whether the contents of the field are searchable.
- SearchEnabled *bool `type:"boolean"`
- // Whether the field can be used to sort the search results.
- SortEnabled *bool `type:"boolean"`
- // A string that represents the name of an index field. CloudSearch supports
- // regular index fields as well as dynamic fields. A dynamic field's name defines
- // a pattern that begins or ends with a wildcard. Any document fields that don't
- // map to a regular index field but do match a dynamic field's pattern are configured
- // with the dynamic field's indexing options.
- //
- // Regular field names begin with a letter and can contain the following characters:
- // a-z (lowercase), 0-9, and _ (underscore). Dynamic field names must begin
- // or end with a wildcard (*). The wildcard can also be the only character in
- // a dynamic field name. Multiple wildcards, and wildcards embedded within a
- // string are not supported.
- //
- // The name score is reserved and cannot be used as a field name. To reference
- // a document's ID, you can use the name _id.
- SourceField *string `min:"1" type:"string"`
- }
- // String returns the string representation
- func (s LiteralOptions) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s LiteralOptions) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *LiteralOptions) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "LiteralOptions"}
- if s.SourceField != nil && len(*s.SourceField) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("SourceField", 1))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // The status of domain configuration option.
- type OptionStatus struct {
- _ struct{} `type:"structure"`
- // A timestamp for when this option was created.
- CreationDate *time.Time `type:"timestamp" timestampFormat:"iso8601" required:"true"`
- // Indicates that the option will be deleted once processing is complete.
- PendingDeletion *bool `type:"boolean"`
- // The state of processing a change to an option. Possible values:
- //
- // RequiresIndexDocuments: the option's latest value will not be deployed
- // until IndexDocuments has been called and indexing is complete. Processing:
- // the option's latest value is in the process of being activated. Active:
- // the option's latest value is completely deployed. FailedToValidate: the
- // option value is not compatible with the domain's data and cannot be used
- // to index the data. You must either modify the option value or update or remove
- // the incompatible documents.
- State *string `type:"string" required:"true" enum:"OptionState"`
- // A timestamp for when this option was last updated.
- UpdateDate *time.Time `type:"timestamp" timestampFormat:"iso8601" required:"true"`
- // A unique integer that indicates when this option was last updated.
- UpdateVersion *int64 `type:"integer"`
- }
- // String returns the string representation
- func (s OptionStatus) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s OptionStatus) GoString() string {
- return s.String()
- }
- // The desired instance type and desired number of replicas of each index partition.
- type ScalingParameters struct {
- _ struct{} `type:"structure"`
- // The instance type that you want to preconfigure for your domain. For example,
- // search.m1.small.
- DesiredInstanceType *string `type:"string" enum:"PartitionInstanceType"`
- // The number of partitions you want to preconfigure for your domain. Only valid
- // when you select m2.2xlarge as the desired instance type.
- DesiredPartitionCount *int64 `type:"integer"`
- // The number of replicas you want to preconfigure for each index partition.
- DesiredReplicationCount *int64 `type:"integer"`
- }
- // String returns the string representation
- func (s ScalingParameters) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s ScalingParameters) GoString() string {
- return s.String()
- }
- // The status and configuration of a search domain's scaling parameters.
- type ScalingParametersStatus struct {
- _ struct{} `type:"structure"`
- // The desired instance type and desired number of replicas of each index partition.
- Options *ScalingParameters `type:"structure" required:"true"`
- // The status of domain configuration option.
- Status *OptionStatus `type:"structure" required:"true"`
- }
- // String returns the string representation
- func (s ScalingParametersStatus) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s ScalingParametersStatus) GoString() string {
- return s.String()
- }
- // The endpoint to which service requests can be submitted.
- type ServiceEndpoint struct {
- _ struct{} `type:"structure"`
- // The endpoint to which service requests can be submitted. For example, search-imdb-movies-oopcnjfn6ugofer3zx5iadxxca.eu-west-1.cloudsearch.amazonaws.com
- // or doc-imdb-movies-oopcnjfn6ugofer3zx5iadxxca.eu-west-1.cloudsearch.amazonaws.com.
- Endpoint *string `type:"string"`
- }
- // String returns the string representation
- func (s ServiceEndpoint) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s ServiceEndpoint) GoString() string {
- return s.String()
- }
- // Configuration information for a search suggester. Each suggester has a unique
- // name and specifies the text field you want to use for suggestions. The following
- // options can be configured for a suggester: FuzzyMatching, SortExpression.
- type Suggester struct {
- _ struct{} `type:"structure"`
- // Options for a search suggester.
- DocumentSuggesterOptions *DocumentSuggesterOptions `type:"structure" required:"true"`
- // Names must begin with a letter and can contain the following characters:
- // a-z (lowercase), 0-9, and _ (underscore).
- SuggesterName *string `min:"1" type:"string" required:"true"`
- }
- // String returns the string representation
- func (s Suggester) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s Suggester) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *Suggester) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "Suggester"}
- if s.DocumentSuggesterOptions == nil {
- invalidParams.Add(request.NewErrParamRequired("DocumentSuggesterOptions"))
- }
- if s.SuggesterName == nil {
- invalidParams.Add(request.NewErrParamRequired("SuggesterName"))
- }
- if s.SuggesterName != nil && len(*s.SuggesterName) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("SuggesterName", 1))
- }
- if s.DocumentSuggesterOptions != nil {
- if err := s.DocumentSuggesterOptions.Validate(); err != nil {
- invalidParams.AddNested("DocumentSuggesterOptions", err.(request.ErrInvalidParams))
- }
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // The value of a Suggester and its current status.
- type SuggesterStatus struct {
- _ struct{} `type:"structure"`
- // Configuration information for a search suggester. Each suggester has a unique
- // name and specifies the text field you want to use for suggestions. The following
- // options can be configured for a suggester: FuzzyMatching, SortExpression.
- Options *Suggester `type:"structure" required:"true"`
- // The status of domain configuration option.
- Status *OptionStatus `type:"structure" required:"true"`
- }
- // String returns the string representation
- func (s SuggesterStatus) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s SuggesterStatus) GoString() string {
- return s.String()
- }
- // Options for a field that contains an array of text strings. Present if IndexFieldType
- // specifies the field is of type text-array. A text-array field is always searchable.
- // All options are enabled by default.
- type TextArrayOptions struct {
- _ struct{} `type:"structure"`
- // The name of an analysis scheme for a text-array field.
- AnalysisScheme *string `type:"string"`
- // A value to use for the field if the field isn't specified for a document.
- DefaultValue *string `type:"string"`
- // Whether highlights can be returned for the field.
- HighlightEnabled *bool `type:"boolean"`
- // Whether the contents of the field can be returned in the search results.
- ReturnEnabled *bool `type:"boolean"`
- // A list of source fields to map to the field.
- SourceFields *string `type:"string"`
- }
- // String returns the string representation
- func (s TextArrayOptions) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s TextArrayOptions) GoString() string {
- return s.String()
- }
- // Options for text field. Present if IndexFieldType specifies the field is
- // of type text. A text field is always searchable. All options are enabled
- // by default.
- type TextOptions struct {
- _ struct{} `type:"structure"`
- // The name of an analysis scheme for a text field.
- AnalysisScheme *string `type:"string"`
- // A value to use for the field if the field isn't specified for a document.
- DefaultValue *string `type:"string"`
- // Whether highlights can be returned for the field.
- HighlightEnabled *bool `type:"boolean"`
- // Whether the contents of the field can be returned in the search results.
- ReturnEnabled *bool `type:"boolean"`
- // Whether the field can be used to sort the search results.
- SortEnabled *bool `type:"boolean"`
- // A string that represents the name of an index field. CloudSearch supports
- // regular index fields as well as dynamic fields. A dynamic field's name defines
- // a pattern that begins or ends with a wildcard. Any document fields that don't
- // map to a regular index field but do match a dynamic field's pattern are configured
- // with the dynamic field's indexing options.
- //
- // Regular field names begin with a letter and can contain the following characters:
- // a-z (lowercase), 0-9, and _ (underscore). Dynamic field names must begin
- // or end with a wildcard (*). The wildcard can also be the only character in
- // a dynamic field name. Multiple wildcards, and wildcards embedded within a
- // string are not supported.
- //
- // The name score is reserved and cannot be used as a field name. To reference
- // a document's ID, you can use the name _id.
- SourceField *string `min:"1" type:"string"`
- }
- // String returns the string representation
- func (s TextOptions) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s TextOptions) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *TextOptions) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "TextOptions"}
- if s.SourceField != nil && len(*s.SourceField) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("SourceField", 1))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // Container for the parameters to the UpdateAvailabilityOptions operation.
- // Specifies the name of the domain you want to update and the Multi-AZ availability
- // option.
- type UpdateAvailabilityOptionsInput struct {
- _ struct{} `type:"structure"`
- // A string that represents the name of a domain. Domain names are unique across
- // the domains owned by an account within an AWS region. Domain names start
- // with a letter or number and can contain the following characters: a-z (lowercase),
- // 0-9, and - (hyphen).
- DomainName *string `min:"3" type:"string" required:"true"`
- // You expand an existing search domain to a second Availability Zone by setting
- // the Multi-AZ option to true. Similarly, you can turn off the Multi-AZ option
- // to downgrade the domain to a single Availability Zone by setting the Multi-AZ
- // option to false.
- MultiAZ *bool `type:"boolean" required:"true"`
- }
- // String returns the string representation
- func (s UpdateAvailabilityOptionsInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s UpdateAvailabilityOptionsInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *UpdateAvailabilityOptionsInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "UpdateAvailabilityOptionsInput"}
- if s.DomainName == nil {
- invalidParams.Add(request.NewErrParamRequired("DomainName"))
- }
- if s.DomainName != nil && len(*s.DomainName) < 3 {
- invalidParams.Add(request.NewErrParamMinLen("DomainName", 3))
- }
- if s.MultiAZ == nil {
- invalidParams.Add(request.NewErrParamRequired("MultiAZ"))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // The result of a UpdateAvailabilityOptions request. Contains the status of
- // the domain's availability options.
- type UpdateAvailabilityOptionsOutput struct {
- _ struct{} `type:"structure"`
- // The newly-configured availability options. Indicates whether Multi-AZ is
- // enabled for the domain.
- AvailabilityOptions *AvailabilityOptionsStatus `type:"structure"`
- }
- // String returns the string representation
- func (s UpdateAvailabilityOptionsOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s UpdateAvailabilityOptionsOutput) GoString() string {
- return s.String()
- }
- // Container for the parameters to the UpdateScalingParameters operation. Specifies
- // the name of the domain you want to update and the scaling parameters you
- // want to configure.
- type UpdateScalingParametersInput struct {
- _ struct{} `type:"structure"`
- // A string that represents the name of a domain. Domain names are unique across
- // the domains owned by an account within an AWS region. Domain names start
- // with a letter or number and can contain the following characters: a-z (lowercase),
- // 0-9, and - (hyphen).
- DomainName *string `min:"3" type:"string" required:"true"`
- // The desired instance type and desired number of replicas of each index partition.
- ScalingParameters *ScalingParameters `type:"structure" required:"true"`
- }
- // String returns the string representation
- func (s UpdateScalingParametersInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s UpdateScalingParametersInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *UpdateScalingParametersInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "UpdateScalingParametersInput"}
- if s.DomainName == nil {
- invalidParams.Add(request.NewErrParamRequired("DomainName"))
- }
- if s.DomainName != nil && len(*s.DomainName) < 3 {
- invalidParams.Add(request.NewErrParamMinLen("DomainName", 3))
- }
- if s.ScalingParameters == nil {
- invalidParams.Add(request.NewErrParamRequired("ScalingParameters"))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // The result of a UpdateScalingParameters request. Contains the status of the
- // newly-configured scaling parameters.
- type UpdateScalingParametersOutput struct {
- _ struct{} `type:"structure"`
- // The status and configuration of a search domain's scaling parameters.
- ScalingParameters *ScalingParametersStatus `type:"structure" required:"true"`
- }
- // String returns the string representation
- func (s UpdateScalingParametersOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s UpdateScalingParametersOutput) GoString() string {
- return s.String()
- }
- // Container for the parameters to the UpdateServiceAccessPolicies operation.
- // Specifies the name of the domain you want to update and the access rules
- // you want to configure.
- type UpdateServiceAccessPoliciesInput struct {
- _ struct{} `type:"structure"`
- // The access rules you want to configure. These rules replace any existing
- // rules.
- AccessPolicies *string `type:"string" required:"true"`
- // A string that represents the name of a domain. Domain names are unique across
- // the domains owned by an account within an AWS region. Domain names start
- // with a letter or number and can contain the following characters: a-z (lowercase),
- // 0-9, and - (hyphen).
- DomainName *string `min:"3" type:"string" required:"true"`
- }
- // String returns the string representation
- func (s UpdateServiceAccessPoliciesInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s UpdateServiceAccessPoliciesInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *UpdateServiceAccessPoliciesInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "UpdateServiceAccessPoliciesInput"}
- if s.AccessPolicies == nil {
- invalidParams.Add(request.NewErrParamRequired("AccessPolicies"))
- }
- if s.DomainName == nil {
- invalidParams.Add(request.NewErrParamRequired("DomainName"))
- }
- if s.DomainName != nil && len(*s.DomainName) < 3 {
- invalidParams.Add(request.NewErrParamMinLen("DomainName", 3))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // The result of an UpdateServiceAccessPolicies request. Contains the new access
- // policies.
- type UpdateServiceAccessPoliciesOutput struct {
- _ struct{} `type:"structure"`
- // The access rules configured for the domain.
- AccessPolicies *AccessPoliciesStatus `type:"structure" required:"true"`
- }
- // String returns the string representation
- func (s UpdateServiceAccessPoliciesOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s UpdateServiceAccessPoliciesOutput) GoString() string {
- return s.String()
- }
- const (
- // @enum AlgorithmicStemming
- AlgorithmicStemmingNone = "none"
- // @enum AlgorithmicStemming
- AlgorithmicStemmingMinimal = "minimal"
- // @enum AlgorithmicStemming
- AlgorithmicStemmingLight = "light"
- // @enum AlgorithmicStemming
- AlgorithmicStemmingFull = "full"
- )
- // An IETF RFC 4646 (http://tools.ietf.org/html/rfc4646" target="_blank) language
- // code or mul for multiple languages.
- const (
- // @enum AnalysisSchemeLanguage
- AnalysisSchemeLanguageAr = "ar"
- // @enum AnalysisSchemeLanguage
- AnalysisSchemeLanguageBg = "bg"
- // @enum AnalysisSchemeLanguage
- AnalysisSchemeLanguageCa = "ca"
- // @enum AnalysisSchemeLanguage
- AnalysisSchemeLanguageCs = "cs"
- // @enum AnalysisSchemeLanguage
- AnalysisSchemeLanguageDa = "da"
- // @enum AnalysisSchemeLanguage
- AnalysisSchemeLanguageDe = "de"
- // @enum AnalysisSchemeLanguage
- AnalysisSchemeLanguageEl = "el"
- // @enum AnalysisSchemeLanguage
- AnalysisSchemeLanguageEn = "en"
- // @enum AnalysisSchemeLanguage
- AnalysisSchemeLanguageEs = "es"
- // @enum AnalysisSchemeLanguage
- AnalysisSchemeLanguageEu = "eu"
- // @enum AnalysisSchemeLanguage
- AnalysisSchemeLanguageFa = "fa"
- // @enum AnalysisSchemeLanguage
- AnalysisSchemeLanguageFi = "fi"
- // @enum AnalysisSchemeLanguage
- AnalysisSchemeLanguageFr = "fr"
- // @enum AnalysisSchemeLanguage
- AnalysisSchemeLanguageGa = "ga"
- // @enum AnalysisSchemeLanguage
- AnalysisSchemeLanguageGl = "gl"
- // @enum AnalysisSchemeLanguage
- AnalysisSchemeLanguageHe = "he"
- // @enum AnalysisSchemeLanguage
- AnalysisSchemeLanguageHi = "hi"
- // @enum AnalysisSchemeLanguage
- AnalysisSchemeLanguageHu = "hu"
- // @enum AnalysisSchemeLanguage
- AnalysisSchemeLanguageHy = "hy"
- // @enum AnalysisSchemeLanguage
- AnalysisSchemeLanguageId = "id"
- // @enum AnalysisSchemeLanguage
- AnalysisSchemeLanguageIt = "it"
- // @enum AnalysisSchemeLanguage
- AnalysisSchemeLanguageJa = "ja"
- // @enum AnalysisSchemeLanguage
- AnalysisSchemeLanguageKo = "ko"
- // @enum AnalysisSchemeLanguage
- AnalysisSchemeLanguageLv = "lv"
- // @enum AnalysisSchemeLanguage
- AnalysisSchemeLanguageMul = "mul"
- // @enum AnalysisSchemeLanguage
- AnalysisSchemeLanguageNl = "nl"
- // @enum AnalysisSchemeLanguage
- AnalysisSchemeLanguageNo = "no"
- // @enum AnalysisSchemeLanguage
- AnalysisSchemeLanguagePt = "pt"
- // @enum AnalysisSchemeLanguage
- AnalysisSchemeLanguageRo = "ro"
- // @enum AnalysisSchemeLanguage
- AnalysisSchemeLanguageRu = "ru"
- // @enum AnalysisSchemeLanguage
- AnalysisSchemeLanguageSv = "sv"
- // @enum AnalysisSchemeLanguage
- AnalysisSchemeLanguageTh = "th"
- // @enum AnalysisSchemeLanguage
- AnalysisSchemeLanguageTr = "tr"
- // @enum AnalysisSchemeLanguage
- AnalysisSchemeLanguageZhHans = "zh-Hans"
- // @enum AnalysisSchemeLanguage
- AnalysisSchemeLanguageZhHant = "zh-Hant"
- )
- // The type of field. The valid options for a field depend on the field type.
- // For more information about the supported field types, see Configuring Index
- // Fields (http://docs.aws.amazon.com/cloudsearch/latest/developerguide/configuring-index-fields.html"
- // target="_blank) in the Amazon CloudSearch Developer Guide.
- const (
- // @enum IndexFieldType
- IndexFieldTypeInt = "int"
- // @enum IndexFieldType
- IndexFieldTypeDouble = "double"
- // @enum IndexFieldType
- IndexFieldTypeLiteral = "literal"
- // @enum IndexFieldType
- IndexFieldTypeText = "text"
- // @enum IndexFieldType
- IndexFieldTypeDate = "date"
- // @enum IndexFieldType
- IndexFieldTypeLatlon = "latlon"
- // @enum IndexFieldType
- IndexFieldTypeIntArray = "int-array"
- // @enum IndexFieldType
- IndexFieldTypeDoubleArray = "double-array"
- // @enum IndexFieldType
- IndexFieldTypeLiteralArray = "literal-array"
- // @enum IndexFieldType
- IndexFieldTypeTextArray = "text-array"
- // @enum IndexFieldType
- IndexFieldTypeDateArray = "date-array"
- )
- // The state of processing a change to an option. One of:
- //
- // RequiresIndexDocuments: The option's latest value will not be deployed
- // until IndexDocuments has been called and indexing is complete. Processing:
- // The option's latest value is in the process of being activated. Active: The
- // option's latest value is fully deployed. FailedToValidate: The option value
- // is not compatible with the domain's data and cannot be used to index the
- // data. You must either modify the option value or update or remove the incompatible
- // documents.
- const (
- // @enum OptionState
- OptionStateRequiresIndexDocuments = "RequiresIndexDocuments"
- // @enum OptionState
- OptionStateProcessing = "Processing"
- // @enum OptionState
- OptionStateActive = "Active"
- // @enum OptionState
- OptionStateFailedToValidate = "FailedToValidate"
- )
- // The instance type (such as search.m1.small) on which an index partition is
- // hosted.
- const (
- // @enum PartitionInstanceType
- PartitionInstanceTypeSearchM1Small = "search.m1.small"
- // @enum PartitionInstanceType
- PartitionInstanceTypeSearchM1Large = "search.m1.large"
- // @enum PartitionInstanceType
- PartitionInstanceTypeSearchM2Xlarge = "search.m2.xlarge"
- // @enum PartitionInstanceType
- PartitionInstanceTypeSearchM22xlarge = "search.m2.2xlarge"
- // @enum PartitionInstanceType
- PartitionInstanceTypeSearchM3Medium = "search.m3.medium"
- // @enum PartitionInstanceType
- PartitionInstanceTypeSearchM3Large = "search.m3.large"
- // @enum PartitionInstanceType
- PartitionInstanceTypeSearchM3Xlarge = "search.m3.xlarge"
- // @enum PartitionInstanceType
- PartitionInstanceTypeSearchM32xlarge = "search.m3.2xlarge"
- )
- const (
- // @enum SuggesterFuzzyMatching
- SuggesterFuzzyMatchingNone = "none"
- // @enum SuggesterFuzzyMatching
- SuggesterFuzzyMatchingLow = "low"
- // @enum SuggesterFuzzyMatching
- SuggesterFuzzyMatchingHigh = "high"
- )
|