api.go 112 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282
  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 request for the BuildSuggesters operation.
  11. func (c *CloudSearch) BuildSuggestersRequest(input *BuildSuggestersInput) (req *request.Request, output *BuildSuggestersOutput) {
  12. op := &request.Operation{
  13. Name: opBuildSuggesters,
  14. HTTPMethod: "POST",
  15. HTTPPath: "/",
  16. }
  17. if input == nil {
  18. input = &BuildSuggestersInput{}
  19. }
  20. req = c.newRequest(op, input, output)
  21. output = &BuildSuggestersOutput{}
  22. req.Data = output
  23. return
  24. }
  25. // Indexes the search suggestions. For more information, see Configuring Suggesters
  26. // (http://docs.aws.amazon.com/cloudsearch/latest/developerguide/getting-suggestions.html#configuring-suggesters)
  27. // in the Amazon CloudSearch Developer Guide.
  28. func (c *CloudSearch) BuildSuggesters(input *BuildSuggestersInput) (*BuildSuggestersOutput, error) {
  29. req, out := c.BuildSuggestersRequest(input)
  30. err := req.Send()
  31. return out, err
  32. }
  33. const opCreateDomain = "CreateDomain"
  34. // CreateDomainRequest generates a request for the CreateDomain operation.
  35. func (c *CloudSearch) CreateDomainRequest(input *CreateDomainInput) (req *request.Request, output *CreateDomainOutput) {
  36. op := &request.Operation{
  37. Name: opCreateDomain,
  38. HTTPMethod: "POST",
  39. HTTPPath: "/",
  40. }
  41. if input == nil {
  42. input = &CreateDomainInput{}
  43. }
  44. req = c.newRequest(op, input, output)
  45. output = &CreateDomainOutput{}
  46. req.Data = output
  47. return
  48. }
  49. // Creates a new search domain. For more information, see Creating a Search
  50. // Domain (http://docs.aws.amazon.com/cloudsearch/latest/developerguide/creating-domains.html"
  51. // target="_blank) in the Amazon CloudSearch Developer Guide.
  52. func (c *CloudSearch) CreateDomain(input *CreateDomainInput) (*CreateDomainOutput, error) {
  53. req, out := c.CreateDomainRequest(input)
  54. err := req.Send()
  55. return out, err
  56. }
  57. const opDefineAnalysisScheme = "DefineAnalysisScheme"
  58. // DefineAnalysisSchemeRequest generates a request for the DefineAnalysisScheme operation.
  59. func (c *CloudSearch) DefineAnalysisSchemeRequest(input *DefineAnalysisSchemeInput) (req *request.Request, output *DefineAnalysisSchemeOutput) {
  60. op := &request.Operation{
  61. Name: opDefineAnalysisScheme,
  62. HTTPMethod: "POST",
  63. HTTPPath: "/",
  64. }
  65. if input == nil {
  66. input = &DefineAnalysisSchemeInput{}
  67. }
  68. req = c.newRequest(op, input, output)
  69. output = &DefineAnalysisSchemeOutput{}
  70. req.Data = output
  71. return
  72. }
  73. // Configures an analysis scheme that can be applied to a text or text-array
  74. // field to define language-specific text processing options. For more information,
  75. // see Configuring Analysis Schemes (http://docs.aws.amazon.com/cloudsearch/latest/developerguide/configuring-analysis-schemes.html"
  76. // target="_blank) in the Amazon CloudSearch Developer Guide.
  77. func (c *CloudSearch) DefineAnalysisScheme(input *DefineAnalysisSchemeInput) (*DefineAnalysisSchemeOutput, error) {
  78. req, out := c.DefineAnalysisSchemeRequest(input)
  79. err := req.Send()
  80. return out, err
  81. }
  82. const opDefineExpression = "DefineExpression"
  83. // DefineExpressionRequest generates a request for the DefineExpression operation.
  84. func (c *CloudSearch) DefineExpressionRequest(input *DefineExpressionInput) (req *request.Request, output *DefineExpressionOutput) {
  85. op := &request.Operation{
  86. Name: opDefineExpression,
  87. HTTPMethod: "POST",
  88. HTTPPath: "/",
  89. }
  90. if input == nil {
  91. input = &DefineExpressionInput{}
  92. }
  93. req = c.newRequest(op, input, output)
  94. output = &DefineExpressionOutput{}
  95. req.Data = output
  96. return
  97. }
  98. // Configures an Expression for the search domain. Used to create new expressions
  99. // and modify existing ones. If the expression exists, the new configuration
  100. // replaces the old one. For more information, see Configuring Expressions (http://docs.aws.amazon.com/cloudsearch/latest/developerguide/configuring-expressions.html"
  101. // target="_blank) in the Amazon CloudSearch Developer Guide.
  102. func (c *CloudSearch) DefineExpression(input *DefineExpressionInput) (*DefineExpressionOutput, error) {
  103. req, out := c.DefineExpressionRequest(input)
  104. err := req.Send()
  105. return out, err
  106. }
  107. const opDefineIndexField = "DefineIndexField"
  108. // DefineIndexFieldRequest generates a request for the DefineIndexField operation.
  109. func (c *CloudSearch) DefineIndexFieldRequest(input *DefineIndexFieldInput) (req *request.Request, output *DefineIndexFieldOutput) {
  110. op := &request.Operation{
  111. Name: opDefineIndexField,
  112. HTTPMethod: "POST",
  113. HTTPPath: "/",
  114. }
  115. if input == nil {
  116. input = &DefineIndexFieldInput{}
  117. }
  118. req = c.newRequest(op, input, output)
  119. output = &DefineIndexFieldOutput{}
  120. req.Data = output
  121. return
  122. }
  123. // Configures an IndexField for the search domain. Used to create new fields
  124. // and modify existing ones. You must specify the name of the domain you are
  125. // configuring and an index field configuration. The index field configuration
  126. // specifies a unique name, the index field type, and the options you want to
  127. // configure for the field. The options you can specify depend on the IndexFieldType.
  128. // If the field exists, the new configuration replaces the old one. For more
  129. // information, see Configuring Index Fields (http://docs.aws.amazon.com/cloudsearch/latest/developerguide/configuring-index-fields.html"
  130. // target="_blank) in the Amazon CloudSearch Developer Guide.
  131. func (c *CloudSearch) DefineIndexField(input *DefineIndexFieldInput) (*DefineIndexFieldOutput, error) {
  132. req, out := c.DefineIndexFieldRequest(input)
  133. err := req.Send()
  134. return out, err
  135. }
  136. const opDefineSuggester = "DefineSuggester"
  137. // DefineSuggesterRequest generates a request for the DefineSuggester operation.
  138. func (c *CloudSearch) DefineSuggesterRequest(input *DefineSuggesterInput) (req *request.Request, output *DefineSuggesterOutput) {
  139. op := &request.Operation{
  140. Name: opDefineSuggester,
  141. HTTPMethod: "POST",
  142. HTTPPath: "/",
  143. }
  144. if input == nil {
  145. input = &DefineSuggesterInput{}
  146. }
  147. req = c.newRequest(op, input, output)
  148. output = &DefineSuggesterOutput{}
  149. req.Data = output
  150. return
  151. }
  152. // Configures a suggester for a domain. A suggester enables you to display possible
  153. // matches before users finish typing their queries. When you configure a suggester,
  154. // you must specify the name of the text field you want to search for possible
  155. // matches and a unique name for the suggester. For more information, see Getting
  156. // Search Suggestions (http://docs.aws.amazon.com/cloudsearch/latest/developerguide/getting-suggestions.html"
  157. // target="_blank) in the Amazon CloudSearch Developer Guide.
  158. func (c *CloudSearch) DefineSuggester(input *DefineSuggesterInput) (*DefineSuggesterOutput, error) {
  159. req, out := c.DefineSuggesterRequest(input)
  160. err := req.Send()
  161. return out, err
  162. }
  163. const opDeleteAnalysisScheme = "DeleteAnalysisScheme"
  164. // DeleteAnalysisSchemeRequest generates a request for the DeleteAnalysisScheme operation.
  165. func (c *CloudSearch) DeleteAnalysisSchemeRequest(input *DeleteAnalysisSchemeInput) (req *request.Request, output *DeleteAnalysisSchemeOutput) {
  166. op := &request.Operation{
  167. Name: opDeleteAnalysisScheme,
  168. HTTPMethod: "POST",
  169. HTTPPath: "/",
  170. }
  171. if input == nil {
  172. input = &DeleteAnalysisSchemeInput{}
  173. }
  174. req = c.newRequest(op, input, output)
  175. output = &DeleteAnalysisSchemeOutput{}
  176. req.Data = output
  177. return
  178. }
  179. // Deletes an analysis scheme. For more information, see Configuring Analysis
  180. // Schemes (http://docs.aws.amazon.com/cloudsearch/latest/developerguide/configuring-analysis-schemes.html"
  181. // target="_blank) in the Amazon CloudSearch Developer Guide.
  182. func (c *CloudSearch) DeleteAnalysisScheme(input *DeleteAnalysisSchemeInput) (*DeleteAnalysisSchemeOutput, error) {
  183. req, out := c.DeleteAnalysisSchemeRequest(input)
  184. err := req.Send()
  185. return out, err
  186. }
  187. const opDeleteDomain = "DeleteDomain"
  188. // DeleteDomainRequest generates a request for the DeleteDomain operation.
  189. func (c *CloudSearch) DeleteDomainRequest(input *DeleteDomainInput) (req *request.Request, output *DeleteDomainOutput) {
  190. op := &request.Operation{
  191. Name: opDeleteDomain,
  192. HTTPMethod: "POST",
  193. HTTPPath: "/",
  194. }
  195. if input == nil {
  196. input = &DeleteDomainInput{}
  197. }
  198. req = c.newRequest(op, input, output)
  199. output = &DeleteDomainOutput{}
  200. req.Data = output
  201. return
  202. }
  203. // Permanently deletes a search domain and all of its data. Once a domain has
  204. // been deleted, it cannot be recovered. For more information, see Deleting
  205. // a Search Domain (http://docs.aws.amazon.com/cloudsearch/latest/developerguide/deleting-domains.html"
  206. // target="_blank) in the Amazon CloudSearch Developer Guide.
  207. func (c *CloudSearch) DeleteDomain(input *DeleteDomainInput) (*DeleteDomainOutput, error) {
  208. req, out := c.DeleteDomainRequest(input)
  209. err := req.Send()
  210. return out, err
  211. }
  212. const opDeleteExpression = "DeleteExpression"
  213. // DeleteExpressionRequest generates a request for the DeleteExpression operation.
  214. func (c *CloudSearch) DeleteExpressionRequest(input *DeleteExpressionInput) (req *request.Request, output *DeleteExpressionOutput) {
  215. op := &request.Operation{
  216. Name: opDeleteExpression,
  217. HTTPMethod: "POST",
  218. HTTPPath: "/",
  219. }
  220. if input == nil {
  221. input = &DeleteExpressionInput{}
  222. }
  223. req = c.newRequest(op, input, output)
  224. output = &DeleteExpressionOutput{}
  225. req.Data = output
  226. return
  227. }
  228. // Removes an Expression from the search domain. For more information, see Configuring
  229. // Expressions (http://docs.aws.amazon.com/cloudsearch/latest/developerguide/configuring-expressions.html"
  230. // target="_blank) in the Amazon CloudSearch Developer Guide.
  231. func (c *CloudSearch) DeleteExpression(input *DeleteExpressionInput) (*DeleteExpressionOutput, error) {
  232. req, out := c.DeleteExpressionRequest(input)
  233. err := req.Send()
  234. return out, err
  235. }
  236. const opDeleteIndexField = "DeleteIndexField"
  237. // DeleteIndexFieldRequest generates a request for the DeleteIndexField operation.
  238. func (c *CloudSearch) DeleteIndexFieldRequest(input *DeleteIndexFieldInput) (req *request.Request, output *DeleteIndexFieldOutput) {
  239. op := &request.Operation{
  240. Name: opDeleteIndexField,
  241. HTTPMethod: "POST",
  242. HTTPPath: "/",
  243. }
  244. if input == nil {
  245. input = &DeleteIndexFieldInput{}
  246. }
  247. req = c.newRequest(op, input, output)
  248. output = &DeleteIndexFieldOutput{}
  249. req.Data = output
  250. return
  251. }
  252. // Removes an IndexField from the search domain. For more information, see Configuring
  253. // Index Fields (http://docs.aws.amazon.com/cloudsearch/latest/developerguide/configuring-index-fields.html"
  254. // target="_blank) in the Amazon CloudSearch Developer Guide.
  255. func (c *CloudSearch) DeleteIndexField(input *DeleteIndexFieldInput) (*DeleteIndexFieldOutput, error) {
  256. req, out := c.DeleteIndexFieldRequest(input)
  257. err := req.Send()
  258. return out, err
  259. }
  260. const opDeleteSuggester = "DeleteSuggester"
  261. // DeleteSuggesterRequest generates a request for the DeleteSuggester operation.
  262. func (c *CloudSearch) DeleteSuggesterRequest(input *DeleteSuggesterInput) (req *request.Request, output *DeleteSuggesterOutput) {
  263. op := &request.Operation{
  264. Name: opDeleteSuggester,
  265. HTTPMethod: "POST",
  266. HTTPPath: "/",
  267. }
  268. if input == nil {
  269. input = &DeleteSuggesterInput{}
  270. }
  271. req = c.newRequest(op, input, output)
  272. output = &DeleteSuggesterOutput{}
  273. req.Data = output
  274. return
  275. }
  276. // Deletes a suggester. For more information, see Getting Search Suggestions
  277. // (http://docs.aws.amazon.com/cloudsearch/latest/developerguide/getting-suggestions.html"
  278. // target="_blank) in the Amazon CloudSearch Developer Guide.
  279. func (c *CloudSearch) DeleteSuggester(input *DeleteSuggesterInput) (*DeleteSuggesterOutput, error) {
  280. req, out := c.DeleteSuggesterRequest(input)
  281. err := req.Send()
  282. return out, err
  283. }
  284. const opDescribeAnalysisSchemes = "DescribeAnalysisSchemes"
  285. // DescribeAnalysisSchemesRequest generates a request for the DescribeAnalysisSchemes operation.
  286. func (c *CloudSearch) DescribeAnalysisSchemesRequest(input *DescribeAnalysisSchemesInput) (req *request.Request, output *DescribeAnalysisSchemesOutput) {
  287. op := &request.Operation{
  288. Name: opDescribeAnalysisSchemes,
  289. HTTPMethod: "POST",
  290. HTTPPath: "/",
  291. }
  292. if input == nil {
  293. input = &DescribeAnalysisSchemesInput{}
  294. }
  295. req = c.newRequest(op, input, output)
  296. output = &DescribeAnalysisSchemesOutput{}
  297. req.Data = output
  298. return
  299. }
  300. // Gets the analysis schemes configured for a domain. An analysis scheme defines
  301. // language-specific text processing options for a text field. Can be limited
  302. // to specific analysis schemes by name. By default, shows all analysis schemes
  303. // and includes any pending changes to the configuration. Set the Deployed option
  304. // to true to show the active configuration and exclude pending changes. For
  305. // more information, see Configuring Analysis Schemes (http://docs.aws.amazon.com/cloudsearch/latest/developerguide/configuring-analysis-schemes.html"
  306. // target="_blank) in the Amazon CloudSearch Developer Guide.
  307. func (c *CloudSearch) DescribeAnalysisSchemes(input *DescribeAnalysisSchemesInput) (*DescribeAnalysisSchemesOutput, error) {
  308. req, out := c.DescribeAnalysisSchemesRequest(input)
  309. err := req.Send()
  310. return out, err
  311. }
  312. const opDescribeAvailabilityOptions = "DescribeAvailabilityOptions"
  313. // DescribeAvailabilityOptionsRequest generates a request for the DescribeAvailabilityOptions operation.
  314. func (c *CloudSearch) DescribeAvailabilityOptionsRequest(input *DescribeAvailabilityOptionsInput) (req *request.Request, output *DescribeAvailabilityOptionsOutput) {
  315. op := &request.Operation{
  316. Name: opDescribeAvailabilityOptions,
  317. HTTPMethod: "POST",
  318. HTTPPath: "/",
  319. }
  320. if input == nil {
  321. input = &DescribeAvailabilityOptionsInput{}
  322. }
  323. req = c.newRequest(op, input, output)
  324. output = &DescribeAvailabilityOptionsOutput{}
  325. req.Data = output
  326. return
  327. }
  328. // Gets the availability options configured for a domain. By default, shows
  329. // the configuration with any pending changes. Set the Deployed option to true
  330. // to show the active configuration and exclude pending changes. For more information,
  331. // see Configuring Availability Options (http://docs.aws.amazon.com/cloudsearch/latest/developerguide/configuring-availability-options.html"
  332. // target="_blank) in the Amazon CloudSearch Developer Guide.
  333. func (c *CloudSearch) DescribeAvailabilityOptions(input *DescribeAvailabilityOptionsInput) (*DescribeAvailabilityOptionsOutput, error) {
  334. req, out := c.DescribeAvailabilityOptionsRequest(input)
  335. err := req.Send()
  336. return out, err
  337. }
  338. const opDescribeDomains = "DescribeDomains"
  339. // DescribeDomainsRequest generates a request for the DescribeDomains operation.
  340. func (c *CloudSearch) DescribeDomainsRequest(input *DescribeDomainsInput) (req *request.Request, output *DescribeDomainsOutput) {
  341. op := &request.Operation{
  342. Name: opDescribeDomains,
  343. HTTPMethod: "POST",
  344. HTTPPath: "/",
  345. }
  346. if input == nil {
  347. input = &DescribeDomainsInput{}
  348. }
  349. req = c.newRequest(op, input, output)
  350. output = &DescribeDomainsOutput{}
  351. req.Data = output
  352. return
  353. }
  354. // Gets information about the search domains owned by this account. Can be limited
  355. // to specific domains. Shows all domains by default. To get the number of searchable
  356. // documents in a domain, use the console or submit a matchall request to your
  357. // domain's search endpoint: q=matchall&q.parser=structured&size=0.
  358. // For more information, see Getting Information about a Search Domain (http://docs.aws.amazon.com/cloudsearch/latest/developerguide/getting-domain-info.html"
  359. // target="_blank) in the Amazon CloudSearch Developer Guide.
  360. func (c *CloudSearch) DescribeDomains(input *DescribeDomainsInput) (*DescribeDomainsOutput, error) {
  361. req, out := c.DescribeDomainsRequest(input)
  362. err := req.Send()
  363. return out, err
  364. }
  365. const opDescribeExpressions = "DescribeExpressions"
  366. // DescribeExpressionsRequest generates a request for the DescribeExpressions operation.
  367. func (c *CloudSearch) DescribeExpressionsRequest(input *DescribeExpressionsInput) (req *request.Request, output *DescribeExpressionsOutput) {
  368. op := &request.Operation{
  369. Name: opDescribeExpressions,
  370. HTTPMethod: "POST",
  371. HTTPPath: "/",
  372. }
  373. if input == nil {
  374. input = &DescribeExpressionsInput{}
  375. }
  376. req = c.newRequest(op, input, output)
  377. output = &DescribeExpressionsOutput{}
  378. req.Data = output
  379. return
  380. }
  381. // Gets the expressions configured for the search domain. Can be limited to
  382. // specific expressions by name. By default, shows all expressions and includes
  383. // any pending changes to the configuration. Set the Deployed option to true
  384. // to show the active configuration and exclude pending changes. For more information,
  385. // see Configuring Expressions (http://docs.aws.amazon.com/cloudsearch/latest/developerguide/configuring-expressions.html"
  386. // target="_blank) in the Amazon CloudSearch Developer Guide.
  387. func (c *CloudSearch) DescribeExpressions(input *DescribeExpressionsInput) (*DescribeExpressionsOutput, error) {
  388. req, out := c.DescribeExpressionsRequest(input)
  389. err := req.Send()
  390. return out, err
  391. }
  392. const opDescribeIndexFields = "DescribeIndexFields"
  393. // DescribeIndexFieldsRequest generates a request for the DescribeIndexFields operation.
  394. func (c *CloudSearch) DescribeIndexFieldsRequest(input *DescribeIndexFieldsInput) (req *request.Request, output *DescribeIndexFieldsOutput) {
  395. op := &request.Operation{
  396. Name: opDescribeIndexFields,
  397. HTTPMethod: "POST",
  398. HTTPPath: "/",
  399. }
  400. if input == nil {
  401. input = &DescribeIndexFieldsInput{}
  402. }
  403. req = c.newRequest(op, input, output)
  404. output = &DescribeIndexFieldsOutput{}
  405. req.Data = output
  406. return
  407. }
  408. // Gets information about the index fields configured for the search domain.
  409. // Can be limited to specific fields by name. By default, shows all fields and
  410. // includes any pending changes to the configuration. Set the Deployed option
  411. // to true to show the active configuration and exclude pending changes. For
  412. // more information, see Getting Domain Information (http://docs.aws.amazon.com/cloudsearch/latest/developerguide/getting-domain-info.html"
  413. // target="_blank) in the Amazon CloudSearch Developer Guide.
  414. func (c *CloudSearch) DescribeIndexFields(input *DescribeIndexFieldsInput) (*DescribeIndexFieldsOutput, error) {
  415. req, out := c.DescribeIndexFieldsRequest(input)
  416. err := req.Send()
  417. return out, err
  418. }
  419. const opDescribeScalingParameters = "DescribeScalingParameters"
  420. // DescribeScalingParametersRequest generates a request for the DescribeScalingParameters operation.
  421. func (c *CloudSearch) DescribeScalingParametersRequest(input *DescribeScalingParametersInput) (req *request.Request, output *DescribeScalingParametersOutput) {
  422. op := &request.Operation{
  423. Name: opDescribeScalingParameters,
  424. HTTPMethod: "POST",
  425. HTTPPath: "/",
  426. }
  427. if input == nil {
  428. input = &DescribeScalingParametersInput{}
  429. }
  430. req = c.newRequest(op, input, output)
  431. output = &DescribeScalingParametersOutput{}
  432. req.Data = output
  433. return
  434. }
  435. // Gets the scaling parameters configured for a domain. A domain's scaling parameters
  436. // specify the desired search instance type and replication count. For more
  437. // information, see Configuring Scaling Options (http://docs.aws.amazon.com/cloudsearch/latest/developerguide/configuring-scaling-options.html"
  438. // target="_blank) in the Amazon CloudSearch Developer Guide.
  439. func (c *CloudSearch) DescribeScalingParameters(input *DescribeScalingParametersInput) (*DescribeScalingParametersOutput, error) {
  440. req, out := c.DescribeScalingParametersRequest(input)
  441. err := req.Send()
  442. return out, err
  443. }
  444. const opDescribeServiceAccessPolicies = "DescribeServiceAccessPolicies"
  445. // DescribeServiceAccessPoliciesRequest generates a request for the DescribeServiceAccessPolicies operation.
  446. func (c *CloudSearch) DescribeServiceAccessPoliciesRequest(input *DescribeServiceAccessPoliciesInput) (req *request.Request, output *DescribeServiceAccessPoliciesOutput) {
  447. op := &request.Operation{
  448. Name: opDescribeServiceAccessPolicies,
  449. HTTPMethod: "POST",
  450. HTTPPath: "/",
  451. }
  452. if input == nil {
  453. input = &DescribeServiceAccessPoliciesInput{}
  454. }
  455. req = c.newRequest(op, input, output)
  456. output = &DescribeServiceAccessPoliciesOutput{}
  457. req.Data = output
  458. return
  459. }
  460. // Gets information about the access policies that control access to the domain's
  461. // document and search endpoints. By default, shows the configuration with any
  462. // pending changes. Set the Deployed option to true to show the active configuration
  463. // and exclude pending changes. For more information, see Configuring Access
  464. // for a Search Domain (http://docs.aws.amazon.com/cloudsearch/latest/developerguide/configuring-access.html"
  465. // target="_blank) in the Amazon CloudSearch Developer Guide.
  466. func (c *CloudSearch) DescribeServiceAccessPolicies(input *DescribeServiceAccessPoliciesInput) (*DescribeServiceAccessPoliciesOutput, error) {
  467. req, out := c.DescribeServiceAccessPoliciesRequest(input)
  468. err := req.Send()
  469. return out, err
  470. }
  471. const opDescribeSuggesters = "DescribeSuggesters"
  472. // DescribeSuggestersRequest generates a request for the DescribeSuggesters operation.
  473. func (c *CloudSearch) DescribeSuggestersRequest(input *DescribeSuggestersInput) (req *request.Request, output *DescribeSuggestersOutput) {
  474. op := &request.Operation{
  475. Name: opDescribeSuggesters,
  476. HTTPMethod: "POST",
  477. HTTPPath: "/",
  478. }
  479. if input == nil {
  480. input = &DescribeSuggestersInput{}
  481. }
  482. req = c.newRequest(op, input, output)
  483. output = &DescribeSuggestersOutput{}
  484. req.Data = output
  485. return
  486. }
  487. // Gets the suggesters configured for a domain. A suggester enables you to display
  488. // possible matches before users finish typing their queries. Can be limited
  489. // to specific suggesters by name. By default, shows all suggesters and includes
  490. // any pending changes to the configuration. Set the Deployed option to true
  491. // to show the active configuration and exclude pending changes. For more information,
  492. // see Getting Search Suggestions (http://docs.aws.amazon.com/cloudsearch/latest/developerguide/getting-suggestions.html"
  493. // target="_blank) in the Amazon CloudSearch Developer Guide.
  494. func (c *CloudSearch) DescribeSuggesters(input *DescribeSuggestersInput) (*DescribeSuggestersOutput, error) {
  495. req, out := c.DescribeSuggestersRequest(input)
  496. err := req.Send()
  497. return out, err
  498. }
  499. const opIndexDocuments = "IndexDocuments"
  500. // IndexDocumentsRequest generates a request for the IndexDocuments operation.
  501. func (c *CloudSearch) IndexDocumentsRequest(input *IndexDocumentsInput) (req *request.Request, output *IndexDocumentsOutput) {
  502. op := &request.Operation{
  503. Name: opIndexDocuments,
  504. HTTPMethod: "POST",
  505. HTTPPath: "/",
  506. }
  507. if input == nil {
  508. input = &IndexDocumentsInput{}
  509. }
  510. req = c.newRequest(op, input, output)
  511. output = &IndexDocumentsOutput{}
  512. req.Data = output
  513. return
  514. }
  515. // Tells the search domain to start indexing its documents using the latest
  516. // indexing options. This operation must be invoked to activate options whose
  517. // OptionStatus is RequiresIndexDocuments.
  518. func (c *CloudSearch) IndexDocuments(input *IndexDocumentsInput) (*IndexDocumentsOutput, error) {
  519. req, out := c.IndexDocumentsRequest(input)
  520. err := req.Send()
  521. return out, err
  522. }
  523. const opListDomainNames = "ListDomainNames"
  524. // ListDomainNamesRequest generates a request for the ListDomainNames operation.
  525. func (c *CloudSearch) ListDomainNamesRequest(input *ListDomainNamesInput) (req *request.Request, output *ListDomainNamesOutput) {
  526. op := &request.Operation{
  527. Name: opListDomainNames,
  528. HTTPMethod: "POST",
  529. HTTPPath: "/",
  530. }
  531. if input == nil {
  532. input = &ListDomainNamesInput{}
  533. }
  534. req = c.newRequest(op, input, output)
  535. output = &ListDomainNamesOutput{}
  536. req.Data = output
  537. return
  538. }
  539. // Lists all search domains owned by an account.
  540. func (c *CloudSearch) ListDomainNames(input *ListDomainNamesInput) (*ListDomainNamesOutput, error) {
  541. req, out := c.ListDomainNamesRequest(input)
  542. err := req.Send()
  543. return out, err
  544. }
  545. const opUpdateAvailabilityOptions = "UpdateAvailabilityOptions"
  546. // UpdateAvailabilityOptionsRequest generates a request for the UpdateAvailabilityOptions operation.
  547. func (c *CloudSearch) UpdateAvailabilityOptionsRequest(input *UpdateAvailabilityOptionsInput) (req *request.Request, output *UpdateAvailabilityOptionsOutput) {
  548. op := &request.Operation{
  549. Name: opUpdateAvailabilityOptions,
  550. HTTPMethod: "POST",
  551. HTTPPath: "/",
  552. }
  553. if input == nil {
  554. input = &UpdateAvailabilityOptionsInput{}
  555. }
  556. req = c.newRequest(op, input, output)
  557. output = &UpdateAvailabilityOptionsOutput{}
  558. req.Data = output
  559. return
  560. }
  561. // Configures the availability options for a domain. Enabling the Multi-AZ option
  562. // expands an Amazon CloudSearch domain to an additional Availability Zone in
  563. // the same Region to increase fault tolerance in the event of a service disruption.
  564. // Changes to the Multi-AZ option can take about half an hour to become active.
  565. // For more information, see Configuring Availability Options (http://docs.aws.amazon.com/cloudsearch/latest/developerguide/configuring-availability-options.html"
  566. // target="_blank) in the Amazon CloudSearch Developer Guide.
  567. func (c *CloudSearch) UpdateAvailabilityOptions(input *UpdateAvailabilityOptionsInput) (*UpdateAvailabilityOptionsOutput, error) {
  568. req, out := c.UpdateAvailabilityOptionsRequest(input)
  569. err := req.Send()
  570. return out, err
  571. }
  572. const opUpdateScalingParameters = "UpdateScalingParameters"
  573. // UpdateScalingParametersRequest generates a request for the UpdateScalingParameters operation.
  574. func (c *CloudSearch) UpdateScalingParametersRequest(input *UpdateScalingParametersInput) (req *request.Request, output *UpdateScalingParametersOutput) {
  575. op := &request.Operation{
  576. Name: opUpdateScalingParameters,
  577. HTTPMethod: "POST",
  578. HTTPPath: "/",
  579. }
  580. if input == nil {
  581. input = &UpdateScalingParametersInput{}
  582. }
  583. req = c.newRequest(op, input, output)
  584. output = &UpdateScalingParametersOutput{}
  585. req.Data = output
  586. return
  587. }
  588. // Configures scaling parameters for a domain. A domain's scaling parameters
  589. // specify the desired search instance type and replication count. Amazon CloudSearch
  590. // will still automatically scale your domain based on the volume of data and
  591. // traffic, but not below the desired instance type and replication count. If
  592. // the Multi-AZ option is enabled, these values control the resources used per
  593. // Availability Zone. For more information, see Configuring Scaling Options
  594. // (http://docs.aws.amazon.com/cloudsearch/latest/developerguide/configuring-scaling-options.html"
  595. // target="_blank) in the Amazon CloudSearch Developer Guide.
  596. func (c *CloudSearch) UpdateScalingParameters(input *UpdateScalingParametersInput) (*UpdateScalingParametersOutput, error) {
  597. req, out := c.UpdateScalingParametersRequest(input)
  598. err := req.Send()
  599. return out, err
  600. }
  601. const opUpdateServiceAccessPolicies = "UpdateServiceAccessPolicies"
  602. // UpdateServiceAccessPoliciesRequest generates a request for the UpdateServiceAccessPolicies operation.
  603. func (c *CloudSearch) UpdateServiceAccessPoliciesRequest(input *UpdateServiceAccessPoliciesInput) (req *request.Request, output *UpdateServiceAccessPoliciesOutput) {
  604. op := &request.Operation{
  605. Name: opUpdateServiceAccessPolicies,
  606. HTTPMethod: "POST",
  607. HTTPPath: "/",
  608. }
  609. if input == nil {
  610. input = &UpdateServiceAccessPoliciesInput{}
  611. }
  612. req = c.newRequest(op, input, output)
  613. output = &UpdateServiceAccessPoliciesOutput{}
  614. req.Data = output
  615. return
  616. }
  617. // Configures the access rules that control access to the domain's document
  618. // and search endpoints. For more information, see Configuring Access for an
  619. // Amazon CloudSearch Domain (http://docs.aws.amazon.com/cloudsearch/latest/developerguide/configuring-access.html"
  620. // target="_blank).
  621. func (c *CloudSearch) UpdateServiceAccessPolicies(input *UpdateServiceAccessPoliciesInput) (*UpdateServiceAccessPoliciesOutput, error) {
  622. req, out := c.UpdateServiceAccessPoliciesRequest(input)
  623. err := req.Send()
  624. return out, err
  625. }
  626. // The configured access rules for the domain's document and search endpoints,
  627. // and the current status of those rules.
  628. type AccessPoliciesStatus struct {
  629. // Access rules for a domain's document or search service endpoints. For more
  630. // information, see Configuring Access for a Search Domain (http://docs.aws.amazon.com/cloudsearch/latest/developerguide/configuring-access.html"
  631. // target="_blank) in the Amazon CloudSearch Developer Guide. The maximum size
  632. // of a policy document is 100 KB.
  633. Options *string `type:"string" required:"true"`
  634. // The status of domain configuration option.
  635. Status *OptionStatus `type:"structure" required:"true"`
  636. metadataAccessPoliciesStatus `json:"-" xml:"-"`
  637. }
  638. type metadataAccessPoliciesStatus struct {
  639. SDKShapeTraits bool `type:"structure"`
  640. }
  641. // String returns the string representation
  642. func (s AccessPoliciesStatus) String() string {
  643. return awsutil.Prettify(s)
  644. }
  645. // GoString returns the string representation
  646. func (s AccessPoliciesStatus) GoString() string {
  647. return s.String()
  648. }
  649. // Synonyms, stopwords, and stemming options for an analysis scheme. Includes
  650. // tokenization dictionary for Japanese.
  651. type AnalysisOptions struct {
  652. // The level of algorithmic stemming to perform: none, minimal, light, or full.
  653. // The available levels vary depending on the language. For more information,
  654. // see Language Specific Text Processing Settings (http://docs.aws.amazon.com/cloudsearch/latest/developerguide/text-processing.html#text-processing-settings"
  655. // target="_blank) in the Amazon CloudSearch Developer Guide
  656. AlgorithmicStemming *string `type:"string" enum:"AlgorithmicStemming"`
  657. // A JSON array that contains a collection of terms, tokens, readings and part
  658. // of speech for Japanese Tokenizaiton. The Japanese tokenization dictionary
  659. // enables you to override the default tokenization for selected terms. This
  660. // is only valid for Japanese language fields.
  661. JapaneseTokenizationDictionary *string `type:"string"`
  662. // A JSON object that contains a collection of string:value pairs that each
  663. // map a term to its stem. For example, {"term1": "stem1", "term2": "stem2",
  664. // "term3": "stem3"}. The stemming dictionary is applied in addition to any
  665. // algorithmic stemming. This enables you to override the results of the algorithmic
  666. // stemming to correct specific cases of overstemming or understemming. The
  667. // maximum size of a stemming dictionary is 500 KB.
  668. StemmingDictionary *string `type:"string"`
  669. // A JSON array of terms to ignore during indexing and searching. For example,
  670. // ["a", "an", "the", "of"]. The stopwords dictionary must explicitly list each
  671. // word you want to ignore. Wildcards and regular expressions are not supported.
  672. Stopwords *string `type:"string"`
  673. // A JSON object that defines synonym groups and aliases. A synonym group is
  674. // an array of arrays, where each sub-array is a group of terms where each term
  675. // in the group is considered a synonym of every other term in the group. The
  676. // aliases value is an object that contains a collection of string:value pairs
  677. // where the string specifies a term and the array of values specifies each
  678. // of the aliases for that term. An alias is considered a synonym of the specified
  679. // term, but the term is not considered a synonym of the alias. For more information
  680. // about specifying synonyms, see Synonyms (http://docs.aws.amazon.com/cloudsearch/latest/developerguide/configuring-analysis-schemes.html#synonyms)
  681. // in the Amazon CloudSearch Developer Guide.
  682. Synonyms *string `type:"string"`
  683. metadataAnalysisOptions `json:"-" xml:"-"`
  684. }
  685. type metadataAnalysisOptions struct {
  686. SDKShapeTraits bool `type:"structure"`
  687. }
  688. // String returns the string representation
  689. func (s AnalysisOptions) String() string {
  690. return awsutil.Prettify(s)
  691. }
  692. // GoString returns the string representation
  693. func (s AnalysisOptions) GoString() string {
  694. return s.String()
  695. }
  696. // Configuration information for an analysis scheme. Each analysis scheme has
  697. // a unique name and specifies the language of the text to be processed. The
  698. // following options can be configured for an analysis scheme: Synonyms, Stopwords,
  699. // StemmingDictionary, JapaneseTokenizationDictionary and AlgorithmicStemming.
  700. type AnalysisScheme struct {
  701. // Synonyms, stopwords, and stemming options for an analysis scheme. Includes
  702. // tokenization dictionary for Japanese.
  703. AnalysisOptions *AnalysisOptions `type:"structure"`
  704. // An IETF RFC 4646 (http://tools.ietf.org/html/rfc4646" target="_blank) language
  705. // code or mul for multiple languages.
  706. AnalysisSchemeLanguage *string `type:"string" required:"true" enum:"AnalysisSchemeLanguage"`
  707. // Names must begin with a letter and can contain the following characters:
  708. // a-z (lowercase), 0-9, and _ (underscore).
  709. AnalysisSchemeName *string `type:"string" required:"true"`
  710. metadataAnalysisScheme `json:"-" xml:"-"`
  711. }
  712. type metadataAnalysisScheme struct {
  713. SDKShapeTraits bool `type:"structure"`
  714. }
  715. // String returns the string representation
  716. func (s AnalysisScheme) String() string {
  717. return awsutil.Prettify(s)
  718. }
  719. // GoString returns the string representation
  720. func (s AnalysisScheme) GoString() string {
  721. return s.String()
  722. }
  723. // The status and configuration of an AnalysisScheme.
  724. type AnalysisSchemeStatus struct {
  725. // Configuration information for an analysis scheme. Each analysis scheme has
  726. // a unique name and specifies the language of the text to be processed. The
  727. // following options can be configured for an analysis scheme: Synonyms, Stopwords,
  728. // StemmingDictionary, JapaneseTokenizationDictionary and AlgorithmicStemming.
  729. Options *AnalysisScheme `type:"structure" required:"true"`
  730. // The status of domain configuration option.
  731. Status *OptionStatus `type:"structure" required:"true"`
  732. metadataAnalysisSchemeStatus `json:"-" xml:"-"`
  733. }
  734. type metadataAnalysisSchemeStatus struct {
  735. SDKShapeTraits bool `type:"structure"`
  736. }
  737. // String returns the string representation
  738. func (s AnalysisSchemeStatus) String() string {
  739. return awsutil.Prettify(s)
  740. }
  741. // GoString returns the string representation
  742. func (s AnalysisSchemeStatus) GoString() string {
  743. return s.String()
  744. }
  745. // The status and configuration of the domain's availability options.
  746. type AvailabilityOptionsStatus struct {
  747. // The availability options configured for the domain.
  748. Options *bool `type:"boolean" required:"true"`
  749. // The status of domain configuration option.
  750. Status *OptionStatus `type:"structure" required:"true"`
  751. metadataAvailabilityOptionsStatus `json:"-" xml:"-"`
  752. }
  753. type metadataAvailabilityOptionsStatus struct {
  754. SDKShapeTraits bool `type:"structure"`
  755. }
  756. // String returns the string representation
  757. func (s AvailabilityOptionsStatus) String() string {
  758. return awsutil.Prettify(s)
  759. }
  760. // GoString returns the string representation
  761. func (s AvailabilityOptionsStatus) GoString() string {
  762. return s.String()
  763. }
  764. // Container for the parameters to the BuildSuggester operation. Specifies the
  765. // name of the domain you want to update.
  766. type BuildSuggestersInput struct {
  767. // A string that represents the name of a domain. Domain names are unique across
  768. // the domains owned by an account within an AWS region. Domain names start
  769. // with a letter or number and can contain the following characters: a-z (lowercase),
  770. // 0-9, and - (hyphen).
  771. DomainName *string `type:"string" required:"true"`
  772. metadataBuildSuggestersInput `json:"-" xml:"-"`
  773. }
  774. type metadataBuildSuggestersInput struct {
  775. SDKShapeTraits bool `type:"structure"`
  776. }
  777. // String returns the string representation
  778. func (s BuildSuggestersInput) String() string {
  779. return awsutil.Prettify(s)
  780. }
  781. // GoString returns the string representation
  782. func (s BuildSuggestersInput) GoString() string {
  783. return s.String()
  784. }
  785. // The result of a BuildSuggester request. Contains a list of the fields used
  786. // for suggestions.
  787. type BuildSuggestersOutput struct {
  788. // A list of field names.
  789. FieldNames []*string `type:"list"`
  790. metadataBuildSuggestersOutput `json:"-" xml:"-"`
  791. }
  792. type metadataBuildSuggestersOutput struct {
  793. SDKShapeTraits bool `type:"structure"`
  794. }
  795. // String returns the string representation
  796. func (s BuildSuggestersOutput) String() string {
  797. return awsutil.Prettify(s)
  798. }
  799. // GoString returns the string representation
  800. func (s BuildSuggestersOutput) GoString() string {
  801. return s.String()
  802. }
  803. // Container for the parameters to the CreateDomain operation. Specifies a name
  804. // for the new search domain.
  805. type CreateDomainInput struct {
  806. // A name for the domain you are creating. Allowed characters are a-z (lower-case
  807. // letters), 0-9, and hyphen (-). Domain names must start with a letter or number
  808. // and be at least 3 and no more than 28 characters long.
  809. DomainName *string `type:"string" required:"true"`
  810. metadataCreateDomainInput `json:"-" xml:"-"`
  811. }
  812. type metadataCreateDomainInput struct {
  813. SDKShapeTraits bool `type:"structure"`
  814. }
  815. // String returns the string representation
  816. func (s CreateDomainInput) String() string {
  817. return awsutil.Prettify(s)
  818. }
  819. // GoString returns the string representation
  820. func (s CreateDomainInput) GoString() string {
  821. return s.String()
  822. }
  823. // The result of a CreateDomainRequest. Contains the status of a newly created
  824. // domain.
  825. type CreateDomainOutput struct {
  826. // The current status of the search domain.
  827. DomainStatus *DomainStatus `type:"structure"`
  828. metadataCreateDomainOutput `json:"-" xml:"-"`
  829. }
  830. type metadataCreateDomainOutput struct {
  831. SDKShapeTraits bool `type:"structure"`
  832. }
  833. // String returns the string representation
  834. func (s CreateDomainOutput) String() string {
  835. return awsutil.Prettify(s)
  836. }
  837. // GoString returns the string representation
  838. func (s CreateDomainOutput) GoString() string {
  839. return s.String()
  840. }
  841. // Options for a field that contains an array of dates. Present if IndexFieldType
  842. // specifies the field is of type date-array. All options are enabled by default.
  843. type DateArrayOptions struct {
  844. // A value to use for the field if the field isn't specified for a document.
  845. DefaultValue *string `type:"string"`
  846. // Whether facet information can be returned for the field.
  847. FacetEnabled *bool `type:"boolean"`
  848. // Whether the contents of the field can be returned in the search results.
  849. ReturnEnabled *bool `type:"boolean"`
  850. // Whether the contents of the field are searchable.
  851. SearchEnabled *bool `type:"boolean"`
  852. // A list of source fields to map to the field.
  853. SourceFields *string `type:"string"`
  854. metadataDateArrayOptions `json:"-" xml:"-"`
  855. }
  856. type metadataDateArrayOptions struct {
  857. SDKShapeTraits bool `type:"structure"`
  858. }
  859. // String returns the string representation
  860. func (s DateArrayOptions) String() string {
  861. return awsutil.Prettify(s)
  862. }
  863. // GoString returns the string representation
  864. func (s DateArrayOptions) GoString() string {
  865. return s.String()
  866. }
  867. // Options for a date field. Dates and times are specified in UTC (Coordinated
  868. // Universal Time) according to IETF RFC3339: yyyy-mm-ddT00:00:00Z. Present
  869. // if IndexFieldType specifies the field is of type date. All options are enabled
  870. // by default.
  871. type DateOptions struct {
  872. // A value to use for the field if the field isn't specified for a document.
  873. DefaultValue *string `type:"string"`
  874. // Whether facet information can be returned for the field.
  875. FacetEnabled *bool `type:"boolean"`
  876. // Whether the contents of the field can be returned in the search results.
  877. ReturnEnabled *bool `type:"boolean"`
  878. // Whether the contents of the field are searchable.
  879. SearchEnabled *bool `type:"boolean"`
  880. // Whether the field can be used to sort the search results.
  881. SortEnabled *bool `type:"boolean"`
  882. // A string that represents the name of an index field. CloudSearch supports
  883. // regular index fields as well as dynamic fields. A dynamic field's name defines
  884. // a pattern that begins or ends with a wildcard. Any document fields that don't
  885. // map to a regular index field but do match a dynamic field's pattern are configured
  886. // with the dynamic field's indexing options.
  887. //
  888. // Regular field names begin with a letter and can contain the following characters:
  889. // a-z (lowercase), 0-9, and _ (underscore). Dynamic field names must begin
  890. // or end with a wildcard (*). The wildcard can also be the only character in
  891. // a dynamic field name. Multiple wildcards, and wildcards embedded within a
  892. // string are not supported.
  893. //
  894. // The name score is reserved and cannot be used as a field name. To reference
  895. // a document's ID, you can use the name _id.
  896. SourceField *string `type:"string"`
  897. metadataDateOptions `json:"-" xml:"-"`
  898. }
  899. type metadataDateOptions struct {
  900. SDKShapeTraits bool `type:"structure"`
  901. }
  902. // String returns the string representation
  903. func (s DateOptions) String() string {
  904. return awsutil.Prettify(s)
  905. }
  906. // GoString returns the string representation
  907. func (s DateOptions) GoString() string {
  908. return s.String()
  909. }
  910. // Container for the parameters to the DefineAnalysisScheme operation. Specifies
  911. // the name of the domain you want to update and the analysis scheme configuration.
  912. type DefineAnalysisSchemeInput struct {
  913. // Configuration information for an analysis scheme. Each analysis scheme has
  914. // a unique name and specifies the language of the text to be processed. The
  915. // following options can be configured for an analysis scheme: Synonyms, Stopwords,
  916. // StemmingDictionary, JapaneseTokenizationDictionary and AlgorithmicStemming.
  917. AnalysisScheme *AnalysisScheme `type:"structure" required:"true"`
  918. // A string that represents the name of a domain. Domain names are unique across
  919. // the domains owned by an account within an AWS region. Domain names start
  920. // with a letter or number and can contain the following characters: a-z (lowercase),
  921. // 0-9, and - (hyphen).
  922. DomainName *string `type:"string" required:"true"`
  923. metadataDefineAnalysisSchemeInput `json:"-" xml:"-"`
  924. }
  925. type metadataDefineAnalysisSchemeInput struct {
  926. SDKShapeTraits bool `type:"structure"`
  927. }
  928. // String returns the string representation
  929. func (s DefineAnalysisSchemeInput) String() string {
  930. return awsutil.Prettify(s)
  931. }
  932. // GoString returns the string representation
  933. func (s DefineAnalysisSchemeInput) GoString() string {
  934. return s.String()
  935. }
  936. // The result of a DefineAnalysisScheme request. Contains the status of the
  937. // newly-configured analysis scheme.
  938. type DefineAnalysisSchemeOutput struct {
  939. // The status and configuration of an AnalysisScheme.
  940. AnalysisScheme *AnalysisSchemeStatus `type:"structure" required:"true"`
  941. metadataDefineAnalysisSchemeOutput `json:"-" xml:"-"`
  942. }
  943. type metadataDefineAnalysisSchemeOutput struct {
  944. SDKShapeTraits bool `type:"structure"`
  945. }
  946. // String returns the string representation
  947. func (s DefineAnalysisSchemeOutput) String() string {
  948. return awsutil.Prettify(s)
  949. }
  950. // GoString returns the string representation
  951. func (s DefineAnalysisSchemeOutput) GoString() string {
  952. return s.String()
  953. }
  954. // Container for the parameters to the DefineExpression operation. Specifies
  955. // the name of the domain you want to update and the expression you want to
  956. // configure.
  957. type DefineExpressionInput struct {
  958. // A string that represents the name of a domain. Domain names are unique across
  959. // the domains owned by an account within an AWS region. Domain names start
  960. // with a letter or number and can contain the following characters: a-z (lowercase),
  961. // 0-9, and - (hyphen).
  962. DomainName *string `type:"string" required:"true"`
  963. // A named expression that can be evaluated at search time. Can be used to sort
  964. // the search results, define other expressions, or return computed information
  965. // in the search results.
  966. Expression *Expression `type:"structure" required:"true"`
  967. metadataDefineExpressionInput `json:"-" xml:"-"`
  968. }
  969. type metadataDefineExpressionInput struct {
  970. SDKShapeTraits bool `type:"structure"`
  971. }
  972. // String returns the string representation
  973. func (s DefineExpressionInput) String() string {
  974. return awsutil.Prettify(s)
  975. }
  976. // GoString returns the string representation
  977. func (s DefineExpressionInput) GoString() string {
  978. return s.String()
  979. }
  980. // The result of a DefineExpression request. Contains the status of the newly-configured
  981. // expression.
  982. type DefineExpressionOutput struct {
  983. // The value of an Expression and its current status.
  984. Expression *ExpressionStatus `type:"structure" required:"true"`
  985. metadataDefineExpressionOutput `json:"-" xml:"-"`
  986. }
  987. type metadataDefineExpressionOutput struct {
  988. SDKShapeTraits bool `type:"structure"`
  989. }
  990. // String returns the string representation
  991. func (s DefineExpressionOutput) String() string {
  992. return awsutil.Prettify(s)
  993. }
  994. // GoString returns the string representation
  995. func (s DefineExpressionOutput) GoString() string {
  996. return s.String()
  997. }
  998. // Container for the parameters to the DefineIndexField operation. Specifies
  999. // the name of the domain you want to update and the index field configuration.
  1000. type DefineIndexFieldInput struct {
  1001. // A string that represents the name of a domain. Domain names are unique across
  1002. // the domains owned by an account within an AWS region. Domain names start
  1003. // with a letter or number and can contain the following characters: a-z (lowercase),
  1004. // 0-9, and - (hyphen).
  1005. DomainName *string `type:"string" required:"true"`
  1006. // The index field and field options you want to configure.
  1007. IndexField *IndexField `type:"structure" required:"true"`
  1008. metadataDefineIndexFieldInput `json:"-" xml:"-"`
  1009. }
  1010. type metadataDefineIndexFieldInput struct {
  1011. SDKShapeTraits bool `type:"structure"`
  1012. }
  1013. // String returns the string representation
  1014. func (s DefineIndexFieldInput) String() string {
  1015. return awsutil.Prettify(s)
  1016. }
  1017. // GoString returns the string representation
  1018. func (s DefineIndexFieldInput) GoString() string {
  1019. return s.String()
  1020. }
  1021. // The result of a DefineIndexField request. Contains the status of the newly-configured
  1022. // index field.
  1023. type DefineIndexFieldOutput struct {
  1024. // The value of an IndexField and its current status.
  1025. IndexField *IndexFieldStatus `type:"structure" required:"true"`
  1026. metadataDefineIndexFieldOutput `json:"-" xml:"-"`
  1027. }
  1028. type metadataDefineIndexFieldOutput struct {
  1029. SDKShapeTraits bool `type:"structure"`
  1030. }
  1031. // String returns the string representation
  1032. func (s DefineIndexFieldOutput) String() string {
  1033. return awsutil.Prettify(s)
  1034. }
  1035. // GoString returns the string representation
  1036. func (s DefineIndexFieldOutput) GoString() string {
  1037. return s.String()
  1038. }
  1039. // Container for the parameters to the DefineSuggester operation. Specifies
  1040. // the name of the domain you want to update and the suggester configuration.
  1041. type DefineSuggesterInput struct {
  1042. // A string that represents the name of a domain. Domain names are unique across
  1043. // the domains owned by an account within an AWS region. Domain names start
  1044. // with a letter or number and can contain the following characters: a-z (lowercase),
  1045. // 0-9, and - (hyphen).
  1046. DomainName *string `type:"string" required:"true"`
  1047. // Configuration information for a search suggester. Each suggester has a unique
  1048. // name and specifies the text field you want to use for suggestions. The following
  1049. // options can be configured for a suggester: FuzzyMatching, SortExpression.
  1050. Suggester *Suggester `type:"structure" required:"true"`
  1051. metadataDefineSuggesterInput `json:"-" xml:"-"`
  1052. }
  1053. type metadataDefineSuggesterInput struct {
  1054. SDKShapeTraits bool `type:"structure"`
  1055. }
  1056. // String returns the string representation
  1057. func (s DefineSuggesterInput) String() string {
  1058. return awsutil.Prettify(s)
  1059. }
  1060. // GoString returns the string representation
  1061. func (s DefineSuggesterInput) GoString() string {
  1062. return s.String()
  1063. }
  1064. // The result of a DefineSuggester request. Contains the status of the newly-configured
  1065. // suggester.
  1066. type DefineSuggesterOutput struct {
  1067. // The value of a Suggester and its current status.
  1068. Suggester *SuggesterStatus `type:"structure" required:"true"`
  1069. metadataDefineSuggesterOutput `json:"-" xml:"-"`
  1070. }
  1071. type metadataDefineSuggesterOutput struct {
  1072. SDKShapeTraits bool `type:"structure"`
  1073. }
  1074. // String returns the string representation
  1075. func (s DefineSuggesterOutput) String() string {
  1076. return awsutil.Prettify(s)
  1077. }
  1078. // GoString returns the string representation
  1079. func (s DefineSuggesterOutput) GoString() string {
  1080. return s.String()
  1081. }
  1082. // Container for the parameters to the DeleteAnalysisScheme operation. Specifies
  1083. // the name of the domain you want to update and the analysis scheme you want
  1084. // to delete.
  1085. type DeleteAnalysisSchemeInput struct {
  1086. // The name of the analysis scheme you want to delete.
  1087. AnalysisSchemeName *string `type:"string" required:"true"`
  1088. // A string that represents the name of a domain. Domain names are unique across
  1089. // the domains owned by an account within an AWS region. Domain names start
  1090. // with a letter or number and can contain the following characters: a-z (lowercase),
  1091. // 0-9, and - (hyphen).
  1092. DomainName *string `type:"string" required:"true"`
  1093. metadataDeleteAnalysisSchemeInput `json:"-" xml:"-"`
  1094. }
  1095. type metadataDeleteAnalysisSchemeInput struct {
  1096. SDKShapeTraits bool `type:"structure"`
  1097. }
  1098. // String returns the string representation
  1099. func (s DeleteAnalysisSchemeInput) String() string {
  1100. return awsutil.Prettify(s)
  1101. }
  1102. // GoString returns the string representation
  1103. func (s DeleteAnalysisSchemeInput) GoString() string {
  1104. return s.String()
  1105. }
  1106. // The result of a DeleteAnalysisScheme request. Contains the status of the
  1107. // deleted analysis scheme.
  1108. type DeleteAnalysisSchemeOutput struct {
  1109. // The status of the analysis scheme being deleted.
  1110. AnalysisScheme *AnalysisSchemeStatus `type:"structure" required:"true"`
  1111. metadataDeleteAnalysisSchemeOutput `json:"-" xml:"-"`
  1112. }
  1113. type metadataDeleteAnalysisSchemeOutput struct {
  1114. SDKShapeTraits bool `type:"structure"`
  1115. }
  1116. // String returns the string representation
  1117. func (s DeleteAnalysisSchemeOutput) String() string {
  1118. return awsutil.Prettify(s)
  1119. }
  1120. // GoString returns the string representation
  1121. func (s DeleteAnalysisSchemeOutput) GoString() string {
  1122. return s.String()
  1123. }
  1124. // Container for the parameters to the DeleteDomain operation. Specifies the
  1125. // name of the domain you want to delete.
  1126. type DeleteDomainInput struct {
  1127. // The name of the domain you want to permanently delete.
  1128. DomainName *string `type:"string" required:"true"`
  1129. metadataDeleteDomainInput `json:"-" xml:"-"`
  1130. }
  1131. type metadataDeleteDomainInput struct {
  1132. SDKShapeTraits bool `type:"structure"`
  1133. }
  1134. // String returns the string representation
  1135. func (s DeleteDomainInput) String() string {
  1136. return awsutil.Prettify(s)
  1137. }
  1138. // GoString returns the string representation
  1139. func (s DeleteDomainInput) GoString() string {
  1140. return s.String()
  1141. }
  1142. // The result of a DeleteDomain request. Contains the status of a newly deleted
  1143. // domain, or no status if the domain has already been completely deleted.
  1144. type DeleteDomainOutput struct {
  1145. // The current status of the search domain.
  1146. DomainStatus *DomainStatus `type:"structure"`
  1147. metadataDeleteDomainOutput `json:"-" xml:"-"`
  1148. }
  1149. type metadataDeleteDomainOutput struct {
  1150. SDKShapeTraits bool `type:"structure"`
  1151. }
  1152. // String returns the string representation
  1153. func (s DeleteDomainOutput) String() string {
  1154. return awsutil.Prettify(s)
  1155. }
  1156. // GoString returns the string representation
  1157. func (s DeleteDomainOutput) GoString() string {
  1158. return s.String()
  1159. }
  1160. // Container for the parameters to the DeleteExpression operation. Specifies
  1161. // the name of the domain you want to update and the name of the expression
  1162. // you want to delete.
  1163. type DeleteExpressionInput struct {
  1164. // A string that represents the name of a domain. Domain names are unique across
  1165. // the domains owned by an account within an AWS region. Domain names start
  1166. // with a letter or number and can contain the following characters: a-z (lowercase),
  1167. // 0-9, and - (hyphen).
  1168. DomainName *string `type:"string" required:"true"`
  1169. // The name of the Expression to delete.
  1170. ExpressionName *string `type:"string" required:"true"`
  1171. metadataDeleteExpressionInput `json:"-" xml:"-"`
  1172. }
  1173. type metadataDeleteExpressionInput struct {
  1174. SDKShapeTraits bool `type:"structure"`
  1175. }
  1176. // String returns the string representation
  1177. func (s DeleteExpressionInput) String() string {
  1178. return awsutil.Prettify(s)
  1179. }
  1180. // GoString returns the string representation
  1181. func (s DeleteExpressionInput) GoString() string {
  1182. return s.String()
  1183. }
  1184. // The result of a DeleteExpression request. Specifies the expression being
  1185. // deleted.
  1186. type DeleteExpressionOutput struct {
  1187. // The status of the expression being deleted.
  1188. Expression *ExpressionStatus `type:"structure" required:"true"`
  1189. metadataDeleteExpressionOutput `json:"-" xml:"-"`
  1190. }
  1191. type metadataDeleteExpressionOutput struct {
  1192. SDKShapeTraits bool `type:"structure"`
  1193. }
  1194. // String returns the string representation
  1195. func (s DeleteExpressionOutput) String() string {
  1196. return awsutil.Prettify(s)
  1197. }
  1198. // GoString returns the string representation
  1199. func (s DeleteExpressionOutput) GoString() string {
  1200. return s.String()
  1201. }
  1202. // Container for the parameters to the DeleteIndexField operation. Specifies
  1203. // the name of the domain you want to update and the name of the index field
  1204. // you want to delete.
  1205. type DeleteIndexFieldInput struct {
  1206. // A string that represents the name of a domain. Domain names are unique across
  1207. // the domains owned by an account within an AWS region. Domain names start
  1208. // with a letter or number and can contain the following characters: a-z (lowercase),
  1209. // 0-9, and - (hyphen).
  1210. DomainName *string `type:"string" required:"true"`
  1211. // The name of the index field your want to remove from the domain's indexing
  1212. // options.
  1213. IndexFieldName *string `type:"string" required:"true"`
  1214. metadataDeleteIndexFieldInput `json:"-" xml:"-"`
  1215. }
  1216. type metadataDeleteIndexFieldInput struct {
  1217. SDKShapeTraits bool `type:"structure"`
  1218. }
  1219. // String returns the string representation
  1220. func (s DeleteIndexFieldInput) String() string {
  1221. return awsutil.Prettify(s)
  1222. }
  1223. // GoString returns the string representation
  1224. func (s DeleteIndexFieldInput) GoString() string {
  1225. return s.String()
  1226. }
  1227. // The result of a DeleteIndexField request.
  1228. type DeleteIndexFieldOutput struct {
  1229. // The status of the index field being deleted.
  1230. IndexField *IndexFieldStatus `type:"structure" required:"true"`
  1231. metadataDeleteIndexFieldOutput `json:"-" xml:"-"`
  1232. }
  1233. type metadataDeleteIndexFieldOutput struct {
  1234. SDKShapeTraits bool `type:"structure"`
  1235. }
  1236. // String returns the string representation
  1237. func (s DeleteIndexFieldOutput) String() string {
  1238. return awsutil.Prettify(s)
  1239. }
  1240. // GoString returns the string representation
  1241. func (s DeleteIndexFieldOutput) GoString() string {
  1242. return s.String()
  1243. }
  1244. // Container for the parameters to the DeleteSuggester operation. Specifies
  1245. // the name of the domain you want to update and name of the suggester you want
  1246. // to delete.
  1247. type DeleteSuggesterInput struct {
  1248. // A string that represents the name of a domain. Domain names are unique across
  1249. // the domains owned by an account within an AWS region. Domain names start
  1250. // with a letter or number and can contain the following characters: a-z (lowercase),
  1251. // 0-9, and - (hyphen).
  1252. DomainName *string `type:"string" required:"true"`
  1253. // Specifies the name of the suggester you want to delete.
  1254. SuggesterName *string `type:"string" required:"true"`
  1255. metadataDeleteSuggesterInput `json:"-" xml:"-"`
  1256. }
  1257. type metadataDeleteSuggesterInput struct {
  1258. SDKShapeTraits bool `type:"structure"`
  1259. }
  1260. // String returns the string representation
  1261. func (s DeleteSuggesterInput) String() string {
  1262. return awsutil.Prettify(s)
  1263. }
  1264. // GoString returns the string representation
  1265. func (s DeleteSuggesterInput) GoString() string {
  1266. return s.String()
  1267. }
  1268. // The result of a DeleteSuggester request. Contains the status of the deleted
  1269. // suggester.
  1270. type DeleteSuggesterOutput struct {
  1271. // The status of the suggester being deleted.
  1272. Suggester *SuggesterStatus `type:"structure" required:"true"`
  1273. metadataDeleteSuggesterOutput `json:"-" xml:"-"`
  1274. }
  1275. type metadataDeleteSuggesterOutput struct {
  1276. SDKShapeTraits bool `type:"structure"`
  1277. }
  1278. // String returns the string representation
  1279. func (s DeleteSuggesterOutput) String() string {
  1280. return awsutil.Prettify(s)
  1281. }
  1282. // GoString returns the string representation
  1283. func (s DeleteSuggesterOutput) GoString() string {
  1284. return s.String()
  1285. }
  1286. // Container for the parameters to the DescribeAnalysisSchemes operation. Specifies
  1287. // the name of the domain you want to describe. To limit the response to particular
  1288. // analysis schemes, specify the names of the analysis schemes you want to describe.
  1289. // To show the active configuration and exclude any pending changes, set the
  1290. // Deployed option to true.
  1291. type DescribeAnalysisSchemesInput struct {
  1292. // The analysis schemes you want to describe.
  1293. AnalysisSchemeNames []*string `type:"list"`
  1294. // Whether to display the deployed configuration (true) or include any pending
  1295. // changes (false). Defaults to false.
  1296. Deployed *bool `type:"boolean"`
  1297. // The name of the domain you want to describe.
  1298. DomainName *string `type:"string" required:"true"`
  1299. metadataDescribeAnalysisSchemesInput `json:"-" xml:"-"`
  1300. }
  1301. type metadataDescribeAnalysisSchemesInput struct {
  1302. SDKShapeTraits bool `type:"structure"`
  1303. }
  1304. // String returns the string representation
  1305. func (s DescribeAnalysisSchemesInput) String() string {
  1306. return awsutil.Prettify(s)
  1307. }
  1308. // GoString returns the string representation
  1309. func (s DescribeAnalysisSchemesInput) GoString() string {
  1310. return s.String()
  1311. }
  1312. // The result of a DescribeAnalysisSchemes request. Contains the analysis schemes
  1313. // configured for the domain specified in the request.
  1314. type DescribeAnalysisSchemesOutput struct {
  1315. // The analysis scheme descriptions.
  1316. AnalysisSchemes []*AnalysisSchemeStatus `type:"list" required:"true"`
  1317. metadataDescribeAnalysisSchemesOutput `json:"-" xml:"-"`
  1318. }
  1319. type metadataDescribeAnalysisSchemesOutput struct {
  1320. SDKShapeTraits bool `type:"structure"`
  1321. }
  1322. // String returns the string representation
  1323. func (s DescribeAnalysisSchemesOutput) String() string {
  1324. return awsutil.Prettify(s)
  1325. }
  1326. // GoString returns the string representation
  1327. func (s DescribeAnalysisSchemesOutput) GoString() string {
  1328. return s.String()
  1329. }
  1330. // Container for the parameters to the DescribeAvailabilityOptions operation.
  1331. // Specifies the name of the domain you want to describe. To show the active
  1332. // configuration and exclude any pending changes, set the Deployed option to
  1333. // true.
  1334. type DescribeAvailabilityOptionsInput struct {
  1335. // Whether to display the deployed configuration (true) or include any pending
  1336. // changes (false). Defaults to false.
  1337. Deployed *bool `type:"boolean"`
  1338. // The name of the domain you want to describe.
  1339. DomainName *string `type:"string" required:"true"`
  1340. metadataDescribeAvailabilityOptionsInput `json:"-" xml:"-"`
  1341. }
  1342. type metadataDescribeAvailabilityOptionsInput struct {
  1343. SDKShapeTraits bool `type:"structure"`
  1344. }
  1345. // String returns the string representation
  1346. func (s DescribeAvailabilityOptionsInput) String() string {
  1347. return awsutil.Prettify(s)
  1348. }
  1349. // GoString returns the string representation
  1350. func (s DescribeAvailabilityOptionsInput) GoString() string {
  1351. return s.String()
  1352. }
  1353. // The result of a DescribeAvailabilityOptions request. Indicates whether or
  1354. // not the Multi-AZ option is enabled for the domain specified in the request.
  1355. type DescribeAvailabilityOptionsOutput struct {
  1356. // The availability options configured for the domain. Indicates whether Multi-AZ
  1357. // is enabled for the domain.
  1358. AvailabilityOptions *AvailabilityOptionsStatus `type:"structure"`
  1359. metadataDescribeAvailabilityOptionsOutput `json:"-" xml:"-"`
  1360. }
  1361. type metadataDescribeAvailabilityOptionsOutput struct {
  1362. SDKShapeTraits bool `type:"structure"`
  1363. }
  1364. // String returns the string representation
  1365. func (s DescribeAvailabilityOptionsOutput) String() string {
  1366. return awsutil.Prettify(s)
  1367. }
  1368. // GoString returns the string representation
  1369. func (s DescribeAvailabilityOptionsOutput) GoString() string {
  1370. return s.String()
  1371. }
  1372. // Container for the parameters to the DescribeDomains operation. By default
  1373. // shows the status of all domains. To restrict the response to particular domains,
  1374. // specify the names of the domains you want to describe.
  1375. type DescribeDomainsInput struct {
  1376. // The names of the domains you want to include in the response.
  1377. DomainNames []*string `type:"list"`
  1378. metadataDescribeDomainsInput `json:"-" xml:"-"`
  1379. }
  1380. type metadataDescribeDomainsInput struct {
  1381. SDKShapeTraits bool `type:"structure"`
  1382. }
  1383. // String returns the string representation
  1384. func (s DescribeDomainsInput) String() string {
  1385. return awsutil.Prettify(s)
  1386. }
  1387. // GoString returns the string representation
  1388. func (s DescribeDomainsInput) GoString() string {
  1389. return s.String()
  1390. }
  1391. // The result of a DescribeDomains request. Contains the status of the domains
  1392. // specified in the request or all domains owned by the account.
  1393. type DescribeDomainsOutput struct {
  1394. // A list that contains the status of each requested domain.
  1395. DomainStatusList []*DomainStatus `type:"list" required:"true"`
  1396. metadataDescribeDomainsOutput `json:"-" xml:"-"`
  1397. }
  1398. type metadataDescribeDomainsOutput struct {
  1399. SDKShapeTraits bool `type:"structure"`
  1400. }
  1401. // String returns the string representation
  1402. func (s DescribeDomainsOutput) String() string {
  1403. return awsutil.Prettify(s)
  1404. }
  1405. // GoString returns the string representation
  1406. func (s DescribeDomainsOutput) GoString() string {
  1407. return s.String()
  1408. }
  1409. // Container for the parameters to the DescribeDomains operation. Specifies
  1410. // the name of the domain you want to describe. To restrict the response to
  1411. // particular expressions, specify the names of the expressions you want to
  1412. // describe. To show the active configuration and exclude any pending changes,
  1413. // set the Deployed option to true.
  1414. type DescribeExpressionsInput struct {
  1415. // Whether to display the deployed configuration (true) or include any pending
  1416. // changes (false). Defaults to false.
  1417. Deployed *bool `type:"boolean"`
  1418. // The name of the domain you want to describe.
  1419. DomainName *string `type:"string" required:"true"`
  1420. // Limits the DescribeExpressions response to the specified expressions. If
  1421. // not specified, all expressions are shown.
  1422. ExpressionNames []*string `type:"list"`
  1423. metadataDescribeExpressionsInput `json:"-" xml:"-"`
  1424. }
  1425. type metadataDescribeExpressionsInput struct {
  1426. SDKShapeTraits bool `type:"structure"`
  1427. }
  1428. // String returns the string representation
  1429. func (s DescribeExpressionsInput) String() string {
  1430. return awsutil.Prettify(s)
  1431. }
  1432. // GoString returns the string representation
  1433. func (s DescribeExpressionsInput) GoString() string {
  1434. return s.String()
  1435. }
  1436. // The result of a DescribeExpressions request. Contains the expressions configured
  1437. // for the domain specified in the request.
  1438. type DescribeExpressionsOutput struct {
  1439. // The expressions configured for the domain.
  1440. Expressions []*ExpressionStatus `type:"list" required:"true"`
  1441. metadataDescribeExpressionsOutput `json:"-" xml:"-"`
  1442. }
  1443. type metadataDescribeExpressionsOutput struct {
  1444. SDKShapeTraits bool `type:"structure"`
  1445. }
  1446. // String returns the string representation
  1447. func (s DescribeExpressionsOutput) String() string {
  1448. return awsutil.Prettify(s)
  1449. }
  1450. // GoString returns the string representation
  1451. func (s DescribeExpressionsOutput) GoString() string {
  1452. return s.String()
  1453. }
  1454. // Container for the parameters to the DescribeIndexFields operation. Specifies
  1455. // the name of the domain you want to describe. To restrict the response to
  1456. // particular index fields, specify the names of the index fields you want to
  1457. // describe. To show the active configuration and exclude any pending changes,
  1458. // set the Deployed option to true.
  1459. type DescribeIndexFieldsInput struct {
  1460. // Whether to display the deployed configuration (true) or include any pending
  1461. // changes (false). Defaults to false.
  1462. Deployed *bool `type:"boolean"`
  1463. // The name of the domain you want to describe.
  1464. DomainName *string `type:"string" required:"true"`
  1465. // A list of the index fields you want to describe. If not specified, information
  1466. // is returned for all configured index fields.
  1467. FieldNames []*string `type:"list"`
  1468. metadataDescribeIndexFieldsInput `json:"-" xml:"-"`
  1469. }
  1470. type metadataDescribeIndexFieldsInput struct {
  1471. SDKShapeTraits bool `type:"structure"`
  1472. }
  1473. // String returns the string representation
  1474. func (s DescribeIndexFieldsInput) String() string {
  1475. return awsutil.Prettify(s)
  1476. }
  1477. // GoString returns the string representation
  1478. func (s DescribeIndexFieldsInput) GoString() string {
  1479. return s.String()
  1480. }
  1481. // The result of a DescribeIndexFields request. Contains the index fields configured
  1482. // for the domain specified in the request.
  1483. type DescribeIndexFieldsOutput struct {
  1484. // The index fields configured for the domain.
  1485. IndexFields []*IndexFieldStatus `type:"list" required:"true"`
  1486. metadataDescribeIndexFieldsOutput `json:"-" xml:"-"`
  1487. }
  1488. type metadataDescribeIndexFieldsOutput struct {
  1489. SDKShapeTraits bool `type:"structure"`
  1490. }
  1491. // String returns the string representation
  1492. func (s DescribeIndexFieldsOutput) String() string {
  1493. return awsutil.Prettify(s)
  1494. }
  1495. // GoString returns the string representation
  1496. func (s DescribeIndexFieldsOutput) GoString() string {
  1497. return s.String()
  1498. }
  1499. // Container for the parameters to the DescribeScalingParameters operation.
  1500. // Specifies the name of the domain you want to describe.
  1501. type DescribeScalingParametersInput struct {
  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 `type:"string" required:"true"`
  1507. metadataDescribeScalingParametersInput `json:"-" xml:"-"`
  1508. }
  1509. type metadataDescribeScalingParametersInput struct {
  1510. SDKShapeTraits bool `type:"structure"`
  1511. }
  1512. // String returns the string representation
  1513. func (s DescribeScalingParametersInput) String() string {
  1514. return awsutil.Prettify(s)
  1515. }
  1516. // GoString returns the string representation
  1517. func (s DescribeScalingParametersInput) GoString() string {
  1518. return s.String()
  1519. }
  1520. // The result of a DescribeScalingParameters request. Contains the scaling parameters
  1521. // configured for the domain specified in the request.
  1522. type DescribeScalingParametersOutput struct {
  1523. // The status and configuration of a search domain's scaling parameters.
  1524. ScalingParameters *ScalingParametersStatus `type:"structure" required:"true"`
  1525. metadataDescribeScalingParametersOutput `json:"-" xml:"-"`
  1526. }
  1527. type metadataDescribeScalingParametersOutput struct {
  1528. SDKShapeTraits bool `type:"structure"`
  1529. }
  1530. // String returns the string representation
  1531. func (s DescribeScalingParametersOutput) String() string {
  1532. return awsutil.Prettify(s)
  1533. }
  1534. // GoString returns the string representation
  1535. func (s DescribeScalingParametersOutput) GoString() string {
  1536. return s.String()
  1537. }
  1538. // Container for the parameters to the DescribeServiceAccessPolicies operation.
  1539. // Specifies the name of the domain you want to describe. To show the active
  1540. // configuration and exclude any pending changes, set the Deployed option to
  1541. // true.
  1542. type DescribeServiceAccessPoliciesInput struct {
  1543. // Whether to display the deployed configuration (true) or include any pending
  1544. // changes (false). Defaults to false.
  1545. Deployed *bool `type:"boolean"`
  1546. // The name of the domain you want to describe.
  1547. DomainName *string `type:"string" required:"true"`
  1548. metadataDescribeServiceAccessPoliciesInput `json:"-" xml:"-"`
  1549. }
  1550. type metadataDescribeServiceAccessPoliciesInput struct {
  1551. SDKShapeTraits bool `type:"structure"`
  1552. }
  1553. // String returns the string representation
  1554. func (s DescribeServiceAccessPoliciesInput) String() string {
  1555. return awsutil.Prettify(s)
  1556. }
  1557. // GoString returns the string representation
  1558. func (s DescribeServiceAccessPoliciesInput) GoString() string {
  1559. return s.String()
  1560. }
  1561. // The result of a DescribeServiceAccessPolicies request.
  1562. type DescribeServiceAccessPoliciesOutput struct {
  1563. // The access rules configured for the domain specified in the request.
  1564. AccessPolicies *AccessPoliciesStatus `type:"structure" required:"true"`
  1565. metadataDescribeServiceAccessPoliciesOutput `json:"-" xml:"-"`
  1566. }
  1567. type metadataDescribeServiceAccessPoliciesOutput struct {
  1568. SDKShapeTraits bool `type:"structure"`
  1569. }
  1570. // String returns the string representation
  1571. func (s DescribeServiceAccessPoliciesOutput) String() string {
  1572. return awsutil.Prettify(s)
  1573. }
  1574. // GoString returns the string representation
  1575. func (s DescribeServiceAccessPoliciesOutput) GoString() string {
  1576. return s.String()
  1577. }
  1578. // Container for the parameters to the DescribeSuggester operation. Specifies
  1579. // the name of the domain you want to describe. To restrict the response to
  1580. // particular suggesters, specify the names of the suggesters you want to describe.
  1581. // To show the active configuration and exclude any pending changes, set the
  1582. // Deployed option to true.
  1583. type DescribeSuggestersInput struct {
  1584. // Whether to display the deployed configuration (true) or include any pending
  1585. // changes (false). Defaults to false.
  1586. Deployed *bool `type:"boolean"`
  1587. // The name of the domain you want to describe.
  1588. DomainName *string `type:"string" required:"true"`
  1589. // The suggesters you want to describe.
  1590. SuggesterNames []*string `type:"list"`
  1591. metadataDescribeSuggestersInput `json:"-" xml:"-"`
  1592. }
  1593. type metadataDescribeSuggestersInput struct {
  1594. SDKShapeTraits bool `type:"structure"`
  1595. }
  1596. // String returns the string representation
  1597. func (s DescribeSuggestersInput) String() string {
  1598. return awsutil.Prettify(s)
  1599. }
  1600. // GoString returns the string representation
  1601. func (s DescribeSuggestersInput) GoString() string {
  1602. return s.String()
  1603. }
  1604. // The result of a DescribeSuggesters request.
  1605. type DescribeSuggestersOutput struct {
  1606. // The suggesters configured for the domain specified in the request.
  1607. Suggesters []*SuggesterStatus `type:"list" required:"true"`
  1608. metadataDescribeSuggestersOutput `json:"-" xml:"-"`
  1609. }
  1610. type metadataDescribeSuggestersOutput struct {
  1611. SDKShapeTraits bool `type:"structure"`
  1612. }
  1613. // String returns the string representation
  1614. func (s DescribeSuggestersOutput) String() string {
  1615. return awsutil.Prettify(s)
  1616. }
  1617. // GoString returns the string representation
  1618. func (s DescribeSuggestersOutput) GoString() string {
  1619. return s.String()
  1620. }
  1621. // Options for a search suggester.
  1622. type DocumentSuggesterOptions struct {
  1623. // The level of fuzziness allowed when suggesting matches for a string: none,
  1624. // low, or high. With none, the specified string is treated as an exact prefix.
  1625. // With low, suggestions must differ from the specified string by no more than
  1626. // one character. With high, suggestions can differ by up to two characters.
  1627. // The default is none.
  1628. FuzzyMatching *string `type:"string" enum:"SuggesterFuzzyMatching"`
  1629. // An expression that computes a score for each suggestion to control how they
  1630. // are sorted. The scores are rounded to the nearest integer, with a floor of
  1631. // 0 and a ceiling of 2^31-1. A document's relevance score is not computed for
  1632. // suggestions, so sort expressions cannot reference the _score value. To sort
  1633. // suggestions using a numeric field or existing expression, simply specify
  1634. // the name of the field or expression. If no expression is configured for the
  1635. // suggester, the suggestions are sorted with the closest matches listed first.
  1636. SortExpression *string `type:"string"`
  1637. // The name of the index field you want to use for suggestions.
  1638. SourceField *string `type:"string" required:"true"`
  1639. metadataDocumentSuggesterOptions `json:"-" xml:"-"`
  1640. }
  1641. type metadataDocumentSuggesterOptions struct {
  1642. SDKShapeTraits bool `type:"structure"`
  1643. }
  1644. // String returns the string representation
  1645. func (s DocumentSuggesterOptions) String() string {
  1646. return awsutil.Prettify(s)
  1647. }
  1648. // GoString returns the string representation
  1649. func (s DocumentSuggesterOptions) GoString() string {
  1650. return s.String()
  1651. }
  1652. // The current status of the search domain.
  1653. type DomainStatus struct {
  1654. // The Amazon Resource Name (ARN) of the search domain. See Identifiers for
  1655. // IAM Entities (http://docs.aws.amazon.com/IAM/latest/UserGuide/index.html?Using_Identifiers.html"
  1656. // target="_blank) in Using AWS Identity and Access Management for more information.
  1657. ARN *string `type:"string"`
  1658. // True if the search domain is created. It can take several minutes to initialize
  1659. // a domain when CreateDomain is called. Newly created search domains are returned
  1660. // from DescribeDomains with a false value for Created until domain creation
  1661. // is complete.
  1662. Created *bool `type:"boolean"`
  1663. // True if the search domain has been deleted. The system must clean up resources
  1664. // dedicated to the search domain when DeleteDomain is called. Newly deleted
  1665. // search domains are returned from DescribeDomains with a true value for IsDeleted
  1666. // for several minutes until resource cleanup is complete.
  1667. Deleted *bool `type:"boolean"`
  1668. // The service endpoint for updating documents in a search domain.
  1669. DocService *ServiceEndpoint `type:"structure"`
  1670. // An internally generated unique identifier for a domain.
  1671. DomainId *string `type:"string" required:"true"`
  1672. // A string that represents the name of a domain. Domain names are unique across
  1673. // the domains owned by an account within an AWS region. Domain names start
  1674. // with a letter or number and can contain the following characters: a-z (lowercase),
  1675. // 0-9, and - (hyphen).
  1676. DomainName *string `type:"string" required:"true"`
  1677. Limits *Limits `type:"structure"`
  1678. // True if processing is being done to activate the current domain configuration.
  1679. Processing *bool `type:"boolean"`
  1680. // True if IndexDocuments needs to be called to activate the current domain
  1681. // configuration.
  1682. RequiresIndexDocuments *bool `type:"boolean" required:"true"`
  1683. // The number of search instances that are available to process search requests.
  1684. SearchInstanceCount *int64 `type:"integer"`
  1685. // The instance type that is being used to process search requests.
  1686. SearchInstanceType *string `type:"string"`
  1687. // The number of partitions across which the search index is spread.
  1688. SearchPartitionCount *int64 `type:"integer"`
  1689. // The service endpoint for requesting search results from a search domain.
  1690. SearchService *ServiceEndpoint `type:"structure"`
  1691. metadataDomainStatus `json:"-" xml:"-"`
  1692. }
  1693. type metadataDomainStatus struct {
  1694. SDKShapeTraits bool `type:"structure"`
  1695. }
  1696. // String returns the string representation
  1697. func (s DomainStatus) String() string {
  1698. return awsutil.Prettify(s)
  1699. }
  1700. // GoString returns the string representation
  1701. func (s DomainStatus) GoString() string {
  1702. return s.String()
  1703. }
  1704. // Options for a field that contains an array of double-precision 64-bit floating
  1705. // point values. Present if IndexFieldType specifies the field is of type double-array.
  1706. // All options are enabled by default.
  1707. type DoubleArrayOptions struct {
  1708. // A value to use for the field if the field isn't specified for a document.
  1709. DefaultValue *float64 `type:"double"`
  1710. // Whether facet information can be returned for the field.
  1711. FacetEnabled *bool `type:"boolean"`
  1712. // Whether the contents of the field can be returned in the search results.
  1713. ReturnEnabled *bool `type:"boolean"`
  1714. // Whether the contents of the field are searchable.
  1715. SearchEnabled *bool `type:"boolean"`
  1716. // A list of source fields to map to the field.
  1717. SourceFields *string `type:"string"`
  1718. metadataDoubleArrayOptions `json:"-" xml:"-"`
  1719. }
  1720. type metadataDoubleArrayOptions struct {
  1721. SDKShapeTraits bool `type:"structure"`
  1722. }
  1723. // String returns the string representation
  1724. func (s DoubleArrayOptions) String() string {
  1725. return awsutil.Prettify(s)
  1726. }
  1727. // GoString returns the string representation
  1728. func (s DoubleArrayOptions) GoString() string {
  1729. return s.String()
  1730. }
  1731. // Options for a double-precision 64-bit floating point field. Present if IndexFieldType
  1732. // specifies the field is of type double. All options are enabled by default.
  1733. type DoubleOptions struct {
  1734. // A value to use for the field if the field isn't specified for a document.
  1735. // This can be important if you are using the field in an expression and that
  1736. // field is not present in every document.
  1737. DefaultValue *float64 `type:"double"`
  1738. // Whether facet information can be returned for the field.
  1739. FacetEnabled *bool `type:"boolean"`
  1740. // Whether the contents of the field can be returned in the search results.
  1741. ReturnEnabled *bool `type:"boolean"`
  1742. // Whether the contents of the field are searchable.
  1743. SearchEnabled *bool `type:"boolean"`
  1744. // Whether the field can be used to sort the search results.
  1745. SortEnabled *bool `type:"boolean"`
  1746. // The name of the source field to map to the field.
  1747. SourceField *string `type:"string"`
  1748. metadataDoubleOptions `json:"-" xml:"-"`
  1749. }
  1750. type metadataDoubleOptions struct {
  1751. SDKShapeTraits bool `type:"structure"`
  1752. }
  1753. // String returns the string representation
  1754. func (s DoubleOptions) String() string {
  1755. return awsutil.Prettify(s)
  1756. }
  1757. // GoString returns the string representation
  1758. func (s DoubleOptions) GoString() string {
  1759. return s.String()
  1760. }
  1761. // A named expression that can be evaluated at search time. Can be used to sort
  1762. // the search results, define other expressions, or return computed information
  1763. // in the search results.
  1764. type Expression struct {
  1765. // Names must begin with a letter and can contain the following characters:
  1766. // a-z (lowercase), 0-9, and _ (underscore).
  1767. ExpressionName *string `type:"string" required:"true"`
  1768. // The expression to evaluate for sorting while processing a search request.
  1769. // The Expression syntax is based on JavaScript expressions. For more information,
  1770. // see Configuring Expressions (http://docs.aws.amazon.com/cloudsearch/latest/developerguide/configuring-expressions.html"
  1771. // target="_blank) in the Amazon CloudSearch Developer Guide.
  1772. ExpressionValue *string `type:"string" required:"true"`
  1773. metadataExpression `json:"-" xml:"-"`
  1774. }
  1775. type metadataExpression struct {
  1776. SDKShapeTraits bool `type:"structure"`
  1777. }
  1778. // String returns the string representation
  1779. func (s Expression) String() string {
  1780. return awsutil.Prettify(s)
  1781. }
  1782. // GoString returns the string representation
  1783. func (s Expression) GoString() string {
  1784. return s.String()
  1785. }
  1786. // The value of an Expression and its current status.
  1787. type ExpressionStatus struct {
  1788. // The expression that is evaluated for sorting while processing a search request.
  1789. Options *Expression `type:"structure" required:"true"`
  1790. // The status of domain configuration option.
  1791. Status *OptionStatus `type:"structure" required:"true"`
  1792. metadataExpressionStatus `json:"-" xml:"-"`
  1793. }
  1794. type metadataExpressionStatus struct {
  1795. SDKShapeTraits bool `type:"structure"`
  1796. }
  1797. // String returns the string representation
  1798. func (s ExpressionStatus) String() string {
  1799. return awsutil.Prettify(s)
  1800. }
  1801. // GoString returns the string representation
  1802. func (s ExpressionStatus) GoString() string {
  1803. return s.String()
  1804. }
  1805. // Container for the parameters to the IndexDocuments operation. Specifies the
  1806. // name of the domain you want to re-index.
  1807. type IndexDocumentsInput struct {
  1808. // A string that represents the name of a domain. Domain names are unique across
  1809. // the domains owned by an account within an AWS region. Domain names start
  1810. // with a letter or number and can contain the following characters: a-z (lowercase),
  1811. // 0-9, and - (hyphen).
  1812. DomainName *string `type:"string" required:"true"`
  1813. metadataIndexDocumentsInput `json:"-" xml:"-"`
  1814. }
  1815. type metadataIndexDocumentsInput struct {
  1816. SDKShapeTraits bool `type:"structure"`
  1817. }
  1818. // String returns the string representation
  1819. func (s IndexDocumentsInput) String() string {
  1820. return awsutil.Prettify(s)
  1821. }
  1822. // GoString returns the string representation
  1823. func (s IndexDocumentsInput) GoString() string {
  1824. return s.String()
  1825. }
  1826. // The result of an IndexDocuments request. Contains the status of the indexing
  1827. // operation, including the fields being indexed.
  1828. type IndexDocumentsOutput struct {
  1829. // The names of the fields that are currently being indexed.
  1830. FieldNames []*string `type:"list"`
  1831. metadataIndexDocumentsOutput `json:"-" xml:"-"`
  1832. }
  1833. type metadataIndexDocumentsOutput struct {
  1834. SDKShapeTraits bool `type:"structure"`
  1835. }
  1836. // String returns the string representation
  1837. func (s IndexDocumentsOutput) String() string {
  1838. return awsutil.Prettify(s)
  1839. }
  1840. // GoString returns the string representation
  1841. func (s IndexDocumentsOutput) GoString() string {
  1842. return s.String()
  1843. }
  1844. // Configuration information for a field in the index, including its name, type,
  1845. // and options. The supported options depend on the IndexFieldType.
  1846. type IndexField struct {
  1847. // Options for a field that contains an array of dates. Present if IndexFieldType
  1848. // specifies the field is of type date-array. All options are enabled by default.
  1849. DateArrayOptions *DateArrayOptions `type:"structure"`
  1850. // Options for a date field. Dates and times are specified in UTC (Coordinated
  1851. // Universal Time) according to IETF RFC3339: yyyy-mm-ddT00:00:00Z. Present
  1852. // if IndexFieldType specifies the field is of type date. All options are enabled
  1853. // by default.
  1854. DateOptions *DateOptions `type:"structure"`
  1855. // Options for a field that contains an array of double-precision 64-bit floating
  1856. // point values. Present if IndexFieldType specifies the field is of type double-array.
  1857. // All options are enabled by default.
  1858. DoubleArrayOptions *DoubleArrayOptions `type:"structure"`
  1859. // Options for a double-precision 64-bit floating point field. Present if IndexFieldType
  1860. // specifies the field is of type double. All options are enabled by default.
  1861. DoubleOptions *DoubleOptions `type:"structure"`
  1862. // A string that represents the name of an index field. CloudSearch supports
  1863. // regular index fields as well as dynamic fields. A dynamic field's name defines
  1864. // a pattern that begins or ends with a wildcard. Any document fields that don't
  1865. // map to a regular index field but do match a dynamic field's pattern are configured
  1866. // with the dynamic field's indexing options.
  1867. //
  1868. // Regular field names begin with a letter and can contain the following characters:
  1869. // a-z (lowercase), 0-9, and _ (underscore). Dynamic field names must begin
  1870. // or end with a wildcard (*). The wildcard can also be the only character in
  1871. // a dynamic field name. Multiple wildcards, and wildcards embedded within a
  1872. // string are not supported.
  1873. //
  1874. // The name score is reserved and cannot be used as a field name. To reference
  1875. // a document's ID, you can use the name _id.
  1876. IndexFieldName *string `type:"string" required:"true"`
  1877. // The type of field. The valid options for a field depend on the field type.
  1878. // For more information about the supported field types, see Configuring Index
  1879. // Fields (http://docs.aws.amazon.com/cloudsearch/latest/developerguide/configuring-index-fields.html"
  1880. // target="_blank) in the Amazon CloudSearch Developer Guide.
  1881. IndexFieldType *string `type:"string" required:"true" enum:"IndexFieldType"`
  1882. // Options for a field that contains an array of 64-bit signed integers. Present
  1883. // if IndexFieldType specifies the field is of type int-array. All options are
  1884. // enabled by default.
  1885. IntArrayOptions *IntArrayOptions `type:"structure"`
  1886. // Options for a 64-bit signed integer field. Present if IndexFieldType specifies
  1887. // the field is of type int. All options are enabled by default.
  1888. IntOptions *IntOptions `type:"structure"`
  1889. // Options for a latlon field. A latlon field contains a location stored as
  1890. // a latitude and longitude value pair. Present if IndexFieldType specifies
  1891. // the field is of type latlon. All options are enabled by default.
  1892. LatLonOptions *LatLonOptions `type:"structure"`
  1893. // Options for a field that contains an array of literal strings. Present if
  1894. // IndexFieldType specifies the field is of type literal-array. All options
  1895. // are enabled by default.
  1896. LiteralArrayOptions *LiteralArrayOptions `type:"structure"`
  1897. // Options for literal field. Present if IndexFieldType specifies the field
  1898. // is of type literal. All options are enabled by default.
  1899. LiteralOptions *LiteralOptions `type:"structure"`
  1900. // Options for a field that contains an array of text strings. Present if IndexFieldType
  1901. // specifies the field is of type text-array. A text-array field is always searchable.
  1902. // All options are enabled by default.
  1903. TextArrayOptions *TextArrayOptions `type:"structure"`
  1904. // Options for text field. Present if IndexFieldType specifies the field is
  1905. // of type text. A text field is always searchable. All options are enabled
  1906. // by default.
  1907. TextOptions *TextOptions `type:"structure"`
  1908. metadataIndexField `json:"-" xml:"-"`
  1909. }
  1910. type metadataIndexField struct {
  1911. SDKShapeTraits bool `type:"structure"`
  1912. }
  1913. // String returns the string representation
  1914. func (s IndexField) String() string {
  1915. return awsutil.Prettify(s)
  1916. }
  1917. // GoString returns the string representation
  1918. func (s IndexField) GoString() string {
  1919. return s.String()
  1920. }
  1921. // The value of an IndexField and its current status.
  1922. type IndexFieldStatus struct {
  1923. // Configuration information for a field in the index, including its name, type,
  1924. // and options. The supported options depend on the IndexFieldType.
  1925. Options *IndexField `type:"structure" required:"true"`
  1926. // The status of domain configuration option.
  1927. Status *OptionStatus `type:"structure" required:"true"`
  1928. metadataIndexFieldStatus `json:"-" xml:"-"`
  1929. }
  1930. type metadataIndexFieldStatus struct {
  1931. SDKShapeTraits bool `type:"structure"`
  1932. }
  1933. // String returns the string representation
  1934. func (s IndexFieldStatus) String() string {
  1935. return awsutil.Prettify(s)
  1936. }
  1937. // GoString returns the string representation
  1938. func (s IndexFieldStatus) GoString() string {
  1939. return s.String()
  1940. }
  1941. // Options for a field that contains an array of 64-bit signed integers. Present
  1942. // if IndexFieldType specifies the field is of type int-array. All options are
  1943. // enabled by default.
  1944. type IntArrayOptions struct {
  1945. // A value to use for the field if the field isn't specified for a document.
  1946. DefaultValue *int64 `type:"long"`
  1947. // Whether facet information can be returned for the field.
  1948. FacetEnabled *bool `type:"boolean"`
  1949. // Whether the contents of the field can be returned in the search results.
  1950. ReturnEnabled *bool `type:"boolean"`
  1951. // Whether the contents of the field are searchable.
  1952. SearchEnabled *bool `type:"boolean"`
  1953. // A list of source fields to map to the field.
  1954. SourceFields *string `type:"string"`
  1955. metadataIntArrayOptions `json:"-" xml:"-"`
  1956. }
  1957. type metadataIntArrayOptions struct {
  1958. SDKShapeTraits bool `type:"structure"`
  1959. }
  1960. // String returns the string representation
  1961. func (s IntArrayOptions) String() string {
  1962. return awsutil.Prettify(s)
  1963. }
  1964. // GoString returns the string representation
  1965. func (s IntArrayOptions) GoString() string {
  1966. return s.String()
  1967. }
  1968. // Options for a 64-bit signed integer field. Present if IndexFieldType specifies
  1969. // the field is of type int. All options are enabled by default.
  1970. type IntOptions struct {
  1971. // A value to use for the field if the field isn't specified for a document.
  1972. // This can be important if you are using the field in an expression and that
  1973. // field is not present in every document.
  1974. DefaultValue *int64 `type:"long"`
  1975. // Whether facet information can be returned for the field.
  1976. FacetEnabled *bool `type:"boolean"`
  1977. // Whether the contents of the field can be returned in the search results.
  1978. ReturnEnabled *bool `type:"boolean"`
  1979. // Whether the contents of the field are searchable.
  1980. SearchEnabled *bool `type:"boolean"`
  1981. // Whether the field can be used to sort the search results.
  1982. SortEnabled *bool `type:"boolean"`
  1983. // The name of the source field to map to the field.
  1984. SourceField *string `type:"string"`
  1985. metadataIntOptions `json:"-" xml:"-"`
  1986. }
  1987. type metadataIntOptions struct {
  1988. SDKShapeTraits bool `type:"structure"`
  1989. }
  1990. // String returns the string representation
  1991. func (s IntOptions) String() string {
  1992. return awsutil.Prettify(s)
  1993. }
  1994. // GoString returns the string representation
  1995. func (s IntOptions) GoString() string {
  1996. return s.String()
  1997. }
  1998. // Options for a latlon field. A latlon field contains a location stored as
  1999. // a latitude and longitude value pair. Present if IndexFieldType specifies
  2000. // the field is of type latlon. All options are enabled by default.
  2001. type LatLonOptions struct {
  2002. // A value to use for the field if the field isn't specified for a document.
  2003. DefaultValue *string `type:"string"`
  2004. // Whether facet information can be returned for the field.
  2005. FacetEnabled *bool `type:"boolean"`
  2006. // Whether the contents of the field can be returned in the search results.
  2007. ReturnEnabled *bool `type:"boolean"`
  2008. // Whether the contents of the field are searchable.
  2009. SearchEnabled *bool `type:"boolean"`
  2010. // Whether the field can be used to sort the search results.
  2011. SortEnabled *bool `type:"boolean"`
  2012. // A string that represents the name of an index field. CloudSearch supports
  2013. // regular index fields as well as dynamic fields. A dynamic field's name defines
  2014. // a pattern that begins or ends with a wildcard. Any document fields that don't
  2015. // map to a regular index field but do match a dynamic field's pattern are configured
  2016. // with the dynamic field's indexing options.
  2017. //
  2018. // Regular field names begin with a letter and can contain the following characters:
  2019. // a-z (lowercase), 0-9, and _ (underscore). Dynamic field names must begin
  2020. // or end with a wildcard (*). The wildcard can also be the only character in
  2021. // a dynamic field name. Multiple wildcards, and wildcards embedded within a
  2022. // string are not supported.
  2023. //
  2024. // The name score is reserved and cannot be used as a field name. To reference
  2025. // a document's ID, you can use the name _id.
  2026. SourceField *string `type:"string"`
  2027. metadataLatLonOptions `json:"-" xml:"-"`
  2028. }
  2029. type metadataLatLonOptions struct {
  2030. SDKShapeTraits bool `type:"structure"`
  2031. }
  2032. // String returns the string representation
  2033. func (s LatLonOptions) String() string {
  2034. return awsutil.Prettify(s)
  2035. }
  2036. // GoString returns the string representation
  2037. func (s LatLonOptions) GoString() string {
  2038. return s.String()
  2039. }
  2040. type Limits struct {
  2041. MaximumPartitionCount *int64 `type:"integer" required:"true"`
  2042. MaximumReplicationCount *int64 `type:"integer" required:"true"`
  2043. metadataLimits `json:"-" xml:"-"`
  2044. }
  2045. type metadataLimits struct {
  2046. SDKShapeTraits bool `type:"structure"`
  2047. }
  2048. // String returns the string representation
  2049. func (s Limits) String() string {
  2050. return awsutil.Prettify(s)
  2051. }
  2052. // GoString returns the string representation
  2053. func (s Limits) GoString() string {
  2054. return s.String()
  2055. }
  2056. type ListDomainNamesInput struct {
  2057. metadataListDomainNamesInput `json:"-" xml:"-"`
  2058. }
  2059. type metadataListDomainNamesInput struct {
  2060. SDKShapeTraits bool `type:"structure"`
  2061. }
  2062. // String returns the string representation
  2063. func (s ListDomainNamesInput) String() string {
  2064. return awsutil.Prettify(s)
  2065. }
  2066. // GoString returns the string representation
  2067. func (s ListDomainNamesInput) GoString() string {
  2068. return s.String()
  2069. }
  2070. // The result of a ListDomainNames request. Contains a list of the domains owned
  2071. // by an account.
  2072. type ListDomainNamesOutput struct {
  2073. // The names of the search domains owned by an account.
  2074. DomainNames map[string]*string `type:"map"`
  2075. metadataListDomainNamesOutput `json:"-" xml:"-"`
  2076. }
  2077. type metadataListDomainNamesOutput struct {
  2078. SDKShapeTraits bool `type:"structure"`
  2079. }
  2080. // String returns the string representation
  2081. func (s ListDomainNamesOutput) String() string {
  2082. return awsutil.Prettify(s)
  2083. }
  2084. // GoString returns the string representation
  2085. func (s ListDomainNamesOutput) GoString() string {
  2086. return s.String()
  2087. }
  2088. // Options for a field that contains an array of literal strings. Present if
  2089. // IndexFieldType specifies the field is of type literal-array. All options
  2090. // are enabled by default.
  2091. type LiteralArrayOptions struct {
  2092. // A value to use for the field if the field isn't specified for a document.
  2093. DefaultValue *string `type:"string"`
  2094. // Whether facet information can be returned for the field.
  2095. FacetEnabled *bool `type:"boolean"`
  2096. // Whether the contents of the field can be returned in the search results.
  2097. ReturnEnabled *bool `type:"boolean"`
  2098. // Whether the contents of the field are searchable.
  2099. SearchEnabled *bool `type:"boolean"`
  2100. // A list of source fields to map to the field.
  2101. SourceFields *string `type:"string"`
  2102. metadataLiteralArrayOptions `json:"-" xml:"-"`
  2103. }
  2104. type metadataLiteralArrayOptions struct {
  2105. SDKShapeTraits bool `type:"structure"`
  2106. }
  2107. // String returns the string representation
  2108. func (s LiteralArrayOptions) String() string {
  2109. return awsutil.Prettify(s)
  2110. }
  2111. // GoString returns the string representation
  2112. func (s LiteralArrayOptions) GoString() string {
  2113. return s.String()
  2114. }
  2115. // Options for literal field. Present if IndexFieldType specifies the field
  2116. // is of type literal. All options are enabled by default.
  2117. type LiteralOptions struct {
  2118. // A value to use for the field if the field isn't specified for a document.
  2119. DefaultValue *string `type:"string"`
  2120. // Whether facet information can be returned for the field.
  2121. FacetEnabled *bool `type:"boolean"`
  2122. // Whether the contents of the field can be returned in the search results.
  2123. ReturnEnabled *bool `type:"boolean"`
  2124. // Whether the contents of the field are searchable.
  2125. SearchEnabled *bool `type:"boolean"`
  2126. // Whether the field can be used to sort the search results.
  2127. SortEnabled *bool `type:"boolean"`
  2128. // A string that represents the name of an index field. CloudSearch supports
  2129. // regular index fields as well as dynamic fields. A dynamic field's name defines
  2130. // a pattern that begins or ends with a wildcard. Any document fields that don't
  2131. // map to a regular index field but do match a dynamic field's pattern are configured
  2132. // with the dynamic field's indexing options.
  2133. //
  2134. // Regular field names begin with a letter and can contain the following characters:
  2135. // a-z (lowercase), 0-9, and _ (underscore). Dynamic field names must begin
  2136. // or end with a wildcard (*). The wildcard can also be the only character in
  2137. // a dynamic field name. Multiple wildcards, and wildcards embedded within a
  2138. // string are not supported.
  2139. //
  2140. // The name score is reserved and cannot be used as a field name. To reference
  2141. // a document's ID, you can use the name _id.
  2142. SourceField *string `type:"string"`
  2143. metadataLiteralOptions `json:"-" xml:"-"`
  2144. }
  2145. type metadataLiteralOptions struct {
  2146. SDKShapeTraits bool `type:"structure"`
  2147. }
  2148. // String returns the string representation
  2149. func (s LiteralOptions) String() string {
  2150. return awsutil.Prettify(s)
  2151. }
  2152. // GoString returns the string representation
  2153. func (s LiteralOptions) GoString() string {
  2154. return s.String()
  2155. }
  2156. // The status of domain configuration option.
  2157. type OptionStatus struct {
  2158. // A timestamp for when this option was created.
  2159. CreationDate *time.Time `type:"timestamp" timestampFormat:"iso8601" required:"true"`
  2160. // Indicates that the option will be deleted once processing is complete.
  2161. PendingDeletion *bool `type:"boolean"`
  2162. // The state of processing a change to an option. Possible values:
  2163. //
  2164. // RequiresIndexDocuments: the option's latest value will not be deployed
  2165. // until IndexDocuments has been called and indexing is complete. Processing:
  2166. // the option's latest value is in the process of being activated. Active:
  2167. // the option's latest value is completely deployed. FailedToValidate: the
  2168. // option value is not compatible with the domain's data and cannot be used
  2169. // to index the data. You must either modify the option value or update or remove
  2170. // the incompatible documents.
  2171. State *string `type:"string" required:"true" enum:"OptionState"`
  2172. // A timestamp for when this option was last updated.
  2173. UpdateDate *time.Time `type:"timestamp" timestampFormat:"iso8601" required:"true"`
  2174. // A unique integer that indicates when this option was last updated.
  2175. UpdateVersion *int64 `type:"integer"`
  2176. metadataOptionStatus `json:"-" xml:"-"`
  2177. }
  2178. type metadataOptionStatus struct {
  2179. SDKShapeTraits bool `type:"structure"`
  2180. }
  2181. // String returns the string representation
  2182. func (s OptionStatus) String() string {
  2183. return awsutil.Prettify(s)
  2184. }
  2185. // GoString returns the string representation
  2186. func (s OptionStatus) GoString() string {
  2187. return s.String()
  2188. }
  2189. // The desired instance type and desired number of replicas of each index partition.
  2190. type ScalingParameters struct {
  2191. // The instance type that you want to preconfigure for your domain. For example,
  2192. // search.m1.small.
  2193. DesiredInstanceType *string `type:"string" enum:"PartitionInstanceType"`
  2194. // The number of partitions you want to preconfigure for your domain. Only valid
  2195. // when you select m2.2xlarge as the desired instance type.
  2196. DesiredPartitionCount *int64 `type:"integer"`
  2197. // The number of replicas you want to preconfigure for each index partition.
  2198. DesiredReplicationCount *int64 `type:"integer"`
  2199. metadataScalingParameters `json:"-" xml:"-"`
  2200. }
  2201. type metadataScalingParameters struct {
  2202. SDKShapeTraits bool `type:"structure"`
  2203. }
  2204. // String returns the string representation
  2205. func (s ScalingParameters) String() string {
  2206. return awsutil.Prettify(s)
  2207. }
  2208. // GoString returns the string representation
  2209. func (s ScalingParameters) GoString() string {
  2210. return s.String()
  2211. }
  2212. // The status and configuration of a search domain's scaling parameters.
  2213. type ScalingParametersStatus struct {
  2214. // The desired instance type and desired number of replicas of each index partition.
  2215. Options *ScalingParameters `type:"structure" required:"true"`
  2216. // The status of domain configuration option.
  2217. Status *OptionStatus `type:"structure" required:"true"`
  2218. metadataScalingParametersStatus `json:"-" xml:"-"`
  2219. }
  2220. type metadataScalingParametersStatus struct {
  2221. SDKShapeTraits bool `type:"structure"`
  2222. }
  2223. // String returns the string representation
  2224. func (s ScalingParametersStatus) String() string {
  2225. return awsutil.Prettify(s)
  2226. }
  2227. // GoString returns the string representation
  2228. func (s ScalingParametersStatus) GoString() string {
  2229. return s.String()
  2230. }
  2231. // The endpoint to which service requests can be submitted.
  2232. type ServiceEndpoint struct {
  2233. // The endpoint to which service requests can be submitted. For example, search-imdb-movies-oopcnjfn6ugofer3zx5iadxxca.eu-west-1.cloudsearch.amazonaws.com
  2234. // or doc-imdb-movies-oopcnjfn6ugofer3zx5iadxxca.eu-west-1.cloudsearch.amazonaws.com.
  2235. Endpoint *string `type:"string"`
  2236. metadataServiceEndpoint `json:"-" xml:"-"`
  2237. }
  2238. type metadataServiceEndpoint struct {
  2239. SDKShapeTraits bool `type:"structure"`
  2240. }
  2241. // String returns the string representation
  2242. func (s ServiceEndpoint) String() string {
  2243. return awsutil.Prettify(s)
  2244. }
  2245. // GoString returns the string representation
  2246. func (s ServiceEndpoint) GoString() string {
  2247. return s.String()
  2248. }
  2249. // Configuration information for a search suggester. Each suggester has a unique
  2250. // name and specifies the text field you want to use for suggestions. The following
  2251. // options can be configured for a suggester: FuzzyMatching, SortExpression.
  2252. type Suggester struct {
  2253. // Options for a search suggester.
  2254. DocumentSuggesterOptions *DocumentSuggesterOptions `type:"structure" required:"true"`
  2255. // Names must begin with a letter and can contain the following characters:
  2256. // a-z (lowercase), 0-9, and _ (underscore).
  2257. SuggesterName *string `type:"string" required:"true"`
  2258. metadataSuggester `json:"-" xml:"-"`
  2259. }
  2260. type metadataSuggester struct {
  2261. SDKShapeTraits bool `type:"structure"`
  2262. }
  2263. // String returns the string representation
  2264. func (s Suggester) String() string {
  2265. return awsutil.Prettify(s)
  2266. }
  2267. // GoString returns the string representation
  2268. func (s Suggester) GoString() string {
  2269. return s.String()
  2270. }
  2271. // The value of a Suggester and its current status.
  2272. type SuggesterStatus struct {
  2273. // Configuration information for a search suggester. Each suggester has a unique
  2274. // name and specifies the text field you want to use for suggestions. The following
  2275. // options can be configured for a suggester: FuzzyMatching, SortExpression.
  2276. Options *Suggester `type:"structure" required:"true"`
  2277. // The status of domain configuration option.
  2278. Status *OptionStatus `type:"structure" required:"true"`
  2279. metadataSuggesterStatus `json:"-" xml:"-"`
  2280. }
  2281. type metadataSuggesterStatus struct {
  2282. SDKShapeTraits bool `type:"structure"`
  2283. }
  2284. // String returns the string representation
  2285. func (s SuggesterStatus) String() string {
  2286. return awsutil.Prettify(s)
  2287. }
  2288. // GoString returns the string representation
  2289. func (s SuggesterStatus) GoString() string {
  2290. return s.String()
  2291. }
  2292. // Options for a field that contains an array of text strings. Present if IndexFieldType
  2293. // specifies the field is of type text-array. A text-array field is always searchable.
  2294. // All options are enabled by default.
  2295. type TextArrayOptions struct {
  2296. // The name of an analysis scheme for a text-array field.
  2297. AnalysisScheme *string `type:"string"`
  2298. // A value to use for the field if the field isn't specified for a document.
  2299. DefaultValue *string `type:"string"`
  2300. // Whether highlights can be returned for the field.
  2301. HighlightEnabled *bool `type:"boolean"`
  2302. // Whether the contents of the field can be returned in the search results.
  2303. ReturnEnabled *bool `type:"boolean"`
  2304. // A list of source fields to map to the field.
  2305. SourceFields *string `type:"string"`
  2306. metadataTextArrayOptions `json:"-" xml:"-"`
  2307. }
  2308. type metadataTextArrayOptions struct {
  2309. SDKShapeTraits bool `type:"structure"`
  2310. }
  2311. // String returns the string representation
  2312. func (s TextArrayOptions) String() string {
  2313. return awsutil.Prettify(s)
  2314. }
  2315. // GoString returns the string representation
  2316. func (s TextArrayOptions) GoString() string {
  2317. return s.String()
  2318. }
  2319. // Options for text field. Present if IndexFieldType specifies the field is
  2320. // of type text. A text field is always searchable. All options are enabled
  2321. // by default.
  2322. type TextOptions struct {
  2323. // The name of an analysis scheme for a text field.
  2324. AnalysisScheme *string `type:"string"`
  2325. // A value to use for the field if the field isn't specified for a document.
  2326. DefaultValue *string `type:"string"`
  2327. // Whether highlights can be returned for the field.
  2328. HighlightEnabled *bool `type:"boolean"`
  2329. // Whether the contents of the field can be returned in the search results.
  2330. ReturnEnabled *bool `type:"boolean"`
  2331. // Whether the field can be used to sort the search results.
  2332. SortEnabled *bool `type:"boolean"`
  2333. // A string that represents the name of an index field. CloudSearch supports
  2334. // regular index fields as well as dynamic fields. A dynamic field's name defines
  2335. // a pattern that begins or ends with a wildcard. Any document fields that don't
  2336. // map to a regular index field but do match a dynamic field's pattern are configured
  2337. // with the dynamic field's indexing options.
  2338. //
  2339. // Regular field names begin with a letter and can contain the following characters:
  2340. // a-z (lowercase), 0-9, and _ (underscore). Dynamic field names must begin
  2341. // or end with a wildcard (*). The wildcard can also be the only character in
  2342. // a dynamic field name. Multiple wildcards, and wildcards embedded within a
  2343. // string are not supported.
  2344. //
  2345. // The name score is reserved and cannot be used as a field name. To reference
  2346. // a document's ID, you can use the name _id.
  2347. SourceField *string `type:"string"`
  2348. metadataTextOptions `json:"-" xml:"-"`
  2349. }
  2350. type metadataTextOptions struct {
  2351. SDKShapeTraits bool `type:"structure"`
  2352. }
  2353. // String returns the string representation
  2354. func (s TextOptions) String() string {
  2355. return awsutil.Prettify(s)
  2356. }
  2357. // GoString returns the string representation
  2358. func (s TextOptions) GoString() string {
  2359. return s.String()
  2360. }
  2361. // Container for the parameters to the UpdateAvailabilityOptions operation.
  2362. // Specifies the name of the domain you want to update and the Multi-AZ availability
  2363. // option.
  2364. type UpdateAvailabilityOptionsInput struct {
  2365. // A string that represents the name of a domain. Domain names are unique across
  2366. // the domains owned by an account within an AWS region. Domain names start
  2367. // with a letter or number and can contain the following characters: a-z (lowercase),
  2368. // 0-9, and - (hyphen).
  2369. DomainName *string `type:"string" required:"true"`
  2370. // You expand an existing search domain to a second Availability Zone by setting
  2371. // the Multi-AZ option to true. Similarly, you can turn off the Multi-AZ option
  2372. // to downgrade the domain to a single Availability Zone by setting the Multi-AZ
  2373. // option to false.
  2374. MultiAZ *bool `type:"boolean" required:"true"`
  2375. metadataUpdateAvailabilityOptionsInput `json:"-" xml:"-"`
  2376. }
  2377. type metadataUpdateAvailabilityOptionsInput struct {
  2378. SDKShapeTraits bool `type:"structure"`
  2379. }
  2380. // String returns the string representation
  2381. func (s UpdateAvailabilityOptionsInput) String() string {
  2382. return awsutil.Prettify(s)
  2383. }
  2384. // GoString returns the string representation
  2385. func (s UpdateAvailabilityOptionsInput) GoString() string {
  2386. return s.String()
  2387. }
  2388. // The result of a UpdateAvailabilityOptions request. Contains the status of
  2389. // the domain's availability options.
  2390. type UpdateAvailabilityOptionsOutput struct {
  2391. // The newly-configured availability options. Indicates whether Multi-AZ is
  2392. // enabled for the domain.
  2393. AvailabilityOptions *AvailabilityOptionsStatus `type:"structure"`
  2394. metadataUpdateAvailabilityOptionsOutput `json:"-" xml:"-"`
  2395. }
  2396. type metadataUpdateAvailabilityOptionsOutput struct {
  2397. SDKShapeTraits bool `type:"structure"`
  2398. }
  2399. // String returns the string representation
  2400. func (s UpdateAvailabilityOptionsOutput) String() string {
  2401. return awsutil.Prettify(s)
  2402. }
  2403. // GoString returns the string representation
  2404. func (s UpdateAvailabilityOptionsOutput) GoString() string {
  2405. return s.String()
  2406. }
  2407. // Container for the parameters to the UpdateScalingParameters operation. Specifies
  2408. // the name of the domain you want to update and the scaling parameters you
  2409. // want to configure.
  2410. type UpdateScalingParametersInput struct {
  2411. // A string that represents the name of a domain. Domain names are unique across
  2412. // the domains owned by an account within an AWS region. Domain names start
  2413. // with a letter or number and can contain the following characters: a-z (lowercase),
  2414. // 0-9, and - (hyphen).
  2415. DomainName *string `type:"string" required:"true"`
  2416. // The desired instance type and desired number of replicas of each index partition.
  2417. ScalingParameters *ScalingParameters `type:"structure" required:"true"`
  2418. metadataUpdateScalingParametersInput `json:"-" xml:"-"`
  2419. }
  2420. type metadataUpdateScalingParametersInput struct {
  2421. SDKShapeTraits bool `type:"structure"`
  2422. }
  2423. // String returns the string representation
  2424. func (s UpdateScalingParametersInput) String() string {
  2425. return awsutil.Prettify(s)
  2426. }
  2427. // GoString returns the string representation
  2428. func (s UpdateScalingParametersInput) GoString() string {
  2429. return s.String()
  2430. }
  2431. // The result of a UpdateScalingParameters request. Contains the status of the
  2432. // newly-configured scaling parameters.
  2433. type UpdateScalingParametersOutput struct {
  2434. // The status and configuration of a search domain's scaling parameters.
  2435. ScalingParameters *ScalingParametersStatus `type:"structure" required:"true"`
  2436. metadataUpdateScalingParametersOutput `json:"-" xml:"-"`
  2437. }
  2438. type metadataUpdateScalingParametersOutput struct {
  2439. SDKShapeTraits bool `type:"structure"`
  2440. }
  2441. // String returns the string representation
  2442. func (s UpdateScalingParametersOutput) String() string {
  2443. return awsutil.Prettify(s)
  2444. }
  2445. // GoString returns the string representation
  2446. func (s UpdateScalingParametersOutput) GoString() string {
  2447. return s.String()
  2448. }
  2449. // Container for the parameters to the UpdateServiceAccessPolicies operation.
  2450. // Specifies the name of the domain you want to update and the access rules
  2451. // you want to configure.
  2452. type UpdateServiceAccessPoliciesInput struct {
  2453. // The access rules you want to configure. These rules replace any existing
  2454. // rules.
  2455. AccessPolicies *string `type:"string" required:"true"`
  2456. // A string that represents the name of a domain. Domain names are unique across
  2457. // the domains owned by an account within an AWS region. Domain names start
  2458. // with a letter or number and can contain the following characters: a-z (lowercase),
  2459. // 0-9, and - (hyphen).
  2460. DomainName *string `type:"string" required:"true"`
  2461. metadataUpdateServiceAccessPoliciesInput `json:"-" xml:"-"`
  2462. }
  2463. type metadataUpdateServiceAccessPoliciesInput struct {
  2464. SDKShapeTraits bool `type:"structure"`
  2465. }
  2466. // String returns the string representation
  2467. func (s UpdateServiceAccessPoliciesInput) String() string {
  2468. return awsutil.Prettify(s)
  2469. }
  2470. // GoString returns the string representation
  2471. func (s UpdateServiceAccessPoliciesInput) GoString() string {
  2472. return s.String()
  2473. }
  2474. // The result of an UpdateServiceAccessPolicies request. Contains the new access
  2475. // policies.
  2476. type UpdateServiceAccessPoliciesOutput struct {
  2477. // The access rules configured for the domain.
  2478. AccessPolicies *AccessPoliciesStatus `type:"structure" required:"true"`
  2479. metadataUpdateServiceAccessPoliciesOutput `json:"-" xml:"-"`
  2480. }
  2481. type metadataUpdateServiceAccessPoliciesOutput struct {
  2482. SDKShapeTraits bool `type:"structure"`
  2483. }
  2484. // String returns the string representation
  2485. func (s UpdateServiceAccessPoliciesOutput) String() string {
  2486. return awsutil.Prettify(s)
  2487. }
  2488. // GoString returns the string representation
  2489. func (s UpdateServiceAccessPoliciesOutput) GoString() string {
  2490. return s.String()
  2491. }
  2492. const (
  2493. // @enum AlgorithmicStemming
  2494. AlgorithmicStemmingNone = "none"
  2495. // @enum AlgorithmicStemming
  2496. AlgorithmicStemmingMinimal = "minimal"
  2497. // @enum AlgorithmicStemming
  2498. AlgorithmicStemmingLight = "light"
  2499. // @enum AlgorithmicStemming
  2500. AlgorithmicStemmingFull = "full"
  2501. )
  2502. // An IETF RFC 4646 (http://tools.ietf.org/html/rfc4646" target="_blank) language
  2503. // code or mul for multiple languages.
  2504. const (
  2505. // @enum AnalysisSchemeLanguage
  2506. AnalysisSchemeLanguageAr = "ar"
  2507. // @enum AnalysisSchemeLanguage
  2508. AnalysisSchemeLanguageBg = "bg"
  2509. // @enum AnalysisSchemeLanguage
  2510. AnalysisSchemeLanguageCa = "ca"
  2511. // @enum AnalysisSchemeLanguage
  2512. AnalysisSchemeLanguageCs = "cs"
  2513. // @enum AnalysisSchemeLanguage
  2514. AnalysisSchemeLanguageDa = "da"
  2515. // @enum AnalysisSchemeLanguage
  2516. AnalysisSchemeLanguageDe = "de"
  2517. // @enum AnalysisSchemeLanguage
  2518. AnalysisSchemeLanguageEl = "el"
  2519. // @enum AnalysisSchemeLanguage
  2520. AnalysisSchemeLanguageEn = "en"
  2521. // @enum AnalysisSchemeLanguage
  2522. AnalysisSchemeLanguageEs = "es"
  2523. // @enum AnalysisSchemeLanguage
  2524. AnalysisSchemeLanguageEu = "eu"
  2525. // @enum AnalysisSchemeLanguage
  2526. AnalysisSchemeLanguageFa = "fa"
  2527. // @enum AnalysisSchemeLanguage
  2528. AnalysisSchemeLanguageFi = "fi"
  2529. // @enum AnalysisSchemeLanguage
  2530. AnalysisSchemeLanguageFr = "fr"
  2531. // @enum AnalysisSchemeLanguage
  2532. AnalysisSchemeLanguageGa = "ga"
  2533. // @enum AnalysisSchemeLanguage
  2534. AnalysisSchemeLanguageGl = "gl"
  2535. // @enum AnalysisSchemeLanguage
  2536. AnalysisSchemeLanguageHe = "he"
  2537. // @enum AnalysisSchemeLanguage
  2538. AnalysisSchemeLanguageHi = "hi"
  2539. // @enum AnalysisSchemeLanguage
  2540. AnalysisSchemeLanguageHu = "hu"
  2541. // @enum AnalysisSchemeLanguage
  2542. AnalysisSchemeLanguageHy = "hy"
  2543. // @enum AnalysisSchemeLanguage
  2544. AnalysisSchemeLanguageId = "id"
  2545. // @enum AnalysisSchemeLanguage
  2546. AnalysisSchemeLanguageIt = "it"
  2547. // @enum AnalysisSchemeLanguage
  2548. AnalysisSchemeLanguageJa = "ja"
  2549. // @enum AnalysisSchemeLanguage
  2550. AnalysisSchemeLanguageKo = "ko"
  2551. // @enum AnalysisSchemeLanguage
  2552. AnalysisSchemeLanguageLv = "lv"
  2553. // @enum AnalysisSchemeLanguage
  2554. AnalysisSchemeLanguageMul = "mul"
  2555. // @enum AnalysisSchemeLanguage
  2556. AnalysisSchemeLanguageNl = "nl"
  2557. // @enum AnalysisSchemeLanguage
  2558. AnalysisSchemeLanguageNo = "no"
  2559. // @enum AnalysisSchemeLanguage
  2560. AnalysisSchemeLanguagePt = "pt"
  2561. // @enum AnalysisSchemeLanguage
  2562. AnalysisSchemeLanguageRo = "ro"
  2563. // @enum AnalysisSchemeLanguage
  2564. AnalysisSchemeLanguageRu = "ru"
  2565. // @enum AnalysisSchemeLanguage
  2566. AnalysisSchemeLanguageSv = "sv"
  2567. // @enum AnalysisSchemeLanguage
  2568. AnalysisSchemeLanguageTh = "th"
  2569. // @enum AnalysisSchemeLanguage
  2570. AnalysisSchemeLanguageTr = "tr"
  2571. // @enum AnalysisSchemeLanguage
  2572. AnalysisSchemeLanguageZhHans = "zh-Hans"
  2573. // @enum AnalysisSchemeLanguage
  2574. AnalysisSchemeLanguageZhHant = "zh-Hant"
  2575. )
  2576. // The type of field. The valid options for a field depend on the field type.
  2577. // For more information about the supported field types, see Configuring Index
  2578. // Fields (http://docs.aws.amazon.com/cloudsearch/latest/developerguide/configuring-index-fields.html"
  2579. // target="_blank) in the Amazon CloudSearch Developer Guide.
  2580. const (
  2581. // @enum IndexFieldType
  2582. IndexFieldTypeInt = "int"
  2583. // @enum IndexFieldType
  2584. IndexFieldTypeDouble = "double"
  2585. // @enum IndexFieldType
  2586. IndexFieldTypeLiteral = "literal"
  2587. // @enum IndexFieldType
  2588. IndexFieldTypeText = "text"
  2589. // @enum IndexFieldType
  2590. IndexFieldTypeDate = "date"
  2591. // @enum IndexFieldType
  2592. IndexFieldTypeLatlon = "latlon"
  2593. // @enum IndexFieldType
  2594. IndexFieldTypeIntArray = "int-array"
  2595. // @enum IndexFieldType
  2596. IndexFieldTypeDoubleArray = "double-array"
  2597. // @enum IndexFieldType
  2598. IndexFieldTypeLiteralArray = "literal-array"
  2599. // @enum IndexFieldType
  2600. IndexFieldTypeTextArray = "text-array"
  2601. // @enum IndexFieldType
  2602. IndexFieldTypeDateArray = "date-array"
  2603. )
  2604. // The state of processing a change to an option. One of:
  2605. //
  2606. // RequiresIndexDocuments: The option's latest value will not be deployed
  2607. // until IndexDocuments has been called and indexing is complete. Processing:
  2608. // The option's latest value is in the process of being activated. Active: The
  2609. // option's latest value is fully deployed. FailedToValidate: The option value
  2610. // is not compatible with the domain's data and cannot be used to index the
  2611. // data. You must either modify the option value or update or remove the incompatible
  2612. // documents.
  2613. const (
  2614. // @enum OptionState
  2615. OptionStateRequiresIndexDocuments = "RequiresIndexDocuments"
  2616. // @enum OptionState
  2617. OptionStateProcessing = "Processing"
  2618. // @enum OptionState
  2619. OptionStateActive = "Active"
  2620. // @enum OptionState
  2621. OptionStateFailedToValidate = "FailedToValidate"
  2622. )
  2623. // The instance type (such as search.m1.small) on which an index partition is
  2624. // hosted.
  2625. const (
  2626. // @enum PartitionInstanceType
  2627. PartitionInstanceTypeSearchM1Small = "search.m1.small"
  2628. // @enum PartitionInstanceType
  2629. PartitionInstanceTypeSearchM1Large = "search.m1.large"
  2630. // @enum PartitionInstanceType
  2631. PartitionInstanceTypeSearchM2Xlarge = "search.m2.xlarge"
  2632. // @enum PartitionInstanceType
  2633. PartitionInstanceTypeSearchM22xlarge = "search.m2.2xlarge"
  2634. // @enum PartitionInstanceType
  2635. PartitionInstanceTypeSearchM3Medium = "search.m3.medium"
  2636. // @enum PartitionInstanceType
  2637. PartitionInstanceTypeSearchM3Large = "search.m3.large"
  2638. // @enum PartitionInstanceType
  2639. PartitionInstanceTypeSearchM3Xlarge = "search.m3.xlarge"
  2640. // @enum PartitionInstanceType
  2641. PartitionInstanceTypeSearchM32xlarge = "search.m3.2xlarge"
  2642. )
  2643. const (
  2644. // @enum SuggesterFuzzyMatching
  2645. SuggesterFuzzyMatchingNone = "none"
  2646. // @enum SuggesterFuzzyMatching
  2647. SuggesterFuzzyMatchingLow = "low"
  2648. // @enum SuggesterFuzzyMatching
  2649. SuggesterFuzzyMatchingHigh = "high"
  2650. )