api.go 144 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103
  1. // THIS FILE IS AUTOMATICALLY GENERATED. DO NOT EDIT.
  2. // Package cloudsearch provides a client for Amazon CloudSearch.
  3. package cloudsearch
  4. import (
  5. "time"
  6. "github.com/aws/aws-sdk-go/aws/awsutil"
  7. "github.com/aws/aws-sdk-go/aws/request"
  8. )
  9. const opBuildSuggesters = "BuildSuggesters"
  10. // BuildSuggestersRequest generates a "aws/request.Request" representing the
  11. // client's request for the BuildSuggesters operation. The "output" return
  12. // value can be used to capture response data after the request's "Send" method
  13. // is called.
  14. //
  15. // Creating a request object using this method should be used when you want to inject
  16. // custom logic into the request's lifecycle using a custom handler, or if you want to
  17. // access properties on the request object before or after sending the request. If
  18. // you just want the service response, call the BuildSuggesters method directly
  19. // instead.
  20. //
  21. // Note: You must call the "Send" method on the returned request object in order
  22. // to execute the request.
  23. //
  24. // // Example sending a request using the BuildSuggestersRequest method.
  25. // req, resp := client.BuildSuggestersRequest(params)
  26. //
  27. // err := req.Send()
  28. // if err == nil { // resp is now filled
  29. // fmt.Println(resp)
  30. // }
  31. //
  32. func (c *CloudSearch) BuildSuggestersRequest(input *BuildSuggestersInput) (req *request.Request, output *BuildSuggestersOutput) {
  33. op := &request.Operation{
  34. Name: opBuildSuggesters,
  35. HTTPMethod: "POST",
  36. HTTPPath: "/",
  37. }
  38. if input == nil {
  39. input = &BuildSuggestersInput{}
  40. }
  41. req = c.newRequest(op, input, output)
  42. output = &BuildSuggestersOutput{}
  43. req.Data = output
  44. return
  45. }
  46. // Indexes the search suggestions. For more information, see Configuring Suggesters
  47. // (http://docs.aws.amazon.com/cloudsearch/latest/developerguide/getting-suggestions.html#configuring-suggesters)
  48. // in the Amazon CloudSearch Developer Guide.
  49. func (c *CloudSearch) BuildSuggesters(input *BuildSuggestersInput) (*BuildSuggestersOutput, error) {
  50. req, out := c.BuildSuggestersRequest(input)
  51. err := req.Send()
  52. return out, err
  53. }
  54. const opCreateDomain = "CreateDomain"
  55. // CreateDomainRequest generates a "aws/request.Request" representing the
  56. // client's request for the CreateDomain operation. The "output" return
  57. // value can be used to capture response data after the request's "Send" method
  58. // is called.
  59. //
  60. // Creating a request object using this method should be used when you want to inject
  61. // custom logic into the request's lifecycle using a custom handler, or if you want to
  62. // access properties on the request object before or after sending the request. If
  63. // you just want the service response, call the CreateDomain method directly
  64. // instead.
  65. //
  66. // Note: You must call the "Send" method on the returned request object in order
  67. // to execute the request.
  68. //
  69. // // Example sending a request using the CreateDomainRequest method.
  70. // req, resp := client.CreateDomainRequest(params)
  71. //
  72. // err := req.Send()
  73. // if err == nil { // resp is now filled
  74. // fmt.Println(resp)
  75. // }
  76. //
  77. func (c *CloudSearch) CreateDomainRequest(input *CreateDomainInput) (req *request.Request, output *CreateDomainOutput) {
  78. op := &request.Operation{
  79. Name: opCreateDomain,
  80. HTTPMethod: "POST",
  81. HTTPPath: "/",
  82. }
  83. if input == nil {
  84. input = &CreateDomainInput{}
  85. }
  86. req = c.newRequest(op, input, output)
  87. output = &CreateDomainOutput{}
  88. req.Data = output
  89. return
  90. }
  91. // Creates a new search domain. For more information, see Creating a Search
  92. // Domain (http://docs.aws.amazon.com/cloudsearch/latest/developerguide/creating-domains.html"
  93. // target="_blank) in the Amazon CloudSearch Developer Guide.
  94. func (c *CloudSearch) CreateDomain(input *CreateDomainInput) (*CreateDomainOutput, error) {
  95. req, out := c.CreateDomainRequest(input)
  96. err := req.Send()
  97. return out, err
  98. }
  99. const opDefineAnalysisScheme = "DefineAnalysisScheme"
  100. // DefineAnalysisSchemeRequest generates a "aws/request.Request" representing the
  101. // client's request for the DefineAnalysisScheme operation. The "output" return
  102. // value can be used to capture response data after the request's "Send" method
  103. // is called.
  104. //
  105. // Creating a request object using this method should be used when you want to inject
  106. // custom logic into the request's lifecycle using a custom handler, or if you want to
  107. // access properties on the request object before or after sending the request. If
  108. // you just want the service response, call the DefineAnalysisScheme method directly
  109. // instead.
  110. //
  111. // Note: You must call the "Send" method on the returned request object in order
  112. // to execute the request.
  113. //
  114. // // Example sending a request using the DefineAnalysisSchemeRequest method.
  115. // req, resp := client.DefineAnalysisSchemeRequest(params)
  116. //
  117. // err := req.Send()
  118. // if err == nil { // resp is now filled
  119. // fmt.Println(resp)
  120. // }
  121. //
  122. func (c *CloudSearch) DefineAnalysisSchemeRequest(input *DefineAnalysisSchemeInput) (req *request.Request, output *DefineAnalysisSchemeOutput) {
  123. op := &request.Operation{
  124. Name: opDefineAnalysisScheme,
  125. HTTPMethod: "POST",
  126. HTTPPath: "/",
  127. }
  128. if input == nil {
  129. input = &DefineAnalysisSchemeInput{}
  130. }
  131. req = c.newRequest(op, input, output)
  132. output = &DefineAnalysisSchemeOutput{}
  133. req.Data = output
  134. return
  135. }
  136. // Configures an analysis scheme that can be applied to a text or text-array
  137. // field to define language-specific text processing options. For more information,
  138. // see Configuring Analysis Schemes (http://docs.aws.amazon.com/cloudsearch/latest/developerguide/configuring-analysis-schemes.html"
  139. // target="_blank) in the Amazon CloudSearch Developer Guide.
  140. func (c *CloudSearch) DefineAnalysisScheme(input *DefineAnalysisSchemeInput) (*DefineAnalysisSchemeOutput, error) {
  141. req, out := c.DefineAnalysisSchemeRequest(input)
  142. err := req.Send()
  143. return out, err
  144. }
  145. const opDefineExpression = "DefineExpression"
  146. // DefineExpressionRequest generates a "aws/request.Request" representing the
  147. // client's request for the DefineExpression operation. The "output" return
  148. // value can be used to capture response data after the request's "Send" method
  149. // is called.
  150. //
  151. // Creating a request object using this method should be used when you want to inject
  152. // custom logic into the request's lifecycle using a custom handler, or if you want to
  153. // access properties on the request object before or after sending the request. If
  154. // you just want the service response, call the DefineExpression method directly
  155. // instead.
  156. //
  157. // Note: You must call the "Send" method on the returned request object in order
  158. // to execute the request.
  159. //
  160. // // Example sending a request using the DefineExpressionRequest method.
  161. // req, resp := client.DefineExpressionRequest(params)
  162. //
  163. // err := req.Send()
  164. // if err == nil { // resp is now filled
  165. // fmt.Println(resp)
  166. // }
  167. //
  168. func (c *CloudSearch) DefineExpressionRequest(input *DefineExpressionInput) (req *request.Request, output *DefineExpressionOutput) {
  169. op := &request.Operation{
  170. Name: opDefineExpression,
  171. HTTPMethod: "POST",
  172. HTTPPath: "/",
  173. }
  174. if input == nil {
  175. input = &DefineExpressionInput{}
  176. }
  177. req = c.newRequest(op, input, output)
  178. output = &DefineExpressionOutput{}
  179. req.Data = output
  180. return
  181. }
  182. // Configures an Expression for the search domain. Used to create new expressions
  183. // and modify existing ones. If the expression exists, the new configuration
  184. // replaces the old one. For more information, see Configuring Expressions (http://docs.aws.amazon.com/cloudsearch/latest/developerguide/configuring-expressions.html"
  185. // target="_blank) in the Amazon CloudSearch Developer Guide.
  186. func (c *CloudSearch) DefineExpression(input *DefineExpressionInput) (*DefineExpressionOutput, error) {
  187. req, out := c.DefineExpressionRequest(input)
  188. err := req.Send()
  189. return out, err
  190. }
  191. const opDefineIndexField = "DefineIndexField"
  192. // DefineIndexFieldRequest generates a "aws/request.Request" representing the
  193. // client's request for the DefineIndexField operation. The "output" return
  194. // value can be used to capture response data after the request's "Send" method
  195. // is called.
  196. //
  197. // Creating a request object using this method should be used when you want to inject
  198. // custom logic into the request's lifecycle using a custom handler, or if you want to
  199. // access properties on the request object before or after sending the request. If
  200. // you just want the service response, call the DefineIndexField method directly
  201. // instead.
  202. //
  203. // Note: You must call the "Send" method on the returned request object in order
  204. // to execute the request.
  205. //
  206. // // Example sending a request using the DefineIndexFieldRequest method.
  207. // req, resp := client.DefineIndexFieldRequest(params)
  208. //
  209. // err := req.Send()
  210. // if err == nil { // resp is now filled
  211. // fmt.Println(resp)
  212. // }
  213. //
  214. func (c *CloudSearch) DefineIndexFieldRequest(input *DefineIndexFieldInput) (req *request.Request, output *DefineIndexFieldOutput) {
  215. op := &request.Operation{
  216. Name: opDefineIndexField,
  217. HTTPMethod: "POST",
  218. HTTPPath: "/",
  219. }
  220. if input == nil {
  221. input = &DefineIndexFieldInput{}
  222. }
  223. req = c.newRequest(op, input, output)
  224. output = &DefineIndexFieldOutput{}
  225. req.Data = output
  226. return
  227. }
  228. // Configures an IndexField for the search domain. Used to create new fields
  229. // and modify existing ones. You must specify the name of the domain you are
  230. // configuring and an index field configuration. The index field configuration
  231. // specifies a unique name, the index field type, and the options you want to
  232. // configure for the field. The options you can specify depend on the IndexFieldType.
  233. // If the field exists, the new configuration replaces the old one. For more
  234. // information, see Configuring Index Fields (http://docs.aws.amazon.com/cloudsearch/latest/developerguide/configuring-index-fields.html"
  235. // target="_blank) in the Amazon CloudSearch Developer Guide.
  236. func (c *CloudSearch) DefineIndexField(input *DefineIndexFieldInput) (*DefineIndexFieldOutput, error) {
  237. req, out := c.DefineIndexFieldRequest(input)
  238. err := req.Send()
  239. return out, err
  240. }
  241. const opDefineSuggester = "DefineSuggester"
  242. // DefineSuggesterRequest generates a "aws/request.Request" representing the
  243. // client's request for the DefineSuggester operation. The "output" return
  244. // value can be used to capture response data after the request's "Send" method
  245. // is called.
  246. //
  247. // Creating a request object using this method should be used when you want to inject
  248. // custom logic into the request's lifecycle using a custom handler, or if you want to
  249. // access properties on the request object before or after sending the request. If
  250. // you just want the service response, call the DefineSuggester method directly
  251. // instead.
  252. //
  253. // Note: You must call the "Send" method on the returned request object in order
  254. // to execute the request.
  255. //
  256. // // Example sending a request using the DefineSuggesterRequest method.
  257. // req, resp := client.DefineSuggesterRequest(params)
  258. //
  259. // err := req.Send()
  260. // if err == nil { // resp is now filled
  261. // fmt.Println(resp)
  262. // }
  263. //
  264. func (c *CloudSearch) DefineSuggesterRequest(input *DefineSuggesterInput) (req *request.Request, output *DefineSuggesterOutput) {
  265. op := &request.Operation{
  266. Name: opDefineSuggester,
  267. HTTPMethod: "POST",
  268. HTTPPath: "/",
  269. }
  270. if input == nil {
  271. input = &DefineSuggesterInput{}
  272. }
  273. req = c.newRequest(op, input, output)
  274. output = &DefineSuggesterOutput{}
  275. req.Data = output
  276. return
  277. }
  278. // Configures a suggester for a domain. A suggester enables you to display possible
  279. // matches before users finish typing their queries. When you configure a suggester,
  280. // you must specify the name of the text field you want to search for possible
  281. // matches and a unique name for the suggester. For more information, see Getting
  282. // Search Suggestions (http://docs.aws.amazon.com/cloudsearch/latest/developerguide/getting-suggestions.html"
  283. // target="_blank) in the Amazon CloudSearch Developer Guide.
  284. func (c *CloudSearch) DefineSuggester(input *DefineSuggesterInput) (*DefineSuggesterOutput, error) {
  285. req, out := c.DefineSuggesterRequest(input)
  286. err := req.Send()
  287. return out, err
  288. }
  289. const opDeleteAnalysisScheme = "DeleteAnalysisScheme"
  290. // DeleteAnalysisSchemeRequest generates a "aws/request.Request" representing the
  291. // client's request for the DeleteAnalysisScheme operation. The "output" return
  292. // value can be used to capture response data after the request's "Send" method
  293. // is called.
  294. //
  295. // Creating a request object using this method should be used when you want to inject
  296. // custom logic into the request's lifecycle using a custom handler, or if you want to
  297. // access properties on the request object before or after sending the request. If
  298. // you just want the service response, call the DeleteAnalysisScheme method directly
  299. // instead.
  300. //
  301. // Note: You must call the "Send" method on the returned request object in order
  302. // to execute the request.
  303. //
  304. // // Example sending a request using the DeleteAnalysisSchemeRequest method.
  305. // req, resp := client.DeleteAnalysisSchemeRequest(params)
  306. //
  307. // err := req.Send()
  308. // if err == nil { // resp is now filled
  309. // fmt.Println(resp)
  310. // }
  311. //
  312. func (c *CloudSearch) DeleteAnalysisSchemeRequest(input *DeleteAnalysisSchemeInput) (req *request.Request, output *DeleteAnalysisSchemeOutput) {
  313. op := &request.Operation{
  314. Name: opDeleteAnalysisScheme,
  315. HTTPMethod: "POST",
  316. HTTPPath: "/",
  317. }
  318. if input == nil {
  319. input = &DeleteAnalysisSchemeInput{}
  320. }
  321. req = c.newRequest(op, input, output)
  322. output = &DeleteAnalysisSchemeOutput{}
  323. req.Data = output
  324. return
  325. }
  326. // Deletes an analysis scheme. For more information, see Configuring Analysis
  327. // Schemes (http://docs.aws.amazon.com/cloudsearch/latest/developerguide/configuring-analysis-schemes.html"
  328. // target="_blank) in the Amazon CloudSearch Developer Guide.
  329. func (c *CloudSearch) DeleteAnalysisScheme(input *DeleteAnalysisSchemeInput) (*DeleteAnalysisSchemeOutput, error) {
  330. req, out := c.DeleteAnalysisSchemeRequest(input)
  331. err := req.Send()
  332. return out, err
  333. }
  334. const opDeleteDomain = "DeleteDomain"
  335. // DeleteDomainRequest generates a "aws/request.Request" representing the
  336. // client's request for the DeleteDomain operation. The "output" return
  337. // value can be used to capture response data after the request's "Send" method
  338. // is called.
  339. //
  340. // Creating a request object using this method should be used when you want to inject
  341. // custom logic into the request's lifecycle using a custom handler, or if you want to
  342. // access properties on the request object before or after sending the request. If
  343. // you just want the service response, call the DeleteDomain method directly
  344. // instead.
  345. //
  346. // Note: You must call the "Send" method on the returned request object in order
  347. // to execute the request.
  348. //
  349. // // Example sending a request using the DeleteDomainRequest method.
  350. // req, resp := client.DeleteDomainRequest(params)
  351. //
  352. // err := req.Send()
  353. // if err == nil { // resp is now filled
  354. // fmt.Println(resp)
  355. // }
  356. //
  357. func (c *CloudSearch) DeleteDomainRequest(input *DeleteDomainInput) (req *request.Request, output *DeleteDomainOutput) {
  358. op := &request.Operation{
  359. Name: opDeleteDomain,
  360. HTTPMethod: "POST",
  361. HTTPPath: "/",
  362. }
  363. if input == nil {
  364. input = &DeleteDomainInput{}
  365. }
  366. req = c.newRequest(op, input, output)
  367. output = &DeleteDomainOutput{}
  368. req.Data = output
  369. return
  370. }
  371. // Permanently deletes a search domain and all of its data. Once a domain has
  372. // been deleted, it cannot be recovered. For more information, see Deleting
  373. // a Search Domain (http://docs.aws.amazon.com/cloudsearch/latest/developerguide/deleting-domains.html"
  374. // target="_blank) in the Amazon CloudSearch Developer Guide.
  375. func (c *CloudSearch) DeleteDomain(input *DeleteDomainInput) (*DeleteDomainOutput, error) {
  376. req, out := c.DeleteDomainRequest(input)
  377. err := req.Send()
  378. return out, err
  379. }
  380. const opDeleteExpression = "DeleteExpression"
  381. // DeleteExpressionRequest generates a "aws/request.Request" representing the
  382. // client's request for the DeleteExpression operation. The "output" return
  383. // value can be used to capture response data after the request's "Send" method
  384. // is called.
  385. //
  386. // Creating a request object using this method should be used when you want to inject
  387. // custom logic into the request's lifecycle using a custom handler, or if you want to
  388. // access properties on the request object before or after sending the request. If
  389. // you just want the service response, call the DeleteExpression method directly
  390. // instead.
  391. //
  392. // Note: You must call the "Send" method on the returned request object in order
  393. // to execute the request.
  394. //
  395. // // Example sending a request using the DeleteExpressionRequest method.
  396. // req, resp := client.DeleteExpressionRequest(params)
  397. //
  398. // err := req.Send()
  399. // if err == nil { // resp is now filled
  400. // fmt.Println(resp)
  401. // }
  402. //
  403. func (c *CloudSearch) DeleteExpressionRequest(input *DeleteExpressionInput) (req *request.Request, output *DeleteExpressionOutput) {
  404. op := &request.Operation{
  405. Name: opDeleteExpression,
  406. HTTPMethod: "POST",
  407. HTTPPath: "/",
  408. }
  409. if input == nil {
  410. input = &DeleteExpressionInput{}
  411. }
  412. req = c.newRequest(op, input, output)
  413. output = &DeleteExpressionOutput{}
  414. req.Data = output
  415. return
  416. }
  417. // Removes an Expression from the search domain. For more information, see Configuring
  418. // Expressions (http://docs.aws.amazon.com/cloudsearch/latest/developerguide/configuring-expressions.html"
  419. // target="_blank) in the Amazon CloudSearch Developer Guide.
  420. func (c *CloudSearch) DeleteExpression(input *DeleteExpressionInput) (*DeleteExpressionOutput, error) {
  421. req, out := c.DeleteExpressionRequest(input)
  422. err := req.Send()
  423. return out, err
  424. }
  425. const opDeleteIndexField = "DeleteIndexField"
  426. // DeleteIndexFieldRequest generates a "aws/request.Request" representing the
  427. // client's request for the DeleteIndexField operation. The "output" return
  428. // value can be used to capture response data after the request's "Send" method
  429. // is called.
  430. //
  431. // Creating a request object using this method should be used when you want to inject
  432. // custom logic into the request's lifecycle using a custom handler, or if you want to
  433. // access properties on the request object before or after sending the request. If
  434. // you just want the service response, call the DeleteIndexField method directly
  435. // instead.
  436. //
  437. // Note: You must call the "Send" method on the returned request object in order
  438. // to execute the request.
  439. //
  440. // // Example sending a request using the DeleteIndexFieldRequest method.
  441. // req, resp := client.DeleteIndexFieldRequest(params)
  442. //
  443. // err := req.Send()
  444. // if err == nil { // resp is now filled
  445. // fmt.Println(resp)
  446. // }
  447. //
  448. func (c *CloudSearch) DeleteIndexFieldRequest(input *DeleteIndexFieldInput) (req *request.Request, output *DeleteIndexFieldOutput) {
  449. op := &request.Operation{
  450. Name: opDeleteIndexField,
  451. HTTPMethod: "POST",
  452. HTTPPath: "/",
  453. }
  454. if input == nil {
  455. input = &DeleteIndexFieldInput{}
  456. }
  457. req = c.newRequest(op, input, output)
  458. output = &DeleteIndexFieldOutput{}
  459. req.Data = output
  460. return
  461. }
  462. // Removes an IndexField from the search domain. For more information, see Configuring
  463. // Index Fields (http://docs.aws.amazon.com/cloudsearch/latest/developerguide/configuring-index-fields.html"
  464. // target="_blank) in the Amazon CloudSearch Developer Guide.
  465. func (c *CloudSearch) DeleteIndexField(input *DeleteIndexFieldInput) (*DeleteIndexFieldOutput, error) {
  466. req, out := c.DeleteIndexFieldRequest(input)
  467. err := req.Send()
  468. return out, err
  469. }
  470. const opDeleteSuggester = "DeleteSuggester"
  471. // DeleteSuggesterRequest generates a "aws/request.Request" representing the
  472. // client's request for the DeleteSuggester operation. The "output" return
  473. // value can be used to capture response data after the request's "Send" method
  474. // is called.
  475. //
  476. // Creating a request object using this method should be used when you want to inject
  477. // custom logic into the request's lifecycle using a custom handler, or if you want to
  478. // access properties on the request object before or after sending the request. If
  479. // you just want the service response, call the DeleteSuggester method directly
  480. // instead.
  481. //
  482. // Note: You must call the "Send" method on the returned request object in order
  483. // to execute the request.
  484. //
  485. // // Example sending a request using the DeleteSuggesterRequest method.
  486. // req, resp := client.DeleteSuggesterRequest(params)
  487. //
  488. // err := req.Send()
  489. // if err == nil { // resp is now filled
  490. // fmt.Println(resp)
  491. // }
  492. //
  493. func (c *CloudSearch) DeleteSuggesterRequest(input *DeleteSuggesterInput) (req *request.Request, output *DeleteSuggesterOutput) {
  494. op := &request.Operation{
  495. Name: opDeleteSuggester,
  496. HTTPMethod: "POST",
  497. HTTPPath: "/",
  498. }
  499. if input == nil {
  500. input = &DeleteSuggesterInput{}
  501. }
  502. req = c.newRequest(op, input, output)
  503. output = &DeleteSuggesterOutput{}
  504. req.Data = output
  505. return
  506. }
  507. // Deletes a suggester. For more information, see Getting Search Suggestions
  508. // (http://docs.aws.amazon.com/cloudsearch/latest/developerguide/getting-suggestions.html"
  509. // target="_blank) in the Amazon CloudSearch Developer Guide.
  510. func (c *CloudSearch) DeleteSuggester(input *DeleteSuggesterInput) (*DeleteSuggesterOutput, error) {
  511. req, out := c.DeleteSuggesterRequest(input)
  512. err := req.Send()
  513. return out, err
  514. }
  515. const opDescribeAnalysisSchemes = "DescribeAnalysisSchemes"
  516. // DescribeAnalysisSchemesRequest generates a "aws/request.Request" representing the
  517. // client's request for the DescribeAnalysisSchemes operation. The "output" return
  518. // value can be used to capture response data after the request's "Send" method
  519. // is called.
  520. //
  521. // Creating a request object using this method should be used when you want to inject
  522. // custom logic into the request's lifecycle using a custom handler, or if you want to
  523. // access properties on the request object before or after sending the request. If
  524. // you just want the service response, call the DescribeAnalysisSchemes method directly
  525. // instead.
  526. //
  527. // Note: You must call the "Send" method on the returned request object in order
  528. // to execute the request.
  529. //
  530. // // Example sending a request using the DescribeAnalysisSchemesRequest method.
  531. // req, resp := client.DescribeAnalysisSchemesRequest(params)
  532. //
  533. // err := req.Send()
  534. // if err == nil { // resp is now filled
  535. // fmt.Println(resp)
  536. // }
  537. //
  538. func (c *CloudSearch) DescribeAnalysisSchemesRequest(input *DescribeAnalysisSchemesInput) (req *request.Request, output *DescribeAnalysisSchemesOutput) {
  539. op := &request.Operation{
  540. Name: opDescribeAnalysisSchemes,
  541. HTTPMethod: "POST",
  542. HTTPPath: "/",
  543. }
  544. if input == nil {
  545. input = &DescribeAnalysisSchemesInput{}
  546. }
  547. req = c.newRequest(op, input, output)
  548. output = &DescribeAnalysisSchemesOutput{}
  549. req.Data = output
  550. return
  551. }
  552. // Gets the analysis schemes configured for a domain. An analysis scheme defines
  553. // language-specific text processing options for a text field. Can be limited
  554. // to specific analysis schemes by name. By default, shows all analysis schemes
  555. // and includes any pending changes to the configuration. Set the Deployed option
  556. // to true to show the active configuration and exclude pending changes. For
  557. // more information, see Configuring Analysis Schemes (http://docs.aws.amazon.com/cloudsearch/latest/developerguide/configuring-analysis-schemes.html"
  558. // target="_blank) in the Amazon CloudSearch Developer Guide.
  559. func (c *CloudSearch) DescribeAnalysisSchemes(input *DescribeAnalysisSchemesInput) (*DescribeAnalysisSchemesOutput, error) {
  560. req, out := c.DescribeAnalysisSchemesRequest(input)
  561. err := req.Send()
  562. return out, err
  563. }
  564. const opDescribeAvailabilityOptions = "DescribeAvailabilityOptions"
  565. // DescribeAvailabilityOptionsRequest generates a "aws/request.Request" representing the
  566. // client's request for the DescribeAvailabilityOptions operation. The "output" return
  567. // value can be used to capture response data after the request's "Send" method
  568. // is called.
  569. //
  570. // Creating a request object using this method should be used when you want to inject
  571. // custom logic into the request's lifecycle using a custom handler, or if you want to
  572. // access properties on the request object before or after sending the request. If
  573. // you just want the service response, call the DescribeAvailabilityOptions method directly
  574. // instead.
  575. //
  576. // Note: You must call the "Send" method on the returned request object in order
  577. // to execute the request.
  578. //
  579. // // Example sending a request using the DescribeAvailabilityOptionsRequest method.
  580. // req, resp := client.DescribeAvailabilityOptionsRequest(params)
  581. //
  582. // err := req.Send()
  583. // if err == nil { // resp is now filled
  584. // fmt.Println(resp)
  585. // }
  586. //
  587. func (c *CloudSearch) DescribeAvailabilityOptionsRequest(input *DescribeAvailabilityOptionsInput) (req *request.Request, output *DescribeAvailabilityOptionsOutput) {
  588. op := &request.Operation{
  589. Name: opDescribeAvailabilityOptions,
  590. HTTPMethod: "POST",
  591. HTTPPath: "/",
  592. }
  593. if input == nil {
  594. input = &DescribeAvailabilityOptionsInput{}
  595. }
  596. req = c.newRequest(op, input, output)
  597. output = &DescribeAvailabilityOptionsOutput{}
  598. req.Data = output
  599. return
  600. }
  601. // Gets the availability options configured for a domain. By default, shows
  602. // the configuration with any pending changes. Set the Deployed option to true
  603. // to show the active configuration and exclude pending changes. For more information,
  604. // see Configuring Availability Options (http://docs.aws.amazon.com/cloudsearch/latest/developerguide/configuring-availability-options.html"
  605. // target="_blank) in the Amazon CloudSearch Developer Guide.
  606. func (c *CloudSearch) DescribeAvailabilityOptions(input *DescribeAvailabilityOptionsInput) (*DescribeAvailabilityOptionsOutput, error) {
  607. req, out := c.DescribeAvailabilityOptionsRequest(input)
  608. err := req.Send()
  609. return out, err
  610. }
  611. const opDescribeDomains = "DescribeDomains"
  612. // DescribeDomainsRequest generates a "aws/request.Request" representing the
  613. // client's request for the DescribeDomains operation. The "output" return
  614. // value can be used to capture response data after the request's "Send" method
  615. // is called.
  616. //
  617. // Creating a request object using this method should be used when you want to inject
  618. // custom logic into the request's lifecycle using a custom handler, or if you want to
  619. // access properties on the request object before or after sending the request. If
  620. // you just want the service response, call the DescribeDomains method directly
  621. // instead.
  622. //
  623. // Note: You must call the "Send" method on the returned request object in order
  624. // to execute the request.
  625. //
  626. // // Example sending a request using the DescribeDomainsRequest method.
  627. // req, resp := client.DescribeDomainsRequest(params)
  628. //
  629. // err := req.Send()
  630. // if err == nil { // resp is now filled
  631. // fmt.Println(resp)
  632. // }
  633. //
  634. func (c *CloudSearch) DescribeDomainsRequest(input *DescribeDomainsInput) (req *request.Request, output *DescribeDomainsOutput) {
  635. op := &request.Operation{
  636. Name: opDescribeDomains,
  637. HTTPMethod: "POST",
  638. HTTPPath: "/",
  639. }
  640. if input == nil {
  641. input = &DescribeDomainsInput{}
  642. }
  643. req = c.newRequest(op, input, output)
  644. output = &DescribeDomainsOutput{}
  645. req.Data = output
  646. return
  647. }
  648. // Gets information about the search domains owned by this account. Can be limited
  649. // to specific domains. Shows all domains by default. To get the number of searchable
  650. // documents in a domain, use the console or submit a matchall request to your
  651. // domain's search endpoint: q=matchall&q.parser=structured&size=0.
  652. // For more information, see Getting Information about a Search Domain (http://docs.aws.amazon.com/cloudsearch/latest/developerguide/getting-domain-info.html"
  653. // target="_blank) in the Amazon CloudSearch Developer Guide.
  654. func (c *CloudSearch) DescribeDomains(input *DescribeDomainsInput) (*DescribeDomainsOutput, error) {
  655. req, out := c.DescribeDomainsRequest(input)
  656. err := req.Send()
  657. return out, err
  658. }
  659. const opDescribeExpressions = "DescribeExpressions"
  660. // DescribeExpressionsRequest generates a "aws/request.Request" representing the
  661. // client's request for the DescribeExpressions operation. The "output" return
  662. // value can be used to capture response data after the request's "Send" method
  663. // is called.
  664. //
  665. // Creating a request object using this method should be used when you want to inject
  666. // custom logic into the request's lifecycle using a custom handler, or if you want to
  667. // access properties on the request object before or after sending the request. If
  668. // you just want the service response, call the DescribeExpressions method directly
  669. // instead.
  670. //
  671. // Note: You must call the "Send" method on the returned request object in order
  672. // to execute the request.
  673. //
  674. // // Example sending a request using the DescribeExpressionsRequest method.
  675. // req, resp := client.DescribeExpressionsRequest(params)
  676. //
  677. // err := req.Send()
  678. // if err == nil { // resp is now filled
  679. // fmt.Println(resp)
  680. // }
  681. //
  682. func (c *CloudSearch) DescribeExpressionsRequest(input *DescribeExpressionsInput) (req *request.Request, output *DescribeExpressionsOutput) {
  683. op := &request.Operation{
  684. Name: opDescribeExpressions,
  685. HTTPMethod: "POST",
  686. HTTPPath: "/",
  687. }
  688. if input == nil {
  689. input = &DescribeExpressionsInput{}
  690. }
  691. req = c.newRequest(op, input, output)
  692. output = &DescribeExpressionsOutput{}
  693. req.Data = output
  694. return
  695. }
  696. // Gets the expressions configured for the search domain. Can be limited to
  697. // specific expressions by name. By default, shows all expressions and includes
  698. // any pending changes to the configuration. Set the Deployed option to true
  699. // to show the active configuration and exclude pending changes. For more information,
  700. // see Configuring Expressions (http://docs.aws.amazon.com/cloudsearch/latest/developerguide/configuring-expressions.html"
  701. // target="_blank) in the Amazon CloudSearch Developer Guide.
  702. func (c *CloudSearch) DescribeExpressions(input *DescribeExpressionsInput) (*DescribeExpressionsOutput, error) {
  703. req, out := c.DescribeExpressionsRequest(input)
  704. err := req.Send()
  705. return out, err
  706. }
  707. const opDescribeIndexFields = "DescribeIndexFields"
  708. // DescribeIndexFieldsRequest generates a "aws/request.Request" representing the
  709. // client's request for the DescribeIndexFields operation. The "output" return
  710. // value can be used to capture response data after the request's "Send" method
  711. // is called.
  712. //
  713. // Creating a request object using this method should be used when you want to inject
  714. // custom logic into the request's lifecycle using a custom handler, or if you want to
  715. // access properties on the request object before or after sending the request. If
  716. // you just want the service response, call the DescribeIndexFields method directly
  717. // instead.
  718. //
  719. // Note: You must call the "Send" method on the returned request object in order
  720. // to execute the request.
  721. //
  722. // // Example sending a request using the DescribeIndexFieldsRequest method.
  723. // req, resp := client.DescribeIndexFieldsRequest(params)
  724. //
  725. // err := req.Send()
  726. // if err == nil { // resp is now filled
  727. // fmt.Println(resp)
  728. // }
  729. //
  730. func (c *CloudSearch) DescribeIndexFieldsRequest(input *DescribeIndexFieldsInput) (req *request.Request, output *DescribeIndexFieldsOutput) {
  731. op := &request.Operation{
  732. Name: opDescribeIndexFields,
  733. HTTPMethod: "POST",
  734. HTTPPath: "/",
  735. }
  736. if input == nil {
  737. input = &DescribeIndexFieldsInput{}
  738. }
  739. req = c.newRequest(op, input, output)
  740. output = &DescribeIndexFieldsOutput{}
  741. req.Data = output
  742. return
  743. }
  744. // Gets information about the index fields configured for the search domain.
  745. // Can be limited to specific fields by name. By default, shows all fields and
  746. // includes any pending changes to the configuration. Set the Deployed option
  747. // to true to show the active configuration and exclude pending changes. For
  748. // more information, see Getting Domain Information (http://docs.aws.amazon.com/cloudsearch/latest/developerguide/getting-domain-info.html"
  749. // target="_blank) in the Amazon CloudSearch Developer Guide.
  750. func (c *CloudSearch) DescribeIndexFields(input *DescribeIndexFieldsInput) (*DescribeIndexFieldsOutput, error) {
  751. req, out := c.DescribeIndexFieldsRequest(input)
  752. err := req.Send()
  753. return out, err
  754. }
  755. const opDescribeScalingParameters = "DescribeScalingParameters"
  756. // DescribeScalingParametersRequest generates a "aws/request.Request" representing the
  757. // client's request for the DescribeScalingParameters operation. The "output" return
  758. // value can be used to capture response data after the request's "Send" method
  759. // is called.
  760. //
  761. // Creating a request object using this method should be used when you want to inject
  762. // custom logic into the request's lifecycle using a custom handler, or if you want to
  763. // access properties on the request object before or after sending the request. If
  764. // you just want the service response, call the DescribeScalingParameters method directly
  765. // instead.
  766. //
  767. // Note: You must call the "Send" method on the returned request object in order
  768. // to execute the request.
  769. //
  770. // // Example sending a request using the DescribeScalingParametersRequest method.
  771. // req, resp := client.DescribeScalingParametersRequest(params)
  772. //
  773. // err := req.Send()
  774. // if err == nil { // resp is now filled
  775. // fmt.Println(resp)
  776. // }
  777. //
  778. func (c *CloudSearch) DescribeScalingParametersRequest(input *DescribeScalingParametersInput) (req *request.Request, output *DescribeScalingParametersOutput) {
  779. op := &request.Operation{
  780. Name: opDescribeScalingParameters,
  781. HTTPMethod: "POST",
  782. HTTPPath: "/",
  783. }
  784. if input == nil {
  785. input = &DescribeScalingParametersInput{}
  786. }
  787. req = c.newRequest(op, input, output)
  788. output = &DescribeScalingParametersOutput{}
  789. req.Data = output
  790. return
  791. }
  792. // Gets the scaling parameters configured for a domain. A domain's scaling parameters
  793. // specify the desired search instance type and replication count. For more
  794. // information, see Configuring Scaling Options (http://docs.aws.amazon.com/cloudsearch/latest/developerguide/configuring-scaling-options.html"
  795. // target="_blank) in the Amazon CloudSearch Developer Guide.
  796. func (c *CloudSearch) DescribeScalingParameters(input *DescribeScalingParametersInput) (*DescribeScalingParametersOutput, error) {
  797. req, out := c.DescribeScalingParametersRequest(input)
  798. err := req.Send()
  799. return out, err
  800. }
  801. const opDescribeServiceAccessPolicies = "DescribeServiceAccessPolicies"
  802. // DescribeServiceAccessPoliciesRequest generates a "aws/request.Request" representing the
  803. // client's request for the DescribeServiceAccessPolicies operation. The "output" return
  804. // value can be used to capture response data after the request's "Send" method
  805. // is called.
  806. //
  807. // Creating a request object using this method should be used when you want to inject
  808. // custom logic into the request's lifecycle using a custom handler, or if you want to
  809. // access properties on the request object before or after sending the request. If
  810. // you just want the service response, call the DescribeServiceAccessPolicies method directly
  811. // instead.
  812. //
  813. // Note: You must call the "Send" method on the returned request object in order
  814. // to execute the request.
  815. //
  816. // // Example sending a request using the DescribeServiceAccessPoliciesRequest method.
  817. // req, resp := client.DescribeServiceAccessPoliciesRequest(params)
  818. //
  819. // err := req.Send()
  820. // if err == nil { // resp is now filled
  821. // fmt.Println(resp)
  822. // }
  823. //
  824. func (c *CloudSearch) DescribeServiceAccessPoliciesRequest(input *DescribeServiceAccessPoliciesInput) (req *request.Request, output *DescribeServiceAccessPoliciesOutput) {
  825. op := &request.Operation{
  826. Name: opDescribeServiceAccessPolicies,
  827. HTTPMethod: "POST",
  828. HTTPPath: "/",
  829. }
  830. if input == nil {
  831. input = &DescribeServiceAccessPoliciesInput{}
  832. }
  833. req = c.newRequest(op, input, output)
  834. output = &DescribeServiceAccessPoliciesOutput{}
  835. req.Data = output
  836. return
  837. }
  838. // Gets information about the access policies that control access to the domain's
  839. // document and search endpoints. By default, shows the configuration with any
  840. // pending changes. Set the Deployed option to true to show the active configuration
  841. // and exclude pending changes. For more information, see Configuring Access
  842. // for a Search Domain (http://docs.aws.amazon.com/cloudsearch/latest/developerguide/configuring-access.html"
  843. // target="_blank) in the Amazon CloudSearch Developer Guide.
  844. func (c *CloudSearch) DescribeServiceAccessPolicies(input *DescribeServiceAccessPoliciesInput) (*DescribeServiceAccessPoliciesOutput, error) {
  845. req, out := c.DescribeServiceAccessPoliciesRequest(input)
  846. err := req.Send()
  847. return out, err
  848. }
  849. const opDescribeSuggesters = "DescribeSuggesters"
  850. // DescribeSuggestersRequest generates a "aws/request.Request" representing the
  851. // client's request for the DescribeSuggesters operation. The "output" return
  852. // value can be used to capture response data after the request's "Send" method
  853. // is called.
  854. //
  855. // Creating a request object using this method should be used when you want to inject
  856. // custom logic into the request's lifecycle using a custom handler, or if you want to
  857. // access properties on the request object before or after sending the request. If
  858. // you just want the service response, call the DescribeSuggesters method directly
  859. // instead.
  860. //
  861. // Note: You must call the "Send" method on the returned request object in order
  862. // to execute the request.
  863. //
  864. // // Example sending a request using the DescribeSuggestersRequest method.
  865. // req, resp := client.DescribeSuggestersRequest(params)
  866. //
  867. // err := req.Send()
  868. // if err == nil { // resp is now filled
  869. // fmt.Println(resp)
  870. // }
  871. //
  872. func (c *CloudSearch) DescribeSuggestersRequest(input *DescribeSuggestersInput) (req *request.Request, output *DescribeSuggestersOutput) {
  873. op := &request.Operation{
  874. Name: opDescribeSuggesters,
  875. HTTPMethod: "POST",
  876. HTTPPath: "/",
  877. }
  878. if input == nil {
  879. input = &DescribeSuggestersInput{}
  880. }
  881. req = c.newRequest(op, input, output)
  882. output = &DescribeSuggestersOutput{}
  883. req.Data = output
  884. return
  885. }
  886. // Gets the suggesters configured for a domain. A suggester enables you to display
  887. // possible matches before users finish typing their queries. Can be limited
  888. // to specific suggesters by name. By default, shows all suggesters and includes
  889. // any pending changes to the configuration. Set the Deployed option to true
  890. // to show the active configuration and exclude pending changes. For more information,
  891. // see Getting Search Suggestions (http://docs.aws.amazon.com/cloudsearch/latest/developerguide/getting-suggestions.html"
  892. // target="_blank) in the Amazon CloudSearch Developer Guide.
  893. func (c *CloudSearch) DescribeSuggesters(input *DescribeSuggestersInput) (*DescribeSuggestersOutput, error) {
  894. req, out := c.DescribeSuggestersRequest(input)
  895. err := req.Send()
  896. return out, err
  897. }
  898. const opIndexDocuments = "IndexDocuments"
  899. // IndexDocumentsRequest generates a "aws/request.Request" representing the
  900. // client's request for the IndexDocuments operation. The "output" return
  901. // value can be used to capture response data after the request's "Send" method
  902. // is called.
  903. //
  904. // Creating a request object using this method should be used when you want to inject
  905. // custom logic into the request's lifecycle using a custom handler, or if you want to
  906. // access properties on the request object before or after sending the request. If
  907. // you just want the service response, call the IndexDocuments method directly
  908. // instead.
  909. //
  910. // Note: You must call the "Send" method on the returned request object in order
  911. // to execute the request.
  912. //
  913. // // Example sending a request using the IndexDocumentsRequest method.
  914. // req, resp := client.IndexDocumentsRequest(params)
  915. //
  916. // err := req.Send()
  917. // if err == nil { // resp is now filled
  918. // fmt.Println(resp)
  919. // }
  920. //
  921. func (c *CloudSearch) IndexDocumentsRequest(input *IndexDocumentsInput) (req *request.Request, output *IndexDocumentsOutput) {
  922. op := &request.Operation{
  923. Name: opIndexDocuments,
  924. HTTPMethod: "POST",
  925. HTTPPath: "/",
  926. }
  927. if input == nil {
  928. input = &IndexDocumentsInput{}
  929. }
  930. req = c.newRequest(op, input, output)
  931. output = &IndexDocumentsOutput{}
  932. req.Data = output
  933. return
  934. }
  935. // Tells the search domain to start indexing its documents using the latest
  936. // indexing options. This operation must be invoked to activate options whose
  937. // OptionStatus is RequiresIndexDocuments.
  938. func (c *CloudSearch) IndexDocuments(input *IndexDocumentsInput) (*IndexDocumentsOutput, error) {
  939. req, out := c.IndexDocumentsRequest(input)
  940. err := req.Send()
  941. return out, err
  942. }
  943. const opListDomainNames = "ListDomainNames"
  944. // ListDomainNamesRequest generates a "aws/request.Request" representing the
  945. // client's request for the ListDomainNames operation. The "output" return
  946. // value can be used to capture response data after the request's "Send" method
  947. // is called.
  948. //
  949. // Creating a request object using this method should be used when you want to inject
  950. // custom logic into the request's lifecycle using a custom handler, or if you want to
  951. // access properties on the request object before or after sending the request. If
  952. // you just want the service response, call the ListDomainNames method directly
  953. // instead.
  954. //
  955. // Note: You must call the "Send" method on the returned request object in order
  956. // to execute the request.
  957. //
  958. // // Example sending a request using the ListDomainNamesRequest method.
  959. // req, resp := client.ListDomainNamesRequest(params)
  960. //
  961. // err := req.Send()
  962. // if err == nil { // resp is now filled
  963. // fmt.Println(resp)
  964. // }
  965. //
  966. func (c *CloudSearch) ListDomainNamesRequest(input *ListDomainNamesInput) (req *request.Request, output *ListDomainNamesOutput) {
  967. op := &request.Operation{
  968. Name: opListDomainNames,
  969. HTTPMethod: "POST",
  970. HTTPPath: "/",
  971. }
  972. if input == nil {
  973. input = &ListDomainNamesInput{}
  974. }
  975. req = c.newRequest(op, input, output)
  976. output = &ListDomainNamesOutput{}
  977. req.Data = output
  978. return
  979. }
  980. // Lists all search domains owned by an account.
  981. func (c *CloudSearch) ListDomainNames(input *ListDomainNamesInput) (*ListDomainNamesOutput, error) {
  982. req, out := c.ListDomainNamesRequest(input)
  983. err := req.Send()
  984. return out, err
  985. }
  986. const opUpdateAvailabilityOptions = "UpdateAvailabilityOptions"
  987. // UpdateAvailabilityOptionsRequest generates a "aws/request.Request" representing the
  988. // client's request for the UpdateAvailabilityOptions operation. The "output" return
  989. // value can be used to capture response data after the request's "Send" method
  990. // is called.
  991. //
  992. // Creating a request object using this method should be used when you want to inject
  993. // custom logic into the request's lifecycle using a custom handler, or if you want to
  994. // access properties on the request object before or after sending the request. If
  995. // you just want the service response, call the UpdateAvailabilityOptions method directly
  996. // instead.
  997. //
  998. // Note: You must call the "Send" method on the returned request object in order
  999. // to execute the request.
  1000. //
  1001. // // Example sending a request using the UpdateAvailabilityOptionsRequest method.
  1002. // req, resp := client.UpdateAvailabilityOptionsRequest(params)
  1003. //
  1004. // err := req.Send()
  1005. // if err == nil { // resp is now filled
  1006. // fmt.Println(resp)
  1007. // }
  1008. //
  1009. func (c *CloudSearch) UpdateAvailabilityOptionsRequest(input *UpdateAvailabilityOptionsInput) (req *request.Request, output *UpdateAvailabilityOptionsOutput) {
  1010. op := &request.Operation{
  1011. Name: opUpdateAvailabilityOptions,
  1012. HTTPMethod: "POST",
  1013. HTTPPath: "/",
  1014. }
  1015. if input == nil {
  1016. input = &UpdateAvailabilityOptionsInput{}
  1017. }
  1018. req = c.newRequest(op, input, output)
  1019. output = &UpdateAvailabilityOptionsOutput{}
  1020. req.Data = output
  1021. return
  1022. }
  1023. // Configures the availability options for a domain. Enabling the Multi-AZ option
  1024. // expands an Amazon CloudSearch domain to an additional Availability Zone in
  1025. // the same Region to increase fault tolerance in the event of a service disruption.
  1026. // Changes to the Multi-AZ option can take about half an hour to become active.
  1027. // For more information, see Configuring Availability Options (http://docs.aws.amazon.com/cloudsearch/latest/developerguide/configuring-availability-options.html"
  1028. // target="_blank) in the Amazon CloudSearch Developer Guide.
  1029. func (c *CloudSearch) UpdateAvailabilityOptions(input *UpdateAvailabilityOptionsInput) (*UpdateAvailabilityOptionsOutput, error) {
  1030. req, out := c.UpdateAvailabilityOptionsRequest(input)
  1031. err := req.Send()
  1032. return out, err
  1033. }
  1034. const opUpdateScalingParameters = "UpdateScalingParameters"
  1035. // UpdateScalingParametersRequest generates a "aws/request.Request" representing the
  1036. // client's request for the UpdateScalingParameters operation. The "output" return
  1037. // value can be used to capture response data after the request's "Send" method
  1038. // is called.
  1039. //
  1040. // Creating a request object using this method should be used when you want to inject
  1041. // custom logic into the request's lifecycle using a custom handler, or if you want to
  1042. // access properties on the request object before or after sending the request. If
  1043. // you just want the service response, call the UpdateScalingParameters method directly
  1044. // instead.
  1045. //
  1046. // Note: You must call the "Send" method on the returned request object in order
  1047. // to execute the request.
  1048. //
  1049. // // Example sending a request using the UpdateScalingParametersRequest method.
  1050. // req, resp := client.UpdateScalingParametersRequest(params)
  1051. //
  1052. // err := req.Send()
  1053. // if err == nil { // resp is now filled
  1054. // fmt.Println(resp)
  1055. // }
  1056. //
  1057. func (c *CloudSearch) UpdateScalingParametersRequest(input *UpdateScalingParametersInput) (req *request.Request, output *UpdateScalingParametersOutput) {
  1058. op := &request.Operation{
  1059. Name: opUpdateScalingParameters,
  1060. HTTPMethod: "POST",
  1061. HTTPPath: "/",
  1062. }
  1063. if input == nil {
  1064. input = &UpdateScalingParametersInput{}
  1065. }
  1066. req = c.newRequest(op, input, output)
  1067. output = &UpdateScalingParametersOutput{}
  1068. req.Data = output
  1069. return
  1070. }
  1071. // Configures scaling parameters for a domain. A domain's scaling parameters
  1072. // specify the desired search instance type and replication count. Amazon CloudSearch
  1073. // will still automatically scale your domain based on the volume of data and
  1074. // traffic, but not below the desired instance type and replication count. If
  1075. // the Multi-AZ option is enabled, these values control the resources used per
  1076. // Availability Zone. For more information, see Configuring Scaling Options
  1077. // (http://docs.aws.amazon.com/cloudsearch/latest/developerguide/configuring-scaling-options.html"
  1078. // target="_blank) in the Amazon CloudSearch Developer Guide.
  1079. func (c *CloudSearch) UpdateScalingParameters(input *UpdateScalingParametersInput) (*UpdateScalingParametersOutput, error) {
  1080. req, out := c.UpdateScalingParametersRequest(input)
  1081. err := req.Send()
  1082. return out, err
  1083. }
  1084. const opUpdateServiceAccessPolicies = "UpdateServiceAccessPolicies"
  1085. // UpdateServiceAccessPoliciesRequest generates a "aws/request.Request" representing the
  1086. // client's request for the UpdateServiceAccessPolicies operation. The "output" return
  1087. // value can be used to capture response data after the request's "Send" method
  1088. // is called.
  1089. //
  1090. // Creating a request object using this method should be used when you want to inject
  1091. // custom logic into the request's lifecycle using a custom handler, or if you want to
  1092. // access properties on the request object before or after sending the request. If
  1093. // you just want the service response, call the UpdateServiceAccessPolicies method directly
  1094. // instead.
  1095. //
  1096. // Note: You must call the "Send" method on the returned request object in order
  1097. // to execute the request.
  1098. //
  1099. // // Example sending a request using the UpdateServiceAccessPoliciesRequest method.
  1100. // req, resp := client.UpdateServiceAccessPoliciesRequest(params)
  1101. //
  1102. // err := req.Send()
  1103. // if err == nil { // resp is now filled
  1104. // fmt.Println(resp)
  1105. // }
  1106. //
  1107. func (c *CloudSearch) UpdateServiceAccessPoliciesRequest(input *UpdateServiceAccessPoliciesInput) (req *request.Request, output *UpdateServiceAccessPoliciesOutput) {
  1108. op := &request.Operation{
  1109. Name: opUpdateServiceAccessPolicies,
  1110. HTTPMethod: "POST",
  1111. HTTPPath: "/",
  1112. }
  1113. if input == nil {
  1114. input = &UpdateServiceAccessPoliciesInput{}
  1115. }
  1116. req = c.newRequest(op, input, output)
  1117. output = &UpdateServiceAccessPoliciesOutput{}
  1118. req.Data = output
  1119. return
  1120. }
  1121. // Configures the access rules that control access to the domain's document
  1122. // and search endpoints. For more information, see Configuring Access for an
  1123. // Amazon CloudSearch Domain (http://docs.aws.amazon.com/cloudsearch/latest/developerguide/configuring-access.html"
  1124. // target="_blank).
  1125. func (c *CloudSearch) UpdateServiceAccessPolicies(input *UpdateServiceAccessPoliciesInput) (*UpdateServiceAccessPoliciesOutput, error) {
  1126. req, out := c.UpdateServiceAccessPoliciesRequest(input)
  1127. err := req.Send()
  1128. return out, err
  1129. }
  1130. // The configured access rules for the domain's document and search endpoints,
  1131. // and the current status of those rules.
  1132. type AccessPoliciesStatus struct {
  1133. _ struct{} `type:"structure"`
  1134. // Access rules for a domain's document or search service endpoints. For more
  1135. // information, see Configuring Access for a Search Domain (http://docs.aws.amazon.com/cloudsearch/latest/developerguide/configuring-access.html"
  1136. // target="_blank) in the Amazon CloudSearch Developer Guide. The maximum size
  1137. // of a policy document is 100 KB.
  1138. Options *string `type:"string" required:"true"`
  1139. // The status of domain configuration option.
  1140. Status *OptionStatus `type:"structure" required:"true"`
  1141. }
  1142. // String returns the string representation
  1143. func (s AccessPoliciesStatus) String() string {
  1144. return awsutil.Prettify(s)
  1145. }
  1146. // GoString returns the string representation
  1147. func (s AccessPoliciesStatus) GoString() string {
  1148. return s.String()
  1149. }
  1150. // Synonyms, stopwords, and stemming options for an analysis scheme. Includes
  1151. // tokenization dictionary for Japanese.
  1152. type AnalysisOptions struct {
  1153. _ struct{} `type:"structure"`
  1154. // The level of algorithmic stemming to perform: none, minimal, light, or full.
  1155. // The available levels vary depending on the language. For more information,
  1156. // see Language Specific Text Processing Settings (http://docs.aws.amazon.com/cloudsearch/latest/developerguide/text-processing.html#text-processing-settings"
  1157. // target="_blank) in the Amazon CloudSearch Developer Guide
  1158. AlgorithmicStemming *string `type:"string" enum:"AlgorithmicStemming"`
  1159. // A JSON array that contains a collection of terms, tokens, readings and part
  1160. // of speech for Japanese Tokenizaiton. The Japanese tokenization dictionary
  1161. // enables you to override the default tokenization for selected terms. This
  1162. // is only valid for Japanese language fields.
  1163. JapaneseTokenizationDictionary *string `type:"string"`
  1164. // A JSON object that contains a collection of string:value pairs that each
  1165. // map a term to its stem. For example, {"term1": "stem1", "term2": "stem2",
  1166. // "term3": "stem3"}. The stemming dictionary is applied in addition to any
  1167. // algorithmic stemming. This enables you to override the results of the algorithmic
  1168. // stemming to correct specific cases of overstemming or understemming. The
  1169. // maximum size of a stemming dictionary is 500 KB.
  1170. StemmingDictionary *string `type:"string"`
  1171. // A JSON array of terms to ignore during indexing and searching. For example,
  1172. // ["a", "an", "the", "of"]. The stopwords dictionary must explicitly list each
  1173. // word you want to ignore. Wildcards and regular expressions are not supported.
  1174. Stopwords *string `type:"string"`
  1175. // A JSON object that defines synonym groups and aliases. A synonym group is
  1176. // an array of arrays, where each sub-array is a group of terms where each term
  1177. // in the group is considered a synonym of every other term in the group. The
  1178. // aliases value is an object that contains a collection of string:value pairs
  1179. // where the string specifies a term and the array of values specifies each
  1180. // of the aliases for that term. An alias is considered a synonym of the specified
  1181. // term, but the term is not considered a synonym of the alias. For more information
  1182. // about specifying synonyms, see Synonyms (http://docs.aws.amazon.com/cloudsearch/latest/developerguide/configuring-analysis-schemes.html#synonyms)
  1183. // in the Amazon CloudSearch Developer Guide.
  1184. Synonyms *string `type:"string"`
  1185. }
  1186. // String returns the string representation
  1187. func (s AnalysisOptions) String() string {
  1188. return awsutil.Prettify(s)
  1189. }
  1190. // GoString returns the string representation
  1191. func (s AnalysisOptions) GoString() string {
  1192. return s.String()
  1193. }
  1194. // Configuration information for an analysis scheme. Each analysis scheme has
  1195. // a unique name and specifies the language of the text to be processed. The
  1196. // following options can be configured for an analysis scheme: Synonyms, Stopwords,
  1197. // StemmingDictionary, JapaneseTokenizationDictionary and AlgorithmicStemming.
  1198. type AnalysisScheme struct {
  1199. _ struct{} `type:"structure"`
  1200. // Synonyms, stopwords, and stemming options for an analysis scheme. Includes
  1201. // tokenization dictionary for Japanese.
  1202. AnalysisOptions *AnalysisOptions `type:"structure"`
  1203. // An IETF RFC 4646 (http://tools.ietf.org/html/rfc4646" target="_blank) language
  1204. // code or mul for multiple languages.
  1205. AnalysisSchemeLanguage *string `type:"string" required:"true" enum:"AnalysisSchemeLanguage"`
  1206. // Names must begin with a letter and can contain the following characters:
  1207. // a-z (lowercase), 0-9, and _ (underscore).
  1208. AnalysisSchemeName *string `min:"1" type:"string" required:"true"`
  1209. }
  1210. // String returns the string representation
  1211. func (s AnalysisScheme) String() string {
  1212. return awsutil.Prettify(s)
  1213. }
  1214. // GoString returns the string representation
  1215. func (s AnalysisScheme) GoString() string {
  1216. return s.String()
  1217. }
  1218. // Validate inspects the fields of the type to determine if they are valid.
  1219. func (s *AnalysisScheme) Validate() error {
  1220. invalidParams := request.ErrInvalidParams{Context: "AnalysisScheme"}
  1221. if s.AnalysisSchemeLanguage == nil {
  1222. invalidParams.Add(request.NewErrParamRequired("AnalysisSchemeLanguage"))
  1223. }
  1224. if s.AnalysisSchemeName == nil {
  1225. invalidParams.Add(request.NewErrParamRequired("AnalysisSchemeName"))
  1226. }
  1227. if s.AnalysisSchemeName != nil && len(*s.AnalysisSchemeName) < 1 {
  1228. invalidParams.Add(request.NewErrParamMinLen("AnalysisSchemeName", 1))
  1229. }
  1230. if invalidParams.Len() > 0 {
  1231. return invalidParams
  1232. }
  1233. return nil
  1234. }
  1235. // The status and configuration of an AnalysisScheme.
  1236. type AnalysisSchemeStatus struct {
  1237. _ struct{} `type:"structure"`
  1238. // Configuration information for an analysis scheme. Each analysis scheme has
  1239. // a unique name and specifies the language of the text to be processed. The
  1240. // following options can be configured for an analysis scheme: Synonyms, Stopwords,
  1241. // StemmingDictionary, JapaneseTokenizationDictionary and AlgorithmicStemming.
  1242. Options *AnalysisScheme `type:"structure" required:"true"`
  1243. // The status of domain configuration option.
  1244. Status *OptionStatus `type:"structure" required:"true"`
  1245. }
  1246. // String returns the string representation
  1247. func (s AnalysisSchemeStatus) String() string {
  1248. return awsutil.Prettify(s)
  1249. }
  1250. // GoString returns the string representation
  1251. func (s AnalysisSchemeStatus) GoString() string {
  1252. return s.String()
  1253. }
  1254. // The status and configuration of the domain's availability options.
  1255. type AvailabilityOptionsStatus struct {
  1256. _ struct{} `type:"structure"`
  1257. // The availability options configured for the domain.
  1258. Options *bool `type:"boolean" required:"true"`
  1259. // The status of domain configuration option.
  1260. Status *OptionStatus `type:"structure" required:"true"`
  1261. }
  1262. // String returns the string representation
  1263. func (s AvailabilityOptionsStatus) String() string {
  1264. return awsutil.Prettify(s)
  1265. }
  1266. // GoString returns the string representation
  1267. func (s AvailabilityOptionsStatus) GoString() string {
  1268. return s.String()
  1269. }
  1270. // Container for the parameters to the BuildSuggester operation. Specifies the
  1271. // name of the domain you want to update.
  1272. type BuildSuggestersInput struct {
  1273. _ struct{} `type:"structure"`
  1274. // A string that represents the name of a domain. Domain names are unique across
  1275. // the domains owned by an account within an AWS region. Domain names start
  1276. // with a letter or number and can contain the following characters: a-z (lowercase),
  1277. // 0-9, and - (hyphen).
  1278. DomainName *string `min:"3" type:"string" required:"true"`
  1279. }
  1280. // String returns the string representation
  1281. func (s BuildSuggestersInput) String() string {
  1282. return awsutil.Prettify(s)
  1283. }
  1284. // GoString returns the string representation
  1285. func (s BuildSuggestersInput) GoString() string {
  1286. return s.String()
  1287. }
  1288. // Validate inspects the fields of the type to determine if they are valid.
  1289. func (s *BuildSuggestersInput) Validate() error {
  1290. invalidParams := request.ErrInvalidParams{Context: "BuildSuggestersInput"}
  1291. if s.DomainName == nil {
  1292. invalidParams.Add(request.NewErrParamRequired("DomainName"))
  1293. }
  1294. if s.DomainName != nil && len(*s.DomainName) < 3 {
  1295. invalidParams.Add(request.NewErrParamMinLen("DomainName", 3))
  1296. }
  1297. if invalidParams.Len() > 0 {
  1298. return invalidParams
  1299. }
  1300. return nil
  1301. }
  1302. // The result of a BuildSuggester request. Contains a list of the fields used
  1303. // for suggestions.
  1304. type BuildSuggestersOutput struct {
  1305. _ struct{} `type:"structure"`
  1306. // A list of field names.
  1307. FieldNames []*string `type:"list"`
  1308. }
  1309. // String returns the string representation
  1310. func (s BuildSuggestersOutput) String() string {
  1311. return awsutil.Prettify(s)
  1312. }
  1313. // GoString returns the string representation
  1314. func (s BuildSuggestersOutput) GoString() string {
  1315. return s.String()
  1316. }
  1317. // Container for the parameters to the CreateDomain operation. Specifies a name
  1318. // for the new search domain.
  1319. type CreateDomainInput struct {
  1320. _ struct{} `type:"structure"`
  1321. // A name for the domain you are creating. Allowed characters are a-z (lower-case
  1322. // letters), 0-9, and hyphen (-). Domain names must start with a letter or number
  1323. // and be at least 3 and no more than 28 characters long.
  1324. DomainName *string `min:"3" type:"string" required:"true"`
  1325. }
  1326. // String returns the string representation
  1327. func (s CreateDomainInput) String() string {
  1328. return awsutil.Prettify(s)
  1329. }
  1330. // GoString returns the string representation
  1331. func (s CreateDomainInput) GoString() string {
  1332. return s.String()
  1333. }
  1334. // Validate inspects the fields of the type to determine if they are valid.
  1335. func (s *CreateDomainInput) Validate() error {
  1336. invalidParams := request.ErrInvalidParams{Context: "CreateDomainInput"}
  1337. if s.DomainName == nil {
  1338. invalidParams.Add(request.NewErrParamRequired("DomainName"))
  1339. }
  1340. if s.DomainName != nil && len(*s.DomainName) < 3 {
  1341. invalidParams.Add(request.NewErrParamMinLen("DomainName", 3))
  1342. }
  1343. if invalidParams.Len() > 0 {
  1344. return invalidParams
  1345. }
  1346. return nil
  1347. }
  1348. // The result of a CreateDomainRequest. Contains the status of a newly created
  1349. // domain.
  1350. type CreateDomainOutput struct {
  1351. _ struct{} `type:"structure"`
  1352. // The current status of the search domain.
  1353. DomainStatus *DomainStatus `type:"structure"`
  1354. }
  1355. // String returns the string representation
  1356. func (s CreateDomainOutput) String() string {
  1357. return awsutil.Prettify(s)
  1358. }
  1359. // GoString returns the string representation
  1360. func (s CreateDomainOutput) GoString() string {
  1361. return s.String()
  1362. }
  1363. // Options for a field that contains an array of dates. Present if IndexFieldType
  1364. // specifies the field is of type date-array. All options are enabled by default.
  1365. type DateArrayOptions struct {
  1366. _ struct{} `type:"structure"`
  1367. // A value to use for the field if the field isn't specified for a document.
  1368. DefaultValue *string `type:"string"`
  1369. // Whether facet information can be returned for the field.
  1370. FacetEnabled *bool `type:"boolean"`
  1371. // Whether the contents of the field can be returned in the search results.
  1372. ReturnEnabled *bool `type:"boolean"`
  1373. // Whether the contents of the field are searchable.
  1374. SearchEnabled *bool `type:"boolean"`
  1375. // A list of source fields to map to the field.
  1376. SourceFields *string `type:"string"`
  1377. }
  1378. // String returns the string representation
  1379. func (s DateArrayOptions) String() string {
  1380. return awsutil.Prettify(s)
  1381. }
  1382. // GoString returns the string representation
  1383. func (s DateArrayOptions) GoString() string {
  1384. return s.String()
  1385. }
  1386. // Options for a date field. Dates and times are specified in UTC (Coordinated
  1387. // Universal Time) according to IETF RFC3339: yyyy-mm-ddT00:00:00Z. Present
  1388. // if IndexFieldType specifies the field is of type date. All options are enabled
  1389. // by default.
  1390. type DateOptions struct {
  1391. _ struct{} `type:"structure"`
  1392. // A value to use for the field if the field isn't specified for a document.
  1393. DefaultValue *string `type:"string"`
  1394. // Whether facet information can be returned for the field.
  1395. FacetEnabled *bool `type:"boolean"`
  1396. // Whether the contents of the field can be returned in the search results.
  1397. ReturnEnabled *bool `type:"boolean"`
  1398. // Whether the contents of the field are searchable.
  1399. SearchEnabled *bool `type:"boolean"`
  1400. // Whether the field can be used to sort the search results.
  1401. SortEnabled *bool `type:"boolean"`
  1402. // A string that represents the name of an index field. CloudSearch supports
  1403. // regular index fields as well as dynamic fields. A dynamic field's name defines
  1404. // a pattern that begins or ends with a wildcard. Any document fields that don't
  1405. // map to a regular index field but do match a dynamic field's pattern are configured
  1406. // with the dynamic field's indexing options.
  1407. //
  1408. // Regular field names begin with a letter and can contain the following characters:
  1409. // a-z (lowercase), 0-9, and _ (underscore). Dynamic field names must begin
  1410. // or end with a wildcard (*). The wildcard can also be the only character in
  1411. // a dynamic field name. Multiple wildcards, and wildcards embedded within a
  1412. // string are not supported.
  1413. //
  1414. // The name score is reserved and cannot be used as a field name. To reference
  1415. // a document's ID, you can use the name _id.
  1416. SourceField *string `min:"1" type:"string"`
  1417. }
  1418. // String returns the string representation
  1419. func (s DateOptions) String() string {
  1420. return awsutil.Prettify(s)
  1421. }
  1422. // GoString returns the string representation
  1423. func (s DateOptions) GoString() string {
  1424. return s.String()
  1425. }
  1426. // Validate inspects the fields of the type to determine if they are valid.
  1427. func (s *DateOptions) Validate() error {
  1428. invalidParams := request.ErrInvalidParams{Context: "DateOptions"}
  1429. if s.SourceField != nil && len(*s.SourceField) < 1 {
  1430. invalidParams.Add(request.NewErrParamMinLen("SourceField", 1))
  1431. }
  1432. if invalidParams.Len() > 0 {
  1433. return invalidParams
  1434. }
  1435. return nil
  1436. }
  1437. // Container for the parameters to the DefineAnalysisScheme operation. Specifies
  1438. // the name of the domain you want to update and the analysis scheme configuration.
  1439. type DefineAnalysisSchemeInput struct {
  1440. _ struct{} `type:"structure"`
  1441. // Configuration information for an analysis scheme. Each analysis scheme has
  1442. // a unique name and specifies the language of the text to be processed. The
  1443. // following options can be configured for an analysis scheme: Synonyms, Stopwords,
  1444. // StemmingDictionary, JapaneseTokenizationDictionary and AlgorithmicStemming.
  1445. AnalysisScheme *AnalysisScheme `type:"structure" required:"true"`
  1446. // A string that represents the name of a domain. Domain names are unique across
  1447. // the domains owned by an account within an AWS region. Domain names start
  1448. // with a letter or number and can contain the following characters: a-z (lowercase),
  1449. // 0-9, and - (hyphen).
  1450. DomainName *string `min:"3" type:"string" required:"true"`
  1451. }
  1452. // String returns the string representation
  1453. func (s DefineAnalysisSchemeInput) String() string {
  1454. return awsutil.Prettify(s)
  1455. }
  1456. // GoString returns the string representation
  1457. func (s DefineAnalysisSchemeInput) GoString() string {
  1458. return s.String()
  1459. }
  1460. // Validate inspects the fields of the type to determine if they are valid.
  1461. func (s *DefineAnalysisSchemeInput) Validate() error {
  1462. invalidParams := request.ErrInvalidParams{Context: "DefineAnalysisSchemeInput"}
  1463. if s.AnalysisScheme == nil {
  1464. invalidParams.Add(request.NewErrParamRequired("AnalysisScheme"))
  1465. }
  1466. if s.DomainName == nil {
  1467. invalidParams.Add(request.NewErrParamRequired("DomainName"))
  1468. }
  1469. if s.DomainName != nil && len(*s.DomainName) < 3 {
  1470. invalidParams.Add(request.NewErrParamMinLen("DomainName", 3))
  1471. }
  1472. if s.AnalysisScheme != nil {
  1473. if err := s.AnalysisScheme.Validate(); err != nil {
  1474. invalidParams.AddNested("AnalysisScheme", err.(request.ErrInvalidParams))
  1475. }
  1476. }
  1477. if invalidParams.Len() > 0 {
  1478. return invalidParams
  1479. }
  1480. return nil
  1481. }
  1482. // The result of a DefineAnalysisScheme request. Contains the status of the
  1483. // newly-configured analysis scheme.
  1484. type DefineAnalysisSchemeOutput struct {
  1485. _ struct{} `type:"structure"`
  1486. // The status and configuration of an AnalysisScheme.
  1487. AnalysisScheme *AnalysisSchemeStatus `type:"structure" required:"true"`
  1488. }
  1489. // String returns the string representation
  1490. func (s DefineAnalysisSchemeOutput) String() string {
  1491. return awsutil.Prettify(s)
  1492. }
  1493. // GoString returns the string representation
  1494. func (s DefineAnalysisSchemeOutput) GoString() string {
  1495. return s.String()
  1496. }
  1497. // Container for the parameters to the DefineExpression operation. Specifies
  1498. // the name of the domain you want to update and the expression you want to
  1499. // configure.
  1500. type DefineExpressionInput struct {
  1501. _ struct{} `type:"structure"`
  1502. // A string that represents the name of a domain. Domain names are unique across
  1503. // the domains owned by an account within an AWS region. Domain names start
  1504. // with a letter or number and can contain the following characters: a-z (lowercase),
  1505. // 0-9, and - (hyphen).
  1506. DomainName *string `min:"3" type:"string" required:"true"`
  1507. // A named expression that can be evaluated at search time. Can be used to sort
  1508. // the search results, define other expressions, or return computed information
  1509. // in the search results.
  1510. Expression *Expression `type:"structure" required:"true"`
  1511. }
  1512. // String returns the string representation
  1513. func (s DefineExpressionInput) String() string {
  1514. return awsutil.Prettify(s)
  1515. }
  1516. // GoString returns the string representation
  1517. func (s DefineExpressionInput) GoString() string {
  1518. return s.String()
  1519. }
  1520. // Validate inspects the fields of the type to determine if they are valid.
  1521. func (s *DefineExpressionInput) Validate() error {
  1522. invalidParams := request.ErrInvalidParams{Context: "DefineExpressionInput"}
  1523. if s.DomainName == nil {
  1524. invalidParams.Add(request.NewErrParamRequired("DomainName"))
  1525. }
  1526. if s.DomainName != nil && len(*s.DomainName) < 3 {
  1527. invalidParams.Add(request.NewErrParamMinLen("DomainName", 3))
  1528. }
  1529. if s.Expression == nil {
  1530. invalidParams.Add(request.NewErrParamRequired("Expression"))
  1531. }
  1532. if s.Expression != nil {
  1533. if err := s.Expression.Validate(); err != nil {
  1534. invalidParams.AddNested("Expression", err.(request.ErrInvalidParams))
  1535. }
  1536. }
  1537. if invalidParams.Len() > 0 {
  1538. return invalidParams
  1539. }
  1540. return nil
  1541. }
  1542. // The result of a DefineExpression request. Contains the status of the newly-configured
  1543. // expression.
  1544. type DefineExpressionOutput struct {
  1545. _ struct{} `type:"structure"`
  1546. // The value of an Expression and its current status.
  1547. Expression *ExpressionStatus `type:"structure" required:"true"`
  1548. }
  1549. // String returns the string representation
  1550. func (s DefineExpressionOutput) String() string {
  1551. return awsutil.Prettify(s)
  1552. }
  1553. // GoString returns the string representation
  1554. func (s DefineExpressionOutput) GoString() string {
  1555. return s.String()
  1556. }
  1557. // Container for the parameters to the DefineIndexField operation. Specifies
  1558. // the name of the domain you want to update and the index field configuration.
  1559. type DefineIndexFieldInput struct {
  1560. _ struct{} `type:"structure"`
  1561. // A string that represents the name of a domain. Domain names are unique across
  1562. // the domains owned by an account within an AWS region. Domain names start
  1563. // with a letter or number and can contain the following characters: a-z (lowercase),
  1564. // 0-9, and - (hyphen).
  1565. DomainName *string `min:"3" type:"string" required:"true"`
  1566. // The index field and field options you want to configure.
  1567. IndexField *IndexField `type:"structure" required:"true"`
  1568. }
  1569. // String returns the string representation
  1570. func (s DefineIndexFieldInput) String() string {
  1571. return awsutil.Prettify(s)
  1572. }
  1573. // GoString returns the string representation
  1574. func (s DefineIndexFieldInput) GoString() string {
  1575. return s.String()
  1576. }
  1577. // Validate inspects the fields of the type to determine if they are valid.
  1578. func (s *DefineIndexFieldInput) Validate() error {
  1579. invalidParams := request.ErrInvalidParams{Context: "DefineIndexFieldInput"}
  1580. if s.DomainName == nil {
  1581. invalidParams.Add(request.NewErrParamRequired("DomainName"))
  1582. }
  1583. if s.DomainName != nil && len(*s.DomainName) < 3 {
  1584. invalidParams.Add(request.NewErrParamMinLen("DomainName", 3))
  1585. }
  1586. if s.IndexField == nil {
  1587. invalidParams.Add(request.NewErrParamRequired("IndexField"))
  1588. }
  1589. if s.IndexField != nil {
  1590. if err := s.IndexField.Validate(); err != nil {
  1591. invalidParams.AddNested("IndexField", err.(request.ErrInvalidParams))
  1592. }
  1593. }
  1594. if invalidParams.Len() > 0 {
  1595. return invalidParams
  1596. }
  1597. return nil
  1598. }
  1599. // The result of a DefineIndexField request. Contains the status of the newly-configured
  1600. // index field.
  1601. type DefineIndexFieldOutput struct {
  1602. _ struct{} `type:"structure"`
  1603. // The value of an IndexField and its current status.
  1604. IndexField *IndexFieldStatus `type:"structure" required:"true"`
  1605. }
  1606. // String returns the string representation
  1607. func (s DefineIndexFieldOutput) String() string {
  1608. return awsutil.Prettify(s)
  1609. }
  1610. // GoString returns the string representation
  1611. func (s DefineIndexFieldOutput) GoString() string {
  1612. return s.String()
  1613. }
  1614. // Container for the parameters to the DefineSuggester operation. Specifies
  1615. // the name of the domain you want to update and the suggester configuration.
  1616. type DefineSuggesterInput struct {
  1617. _ struct{} `type:"structure"`
  1618. // A string that represents the name of a domain. Domain names are unique across
  1619. // the domains owned by an account within an AWS region. Domain names start
  1620. // with a letter or number and can contain the following characters: a-z (lowercase),
  1621. // 0-9, and - (hyphen).
  1622. DomainName *string `min:"3" type:"string" required:"true"`
  1623. // Configuration information for a search suggester. Each suggester has a unique
  1624. // name and specifies the text field you want to use for suggestions. The following
  1625. // options can be configured for a suggester: FuzzyMatching, SortExpression.
  1626. Suggester *Suggester `type:"structure" required:"true"`
  1627. }
  1628. // String returns the string representation
  1629. func (s DefineSuggesterInput) String() string {
  1630. return awsutil.Prettify(s)
  1631. }
  1632. // GoString returns the string representation
  1633. func (s DefineSuggesterInput) GoString() string {
  1634. return s.String()
  1635. }
  1636. // Validate inspects the fields of the type to determine if they are valid.
  1637. func (s *DefineSuggesterInput) Validate() error {
  1638. invalidParams := request.ErrInvalidParams{Context: "DefineSuggesterInput"}
  1639. if s.DomainName == nil {
  1640. invalidParams.Add(request.NewErrParamRequired("DomainName"))
  1641. }
  1642. if s.DomainName != nil && len(*s.DomainName) < 3 {
  1643. invalidParams.Add(request.NewErrParamMinLen("DomainName", 3))
  1644. }
  1645. if s.Suggester == nil {
  1646. invalidParams.Add(request.NewErrParamRequired("Suggester"))
  1647. }
  1648. if s.Suggester != nil {
  1649. if err := s.Suggester.Validate(); err != nil {
  1650. invalidParams.AddNested("Suggester", err.(request.ErrInvalidParams))
  1651. }
  1652. }
  1653. if invalidParams.Len() > 0 {
  1654. return invalidParams
  1655. }
  1656. return nil
  1657. }
  1658. // The result of a DefineSuggester request. Contains the status of the newly-configured
  1659. // suggester.
  1660. type DefineSuggesterOutput struct {
  1661. _ struct{} `type:"structure"`
  1662. // The value of a Suggester and its current status.
  1663. Suggester *SuggesterStatus `type:"structure" required:"true"`
  1664. }
  1665. // String returns the string representation
  1666. func (s DefineSuggesterOutput) String() string {
  1667. return awsutil.Prettify(s)
  1668. }
  1669. // GoString returns the string representation
  1670. func (s DefineSuggesterOutput) GoString() string {
  1671. return s.String()
  1672. }
  1673. // Container for the parameters to the DeleteAnalysisScheme operation. Specifies
  1674. // the name of the domain you want to update and the analysis scheme you want
  1675. // to delete.
  1676. type DeleteAnalysisSchemeInput struct {
  1677. _ struct{} `type:"structure"`
  1678. // The name of the analysis scheme you want to delete.
  1679. AnalysisSchemeName *string `min:"1" type:"string" required:"true"`
  1680. // A string that represents the name of a domain. Domain names are unique across
  1681. // the domains owned by an account within an AWS region. Domain names start
  1682. // with a letter or number and can contain the following characters: a-z (lowercase),
  1683. // 0-9, and - (hyphen).
  1684. DomainName *string `min:"3" type:"string" required:"true"`
  1685. }
  1686. // String returns the string representation
  1687. func (s DeleteAnalysisSchemeInput) String() string {
  1688. return awsutil.Prettify(s)
  1689. }
  1690. // GoString returns the string representation
  1691. func (s DeleteAnalysisSchemeInput) GoString() string {
  1692. return s.String()
  1693. }
  1694. // Validate inspects the fields of the type to determine if they are valid.
  1695. func (s *DeleteAnalysisSchemeInput) Validate() error {
  1696. invalidParams := request.ErrInvalidParams{Context: "DeleteAnalysisSchemeInput"}
  1697. if s.AnalysisSchemeName == nil {
  1698. invalidParams.Add(request.NewErrParamRequired("AnalysisSchemeName"))
  1699. }
  1700. if s.AnalysisSchemeName != nil && len(*s.AnalysisSchemeName) < 1 {
  1701. invalidParams.Add(request.NewErrParamMinLen("AnalysisSchemeName", 1))
  1702. }
  1703. if s.DomainName == nil {
  1704. invalidParams.Add(request.NewErrParamRequired("DomainName"))
  1705. }
  1706. if s.DomainName != nil && len(*s.DomainName) < 3 {
  1707. invalidParams.Add(request.NewErrParamMinLen("DomainName", 3))
  1708. }
  1709. if invalidParams.Len() > 0 {
  1710. return invalidParams
  1711. }
  1712. return nil
  1713. }
  1714. // The result of a DeleteAnalysisScheme request. Contains the status of the
  1715. // deleted analysis scheme.
  1716. type DeleteAnalysisSchemeOutput struct {
  1717. _ struct{} `type:"structure"`
  1718. // The status of the analysis scheme being deleted.
  1719. AnalysisScheme *AnalysisSchemeStatus `type:"structure" required:"true"`
  1720. }
  1721. // String returns the string representation
  1722. func (s DeleteAnalysisSchemeOutput) String() string {
  1723. return awsutil.Prettify(s)
  1724. }
  1725. // GoString returns the string representation
  1726. func (s DeleteAnalysisSchemeOutput) GoString() string {
  1727. return s.String()
  1728. }
  1729. // Container for the parameters to the DeleteDomain operation. Specifies the
  1730. // name of the domain you want to delete.
  1731. type DeleteDomainInput struct {
  1732. _ struct{} `type:"structure"`
  1733. // The name of the domain you want to permanently delete.
  1734. DomainName *string `min:"3" type:"string" required:"true"`
  1735. }
  1736. // String returns the string representation
  1737. func (s DeleteDomainInput) String() string {
  1738. return awsutil.Prettify(s)
  1739. }
  1740. // GoString returns the string representation
  1741. func (s DeleteDomainInput) GoString() string {
  1742. return s.String()
  1743. }
  1744. // Validate inspects the fields of the type to determine if they are valid.
  1745. func (s *DeleteDomainInput) Validate() error {
  1746. invalidParams := request.ErrInvalidParams{Context: "DeleteDomainInput"}
  1747. if s.DomainName == nil {
  1748. invalidParams.Add(request.NewErrParamRequired("DomainName"))
  1749. }
  1750. if s.DomainName != nil && len(*s.DomainName) < 3 {
  1751. invalidParams.Add(request.NewErrParamMinLen("DomainName", 3))
  1752. }
  1753. if invalidParams.Len() > 0 {
  1754. return invalidParams
  1755. }
  1756. return nil
  1757. }
  1758. // The result of a DeleteDomain request. Contains the status of a newly deleted
  1759. // domain, or no status if the domain has already been completely deleted.
  1760. type DeleteDomainOutput struct {
  1761. _ struct{} `type:"structure"`
  1762. // The current status of the search domain.
  1763. DomainStatus *DomainStatus `type:"structure"`
  1764. }
  1765. // String returns the string representation
  1766. func (s DeleteDomainOutput) String() string {
  1767. return awsutil.Prettify(s)
  1768. }
  1769. // GoString returns the string representation
  1770. func (s DeleteDomainOutput) GoString() string {
  1771. return s.String()
  1772. }
  1773. // Container for the parameters to the DeleteExpression operation. Specifies
  1774. // the name of the domain you want to update and the name of the expression
  1775. // you want to delete.
  1776. type DeleteExpressionInput struct {
  1777. _ struct{} `type:"structure"`
  1778. // A string that represents the name of a domain. Domain names are unique across
  1779. // the domains owned by an account within an AWS region. Domain names start
  1780. // with a letter or number and can contain the following characters: a-z (lowercase),
  1781. // 0-9, and - (hyphen).
  1782. DomainName *string `min:"3" type:"string" required:"true"`
  1783. // The name of the Expression to delete.
  1784. ExpressionName *string `min:"1" type:"string" required:"true"`
  1785. }
  1786. // String returns the string representation
  1787. func (s DeleteExpressionInput) String() string {
  1788. return awsutil.Prettify(s)
  1789. }
  1790. // GoString returns the string representation
  1791. func (s DeleteExpressionInput) GoString() string {
  1792. return s.String()
  1793. }
  1794. // Validate inspects the fields of the type to determine if they are valid.
  1795. func (s *DeleteExpressionInput) Validate() error {
  1796. invalidParams := request.ErrInvalidParams{Context: "DeleteExpressionInput"}
  1797. if s.DomainName == nil {
  1798. invalidParams.Add(request.NewErrParamRequired("DomainName"))
  1799. }
  1800. if s.DomainName != nil && len(*s.DomainName) < 3 {
  1801. invalidParams.Add(request.NewErrParamMinLen("DomainName", 3))
  1802. }
  1803. if s.ExpressionName == nil {
  1804. invalidParams.Add(request.NewErrParamRequired("ExpressionName"))
  1805. }
  1806. if s.ExpressionName != nil && len(*s.ExpressionName) < 1 {
  1807. invalidParams.Add(request.NewErrParamMinLen("ExpressionName", 1))
  1808. }
  1809. if invalidParams.Len() > 0 {
  1810. return invalidParams
  1811. }
  1812. return nil
  1813. }
  1814. // The result of a DeleteExpression request. Specifies the expression being
  1815. // deleted.
  1816. type DeleteExpressionOutput struct {
  1817. _ struct{} `type:"structure"`
  1818. // The status of the expression being deleted.
  1819. Expression *ExpressionStatus `type:"structure" required:"true"`
  1820. }
  1821. // String returns the string representation
  1822. func (s DeleteExpressionOutput) String() string {
  1823. return awsutil.Prettify(s)
  1824. }
  1825. // GoString returns the string representation
  1826. func (s DeleteExpressionOutput) GoString() string {
  1827. return s.String()
  1828. }
  1829. // Container for the parameters to the DeleteIndexField operation. Specifies
  1830. // the name of the domain you want to update and the name of the index field
  1831. // you want to delete.
  1832. type DeleteIndexFieldInput struct {
  1833. _ struct{} `type:"structure"`
  1834. // A string that represents the name of a domain. Domain names are unique across
  1835. // the domains owned by an account within an AWS region. Domain names start
  1836. // with a letter or number and can contain the following characters: a-z (lowercase),
  1837. // 0-9, and - (hyphen).
  1838. DomainName *string `min:"3" type:"string" required:"true"`
  1839. // The name of the index field your want to remove from the domain's indexing
  1840. // options.
  1841. IndexFieldName *string `min:"1" type:"string" required:"true"`
  1842. }
  1843. // String returns the string representation
  1844. func (s DeleteIndexFieldInput) String() string {
  1845. return awsutil.Prettify(s)
  1846. }
  1847. // GoString returns the string representation
  1848. func (s DeleteIndexFieldInput) GoString() string {
  1849. return s.String()
  1850. }
  1851. // Validate inspects the fields of the type to determine if they are valid.
  1852. func (s *DeleteIndexFieldInput) Validate() error {
  1853. invalidParams := request.ErrInvalidParams{Context: "DeleteIndexFieldInput"}
  1854. if s.DomainName == nil {
  1855. invalidParams.Add(request.NewErrParamRequired("DomainName"))
  1856. }
  1857. if s.DomainName != nil && len(*s.DomainName) < 3 {
  1858. invalidParams.Add(request.NewErrParamMinLen("DomainName", 3))
  1859. }
  1860. if s.IndexFieldName == nil {
  1861. invalidParams.Add(request.NewErrParamRequired("IndexFieldName"))
  1862. }
  1863. if s.IndexFieldName != nil && len(*s.IndexFieldName) < 1 {
  1864. invalidParams.Add(request.NewErrParamMinLen("IndexFieldName", 1))
  1865. }
  1866. if invalidParams.Len() > 0 {
  1867. return invalidParams
  1868. }
  1869. return nil
  1870. }
  1871. // The result of a DeleteIndexField request.
  1872. type DeleteIndexFieldOutput struct {
  1873. _ struct{} `type:"structure"`
  1874. // The status of the index field being deleted.
  1875. IndexField *IndexFieldStatus `type:"structure" required:"true"`
  1876. }
  1877. // String returns the string representation
  1878. func (s DeleteIndexFieldOutput) String() string {
  1879. return awsutil.Prettify(s)
  1880. }
  1881. // GoString returns the string representation
  1882. func (s DeleteIndexFieldOutput) GoString() string {
  1883. return s.String()
  1884. }
  1885. // Container for the parameters to the DeleteSuggester operation. Specifies
  1886. // the name of the domain you want to update and name of the suggester you want
  1887. // to delete.
  1888. type DeleteSuggesterInput struct {
  1889. _ struct{} `type:"structure"`
  1890. // A string that represents the name of a domain. Domain names are unique across
  1891. // the domains owned by an account within an AWS region. Domain names start
  1892. // with a letter or number and can contain the following characters: a-z (lowercase),
  1893. // 0-9, and - (hyphen).
  1894. DomainName *string `min:"3" type:"string" required:"true"`
  1895. // Specifies the name of the suggester you want to delete.
  1896. SuggesterName *string `min:"1" type:"string" required:"true"`
  1897. }
  1898. // String returns the string representation
  1899. func (s DeleteSuggesterInput) String() string {
  1900. return awsutil.Prettify(s)
  1901. }
  1902. // GoString returns the string representation
  1903. func (s DeleteSuggesterInput) GoString() string {
  1904. return s.String()
  1905. }
  1906. // Validate inspects the fields of the type to determine if they are valid.
  1907. func (s *DeleteSuggesterInput) Validate() error {
  1908. invalidParams := request.ErrInvalidParams{Context: "DeleteSuggesterInput"}
  1909. if s.DomainName == nil {
  1910. invalidParams.Add(request.NewErrParamRequired("DomainName"))
  1911. }
  1912. if s.DomainName != nil && len(*s.DomainName) < 3 {
  1913. invalidParams.Add(request.NewErrParamMinLen("DomainName", 3))
  1914. }
  1915. if s.SuggesterName == nil {
  1916. invalidParams.Add(request.NewErrParamRequired("SuggesterName"))
  1917. }
  1918. if s.SuggesterName != nil && len(*s.SuggesterName) < 1 {
  1919. invalidParams.Add(request.NewErrParamMinLen("SuggesterName", 1))
  1920. }
  1921. if invalidParams.Len() > 0 {
  1922. return invalidParams
  1923. }
  1924. return nil
  1925. }
  1926. // The result of a DeleteSuggester request. Contains the status of the deleted
  1927. // suggester.
  1928. type DeleteSuggesterOutput struct {
  1929. _ struct{} `type:"structure"`
  1930. // The status of the suggester being deleted.
  1931. Suggester *SuggesterStatus `type:"structure" required:"true"`
  1932. }
  1933. // String returns the string representation
  1934. func (s DeleteSuggesterOutput) String() string {
  1935. return awsutil.Prettify(s)
  1936. }
  1937. // GoString returns the string representation
  1938. func (s DeleteSuggesterOutput) GoString() string {
  1939. return s.String()
  1940. }
  1941. // Container for the parameters to the DescribeAnalysisSchemes operation. Specifies
  1942. // the name of the domain you want to describe. To limit the response to particular
  1943. // analysis schemes, specify the names of the analysis schemes you want to describe.
  1944. // To show the active configuration and exclude any pending changes, set the
  1945. // Deployed option to true.
  1946. type DescribeAnalysisSchemesInput struct {
  1947. _ struct{} `type:"structure"`
  1948. // The analysis schemes you want to describe.
  1949. AnalysisSchemeNames []*string `type:"list"`
  1950. // Whether to display the deployed configuration (true) or include any pending
  1951. // changes (false). Defaults to false.
  1952. Deployed *bool `type:"boolean"`
  1953. // The name of the domain you want to describe.
  1954. DomainName *string `min:"3" type:"string" required:"true"`
  1955. }
  1956. // String returns the string representation
  1957. func (s DescribeAnalysisSchemesInput) String() string {
  1958. return awsutil.Prettify(s)
  1959. }
  1960. // GoString returns the string representation
  1961. func (s DescribeAnalysisSchemesInput) GoString() string {
  1962. return s.String()
  1963. }
  1964. // Validate inspects the fields of the type to determine if they are valid.
  1965. func (s *DescribeAnalysisSchemesInput) Validate() error {
  1966. invalidParams := request.ErrInvalidParams{Context: "DescribeAnalysisSchemesInput"}
  1967. if s.DomainName == nil {
  1968. invalidParams.Add(request.NewErrParamRequired("DomainName"))
  1969. }
  1970. if s.DomainName != nil && len(*s.DomainName) < 3 {
  1971. invalidParams.Add(request.NewErrParamMinLen("DomainName", 3))
  1972. }
  1973. if invalidParams.Len() > 0 {
  1974. return invalidParams
  1975. }
  1976. return nil
  1977. }
  1978. // The result of a DescribeAnalysisSchemes request. Contains the analysis schemes
  1979. // configured for the domain specified in the request.
  1980. type DescribeAnalysisSchemesOutput struct {
  1981. _ struct{} `type:"structure"`
  1982. // The analysis scheme descriptions.
  1983. AnalysisSchemes []*AnalysisSchemeStatus `type:"list" required:"true"`
  1984. }
  1985. // String returns the string representation
  1986. func (s DescribeAnalysisSchemesOutput) String() string {
  1987. return awsutil.Prettify(s)
  1988. }
  1989. // GoString returns the string representation
  1990. func (s DescribeAnalysisSchemesOutput) GoString() string {
  1991. return s.String()
  1992. }
  1993. // Container for the parameters to the DescribeAvailabilityOptions operation.
  1994. // Specifies the name of the domain you want to describe. To show the active
  1995. // configuration and exclude any pending changes, set the Deployed option to
  1996. // true.
  1997. type DescribeAvailabilityOptionsInput struct {
  1998. _ struct{} `type:"structure"`
  1999. // Whether to display the deployed configuration (true) or include any pending
  2000. // changes (false). Defaults to false.
  2001. Deployed *bool `type:"boolean"`
  2002. // The name of the domain you want to describe.
  2003. DomainName *string `min:"3" type:"string" required:"true"`
  2004. }
  2005. // String returns the string representation
  2006. func (s DescribeAvailabilityOptionsInput) String() string {
  2007. return awsutil.Prettify(s)
  2008. }
  2009. // GoString returns the string representation
  2010. func (s DescribeAvailabilityOptionsInput) GoString() string {
  2011. return s.String()
  2012. }
  2013. // Validate inspects the fields of the type to determine if they are valid.
  2014. func (s *DescribeAvailabilityOptionsInput) Validate() error {
  2015. invalidParams := request.ErrInvalidParams{Context: "DescribeAvailabilityOptionsInput"}
  2016. if s.DomainName == nil {
  2017. invalidParams.Add(request.NewErrParamRequired("DomainName"))
  2018. }
  2019. if s.DomainName != nil && len(*s.DomainName) < 3 {
  2020. invalidParams.Add(request.NewErrParamMinLen("DomainName", 3))
  2021. }
  2022. if invalidParams.Len() > 0 {
  2023. return invalidParams
  2024. }
  2025. return nil
  2026. }
  2027. // The result of a DescribeAvailabilityOptions request. Indicates whether or
  2028. // not the Multi-AZ option is enabled for the domain specified in the request.
  2029. type DescribeAvailabilityOptionsOutput struct {
  2030. _ struct{} `type:"structure"`
  2031. // The availability options configured for the domain. Indicates whether Multi-AZ
  2032. // is enabled for the domain.
  2033. AvailabilityOptions *AvailabilityOptionsStatus `type:"structure"`
  2034. }
  2035. // String returns the string representation
  2036. func (s DescribeAvailabilityOptionsOutput) String() string {
  2037. return awsutil.Prettify(s)
  2038. }
  2039. // GoString returns the string representation
  2040. func (s DescribeAvailabilityOptionsOutput) GoString() string {
  2041. return s.String()
  2042. }
  2043. // Container for the parameters to the DescribeDomains operation. By default
  2044. // shows the status of all domains. To restrict the response to particular domains,
  2045. // specify the names of the domains you want to describe.
  2046. type DescribeDomainsInput struct {
  2047. _ struct{} `type:"structure"`
  2048. // The names of the domains you want to include in the response.
  2049. DomainNames []*string `type:"list"`
  2050. }
  2051. // String returns the string representation
  2052. func (s DescribeDomainsInput) String() string {
  2053. return awsutil.Prettify(s)
  2054. }
  2055. // GoString returns the string representation
  2056. func (s DescribeDomainsInput) GoString() string {
  2057. return s.String()
  2058. }
  2059. // The result of a DescribeDomains request. Contains the status of the domains
  2060. // specified in the request or all domains owned by the account.
  2061. type DescribeDomainsOutput struct {
  2062. _ struct{} `type:"structure"`
  2063. // A list that contains the status of each requested domain.
  2064. DomainStatusList []*DomainStatus `type:"list" required:"true"`
  2065. }
  2066. // String returns the string representation
  2067. func (s DescribeDomainsOutput) String() string {
  2068. return awsutil.Prettify(s)
  2069. }
  2070. // GoString returns the string representation
  2071. func (s DescribeDomainsOutput) GoString() string {
  2072. return s.String()
  2073. }
  2074. // Container for the parameters to the DescribeDomains operation. Specifies
  2075. // the name of the domain you want to describe. To restrict the response to
  2076. // particular expressions, specify the names of the expressions you want to
  2077. // describe. To show the active configuration and exclude any pending changes,
  2078. // set the Deployed option to true.
  2079. type DescribeExpressionsInput struct {
  2080. _ struct{} `type:"structure"`
  2081. // Whether to display the deployed configuration (true) or include any pending
  2082. // changes (false). Defaults to false.
  2083. Deployed *bool `type:"boolean"`
  2084. // The name of the domain you want to describe.
  2085. DomainName *string `min:"3" type:"string" required:"true"`
  2086. // Limits the DescribeExpressions response to the specified expressions. If
  2087. // not specified, all expressions are shown.
  2088. ExpressionNames []*string `type:"list"`
  2089. }
  2090. // String returns the string representation
  2091. func (s DescribeExpressionsInput) String() string {
  2092. return awsutil.Prettify(s)
  2093. }
  2094. // GoString returns the string representation
  2095. func (s DescribeExpressionsInput) GoString() string {
  2096. return s.String()
  2097. }
  2098. // Validate inspects the fields of the type to determine if they are valid.
  2099. func (s *DescribeExpressionsInput) Validate() error {
  2100. invalidParams := request.ErrInvalidParams{Context: "DescribeExpressionsInput"}
  2101. if s.DomainName == nil {
  2102. invalidParams.Add(request.NewErrParamRequired("DomainName"))
  2103. }
  2104. if s.DomainName != nil && len(*s.DomainName) < 3 {
  2105. invalidParams.Add(request.NewErrParamMinLen("DomainName", 3))
  2106. }
  2107. if invalidParams.Len() > 0 {
  2108. return invalidParams
  2109. }
  2110. return nil
  2111. }
  2112. // The result of a DescribeExpressions request. Contains the expressions configured
  2113. // for the domain specified in the request.
  2114. type DescribeExpressionsOutput struct {
  2115. _ struct{} `type:"structure"`
  2116. // The expressions configured for the domain.
  2117. Expressions []*ExpressionStatus `type:"list" required:"true"`
  2118. }
  2119. // String returns the string representation
  2120. func (s DescribeExpressionsOutput) String() string {
  2121. return awsutil.Prettify(s)
  2122. }
  2123. // GoString returns the string representation
  2124. func (s DescribeExpressionsOutput) GoString() string {
  2125. return s.String()
  2126. }
  2127. // Container for the parameters to the DescribeIndexFields operation. Specifies
  2128. // the name of the domain you want to describe. To restrict the response to
  2129. // particular index fields, specify the names of the index fields you want to
  2130. // describe. To show the active configuration and exclude any pending changes,
  2131. // set the Deployed option to true.
  2132. type DescribeIndexFieldsInput struct {
  2133. _ struct{} `type:"structure"`
  2134. // Whether to display the deployed configuration (true) or include any pending
  2135. // changes (false). Defaults to false.
  2136. Deployed *bool `type:"boolean"`
  2137. // The name of the domain you want to describe.
  2138. DomainName *string `min:"3" type:"string" required:"true"`
  2139. // A list of the index fields you want to describe. If not specified, information
  2140. // is returned for all configured index fields.
  2141. FieldNames []*string `type:"list"`
  2142. }
  2143. // String returns the string representation
  2144. func (s DescribeIndexFieldsInput) String() string {
  2145. return awsutil.Prettify(s)
  2146. }
  2147. // GoString returns the string representation
  2148. func (s DescribeIndexFieldsInput) GoString() string {
  2149. return s.String()
  2150. }
  2151. // Validate inspects the fields of the type to determine if they are valid.
  2152. func (s *DescribeIndexFieldsInput) Validate() error {
  2153. invalidParams := request.ErrInvalidParams{Context: "DescribeIndexFieldsInput"}
  2154. if s.DomainName == nil {
  2155. invalidParams.Add(request.NewErrParamRequired("DomainName"))
  2156. }
  2157. if s.DomainName != nil && len(*s.DomainName) < 3 {
  2158. invalidParams.Add(request.NewErrParamMinLen("DomainName", 3))
  2159. }
  2160. if invalidParams.Len() > 0 {
  2161. return invalidParams
  2162. }
  2163. return nil
  2164. }
  2165. // The result of a DescribeIndexFields request. Contains the index fields configured
  2166. // for the domain specified in the request.
  2167. type DescribeIndexFieldsOutput struct {
  2168. _ struct{} `type:"structure"`
  2169. // The index fields configured for the domain.
  2170. IndexFields []*IndexFieldStatus `type:"list" required:"true"`
  2171. }
  2172. // String returns the string representation
  2173. func (s DescribeIndexFieldsOutput) String() string {
  2174. return awsutil.Prettify(s)
  2175. }
  2176. // GoString returns the string representation
  2177. func (s DescribeIndexFieldsOutput) GoString() string {
  2178. return s.String()
  2179. }
  2180. // Container for the parameters to the DescribeScalingParameters operation.
  2181. // Specifies the name of the domain you want to describe.
  2182. type DescribeScalingParametersInput struct {
  2183. _ struct{} `type:"structure"`
  2184. // A string that represents the name of a domain. Domain names are unique across
  2185. // the domains owned by an account within an AWS region. Domain names start
  2186. // with a letter or number and can contain the following characters: a-z (lowercase),
  2187. // 0-9, and - (hyphen).
  2188. DomainName *string `min:"3" type:"string" required:"true"`
  2189. }
  2190. // String returns the string representation
  2191. func (s DescribeScalingParametersInput) String() string {
  2192. return awsutil.Prettify(s)
  2193. }
  2194. // GoString returns the string representation
  2195. func (s DescribeScalingParametersInput) GoString() string {
  2196. return s.String()
  2197. }
  2198. // Validate inspects the fields of the type to determine if they are valid.
  2199. func (s *DescribeScalingParametersInput) Validate() error {
  2200. invalidParams := request.ErrInvalidParams{Context: "DescribeScalingParametersInput"}
  2201. if s.DomainName == nil {
  2202. invalidParams.Add(request.NewErrParamRequired("DomainName"))
  2203. }
  2204. if s.DomainName != nil && len(*s.DomainName) < 3 {
  2205. invalidParams.Add(request.NewErrParamMinLen("DomainName", 3))
  2206. }
  2207. if invalidParams.Len() > 0 {
  2208. return invalidParams
  2209. }
  2210. return nil
  2211. }
  2212. // The result of a DescribeScalingParameters request. Contains the scaling parameters
  2213. // configured for the domain specified in the request.
  2214. type DescribeScalingParametersOutput struct {
  2215. _ struct{} `type:"structure"`
  2216. // The status and configuration of a search domain's scaling parameters.
  2217. ScalingParameters *ScalingParametersStatus `type:"structure" required:"true"`
  2218. }
  2219. // String returns the string representation
  2220. func (s DescribeScalingParametersOutput) String() string {
  2221. return awsutil.Prettify(s)
  2222. }
  2223. // GoString returns the string representation
  2224. func (s DescribeScalingParametersOutput) GoString() string {
  2225. return s.String()
  2226. }
  2227. // Container for the parameters to the DescribeServiceAccessPolicies operation.
  2228. // Specifies the name of the domain you want to describe. To show the active
  2229. // configuration and exclude any pending changes, set the Deployed option to
  2230. // true.
  2231. type DescribeServiceAccessPoliciesInput struct {
  2232. _ struct{} `type:"structure"`
  2233. // Whether to display the deployed configuration (true) or include any pending
  2234. // changes (false). Defaults to false.
  2235. Deployed *bool `type:"boolean"`
  2236. // The name of the domain you want to describe.
  2237. DomainName *string `min:"3" type:"string" required:"true"`
  2238. }
  2239. // String returns the string representation
  2240. func (s DescribeServiceAccessPoliciesInput) String() string {
  2241. return awsutil.Prettify(s)
  2242. }
  2243. // GoString returns the string representation
  2244. func (s DescribeServiceAccessPoliciesInput) GoString() string {
  2245. return s.String()
  2246. }
  2247. // Validate inspects the fields of the type to determine if they are valid.
  2248. func (s *DescribeServiceAccessPoliciesInput) Validate() error {
  2249. invalidParams := request.ErrInvalidParams{Context: "DescribeServiceAccessPoliciesInput"}
  2250. if s.DomainName == nil {
  2251. invalidParams.Add(request.NewErrParamRequired("DomainName"))
  2252. }
  2253. if s.DomainName != nil && len(*s.DomainName) < 3 {
  2254. invalidParams.Add(request.NewErrParamMinLen("DomainName", 3))
  2255. }
  2256. if invalidParams.Len() > 0 {
  2257. return invalidParams
  2258. }
  2259. return nil
  2260. }
  2261. // The result of a DescribeServiceAccessPolicies request.
  2262. type DescribeServiceAccessPoliciesOutput struct {
  2263. _ struct{} `type:"structure"`
  2264. // The access rules configured for the domain specified in the request.
  2265. AccessPolicies *AccessPoliciesStatus `type:"structure" required:"true"`
  2266. }
  2267. // String returns the string representation
  2268. func (s DescribeServiceAccessPoliciesOutput) String() string {
  2269. return awsutil.Prettify(s)
  2270. }
  2271. // GoString returns the string representation
  2272. func (s DescribeServiceAccessPoliciesOutput) GoString() string {
  2273. return s.String()
  2274. }
  2275. // Container for the parameters to the DescribeSuggester operation. Specifies
  2276. // the name of the domain you want to describe. To restrict the response to
  2277. // particular suggesters, specify the names of the suggesters you want to describe.
  2278. // To show the active configuration and exclude any pending changes, set the
  2279. // Deployed option to true.
  2280. type DescribeSuggestersInput struct {
  2281. _ struct{} `type:"structure"`
  2282. // Whether to display the deployed configuration (true) or include any pending
  2283. // changes (false). Defaults to false.
  2284. Deployed *bool `type:"boolean"`
  2285. // The name of the domain you want to describe.
  2286. DomainName *string `min:"3" type:"string" required:"true"`
  2287. // The suggesters you want to describe.
  2288. SuggesterNames []*string `type:"list"`
  2289. }
  2290. // String returns the string representation
  2291. func (s DescribeSuggestersInput) String() string {
  2292. return awsutil.Prettify(s)
  2293. }
  2294. // GoString returns the string representation
  2295. func (s DescribeSuggestersInput) GoString() string {
  2296. return s.String()
  2297. }
  2298. // Validate inspects the fields of the type to determine if they are valid.
  2299. func (s *DescribeSuggestersInput) Validate() error {
  2300. invalidParams := request.ErrInvalidParams{Context: "DescribeSuggestersInput"}
  2301. if s.DomainName == nil {
  2302. invalidParams.Add(request.NewErrParamRequired("DomainName"))
  2303. }
  2304. if s.DomainName != nil && len(*s.DomainName) < 3 {
  2305. invalidParams.Add(request.NewErrParamMinLen("DomainName", 3))
  2306. }
  2307. if invalidParams.Len() > 0 {
  2308. return invalidParams
  2309. }
  2310. return nil
  2311. }
  2312. // The result of a DescribeSuggesters request.
  2313. type DescribeSuggestersOutput struct {
  2314. _ struct{} `type:"structure"`
  2315. // The suggesters configured for the domain specified in the request.
  2316. Suggesters []*SuggesterStatus `type:"list" required:"true"`
  2317. }
  2318. // String returns the string representation
  2319. func (s DescribeSuggestersOutput) String() string {
  2320. return awsutil.Prettify(s)
  2321. }
  2322. // GoString returns the string representation
  2323. func (s DescribeSuggestersOutput) GoString() string {
  2324. return s.String()
  2325. }
  2326. // Options for a search suggester.
  2327. type DocumentSuggesterOptions struct {
  2328. _ struct{} `type:"structure"`
  2329. // The level of fuzziness allowed when suggesting matches for a string: none,
  2330. // low, or high. With none, the specified string is treated as an exact prefix.
  2331. // With low, suggestions must differ from the specified string by no more than
  2332. // one character. With high, suggestions can differ by up to two characters.
  2333. // The default is none.
  2334. FuzzyMatching *string `type:"string" enum:"SuggesterFuzzyMatching"`
  2335. // An expression that computes a score for each suggestion to control how they
  2336. // are sorted. The scores are rounded to the nearest integer, with a floor of
  2337. // 0 and a ceiling of 2^31-1. A document's relevance score is not computed for
  2338. // suggestions, so sort expressions cannot reference the _score value. To sort
  2339. // suggestions using a numeric field or existing expression, simply specify
  2340. // the name of the field or expression. If no expression is configured for the
  2341. // suggester, the suggestions are sorted with the closest matches listed first.
  2342. SortExpression *string `type:"string"`
  2343. // The name of the index field you want to use for suggestions.
  2344. SourceField *string `min:"1" type:"string" required:"true"`
  2345. }
  2346. // String returns the string representation
  2347. func (s DocumentSuggesterOptions) String() string {
  2348. return awsutil.Prettify(s)
  2349. }
  2350. // GoString returns the string representation
  2351. func (s DocumentSuggesterOptions) GoString() string {
  2352. return s.String()
  2353. }
  2354. // Validate inspects the fields of the type to determine if they are valid.
  2355. func (s *DocumentSuggesterOptions) Validate() error {
  2356. invalidParams := request.ErrInvalidParams{Context: "DocumentSuggesterOptions"}
  2357. if s.SourceField == nil {
  2358. invalidParams.Add(request.NewErrParamRequired("SourceField"))
  2359. }
  2360. if s.SourceField != nil && len(*s.SourceField) < 1 {
  2361. invalidParams.Add(request.NewErrParamMinLen("SourceField", 1))
  2362. }
  2363. if invalidParams.Len() > 0 {
  2364. return invalidParams
  2365. }
  2366. return nil
  2367. }
  2368. // The current status of the search domain.
  2369. type DomainStatus struct {
  2370. _ struct{} `type:"structure"`
  2371. // The Amazon Resource Name (ARN) of the search domain. See Identifiers for
  2372. // IAM Entities (http://docs.aws.amazon.com/IAM/latest/UserGuide/index.html?Using_Identifiers.html"
  2373. // target="_blank) in Using AWS Identity and Access Management for more information.
  2374. ARN *string `type:"string"`
  2375. // True if the search domain is created. It can take several minutes to initialize
  2376. // a domain when CreateDomain is called. Newly created search domains are returned
  2377. // from DescribeDomains with a false value for Created until domain creation
  2378. // is complete.
  2379. Created *bool `type:"boolean"`
  2380. // True if the search domain has been deleted. The system must clean up resources
  2381. // dedicated to the search domain when DeleteDomain is called. Newly deleted
  2382. // search domains are returned from DescribeDomains with a true value for IsDeleted
  2383. // for several minutes until resource cleanup is complete.
  2384. Deleted *bool `type:"boolean"`
  2385. // The service endpoint for updating documents in a search domain.
  2386. DocService *ServiceEndpoint `type:"structure"`
  2387. // An internally generated unique identifier for a domain.
  2388. DomainId *string `min:"1" type:"string" required:"true"`
  2389. // A string that represents the name of a domain. Domain names are unique across
  2390. // the domains owned by an account within an AWS region. Domain names start
  2391. // with a letter or number and can contain the following characters: a-z (lowercase),
  2392. // 0-9, and - (hyphen).
  2393. DomainName *string `min:"3" type:"string" required:"true"`
  2394. Limits *Limits `type:"structure"`
  2395. // True if processing is being done to activate the current domain configuration.
  2396. Processing *bool `type:"boolean"`
  2397. // True if IndexDocuments needs to be called to activate the current domain
  2398. // configuration.
  2399. RequiresIndexDocuments *bool `type:"boolean" required:"true"`
  2400. // The number of search instances that are available to process search requests.
  2401. SearchInstanceCount *int64 `min:"1" type:"integer"`
  2402. // The instance type that is being used to process search requests.
  2403. SearchInstanceType *string `type:"string"`
  2404. // The number of partitions across which the search index is spread.
  2405. SearchPartitionCount *int64 `min:"1" type:"integer"`
  2406. // The service endpoint for requesting search results from a search domain.
  2407. SearchService *ServiceEndpoint `type:"structure"`
  2408. }
  2409. // String returns the string representation
  2410. func (s DomainStatus) String() string {
  2411. return awsutil.Prettify(s)
  2412. }
  2413. // GoString returns the string representation
  2414. func (s DomainStatus) GoString() string {
  2415. return s.String()
  2416. }
  2417. // Options for a field that contains an array of double-precision 64-bit floating
  2418. // point values. Present if IndexFieldType specifies the field is of type double-array.
  2419. // All options are enabled by default.
  2420. type DoubleArrayOptions struct {
  2421. _ struct{} `type:"structure"`
  2422. // A value to use for the field if the field isn't specified for a document.
  2423. DefaultValue *float64 `type:"double"`
  2424. // Whether facet information can be returned for the field.
  2425. FacetEnabled *bool `type:"boolean"`
  2426. // Whether the contents of the field can be returned in the search results.
  2427. ReturnEnabled *bool `type:"boolean"`
  2428. // Whether the contents of the field are searchable.
  2429. SearchEnabled *bool `type:"boolean"`
  2430. // A list of source fields to map to the field.
  2431. SourceFields *string `type:"string"`
  2432. }
  2433. // String returns the string representation
  2434. func (s DoubleArrayOptions) String() string {
  2435. return awsutil.Prettify(s)
  2436. }
  2437. // GoString returns the string representation
  2438. func (s DoubleArrayOptions) GoString() string {
  2439. return s.String()
  2440. }
  2441. // Options for a double-precision 64-bit floating point field. Present if IndexFieldType
  2442. // specifies the field is of type double. All options are enabled by default.
  2443. type DoubleOptions struct {
  2444. _ struct{} `type:"structure"`
  2445. // A value to use for the field if the field isn't specified for a document.
  2446. // This can be important if you are using the field in an expression and that
  2447. // field is not present in every document.
  2448. DefaultValue *float64 `type:"double"`
  2449. // Whether facet information can be returned for the field.
  2450. FacetEnabled *bool `type:"boolean"`
  2451. // Whether the contents of the field can be returned in the search results.
  2452. ReturnEnabled *bool `type:"boolean"`
  2453. // Whether the contents of the field are searchable.
  2454. SearchEnabled *bool `type:"boolean"`
  2455. // Whether the field can be used to sort the search results.
  2456. SortEnabled *bool `type:"boolean"`
  2457. // The name of the source field to map to the field.
  2458. SourceField *string `min:"1" type:"string"`
  2459. }
  2460. // String returns the string representation
  2461. func (s DoubleOptions) String() string {
  2462. return awsutil.Prettify(s)
  2463. }
  2464. // GoString returns the string representation
  2465. func (s DoubleOptions) GoString() string {
  2466. return s.String()
  2467. }
  2468. // Validate inspects the fields of the type to determine if they are valid.
  2469. func (s *DoubleOptions) Validate() error {
  2470. invalidParams := request.ErrInvalidParams{Context: "DoubleOptions"}
  2471. if s.SourceField != nil && len(*s.SourceField) < 1 {
  2472. invalidParams.Add(request.NewErrParamMinLen("SourceField", 1))
  2473. }
  2474. if invalidParams.Len() > 0 {
  2475. return invalidParams
  2476. }
  2477. return nil
  2478. }
  2479. // A named expression that can be evaluated at search time. Can be used to sort
  2480. // the search results, define other expressions, or return computed information
  2481. // in the search results.
  2482. type Expression struct {
  2483. _ struct{} `type:"structure"`
  2484. // Names must begin with a letter and can contain the following characters:
  2485. // a-z (lowercase), 0-9, and _ (underscore).
  2486. ExpressionName *string `min:"1" type:"string" required:"true"`
  2487. // The expression to evaluate for sorting while processing a search request.
  2488. // The Expression syntax is based on JavaScript expressions. For more information,
  2489. // see Configuring Expressions (http://docs.aws.amazon.com/cloudsearch/latest/developerguide/configuring-expressions.html"
  2490. // target="_blank) in the Amazon CloudSearch Developer Guide.
  2491. ExpressionValue *string `min:"1" type:"string" required:"true"`
  2492. }
  2493. // String returns the string representation
  2494. func (s Expression) String() string {
  2495. return awsutil.Prettify(s)
  2496. }
  2497. // GoString returns the string representation
  2498. func (s Expression) GoString() string {
  2499. return s.String()
  2500. }
  2501. // Validate inspects the fields of the type to determine if they are valid.
  2502. func (s *Expression) Validate() error {
  2503. invalidParams := request.ErrInvalidParams{Context: "Expression"}
  2504. if s.ExpressionName == nil {
  2505. invalidParams.Add(request.NewErrParamRequired("ExpressionName"))
  2506. }
  2507. if s.ExpressionName != nil && len(*s.ExpressionName) < 1 {
  2508. invalidParams.Add(request.NewErrParamMinLen("ExpressionName", 1))
  2509. }
  2510. if s.ExpressionValue == nil {
  2511. invalidParams.Add(request.NewErrParamRequired("ExpressionValue"))
  2512. }
  2513. if s.ExpressionValue != nil && len(*s.ExpressionValue) < 1 {
  2514. invalidParams.Add(request.NewErrParamMinLen("ExpressionValue", 1))
  2515. }
  2516. if invalidParams.Len() > 0 {
  2517. return invalidParams
  2518. }
  2519. return nil
  2520. }
  2521. // The value of an Expression and its current status.
  2522. type ExpressionStatus struct {
  2523. _ struct{} `type:"structure"`
  2524. // The expression that is evaluated for sorting while processing a search request.
  2525. Options *Expression `type:"structure" required:"true"`
  2526. // The status of domain configuration option.
  2527. Status *OptionStatus `type:"structure" required:"true"`
  2528. }
  2529. // String returns the string representation
  2530. func (s ExpressionStatus) String() string {
  2531. return awsutil.Prettify(s)
  2532. }
  2533. // GoString returns the string representation
  2534. func (s ExpressionStatus) GoString() string {
  2535. return s.String()
  2536. }
  2537. // Container for the parameters to the IndexDocuments operation. Specifies the
  2538. // name of the domain you want to re-index.
  2539. type IndexDocumentsInput struct {
  2540. _ struct{} `type:"structure"`
  2541. // A string that represents the name of a domain. Domain names are unique across
  2542. // the domains owned by an account within an AWS region. Domain names start
  2543. // with a letter or number and can contain the following characters: a-z (lowercase),
  2544. // 0-9, and - (hyphen).
  2545. DomainName *string `min:"3" type:"string" required:"true"`
  2546. }
  2547. // String returns the string representation
  2548. func (s IndexDocumentsInput) String() string {
  2549. return awsutil.Prettify(s)
  2550. }
  2551. // GoString returns the string representation
  2552. func (s IndexDocumentsInput) GoString() string {
  2553. return s.String()
  2554. }
  2555. // Validate inspects the fields of the type to determine if they are valid.
  2556. func (s *IndexDocumentsInput) Validate() error {
  2557. invalidParams := request.ErrInvalidParams{Context: "IndexDocumentsInput"}
  2558. if s.DomainName == nil {
  2559. invalidParams.Add(request.NewErrParamRequired("DomainName"))
  2560. }
  2561. if s.DomainName != nil && len(*s.DomainName) < 3 {
  2562. invalidParams.Add(request.NewErrParamMinLen("DomainName", 3))
  2563. }
  2564. if invalidParams.Len() > 0 {
  2565. return invalidParams
  2566. }
  2567. return nil
  2568. }
  2569. // The result of an IndexDocuments request. Contains the status of the indexing
  2570. // operation, including the fields being indexed.
  2571. type IndexDocumentsOutput struct {
  2572. _ struct{} `type:"structure"`
  2573. // The names of the fields that are currently being indexed.
  2574. FieldNames []*string `type:"list"`
  2575. }
  2576. // String returns the string representation
  2577. func (s IndexDocumentsOutput) String() string {
  2578. return awsutil.Prettify(s)
  2579. }
  2580. // GoString returns the string representation
  2581. func (s IndexDocumentsOutput) GoString() string {
  2582. return s.String()
  2583. }
  2584. // Configuration information for a field in the index, including its name, type,
  2585. // and options. The supported options depend on the IndexFieldType.
  2586. type IndexField struct {
  2587. _ struct{} `type:"structure"`
  2588. // Options for a field that contains an array of dates. Present if IndexFieldType
  2589. // specifies the field is of type date-array. All options are enabled by default.
  2590. DateArrayOptions *DateArrayOptions `type:"structure"`
  2591. // Options for a date field. Dates and times are specified in UTC (Coordinated
  2592. // Universal Time) according to IETF RFC3339: yyyy-mm-ddT00:00:00Z. Present
  2593. // if IndexFieldType specifies the field is of type date. All options are enabled
  2594. // by default.
  2595. DateOptions *DateOptions `type:"structure"`
  2596. // Options for a field that contains an array of double-precision 64-bit floating
  2597. // point values. Present if IndexFieldType specifies the field is of type double-array.
  2598. // All options are enabled by default.
  2599. DoubleArrayOptions *DoubleArrayOptions `type:"structure"`
  2600. // Options for a double-precision 64-bit floating point field. Present if IndexFieldType
  2601. // specifies the field is of type double. All options are enabled by default.
  2602. DoubleOptions *DoubleOptions `type:"structure"`
  2603. // A string that represents the name of an index field. CloudSearch supports
  2604. // regular index fields as well as dynamic fields. A dynamic field's name defines
  2605. // a pattern that begins or ends with a wildcard. Any document fields that don't
  2606. // map to a regular index field but do match a dynamic field's pattern are configured
  2607. // with the dynamic field's indexing options.
  2608. //
  2609. // Regular field names begin with a letter and can contain the following characters:
  2610. // a-z (lowercase), 0-9, and _ (underscore). Dynamic field names must begin
  2611. // or end with a wildcard (*). The wildcard can also be the only character in
  2612. // a dynamic field name. Multiple wildcards, and wildcards embedded within a
  2613. // string are not supported.
  2614. //
  2615. // The name score is reserved and cannot be used as a field name. To reference
  2616. // a document's ID, you can use the name _id.
  2617. IndexFieldName *string `min:"1" type:"string" required:"true"`
  2618. // The type of field. The valid options for a field depend on the field type.
  2619. // For more information about the supported field types, see Configuring Index
  2620. // Fields (http://docs.aws.amazon.com/cloudsearch/latest/developerguide/configuring-index-fields.html"
  2621. // target="_blank) in the Amazon CloudSearch Developer Guide.
  2622. IndexFieldType *string `type:"string" required:"true" enum:"IndexFieldType"`
  2623. // Options for a field that contains an array of 64-bit signed integers. Present
  2624. // if IndexFieldType specifies the field is of type int-array. All options are
  2625. // enabled by default.
  2626. IntArrayOptions *IntArrayOptions `type:"structure"`
  2627. // Options for a 64-bit signed integer field. Present if IndexFieldType specifies
  2628. // the field is of type int. All options are enabled by default.
  2629. IntOptions *IntOptions `type:"structure"`
  2630. // Options for a latlon field. A latlon field contains a location stored as
  2631. // a latitude and longitude value pair. Present if IndexFieldType specifies
  2632. // the field is of type latlon. All options are enabled by default.
  2633. LatLonOptions *LatLonOptions `type:"structure"`
  2634. // Options for a field that contains an array of literal strings. Present if
  2635. // IndexFieldType specifies the field is of type literal-array. All options
  2636. // are enabled by default.
  2637. LiteralArrayOptions *LiteralArrayOptions `type:"structure"`
  2638. // Options for literal field. Present if IndexFieldType specifies the field
  2639. // is of type literal. All options are enabled by default.
  2640. LiteralOptions *LiteralOptions `type:"structure"`
  2641. // Options for a field that contains an array of text strings. Present if IndexFieldType
  2642. // specifies the field is of type text-array. A text-array field is always searchable.
  2643. // All options are enabled by default.
  2644. TextArrayOptions *TextArrayOptions `type:"structure"`
  2645. // Options for text field. Present if IndexFieldType specifies the field is
  2646. // of type text. A text field is always searchable. All options are enabled
  2647. // by default.
  2648. TextOptions *TextOptions `type:"structure"`
  2649. }
  2650. // String returns the string representation
  2651. func (s IndexField) String() string {
  2652. return awsutil.Prettify(s)
  2653. }
  2654. // GoString returns the string representation
  2655. func (s IndexField) GoString() string {
  2656. return s.String()
  2657. }
  2658. // Validate inspects the fields of the type to determine if they are valid.
  2659. func (s *IndexField) Validate() error {
  2660. invalidParams := request.ErrInvalidParams{Context: "IndexField"}
  2661. if s.IndexFieldName == nil {
  2662. invalidParams.Add(request.NewErrParamRequired("IndexFieldName"))
  2663. }
  2664. if s.IndexFieldName != nil && len(*s.IndexFieldName) < 1 {
  2665. invalidParams.Add(request.NewErrParamMinLen("IndexFieldName", 1))
  2666. }
  2667. if s.IndexFieldType == nil {
  2668. invalidParams.Add(request.NewErrParamRequired("IndexFieldType"))
  2669. }
  2670. if s.DateOptions != nil {
  2671. if err := s.DateOptions.Validate(); err != nil {
  2672. invalidParams.AddNested("DateOptions", err.(request.ErrInvalidParams))
  2673. }
  2674. }
  2675. if s.DoubleOptions != nil {
  2676. if err := s.DoubleOptions.Validate(); err != nil {
  2677. invalidParams.AddNested("DoubleOptions", err.(request.ErrInvalidParams))
  2678. }
  2679. }
  2680. if s.IntOptions != nil {
  2681. if err := s.IntOptions.Validate(); err != nil {
  2682. invalidParams.AddNested("IntOptions", err.(request.ErrInvalidParams))
  2683. }
  2684. }
  2685. if s.LatLonOptions != nil {
  2686. if err := s.LatLonOptions.Validate(); err != nil {
  2687. invalidParams.AddNested("LatLonOptions", err.(request.ErrInvalidParams))
  2688. }
  2689. }
  2690. if s.LiteralOptions != nil {
  2691. if err := s.LiteralOptions.Validate(); err != nil {
  2692. invalidParams.AddNested("LiteralOptions", err.(request.ErrInvalidParams))
  2693. }
  2694. }
  2695. if s.TextOptions != nil {
  2696. if err := s.TextOptions.Validate(); err != nil {
  2697. invalidParams.AddNested("TextOptions", err.(request.ErrInvalidParams))
  2698. }
  2699. }
  2700. if invalidParams.Len() > 0 {
  2701. return invalidParams
  2702. }
  2703. return nil
  2704. }
  2705. // The value of an IndexField and its current status.
  2706. type IndexFieldStatus struct {
  2707. _ struct{} `type:"structure"`
  2708. // Configuration information for a field in the index, including its name, type,
  2709. // and options. The supported options depend on the IndexFieldType.
  2710. Options *IndexField `type:"structure" required:"true"`
  2711. // The status of domain configuration option.
  2712. Status *OptionStatus `type:"structure" required:"true"`
  2713. }
  2714. // String returns the string representation
  2715. func (s IndexFieldStatus) String() string {
  2716. return awsutil.Prettify(s)
  2717. }
  2718. // GoString returns the string representation
  2719. func (s IndexFieldStatus) GoString() string {
  2720. return s.String()
  2721. }
  2722. // Options for a field that contains an array of 64-bit signed integers. Present
  2723. // if IndexFieldType specifies the field is of type int-array. All options are
  2724. // enabled by default.
  2725. type IntArrayOptions struct {
  2726. _ struct{} `type:"structure"`
  2727. // A value to use for the field if the field isn't specified for a document.
  2728. DefaultValue *int64 `type:"long"`
  2729. // Whether facet information can be returned for the field.
  2730. FacetEnabled *bool `type:"boolean"`
  2731. // Whether the contents of the field can be returned in the search results.
  2732. ReturnEnabled *bool `type:"boolean"`
  2733. // Whether the contents of the field are searchable.
  2734. SearchEnabled *bool `type:"boolean"`
  2735. // A list of source fields to map to the field.
  2736. SourceFields *string `type:"string"`
  2737. }
  2738. // String returns the string representation
  2739. func (s IntArrayOptions) String() string {
  2740. return awsutil.Prettify(s)
  2741. }
  2742. // GoString returns the string representation
  2743. func (s IntArrayOptions) GoString() string {
  2744. return s.String()
  2745. }
  2746. // Options for a 64-bit signed integer field. Present if IndexFieldType specifies
  2747. // the field is of type int. All options are enabled by default.
  2748. type IntOptions struct {
  2749. _ struct{} `type:"structure"`
  2750. // A value to use for the field if the field isn't specified for a document.
  2751. // This can be important if you are using the field in an expression and that
  2752. // field is not present in every document.
  2753. DefaultValue *int64 `type:"long"`
  2754. // Whether facet information can be returned for the field.
  2755. FacetEnabled *bool `type:"boolean"`
  2756. // Whether the contents of the field can be returned in the search results.
  2757. ReturnEnabled *bool `type:"boolean"`
  2758. // Whether the contents of the field are searchable.
  2759. SearchEnabled *bool `type:"boolean"`
  2760. // Whether the field can be used to sort the search results.
  2761. SortEnabled *bool `type:"boolean"`
  2762. // The name of the source field to map to the field.
  2763. SourceField *string `min:"1" type:"string"`
  2764. }
  2765. // String returns the string representation
  2766. func (s IntOptions) String() string {
  2767. return awsutil.Prettify(s)
  2768. }
  2769. // GoString returns the string representation
  2770. func (s IntOptions) GoString() string {
  2771. return s.String()
  2772. }
  2773. // Validate inspects the fields of the type to determine if they are valid.
  2774. func (s *IntOptions) Validate() error {
  2775. invalidParams := request.ErrInvalidParams{Context: "IntOptions"}
  2776. if s.SourceField != nil && len(*s.SourceField) < 1 {
  2777. invalidParams.Add(request.NewErrParamMinLen("SourceField", 1))
  2778. }
  2779. if invalidParams.Len() > 0 {
  2780. return invalidParams
  2781. }
  2782. return nil
  2783. }
  2784. // Options for a latlon field. A latlon field contains a location stored as
  2785. // a latitude and longitude value pair. Present if IndexFieldType specifies
  2786. // the field is of type latlon. All options are enabled by default.
  2787. type LatLonOptions struct {
  2788. _ struct{} `type:"structure"`
  2789. // A value to use for the field if the field isn't specified for a document.
  2790. DefaultValue *string `type:"string"`
  2791. // Whether facet information can be returned for the field.
  2792. FacetEnabled *bool `type:"boolean"`
  2793. // Whether the contents of the field can be returned in the search results.
  2794. ReturnEnabled *bool `type:"boolean"`
  2795. // Whether the contents of the field are searchable.
  2796. SearchEnabled *bool `type:"boolean"`
  2797. // Whether the field can be used to sort the search results.
  2798. SortEnabled *bool `type:"boolean"`
  2799. // A string that represents the name of an index field. CloudSearch supports
  2800. // regular index fields as well as dynamic fields. A dynamic field's name defines
  2801. // a pattern that begins or ends with a wildcard. Any document fields that don't
  2802. // map to a regular index field but do match a dynamic field's pattern are configured
  2803. // with the dynamic field's indexing options.
  2804. //
  2805. // Regular field names begin with a letter and can contain the following characters:
  2806. // a-z (lowercase), 0-9, and _ (underscore). Dynamic field names must begin
  2807. // or end with a wildcard (*). The wildcard can also be the only character in
  2808. // a dynamic field name. Multiple wildcards, and wildcards embedded within a
  2809. // string are not supported.
  2810. //
  2811. // The name score is reserved and cannot be used as a field name. To reference
  2812. // a document's ID, you can use the name _id.
  2813. SourceField *string `min:"1" type:"string"`
  2814. }
  2815. // String returns the string representation
  2816. func (s LatLonOptions) String() string {
  2817. return awsutil.Prettify(s)
  2818. }
  2819. // GoString returns the string representation
  2820. func (s LatLonOptions) GoString() string {
  2821. return s.String()
  2822. }
  2823. // Validate inspects the fields of the type to determine if they are valid.
  2824. func (s *LatLonOptions) Validate() error {
  2825. invalidParams := request.ErrInvalidParams{Context: "LatLonOptions"}
  2826. if s.SourceField != nil && len(*s.SourceField) < 1 {
  2827. invalidParams.Add(request.NewErrParamMinLen("SourceField", 1))
  2828. }
  2829. if invalidParams.Len() > 0 {
  2830. return invalidParams
  2831. }
  2832. return nil
  2833. }
  2834. type Limits struct {
  2835. _ struct{} `type:"structure"`
  2836. MaximumPartitionCount *int64 `min:"1" type:"integer" required:"true"`
  2837. MaximumReplicationCount *int64 `min:"1" type:"integer" required:"true"`
  2838. }
  2839. // String returns the string representation
  2840. func (s Limits) String() string {
  2841. return awsutil.Prettify(s)
  2842. }
  2843. // GoString returns the string representation
  2844. func (s Limits) GoString() string {
  2845. return s.String()
  2846. }
  2847. type ListDomainNamesInput struct {
  2848. _ struct{} `type:"structure"`
  2849. }
  2850. // String returns the string representation
  2851. func (s ListDomainNamesInput) String() string {
  2852. return awsutil.Prettify(s)
  2853. }
  2854. // GoString returns the string representation
  2855. func (s ListDomainNamesInput) GoString() string {
  2856. return s.String()
  2857. }
  2858. // The result of a ListDomainNames request. Contains a list of the domains owned
  2859. // by an account.
  2860. type ListDomainNamesOutput struct {
  2861. _ struct{} `type:"structure"`
  2862. // The names of the search domains owned by an account.
  2863. DomainNames map[string]*string `type:"map"`
  2864. }
  2865. // String returns the string representation
  2866. func (s ListDomainNamesOutput) String() string {
  2867. return awsutil.Prettify(s)
  2868. }
  2869. // GoString returns the string representation
  2870. func (s ListDomainNamesOutput) GoString() string {
  2871. return s.String()
  2872. }
  2873. // Options for a field that contains an array of literal strings. Present if
  2874. // IndexFieldType specifies the field is of type literal-array. All options
  2875. // are enabled by default.
  2876. type LiteralArrayOptions struct {
  2877. _ struct{} `type:"structure"`
  2878. // A value to use for the field if the field isn't specified for a document.
  2879. DefaultValue *string `type:"string"`
  2880. // Whether facet information can be returned for the field.
  2881. FacetEnabled *bool `type:"boolean"`
  2882. // Whether the contents of the field can be returned in the search results.
  2883. ReturnEnabled *bool `type:"boolean"`
  2884. // Whether the contents of the field are searchable.
  2885. SearchEnabled *bool `type:"boolean"`
  2886. // A list of source fields to map to the field.
  2887. SourceFields *string `type:"string"`
  2888. }
  2889. // String returns the string representation
  2890. func (s LiteralArrayOptions) String() string {
  2891. return awsutil.Prettify(s)
  2892. }
  2893. // GoString returns the string representation
  2894. func (s LiteralArrayOptions) GoString() string {
  2895. return s.String()
  2896. }
  2897. // Options for literal field. Present if IndexFieldType specifies the field
  2898. // is of type literal. All options are enabled by default.
  2899. type LiteralOptions struct {
  2900. _ struct{} `type:"structure"`
  2901. // A value to use for the field if the field isn't specified for a document.
  2902. DefaultValue *string `type:"string"`
  2903. // Whether facet information can be returned for the field.
  2904. FacetEnabled *bool `type:"boolean"`
  2905. // Whether the contents of the field can be returned in the search results.
  2906. ReturnEnabled *bool `type:"boolean"`
  2907. // Whether the contents of the field are searchable.
  2908. SearchEnabled *bool `type:"boolean"`
  2909. // Whether the field can be used to sort the search results.
  2910. SortEnabled *bool `type:"boolean"`
  2911. // A string that represents the name of an index field. CloudSearch supports
  2912. // regular index fields as well as dynamic fields. A dynamic field's name defines
  2913. // a pattern that begins or ends with a wildcard. Any document fields that don't
  2914. // map to a regular index field but do match a dynamic field's pattern are configured
  2915. // with the dynamic field's indexing options.
  2916. //
  2917. // Regular field names begin with a letter and can contain the following characters:
  2918. // a-z (lowercase), 0-9, and _ (underscore). Dynamic field names must begin
  2919. // or end with a wildcard (*). The wildcard can also be the only character in
  2920. // a dynamic field name. Multiple wildcards, and wildcards embedded within a
  2921. // string are not supported.
  2922. //
  2923. // The name score is reserved and cannot be used as a field name. To reference
  2924. // a document's ID, you can use the name _id.
  2925. SourceField *string `min:"1" type:"string"`
  2926. }
  2927. // String returns the string representation
  2928. func (s LiteralOptions) String() string {
  2929. return awsutil.Prettify(s)
  2930. }
  2931. // GoString returns the string representation
  2932. func (s LiteralOptions) GoString() string {
  2933. return s.String()
  2934. }
  2935. // Validate inspects the fields of the type to determine if they are valid.
  2936. func (s *LiteralOptions) Validate() error {
  2937. invalidParams := request.ErrInvalidParams{Context: "LiteralOptions"}
  2938. if s.SourceField != nil && len(*s.SourceField) < 1 {
  2939. invalidParams.Add(request.NewErrParamMinLen("SourceField", 1))
  2940. }
  2941. if invalidParams.Len() > 0 {
  2942. return invalidParams
  2943. }
  2944. return nil
  2945. }
  2946. // The status of domain configuration option.
  2947. type OptionStatus struct {
  2948. _ struct{} `type:"structure"`
  2949. // A timestamp for when this option was created.
  2950. CreationDate *time.Time `type:"timestamp" timestampFormat:"iso8601" required:"true"`
  2951. // Indicates that the option will be deleted once processing is complete.
  2952. PendingDeletion *bool `type:"boolean"`
  2953. // The state of processing a change to an option. Possible values:
  2954. //
  2955. // RequiresIndexDocuments: the option's latest value will not be deployed
  2956. // until IndexDocuments has been called and indexing is complete. Processing:
  2957. // the option's latest value is in the process of being activated. Active:
  2958. // the option's latest value is completely deployed. FailedToValidate: the
  2959. // option value is not compatible with the domain's data and cannot be used
  2960. // to index the data. You must either modify the option value or update or remove
  2961. // the incompatible documents.
  2962. State *string `type:"string" required:"true" enum:"OptionState"`
  2963. // A timestamp for when this option was last updated.
  2964. UpdateDate *time.Time `type:"timestamp" timestampFormat:"iso8601" required:"true"`
  2965. // A unique integer that indicates when this option was last updated.
  2966. UpdateVersion *int64 `type:"integer"`
  2967. }
  2968. // String returns the string representation
  2969. func (s OptionStatus) String() string {
  2970. return awsutil.Prettify(s)
  2971. }
  2972. // GoString returns the string representation
  2973. func (s OptionStatus) GoString() string {
  2974. return s.String()
  2975. }
  2976. // The desired instance type and desired number of replicas of each index partition.
  2977. type ScalingParameters struct {
  2978. _ struct{} `type:"structure"`
  2979. // The instance type that you want to preconfigure for your domain. For example,
  2980. // search.m1.small.
  2981. DesiredInstanceType *string `type:"string" enum:"PartitionInstanceType"`
  2982. // The number of partitions you want to preconfigure for your domain. Only valid
  2983. // when you select m2.2xlarge as the desired instance type.
  2984. DesiredPartitionCount *int64 `type:"integer"`
  2985. // The number of replicas you want to preconfigure for each index partition.
  2986. DesiredReplicationCount *int64 `type:"integer"`
  2987. }
  2988. // String returns the string representation
  2989. func (s ScalingParameters) String() string {
  2990. return awsutil.Prettify(s)
  2991. }
  2992. // GoString returns the string representation
  2993. func (s ScalingParameters) GoString() string {
  2994. return s.String()
  2995. }
  2996. // The status and configuration of a search domain's scaling parameters.
  2997. type ScalingParametersStatus struct {
  2998. _ struct{} `type:"structure"`
  2999. // The desired instance type and desired number of replicas of each index partition.
  3000. Options *ScalingParameters `type:"structure" required:"true"`
  3001. // The status of domain configuration option.
  3002. Status *OptionStatus `type:"structure" required:"true"`
  3003. }
  3004. // String returns the string representation
  3005. func (s ScalingParametersStatus) String() string {
  3006. return awsutil.Prettify(s)
  3007. }
  3008. // GoString returns the string representation
  3009. func (s ScalingParametersStatus) GoString() string {
  3010. return s.String()
  3011. }
  3012. // The endpoint to which service requests can be submitted.
  3013. type ServiceEndpoint struct {
  3014. _ struct{} `type:"structure"`
  3015. // The endpoint to which service requests can be submitted. For example, search-imdb-movies-oopcnjfn6ugofer3zx5iadxxca.eu-west-1.cloudsearch.amazonaws.com
  3016. // or doc-imdb-movies-oopcnjfn6ugofer3zx5iadxxca.eu-west-1.cloudsearch.amazonaws.com.
  3017. Endpoint *string `type:"string"`
  3018. }
  3019. // String returns the string representation
  3020. func (s ServiceEndpoint) String() string {
  3021. return awsutil.Prettify(s)
  3022. }
  3023. // GoString returns the string representation
  3024. func (s ServiceEndpoint) GoString() string {
  3025. return s.String()
  3026. }
  3027. // Configuration information for a search suggester. Each suggester has a unique
  3028. // name and specifies the text field you want to use for suggestions. The following
  3029. // options can be configured for a suggester: FuzzyMatching, SortExpression.
  3030. type Suggester struct {
  3031. _ struct{} `type:"structure"`
  3032. // Options for a search suggester.
  3033. DocumentSuggesterOptions *DocumentSuggesterOptions `type:"structure" required:"true"`
  3034. // Names must begin with a letter and can contain the following characters:
  3035. // a-z (lowercase), 0-9, and _ (underscore).
  3036. SuggesterName *string `min:"1" type:"string" required:"true"`
  3037. }
  3038. // String returns the string representation
  3039. func (s Suggester) String() string {
  3040. return awsutil.Prettify(s)
  3041. }
  3042. // GoString returns the string representation
  3043. func (s Suggester) GoString() string {
  3044. return s.String()
  3045. }
  3046. // Validate inspects the fields of the type to determine if they are valid.
  3047. func (s *Suggester) Validate() error {
  3048. invalidParams := request.ErrInvalidParams{Context: "Suggester"}
  3049. if s.DocumentSuggesterOptions == nil {
  3050. invalidParams.Add(request.NewErrParamRequired("DocumentSuggesterOptions"))
  3051. }
  3052. if s.SuggesterName == nil {
  3053. invalidParams.Add(request.NewErrParamRequired("SuggesterName"))
  3054. }
  3055. if s.SuggesterName != nil && len(*s.SuggesterName) < 1 {
  3056. invalidParams.Add(request.NewErrParamMinLen("SuggesterName", 1))
  3057. }
  3058. if s.DocumentSuggesterOptions != nil {
  3059. if err := s.DocumentSuggesterOptions.Validate(); err != nil {
  3060. invalidParams.AddNested("DocumentSuggesterOptions", err.(request.ErrInvalidParams))
  3061. }
  3062. }
  3063. if invalidParams.Len() > 0 {
  3064. return invalidParams
  3065. }
  3066. return nil
  3067. }
  3068. // The value of a Suggester and its current status.
  3069. type SuggesterStatus struct {
  3070. _ struct{} `type:"structure"`
  3071. // Configuration information for a search suggester. Each suggester has a unique
  3072. // name and specifies the text field you want to use for suggestions. The following
  3073. // options can be configured for a suggester: FuzzyMatching, SortExpression.
  3074. Options *Suggester `type:"structure" required:"true"`
  3075. // The status of domain configuration option.
  3076. Status *OptionStatus `type:"structure" required:"true"`
  3077. }
  3078. // String returns the string representation
  3079. func (s SuggesterStatus) String() string {
  3080. return awsutil.Prettify(s)
  3081. }
  3082. // GoString returns the string representation
  3083. func (s SuggesterStatus) GoString() string {
  3084. return s.String()
  3085. }
  3086. // Options for a field that contains an array of text strings. Present if IndexFieldType
  3087. // specifies the field is of type text-array. A text-array field is always searchable.
  3088. // All options are enabled by default.
  3089. type TextArrayOptions struct {
  3090. _ struct{} `type:"structure"`
  3091. // The name of an analysis scheme for a text-array field.
  3092. AnalysisScheme *string `type:"string"`
  3093. // A value to use for the field if the field isn't specified for a document.
  3094. DefaultValue *string `type:"string"`
  3095. // Whether highlights can be returned for the field.
  3096. HighlightEnabled *bool `type:"boolean"`
  3097. // Whether the contents of the field can be returned in the search results.
  3098. ReturnEnabled *bool `type:"boolean"`
  3099. // A list of source fields to map to the field.
  3100. SourceFields *string `type:"string"`
  3101. }
  3102. // String returns the string representation
  3103. func (s TextArrayOptions) String() string {
  3104. return awsutil.Prettify(s)
  3105. }
  3106. // GoString returns the string representation
  3107. func (s TextArrayOptions) GoString() string {
  3108. return s.String()
  3109. }
  3110. // Options for text field. Present if IndexFieldType specifies the field is
  3111. // of type text. A text field is always searchable. All options are enabled
  3112. // by default.
  3113. type TextOptions struct {
  3114. _ struct{} `type:"structure"`
  3115. // The name of an analysis scheme for a text field.
  3116. AnalysisScheme *string `type:"string"`
  3117. // A value to use for the field if the field isn't specified for a document.
  3118. DefaultValue *string `type:"string"`
  3119. // Whether highlights can be returned for the field.
  3120. HighlightEnabled *bool `type:"boolean"`
  3121. // Whether the contents of the field can be returned in the search results.
  3122. ReturnEnabled *bool `type:"boolean"`
  3123. // Whether the field can be used to sort the search results.
  3124. SortEnabled *bool `type:"boolean"`
  3125. // A string that represents the name of an index field. CloudSearch supports
  3126. // regular index fields as well as dynamic fields. A dynamic field's name defines
  3127. // a pattern that begins or ends with a wildcard. Any document fields that don't
  3128. // map to a regular index field but do match a dynamic field's pattern are configured
  3129. // with the dynamic field's indexing options.
  3130. //
  3131. // Regular field names begin with a letter and can contain the following characters:
  3132. // a-z (lowercase), 0-9, and _ (underscore). Dynamic field names must begin
  3133. // or end with a wildcard (*). The wildcard can also be the only character in
  3134. // a dynamic field name. Multiple wildcards, and wildcards embedded within a
  3135. // string are not supported.
  3136. //
  3137. // The name score is reserved and cannot be used as a field name. To reference
  3138. // a document's ID, you can use the name _id.
  3139. SourceField *string `min:"1" type:"string"`
  3140. }
  3141. // String returns the string representation
  3142. func (s TextOptions) String() string {
  3143. return awsutil.Prettify(s)
  3144. }
  3145. // GoString returns the string representation
  3146. func (s TextOptions) GoString() string {
  3147. return s.String()
  3148. }
  3149. // Validate inspects the fields of the type to determine if they are valid.
  3150. func (s *TextOptions) Validate() error {
  3151. invalidParams := request.ErrInvalidParams{Context: "TextOptions"}
  3152. if s.SourceField != nil && len(*s.SourceField) < 1 {
  3153. invalidParams.Add(request.NewErrParamMinLen("SourceField", 1))
  3154. }
  3155. if invalidParams.Len() > 0 {
  3156. return invalidParams
  3157. }
  3158. return nil
  3159. }
  3160. // Container for the parameters to the UpdateAvailabilityOptions operation.
  3161. // Specifies the name of the domain you want to update and the Multi-AZ availability
  3162. // option.
  3163. type UpdateAvailabilityOptionsInput struct {
  3164. _ struct{} `type:"structure"`
  3165. // A string that represents the name of a domain. Domain names are unique across
  3166. // the domains owned by an account within an AWS region. Domain names start
  3167. // with a letter or number and can contain the following characters: a-z (lowercase),
  3168. // 0-9, and - (hyphen).
  3169. DomainName *string `min:"3" type:"string" required:"true"`
  3170. // You expand an existing search domain to a second Availability Zone by setting
  3171. // the Multi-AZ option to true. Similarly, you can turn off the Multi-AZ option
  3172. // to downgrade the domain to a single Availability Zone by setting the Multi-AZ
  3173. // option to false.
  3174. MultiAZ *bool `type:"boolean" required:"true"`
  3175. }
  3176. // String returns the string representation
  3177. func (s UpdateAvailabilityOptionsInput) String() string {
  3178. return awsutil.Prettify(s)
  3179. }
  3180. // GoString returns the string representation
  3181. func (s UpdateAvailabilityOptionsInput) GoString() string {
  3182. return s.String()
  3183. }
  3184. // Validate inspects the fields of the type to determine if they are valid.
  3185. func (s *UpdateAvailabilityOptionsInput) Validate() error {
  3186. invalidParams := request.ErrInvalidParams{Context: "UpdateAvailabilityOptionsInput"}
  3187. if s.DomainName == nil {
  3188. invalidParams.Add(request.NewErrParamRequired("DomainName"))
  3189. }
  3190. if s.DomainName != nil && len(*s.DomainName) < 3 {
  3191. invalidParams.Add(request.NewErrParamMinLen("DomainName", 3))
  3192. }
  3193. if s.MultiAZ == nil {
  3194. invalidParams.Add(request.NewErrParamRequired("MultiAZ"))
  3195. }
  3196. if invalidParams.Len() > 0 {
  3197. return invalidParams
  3198. }
  3199. return nil
  3200. }
  3201. // The result of a UpdateAvailabilityOptions request. Contains the status of
  3202. // the domain's availability options.
  3203. type UpdateAvailabilityOptionsOutput struct {
  3204. _ struct{} `type:"structure"`
  3205. // The newly-configured availability options. Indicates whether Multi-AZ is
  3206. // enabled for the domain.
  3207. AvailabilityOptions *AvailabilityOptionsStatus `type:"structure"`
  3208. }
  3209. // String returns the string representation
  3210. func (s UpdateAvailabilityOptionsOutput) String() string {
  3211. return awsutil.Prettify(s)
  3212. }
  3213. // GoString returns the string representation
  3214. func (s UpdateAvailabilityOptionsOutput) GoString() string {
  3215. return s.String()
  3216. }
  3217. // Container for the parameters to the UpdateScalingParameters operation. Specifies
  3218. // the name of the domain you want to update and the scaling parameters you
  3219. // want to configure.
  3220. type UpdateScalingParametersInput struct {
  3221. _ struct{} `type:"structure"`
  3222. // A string that represents the name of a domain. Domain names are unique across
  3223. // the domains owned by an account within an AWS region. Domain names start
  3224. // with a letter or number and can contain the following characters: a-z (lowercase),
  3225. // 0-9, and - (hyphen).
  3226. DomainName *string `min:"3" type:"string" required:"true"`
  3227. // The desired instance type and desired number of replicas of each index partition.
  3228. ScalingParameters *ScalingParameters `type:"structure" required:"true"`
  3229. }
  3230. // String returns the string representation
  3231. func (s UpdateScalingParametersInput) String() string {
  3232. return awsutil.Prettify(s)
  3233. }
  3234. // GoString returns the string representation
  3235. func (s UpdateScalingParametersInput) GoString() string {
  3236. return s.String()
  3237. }
  3238. // Validate inspects the fields of the type to determine if they are valid.
  3239. func (s *UpdateScalingParametersInput) Validate() error {
  3240. invalidParams := request.ErrInvalidParams{Context: "UpdateScalingParametersInput"}
  3241. if s.DomainName == nil {
  3242. invalidParams.Add(request.NewErrParamRequired("DomainName"))
  3243. }
  3244. if s.DomainName != nil && len(*s.DomainName) < 3 {
  3245. invalidParams.Add(request.NewErrParamMinLen("DomainName", 3))
  3246. }
  3247. if s.ScalingParameters == nil {
  3248. invalidParams.Add(request.NewErrParamRequired("ScalingParameters"))
  3249. }
  3250. if invalidParams.Len() > 0 {
  3251. return invalidParams
  3252. }
  3253. return nil
  3254. }
  3255. // The result of a UpdateScalingParameters request. Contains the status of the
  3256. // newly-configured scaling parameters.
  3257. type UpdateScalingParametersOutput struct {
  3258. _ struct{} `type:"structure"`
  3259. // The status and configuration of a search domain's scaling parameters.
  3260. ScalingParameters *ScalingParametersStatus `type:"structure" required:"true"`
  3261. }
  3262. // String returns the string representation
  3263. func (s UpdateScalingParametersOutput) String() string {
  3264. return awsutil.Prettify(s)
  3265. }
  3266. // GoString returns the string representation
  3267. func (s UpdateScalingParametersOutput) GoString() string {
  3268. return s.String()
  3269. }
  3270. // Container for the parameters to the UpdateServiceAccessPolicies operation.
  3271. // Specifies the name of the domain you want to update and the access rules
  3272. // you want to configure.
  3273. type UpdateServiceAccessPoliciesInput struct {
  3274. _ struct{} `type:"structure"`
  3275. // The access rules you want to configure. These rules replace any existing
  3276. // rules.
  3277. AccessPolicies *string `type:"string" required:"true"`
  3278. // A string that represents the name of a domain. Domain names are unique across
  3279. // the domains owned by an account within an AWS region. Domain names start
  3280. // with a letter or number and can contain the following characters: a-z (lowercase),
  3281. // 0-9, and - (hyphen).
  3282. DomainName *string `min:"3" type:"string" required:"true"`
  3283. }
  3284. // String returns the string representation
  3285. func (s UpdateServiceAccessPoliciesInput) String() string {
  3286. return awsutil.Prettify(s)
  3287. }
  3288. // GoString returns the string representation
  3289. func (s UpdateServiceAccessPoliciesInput) GoString() string {
  3290. return s.String()
  3291. }
  3292. // Validate inspects the fields of the type to determine if they are valid.
  3293. func (s *UpdateServiceAccessPoliciesInput) Validate() error {
  3294. invalidParams := request.ErrInvalidParams{Context: "UpdateServiceAccessPoliciesInput"}
  3295. if s.AccessPolicies == nil {
  3296. invalidParams.Add(request.NewErrParamRequired("AccessPolicies"))
  3297. }
  3298. if s.DomainName == nil {
  3299. invalidParams.Add(request.NewErrParamRequired("DomainName"))
  3300. }
  3301. if s.DomainName != nil && len(*s.DomainName) < 3 {
  3302. invalidParams.Add(request.NewErrParamMinLen("DomainName", 3))
  3303. }
  3304. if invalidParams.Len() > 0 {
  3305. return invalidParams
  3306. }
  3307. return nil
  3308. }
  3309. // The result of an UpdateServiceAccessPolicies request. Contains the new access
  3310. // policies.
  3311. type UpdateServiceAccessPoliciesOutput struct {
  3312. _ struct{} `type:"structure"`
  3313. // The access rules configured for the domain.
  3314. AccessPolicies *AccessPoliciesStatus `type:"structure" required:"true"`
  3315. }
  3316. // String returns the string representation
  3317. func (s UpdateServiceAccessPoliciesOutput) String() string {
  3318. return awsutil.Prettify(s)
  3319. }
  3320. // GoString returns the string representation
  3321. func (s UpdateServiceAccessPoliciesOutput) GoString() string {
  3322. return s.String()
  3323. }
  3324. const (
  3325. // @enum AlgorithmicStemming
  3326. AlgorithmicStemmingNone = "none"
  3327. // @enum AlgorithmicStemming
  3328. AlgorithmicStemmingMinimal = "minimal"
  3329. // @enum AlgorithmicStemming
  3330. AlgorithmicStemmingLight = "light"
  3331. // @enum AlgorithmicStemming
  3332. AlgorithmicStemmingFull = "full"
  3333. )
  3334. // An IETF RFC 4646 (http://tools.ietf.org/html/rfc4646" target="_blank) language
  3335. // code or mul for multiple languages.
  3336. const (
  3337. // @enum AnalysisSchemeLanguage
  3338. AnalysisSchemeLanguageAr = "ar"
  3339. // @enum AnalysisSchemeLanguage
  3340. AnalysisSchemeLanguageBg = "bg"
  3341. // @enum AnalysisSchemeLanguage
  3342. AnalysisSchemeLanguageCa = "ca"
  3343. // @enum AnalysisSchemeLanguage
  3344. AnalysisSchemeLanguageCs = "cs"
  3345. // @enum AnalysisSchemeLanguage
  3346. AnalysisSchemeLanguageDa = "da"
  3347. // @enum AnalysisSchemeLanguage
  3348. AnalysisSchemeLanguageDe = "de"
  3349. // @enum AnalysisSchemeLanguage
  3350. AnalysisSchemeLanguageEl = "el"
  3351. // @enum AnalysisSchemeLanguage
  3352. AnalysisSchemeLanguageEn = "en"
  3353. // @enum AnalysisSchemeLanguage
  3354. AnalysisSchemeLanguageEs = "es"
  3355. // @enum AnalysisSchemeLanguage
  3356. AnalysisSchemeLanguageEu = "eu"
  3357. // @enum AnalysisSchemeLanguage
  3358. AnalysisSchemeLanguageFa = "fa"
  3359. // @enum AnalysisSchemeLanguage
  3360. AnalysisSchemeLanguageFi = "fi"
  3361. // @enum AnalysisSchemeLanguage
  3362. AnalysisSchemeLanguageFr = "fr"
  3363. // @enum AnalysisSchemeLanguage
  3364. AnalysisSchemeLanguageGa = "ga"
  3365. // @enum AnalysisSchemeLanguage
  3366. AnalysisSchemeLanguageGl = "gl"
  3367. // @enum AnalysisSchemeLanguage
  3368. AnalysisSchemeLanguageHe = "he"
  3369. // @enum AnalysisSchemeLanguage
  3370. AnalysisSchemeLanguageHi = "hi"
  3371. // @enum AnalysisSchemeLanguage
  3372. AnalysisSchemeLanguageHu = "hu"
  3373. // @enum AnalysisSchemeLanguage
  3374. AnalysisSchemeLanguageHy = "hy"
  3375. // @enum AnalysisSchemeLanguage
  3376. AnalysisSchemeLanguageId = "id"
  3377. // @enum AnalysisSchemeLanguage
  3378. AnalysisSchemeLanguageIt = "it"
  3379. // @enum AnalysisSchemeLanguage
  3380. AnalysisSchemeLanguageJa = "ja"
  3381. // @enum AnalysisSchemeLanguage
  3382. AnalysisSchemeLanguageKo = "ko"
  3383. // @enum AnalysisSchemeLanguage
  3384. AnalysisSchemeLanguageLv = "lv"
  3385. // @enum AnalysisSchemeLanguage
  3386. AnalysisSchemeLanguageMul = "mul"
  3387. // @enum AnalysisSchemeLanguage
  3388. AnalysisSchemeLanguageNl = "nl"
  3389. // @enum AnalysisSchemeLanguage
  3390. AnalysisSchemeLanguageNo = "no"
  3391. // @enum AnalysisSchemeLanguage
  3392. AnalysisSchemeLanguagePt = "pt"
  3393. // @enum AnalysisSchemeLanguage
  3394. AnalysisSchemeLanguageRo = "ro"
  3395. // @enum AnalysisSchemeLanguage
  3396. AnalysisSchemeLanguageRu = "ru"
  3397. // @enum AnalysisSchemeLanguage
  3398. AnalysisSchemeLanguageSv = "sv"
  3399. // @enum AnalysisSchemeLanguage
  3400. AnalysisSchemeLanguageTh = "th"
  3401. // @enum AnalysisSchemeLanguage
  3402. AnalysisSchemeLanguageTr = "tr"
  3403. // @enum AnalysisSchemeLanguage
  3404. AnalysisSchemeLanguageZhHans = "zh-Hans"
  3405. // @enum AnalysisSchemeLanguage
  3406. AnalysisSchemeLanguageZhHant = "zh-Hant"
  3407. )
  3408. // The type of field. The valid options for a field depend on the field type.
  3409. // For more information about the supported field types, see Configuring Index
  3410. // Fields (http://docs.aws.amazon.com/cloudsearch/latest/developerguide/configuring-index-fields.html"
  3411. // target="_blank) in the Amazon CloudSearch Developer Guide.
  3412. const (
  3413. // @enum IndexFieldType
  3414. IndexFieldTypeInt = "int"
  3415. // @enum IndexFieldType
  3416. IndexFieldTypeDouble = "double"
  3417. // @enum IndexFieldType
  3418. IndexFieldTypeLiteral = "literal"
  3419. // @enum IndexFieldType
  3420. IndexFieldTypeText = "text"
  3421. // @enum IndexFieldType
  3422. IndexFieldTypeDate = "date"
  3423. // @enum IndexFieldType
  3424. IndexFieldTypeLatlon = "latlon"
  3425. // @enum IndexFieldType
  3426. IndexFieldTypeIntArray = "int-array"
  3427. // @enum IndexFieldType
  3428. IndexFieldTypeDoubleArray = "double-array"
  3429. // @enum IndexFieldType
  3430. IndexFieldTypeLiteralArray = "literal-array"
  3431. // @enum IndexFieldType
  3432. IndexFieldTypeTextArray = "text-array"
  3433. // @enum IndexFieldType
  3434. IndexFieldTypeDateArray = "date-array"
  3435. )
  3436. // The state of processing a change to an option. One of:
  3437. //
  3438. // RequiresIndexDocuments: The option's latest value will not be deployed
  3439. // until IndexDocuments has been called and indexing is complete. Processing:
  3440. // The option's latest value is in the process of being activated. Active: The
  3441. // option's latest value is fully deployed. FailedToValidate: The option value
  3442. // is not compatible with the domain's data and cannot be used to index the
  3443. // data. You must either modify the option value or update or remove the incompatible
  3444. // documents.
  3445. const (
  3446. // @enum OptionState
  3447. OptionStateRequiresIndexDocuments = "RequiresIndexDocuments"
  3448. // @enum OptionState
  3449. OptionStateProcessing = "Processing"
  3450. // @enum OptionState
  3451. OptionStateActive = "Active"
  3452. // @enum OptionState
  3453. OptionStateFailedToValidate = "FailedToValidate"
  3454. )
  3455. // The instance type (such as search.m1.small) on which an index partition is
  3456. // hosted.
  3457. const (
  3458. // @enum PartitionInstanceType
  3459. PartitionInstanceTypeSearchM1Small = "search.m1.small"
  3460. // @enum PartitionInstanceType
  3461. PartitionInstanceTypeSearchM1Large = "search.m1.large"
  3462. // @enum PartitionInstanceType
  3463. PartitionInstanceTypeSearchM2Xlarge = "search.m2.xlarge"
  3464. // @enum PartitionInstanceType
  3465. PartitionInstanceTypeSearchM22xlarge = "search.m2.2xlarge"
  3466. // @enum PartitionInstanceType
  3467. PartitionInstanceTypeSearchM3Medium = "search.m3.medium"
  3468. // @enum PartitionInstanceType
  3469. PartitionInstanceTypeSearchM3Large = "search.m3.large"
  3470. // @enum PartitionInstanceType
  3471. PartitionInstanceTypeSearchM3Xlarge = "search.m3.xlarge"
  3472. // @enum PartitionInstanceType
  3473. PartitionInstanceTypeSearchM32xlarge = "search.m3.2xlarge"
  3474. )
  3475. const (
  3476. // @enum SuggesterFuzzyMatching
  3477. SuggesterFuzzyMatchingNone = "none"
  3478. // @enum SuggesterFuzzyMatching
  3479. SuggesterFuzzyMatchingLow = "low"
  3480. // @enum SuggesterFuzzyMatching
  3481. SuggesterFuzzyMatchingHigh = "high"
  3482. )