api.go 171 KB

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