api.go 222 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471447244734474447544764477447844794480448144824483448444854486448744884489449044914492449344944495449644974498449945004501450245034504450545064507450845094510451145124513451445154516451745184519452045214522452345244525452645274528452945304531453245334534453545364537453845394540454145424543454445454546454745484549455045514552455345544555455645574558455945604561456245634564456545664567456845694570457145724573457445754576457745784579458045814582458345844585458645874588458945904591459245934594459545964597459845994600460146024603460446054606460746084609461046114612461346144615461646174618461946204621462246234624462546264627462846294630463146324633463446354636463746384639464046414642464346444645464646474648464946504651465246534654465546564657465846594660466146624663466446654666466746684669467046714672467346744675467646774678467946804681468246834684468546864687468846894690469146924693469446954696469746984699470047014702470347044705470647074708470947104711471247134714471547164717471847194720472147224723472447254726472747284729473047314732473347344735473647374738473947404741474247434744474547464747474847494750475147524753475447554756475747584759476047614762476347644765476647674768476947704771477247734774477547764777477847794780478147824783478447854786478747884789479047914792479347944795479647974798479948004801480248034804480548064807480848094810481148124813481448154816481748184819482048214822482348244825482648274828482948304831483248334834483548364837483848394840484148424843484448454846484748484849485048514852485348544855485648574858485948604861486248634864486548664867486848694870487148724873487448754876487748784879488048814882488348844885488648874888488948904891489248934894489548964897489848994900490149024903490449054906490749084909491049114912491349144915491649174918491949204921492249234924492549264927492849294930493149324933493449354936493749384939494049414942494349444945494649474948494949504951495249534954495549564957495849594960496149624963496449654966496749684969497049714972497349744975497649774978497949804981498249834984498549864987498849894990499149924993499449954996499749984999500050015002500350045005500650075008500950105011501250135014501550165017501850195020502150225023502450255026502750285029503050315032503350345035503650375038503950405041504250435044504550465047504850495050505150525053505450555056505750585059506050615062506350645065506650675068506950705071507250735074507550765077507850795080508150825083508450855086508750885089509050915092509350945095509650975098509951005101510251035104510551065107510851095110511151125113511451155116511751185119512051215122512351245125512651275128512951305131513251335134513551365137513851395140514151425143514451455146514751485149515051515152515351545155515651575158515951605161516251635164516551665167516851695170517151725173517451755176517751785179518051815182518351845185518651875188518951905191519251935194519551965197519851995200520152025203520452055206520752085209521052115212521352145215521652175218521952205221522252235224522552265227522852295230523152325233523452355236523752385239524052415242524352445245524652475248524952505251525252535254525552565257525852595260526152625263526452655266526752685269527052715272527352745275527652775278527952805281528252835284528552865287528852895290529152925293529452955296529752985299530053015302530353045305530653075308530953105311531253135314531553165317531853195320532153225323532453255326532753285329533053315332533353345335533653375338533953405341534253435344534553465347534853495350535153525353535453555356535753585359536053615362536353645365536653675368536953705371537253735374537553765377537853795380538153825383538453855386538753885389539053915392539353945395539653975398539954005401540254035404540554065407540854095410541154125413541454155416541754185419542054215422542354245425542654275428542954305431543254335434543554365437543854395440544154425443544454455446544754485449545054515452545354545455545654575458545954605461546254635464546554665467546854695470547154725473547454755476547754785479548054815482548354845485548654875488548954905491549254935494549554965497549854995500550155025503550455055506550755085509551055115512551355145515551655175518551955205521552255235524552555265527552855295530553155325533553455355536553755385539554055415542554355445545554655475548554955505551555255535554555555565557555855595560556155625563556455655566556755685569557055715572557355745575557655775578557955805581558255835584558555865587558855895590559155925593559455955596559755985599560056015602560356045605560656075608560956105611561256135614561556165617561856195620562156225623562456255626562756285629563056315632563356345635563656375638563956405641564256435644564556465647564856495650565156525653565456555656565756585659566056615662566356645665566656675668566956705671567256735674567556765677567856795680568156825683568456855686568756885689569056915692569356945695569656975698569957005701570257035704570557065707570857095710571157125713571457155716571757185719572057215722572357245725572657275728572957305731573257335734573557365737573857395740574157425743574457455746574757485749575057515752575357545755575657575758575957605761576257635764576557665767576857695770577157725773577457755776577757785779578057815782578357845785578657875788578957905791579257935794579557965797579857995800580158025803580458055806580758085809581058115812581358145815581658175818581958205821582258235824582558265827582858295830583158325833583458355836583758385839584058415842584358445845584658475848584958505851585258535854585558565857585858595860586158625863586458655866586758685869587058715872587358745875587658775878587958805881588258835884588558865887588858895890589158925893589458955896589758985899590059015902590359045905590659075908590959105911591259135914591559165917591859195920592159225923592459255926592759285929593059315932593359345935593659375938593959405941594259435944594559465947594859495950595159525953595459555956595759585959596059615962596359645965596659675968596959705971597259735974597559765977597859795980598159825983598459855986598759885989599059915992599359945995599659975998599960006001600260036004600560066007600860096010601160126013601460156016601760186019602060216022602360246025602660276028602960306031603260336034603560366037603860396040604160426043604460456046604760486049605060516052605360546055605660576058605960606061606260636064606560666067606860696070607160726073607460756076607760786079608060816082608360846085608660876088608960906091609260936094609560966097609860996100610161026103610461056106610761086109611061116112611361146115611661176118611961206121612261236124612561266127612861296130613161326133613461356136613761386139614061416142614361446145614661476148614961506151615261536154615561566157615861596160616161626163616461656166616761686169617061716172617361746175617661776178617961806181618261836184618561866187618861896190619161926193619461956196619761986199620062016202620362046205620662076208620962106211621262136214621562166217621862196220622162226223622462256226622762286229623062316232623362346235623662376238623962406241624262436244624562466247624862496250625162526253625462556256625762586259626062616262626362646265626662676268626962706271627262736274627562766277627862796280628162826283628462856286628762886289629062916292629362946295629662976298629963006301630263036304630563066307630863096310631163126313631463156316631763186319632063216322632363246325632663276328632963306331633263336334633563366337633863396340634163426343634463456346634763486349635063516352635363546355635663576358635963606361636263636364636563666367636863696370637163726373637463756376637763786379638063816382638363846385638663876388638963906391639263936394639563966397639863996400640164026403640464056406
  1. // Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT.
  2. package cloudsearch
  3. import (
  4. "time"
  5. "github.com/aws/aws-sdk-go/aws"
  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 will be populated with the request's response once the request completes
  13. // successfully.
  14. //
  15. // Use "Send" method on the returned Request to send the API call to the service.
  16. // the "output" return value is not valid until after Send returns without error.
  17. //
  18. // See BuildSuggesters for more information on using the BuildSuggesters
  19. // API call, and error handling.
  20. //
  21. // This method is useful when you want to inject custom logic or configuration
  22. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  23. //
  24. //
  25. // // Example sending a request using the BuildSuggestersRequest method.
  26. // req, resp := client.BuildSuggestersRequest(params)
  27. //
  28. // err := req.Send()
  29. // if err == nil { // resp is now filled
  30. // fmt.Println(resp)
  31. // }
  32. func (c *CloudSearch) BuildSuggestersRequest(input *BuildSuggestersInput) (req *request.Request, output *BuildSuggestersOutput) {
  33. op := &request.Operation{
  34. Name: opBuildSuggesters,
  35. HTTPMethod: "POST",
  36. HTTPPath: "/",
  37. }
  38. if input == nil {
  39. input = &BuildSuggestersInput{}
  40. }
  41. output = &BuildSuggestersOutput{}
  42. req = c.newRequest(op, input, output)
  43. return
  44. }
  45. // BuildSuggesters API operation for Amazon CloudSearch.
  46. //
  47. // Indexes the search suggestions. For more information, see Configuring Suggesters
  48. // (http://docs.aws.amazon.com/cloudsearch/latest/developerguide/getting-suggestions.html#configuring-suggesters)
  49. // in the Amazon CloudSearch Developer Guide.
  50. //
  51. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  52. // with awserr.Error's Code and Message methods to get detailed information about
  53. // the error.
  54. //
  55. // See the AWS API reference guide for Amazon CloudSearch's
  56. // API operation BuildSuggesters for usage and error information.
  57. //
  58. // Returned Error Codes:
  59. // * ErrCodeBaseException "BaseException"
  60. // An error occurred while processing the request.
  61. //
  62. // * ErrCodeInternalException "InternalException"
  63. // An internal error occurred while processing the request. If this problem
  64. // persists, report an issue from the Service Health Dashboard (http://status.aws.amazon.com/).
  65. //
  66. // * ErrCodeResourceNotFoundException "ResourceNotFound"
  67. // The request was rejected because it attempted to reference a resource that
  68. // does not exist.
  69. //
  70. func (c *CloudSearch) BuildSuggesters(input *BuildSuggestersInput) (*BuildSuggestersOutput, error) {
  71. req, out := c.BuildSuggestersRequest(input)
  72. return out, req.Send()
  73. }
  74. // BuildSuggestersWithContext is the same as BuildSuggesters with the addition of
  75. // the ability to pass a context and additional request options.
  76. //
  77. // See BuildSuggesters for details on how to use this API operation.
  78. //
  79. // The context must be non-nil and will be used for request cancellation. If
  80. // the context is nil a panic will occur. In the future the SDK may create
  81. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  82. // for more information on using Contexts.
  83. func (c *CloudSearch) BuildSuggestersWithContext(ctx aws.Context, input *BuildSuggestersInput, opts ...request.Option) (*BuildSuggestersOutput, error) {
  84. req, out := c.BuildSuggestersRequest(input)
  85. req.SetContext(ctx)
  86. req.ApplyOptions(opts...)
  87. return out, req.Send()
  88. }
  89. const opCreateDomain = "CreateDomain"
  90. // CreateDomainRequest generates a "aws/request.Request" representing the
  91. // client's request for the CreateDomain operation. The "output" return
  92. // value will be populated with the request's response once the request completes
  93. // successfully.
  94. //
  95. // Use "Send" method on the returned Request to send the API call to the service.
  96. // the "output" return value is not valid until after Send returns without error.
  97. //
  98. // See CreateDomain for more information on using the CreateDomain
  99. // API call, and error handling.
  100. //
  101. // This method is useful when you want to inject custom logic or configuration
  102. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  103. //
  104. //
  105. // // Example sending a request using the CreateDomainRequest method.
  106. // req, resp := client.CreateDomainRequest(params)
  107. //
  108. // err := req.Send()
  109. // if err == nil { // resp is now filled
  110. // fmt.Println(resp)
  111. // }
  112. func (c *CloudSearch) CreateDomainRequest(input *CreateDomainInput) (req *request.Request, output *CreateDomainOutput) {
  113. op := &request.Operation{
  114. Name: opCreateDomain,
  115. HTTPMethod: "POST",
  116. HTTPPath: "/",
  117. }
  118. if input == nil {
  119. input = &CreateDomainInput{}
  120. }
  121. output = &CreateDomainOutput{}
  122. req = c.newRequest(op, input, output)
  123. return
  124. }
  125. // CreateDomain API operation for Amazon CloudSearch.
  126. //
  127. // Creates a new search domain. For more information, see Creating a Search
  128. // Domain (http://docs.aws.amazon.com/cloudsearch/latest/developerguide/creating-domains.html)
  129. // in the Amazon CloudSearch Developer Guide.
  130. //
  131. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  132. // with awserr.Error's Code and Message methods to get detailed information about
  133. // the error.
  134. //
  135. // See the AWS API reference guide for Amazon CloudSearch's
  136. // API operation CreateDomain for usage and error information.
  137. //
  138. // Returned Error Codes:
  139. // * ErrCodeBaseException "BaseException"
  140. // An error occurred while processing the request.
  141. //
  142. // * ErrCodeInternalException "InternalException"
  143. // An internal error occurred while processing the request. If this problem
  144. // persists, report an issue from the Service Health Dashboard (http://status.aws.amazon.com/).
  145. //
  146. // * ErrCodeLimitExceededException "LimitExceeded"
  147. // The request was rejected because a resource limit has already been met.
  148. //
  149. func (c *CloudSearch) CreateDomain(input *CreateDomainInput) (*CreateDomainOutput, error) {
  150. req, out := c.CreateDomainRequest(input)
  151. return out, req.Send()
  152. }
  153. // CreateDomainWithContext is the same as CreateDomain with the addition of
  154. // the ability to pass a context and additional request options.
  155. //
  156. // See CreateDomain for details on how to use this API operation.
  157. //
  158. // The context must be non-nil and will be used for request cancellation. If
  159. // the context is nil a panic will occur. In the future the SDK may create
  160. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  161. // for more information on using Contexts.
  162. func (c *CloudSearch) CreateDomainWithContext(ctx aws.Context, input *CreateDomainInput, opts ...request.Option) (*CreateDomainOutput, error) {
  163. req, out := c.CreateDomainRequest(input)
  164. req.SetContext(ctx)
  165. req.ApplyOptions(opts...)
  166. return out, req.Send()
  167. }
  168. const opDefineAnalysisScheme = "DefineAnalysisScheme"
  169. // DefineAnalysisSchemeRequest generates a "aws/request.Request" representing the
  170. // client's request for the DefineAnalysisScheme operation. The "output" return
  171. // value will be populated with the request's response once the request completes
  172. // successfully.
  173. //
  174. // Use "Send" method on the returned Request to send the API call to the service.
  175. // the "output" return value is not valid until after Send returns without error.
  176. //
  177. // See DefineAnalysisScheme for more information on using the DefineAnalysisScheme
  178. // API call, and error handling.
  179. //
  180. // This method is useful when you want to inject custom logic or configuration
  181. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  182. //
  183. //
  184. // // Example sending a request using the DefineAnalysisSchemeRequest method.
  185. // req, resp := client.DefineAnalysisSchemeRequest(params)
  186. //
  187. // err := req.Send()
  188. // if err == nil { // resp is now filled
  189. // fmt.Println(resp)
  190. // }
  191. func (c *CloudSearch) DefineAnalysisSchemeRequest(input *DefineAnalysisSchemeInput) (req *request.Request, output *DefineAnalysisSchemeOutput) {
  192. op := &request.Operation{
  193. Name: opDefineAnalysisScheme,
  194. HTTPMethod: "POST",
  195. HTTPPath: "/",
  196. }
  197. if input == nil {
  198. input = &DefineAnalysisSchemeInput{}
  199. }
  200. output = &DefineAnalysisSchemeOutput{}
  201. req = c.newRequest(op, input, output)
  202. return
  203. }
  204. // DefineAnalysisScheme API operation for Amazon CloudSearch.
  205. //
  206. // Configures an analysis scheme that can be applied to a text or text-array
  207. // field to define language-specific text processing options. For more information,
  208. // see Configuring Analysis Schemes (http://docs.aws.amazon.com/cloudsearch/latest/developerguide/configuring-analysis-schemes.html)
  209. // in the Amazon CloudSearch Developer Guide.
  210. //
  211. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  212. // with awserr.Error's Code and Message methods to get detailed information about
  213. // the error.
  214. //
  215. // See the AWS API reference guide for Amazon CloudSearch's
  216. // API operation DefineAnalysisScheme for usage and error information.
  217. //
  218. // Returned Error Codes:
  219. // * ErrCodeBaseException "BaseException"
  220. // An error occurred while processing the request.
  221. //
  222. // * ErrCodeInternalException "InternalException"
  223. // An internal error occurred while processing the request. If this problem
  224. // persists, report an issue from the Service Health Dashboard (http://status.aws.amazon.com/).
  225. //
  226. // * ErrCodeLimitExceededException "LimitExceeded"
  227. // The request was rejected because a resource limit has already been met.
  228. //
  229. // * ErrCodeInvalidTypeException "InvalidType"
  230. // The request was rejected because it specified an invalid type definition.
  231. //
  232. // * ErrCodeResourceNotFoundException "ResourceNotFound"
  233. // The request was rejected because it attempted to reference a resource that
  234. // does not exist.
  235. //
  236. func (c *CloudSearch) DefineAnalysisScheme(input *DefineAnalysisSchemeInput) (*DefineAnalysisSchemeOutput, error) {
  237. req, out := c.DefineAnalysisSchemeRequest(input)
  238. return out, req.Send()
  239. }
  240. // DefineAnalysisSchemeWithContext is the same as DefineAnalysisScheme with the addition of
  241. // the ability to pass a context and additional request options.
  242. //
  243. // See DefineAnalysisScheme for details on how to use this API operation.
  244. //
  245. // The context must be non-nil and will be used for request cancellation. If
  246. // the context is nil a panic will occur. In the future the SDK may create
  247. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  248. // for more information on using Contexts.
  249. func (c *CloudSearch) DefineAnalysisSchemeWithContext(ctx aws.Context, input *DefineAnalysisSchemeInput, opts ...request.Option) (*DefineAnalysisSchemeOutput, error) {
  250. req, out := c.DefineAnalysisSchemeRequest(input)
  251. req.SetContext(ctx)
  252. req.ApplyOptions(opts...)
  253. return out, req.Send()
  254. }
  255. const opDefineExpression = "DefineExpression"
  256. // DefineExpressionRequest generates a "aws/request.Request" representing the
  257. // client's request for the DefineExpression operation. The "output" return
  258. // value will be populated with the request's response once the request completes
  259. // successfully.
  260. //
  261. // Use "Send" method on the returned Request to send the API call to the service.
  262. // the "output" return value is not valid until after Send returns without error.
  263. //
  264. // See DefineExpression for more information on using the DefineExpression
  265. // API call, and error handling.
  266. //
  267. // This method is useful when you want to inject custom logic or configuration
  268. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  269. //
  270. //
  271. // // Example sending a request using the DefineExpressionRequest method.
  272. // req, resp := client.DefineExpressionRequest(params)
  273. //
  274. // err := req.Send()
  275. // if err == nil { // resp is now filled
  276. // fmt.Println(resp)
  277. // }
  278. func (c *CloudSearch) DefineExpressionRequest(input *DefineExpressionInput) (req *request.Request, output *DefineExpressionOutput) {
  279. op := &request.Operation{
  280. Name: opDefineExpression,
  281. HTTPMethod: "POST",
  282. HTTPPath: "/",
  283. }
  284. if input == nil {
  285. input = &DefineExpressionInput{}
  286. }
  287. output = &DefineExpressionOutput{}
  288. req = c.newRequest(op, input, output)
  289. return
  290. }
  291. // DefineExpression API operation for Amazon CloudSearch.
  292. //
  293. // Configures an Expression for the search domain. Used to create new expressions
  294. // and modify existing ones. If the expression exists, the new configuration
  295. // replaces the old one. For more information, see Configuring Expressions (http://docs.aws.amazon.com/cloudsearch/latest/developerguide/configuring-expressions.html)
  296. // in the Amazon CloudSearch Developer Guide.
  297. //
  298. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  299. // with awserr.Error's Code and Message methods to get detailed information about
  300. // the error.
  301. //
  302. // See the AWS API reference guide for Amazon CloudSearch's
  303. // API operation DefineExpression for usage and error information.
  304. //
  305. // Returned Error Codes:
  306. // * ErrCodeBaseException "BaseException"
  307. // An error occurred while processing the request.
  308. //
  309. // * ErrCodeInternalException "InternalException"
  310. // An internal error occurred while processing the request. If this problem
  311. // persists, report an issue from the Service Health Dashboard (http://status.aws.amazon.com/).
  312. //
  313. // * ErrCodeLimitExceededException "LimitExceeded"
  314. // The request was rejected because a resource limit has already been met.
  315. //
  316. // * ErrCodeInvalidTypeException "InvalidType"
  317. // The request was rejected because it specified an invalid type definition.
  318. //
  319. // * ErrCodeResourceNotFoundException "ResourceNotFound"
  320. // The request was rejected because it attempted to reference a resource that
  321. // does not exist.
  322. //
  323. func (c *CloudSearch) DefineExpression(input *DefineExpressionInput) (*DefineExpressionOutput, error) {
  324. req, out := c.DefineExpressionRequest(input)
  325. return out, req.Send()
  326. }
  327. // DefineExpressionWithContext is the same as DefineExpression with the addition of
  328. // the ability to pass a context and additional request options.
  329. //
  330. // See DefineExpression for details on how to use this API operation.
  331. //
  332. // The context must be non-nil and will be used for request cancellation. If
  333. // the context is nil a panic will occur. In the future the SDK may create
  334. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  335. // for more information on using Contexts.
  336. func (c *CloudSearch) DefineExpressionWithContext(ctx aws.Context, input *DefineExpressionInput, opts ...request.Option) (*DefineExpressionOutput, error) {
  337. req, out := c.DefineExpressionRequest(input)
  338. req.SetContext(ctx)
  339. req.ApplyOptions(opts...)
  340. return out, req.Send()
  341. }
  342. const opDefineIndexField = "DefineIndexField"
  343. // DefineIndexFieldRequest generates a "aws/request.Request" representing the
  344. // client's request for the DefineIndexField operation. The "output" return
  345. // value will be populated with the request's response once the request completes
  346. // successfully.
  347. //
  348. // Use "Send" method on the returned Request to send the API call to the service.
  349. // the "output" return value is not valid until after Send returns without error.
  350. //
  351. // See DefineIndexField for more information on using the DefineIndexField
  352. // API call, and error handling.
  353. //
  354. // This method is useful when you want to inject custom logic or configuration
  355. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  356. //
  357. //
  358. // // Example sending a request using the DefineIndexFieldRequest method.
  359. // req, resp := client.DefineIndexFieldRequest(params)
  360. //
  361. // err := req.Send()
  362. // if err == nil { // resp is now filled
  363. // fmt.Println(resp)
  364. // }
  365. func (c *CloudSearch) DefineIndexFieldRequest(input *DefineIndexFieldInput) (req *request.Request, output *DefineIndexFieldOutput) {
  366. op := &request.Operation{
  367. Name: opDefineIndexField,
  368. HTTPMethod: "POST",
  369. HTTPPath: "/",
  370. }
  371. if input == nil {
  372. input = &DefineIndexFieldInput{}
  373. }
  374. output = &DefineIndexFieldOutput{}
  375. req = c.newRequest(op, input, output)
  376. return
  377. }
  378. // DefineIndexField API operation for Amazon CloudSearch.
  379. //
  380. // Configures an IndexField for the search domain. Used to create new fields
  381. // and modify existing ones. You must specify the name of the domain you are
  382. // configuring and an index field configuration. The index field configuration
  383. // specifies a unique name, the index field type, and the options you want to
  384. // configure for the field. The options you can specify depend on the IndexFieldType.
  385. // If the field exists, the new configuration replaces the old one. For more
  386. // information, see Configuring Index Fields (http://docs.aws.amazon.com/cloudsearch/latest/developerguide/configuring-index-fields.html)
  387. // in the Amazon CloudSearch Developer Guide.
  388. //
  389. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  390. // with awserr.Error's Code and Message methods to get detailed information about
  391. // the error.
  392. //
  393. // See the AWS API reference guide for Amazon CloudSearch's
  394. // API operation DefineIndexField for usage and error information.
  395. //
  396. // Returned Error Codes:
  397. // * ErrCodeBaseException "BaseException"
  398. // An error occurred while processing the request.
  399. //
  400. // * ErrCodeInternalException "InternalException"
  401. // An internal error occurred while processing the request. If this problem
  402. // persists, report an issue from the Service Health Dashboard (http://status.aws.amazon.com/).
  403. //
  404. // * ErrCodeLimitExceededException "LimitExceeded"
  405. // The request was rejected because a resource limit has already been met.
  406. //
  407. // * ErrCodeInvalidTypeException "InvalidType"
  408. // The request was rejected because it specified an invalid type definition.
  409. //
  410. // * ErrCodeResourceNotFoundException "ResourceNotFound"
  411. // The request was rejected because it attempted to reference a resource that
  412. // does not exist.
  413. //
  414. func (c *CloudSearch) DefineIndexField(input *DefineIndexFieldInput) (*DefineIndexFieldOutput, error) {
  415. req, out := c.DefineIndexFieldRequest(input)
  416. return out, req.Send()
  417. }
  418. // DefineIndexFieldWithContext is the same as DefineIndexField with the addition of
  419. // the ability to pass a context and additional request options.
  420. //
  421. // See DefineIndexField for details on how to use this API operation.
  422. //
  423. // The context must be non-nil and will be used for request cancellation. If
  424. // the context is nil a panic will occur. In the future the SDK may create
  425. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  426. // for more information on using Contexts.
  427. func (c *CloudSearch) DefineIndexFieldWithContext(ctx aws.Context, input *DefineIndexFieldInput, opts ...request.Option) (*DefineIndexFieldOutput, error) {
  428. req, out := c.DefineIndexFieldRequest(input)
  429. req.SetContext(ctx)
  430. req.ApplyOptions(opts...)
  431. return out, req.Send()
  432. }
  433. const opDefineSuggester = "DefineSuggester"
  434. // DefineSuggesterRequest generates a "aws/request.Request" representing the
  435. // client's request for the DefineSuggester operation. The "output" return
  436. // value will be populated with the request's response once the request completes
  437. // successfully.
  438. //
  439. // Use "Send" method on the returned Request to send the API call to the service.
  440. // the "output" return value is not valid until after Send returns without error.
  441. //
  442. // See DefineSuggester for more information on using the DefineSuggester
  443. // API call, and error handling.
  444. //
  445. // This method is useful when you want to inject custom logic or configuration
  446. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  447. //
  448. //
  449. // // Example sending a request using the DefineSuggesterRequest method.
  450. // req, resp := client.DefineSuggesterRequest(params)
  451. //
  452. // err := req.Send()
  453. // if err == nil { // resp is now filled
  454. // fmt.Println(resp)
  455. // }
  456. func (c *CloudSearch) DefineSuggesterRequest(input *DefineSuggesterInput) (req *request.Request, output *DefineSuggesterOutput) {
  457. op := &request.Operation{
  458. Name: opDefineSuggester,
  459. HTTPMethod: "POST",
  460. HTTPPath: "/",
  461. }
  462. if input == nil {
  463. input = &DefineSuggesterInput{}
  464. }
  465. output = &DefineSuggesterOutput{}
  466. req = c.newRequest(op, input, output)
  467. return
  468. }
  469. // DefineSuggester API operation for Amazon CloudSearch.
  470. //
  471. // Configures a suggester for a domain. A suggester enables you to display possible
  472. // matches before users finish typing their queries. When you configure a suggester,
  473. // you must specify the name of the text field you want to search for possible
  474. // matches and a unique name for the suggester. For more information, see Getting
  475. // Search Suggestions (http://docs.aws.amazon.com/cloudsearch/latest/developerguide/getting-suggestions.html)
  476. // in the Amazon CloudSearch Developer Guide.
  477. //
  478. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  479. // with awserr.Error's Code and Message methods to get detailed information about
  480. // the error.
  481. //
  482. // See the AWS API reference guide for Amazon CloudSearch's
  483. // API operation DefineSuggester for usage and error information.
  484. //
  485. // Returned Error Codes:
  486. // * ErrCodeBaseException "BaseException"
  487. // An error occurred while processing the request.
  488. //
  489. // * ErrCodeInternalException "InternalException"
  490. // An internal error occurred while processing the request. If this problem
  491. // persists, report an issue from the Service Health Dashboard (http://status.aws.amazon.com/).
  492. //
  493. // * ErrCodeLimitExceededException "LimitExceeded"
  494. // The request was rejected because a resource limit has already been met.
  495. //
  496. // * ErrCodeInvalidTypeException "InvalidType"
  497. // The request was rejected because it specified an invalid type definition.
  498. //
  499. // * ErrCodeResourceNotFoundException "ResourceNotFound"
  500. // The request was rejected because it attempted to reference a resource that
  501. // does not exist.
  502. //
  503. func (c *CloudSearch) DefineSuggester(input *DefineSuggesterInput) (*DefineSuggesterOutput, error) {
  504. req, out := c.DefineSuggesterRequest(input)
  505. return out, req.Send()
  506. }
  507. // DefineSuggesterWithContext is the same as DefineSuggester with the addition of
  508. // the ability to pass a context and additional request options.
  509. //
  510. // See DefineSuggester for details on how to use this API operation.
  511. //
  512. // The context must be non-nil and will be used for request cancellation. If
  513. // the context is nil a panic will occur. In the future the SDK may create
  514. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  515. // for more information on using Contexts.
  516. func (c *CloudSearch) DefineSuggesterWithContext(ctx aws.Context, input *DefineSuggesterInput, opts ...request.Option) (*DefineSuggesterOutput, error) {
  517. req, out := c.DefineSuggesterRequest(input)
  518. req.SetContext(ctx)
  519. req.ApplyOptions(opts...)
  520. return out, req.Send()
  521. }
  522. const opDeleteAnalysisScheme = "DeleteAnalysisScheme"
  523. // DeleteAnalysisSchemeRequest generates a "aws/request.Request" representing the
  524. // client's request for the DeleteAnalysisScheme operation. The "output" return
  525. // value will be populated with the request's response once the request completes
  526. // successfully.
  527. //
  528. // Use "Send" method on the returned Request to send the API call to the service.
  529. // the "output" return value is not valid until after Send returns without error.
  530. //
  531. // See DeleteAnalysisScheme for more information on using the DeleteAnalysisScheme
  532. // API call, and error handling.
  533. //
  534. // This method is useful when you want to inject custom logic or configuration
  535. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  536. //
  537. //
  538. // // Example sending a request using the DeleteAnalysisSchemeRequest method.
  539. // req, resp := client.DeleteAnalysisSchemeRequest(params)
  540. //
  541. // err := req.Send()
  542. // if err == nil { // resp is now filled
  543. // fmt.Println(resp)
  544. // }
  545. func (c *CloudSearch) DeleteAnalysisSchemeRequest(input *DeleteAnalysisSchemeInput) (req *request.Request, output *DeleteAnalysisSchemeOutput) {
  546. op := &request.Operation{
  547. Name: opDeleteAnalysisScheme,
  548. HTTPMethod: "POST",
  549. HTTPPath: "/",
  550. }
  551. if input == nil {
  552. input = &DeleteAnalysisSchemeInput{}
  553. }
  554. output = &DeleteAnalysisSchemeOutput{}
  555. req = c.newRequest(op, input, output)
  556. return
  557. }
  558. // DeleteAnalysisScheme API operation for Amazon CloudSearch.
  559. //
  560. // Deletes an analysis scheme. For more information, see Configuring Analysis
  561. // Schemes (http://docs.aws.amazon.com/cloudsearch/latest/developerguide/configuring-analysis-schemes.html)
  562. // in the Amazon CloudSearch Developer Guide.
  563. //
  564. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  565. // with awserr.Error's Code and Message methods to get detailed information about
  566. // the error.
  567. //
  568. // See the AWS API reference guide for Amazon CloudSearch's
  569. // API operation DeleteAnalysisScheme for usage and error information.
  570. //
  571. // Returned Error Codes:
  572. // * ErrCodeBaseException "BaseException"
  573. // An error occurred while processing the request.
  574. //
  575. // * ErrCodeInternalException "InternalException"
  576. // An internal error occurred while processing the request. If this problem
  577. // persists, report an issue from the Service Health Dashboard (http://status.aws.amazon.com/).
  578. //
  579. // * ErrCodeInvalidTypeException "InvalidType"
  580. // The request was rejected because it specified an invalid type definition.
  581. //
  582. // * ErrCodeResourceNotFoundException "ResourceNotFound"
  583. // The request was rejected because it attempted to reference a resource that
  584. // does not exist.
  585. //
  586. func (c *CloudSearch) DeleteAnalysisScheme(input *DeleteAnalysisSchemeInput) (*DeleteAnalysisSchemeOutput, error) {
  587. req, out := c.DeleteAnalysisSchemeRequest(input)
  588. return out, req.Send()
  589. }
  590. // DeleteAnalysisSchemeWithContext is the same as DeleteAnalysisScheme with the addition of
  591. // the ability to pass a context and additional request options.
  592. //
  593. // See DeleteAnalysisScheme for details on how to use this API operation.
  594. //
  595. // The context must be non-nil and will be used for request cancellation. If
  596. // the context is nil a panic will occur. In the future the SDK may create
  597. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  598. // for more information on using Contexts.
  599. func (c *CloudSearch) DeleteAnalysisSchemeWithContext(ctx aws.Context, input *DeleteAnalysisSchemeInput, opts ...request.Option) (*DeleteAnalysisSchemeOutput, error) {
  600. req, out := c.DeleteAnalysisSchemeRequest(input)
  601. req.SetContext(ctx)
  602. req.ApplyOptions(opts...)
  603. return out, req.Send()
  604. }
  605. const opDeleteDomain = "DeleteDomain"
  606. // DeleteDomainRequest generates a "aws/request.Request" representing the
  607. // client's request for the DeleteDomain operation. The "output" return
  608. // value will be populated with the request's response once the request completes
  609. // successfully.
  610. //
  611. // Use "Send" method on the returned Request to send the API call to the service.
  612. // the "output" return value is not valid until after Send returns without error.
  613. //
  614. // See DeleteDomain for more information on using the DeleteDomain
  615. // API call, and error handling.
  616. //
  617. // This method is useful when you want to inject custom logic or configuration
  618. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  619. //
  620. //
  621. // // Example sending a request using the DeleteDomainRequest method.
  622. // req, resp := client.DeleteDomainRequest(params)
  623. //
  624. // err := req.Send()
  625. // if err == nil { // resp is now filled
  626. // fmt.Println(resp)
  627. // }
  628. func (c *CloudSearch) DeleteDomainRequest(input *DeleteDomainInput) (req *request.Request, output *DeleteDomainOutput) {
  629. op := &request.Operation{
  630. Name: opDeleteDomain,
  631. HTTPMethod: "POST",
  632. HTTPPath: "/",
  633. }
  634. if input == nil {
  635. input = &DeleteDomainInput{}
  636. }
  637. output = &DeleteDomainOutput{}
  638. req = c.newRequest(op, input, output)
  639. return
  640. }
  641. // DeleteDomain API operation for Amazon CloudSearch.
  642. //
  643. // Permanently deletes a search domain and all of its data. Once a domain has
  644. // been deleted, it cannot be recovered. For more information, see Deleting
  645. // a Search Domain (http://docs.aws.amazon.com/cloudsearch/latest/developerguide/deleting-domains.html)
  646. // in the Amazon CloudSearch Developer Guide.
  647. //
  648. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  649. // with awserr.Error's Code and Message methods to get detailed information about
  650. // the error.
  651. //
  652. // See the AWS API reference guide for Amazon CloudSearch's
  653. // API operation DeleteDomain for usage and error information.
  654. //
  655. // Returned Error Codes:
  656. // * ErrCodeBaseException "BaseException"
  657. // An error occurred while processing the request.
  658. //
  659. // * ErrCodeInternalException "InternalException"
  660. // An internal error occurred while processing the request. If this problem
  661. // persists, report an issue from the Service Health Dashboard (http://status.aws.amazon.com/).
  662. //
  663. func (c *CloudSearch) DeleteDomain(input *DeleteDomainInput) (*DeleteDomainOutput, error) {
  664. req, out := c.DeleteDomainRequest(input)
  665. return out, req.Send()
  666. }
  667. // DeleteDomainWithContext is the same as DeleteDomain with the addition of
  668. // the ability to pass a context and additional request options.
  669. //
  670. // See DeleteDomain for details on how to use this API operation.
  671. //
  672. // The context must be non-nil and will be used for request cancellation. If
  673. // the context is nil a panic will occur. In the future the SDK may create
  674. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  675. // for more information on using Contexts.
  676. func (c *CloudSearch) DeleteDomainWithContext(ctx aws.Context, input *DeleteDomainInput, opts ...request.Option) (*DeleteDomainOutput, error) {
  677. req, out := c.DeleteDomainRequest(input)
  678. req.SetContext(ctx)
  679. req.ApplyOptions(opts...)
  680. return out, req.Send()
  681. }
  682. const opDeleteExpression = "DeleteExpression"
  683. // DeleteExpressionRequest generates a "aws/request.Request" representing the
  684. // client's request for the DeleteExpression operation. The "output" return
  685. // value will be populated with the request's response once the request completes
  686. // successfully.
  687. //
  688. // Use "Send" method on the returned Request to send the API call to the service.
  689. // the "output" return value is not valid until after Send returns without error.
  690. //
  691. // See DeleteExpression for more information on using the DeleteExpression
  692. // API call, and error handling.
  693. //
  694. // This method is useful when you want to inject custom logic or configuration
  695. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  696. //
  697. //
  698. // // Example sending a request using the DeleteExpressionRequest method.
  699. // req, resp := client.DeleteExpressionRequest(params)
  700. //
  701. // err := req.Send()
  702. // if err == nil { // resp is now filled
  703. // fmt.Println(resp)
  704. // }
  705. func (c *CloudSearch) DeleteExpressionRequest(input *DeleteExpressionInput) (req *request.Request, output *DeleteExpressionOutput) {
  706. op := &request.Operation{
  707. Name: opDeleteExpression,
  708. HTTPMethod: "POST",
  709. HTTPPath: "/",
  710. }
  711. if input == nil {
  712. input = &DeleteExpressionInput{}
  713. }
  714. output = &DeleteExpressionOutput{}
  715. req = c.newRequest(op, input, output)
  716. return
  717. }
  718. // DeleteExpression API operation for Amazon CloudSearch.
  719. //
  720. // Removes an Expression from the search domain. For more information, see Configuring
  721. // Expressions (http://docs.aws.amazon.com/cloudsearch/latest/developerguide/configuring-expressions.html)
  722. // in the Amazon CloudSearch Developer Guide.
  723. //
  724. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  725. // with awserr.Error's Code and Message methods to get detailed information about
  726. // the error.
  727. //
  728. // See the AWS API reference guide for Amazon CloudSearch's
  729. // API operation DeleteExpression for usage and error information.
  730. //
  731. // Returned Error Codes:
  732. // * ErrCodeBaseException "BaseException"
  733. // An error occurred while processing the request.
  734. //
  735. // * ErrCodeInternalException "InternalException"
  736. // An internal error occurred while processing the request. If this problem
  737. // persists, report an issue from the Service Health Dashboard (http://status.aws.amazon.com/).
  738. //
  739. // * ErrCodeInvalidTypeException "InvalidType"
  740. // The request was rejected because it specified an invalid type definition.
  741. //
  742. // * ErrCodeResourceNotFoundException "ResourceNotFound"
  743. // The request was rejected because it attempted to reference a resource that
  744. // does not exist.
  745. //
  746. func (c *CloudSearch) DeleteExpression(input *DeleteExpressionInput) (*DeleteExpressionOutput, error) {
  747. req, out := c.DeleteExpressionRequest(input)
  748. return out, req.Send()
  749. }
  750. // DeleteExpressionWithContext is the same as DeleteExpression with the addition of
  751. // the ability to pass a context and additional request options.
  752. //
  753. // See DeleteExpression for details on how to use this API operation.
  754. //
  755. // The context must be non-nil and will be used for request cancellation. If
  756. // the context is nil a panic will occur. In the future the SDK may create
  757. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  758. // for more information on using Contexts.
  759. func (c *CloudSearch) DeleteExpressionWithContext(ctx aws.Context, input *DeleteExpressionInput, opts ...request.Option) (*DeleteExpressionOutput, error) {
  760. req, out := c.DeleteExpressionRequest(input)
  761. req.SetContext(ctx)
  762. req.ApplyOptions(opts...)
  763. return out, req.Send()
  764. }
  765. const opDeleteIndexField = "DeleteIndexField"
  766. // DeleteIndexFieldRequest generates a "aws/request.Request" representing the
  767. // client's request for the DeleteIndexField operation. The "output" return
  768. // value will be populated with the request's response once the request completes
  769. // successfully.
  770. //
  771. // Use "Send" method on the returned Request to send the API call to the service.
  772. // the "output" return value is not valid until after Send returns without error.
  773. //
  774. // See DeleteIndexField for more information on using the DeleteIndexField
  775. // API call, and error handling.
  776. //
  777. // This method is useful when you want to inject custom logic or configuration
  778. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  779. //
  780. //
  781. // // Example sending a request using the DeleteIndexFieldRequest method.
  782. // req, resp := client.DeleteIndexFieldRequest(params)
  783. //
  784. // err := req.Send()
  785. // if err == nil { // resp is now filled
  786. // fmt.Println(resp)
  787. // }
  788. func (c *CloudSearch) DeleteIndexFieldRequest(input *DeleteIndexFieldInput) (req *request.Request, output *DeleteIndexFieldOutput) {
  789. op := &request.Operation{
  790. Name: opDeleteIndexField,
  791. HTTPMethod: "POST",
  792. HTTPPath: "/",
  793. }
  794. if input == nil {
  795. input = &DeleteIndexFieldInput{}
  796. }
  797. output = &DeleteIndexFieldOutput{}
  798. req = c.newRequest(op, input, output)
  799. return
  800. }
  801. // DeleteIndexField API operation for Amazon CloudSearch.
  802. //
  803. // Removes an IndexField from the search domain. For more information, see Configuring
  804. // Index Fields (http://docs.aws.amazon.com/cloudsearch/latest/developerguide/configuring-index-fields.html)
  805. // in the Amazon CloudSearch Developer Guide.
  806. //
  807. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  808. // with awserr.Error's Code and Message methods to get detailed information about
  809. // the error.
  810. //
  811. // See the AWS API reference guide for Amazon CloudSearch's
  812. // API operation DeleteIndexField for usage and error information.
  813. //
  814. // Returned Error Codes:
  815. // * ErrCodeBaseException "BaseException"
  816. // An error occurred while processing the request.
  817. //
  818. // * ErrCodeInternalException "InternalException"
  819. // An internal error occurred while processing the request. If this problem
  820. // persists, report an issue from the Service Health Dashboard (http://status.aws.amazon.com/).
  821. //
  822. // * ErrCodeInvalidTypeException "InvalidType"
  823. // The request was rejected because it specified an invalid type definition.
  824. //
  825. // * ErrCodeResourceNotFoundException "ResourceNotFound"
  826. // The request was rejected because it attempted to reference a resource that
  827. // does not exist.
  828. //
  829. func (c *CloudSearch) DeleteIndexField(input *DeleteIndexFieldInput) (*DeleteIndexFieldOutput, error) {
  830. req, out := c.DeleteIndexFieldRequest(input)
  831. return out, req.Send()
  832. }
  833. // DeleteIndexFieldWithContext is the same as DeleteIndexField with the addition of
  834. // the ability to pass a context and additional request options.
  835. //
  836. // See DeleteIndexField for details on how to use this API operation.
  837. //
  838. // The context must be non-nil and will be used for request cancellation. If
  839. // the context is nil a panic will occur. In the future the SDK may create
  840. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  841. // for more information on using Contexts.
  842. func (c *CloudSearch) DeleteIndexFieldWithContext(ctx aws.Context, input *DeleteIndexFieldInput, opts ...request.Option) (*DeleteIndexFieldOutput, error) {
  843. req, out := c.DeleteIndexFieldRequest(input)
  844. req.SetContext(ctx)
  845. req.ApplyOptions(opts...)
  846. return out, req.Send()
  847. }
  848. const opDeleteSuggester = "DeleteSuggester"
  849. // DeleteSuggesterRequest generates a "aws/request.Request" representing the
  850. // client's request for the DeleteSuggester operation. The "output" return
  851. // value will be populated with the request's response once the request completes
  852. // successfully.
  853. //
  854. // Use "Send" method on the returned Request to send the API call to the service.
  855. // the "output" return value is not valid until after Send returns without error.
  856. //
  857. // See DeleteSuggester for more information on using the DeleteSuggester
  858. // API call, and error handling.
  859. //
  860. // This method is useful when you want to inject custom logic or configuration
  861. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  862. //
  863. //
  864. // // Example sending a request using the DeleteSuggesterRequest method.
  865. // req, resp := client.DeleteSuggesterRequest(params)
  866. //
  867. // err := req.Send()
  868. // if err == nil { // resp is now filled
  869. // fmt.Println(resp)
  870. // }
  871. func (c *CloudSearch) DeleteSuggesterRequest(input *DeleteSuggesterInput) (req *request.Request, output *DeleteSuggesterOutput) {
  872. op := &request.Operation{
  873. Name: opDeleteSuggester,
  874. HTTPMethod: "POST",
  875. HTTPPath: "/",
  876. }
  877. if input == nil {
  878. input = &DeleteSuggesterInput{}
  879. }
  880. output = &DeleteSuggesterOutput{}
  881. req = c.newRequest(op, input, output)
  882. return
  883. }
  884. // DeleteSuggester API operation for Amazon CloudSearch.
  885. //
  886. // Deletes a suggester. For more information, see Getting Search Suggestions
  887. // (http://docs.aws.amazon.com/cloudsearch/latest/developerguide/getting-suggestions.html)
  888. // in the Amazon CloudSearch Developer Guide.
  889. //
  890. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  891. // with awserr.Error's Code and Message methods to get detailed information about
  892. // the error.
  893. //
  894. // See the AWS API reference guide for Amazon CloudSearch's
  895. // API operation DeleteSuggester for usage and error information.
  896. //
  897. // Returned Error Codes:
  898. // * ErrCodeBaseException "BaseException"
  899. // An error occurred while processing the request.
  900. //
  901. // * ErrCodeInternalException "InternalException"
  902. // An internal error occurred while processing the request. If this problem
  903. // persists, report an issue from the Service Health Dashboard (http://status.aws.amazon.com/).
  904. //
  905. // * ErrCodeInvalidTypeException "InvalidType"
  906. // The request was rejected because it specified an invalid type definition.
  907. //
  908. // * ErrCodeResourceNotFoundException "ResourceNotFound"
  909. // The request was rejected because it attempted to reference a resource that
  910. // does not exist.
  911. //
  912. func (c *CloudSearch) DeleteSuggester(input *DeleteSuggesterInput) (*DeleteSuggesterOutput, error) {
  913. req, out := c.DeleteSuggesterRequest(input)
  914. return out, req.Send()
  915. }
  916. // DeleteSuggesterWithContext is the same as DeleteSuggester with the addition of
  917. // the ability to pass a context and additional request options.
  918. //
  919. // See DeleteSuggester for details on how to use this API operation.
  920. //
  921. // The context must be non-nil and will be used for request cancellation. If
  922. // the context is nil a panic will occur. In the future the SDK may create
  923. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  924. // for more information on using Contexts.
  925. func (c *CloudSearch) DeleteSuggesterWithContext(ctx aws.Context, input *DeleteSuggesterInput, opts ...request.Option) (*DeleteSuggesterOutput, error) {
  926. req, out := c.DeleteSuggesterRequest(input)
  927. req.SetContext(ctx)
  928. req.ApplyOptions(opts...)
  929. return out, req.Send()
  930. }
  931. const opDescribeAnalysisSchemes = "DescribeAnalysisSchemes"
  932. // DescribeAnalysisSchemesRequest generates a "aws/request.Request" representing the
  933. // client's request for the DescribeAnalysisSchemes operation. The "output" return
  934. // value will be populated with the request's response once the request completes
  935. // successfully.
  936. //
  937. // Use "Send" method on the returned Request to send the API call to the service.
  938. // the "output" return value is not valid until after Send returns without error.
  939. //
  940. // See DescribeAnalysisSchemes for more information on using the DescribeAnalysisSchemes
  941. // API call, and error handling.
  942. //
  943. // This method is useful when you want to inject custom logic or configuration
  944. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  945. //
  946. //
  947. // // Example sending a request using the DescribeAnalysisSchemesRequest method.
  948. // req, resp := client.DescribeAnalysisSchemesRequest(params)
  949. //
  950. // err := req.Send()
  951. // if err == nil { // resp is now filled
  952. // fmt.Println(resp)
  953. // }
  954. func (c *CloudSearch) DescribeAnalysisSchemesRequest(input *DescribeAnalysisSchemesInput) (req *request.Request, output *DescribeAnalysisSchemesOutput) {
  955. op := &request.Operation{
  956. Name: opDescribeAnalysisSchemes,
  957. HTTPMethod: "POST",
  958. HTTPPath: "/",
  959. }
  960. if input == nil {
  961. input = &DescribeAnalysisSchemesInput{}
  962. }
  963. output = &DescribeAnalysisSchemesOutput{}
  964. req = c.newRequest(op, input, output)
  965. return
  966. }
  967. // DescribeAnalysisSchemes API operation for Amazon CloudSearch.
  968. //
  969. // Gets the analysis schemes configured for a domain. An analysis scheme defines
  970. // language-specific text processing options for a text field. Can be limited
  971. // to specific analysis schemes by name. By default, shows all analysis schemes
  972. // and includes any pending changes to the configuration. Set the Deployed option
  973. // to true to show the active configuration and exclude pending changes. For
  974. // more information, see Configuring Analysis Schemes (http://docs.aws.amazon.com/cloudsearch/latest/developerguide/configuring-analysis-schemes.html)
  975. // in the Amazon CloudSearch Developer Guide.
  976. //
  977. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  978. // with awserr.Error's Code and Message methods to get detailed information about
  979. // the error.
  980. //
  981. // See the AWS API reference guide for Amazon CloudSearch's
  982. // API operation DescribeAnalysisSchemes for usage and error information.
  983. //
  984. // Returned Error Codes:
  985. // * ErrCodeBaseException "BaseException"
  986. // An error occurred while processing the request.
  987. //
  988. // * ErrCodeInternalException "InternalException"
  989. // An internal error occurred while processing the request. If this problem
  990. // persists, report an issue from the Service Health Dashboard (http://status.aws.amazon.com/).
  991. //
  992. // * ErrCodeResourceNotFoundException "ResourceNotFound"
  993. // The request was rejected because it attempted to reference a resource that
  994. // does not exist.
  995. //
  996. func (c *CloudSearch) DescribeAnalysisSchemes(input *DescribeAnalysisSchemesInput) (*DescribeAnalysisSchemesOutput, error) {
  997. req, out := c.DescribeAnalysisSchemesRequest(input)
  998. return out, req.Send()
  999. }
  1000. // DescribeAnalysisSchemesWithContext is the same as DescribeAnalysisSchemes with the addition of
  1001. // the ability to pass a context and additional request options.
  1002. //
  1003. // See DescribeAnalysisSchemes for details on how to use this API operation.
  1004. //
  1005. // The context must be non-nil and will be used for request cancellation. If
  1006. // the context is nil a panic will occur. In the future the SDK may create
  1007. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  1008. // for more information on using Contexts.
  1009. func (c *CloudSearch) DescribeAnalysisSchemesWithContext(ctx aws.Context, input *DescribeAnalysisSchemesInput, opts ...request.Option) (*DescribeAnalysisSchemesOutput, error) {
  1010. req, out := c.DescribeAnalysisSchemesRequest(input)
  1011. req.SetContext(ctx)
  1012. req.ApplyOptions(opts...)
  1013. return out, req.Send()
  1014. }
  1015. const opDescribeAvailabilityOptions = "DescribeAvailabilityOptions"
  1016. // DescribeAvailabilityOptionsRequest generates a "aws/request.Request" representing the
  1017. // client's request for the DescribeAvailabilityOptions operation. The "output" return
  1018. // value will be populated with the request's response once the request completes
  1019. // successfully.
  1020. //
  1021. // Use "Send" method on the returned Request to send the API call to the service.
  1022. // the "output" return value is not valid until after Send returns without error.
  1023. //
  1024. // See DescribeAvailabilityOptions for more information on using the DescribeAvailabilityOptions
  1025. // API call, and error handling.
  1026. //
  1027. // This method is useful when you want to inject custom logic or configuration
  1028. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  1029. //
  1030. //
  1031. // // Example sending a request using the DescribeAvailabilityOptionsRequest method.
  1032. // req, resp := client.DescribeAvailabilityOptionsRequest(params)
  1033. //
  1034. // err := req.Send()
  1035. // if err == nil { // resp is now filled
  1036. // fmt.Println(resp)
  1037. // }
  1038. func (c *CloudSearch) DescribeAvailabilityOptionsRequest(input *DescribeAvailabilityOptionsInput) (req *request.Request, output *DescribeAvailabilityOptionsOutput) {
  1039. op := &request.Operation{
  1040. Name: opDescribeAvailabilityOptions,
  1041. HTTPMethod: "POST",
  1042. HTTPPath: "/",
  1043. }
  1044. if input == nil {
  1045. input = &DescribeAvailabilityOptionsInput{}
  1046. }
  1047. output = &DescribeAvailabilityOptionsOutput{}
  1048. req = c.newRequest(op, input, output)
  1049. return
  1050. }
  1051. // DescribeAvailabilityOptions API operation for Amazon CloudSearch.
  1052. //
  1053. // Gets the availability options configured for a domain. By default, shows
  1054. // the configuration with any pending changes. Set the Deployed option to true
  1055. // to show the active configuration and exclude pending changes. For more information,
  1056. // see Configuring Availability Options (http://docs.aws.amazon.com/cloudsearch/latest/developerguide/configuring-availability-options.html)
  1057. // in the Amazon CloudSearch Developer Guide.
  1058. //
  1059. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  1060. // with awserr.Error's Code and Message methods to get detailed information about
  1061. // the error.
  1062. //
  1063. // See the AWS API reference guide for Amazon CloudSearch's
  1064. // API operation DescribeAvailabilityOptions for usage and error information.
  1065. //
  1066. // Returned Error Codes:
  1067. // * ErrCodeBaseException "BaseException"
  1068. // An error occurred while processing the request.
  1069. //
  1070. // * ErrCodeInternalException "InternalException"
  1071. // An internal error occurred while processing the request. If this problem
  1072. // persists, report an issue from the Service Health Dashboard (http://status.aws.amazon.com/).
  1073. //
  1074. // * ErrCodeInvalidTypeException "InvalidType"
  1075. // The request was rejected because it specified an invalid type definition.
  1076. //
  1077. // * ErrCodeLimitExceededException "LimitExceeded"
  1078. // The request was rejected because a resource limit has already been met.
  1079. //
  1080. // * ErrCodeResourceNotFoundException "ResourceNotFound"
  1081. // The request was rejected because it attempted to reference a resource that
  1082. // does not exist.
  1083. //
  1084. // * ErrCodeDisabledOperationException "DisabledAction"
  1085. // The request was rejected because it attempted an operation which is not enabled.
  1086. //
  1087. func (c *CloudSearch) DescribeAvailabilityOptions(input *DescribeAvailabilityOptionsInput) (*DescribeAvailabilityOptionsOutput, error) {
  1088. req, out := c.DescribeAvailabilityOptionsRequest(input)
  1089. return out, req.Send()
  1090. }
  1091. // DescribeAvailabilityOptionsWithContext is the same as DescribeAvailabilityOptions with the addition of
  1092. // the ability to pass a context and additional request options.
  1093. //
  1094. // See DescribeAvailabilityOptions for details on how to use this API operation.
  1095. //
  1096. // The context must be non-nil and will be used for request cancellation. If
  1097. // the context is nil a panic will occur. In the future the SDK may create
  1098. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  1099. // for more information on using Contexts.
  1100. func (c *CloudSearch) DescribeAvailabilityOptionsWithContext(ctx aws.Context, input *DescribeAvailabilityOptionsInput, opts ...request.Option) (*DescribeAvailabilityOptionsOutput, error) {
  1101. req, out := c.DescribeAvailabilityOptionsRequest(input)
  1102. req.SetContext(ctx)
  1103. req.ApplyOptions(opts...)
  1104. return out, req.Send()
  1105. }
  1106. const opDescribeDomains = "DescribeDomains"
  1107. // DescribeDomainsRequest generates a "aws/request.Request" representing the
  1108. // client's request for the DescribeDomains operation. The "output" return
  1109. // value will be populated with the request's response once the request completes
  1110. // successfully.
  1111. //
  1112. // Use "Send" method on the returned Request to send the API call to the service.
  1113. // the "output" return value is not valid until after Send returns without error.
  1114. //
  1115. // See DescribeDomains for more information on using the DescribeDomains
  1116. // API call, and error handling.
  1117. //
  1118. // This method is useful when you want to inject custom logic or configuration
  1119. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  1120. //
  1121. //
  1122. // // Example sending a request using the DescribeDomainsRequest method.
  1123. // req, resp := client.DescribeDomainsRequest(params)
  1124. //
  1125. // err := req.Send()
  1126. // if err == nil { // resp is now filled
  1127. // fmt.Println(resp)
  1128. // }
  1129. func (c *CloudSearch) DescribeDomainsRequest(input *DescribeDomainsInput) (req *request.Request, output *DescribeDomainsOutput) {
  1130. op := &request.Operation{
  1131. Name: opDescribeDomains,
  1132. HTTPMethod: "POST",
  1133. HTTPPath: "/",
  1134. }
  1135. if input == nil {
  1136. input = &DescribeDomainsInput{}
  1137. }
  1138. output = &DescribeDomainsOutput{}
  1139. req = c.newRequest(op, input, output)
  1140. return
  1141. }
  1142. // DescribeDomains API operation for Amazon CloudSearch.
  1143. //
  1144. // Gets information about the search domains owned by this account. Can be limited
  1145. // to specific domains. Shows all domains by default. To get the number of searchable
  1146. // documents in a domain, use the console or submit a matchall request to your
  1147. // domain's search endpoint: q=matchall&q.parser=structured&size=0.
  1148. // For more information, see Getting Information about a Search Domain (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 DescribeDomains for usage and error information.
  1157. //
  1158. // Returned Error Codes:
  1159. // * ErrCodeBaseException "BaseException"
  1160. // An error occurred while processing the request.
  1161. //
  1162. // * ErrCodeInternalException "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. func (c *CloudSearch) DescribeDomains(input *DescribeDomainsInput) (*DescribeDomainsOutput, error) {
  1167. req, out := c.DescribeDomainsRequest(input)
  1168. return out, req.Send()
  1169. }
  1170. // DescribeDomainsWithContext is the same as DescribeDomains with the addition of
  1171. // the ability to pass a context and additional request options.
  1172. //
  1173. // See DescribeDomains for details on how to use this API operation.
  1174. //
  1175. // The context must be non-nil and will be used for request cancellation. If
  1176. // the context is nil a panic will occur. In the future the SDK may create
  1177. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  1178. // for more information on using Contexts.
  1179. func (c *CloudSearch) DescribeDomainsWithContext(ctx aws.Context, input *DescribeDomainsInput, opts ...request.Option) (*DescribeDomainsOutput, error) {
  1180. req, out := c.DescribeDomainsRequest(input)
  1181. req.SetContext(ctx)
  1182. req.ApplyOptions(opts...)
  1183. return out, req.Send()
  1184. }
  1185. const opDescribeExpressions = "DescribeExpressions"
  1186. // DescribeExpressionsRequest generates a "aws/request.Request" representing the
  1187. // client's request for the DescribeExpressions operation. The "output" return
  1188. // value will be populated with the request's response once the request completes
  1189. // successfully.
  1190. //
  1191. // Use "Send" method on the returned Request to send the API call to the service.
  1192. // the "output" return value is not valid until after Send returns without error.
  1193. //
  1194. // See DescribeExpressions for more information on using the DescribeExpressions
  1195. // API call, and error handling.
  1196. //
  1197. // This method is useful when you want to inject custom logic or configuration
  1198. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  1199. //
  1200. //
  1201. // // Example sending a request using the DescribeExpressionsRequest method.
  1202. // req, resp := client.DescribeExpressionsRequest(params)
  1203. //
  1204. // err := req.Send()
  1205. // if err == nil { // resp is now filled
  1206. // fmt.Println(resp)
  1207. // }
  1208. func (c *CloudSearch) DescribeExpressionsRequest(input *DescribeExpressionsInput) (req *request.Request, output *DescribeExpressionsOutput) {
  1209. op := &request.Operation{
  1210. Name: opDescribeExpressions,
  1211. HTTPMethod: "POST",
  1212. HTTPPath: "/",
  1213. }
  1214. if input == nil {
  1215. input = &DescribeExpressionsInput{}
  1216. }
  1217. output = &DescribeExpressionsOutput{}
  1218. req = c.newRequest(op, input, output)
  1219. return
  1220. }
  1221. // DescribeExpressions API operation for Amazon CloudSearch.
  1222. //
  1223. // Gets the expressions configured for the search domain. Can be limited to
  1224. // specific expressions by name. By default, shows all expressions and includes
  1225. // any pending changes to the configuration. Set the Deployed option to true
  1226. // to show the active configuration and exclude pending changes. For more information,
  1227. // see Configuring Expressions (http://docs.aws.amazon.com/cloudsearch/latest/developerguide/configuring-expressions.html)
  1228. // in the Amazon CloudSearch Developer Guide.
  1229. //
  1230. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  1231. // with awserr.Error's Code and Message methods to get detailed information about
  1232. // the error.
  1233. //
  1234. // See the AWS API reference guide for Amazon CloudSearch's
  1235. // API operation DescribeExpressions for usage and error information.
  1236. //
  1237. // Returned Error Codes:
  1238. // * ErrCodeBaseException "BaseException"
  1239. // An error occurred while processing the request.
  1240. //
  1241. // * ErrCodeInternalException "InternalException"
  1242. // An internal error occurred while processing the request. If this problem
  1243. // persists, report an issue from the Service Health Dashboard (http://status.aws.amazon.com/).
  1244. //
  1245. // * ErrCodeResourceNotFoundException "ResourceNotFound"
  1246. // The request was rejected because it attempted to reference a resource that
  1247. // does not exist.
  1248. //
  1249. func (c *CloudSearch) DescribeExpressions(input *DescribeExpressionsInput) (*DescribeExpressionsOutput, error) {
  1250. req, out := c.DescribeExpressionsRequest(input)
  1251. return out, req.Send()
  1252. }
  1253. // DescribeExpressionsWithContext is the same as DescribeExpressions with the addition of
  1254. // the ability to pass a context and additional request options.
  1255. //
  1256. // See DescribeExpressions for details on how to use this API operation.
  1257. //
  1258. // The context must be non-nil and will be used for request cancellation. If
  1259. // the context is nil a panic will occur. In the future the SDK may create
  1260. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  1261. // for more information on using Contexts.
  1262. func (c *CloudSearch) DescribeExpressionsWithContext(ctx aws.Context, input *DescribeExpressionsInput, opts ...request.Option) (*DescribeExpressionsOutput, error) {
  1263. req, out := c.DescribeExpressionsRequest(input)
  1264. req.SetContext(ctx)
  1265. req.ApplyOptions(opts...)
  1266. return out, req.Send()
  1267. }
  1268. const opDescribeIndexFields = "DescribeIndexFields"
  1269. // DescribeIndexFieldsRequest generates a "aws/request.Request" representing the
  1270. // client's request for the DescribeIndexFields operation. The "output" return
  1271. // value will be populated with the request's response once the request completes
  1272. // successfully.
  1273. //
  1274. // Use "Send" method on the returned Request to send the API call to the service.
  1275. // the "output" return value is not valid until after Send returns without error.
  1276. //
  1277. // See DescribeIndexFields for more information on using the DescribeIndexFields
  1278. // API call, and error handling.
  1279. //
  1280. // This method is useful when you want to inject custom logic or configuration
  1281. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  1282. //
  1283. //
  1284. // // Example sending a request using the DescribeIndexFieldsRequest method.
  1285. // req, resp := client.DescribeIndexFieldsRequest(params)
  1286. //
  1287. // err := req.Send()
  1288. // if err == nil { // resp is now filled
  1289. // fmt.Println(resp)
  1290. // }
  1291. func (c *CloudSearch) DescribeIndexFieldsRequest(input *DescribeIndexFieldsInput) (req *request.Request, output *DescribeIndexFieldsOutput) {
  1292. op := &request.Operation{
  1293. Name: opDescribeIndexFields,
  1294. HTTPMethod: "POST",
  1295. HTTPPath: "/",
  1296. }
  1297. if input == nil {
  1298. input = &DescribeIndexFieldsInput{}
  1299. }
  1300. output = &DescribeIndexFieldsOutput{}
  1301. req = c.newRequest(op, input, output)
  1302. return
  1303. }
  1304. // DescribeIndexFields API operation for Amazon CloudSearch.
  1305. //
  1306. // Gets information about the index fields configured for the search domain.
  1307. // Can be limited to specific fields by name. By default, shows all fields and
  1308. // includes any pending changes to the configuration. Set the Deployed option
  1309. // to true to show the active configuration and exclude pending changes. For
  1310. // more information, see Getting Domain Information (http://docs.aws.amazon.com/cloudsearch/latest/developerguide/getting-domain-info.html)
  1311. // in the Amazon CloudSearch Developer Guide.
  1312. //
  1313. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  1314. // with awserr.Error's Code and Message methods to get detailed information about
  1315. // the error.
  1316. //
  1317. // See the AWS API reference guide for Amazon CloudSearch's
  1318. // API operation DescribeIndexFields for usage and error information.
  1319. //
  1320. // Returned Error Codes:
  1321. // * ErrCodeBaseException "BaseException"
  1322. // An error occurred while processing the request.
  1323. //
  1324. // * ErrCodeInternalException "InternalException"
  1325. // An internal error occurred while processing the request. If this problem
  1326. // persists, report an issue from the Service Health Dashboard (http://status.aws.amazon.com/).
  1327. //
  1328. // * ErrCodeResourceNotFoundException "ResourceNotFound"
  1329. // The request was rejected because it attempted to reference a resource that
  1330. // does not exist.
  1331. //
  1332. func (c *CloudSearch) DescribeIndexFields(input *DescribeIndexFieldsInput) (*DescribeIndexFieldsOutput, error) {
  1333. req, out := c.DescribeIndexFieldsRequest(input)
  1334. return out, req.Send()
  1335. }
  1336. // DescribeIndexFieldsWithContext is the same as DescribeIndexFields with the addition of
  1337. // the ability to pass a context and additional request options.
  1338. //
  1339. // See DescribeIndexFields for details on how to use this API operation.
  1340. //
  1341. // The context must be non-nil and will be used for request cancellation. If
  1342. // the context is nil a panic will occur. In the future the SDK may create
  1343. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  1344. // for more information on using Contexts.
  1345. func (c *CloudSearch) DescribeIndexFieldsWithContext(ctx aws.Context, input *DescribeIndexFieldsInput, opts ...request.Option) (*DescribeIndexFieldsOutput, error) {
  1346. req, out := c.DescribeIndexFieldsRequest(input)
  1347. req.SetContext(ctx)
  1348. req.ApplyOptions(opts...)
  1349. return out, req.Send()
  1350. }
  1351. const opDescribeScalingParameters = "DescribeScalingParameters"
  1352. // DescribeScalingParametersRequest generates a "aws/request.Request" representing the
  1353. // client's request for the DescribeScalingParameters operation. The "output" return
  1354. // value will be populated with the request's response once the request completes
  1355. // successfully.
  1356. //
  1357. // Use "Send" method on the returned Request to send the API call to the service.
  1358. // the "output" return value is not valid until after Send returns without error.
  1359. //
  1360. // See DescribeScalingParameters for more information on using the DescribeScalingParameters
  1361. // API call, and error handling.
  1362. //
  1363. // This method is useful when you want to inject custom logic or configuration
  1364. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  1365. //
  1366. //
  1367. // // Example sending a request using the DescribeScalingParametersRequest method.
  1368. // req, resp := client.DescribeScalingParametersRequest(params)
  1369. //
  1370. // err := req.Send()
  1371. // if err == nil { // resp is now filled
  1372. // fmt.Println(resp)
  1373. // }
  1374. func (c *CloudSearch) DescribeScalingParametersRequest(input *DescribeScalingParametersInput) (req *request.Request, output *DescribeScalingParametersOutput) {
  1375. op := &request.Operation{
  1376. Name: opDescribeScalingParameters,
  1377. HTTPMethod: "POST",
  1378. HTTPPath: "/",
  1379. }
  1380. if input == nil {
  1381. input = &DescribeScalingParametersInput{}
  1382. }
  1383. output = &DescribeScalingParametersOutput{}
  1384. req = c.newRequest(op, input, output)
  1385. return
  1386. }
  1387. // DescribeScalingParameters API operation for Amazon CloudSearch.
  1388. //
  1389. // Gets the scaling parameters configured for a domain. A domain's scaling parameters
  1390. // specify the desired search instance type and replication count. For more
  1391. // information, see Configuring Scaling Options (http://docs.aws.amazon.com/cloudsearch/latest/developerguide/configuring-scaling-options.html)
  1392. // in the Amazon CloudSearch Developer Guide.
  1393. //
  1394. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  1395. // with awserr.Error's Code and Message methods to get detailed information about
  1396. // the error.
  1397. //
  1398. // See the AWS API reference guide for Amazon CloudSearch's
  1399. // API operation DescribeScalingParameters for usage and error information.
  1400. //
  1401. // Returned Error Codes:
  1402. // * ErrCodeBaseException "BaseException"
  1403. // An error occurred while processing the request.
  1404. //
  1405. // * ErrCodeInternalException "InternalException"
  1406. // An internal error occurred while processing the request. If this problem
  1407. // persists, report an issue from the Service Health Dashboard (http://status.aws.amazon.com/).
  1408. //
  1409. // * ErrCodeResourceNotFoundException "ResourceNotFound"
  1410. // The request was rejected because it attempted to reference a resource that
  1411. // does not exist.
  1412. //
  1413. func (c *CloudSearch) DescribeScalingParameters(input *DescribeScalingParametersInput) (*DescribeScalingParametersOutput, error) {
  1414. req, out := c.DescribeScalingParametersRequest(input)
  1415. return out, req.Send()
  1416. }
  1417. // DescribeScalingParametersWithContext is the same as DescribeScalingParameters with the addition of
  1418. // the ability to pass a context and additional request options.
  1419. //
  1420. // See DescribeScalingParameters for details on how to use this API operation.
  1421. //
  1422. // The context must be non-nil and will be used for request cancellation. If
  1423. // the context is nil a panic will occur. In the future the SDK may create
  1424. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  1425. // for more information on using Contexts.
  1426. func (c *CloudSearch) DescribeScalingParametersWithContext(ctx aws.Context, input *DescribeScalingParametersInput, opts ...request.Option) (*DescribeScalingParametersOutput, error) {
  1427. req, out := c.DescribeScalingParametersRequest(input)
  1428. req.SetContext(ctx)
  1429. req.ApplyOptions(opts...)
  1430. return out, req.Send()
  1431. }
  1432. const opDescribeServiceAccessPolicies = "DescribeServiceAccessPolicies"
  1433. // DescribeServiceAccessPoliciesRequest generates a "aws/request.Request" representing the
  1434. // client's request for the DescribeServiceAccessPolicies operation. The "output" return
  1435. // value will be populated with the request's response once the request completes
  1436. // successfully.
  1437. //
  1438. // Use "Send" method on the returned Request to send the API call to the service.
  1439. // the "output" return value is not valid until after Send returns without error.
  1440. //
  1441. // See DescribeServiceAccessPolicies for more information on using the DescribeServiceAccessPolicies
  1442. // API call, and error handling.
  1443. //
  1444. // This method is useful when you want to inject custom logic or configuration
  1445. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  1446. //
  1447. //
  1448. // // Example sending a request using the DescribeServiceAccessPoliciesRequest method.
  1449. // req, resp := client.DescribeServiceAccessPoliciesRequest(params)
  1450. //
  1451. // err := req.Send()
  1452. // if err == nil { // resp is now filled
  1453. // fmt.Println(resp)
  1454. // }
  1455. func (c *CloudSearch) DescribeServiceAccessPoliciesRequest(input *DescribeServiceAccessPoliciesInput) (req *request.Request, output *DescribeServiceAccessPoliciesOutput) {
  1456. op := &request.Operation{
  1457. Name: opDescribeServiceAccessPolicies,
  1458. HTTPMethod: "POST",
  1459. HTTPPath: "/",
  1460. }
  1461. if input == nil {
  1462. input = &DescribeServiceAccessPoliciesInput{}
  1463. }
  1464. output = &DescribeServiceAccessPoliciesOutput{}
  1465. req = c.newRequest(op, input, output)
  1466. return
  1467. }
  1468. // DescribeServiceAccessPolicies API operation for Amazon CloudSearch.
  1469. //
  1470. // Gets information about the access policies that control access to the domain's
  1471. // document and search endpoints. By default, shows the configuration with any
  1472. // pending changes. Set the Deployed option to true to show the active configuration
  1473. // and exclude pending changes. For more information, see Configuring Access
  1474. // for a Search Domain (http://docs.aws.amazon.com/cloudsearch/latest/developerguide/configuring-access.html)
  1475. // in the Amazon CloudSearch Developer Guide.
  1476. //
  1477. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  1478. // with awserr.Error's Code and Message methods to get detailed information about
  1479. // the error.
  1480. //
  1481. // See the AWS API reference guide for Amazon CloudSearch's
  1482. // API operation DescribeServiceAccessPolicies for usage and error information.
  1483. //
  1484. // Returned Error Codes:
  1485. // * ErrCodeBaseException "BaseException"
  1486. // An error occurred while processing the request.
  1487. //
  1488. // * ErrCodeInternalException "InternalException"
  1489. // An internal error occurred while processing the request. If this problem
  1490. // persists, report an issue from the Service Health Dashboard (http://status.aws.amazon.com/).
  1491. //
  1492. // * ErrCodeResourceNotFoundException "ResourceNotFound"
  1493. // The request was rejected because it attempted to reference a resource that
  1494. // does not exist.
  1495. //
  1496. func (c *CloudSearch) DescribeServiceAccessPolicies(input *DescribeServiceAccessPoliciesInput) (*DescribeServiceAccessPoliciesOutput, error) {
  1497. req, out := c.DescribeServiceAccessPoliciesRequest(input)
  1498. return out, req.Send()
  1499. }
  1500. // DescribeServiceAccessPoliciesWithContext is the same as DescribeServiceAccessPolicies with the addition of
  1501. // the ability to pass a context and additional request options.
  1502. //
  1503. // See DescribeServiceAccessPolicies for details on how to use this API operation.
  1504. //
  1505. // The context must be non-nil and will be used for request cancellation. If
  1506. // the context is nil a panic will occur. In the future the SDK may create
  1507. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  1508. // for more information on using Contexts.
  1509. func (c *CloudSearch) DescribeServiceAccessPoliciesWithContext(ctx aws.Context, input *DescribeServiceAccessPoliciesInput, opts ...request.Option) (*DescribeServiceAccessPoliciesOutput, error) {
  1510. req, out := c.DescribeServiceAccessPoliciesRequest(input)
  1511. req.SetContext(ctx)
  1512. req.ApplyOptions(opts...)
  1513. return out, req.Send()
  1514. }
  1515. const opDescribeSuggesters = "DescribeSuggesters"
  1516. // DescribeSuggestersRequest generates a "aws/request.Request" representing the
  1517. // client's request for the DescribeSuggesters operation. The "output" return
  1518. // value will be populated with the request's response once the request completes
  1519. // successfully.
  1520. //
  1521. // Use "Send" method on the returned Request to send the API call to the service.
  1522. // the "output" return value is not valid until after Send returns without error.
  1523. //
  1524. // See DescribeSuggesters for more information on using the DescribeSuggesters
  1525. // API call, and error handling.
  1526. //
  1527. // This method is useful when you want to inject custom logic or configuration
  1528. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  1529. //
  1530. //
  1531. // // Example sending a request using the DescribeSuggestersRequest method.
  1532. // req, resp := client.DescribeSuggestersRequest(params)
  1533. //
  1534. // err := req.Send()
  1535. // if err == nil { // resp is now filled
  1536. // fmt.Println(resp)
  1537. // }
  1538. func (c *CloudSearch) DescribeSuggestersRequest(input *DescribeSuggestersInput) (req *request.Request, output *DescribeSuggestersOutput) {
  1539. op := &request.Operation{
  1540. Name: opDescribeSuggesters,
  1541. HTTPMethod: "POST",
  1542. HTTPPath: "/",
  1543. }
  1544. if input == nil {
  1545. input = &DescribeSuggestersInput{}
  1546. }
  1547. output = &DescribeSuggestersOutput{}
  1548. req = c.newRequest(op, input, output)
  1549. return
  1550. }
  1551. // DescribeSuggesters API operation for Amazon CloudSearch.
  1552. //
  1553. // Gets the suggesters configured for a domain. A suggester enables you to display
  1554. // possible matches before users finish typing their queries. Can be limited
  1555. // to specific suggesters by name. By default, shows all suggesters and includes
  1556. // any pending changes to the configuration. Set the Deployed option to true
  1557. // to show the active configuration and exclude pending changes. For more information,
  1558. // see Getting Search Suggestions (http://docs.aws.amazon.com/cloudsearch/latest/developerguide/getting-suggestions.html)
  1559. // in the Amazon CloudSearch Developer Guide.
  1560. //
  1561. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  1562. // with awserr.Error's Code and Message methods to get detailed information about
  1563. // the error.
  1564. //
  1565. // See the AWS API reference guide for Amazon CloudSearch's
  1566. // API operation DescribeSuggesters for usage and error information.
  1567. //
  1568. // Returned Error Codes:
  1569. // * ErrCodeBaseException "BaseException"
  1570. // An error occurred while processing the request.
  1571. //
  1572. // * ErrCodeInternalException "InternalException"
  1573. // An internal error occurred while processing the request. If this problem
  1574. // persists, report an issue from the Service Health Dashboard (http://status.aws.amazon.com/).
  1575. //
  1576. // * ErrCodeResourceNotFoundException "ResourceNotFound"
  1577. // The request was rejected because it attempted to reference a resource that
  1578. // does not exist.
  1579. //
  1580. func (c *CloudSearch) DescribeSuggesters(input *DescribeSuggestersInput) (*DescribeSuggestersOutput, error) {
  1581. req, out := c.DescribeSuggestersRequest(input)
  1582. return out, req.Send()
  1583. }
  1584. // DescribeSuggestersWithContext is the same as DescribeSuggesters with the addition of
  1585. // the ability to pass a context and additional request options.
  1586. //
  1587. // See DescribeSuggesters for details on how to use this API operation.
  1588. //
  1589. // The context must be non-nil and will be used for request cancellation. If
  1590. // the context is nil a panic will occur. In the future the SDK may create
  1591. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  1592. // for more information on using Contexts.
  1593. func (c *CloudSearch) DescribeSuggestersWithContext(ctx aws.Context, input *DescribeSuggestersInput, opts ...request.Option) (*DescribeSuggestersOutput, error) {
  1594. req, out := c.DescribeSuggestersRequest(input)
  1595. req.SetContext(ctx)
  1596. req.ApplyOptions(opts...)
  1597. return out, req.Send()
  1598. }
  1599. const opIndexDocuments = "IndexDocuments"
  1600. // IndexDocumentsRequest generates a "aws/request.Request" representing the
  1601. // client's request for the IndexDocuments operation. The "output" return
  1602. // value will be populated with the request's response once the request completes
  1603. // successfully.
  1604. //
  1605. // Use "Send" method on the returned Request to send the API call to the service.
  1606. // the "output" return value is not valid until after Send returns without error.
  1607. //
  1608. // See IndexDocuments for more information on using the IndexDocuments
  1609. // API call, and error handling.
  1610. //
  1611. // This method is useful when you want to inject custom logic or configuration
  1612. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  1613. //
  1614. //
  1615. // // Example sending a request using the IndexDocumentsRequest method.
  1616. // req, resp := client.IndexDocumentsRequest(params)
  1617. //
  1618. // err := req.Send()
  1619. // if err == nil { // resp is now filled
  1620. // fmt.Println(resp)
  1621. // }
  1622. func (c *CloudSearch) IndexDocumentsRequest(input *IndexDocumentsInput) (req *request.Request, output *IndexDocumentsOutput) {
  1623. op := &request.Operation{
  1624. Name: opIndexDocuments,
  1625. HTTPMethod: "POST",
  1626. HTTPPath: "/",
  1627. }
  1628. if input == nil {
  1629. input = &IndexDocumentsInput{}
  1630. }
  1631. output = &IndexDocumentsOutput{}
  1632. req = c.newRequest(op, input, output)
  1633. return
  1634. }
  1635. // IndexDocuments API operation for Amazon CloudSearch.
  1636. //
  1637. // Tells the search domain to start indexing its documents using the latest
  1638. // indexing options. This operation must be invoked to activate options whose
  1639. // OptionStatus is RequiresIndexDocuments.
  1640. //
  1641. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  1642. // with awserr.Error's Code and Message methods to get detailed information about
  1643. // the error.
  1644. //
  1645. // See the AWS API reference guide for Amazon CloudSearch's
  1646. // API operation IndexDocuments for usage and error information.
  1647. //
  1648. // Returned Error Codes:
  1649. // * ErrCodeBaseException "BaseException"
  1650. // An error occurred while processing the request.
  1651. //
  1652. // * ErrCodeInternalException "InternalException"
  1653. // An internal error occurred while processing the request. If this problem
  1654. // persists, report an issue from the Service Health Dashboard (http://status.aws.amazon.com/).
  1655. //
  1656. // * ErrCodeResourceNotFoundException "ResourceNotFound"
  1657. // The request was rejected because it attempted to reference a resource that
  1658. // does not exist.
  1659. //
  1660. func (c *CloudSearch) IndexDocuments(input *IndexDocumentsInput) (*IndexDocumentsOutput, error) {
  1661. req, out := c.IndexDocumentsRequest(input)
  1662. return out, req.Send()
  1663. }
  1664. // IndexDocumentsWithContext is the same as IndexDocuments with the addition of
  1665. // the ability to pass a context and additional request options.
  1666. //
  1667. // See IndexDocuments for details on how to use this API operation.
  1668. //
  1669. // The context must be non-nil and will be used for request cancellation. If
  1670. // the context is nil a panic will occur. In the future the SDK may create
  1671. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  1672. // for more information on using Contexts.
  1673. func (c *CloudSearch) IndexDocumentsWithContext(ctx aws.Context, input *IndexDocumentsInput, opts ...request.Option) (*IndexDocumentsOutput, error) {
  1674. req, out := c.IndexDocumentsRequest(input)
  1675. req.SetContext(ctx)
  1676. req.ApplyOptions(opts...)
  1677. return out, req.Send()
  1678. }
  1679. const opListDomainNames = "ListDomainNames"
  1680. // ListDomainNamesRequest generates a "aws/request.Request" representing the
  1681. // client's request for the ListDomainNames operation. The "output" return
  1682. // value will be populated with the request's response once the request completes
  1683. // successfully.
  1684. //
  1685. // Use "Send" method on the returned Request to send the API call to the service.
  1686. // the "output" return value is not valid until after Send returns without error.
  1687. //
  1688. // See ListDomainNames for more information on using the ListDomainNames
  1689. // API call, and error handling.
  1690. //
  1691. // This method is useful when you want to inject custom logic or configuration
  1692. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  1693. //
  1694. //
  1695. // // Example sending a request using the ListDomainNamesRequest method.
  1696. // req, resp := client.ListDomainNamesRequest(params)
  1697. //
  1698. // err := req.Send()
  1699. // if err == nil { // resp is now filled
  1700. // fmt.Println(resp)
  1701. // }
  1702. func (c *CloudSearch) ListDomainNamesRequest(input *ListDomainNamesInput) (req *request.Request, output *ListDomainNamesOutput) {
  1703. op := &request.Operation{
  1704. Name: opListDomainNames,
  1705. HTTPMethod: "POST",
  1706. HTTPPath: "/",
  1707. }
  1708. if input == nil {
  1709. input = &ListDomainNamesInput{}
  1710. }
  1711. output = &ListDomainNamesOutput{}
  1712. req = c.newRequest(op, input, output)
  1713. return
  1714. }
  1715. // ListDomainNames API operation for Amazon CloudSearch.
  1716. //
  1717. // Lists all search domains owned by an account.
  1718. //
  1719. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  1720. // with awserr.Error's Code and Message methods to get detailed information about
  1721. // the error.
  1722. //
  1723. // See the AWS API reference guide for Amazon CloudSearch's
  1724. // API operation ListDomainNames for usage and error information.
  1725. //
  1726. // Returned Error Codes:
  1727. // * ErrCodeBaseException "BaseException"
  1728. // An error occurred while processing the request.
  1729. //
  1730. func (c *CloudSearch) ListDomainNames(input *ListDomainNamesInput) (*ListDomainNamesOutput, error) {
  1731. req, out := c.ListDomainNamesRequest(input)
  1732. return out, req.Send()
  1733. }
  1734. // ListDomainNamesWithContext is the same as ListDomainNames with the addition of
  1735. // the ability to pass a context and additional request options.
  1736. //
  1737. // See ListDomainNames for details on how to use this API operation.
  1738. //
  1739. // The context must be non-nil and will be used for request cancellation. If
  1740. // the context is nil a panic will occur. In the future the SDK may create
  1741. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  1742. // for more information on using Contexts.
  1743. func (c *CloudSearch) ListDomainNamesWithContext(ctx aws.Context, input *ListDomainNamesInput, opts ...request.Option) (*ListDomainNamesOutput, error) {
  1744. req, out := c.ListDomainNamesRequest(input)
  1745. req.SetContext(ctx)
  1746. req.ApplyOptions(opts...)
  1747. return out, req.Send()
  1748. }
  1749. const opUpdateAvailabilityOptions = "UpdateAvailabilityOptions"
  1750. // UpdateAvailabilityOptionsRequest generates a "aws/request.Request" representing the
  1751. // client's request for the UpdateAvailabilityOptions operation. The "output" return
  1752. // value will be populated with the request's response once the request completes
  1753. // successfully.
  1754. //
  1755. // Use "Send" method on the returned Request to send the API call to the service.
  1756. // the "output" return value is not valid until after Send returns without error.
  1757. //
  1758. // See UpdateAvailabilityOptions for more information on using the UpdateAvailabilityOptions
  1759. // API call, and error handling.
  1760. //
  1761. // This method is useful when you want to inject custom logic or configuration
  1762. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  1763. //
  1764. //
  1765. // // Example sending a request using the UpdateAvailabilityOptionsRequest method.
  1766. // req, resp := client.UpdateAvailabilityOptionsRequest(params)
  1767. //
  1768. // err := req.Send()
  1769. // if err == nil { // resp is now filled
  1770. // fmt.Println(resp)
  1771. // }
  1772. func (c *CloudSearch) UpdateAvailabilityOptionsRequest(input *UpdateAvailabilityOptionsInput) (req *request.Request, output *UpdateAvailabilityOptionsOutput) {
  1773. op := &request.Operation{
  1774. Name: opUpdateAvailabilityOptions,
  1775. HTTPMethod: "POST",
  1776. HTTPPath: "/",
  1777. }
  1778. if input == nil {
  1779. input = &UpdateAvailabilityOptionsInput{}
  1780. }
  1781. output = &UpdateAvailabilityOptionsOutput{}
  1782. req = c.newRequest(op, input, output)
  1783. return
  1784. }
  1785. // UpdateAvailabilityOptions API operation for Amazon CloudSearch.
  1786. //
  1787. // Configures the availability options for a domain. Enabling the Multi-AZ option
  1788. // expands an Amazon CloudSearch domain to an additional Availability Zone in
  1789. // the same Region to increase fault tolerance in the event of a service disruption.
  1790. // Changes to the Multi-AZ option can take about half an hour to become active.
  1791. // For more information, see Configuring Availability Options (http://docs.aws.amazon.com/cloudsearch/latest/developerguide/configuring-availability-options.html)
  1792. // in the Amazon CloudSearch Developer Guide.
  1793. //
  1794. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  1795. // with awserr.Error's Code and Message methods to get detailed information about
  1796. // the error.
  1797. //
  1798. // See the AWS API reference guide for Amazon CloudSearch's
  1799. // API operation UpdateAvailabilityOptions for usage and error information.
  1800. //
  1801. // Returned Error Codes:
  1802. // * ErrCodeBaseException "BaseException"
  1803. // An error occurred while processing the request.
  1804. //
  1805. // * ErrCodeInternalException "InternalException"
  1806. // An internal error occurred while processing the request. If this problem
  1807. // persists, report an issue from the Service Health Dashboard (http://status.aws.amazon.com/).
  1808. //
  1809. // * ErrCodeInvalidTypeException "InvalidType"
  1810. // The request was rejected because it specified an invalid type definition.
  1811. //
  1812. // * ErrCodeLimitExceededException "LimitExceeded"
  1813. // The request was rejected because a resource limit has already been met.
  1814. //
  1815. // * ErrCodeResourceNotFoundException "ResourceNotFound"
  1816. // The request was rejected because it attempted to reference a resource that
  1817. // does not exist.
  1818. //
  1819. // * ErrCodeDisabledOperationException "DisabledAction"
  1820. // The request was rejected because it attempted an operation which is not enabled.
  1821. //
  1822. func (c *CloudSearch) UpdateAvailabilityOptions(input *UpdateAvailabilityOptionsInput) (*UpdateAvailabilityOptionsOutput, error) {
  1823. req, out := c.UpdateAvailabilityOptionsRequest(input)
  1824. return out, req.Send()
  1825. }
  1826. // UpdateAvailabilityOptionsWithContext is the same as UpdateAvailabilityOptions with the addition of
  1827. // the ability to pass a context and additional request options.
  1828. //
  1829. // See UpdateAvailabilityOptions for details on how to use this API operation.
  1830. //
  1831. // The context must be non-nil and will be used for request cancellation. If
  1832. // the context is nil a panic will occur. In the future the SDK may create
  1833. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  1834. // for more information on using Contexts.
  1835. func (c *CloudSearch) UpdateAvailabilityOptionsWithContext(ctx aws.Context, input *UpdateAvailabilityOptionsInput, opts ...request.Option) (*UpdateAvailabilityOptionsOutput, error) {
  1836. req, out := c.UpdateAvailabilityOptionsRequest(input)
  1837. req.SetContext(ctx)
  1838. req.ApplyOptions(opts...)
  1839. return out, req.Send()
  1840. }
  1841. const opUpdateScalingParameters = "UpdateScalingParameters"
  1842. // UpdateScalingParametersRequest generates a "aws/request.Request" representing the
  1843. // client's request for the UpdateScalingParameters operation. The "output" return
  1844. // value will be populated with the request's response once the request completes
  1845. // successfully.
  1846. //
  1847. // Use "Send" method on the returned Request to send the API call to the service.
  1848. // the "output" return value is not valid until after Send returns without error.
  1849. //
  1850. // See UpdateScalingParameters for more information on using the UpdateScalingParameters
  1851. // API call, and error handling.
  1852. //
  1853. // This method is useful when you want to inject custom logic or configuration
  1854. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  1855. //
  1856. //
  1857. // // Example sending a request using the UpdateScalingParametersRequest method.
  1858. // req, resp := client.UpdateScalingParametersRequest(params)
  1859. //
  1860. // err := req.Send()
  1861. // if err == nil { // resp is now filled
  1862. // fmt.Println(resp)
  1863. // }
  1864. func (c *CloudSearch) UpdateScalingParametersRequest(input *UpdateScalingParametersInput) (req *request.Request, output *UpdateScalingParametersOutput) {
  1865. op := &request.Operation{
  1866. Name: opUpdateScalingParameters,
  1867. HTTPMethod: "POST",
  1868. HTTPPath: "/",
  1869. }
  1870. if input == nil {
  1871. input = &UpdateScalingParametersInput{}
  1872. }
  1873. output = &UpdateScalingParametersOutput{}
  1874. req = c.newRequest(op, input, output)
  1875. return
  1876. }
  1877. // UpdateScalingParameters API operation for Amazon CloudSearch.
  1878. //
  1879. // Configures scaling parameters for a domain. A domain's scaling parameters
  1880. // specify the desired search instance type and replication count. Amazon CloudSearch
  1881. // will still automatically scale your domain based on the volume of data and
  1882. // traffic, but not below the desired instance type and replication count. If
  1883. // the Multi-AZ option is enabled, these values control the resources used per
  1884. // Availability Zone. For more information, see Configuring Scaling Options
  1885. // (http://docs.aws.amazon.com/cloudsearch/latest/developerguide/configuring-scaling-options.html)
  1886. // in the Amazon CloudSearch Developer Guide.
  1887. //
  1888. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  1889. // with awserr.Error's Code and Message methods to get detailed information about
  1890. // the error.
  1891. //
  1892. // See the AWS API reference guide for Amazon CloudSearch's
  1893. // API operation UpdateScalingParameters for usage and error information.
  1894. //
  1895. // Returned Error Codes:
  1896. // * ErrCodeBaseException "BaseException"
  1897. // An error occurred while processing the request.
  1898. //
  1899. // * ErrCodeInternalException "InternalException"
  1900. // An internal error occurred while processing the request. If this problem
  1901. // persists, report an issue from the Service Health Dashboard (http://status.aws.amazon.com/).
  1902. //
  1903. // * ErrCodeLimitExceededException "LimitExceeded"
  1904. // The request was rejected because a resource limit has already been met.
  1905. //
  1906. // * ErrCodeResourceNotFoundException "ResourceNotFound"
  1907. // The request was rejected because it attempted to reference a resource that
  1908. // does not exist.
  1909. //
  1910. // * ErrCodeInvalidTypeException "InvalidType"
  1911. // The request was rejected because it specified an invalid type definition.
  1912. //
  1913. func (c *CloudSearch) UpdateScalingParameters(input *UpdateScalingParametersInput) (*UpdateScalingParametersOutput, error) {
  1914. req, out := c.UpdateScalingParametersRequest(input)
  1915. return out, req.Send()
  1916. }
  1917. // UpdateScalingParametersWithContext is the same as UpdateScalingParameters with the addition of
  1918. // the ability to pass a context and additional request options.
  1919. //
  1920. // See UpdateScalingParameters for details on how to use this API operation.
  1921. //
  1922. // The context must be non-nil and will be used for request cancellation. If
  1923. // the context is nil a panic will occur. In the future the SDK may create
  1924. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  1925. // for more information on using Contexts.
  1926. func (c *CloudSearch) UpdateScalingParametersWithContext(ctx aws.Context, input *UpdateScalingParametersInput, opts ...request.Option) (*UpdateScalingParametersOutput, error) {
  1927. req, out := c.UpdateScalingParametersRequest(input)
  1928. req.SetContext(ctx)
  1929. req.ApplyOptions(opts...)
  1930. return out, req.Send()
  1931. }
  1932. const opUpdateServiceAccessPolicies = "UpdateServiceAccessPolicies"
  1933. // UpdateServiceAccessPoliciesRequest generates a "aws/request.Request" representing the
  1934. // client's request for the UpdateServiceAccessPolicies operation. The "output" return
  1935. // value will be populated with the request's response once the request completes
  1936. // successfully.
  1937. //
  1938. // Use "Send" method on the returned Request to send the API call to the service.
  1939. // the "output" return value is not valid until after Send returns without error.
  1940. //
  1941. // See UpdateServiceAccessPolicies for more information on using the UpdateServiceAccessPolicies
  1942. // API call, and error handling.
  1943. //
  1944. // This method is useful when you want to inject custom logic or configuration
  1945. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  1946. //
  1947. //
  1948. // // Example sending a request using the UpdateServiceAccessPoliciesRequest method.
  1949. // req, resp := client.UpdateServiceAccessPoliciesRequest(params)
  1950. //
  1951. // err := req.Send()
  1952. // if err == nil { // resp is now filled
  1953. // fmt.Println(resp)
  1954. // }
  1955. func (c *CloudSearch) UpdateServiceAccessPoliciesRequest(input *UpdateServiceAccessPoliciesInput) (req *request.Request, output *UpdateServiceAccessPoliciesOutput) {
  1956. op := &request.Operation{
  1957. Name: opUpdateServiceAccessPolicies,
  1958. HTTPMethod: "POST",
  1959. HTTPPath: "/",
  1960. }
  1961. if input == nil {
  1962. input = &UpdateServiceAccessPoliciesInput{}
  1963. }
  1964. output = &UpdateServiceAccessPoliciesOutput{}
  1965. req = c.newRequest(op, input, output)
  1966. return
  1967. }
  1968. // UpdateServiceAccessPolicies API operation for Amazon CloudSearch.
  1969. //
  1970. // Configures the access rules that control access to the domain's document
  1971. // and search endpoints. For more information, see Configuring Access for an
  1972. // Amazon CloudSearch Domain (http://docs.aws.amazon.com/cloudsearch/latest/developerguide/configuring-access.html).
  1973. //
  1974. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  1975. // with awserr.Error's Code and Message methods to get detailed information about
  1976. // the error.
  1977. //
  1978. // See the AWS API reference guide for Amazon CloudSearch's
  1979. // API operation UpdateServiceAccessPolicies for usage and error information.
  1980. //
  1981. // Returned Error Codes:
  1982. // * ErrCodeBaseException "BaseException"
  1983. // An error occurred while processing the request.
  1984. //
  1985. // * ErrCodeInternalException "InternalException"
  1986. // An internal error occurred while processing the request. If this problem
  1987. // persists, report an issue from the Service Health Dashboard (http://status.aws.amazon.com/).
  1988. //
  1989. // * ErrCodeLimitExceededException "LimitExceeded"
  1990. // The request was rejected because a resource limit has already been met.
  1991. //
  1992. // * ErrCodeResourceNotFoundException "ResourceNotFound"
  1993. // The request was rejected because it attempted to reference a resource that
  1994. // does not exist.
  1995. //
  1996. // * ErrCodeInvalidTypeException "InvalidType"
  1997. // The request was rejected because it specified an invalid type definition.
  1998. //
  1999. func (c *CloudSearch) UpdateServiceAccessPolicies(input *UpdateServiceAccessPoliciesInput) (*UpdateServiceAccessPoliciesOutput, error) {
  2000. req, out := c.UpdateServiceAccessPoliciesRequest(input)
  2001. return out, req.Send()
  2002. }
  2003. // UpdateServiceAccessPoliciesWithContext is the same as UpdateServiceAccessPolicies with the addition of
  2004. // the ability to pass a context and additional request options.
  2005. //
  2006. // See UpdateServiceAccessPolicies for details on how to use this API operation.
  2007. //
  2008. // The context must be non-nil and will be used for request cancellation. If
  2009. // the context is nil a panic will occur. In the future the SDK may create
  2010. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  2011. // for more information on using Contexts.
  2012. func (c *CloudSearch) UpdateServiceAccessPoliciesWithContext(ctx aws.Context, input *UpdateServiceAccessPoliciesInput, opts ...request.Option) (*UpdateServiceAccessPoliciesOutput, error) {
  2013. req, out := c.UpdateServiceAccessPoliciesRequest(input)
  2014. req.SetContext(ctx)
  2015. req.ApplyOptions(opts...)
  2016. return out, req.Send()
  2017. }
  2018. // The configured access rules for the domain's document and search endpoints,
  2019. // and the current status of those rules.
  2020. type AccessPoliciesStatus struct {
  2021. _ struct{} `type:"structure"`
  2022. // Access rules for a domain's document or search service endpoints. For more
  2023. // information, see Configuring Access for a Search Domain (http://docs.aws.amazon.com/cloudsearch/latest/developerguide/configuring-access.html)
  2024. // in the Amazon CloudSearch Developer Guide. The maximum size of a policy document
  2025. // is 100 KB.
  2026. //
  2027. // Options is a required field
  2028. Options *string `type:"string" required:"true"`
  2029. // The status of domain configuration option.
  2030. //
  2031. // Status is a required field
  2032. Status *OptionStatus `type:"structure" required:"true"`
  2033. }
  2034. // String returns the string representation
  2035. func (s AccessPoliciesStatus) String() string {
  2036. return awsutil.Prettify(s)
  2037. }
  2038. // GoString returns the string representation
  2039. func (s AccessPoliciesStatus) GoString() string {
  2040. return s.String()
  2041. }
  2042. // SetOptions sets the Options field's value.
  2043. func (s *AccessPoliciesStatus) SetOptions(v string) *AccessPoliciesStatus {
  2044. s.Options = &v
  2045. return s
  2046. }
  2047. // SetStatus sets the Status field's value.
  2048. func (s *AccessPoliciesStatus) SetStatus(v *OptionStatus) *AccessPoliciesStatus {
  2049. s.Status = v
  2050. return s
  2051. }
  2052. // Synonyms, stopwords, and stemming options for an analysis scheme. Includes
  2053. // tokenization dictionary for Japanese.
  2054. type AnalysisOptions struct {
  2055. _ struct{} `type:"structure"`
  2056. // The level of algorithmic stemming to perform: none, minimal, light, or full.
  2057. // The available levels vary depending on the language. For more information,
  2058. // see Language Specific Text Processing Settings (http://docs.aws.amazon.com/cloudsearch/latest/developerguide/text-processing.html#text-processing-settings)
  2059. // in the Amazon CloudSearch Developer Guide
  2060. AlgorithmicStemming *string `type:"string" enum:"AlgorithmicStemming"`
  2061. // A JSON array that contains a collection of terms, tokens, readings and part
  2062. // of speech for Japanese Tokenizaiton. The Japanese tokenization dictionary
  2063. // enables you to override the default tokenization for selected terms. This
  2064. // is only valid for Japanese language fields.
  2065. JapaneseTokenizationDictionary *string `type:"string"`
  2066. // A JSON object that contains a collection of string:value pairs that each
  2067. // map a term to its stem. For example, {"term1": "stem1", "term2": "stem2",
  2068. // "term3": "stem3"}. The stemming dictionary is applied in addition to any
  2069. // algorithmic stemming. This enables you to override the results of the algorithmic
  2070. // stemming to correct specific cases of overstemming or understemming. The
  2071. // maximum size of a stemming dictionary is 500 KB.
  2072. StemmingDictionary *string `type:"string"`
  2073. // A JSON array of terms to ignore during indexing and searching. For example,
  2074. // ["a", "an", "the", "of"]. The stopwords dictionary must explicitly list each
  2075. // word you want to ignore. Wildcards and regular expressions are not supported.
  2076. Stopwords *string `type:"string"`
  2077. // A JSON object that defines synonym groups and aliases. A synonym group is
  2078. // an array of arrays, where each sub-array is a group of terms where each term
  2079. // in the group is considered a synonym of every other term in the group. The
  2080. // aliases value is an object that contains a collection of string:value pairs
  2081. // where the string specifies a term and the array of values specifies each
  2082. // of the aliases for that term. An alias is considered a synonym of the specified
  2083. // term, but the term is not considered a synonym of the alias. For more information
  2084. // about specifying synonyms, see Synonyms (http://docs.aws.amazon.com/cloudsearch/latest/developerguide/configuring-analysis-schemes.html#synonyms)
  2085. // in the Amazon CloudSearch Developer Guide.
  2086. Synonyms *string `type:"string"`
  2087. }
  2088. // String returns the string representation
  2089. func (s AnalysisOptions) String() string {
  2090. return awsutil.Prettify(s)
  2091. }
  2092. // GoString returns the string representation
  2093. func (s AnalysisOptions) GoString() string {
  2094. return s.String()
  2095. }
  2096. // SetAlgorithmicStemming sets the AlgorithmicStemming field's value.
  2097. func (s *AnalysisOptions) SetAlgorithmicStemming(v string) *AnalysisOptions {
  2098. s.AlgorithmicStemming = &v
  2099. return s
  2100. }
  2101. // SetJapaneseTokenizationDictionary sets the JapaneseTokenizationDictionary field's value.
  2102. func (s *AnalysisOptions) SetJapaneseTokenizationDictionary(v string) *AnalysisOptions {
  2103. s.JapaneseTokenizationDictionary = &v
  2104. return s
  2105. }
  2106. // SetStemmingDictionary sets the StemmingDictionary field's value.
  2107. func (s *AnalysisOptions) SetStemmingDictionary(v string) *AnalysisOptions {
  2108. s.StemmingDictionary = &v
  2109. return s
  2110. }
  2111. // SetStopwords sets the Stopwords field's value.
  2112. func (s *AnalysisOptions) SetStopwords(v string) *AnalysisOptions {
  2113. s.Stopwords = &v
  2114. return s
  2115. }
  2116. // SetSynonyms sets the Synonyms field's value.
  2117. func (s *AnalysisOptions) SetSynonyms(v string) *AnalysisOptions {
  2118. s.Synonyms = &v
  2119. return s
  2120. }
  2121. // Configuration information for an analysis scheme. Each analysis scheme has
  2122. // a unique name and specifies the language of the text to be processed. The
  2123. // following options can be configured for an analysis scheme: Synonyms, Stopwords,
  2124. // StemmingDictionary, JapaneseTokenizationDictionary and AlgorithmicStemming.
  2125. type AnalysisScheme struct {
  2126. _ struct{} `type:"structure"`
  2127. // Synonyms, stopwords, and stemming options for an analysis scheme. Includes
  2128. // tokenization dictionary for Japanese.
  2129. AnalysisOptions *AnalysisOptions `type:"structure"`
  2130. // An IETF RFC 4646 (http://tools.ietf.org/html/rfc4646) language code or mul
  2131. // for multiple languages.
  2132. //
  2133. // AnalysisSchemeLanguage is a required field
  2134. AnalysisSchemeLanguage *string `type:"string" required:"true" enum:"AnalysisSchemeLanguage"`
  2135. // Names must begin with a letter and can contain the following characters:
  2136. // a-z (lowercase), 0-9, and _ (underscore).
  2137. //
  2138. // AnalysisSchemeName is a required field
  2139. AnalysisSchemeName *string `min:"1" type:"string" required:"true"`
  2140. }
  2141. // String returns the string representation
  2142. func (s AnalysisScheme) String() string {
  2143. return awsutil.Prettify(s)
  2144. }
  2145. // GoString returns the string representation
  2146. func (s AnalysisScheme) GoString() string {
  2147. return s.String()
  2148. }
  2149. // Validate inspects the fields of the type to determine if they are valid.
  2150. func (s *AnalysisScheme) Validate() error {
  2151. invalidParams := request.ErrInvalidParams{Context: "AnalysisScheme"}
  2152. if s.AnalysisSchemeLanguage == nil {
  2153. invalidParams.Add(request.NewErrParamRequired("AnalysisSchemeLanguage"))
  2154. }
  2155. if s.AnalysisSchemeName == nil {
  2156. invalidParams.Add(request.NewErrParamRequired("AnalysisSchemeName"))
  2157. }
  2158. if s.AnalysisSchemeName != nil && len(*s.AnalysisSchemeName) < 1 {
  2159. invalidParams.Add(request.NewErrParamMinLen("AnalysisSchemeName", 1))
  2160. }
  2161. if invalidParams.Len() > 0 {
  2162. return invalidParams
  2163. }
  2164. return nil
  2165. }
  2166. // SetAnalysisOptions sets the AnalysisOptions field's value.
  2167. func (s *AnalysisScheme) SetAnalysisOptions(v *AnalysisOptions) *AnalysisScheme {
  2168. s.AnalysisOptions = v
  2169. return s
  2170. }
  2171. // SetAnalysisSchemeLanguage sets the AnalysisSchemeLanguage field's value.
  2172. func (s *AnalysisScheme) SetAnalysisSchemeLanguage(v string) *AnalysisScheme {
  2173. s.AnalysisSchemeLanguage = &v
  2174. return s
  2175. }
  2176. // SetAnalysisSchemeName sets the AnalysisSchemeName field's value.
  2177. func (s *AnalysisScheme) SetAnalysisSchemeName(v string) *AnalysisScheme {
  2178. s.AnalysisSchemeName = &v
  2179. return s
  2180. }
  2181. // The status and configuration of an AnalysisScheme.
  2182. type AnalysisSchemeStatus struct {
  2183. _ struct{} `type:"structure"`
  2184. // Configuration information for an analysis scheme. Each analysis scheme has
  2185. // a unique name and specifies the language of the text to be processed. The
  2186. // following options can be configured for an analysis scheme: Synonyms, Stopwords,
  2187. // StemmingDictionary, JapaneseTokenizationDictionary and AlgorithmicStemming.
  2188. //
  2189. // Options is a required field
  2190. Options *AnalysisScheme `type:"structure" required:"true"`
  2191. // The status of domain configuration option.
  2192. //
  2193. // Status is a required field
  2194. Status *OptionStatus `type:"structure" required:"true"`
  2195. }
  2196. // String returns the string representation
  2197. func (s AnalysisSchemeStatus) String() string {
  2198. return awsutil.Prettify(s)
  2199. }
  2200. // GoString returns the string representation
  2201. func (s AnalysisSchemeStatus) GoString() string {
  2202. return s.String()
  2203. }
  2204. // SetOptions sets the Options field's value.
  2205. func (s *AnalysisSchemeStatus) SetOptions(v *AnalysisScheme) *AnalysisSchemeStatus {
  2206. s.Options = v
  2207. return s
  2208. }
  2209. // SetStatus sets the Status field's value.
  2210. func (s *AnalysisSchemeStatus) SetStatus(v *OptionStatus) *AnalysisSchemeStatus {
  2211. s.Status = v
  2212. return s
  2213. }
  2214. // The status and configuration of the domain's availability options.
  2215. type AvailabilityOptionsStatus struct {
  2216. _ struct{} `type:"structure"`
  2217. // The availability options configured for the domain.
  2218. //
  2219. // Options is a required field
  2220. Options *bool `type:"boolean" required:"true"`
  2221. // The status of domain configuration option.
  2222. //
  2223. // Status is a required field
  2224. Status *OptionStatus `type:"structure" required:"true"`
  2225. }
  2226. // String returns the string representation
  2227. func (s AvailabilityOptionsStatus) String() string {
  2228. return awsutil.Prettify(s)
  2229. }
  2230. // GoString returns the string representation
  2231. func (s AvailabilityOptionsStatus) GoString() string {
  2232. return s.String()
  2233. }
  2234. // SetOptions sets the Options field's value.
  2235. func (s *AvailabilityOptionsStatus) SetOptions(v bool) *AvailabilityOptionsStatus {
  2236. s.Options = &v
  2237. return s
  2238. }
  2239. // SetStatus sets the Status field's value.
  2240. func (s *AvailabilityOptionsStatus) SetStatus(v *OptionStatus) *AvailabilityOptionsStatus {
  2241. s.Status = v
  2242. return s
  2243. }
  2244. // Container for the parameters to the BuildSuggester operation. Specifies the
  2245. // name of the domain you want to update.
  2246. type BuildSuggestersInput struct {
  2247. _ struct{} `type:"structure"`
  2248. // A string that represents the name of a domain. Domain names are unique across
  2249. // the domains owned by an account within an AWS region. Domain names start
  2250. // with a letter or number and can contain the following characters: a-z (lowercase),
  2251. // 0-9, and - (hyphen).
  2252. //
  2253. // DomainName is a required field
  2254. DomainName *string `min:"3" type:"string" required:"true"`
  2255. }
  2256. // String returns the string representation
  2257. func (s BuildSuggestersInput) String() string {
  2258. return awsutil.Prettify(s)
  2259. }
  2260. // GoString returns the string representation
  2261. func (s BuildSuggestersInput) GoString() string {
  2262. return s.String()
  2263. }
  2264. // Validate inspects the fields of the type to determine if they are valid.
  2265. func (s *BuildSuggestersInput) Validate() error {
  2266. invalidParams := request.ErrInvalidParams{Context: "BuildSuggestersInput"}
  2267. if s.DomainName == nil {
  2268. invalidParams.Add(request.NewErrParamRequired("DomainName"))
  2269. }
  2270. if s.DomainName != nil && len(*s.DomainName) < 3 {
  2271. invalidParams.Add(request.NewErrParamMinLen("DomainName", 3))
  2272. }
  2273. if invalidParams.Len() > 0 {
  2274. return invalidParams
  2275. }
  2276. return nil
  2277. }
  2278. // SetDomainName sets the DomainName field's value.
  2279. func (s *BuildSuggestersInput) SetDomainName(v string) *BuildSuggestersInput {
  2280. s.DomainName = &v
  2281. return s
  2282. }
  2283. // The result of a BuildSuggester request. Contains a list of the fields used
  2284. // for suggestions.
  2285. type BuildSuggestersOutput struct {
  2286. _ struct{} `type:"structure"`
  2287. // A list of field names.
  2288. FieldNames []*string `type:"list"`
  2289. }
  2290. // String returns the string representation
  2291. func (s BuildSuggestersOutput) String() string {
  2292. return awsutil.Prettify(s)
  2293. }
  2294. // GoString returns the string representation
  2295. func (s BuildSuggestersOutput) GoString() string {
  2296. return s.String()
  2297. }
  2298. // SetFieldNames sets the FieldNames field's value.
  2299. func (s *BuildSuggestersOutput) SetFieldNames(v []*string) *BuildSuggestersOutput {
  2300. s.FieldNames = v
  2301. return s
  2302. }
  2303. // Container for the parameters to the CreateDomain operation. Specifies a name
  2304. // for the new search domain.
  2305. type CreateDomainInput struct {
  2306. _ struct{} `type:"structure"`
  2307. // A name for the domain you are creating. Allowed characters are a-z (lower-case
  2308. // letters), 0-9, and hyphen (-). Domain names must start with a letter or number
  2309. // and be at least 3 and no more than 28 characters long.
  2310. //
  2311. // DomainName is a required field
  2312. DomainName *string `min:"3" type:"string" required:"true"`
  2313. }
  2314. // String returns the string representation
  2315. func (s CreateDomainInput) String() string {
  2316. return awsutil.Prettify(s)
  2317. }
  2318. // GoString returns the string representation
  2319. func (s CreateDomainInput) GoString() string {
  2320. return s.String()
  2321. }
  2322. // Validate inspects the fields of the type to determine if they are valid.
  2323. func (s *CreateDomainInput) Validate() error {
  2324. invalidParams := request.ErrInvalidParams{Context: "CreateDomainInput"}
  2325. if s.DomainName == nil {
  2326. invalidParams.Add(request.NewErrParamRequired("DomainName"))
  2327. }
  2328. if s.DomainName != nil && len(*s.DomainName) < 3 {
  2329. invalidParams.Add(request.NewErrParamMinLen("DomainName", 3))
  2330. }
  2331. if invalidParams.Len() > 0 {
  2332. return invalidParams
  2333. }
  2334. return nil
  2335. }
  2336. // SetDomainName sets the DomainName field's value.
  2337. func (s *CreateDomainInput) SetDomainName(v string) *CreateDomainInput {
  2338. s.DomainName = &v
  2339. return s
  2340. }
  2341. // The result of a CreateDomainRequest. Contains the status of a newly created
  2342. // domain.
  2343. type CreateDomainOutput struct {
  2344. _ struct{} `type:"structure"`
  2345. // The current status of the search domain.
  2346. DomainStatus *DomainStatus `type:"structure"`
  2347. }
  2348. // String returns the string representation
  2349. func (s CreateDomainOutput) String() string {
  2350. return awsutil.Prettify(s)
  2351. }
  2352. // GoString returns the string representation
  2353. func (s CreateDomainOutput) GoString() string {
  2354. return s.String()
  2355. }
  2356. // SetDomainStatus sets the DomainStatus field's value.
  2357. func (s *CreateDomainOutput) SetDomainStatus(v *DomainStatus) *CreateDomainOutput {
  2358. s.DomainStatus = v
  2359. return s
  2360. }
  2361. // Options for a field that contains an array of dates. Present if IndexFieldType
  2362. // specifies the field is of type date-array. All options are enabled by default.
  2363. type DateArrayOptions struct {
  2364. _ struct{} `type:"structure"`
  2365. // A value to use for the field if the field isn't specified for a document.
  2366. DefaultValue *string `type:"string"`
  2367. // Whether facet information can be returned for the field.
  2368. FacetEnabled *bool `type:"boolean"`
  2369. // Whether the contents of the field can be returned in the search results.
  2370. ReturnEnabled *bool `type:"boolean"`
  2371. // Whether the contents of the field are searchable.
  2372. SearchEnabled *bool `type:"boolean"`
  2373. // A list of source fields to map to the field.
  2374. SourceFields *string `type:"string"`
  2375. }
  2376. // String returns the string representation
  2377. func (s DateArrayOptions) String() string {
  2378. return awsutil.Prettify(s)
  2379. }
  2380. // GoString returns the string representation
  2381. func (s DateArrayOptions) GoString() string {
  2382. return s.String()
  2383. }
  2384. // SetDefaultValue sets the DefaultValue field's value.
  2385. func (s *DateArrayOptions) SetDefaultValue(v string) *DateArrayOptions {
  2386. s.DefaultValue = &v
  2387. return s
  2388. }
  2389. // SetFacetEnabled sets the FacetEnabled field's value.
  2390. func (s *DateArrayOptions) SetFacetEnabled(v bool) *DateArrayOptions {
  2391. s.FacetEnabled = &v
  2392. return s
  2393. }
  2394. // SetReturnEnabled sets the ReturnEnabled field's value.
  2395. func (s *DateArrayOptions) SetReturnEnabled(v bool) *DateArrayOptions {
  2396. s.ReturnEnabled = &v
  2397. return s
  2398. }
  2399. // SetSearchEnabled sets the SearchEnabled field's value.
  2400. func (s *DateArrayOptions) SetSearchEnabled(v bool) *DateArrayOptions {
  2401. s.SearchEnabled = &v
  2402. return s
  2403. }
  2404. // SetSourceFields sets the SourceFields field's value.
  2405. func (s *DateArrayOptions) SetSourceFields(v string) *DateArrayOptions {
  2406. s.SourceFields = &v
  2407. return s
  2408. }
  2409. // Options for a date field. Dates and times are specified in UTC (Coordinated
  2410. // Universal Time) according to IETF RFC3339: yyyy-mm-ddT00:00:00Z. Present
  2411. // if IndexFieldType specifies the field is of type date. All options are enabled
  2412. // by default.
  2413. type DateOptions struct {
  2414. _ struct{} `type:"structure"`
  2415. // A value to use for the field if the field isn't specified for a document.
  2416. DefaultValue *string `type:"string"`
  2417. // Whether facet information can be returned for the field.
  2418. FacetEnabled *bool `type:"boolean"`
  2419. // Whether the contents of the field can be returned in the search results.
  2420. ReturnEnabled *bool `type:"boolean"`
  2421. // Whether the contents of the field are searchable.
  2422. SearchEnabled *bool `type:"boolean"`
  2423. // Whether the field can be used to sort the search results.
  2424. SortEnabled *bool `type:"boolean"`
  2425. // A string that represents the name of an index field. CloudSearch supports
  2426. // regular index fields as well as dynamic fields. A dynamic field's name defines
  2427. // a pattern that begins or ends with a wildcard. Any document fields that don't
  2428. // map to a regular index field but do match a dynamic field's pattern are configured
  2429. // with the dynamic field's indexing options.
  2430. //
  2431. // Regular field names begin with a letter and can contain the following characters:
  2432. // a-z (lowercase), 0-9, and _ (underscore). Dynamic field names must begin
  2433. // or end with a wildcard (*). The wildcard can also be the only character in
  2434. // a dynamic field name. Multiple wildcards, and wildcards embedded within a
  2435. // string are not supported.
  2436. //
  2437. // The name score is reserved and cannot be used as a field name. To reference
  2438. // a document's ID, you can use the name _id.
  2439. SourceField *string `min:"1" type:"string"`
  2440. }
  2441. // String returns the string representation
  2442. func (s DateOptions) String() string {
  2443. return awsutil.Prettify(s)
  2444. }
  2445. // GoString returns the string representation
  2446. func (s DateOptions) GoString() string {
  2447. return s.String()
  2448. }
  2449. // Validate inspects the fields of the type to determine if they are valid.
  2450. func (s *DateOptions) Validate() error {
  2451. invalidParams := request.ErrInvalidParams{Context: "DateOptions"}
  2452. if s.SourceField != nil && len(*s.SourceField) < 1 {
  2453. invalidParams.Add(request.NewErrParamMinLen("SourceField", 1))
  2454. }
  2455. if invalidParams.Len() > 0 {
  2456. return invalidParams
  2457. }
  2458. return nil
  2459. }
  2460. // SetDefaultValue sets the DefaultValue field's value.
  2461. func (s *DateOptions) SetDefaultValue(v string) *DateOptions {
  2462. s.DefaultValue = &v
  2463. return s
  2464. }
  2465. // SetFacetEnabled sets the FacetEnabled field's value.
  2466. func (s *DateOptions) SetFacetEnabled(v bool) *DateOptions {
  2467. s.FacetEnabled = &v
  2468. return s
  2469. }
  2470. // SetReturnEnabled sets the ReturnEnabled field's value.
  2471. func (s *DateOptions) SetReturnEnabled(v bool) *DateOptions {
  2472. s.ReturnEnabled = &v
  2473. return s
  2474. }
  2475. // SetSearchEnabled sets the SearchEnabled field's value.
  2476. func (s *DateOptions) SetSearchEnabled(v bool) *DateOptions {
  2477. s.SearchEnabled = &v
  2478. return s
  2479. }
  2480. // SetSortEnabled sets the SortEnabled field's value.
  2481. func (s *DateOptions) SetSortEnabled(v bool) *DateOptions {
  2482. s.SortEnabled = &v
  2483. return s
  2484. }
  2485. // SetSourceField sets the SourceField field's value.
  2486. func (s *DateOptions) SetSourceField(v string) *DateOptions {
  2487. s.SourceField = &v
  2488. return s
  2489. }
  2490. // Container for the parameters to the DefineAnalysisScheme operation. Specifies
  2491. // the name of the domain you want to update and the analysis scheme configuration.
  2492. type DefineAnalysisSchemeInput struct {
  2493. _ struct{} `type:"structure"`
  2494. // Configuration information for an analysis scheme. Each analysis scheme has
  2495. // a unique name and specifies the language of the text to be processed. The
  2496. // following options can be configured for an analysis scheme: Synonyms, Stopwords,
  2497. // StemmingDictionary, JapaneseTokenizationDictionary and AlgorithmicStemming.
  2498. //
  2499. // AnalysisScheme is a required field
  2500. AnalysisScheme *AnalysisScheme `type:"structure" required:"true"`
  2501. // A string that represents the name of a domain. Domain names are unique across
  2502. // the domains owned by an account within an AWS region. Domain names start
  2503. // with a letter or number and can contain the following characters: a-z (lowercase),
  2504. // 0-9, and - (hyphen).
  2505. //
  2506. // DomainName is a required field
  2507. DomainName *string `min:"3" type:"string" required:"true"`
  2508. }
  2509. // String returns the string representation
  2510. func (s DefineAnalysisSchemeInput) String() string {
  2511. return awsutil.Prettify(s)
  2512. }
  2513. // GoString returns the string representation
  2514. func (s DefineAnalysisSchemeInput) GoString() string {
  2515. return s.String()
  2516. }
  2517. // Validate inspects the fields of the type to determine if they are valid.
  2518. func (s *DefineAnalysisSchemeInput) Validate() error {
  2519. invalidParams := request.ErrInvalidParams{Context: "DefineAnalysisSchemeInput"}
  2520. if s.AnalysisScheme == nil {
  2521. invalidParams.Add(request.NewErrParamRequired("AnalysisScheme"))
  2522. }
  2523. if s.DomainName == nil {
  2524. invalidParams.Add(request.NewErrParamRequired("DomainName"))
  2525. }
  2526. if s.DomainName != nil && len(*s.DomainName) < 3 {
  2527. invalidParams.Add(request.NewErrParamMinLen("DomainName", 3))
  2528. }
  2529. if s.AnalysisScheme != nil {
  2530. if err := s.AnalysisScheme.Validate(); err != nil {
  2531. invalidParams.AddNested("AnalysisScheme", err.(request.ErrInvalidParams))
  2532. }
  2533. }
  2534. if invalidParams.Len() > 0 {
  2535. return invalidParams
  2536. }
  2537. return nil
  2538. }
  2539. // SetAnalysisScheme sets the AnalysisScheme field's value.
  2540. func (s *DefineAnalysisSchemeInput) SetAnalysisScheme(v *AnalysisScheme) *DefineAnalysisSchemeInput {
  2541. s.AnalysisScheme = v
  2542. return s
  2543. }
  2544. // SetDomainName sets the DomainName field's value.
  2545. func (s *DefineAnalysisSchemeInput) SetDomainName(v string) *DefineAnalysisSchemeInput {
  2546. s.DomainName = &v
  2547. return s
  2548. }
  2549. // The result of a DefineAnalysisScheme request. Contains the status of the
  2550. // newly-configured analysis scheme.
  2551. type DefineAnalysisSchemeOutput struct {
  2552. _ struct{} `type:"structure"`
  2553. // The status and configuration of an AnalysisScheme.
  2554. //
  2555. // AnalysisScheme is a required field
  2556. AnalysisScheme *AnalysisSchemeStatus `type:"structure" required:"true"`
  2557. }
  2558. // String returns the string representation
  2559. func (s DefineAnalysisSchemeOutput) String() string {
  2560. return awsutil.Prettify(s)
  2561. }
  2562. // GoString returns the string representation
  2563. func (s DefineAnalysisSchemeOutput) GoString() string {
  2564. return s.String()
  2565. }
  2566. // SetAnalysisScheme sets the AnalysisScheme field's value.
  2567. func (s *DefineAnalysisSchemeOutput) SetAnalysisScheme(v *AnalysisSchemeStatus) *DefineAnalysisSchemeOutput {
  2568. s.AnalysisScheme = v
  2569. return s
  2570. }
  2571. // Container for the parameters to the DefineExpression operation. Specifies
  2572. // the name of the domain you want to update and the expression you want to
  2573. // configure.
  2574. type DefineExpressionInput struct {
  2575. _ struct{} `type:"structure"`
  2576. // A string that represents the name of a domain. Domain names are unique across
  2577. // the domains owned by an account within an AWS region. Domain names start
  2578. // with a letter or number and can contain the following characters: a-z (lowercase),
  2579. // 0-9, and - (hyphen).
  2580. //
  2581. // DomainName is a required field
  2582. DomainName *string `min:"3" type:"string" required:"true"`
  2583. // A named expression that can be evaluated at search time. Can be used to sort
  2584. // the search results, define other expressions, or return computed information
  2585. // in the search results.
  2586. //
  2587. // Expression is a required field
  2588. Expression *Expression `type:"structure" required:"true"`
  2589. }
  2590. // String returns the string representation
  2591. func (s DefineExpressionInput) String() string {
  2592. return awsutil.Prettify(s)
  2593. }
  2594. // GoString returns the string representation
  2595. func (s DefineExpressionInput) GoString() string {
  2596. return s.String()
  2597. }
  2598. // Validate inspects the fields of the type to determine if they are valid.
  2599. func (s *DefineExpressionInput) Validate() error {
  2600. invalidParams := request.ErrInvalidParams{Context: "DefineExpressionInput"}
  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.Expression == nil {
  2608. invalidParams.Add(request.NewErrParamRequired("Expression"))
  2609. }
  2610. if s.Expression != nil {
  2611. if err := s.Expression.Validate(); err != nil {
  2612. invalidParams.AddNested("Expression", err.(request.ErrInvalidParams))
  2613. }
  2614. }
  2615. if invalidParams.Len() > 0 {
  2616. return invalidParams
  2617. }
  2618. return nil
  2619. }
  2620. // SetDomainName sets the DomainName field's value.
  2621. func (s *DefineExpressionInput) SetDomainName(v string) *DefineExpressionInput {
  2622. s.DomainName = &v
  2623. return s
  2624. }
  2625. // SetExpression sets the Expression field's value.
  2626. func (s *DefineExpressionInput) SetExpression(v *Expression) *DefineExpressionInput {
  2627. s.Expression = v
  2628. return s
  2629. }
  2630. // The result of a DefineExpression request. Contains the status of the newly-configured
  2631. // expression.
  2632. type DefineExpressionOutput struct {
  2633. _ struct{} `type:"structure"`
  2634. // The value of an Expression and its current status.
  2635. //
  2636. // Expression is a required field
  2637. Expression *ExpressionStatus `type:"structure" required:"true"`
  2638. }
  2639. // String returns the string representation
  2640. func (s DefineExpressionOutput) String() string {
  2641. return awsutil.Prettify(s)
  2642. }
  2643. // GoString returns the string representation
  2644. func (s DefineExpressionOutput) GoString() string {
  2645. return s.String()
  2646. }
  2647. // SetExpression sets the Expression field's value.
  2648. func (s *DefineExpressionOutput) SetExpression(v *ExpressionStatus) *DefineExpressionOutput {
  2649. s.Expression = v
  2650. return s
  2651. }
  2652. // Container for the parameters to the DefineIndexField operation. Specifies
  2653. // the name of the domain you want to update and the index field configuration.
  2654. type DefineIndexFieldInput struct {
  2655. _ struct{} `type:"structure"`
  2656. // A string that represents the name of a domain. Domain names are unique across
  2657. // the domains owned by an account within an AWS region. Domain names start
  2658. // with a letter or number and can contain the following characters: a-z (lowercase),
  2659. // 0-9, and - (hyphen).
  2660. //
  2661. // DomainName is a required field
  2662. DomainName *string `min:"3" type:"string" required:"true"`
  2663. // The index field and field options you want to configure.
  2664. //
  2665. // IndexField is a required field
  2666. IndexField *IndexField `type:"structure" required:"true"`
  2667. }
  2668. // String returns the string representation
  2669. func (s DefineIndexFieldInput) String() string {
  2670. return awsutil.Prettify(s)
  2671. }
  2672. // GoString returns the string representation
  2673. func (s DefineIndexFieldInput) GoString() string {
  2674. return s.String()
  2675. }
  2676. // Validate inspects the fields of the type to determine if they are valid.
  2677. func (s *DefineIndexFieldInput) Validate() error {
  2678. invalidParams := request.ErrInvalidParams{Context: "DefineIndexFieldInput"}
  2679. if s.DomainName == nil {
  2680. invalidParams.Add(request.NewErrParamRequired("DomainName"))
  2681. }
  2682. if s.DomainName != nil && len(*s.DomainName) < 3 {
  2683. invalidParams.Add(request.NewErrParamMinLen("DomainName", 3))
  2684. }
  2685. if s.IndexField == nil {
  2686. invalidParams.Add(request.NewErrParamRequired("IndexField"))
  2687. }
  2688. if s.IndexField != nil {
  2689. if err := s.IndexField.Validate(); err != nil {
  2690. invalidParams.AddNested("IndexField", err.(request.ErrInvalidParams))
  2691. }
  2692. }
  2693. if invalidParams.Len() > 0 {
  2694. return invalidParams
  2695. }
  2696. return nil
  2697. }
  2698. // SetDomainName sets the DomainName field's value.
  2699. func (s *DefineIndexFieldInput) SetDomainName(v string) *DefineIndexFieldInput {
  2700. s.DomainName = &v
  2701. return s
  2702. }
  2703. // SetIndexField sets the IndexField field's value.
  2704. func (s *DefineIndexFieldInput) SetIndexField(v *IndexField) *DefineIndexFieldInput {
  2705. s.IndexField = v
  2706. return s
  2707. }
  2708. // The result of a DefineIndexField request. Contains the status of the newly-configured
  2709. // index field.
  2710. type DefineIndexFieldOutput struct {
  2711. _ struct{} `type:"structure"`
  2712. // The value of an IndexField and its current status.
  2713. //
  2714. // IndexField is a required field
  2715. IndexField *IndexFieldStatus `type:"structure" required:"true"`
  2716. }
  2717. // String returns the string representation
  2718. func (s DefineIndexFieldOutput) String() string {
  2719. return awsutil.Prettify(s)
  2720. }
  2721. // GoString returns the string representation
  2722. func (s DefineIndexFieldOutput) GoString() string {
  2723. return s.String()
  2724. }
  2725. // SetIndexField sets the IndexField field's value.
  2726. func (s *DefineIndexFieldOutput) SetIndexField(v *IndexFieldStatus) *DefineIndexFieldOutput {
  2727. s.IndexField = v
  2728. return s
  2729. }
  2730. // Container for the parameters to the DefineSuggester operation. Specifies
  2731. // the name of the domain you want to update and the suggester configuration.
  2732. type DefineSuggesterInput struct {
  2733. _ struct{} `type:"structure"`
  2734. // A string that represents the name of a domain. Domain names are unique across
  2735. // the domains owned by an account within an AWS region. Domain names start
  2736. // with a letter or number and can contain the following characters: a-z (lowercase),
  2737. // 0-9, and - (hyphen).
  2738. //
  2739. // DomainName is a required field
  2740. DomainName *string `min:"3" type:"string" required:"true"`
  2741. // Configuration information for a search suggester. Each suggester has a unique
  2742. // name and specifies the text field you want to use for suggestions. The following
  2743. // options can be configured for a suggester: FuzzyMatching, SortExpression.
  2744. //
  2745. // Suggester is a required field
  2746. Suggester *Suggester `type:"structure" required:"true"`
  2747. }
  2748. // String returns the string representation
  2749. func (s DefineSuggesterInput) String() string {
  2750. return awsutil.Prettify(s)
  2751. }
  2752. // GoString returns the string representation
  2753. func (s DefineSuggesterInput) GoString() string {
  2754. return s.String()
  2755. }
  2756. // Validate inspects the fields of the type to determine if they are valid.
  2757. func (s *DefineSuggesterInput) Validate() error {
  2758. invalidParams := request.ErrInvalidParams{Context: "DefineSuggesterInput"}
  2759. if s.DomainName == nil {
  2760. invalidParams.Add(request.NewErrParamRequired("DomainName"))
  2761. }
  2762. if s.DomainName != nil && len(*s.DomainName) < 3 {
  2763. invalidParams.Add(request.NewErrParamMinLen("DomainName", 3))
  2764. }
  2765. if s.Suggester == nil {
  2766. invalidParams.Add(request.NewErrParamRequired("Suggester"))
  2767. }
  2768. if s.Suggester != nil {
  2769. if err := s.Suggester.Validate(); err != nil {
  2770. invalidParams.AddNested("Suggester", err.(request.ErrInvalidParams))
  2771. }
  2772. }
  2773. if invalidParams.Len() > 0 {
  2774. return invalidParams
  2775. }
  2776. return nil
  2777. }
  2778. // SetDomainName sets the DomainName field's value.
  2779. func (s *DefineSuggesterInput) SetDomainName(v string) *DefineSuggesterInput {
  2780. s.DomainName = &v
  2781. return s
  2782. }
  2783. // SetSuggester sets the Suggester field's value.
  2784. func (s *DefineSuggesterInput) SetSuggester(v *Suggester) *DefineSuggesterInput {
  2785. s.Suggester = v
  2786. return s
  2787. }
  2788. // The result of a DefineSuggester request. Contains the status of the newly-configured
  2789. // suggester.
  2790. type DefineSuggesterOutput struct {
  2791. _ struct{} `type:"structure"`
  2792. // The value of a Suggester and its current status.
  2793. //
  2794. // Suggester is a required field
  2795. Suggester *SuggesterStatus `type:"structure" required:"true"`
  2796. }
  2797. // String returns the string representation
  2798. func (s DefineSuggesterOutput) String() string {
  2799. return awsutil.Prettify(s)
  2800. }
  2801. // GoString returns the string representation
  2802. func (s DefineSuggesterOutput) GoString() string {
  2803. return s.String()
  2804. }
  2805. // SetSuggester sets the Suggester field's value.
  2806. func (s *DefineSuggesterOutput) SetSuggester(v *SuggesterStatus) *DefineSuggesterOutput {
  2807. s.Suggester = v
  2808. return s
  2809. }
  2810. // Container for the parameters to the DeleteAnalysisScheme operation. Specifies
  2811. // the name of the domain you want to update and the analysis scheme you want
  2812. // to delete.
  2813. type DeleteAnalysisSchemeInput struct {
  2814. _ struct{} `type:"structure"`
  2815. // The name of the analysis scheme you want to delete.
  2816. //
  2817. // AnalysisSchemeName is a required field
  2818. AnalysisSchemeName *string `min:"1" type:"string" required:"true"`
  2819. // A string that represents the name of a domain. Domain names are unique across
  2820. // the domains owned by an account within an AWS region. Domain names start
  2821. // with a letter or number and can contain the following characters: a-z (lowercase),
  2822. // 0-9, and - (hyphen).
  2823. //
  2824. // DomainName is a required field
  2825. DomainName *string `min:"3" type:"string" required:"true"`
  2826. }
  2827. // String returns the string representation
  2828. func (s DeleteAnalysisSchemeInput) String() string {
  2829. return awsutil.Prettify(s)
  2830. }
  2831. // GoString returns the string representation
  2832. func (s DeleteAnalysisSchemeInput) GoString() string {
  2833. return s.String()
  2834. }
  2835. // Validate inspects the fields of the type to determine if they are valid.
  2836. func (s *DeleteAnalysisSchemeInput) Validate() error {
  2837. invalidParams := request.ErrInvalidParams{Context: "DeleteAnalysisSchemeInput"}
  2838. if s.AnalysisSchemeName == nil {
  2839. invalidParams.Add(request.NewErrParamRequired("AnalysisSchemeName"))
  2840. }
  2841. if s.AnalysisSchemeName != nil && len(*s.AnalysisSchemeName) < 1 {
  2842. invalidParams.Add(request.NewErrParamMinLen("AnalysisSchemeName", 1))
  2843. }
  2844. if s.DomainName == nil {
  2845. invalidParams.Add(request.NewErrParamRequired("DomainName"))
  2846. }
  2847. if s.DomainName != nil && len(*s.DomainName) < 3 {
  2848. invalidParams.Add(request.NewErrParamMinLen("DomainName", 3))
  2849. }
  2850. if invalidParams.Len() > 0 {
  2851. return invalidParams
  2852. }
  2853. return nil
  2854. }
  2855. // SetAnalysisSchemeName sets the AnalysisSchemeName field's value.
  2856. func (s *DeleteAnalysisSchemeInput) SetAnalysisSchemeName(v string) *DeleteAnalysisSchemeInput {
  2857. s.AnalysisSchemeName = &v
  2858. return s
  2859. }
  2860. // SetDomainName sets the DomainName field's value.
  2861. func (s *DeleteAnalysisSchemeInput) SetDomainName(v string) *DeleteAnalysisSchemeInput {
  2862. s.DomainName = &v
  2863. return s
  2864. }
  2865. // The result of a DeleteAnalysisScheme request. Contains the status of the
  2866. // deleted analysis scheme.
  2867. type DeleteAnalysisSchemeOutput struct {
  2868. _ struct{} `type:"structure"`
  2869. // The status of the analysis scheme being deleted.
  2870. //
  2871. // AnalysisScheme is a required field
  2872. AnalysisScheme *AnalysisSchemeStatus `type:"structure" required:"true"`
  2873. }
  2874. // String returns the string representation
  2875. func (s DeleteAnalysisSchemeOutput) String() string {
  2876. return awsutil.Prettify(s)
  2877. }
  2878. // GoString returns the string representation
  2879. func (s DeleteAnalysisSchemeOutput) GoString() string {
  2880. return s.String()
  2881. }
  2882. // SetAnalysisScheme sets the AnalysisScheme field's value.
  2883. func (s *DeleteAnalysisSchemeOutput) SetAnalysisScheme(v *AnalysisSchemeStatus) *DeleteAnalysisSchemeOutput {
  2884. s.AnalysisScheme = v
  2885. return s
  2886. }
  2887. // Container for the parameters to the DeleteDomain operation. Specifies the
  2888. // name of the domain you want to delete.
  2889. type DeleteDomainInput struct {
  2890. _ struct{} `type:"structure"`
  2891. // The name of the domain you want to permanently delete.
  2892. //
  2893. // DomainName is a required field
  2894. DomainName *string `min:"3" type:"string" required:"true"`
  2895. }
  2896. // String returns the string representation
  2897. func (s DeleteDomainInput) String() string {
  2898. return awsutil.Prettify(s)
  2899. }
  2900. // GoString returns the string representation
  2901. func (s DeleteDomainInput) GoString() string {
  2902. return s.String()
  2903. }
  2904. // Validate inspects the fields of the type to determine if they are valid.
  2905. func (s *DeleteDomainInput) Validate() error {
  2906. invalidParams := request.ErrInvalidParams{Context: "DeleteDomainInput"}
  2907. if s.DomainName == nil {
  2908. invalidParams.Add(request.NewErrParamRequired("DomainName"))
  2909. }
  2910. if s.DomainName != nil && len(*s.DomainName) < 3 {
  2911. invalidParams.Add(request.NewErrParamMinLen("DomainName", 3))
  2912. }
  2913. if invalidParams.Len() > 0 {
  2914. return invalidParams
  2915. }
  2916. return nil
  2917. }
  2918. // SetDomainName sets the DomainName field's value.
  2919. func (s *DeleteDomainInput) SetDomainName(v string) *DeleteDomainInput {
  2920. s.DomainName = &v
  2921. return s
  2922. }
  2923. // The result of a DeleteDomain request. Contains the status of a newly deleted
  2924. // domain, or no status if the domain has already been completely deleted.
  2925. type DeleteDomainOutput struct {
  2926. _ struct{} `type:"structure"`
  2927. // The current status of the search domain.
  2928. DomainStatus *DomainStatus `type:"structure"`
  2929. }
  2930. // String returns the string representation
  2931. func (s DeleteDomainOutput) String() string {
  2932. return awsutil.Prettify(s)
  2933. }
  2934. // GoString returns the string representation
  2935. func (s DeleteDomainOutput) GoString() string {
  2936. return s.String()
  2937. }
  2938. // SetDomainStatus sets the DomainStatus field's value.
  2939. func (s *DeleteDomainOutput) SetDomainStatus(v *DomainStatus) *DeleteDomainOutput {
  2940. s.DomainStatus = v
  2941. return s
  2942. }
  2943. // Container for the parameters to the DeleteExpression operation. Specifies
  2944. // the name of the domain you want to update and the name of the expression
  2945. // you want to delete.
  2946. type DeleteExpressionInput struct {
  2947. _ struct{} `type:"structure"`
  2948. // A string that represents the name of a domain. Domain names are unique across
  2949. // the domains owned by an account within an AWS region. Domain names start
  2950. // with a letter or number and can contain the following characters: a-z (lowercase),
  2951. // 0-9, and - (hyphen).
  2952. //
  2953. // DomainName is a required field
  2954. DomainName *string `min:"3" type:"string" required:"true"`
  2955. // The name of the Expression to delete.
  2956. //
  2957. // ExpressionName is a required field
  2958. ExpressionName *string `min:"1" type:"string" required:"true"`
  2959. }
  2960. // String returns the string representation
  2961. func (s DeleteExpressionInput) String() string {
  2962. return awsutil.Prettify(s)
  2963. }
  2964. // GoString returns the string representation
  2965. func (s DeleteExpressionInput) GoString() string {
  2966. return s.String()
  2967. }
  2968. // Validate inspects the fields of the type to determine if they are valid.
  2969. func (s *DeleteExpressionInput) Validate() error {
  2970. invalidParams := request.ErrInvalidParams{Context: "DeleteExpressionInput"}
  2971. if s.DomainName == nil {
  2972. invalidParams.Add(request.NewErrParamRequired("DomainName"))
  2973. }
  2974. if s.DomainName != nil && len(*s.DomainName) < 3 {
  2975. invalidParams.Add(request.NewErrParamMinLen("DomainName", 3))
  2976. }
  2977. if s.ExpressionName == nil {
  2978. invalidParams.Add(request.NewErrParamRequired("ExpressionName"))
  2979. }
  2980. if s.ExpressionName != nil && len(*s.ExpressionName) < 1 {
  2981. invalidParams.Add(request.NewErrParamMinLen("ExpressionName", 1))
  2982. }
  2983. if invalidParams.Len() > 0 {
  2984. return invalidParams
  2985. }
  2986. return nil
  2987. }
  2988. // SetDomainName sets the DomainName field's value.
  2989. func (s *DeleteExpressionInput) SetDomainName(v string) *DeleteExpressionInput {
  2990. s.DomainName = &v
  2991. return s
  2992. }
  2993. // SetExpressionName sets the ExpressionName field's value.
  2994. func (s *DeleteExpressionInput) SetExpressionName(v string) *DeleteExpressionInput {
  2995. s.ExpressionName = &v
  2996. return s
  2997. }
  2998. // The result of a DeleteExpression request. Specifies the expression being
  2999. // deleted.
  3000. type DeleteExpressionOutput struct {
  3001. _ struct{} `type:"structure"`
  3002. // The status of the expression being deleted.
  3003. //
  3004. // Expression is a required field
  3005. Expression *ExpressionStatus `type:"structure" required:"true"`
  3006. }
  3007. // String returns the string representation
  3008. func (s DeleteExpressionOutput) String() string {
  3009. return awsutil.Prettify(s)
  3010. }
  3011. // GoString returns the string representation
  3012. func (s DeleteExpressionOutput) GoString() string {
  3013. return s.String()
  3014. }
  3015. // SetExpression sets the Expression field's value.
  3016. func (s *DeleteExpressionOutput) SetExpression(v *ExpressionStatus) *DeleteExpressionOutput {
  3017. s.Expression = v
  3018. return s
  3019. }
  3020. // Container for the parameters to the DeleteIndexField operation. Specifies
  3021. // the name of the domain you want to update and the name of the index field
  3022. // you want to delete.
  3023. type DeleteIndexFieldInput struct {
  3024. _ struct{} `type:"structure"`
  3025. // A string that represents the name of a domain. Domain names are unique across
  3026. // the domains owned by an account within an AWS region. Domain names start
  3027. // with a letter or number and can contain the following characters: a-z (lowercase),
  3028. // 0-9, and - (hyphen).
  3029. //
  3030. // DomainName is a required field
  3031. DomainName *string `min:"3" type:"string" required:"true"`
  3032. // The name of the index field your want to remove from the domain's indexing
  3033. // options.
  3034. //
  3035. // IndexFieldName is a required field
  3036. IndexFieldName *string `min:"1" type:"string" required:"true"`
  3037. }
  3038. // String returns the string representation
  3039. func (s DeleteIndexFieldInput) String() string {
  3040. return awsutil.Prettify(s)
  3041. }
  3042. // GoString returns the string representation
  3043. func (s DeleteIndexFieldInput) GoString() string {
  3044. return s.String()
  3045. }
  3046. // Validate inspects the fields of the type to determine if they are valid.
  3047. func (s *DeleteIndexFieldInput) Validate() error {
  3048. invalidParams := request.ErrInvalidParams{Context: "DeleteIndexFieldInput"}
  3049. if s.DomainName == nil {
  3050. invalidParams.Add(request.NewErrParamRequired("DomainName"))
  3051. }
  3052. if s.DomainName != nil && len(*s.DomainName) < 3 {
  3053. invalidParams.Add(request.NewErrParamMinLen("DomainName", 3))
  3054. }
  3055. if s.IndexFieldName == nil {
  3056. invalidParams.Add(request.NewErrParamRequired("IndexFieldName"))
  3057. }
  3058. if s.IndexFieldName != nil && len(*s.IndexFieldName) < 1 {
  3059. invalidParams.Add(request.NewErrParamMinLen("IndexFieldName", 1))
  3060. }
  3061. if invalidParams.Len() > 0 {
  3062. return invalidParams
  3063. }
  3064. return nil
  3065. }
  3066. // SetDomainName sets the DomainName field's value.
  3067. func (s *DeleteIndexFieldInput) SetDomainName(v string) *DeleteIndexFieldInput {
  3068. s.DomainName = &v
  3069. return s
  3070. }
  3071. // SetIndexFieldName sets the IndexFieldName field's value.
  3072. func (s *DeleteIndexFieldInput) SetIndexFieldName(v string) *DeleteIndexFieldInput {
  3073. s.IndexFieldName = &v
  3074. return s
  3075. }
  3076. // The result of a DeleteIndexField request.
  3077. type DeleteIndexFieldOutput struct {
  3078. _ struct{} `type:"structure"`
  3079. // The status of the index field being deleted.
  3080. //
  3081. // IndexField is a required field
  3082. IndexField *IndexFieldStatus `type:"structure" required:"true"`
  3083. }
  3084. // String returns the string representation
  3085. func (s DeleteIndexFieldOutput) String() string {
  3086. return awsutil.Prettify(s)
  3087. }
  3088. // GoString returns the string representation
  3089. func (s DeleteIndexFieldOutput) GoString() string {
  3090. return s.String()
  3091. }
  3092. // SetIndexField sets the IndexField field's value.
  3093. func (s *DeleteIndexFieldOutput) SetIndexField(v *IndexFieldStatus) *DeleteIndexFieldOutput {
  3094. s.IndexField = v
  3095. return s
  3096. }
  3097. // Container for the parameters to the DeleteSuggester operation. Specifies
  3098. // the name of the domain you want to update and name of the suggester you want
  3099. // to delete.
  3100. type DeleteSuggesterInput struct {
  3101. _ struct{} `type:"structure"`
  3102. // A string that represents the name of a domain. Domain names are unique across
  3103. // the domains owned by an account within an AWS region. Domain names start
  3104. // with a letter or number and can contain the following characters: a-z (lowercase),
  3105. // 0-9, and - (hyphen).
  3106. //
  3107. // DomainName is a required field
  3108. DomainName *string `min:"3" type:"string" required:"true"`
  3109. // Specifies the name of the suggester you want to delete.
  3110. //
  3111. // SuggesterName is a required field
  3112. SuggesterName *string `min:"1" type:"string" required:"true"`
  3113. }
  3114. // String returns the string representation
  3115. func (s DeleteSuggesterInput) String() string {
  3116. return awsutil.Prettify(s)
  3117. }
  3118. // GoString returns the string representation
  3119. func (s DeleteSuggesterInput) GoString() string {
  3120. return s.String()
  3121. }
  3122. // Validate inspects the fields of the type to determine if they are valid.
  3123. func (s *DeleteSuggesterInput) Validate() error {
  3124. invalidParams := request.ErrInvalidParams{Context: "DeleteSuggesterInput"}
  3125. if s.DomainName == nil {
  3126. invalidParams.Add(request.NewErrParamRequired("DomainName"))
  3127. }
  3128. if s.DomainName != nil && len(*s.DomainName) < 3 {
  3129. invalidParams.Add(request.NewErrParamMinLen("DomainName", 3))
  3130. }
  3131. if s.SuggesterName == nil {
  3132. invalidParams.Add(request.NewErrParamRequired("SuggesterName"))
  3133. }
  3134. if s.SuggesterName != nil && len(*s.SuggesterName) < 1 {
  3135. invalidParams.Add(request.NewErrParamMinLen("SuggesterName", 1))
  3136. }
  3137. if invalidParams.Len() > 0 {
  3138. return invalidParams
  3139. }
  3140. return nil
  3141. }
  3142. // SetDomainName sets the DomainName field's value.
  3143. func (s *DeleteSuggesterInput) SetDomainName(v string) *DeleteSuggesterInput {
  3144. s.DomainName = &v
  3145. return s
  3146. }
  3147. // SetSuggesterName sets the SuggesterName field's value.
  3148. func (s *DeleteSuggesterInput) SetSuggesterName(v string) *DeleteSuggesterInput {
  3149. s.SuggesterName = &v
  3150. return s
  3151. }
  3152. // The result of a DeleteSuggester request. Contains the status of the deleted
  3153. // suggester.
  3154. type DeleteSuggesterOutput struct {
  3155. _ struct{} `type:"structure"`
  3156. // The status of the suggester being deleted.
  3157. //
  3158. // Suggester is a required field
  3159. Suggester *SuggesterStatus `type:"structure" required:"true"`
  3160. }
  3161. // String returns the string representation
  3162. func (s DeleteSuggesterOutput) String() string {
  3163. return awsutil.Prettify(s)
  3164. }
  3165. // GoString returns the string representation
  3166. func (s DeleteSuggesterOutput) GoString() string {
  3167. return s.String()
  3168. }
  3169. // SetSuggester sets the Suggester field's value.
  3170. func (s *DeleteSuggesterOutput) SetSuggester(v *SuggesterStatus) *DeleteSuggesterOutput {
  3171. s.Suggester = v
  3172. return s
  3173. }
  3174. // Container for the parameters to the DescribeAnalysisSchemes operation. Specifies
  3175. // the name of the domain you want to describe. To limit the response to particular
  3176. // analysis schemes, specify the names of the analysis schemes you want to describe.
  3177. // To show the active configuration and exclude any pending changes, set the
  3178. // Deployed option to true.
  3179. type DescribeAnalysisSchemesInput struct {
  3180. _ struct{} `type:"structure"`
  3181. // The analysis schemes you want to describe.
  3182. AnalysisSchemeNames []*string `type:"list"`
  3183. // Whether to display the deployed configuration (true) or include any pending
  3184. // changes (false). Defaults to false.
  3185. Deployed *bool `type:"boolean"`
  3186. // The name of the domain you want to describe.
  3187. //
  3188. // DomainName is a required field
  3189. DomainName *string `min:"3" type:"string" required:"true"`
  3190. }
  3191. // String returns the string representation
  3192. func (s DescribeAnalysisSchemesInput) String() string {
  3193. return awsutil.Prettify(s)
  3194. }
  3195. // GoString returns the string representation
  3196. func (s DescribeAnalysisSchemesInput) GoString() string {
  3197. return s.String()
  3198. }
  3199. // Validate inspects the fields of the type to determine if they are valid.
  3200. func (s *DescribeAnalysisSchemesInput) Validate() error {
  3201. invalidParams := request.ErrInvalidParams{Context: "DescribeAnalysisSchemesInput"}
  3202. if s.DomainName == nil {
  3203. invalidParams.Add(request.NewErrParamRequired("DomainName"))
  3204. }
  3205. if s.DomainName != nil && len(*s.DomainName) < 3 {
  3206. invalidParams.Add(request.NewErrParamMinLen("DomainName", 3))
  3207. }
  3208. if invalidParams.Len() > 0 {
  3209. return invalidParams
  3210. }
  3211. return nil
  3212. }
  3213. // SetAnalysisSchemeNames sets the AnalysisSchemeNames field's value.
  3214. func (s *DescribeAnalysisSchemesInput) SetAnalysisSchemeNames(v []*string) *DescribeAnalysisSchemesInput {
  3215. s.AnalysisSchemeNames = v
  3216. return s
  3217. }
  3218. // SetDeployed sets the Deployed field's value.
  3219. func (s *DescribeAnalysisSchemesInput) SetDeployed(v bool) *DescribeAnalysisSchemesInput {
  3220. s.Deployed = &v
  3221. return s
  3222. }
  3223. // SetDomainName sets the DomainName field's value.
  3224. func (s *DescribeAnalysisSchemesInput) SetDomainName(v string) *DescribeAnalysisSchemesInput {
  3225. s.DomainName = &v
  3226. return s
  3227. }
  3228. // The result of a DescribeAnalysisSchemes request. Contains the analysis schemes
  3229. // configured for the domain specified in the request.
  3230. type DescribeAnalysisSchemesOutput struct {
  3231. _ struct{} `type:"structure"`
  3232. // The analysis scheme descriptions.
  3233. //
  3234. // AnalysisSchemes is a required field
  3235. AnalysisSchemes []*AnalysisSchemeStatus `type:"list" required:"true"`
  3236. }
  3237. // String returns the string representation
  3238. func (s DescribeAnalysisSchemesOutput) String() string {
  3239. return awsutil.Prettify(s)
  3240. }
  3241. // GoString returns the string representation
  3242. func (s DescribeAnalysisSchemesOutput) GoString() string {
  3243. return s.String()
  3244. }
  3245. // SetAnalysisSchemes sets the AnalysisSchemes field's value.
  3246. func (s *DescribeAnalysisSchemesOutput) SetAnalysisSchemes(v []*AnalysisSchemeStatus) *DescribeAnalysisSchemesOutput {
  3247. s.AnalysisSchemes = v
  3248. return s
  3249. }
  3250. // Container for the parameters to the DescribeAvailabilityOptions operation.
  3251. // Specifies the name of the domain you want to describe. To show the active
  3252. // configuration and exclude any pending changes, set the Deployed option to
  3253. // true.
  3254. type DescribeAvailabilityOptionsInput struct {
  3255. _ struct{} `type:"structure"`
  3256. // Whether to display the deployed configuration (true) or include any pending
  3257. // changes (false). Defaults to false.
  3258. Deployed *bool `type:"boolean"`
  3259. // The name of the domain you want to describe.
  3260. //
  3261. // DomainName is a required field
  3262. DomainName *string `min:"3" type:"string" required:"true"`
  3263. }
  3264. // String returns the string representation
  3265. func (s DescribeAvailabilityOptionsInput) String() string {
  3266. return awsutil.Prettify(s)
  3267. }
  3268. // GoString returns the string representation
  3269. func (s DescribeAvailabilityOptionsInput) GoString() string {
  3270. return s.String()
  3271. }
  3272. // Validate inspects the fields of the type to determine if they are valid.
  3273. func (s *DescribeAvailabilityOptionsInput) Validate() error {
  3274. invalidParams := request.ErrInvalidParams{Context: "DescribeAvailabilityOptionsInput"}
  3275. if s.DomainName == nil {
  3276. invalidParams.Add(request.NewErrParamRequired("DomainName"))
  3277. }
  3278. if s.DomainName != nil && len(*s.DomainName) < 3 {
  3279. invalidParams.Add(request.NewErrParamMinLen("DomainName", 3))
  3280. }
  3281. if invalidParams.Len() > 0 {
  3282. return invalidParams
  3283. }
  3284. return nil
  3285. }
  3286. // SetDeployed sets the Deployed field's value.
  3287. func (s *DescribeAvailabilityOptionsInput) SetDeployed(v bool) *DescribeAvailabilityOptionsInput {
  3288. s.Deployed = &v
  3289. return s
  3290. }
  3291. // SetDomainName sets the DomainName field's value.
  3292. func (s *DescribeAvailabilityOptionsInput) SetDomainName(v string) *DescribeAvailabilityOptionsInput {
  3293. s.DomainName = &v
  3294. return s
  3295. }
  3296. // The result of a DescribeAvailabilityOptions request. Indicates whether or
  3297. // not the Multi-AZ option is enabled for the domain specified in the request.
  3298. type DescribeAvailabilityOptionsOutput struct {
  3299. _ struct{} `type:"structure"`
  3300. // The availability options configured for the domain. Indicates whether Multi-AZ
  3301. // is enabled for the domain.
  3302. AvailabilityOptions *AvailabilityOptionsStatus `type:"structure"`
  3303. }
  3304. // String returns the string representation
  3305. func (s DescribeAvailabilityOptionsOutput) String() string {
  3306. return awsutil.Prettify(s)
  3307. }
  3308. // GoString returns the string representation
  3309. func (s DescribeAvailabilityOptionsOutput) GoString() string {
  3310. return s.String()
  3311. }
  3312. // SetAvailabilityOptions sets the AvailabilityOptions field's value.
  3313. func (s *DescribeAvailabilityOptionsOutput) SetAvailabilityOptions(v *AvailabilityOptionsStatus) *DescribeAvailabilityOptionsOutput {
  3314. s.AvailabilityOptions = v
  3315. return s
  3316. }
  3317. // Container for the parameters to the DescribeDomains operation. By default
  3318. // shows the status of all domains. To restrict the response to particular domains,
  3319. // specify the names of the domains you want to describe.
  3320. type DescribeDomainsInput struct {
  3321. _ struct{} `type:"structure"`
  3322. // The names of the domains you want to include in the response.
  3323. DomainNames []*string `type:"list"`
  3324. }
  3325. // String returns the string representation
  3326. func (s DescribeDomainsInput) String() string {
  3327. return awsutil.Prettify(s)
  3328. }
  3329. // GoString returns the string representation
  3330. func (s DescribeDomainsInput) GoString() string {
  3331. return s.String()
  3332. }
  3333. // SetDomainNames sets the DomainNames field's value.
  3334. func (s *DescribeDomainsInput) SetDomainNames(v []*string) *DescribeDomainsInput {
  3335. s.DomainNames = v
  3336. return s
  3337. }
  3338. // The result of a DescribeDomains request. Contains the status of the domains
  3339. // specified in the request or all domains owned by the account.
  3340. type DescribeDomainsOutput struct {
  3341. _ struct{} `type:"structure"`
  3342. // A list that contains the status of each requested domain.
  3343. //
  3344. // DomainStatusList is a required field
  3345. DomainStatusList []*DomainStatus `type:"list" required:"true"`
  3346. }
  3347. // String returns the string representation
  3348. func (s DescribeDomainsOutput) String() string {
  3349. return awsutil.Prettify(s)
  3350. }
  3351. // GoString returns the string representation
  3352. func (s DescribeDomainsOutput) GoString() string {
  3353. return s.String()
  3354. }
  3355. // SetDomainStatusList sets the DomainStatusList field's value.
  3356. func (s *DescribeDomainsOutput) SetDomainStatusList(v []*DomainStatus) *DescribeDomainsOutput {
  3357. s.DomainStatusList = v
  3358. return s
  3359. }
  3360. // Container for the parameters to the DescribeDomains operation. Specifies
  3361. // the name of the domain you want to describe. To restrict the response to
  3362. // particular expressions, specify the names of the expressions you want to
  3363. // describe. To show the active configuration and exclude any pending changes,
  3364. // set the Deployed option to true.
  3365. type DescribeExpressionsInput struct {
  3366. _ struct{} `type:"structure"`
  3367. // Whether to display the deployed configuration (true) or include any pending
  3368. // changes (false). Defaults to false.
  3369. Deployed *bool `type:"boolean"`
  3370. // The name of the domain you want to describe.
  3371. //
  3372. // DomainName is a required field
  3373. DomainName *string `min:"3" type:"string" required:"true"`
  3374. // Limits the DescribeExpressions response to the specified expressions. If
  3375. // not specified, all expressions are shown.
  3376. ExpressionNames []*string `type:"list"`
  3377. }
  3378. // String returns the string representation
  3379. func (s DescribeExpressionsInput) String() string {
  3380. return awsutil.Prettify(s)
  3381. }
  3382. // GoString returns the string representation
  3383. func (s DescribeExpressionsInput) GoString() string {
  3384. return s.String()
  3385. }
  3386. // Validate inspects the fields of the type to determine if they are valid.
  3387. func (s *DescribeExpressionsInput) Validate() error {
  3388. invalidParams := request.ErrInvalidParams{Context: "DescribeExpressionsInput"}
  3389. if s.DomainName == nil {
  3390. invalidParams.Add(request.NewErrParamRequired("DomainName"))
  3391. }
  3392. if s.DomainName != nil && len(*s.DomainName) < 3 {
  3393. invalidParams.Add(request.NewErrParamMinLen("DomainName", 3))
  3394. }
  3395. if invalidParams.Len() > 0 {
  3396. return invalidParams
  3397. }
  3398. return nil
  3399. }
  3400. // SetDeployed sets the Deployed field's value.
  3401. func (s *DescribeExpressionsInput) SetDeployed(v bool) *DescribeExpressionsInput {
  3402. s.Deployed = &v
  3403. return s
  3404. }
  3405. // SetDomainName sets the DomainName field's value.
  3406. func (s *DescribeExpressionsInput) SetDomainName(v string) *DescribeExpressionsInput {
  3407. s.DomainName = &v
  3408. return s
  3409. }
  3410. // SetExpressionNames sets the ExpressionNames field's value.
  3411. func (s *DescribeExpressionsInput) SetExpressionNames(v []*string) *DescribeExpressionsInput {
  3412. s.ExpressionNames = v
  3413. return s
  3414. }
  3415. // The result of a DescribeExpressions request. Contains the expressions configured
  3416. // for the domain specified in the request.
  3417. type DescribeExpressionsOutput struct {
  3418. _ struct{} `type:"structure"`
  3419. // The expressions configured for the domain.
  3420. //
  3421. // Expressions is a required field
  3422. Expressions []*ExpressionStatus `type:"list" required:"true"`
  3423. }
  3424. // String returns the string representation
  3425. func (s DescribeExpressionsOutput) String() string {
  3426. return awsutil.Prettify(s)
  3427. }
  3428. // GoString returns the string representation
  3429. func (s DescribeExpressionsOutput) GoString() string {
  3430. return s.String()
  3431. }
  3432. // SetExpressions sets the Expressions field's value.
  3433. func (s *DescribeExpressionsOutput) SetExpressions(v []*ExpressionStatus) *DescribeExpressionsOutput {
  3434. s.Expressions = v
  3435. return s
  3436. }
  3437. // Container for the parameters to the DescribeIndexFields operation. Specifies
  3438. // the name of the domain you want to describe. To restrict the response to
  3439. // particular index fields, specify the names of the index fields you want to
  3440. // describe. To show the active configuration and exclude any pending changes,
  3441. // set the Deployed option to true.
  3442. type DescribeIndexFieldsInput struct {
  3443. _ struct{} `type:"structure"`
  3444. // Whether to display the deployed configuration (true) or include any pending
  3445. // changes (false). Defaults to false.
  3446. Deployed *bool `type:"boolean"`
  3447. // The name of the domain you want to describe.
  3448. //
  3449. // DomainName is a required field
  3450. DomainName *string `min:"3" type:"string" required:"true"`
  3451. // A list of the index fields you want to describe. If not specified, information
  3452. // is returned for all configured index fields.
  3453. FieldNames []*string `type:"list"`
  3454. }
  3455. // String returns the string representation
  3456. func (s DescribeIndexFieldsInput) String() string {
  3457. return awsutil.Prettify(s)
  3458. }
  3459. // GoString returns the string representation
  3460. func (s DescribeIndexFieldsInput) GoString() string {
  3461. return s.String()
  3462. }
  3463. // Validate inspects the fields of the type to determine if they are valid.
  3464. func (s *DescribeIndexFieldsInput) Validate() error {
  3465. invalidParams := request.ErrInvalidParams{Context: "DescribeIndexFieldsInput"}
  3466. if s.DomainName == nil {
  3467. invalidParams.Add(request.NewErrParamRequired("DomainName"))
  3468. }
  3469. if s.DomainName != nil && len(*s.DomainName) < 3 {
  3470. invalidParams.Add(request.NewErrParamMinLen("DomainName", 3))
  3471. }
  3472. if invalidParams.Len() > 0 {
  3473. return invalidParams
  3474. }
  3475. return nil
  3476. }
  3477. // SetDeployed sets the Deployed field's value.
  3478. func (s *DescribeIndexFieldsInput) SetDeployed(v bool) *DescribeIndexFieldsInput {
  3479. s.Deployed = &v
  3480. return s
  3481. }
  3482. // SetDomainName sets the DomainName field's value.
  3483. func (s *DescribeIndexFieldsInput) SetDomainName(v string) *DescribeIndexFieldsInput {
  3484. s.DomainName = &v
  3485. return s
  3486. }
  3487. // SetFieldNames sets the FieldNames field's value.
  3488. func (s *DescribeIndexFieldsInput) SetFieldNames(v []*string) *DescribeIndexFieldsInput {
  3489. s.FieldNames = v
  3490. return s
  3491. }
  3492. // The result of a DescribeIndexFields request. Contains the index fields configured
  3493. // for the domain specified in the request.
  3494. type DescribeIndexFieldsOutput struct {
  3495. _ struct{} `type:"structure"`
  3496. // The index fields configured for the domain.
  3497. //
  3498. // IndexFields is a required field
  3499. IndexFields []*IndexFieldStatus `type:"list" required:"true"`
  3500. }
  3501. // String returns the string representation
  3502. func (s DescribeIndexFieldsOutput) String() string {
  3503. return awsutil.Prettify(s)
  3504. }
  3505. // GoString returns the string representation
  3506. func (s DescribeIndexFieldsOutput) GoString() string {
  3507. return s.String()
  3508. }
  3509. // SetIndexFields sets the IndexFields field's value.
  3510. func (s *DescribeIndexFieldsOutput) SetIndexFields(v []*IndexFieldStatus) *DescribeIndexFieldsOutput {
  3511. s.IndexFields = v
  3512. return s
  3513. }
  3514. // Container for the parameters to the DescribeScalingParameters operation.
  3515. // Specifies the name of the domain you want to describe.
  3516. type DescribeScalingParametersInput struct {
  3517. _ struct{} `type:"structure"`
  3518. // A string that represents the name of a domain. Domain names are unique across
  3519. // the domains owned by an account within an AWS region. Domain names start
  3520. // with a letter or number and can contain the following characters: a-z (lowercase),
  3521. // 0-9, and - (hyphen).
  3522. //
  3523. // DomainName is a required field
  3524. DomainName *string `min:"3" type:"string" required:"true"`
  3525. }
  3526. // String returns the string representation
  3527. func (s DescribeScalingParametersInput) String() string {
  3528. return awsutil.Prettify(s)
  3529. }
  3530. // GoString returns the string representation
  3531. func (s DescribeScalingParametersInput) GoString() string {
  3532. return s.String()
  3533. }
  3534. // Validate inspects the fields of the type to determine if they are valid.
  3535. func (s *DescribeScalingParametersInput) Validate() error {
  3536. invalidParams := request.ErrInvalidParams{Context: "DescribeScalingParametersInput"}
  3537. if s.DomainName == nil {
  3538. invalidParams.Add(request.NewErrParamRequired("DomainName"))
  3539. }
  3540. if s.DomainName != nil && len(*s.DomainName) < 3 {
  3541. invalidParams.Add(request.NewErrParamMinLen("DomainName", 3))
  3542. }
  3543. if invalidParams.Len() > 0 {
  3544. return invalidParams
  3545. }
  3546. return nil
  3547. }
  3548. // SetDomainName sets the DomainName field's value.
  3549. func (s *DescribeScalingParametersInput) SetDomainName(v string) *DescribeScalingParametersInput {
  3550. s.DomainName = &v
  3551. return s
  3552. }
  3553. // The result of a DescribeScalingParameters request. Contains the scaling parameters
  3554. // configured for the domain specified in the request.
  3555. type DescribeScalingParametersOutput struct {
  3556. _ struct{} `type:"structure"`
  3557. // The status and configuration of a search domain's scaling parameters.
  3558. //
  3559. // ScalingParameters is a required field
  3560. ScalingParameters *ScalingParametersStatus `type:"structure" required:"true"`
  3561. }
  3562. // String returns the string representation
  3563. func (s DescribeScalingParametersOutput) String() string {
  3564. return awsutil.Prettify(s)
  3565. }
  3566. // GoString returns the string representation
  3567. func (s DescribeScalingParametersOutput) GoString() string {
  3568. return s.String()
  3569. }
  3570. // SetScalingParameters sets the ScalingParameters field's value.
  3571. func (s *DescribeScalingParametersOutput) SetScalingParameters(v *ScalingParametersStatus) *DescribeScalingParametersOutput {
  3572. s.ScalingParameters = v
  3573. return s
  3574. }
  3575. // Container for the parameters to the DescribeServiceAccessPolicies operation.
  3576. // Specifies the name of the domain you want to describe. To show the active
  3577. // configuration and exclude any pending changes, set the Deployed option to
  3578. // true.
  3579. type DescribeServiceAccessPoliciesInput struct {
  3580. _ struct{} `type:"structure"`
  3581. // Whether to display the deployed configuration (true) or include any pending
  3582. // changes (false). Defaults to false.
  3583. Deployed *bool `type:"boolean"`
  3584. // The name of the domain you want to describe.
  3585. //
  3586. // DomainName is a required field
  3587. DomainName *string `min:"3" type:"string" required:"true"`
  3588. }
  3589. // String returns the string representation
  3590. func (s DescribeServiceAccessPoliciesInput) String() string {
  3591. return awsutil.Prettify(s)
  3592. }
  3593. // GoString returns the string representation
  3594. func (s DescribeServiceAccessPoliciesInput) GoString() string {
  3595. return s.String()
  3596. }
  3597. // Validate inspects the fields of the type to determine if they are valid.
  3598. func (s *DescribeServiceAccessPoliciesInput) Validate() error {
  3599. invalidParams := request.ErrInvalidParams{Context: "DescribeServiceAccessPoliciesInput"}
  3600. if s.DomainName == nil {
  3601. invalidParams.Add(request.NewErrParamRequired("DomainName"))
  3602. }
  3603. if s.DomainName != nil && len(*s.DomainName) < 3 {
  3604. invalidParams.Add(request.NewErrParamMinLen("DomainName", 3))
  3605. }
  3606. if invalidParams.Len() > 0 {
  3607. return invalidParams
  3608. }
  3609. return nil
  3610. }
  3611. // SetDeployed sets the Deployed field's value.
  3612. func (s *DescribeServiceAccessPoliciesInput) SetDeployed(v bool) *DescribeServiceAccessPoliciesInput {
  3613. s.Deployed = &v
  3614. return s
  3615. }
  3616. // SetDomainName sets the DomainName field's value.
  3617. func (s *DescribeServiceAccessPoliciesInput) SetDomainName(v string) *DescribeServiceAccessPoliciesInput {
  3618. s.DomainName = &v
  3619. return s
  3620. }
  3621. // The result of a DescribeServiceAccessPolicies request.
  3622. type DescribeServiceAccessPoliciesOutput struct {
  3623. _ struct{} `type:"structure"`
  3624. // The access rules configured for the domain specified in the request.
  3625. //
  3626. // AccessPolicies is a required field
  3627. AccessPolicies *AccessPoliciesStatus `type:"structure" required:"true"`
  3628. }
  3629. // String returns the string representation
  3630. func (s DescribeServiceAccessPoliciesOutput) String() string {
  3631. return awsutil.Prettify(s)
  3632. }
  3633. // GoString returns the string representation
  3634. func (s DescribeServiceAccessPoliciesOutput) GoString() string {
  3635. return s.String()
  3636. }
  3637. // SetAccessPolicies sets the AccessPolicies field's value.
  3638. func (s *DescribeServiceAccessPoliciesOutput) SetAccessPolicies(v *AccessPoliciesStatus) *DescribeServiceAccessPoliciesOutput {
  3639. s.AccessPolicies = v
  3640. return s
  3641. }
  3642. // Container for the parameters to the DescribeSuggester operation. Specifies
  3643. // the name of the domain you want to describe. To restrict the response to
  3644. // particular suggesters, specify the names of the suggesters you want to describe.
  3645. // To show the active configuration and exclude any pending changes, set the
  3646. // Deployed option to true.
  3647. type DescribeSuggestersInput struct {
  3648. _ struct{} `type:"structure"`
  3649. // Whether to display the deployed configuration (true) or include any pending
  3650. // changes (false). Defaults to false.
  3651. Deployed *bool `type:"boolean"`
  3652. // The name of the domain you want to describe.
  3653. //
  3654. // DomainName is a required field
  3655. DomainName *string `min:"3" type:"string" required:"true"`
  3656. // The suggesters you want to describe.
  3657. SuggesterNames []*string `type:"list"`
  3658. }
  3659. // String returns the string representation
  3660. func (s DescribeSuggestersInput) String() string {
  3661. return awsutil.Prettify(s)
  3662. }
  3663. // GoString returns the string representation
  3664. func (s DescribeSuggestersInput) GoString() string {
  3665. return s.String()
  3666. }
  3667. // Validate inspects the fields of the type to determine if they are valid.
  3668. func (s *DescribeSuggestersInput) Validate() error {
  3669. invalidParams := request.ErrInvalidParams{Context: "DescribeSuggestersInput"}
  3670. if s.DomainName == nil {
  3671. invalidParams.Add(request.NewErrParamRequired("DomainName"))
  3672. }
  3673. if s.DomainName != nil && len(*s.DomainName) < 3 {
  3674. invalidParams.Add(request.NewErrParamMinLen("DomainName", 3))
  3675. }
  3676. if invalidParams.Len() > 0 {
  3677. return invalidParams
  3678. }
  3679. return nil
  3680. }
  3681. // SetDeployed sets the Deployed field's value.
  3682. func (s *DescribeSuggestersInput) SetDeployed(v bool) *DescribeSuggestersInput {
  3683. s.Deployed = &v
  3684. return s
  3685. }
  3686. // SetDomainName sets the DomainName field's value.
  3687. func (s *DescribeSuggestersInput) SetDomainName(v string) *DescribeSuggestersInput {
  3688. s.DomainName = &v
  3689. return s
  3690. }
  3691. // SetSuggesterNames sets the SuggesterNames field's value.
  3692. func (s *DescribeSuggestersInput) SetSuggesterNames(v []*string) *DescribeSuggestersInput {
  3693. s.SuggesterNames = v
  3694. return s
  3695. }
  3696. // The result of a DescribeSuggesters request.
  3697. type DescribeSuggestersOutput struct {
  3698. _ struct{} `type:"structure"`
  3699. // The suggesters configured for the domain specified in the request.
  3700. //
  3701. // Suggesters is a required field
  3702. Suggesters []*SuggesterStatus `type:"list" required:"true"`
  3703. }
  3704. // String returns the string representation
  3705. func (s DescribeSuggestersOutput) String() string {
  3706. return awsutil.Prettify(s)
  3707. }
  3708. // GoString returns the string representation
  3709. func (s DescribeSuggestersOutput) GoString() string {
  3710. return s.String()
  3711. }
  3712. // SetSuggesters sets the Suggesters field's value.
  3713. func (s *DescribeSuggestersOutput) SetSuggesters(v []*SuggesterStatus) *DescribeSuggestersOutput {
  3714. s.Suggesters = v
  3715. return s
  3716. }
  3717. // Options for a search suggester.
  3718. type DocumentSuggesterOptions struct {
  3719. _ struct{} `type:"structure"`
  3720. // The level of fuzziness allowed when suggesting matches for a string: none,
  3721. // low, or high. With none, the specified string is treated as an exact prefix.
  3722. // With low, suggestions must differ from the specified string by no more than
  3723. // one character. With high, suggestions can differ by up to two characters.
  3724. // The default is none.
  3725. FuzzyMatching *string `type:"string" enum:"SuggesterFuzzyMatching"`
  3726. // An expression that computes a score for each suggestion to control how they
  3727. // are sorted. The scores are rounded to the nearest integer, with a floor of
  3728. // 0 and a ceiling of 2^31-1. A document's relevance score is not computed for
  3729. // suggestions, so sort expressions cannot reference the _score value. To sort
  3730. // suggestions using a numeric field or existing expression, simply specify
  3731. // the name of the field or expression. If no expression is configured for the
  3732. // suggester, the suggestions are sorted with the closest matches listed first.
  3733. SortExpression *string `type:"string"`
  3734. // The name of the index field you want to use for suggestions.
  3735. //
  3736. // SourceField is a required field
  3737. SourceField *string `min:"1" type:"string" required:"true"`
  3738. }
  3739. // String returns the string representation
  3740. func (s DocumentSuggesterOptions) String() string {
  3741. return awsutil.Prettify(s)
  3742. }
  3743. // GoString returns the string representation
  3744. func (s DocumentSuggesterOptions) GoString() string {
  3745. return s.String()
  3746. }
  3747. // Validate inspects the fields of the type to determine if they are valid.
  3748. func (s *DocumentSuggesterOptions) Validate() error {
  3749. invalidParams := request.ErrInvalidParams{Context: "DocumentSuggesterOptions"}
  3750. if s.SourceField == nil {
  3751. invalidParams.Add(request.NewErrParamRequired("SourceField"))
  3752. }
  3753. if s.SourceField != nil && len(*s.SourceField) < 1 {
  3754. invalidParams.Add(request.NewErrParamMinLen("SourceField", 1))
  3755. }
  3756. if invalidParams.Len() > 0 {
  3757. return invalidParams
  3758. }
  3759. return nil
  3760. }
  3761. // SetFuzzyMatching sets the FuzzyMatching field's value.
  3762. func (s *DocumentSuggesterOptions) SetFuzzyMatching(v string) *DocumentSuggesterOptions {
  3763. s.FuzzyMatching = &v
  3764. return s
  3765. }
  3766. // SetSortExpression sets the SortExpression field's value.
  3767. func (s *DocumentSuggesterOptions) SetSortExpression(v string) *DocumentSuggesterOptions {
  3768. s.SortExpression = &v
  3769. return s
  3770. }
  3771. // SetSourceField sets the SourceField field's value.
  3772. func (s *DocumentSuggesterOptions) SetSourceField(v string) *DocumentSuggesterOptions {
  3773. s.SourceField = &v
  3774. return s
  3775. }
  3776. // The current status of the search domain.
  3777. type DomainStatus struct {
  3778. _ struct{} `type:"structure"`
  3779. // The Amazon Resource Name (ARN) of the search domain. See Identifiers for
  3780. // IAM Entities (http://docs.aws.amazon.com/IAM/latest/UserGuide/index.html?Using_Identifiers.html)
  3781. // in Using AWS Identity and Access Management for more information.
  3782. ARN *string `type:"string"`
  3783. // True if the search domain is created. It can take several minutes to initialize
  3784. // a domain when CreateDomain is called. Newly created search domains are returned
  3785. // from DescribeDomains with a false value for Created until domain creation
  3786. // is complete.
  3787. Created *bool `type:"boolean"`
  3788. // True if the search domain has been deleted. The system must clean up resources
  3789. // dedicated to the search domain when DeleteDomain is called. Newly deleted
  3790. // search domains are returned from DescribeDomains with a true value for IsDeleted
  3791. // for several minutes until resource cleanup is complete.
  3792. Deleted *bool `type:"boolean"`
  3793. // The service endpoint for updating documents in a search domain.
  3794. DocService *ServiceEndpoint `type:"structure"`
  3795. // An internally generated unique identifier for a domain.
  3796. //
  3797. // DomainId is a required field
  3798. DomainId *string `min:"1" type:"string" required:"true"`
  3799. // A string that represents the name of a domain. Domain names are unique across
  3800. // the domains owned by an account within an AWS region. Domain names start
  3801. // with a letter or number and can contain the following characters: a-z (lowercase),
  3802. // 0-9, and - (hyphen).
  3803. //
  3804. // DomainName is a required field
  3805. DomainName *string `min:"3" type:"string" required:"true"`
  3806. Limits *Limits `type:"structure"`
  3807. // True if processing is being done to activate the current domain configuration.
  3808. Processing *bool `type:"boolean"`
  3809. // True if IndexDocuments needs to be called to activate the current domain
  3810. // configuration.
  3811. //
  3812. // RequiresIndexDocuments is a required field
  3813. RequiresIndexDocuments *bool `type:"boolean" required:"true"`
  3814. // The number of search instances that are available to process search requests.
  3815. SearchInstanceCount *int64 `min:"1" type:"integer"`
  3816. // The instance type that is being used to process search requests.
  3817. SearchInstanceType *string `type:"string"`
  3818. // The number of partitions across which the search index is spread.
  3819. SearchPartitionCount *int64 `min:"1" type:"integer"`
  3820. // The service endpoint for requesting search results from a search domain.
  3821. SearchService *ServiceEndpoint `type:"structure"`
  3822. }
  3823. // String returns the string representation
  3824. func (s DomainStatus) String() string {
  3825. return awsutil.Prettify(s)
  3826. }
  3827. // GoString returns the string representation
  3828. func (s DomainStatus) GoString() string {
  3829. return s.String()
  3830. }
  3831. // SetARN sets the ARN field's value.
  3832. func (s *DomainStatus) SetARN(v string) *DomainStatus {
  3833. s.ARN = &v
  3834. return s
  3835. }
  3836. // SetCreated sets the Created field's value.
  3837. func (s *DomainStatus) SetCreated(v bool) *DomainStatus {
  3838. s.Created = &v
  3839. return s
  3840. }
  3841. // SetDeleted sets the Deleted field's value.
  3842. func (s *DomainStatus) SetDeleted(v bool) *DomainStatus {
  3843. s.Deleted = &v
  3844. return s
  3845. }
  3846. // SetDocService sets the DocService field's value.
  3847. func (s *DomainStatus) SetDocService(v *ServiceEndpoint) *DomainStatus {
  3848. s.DocService = v
  3849. return s
  3850. }
  3851. // SetDomainId sets the DomainId field's value.
  3852. func (s *DomainStatus) SetDomainId(v string) *DomainStatus {
  3853. s.DomainId = &v
  3854. return s
  3855. }
  3856. // SetDomainName sets the DomainName field's value.
  3857. func (s *DomainStatus) SetDomainName(v string) *DomainStatus {
  3858. s.DomainName = &v
  3859. return s
  3860. }
  3861. // SetLimits sets the Limits field's value.
  3862. func (s *DomainStatus) SetLimits(v *Limits) *DomainStatus {
  3863. s.Limits = v
  3864. return s
  3865. }
  3866. // SetProcessing sets the Processing field's value.
  3867. func (s *DomainStatus) SetProcessing(v bool) *DomainStatus {
  3868. s.Processing = &v
  3869. return s
  3870. }
  3871. // SetRequiresIndexDocuments sets the RequiresIndexDocuments field's value.
  3872. func (s *DomainStatus) SetRequiresIndexDocuments(v bool) *DomainStatus {
  3873. s.RequiresIndexDocuments = &v
  3874. return s
  3875. }
  3876. // SetSearchInstanceCount sets the SearchInstanceCount field's value.
  3877. func (s *DomainStatus) SetSearchInstanceCount(v int64) *DomainStatus {
  3878. s.SearchInstanceCount = &v
  3879. return s
  3880. }
  3881. // SetSearchInstanceType sets the SearchInstanceType field's value.
  3882. func (s *DomainStatus) SetSearchInstanceType(v string) *DomainStatus {
  3883. s.SearchInstanceType = &v
  3884. return s
  3885. }
  3886. // SetSearchPartitionCount sets the SearchPartitionCount field's value.
  3887. func (s *DomainStatus) SetSearchPartitionCount(v int64) *DomainStatus {
  3888. s.SearchPartitionCount = &v
  3889. return s
  3890. }
  3891. // SetSearchService sets the SearchService field's value.
  3892. func (s *DomainStatus) SetSearchService(v *ServiceEndpoint) *DomainStatus {
  3893. s.SearchService = v
  3894. return s
  3895. }
  3896. // Options for a field that contains an array of double-precision 64-bit floating
  3897. // point values. Present if IndexFieldType specifies the field is of type double-array.
  3898. // All options are enabled by default.
  3899. type DoubleArrayOptions struct {
  3900. _ struct{} `type:"structure"`
  3901. // A value to use for the field if the field isn't specified for a document.
  3902. DefaultValue *float64 `type:"double"`
  3903. // Whether facet information can be returned for the field.
  3904. FacetEnabled *bool `type:"boolean"`
  3905. // Whether the contents of the field can be returned in the search results.
  3906. ReturnEnabled *bool `type:"boolean"`
  3907. // Whether the contents of the field are searchable.
  3908. SearchEnabled *bool `type:"boolean"`
  3909. // A list of source fields to map to the field.
  3910. SourceFields *string `type:"string"`
  3911. }
  3912. // String returns the string representation
  3913. func (s DoubleArrayOptions) String() string {
  3914. return awsutil.Prettify(s)
  3915. }
  3916. // GoString returns the string representation
  3917. func (s DoubleArrayOptions) GoString() string {
  3918. return s.String()
  3919. }
  3920. // SetDefaultValue sets the DefaultValue field's value.
  3921. func (s *DoubleArrayOptions) SetDefaultValue(v float64) *DoubleArrayOptions {
  3922. s.DefaultValue = &v
  3923. return s
  3924. }
  3925. // SetFacetEnabled sets the FacetEnabled field's value.
  3926. func (s *DoubleArrayOptions) SetFacetEnabled(v bool) *DoubleArrayOptions {
  3927. s.FacetEnabled = &v
  3928. return s
  3929. }
  3930. // SetReturnEnabled sets the ReturnEnabled field's value.
  3931. func (s *DoubleArrayOptions) SetReturnEnabled(v bool) *DoubleArrayOptions {
  3932. s.ReturnEnabled = &v
  3933. return s
  3934. }
  3935. // SetSearchEnabled sets the SearchEnabled field's value.
  3936. func (s *DoubleArrayOptions) SetSearchEnabled(v bool) *DoubleArrayOptions {
  3937. s.SearchEnabled = &v
  3938. return s
  3939. }
  3940. // SetSourceFields sets the SourceFields field's value.
  3941. func (s *DoubleArrayOptions) SetSourceFields(v string) *DoubleArrayOptions {
  3942. s.SourceFields = &v
  3943. return s
  3944. }
  3945. // Options for a double-precision 64-bit floating point field. Present if IndexFieldType
  3946. // specifies the field is of type double. All options are enabled by default.
  3947. type DoubleOptions struct {
  3948. _ struct{} `type:"structure"`
  3949. // A value to use for the field if the field isn't specified for a document.
  3950. // This can be important if you are using the field in an expression and that
  3951. // field is not present in every document.
  3952. DefaultValue *float64 `type:"double"`
  3953. // Whether facet information can be returned for the field.
  3954. FacetEnabled *bool `type:"boolean"`
  3955. // Whether the contents of the field can be returned in the search results.
  3956. ReturnEnabled *bool `type:"boolean"`
  3957. // Whether the contents of the field are searchable.
  3958. SearchEnabled *bool `type:"boolean"`
  3959. // Whether the field can be used to sort the search results.
  3960. SortEnabled *bool `type:"boolean"`
  3961. // The name of the source field to map to the field.
  3962. SourceField *string `min:"1" type:"string"`
  3963. }
  3964. // String returns the string representation
  3965. func (s DoubleOptions) String() string {
  3966. return awsutil.Prettify(s)
  3967. }
  3968. // GoString returns the string representation
  3969. func (s DoubleOptions) GoString() string {
  3970. return s.String()
  3971. }
  3972. // Validate inspects the fields of the type to determine if they are valid.
  3973. func (s *DoubleOptions) Validate() error {
  3974. invalidParams := request.ErrInvalidParams{Context: "DoubleOptions"}
  3975. if s.SourceField != nil && len(*s.SourceField) < 1 {
  3976. invalidParams.Add(request.NewErrParamMinLen("SourceField", 1))
  3977. }
  3978. if invalidParams.Len() > 0 {
  3979. return invalidParams
  3980. }
  3981. return nil
  3982. }
  3983. // SetDefaultValue sets the DefaultValue field's value.
  3984. func (s *DoubleOptions) SetDefaultValue(v float64) *DoubleOptions {
  3985. s.DefaultValue = &v
  3986. return s
  3987. }
  3988. // SetFacetEnabled sets the FacetEnabled field's value.
  3989. func (s *DoubleOptions) SetFacetEnabled(v bool) *DoubleOptions {
  3990. s.FacetEnabled = &v
  3991. return s
  3992. }
  3993. // SetReturnEnabled sets the ReturnEnabled field's value.
  3994. func (s *DoubleOptions) SetReturnEnabled(v bool) *DoubleOptions {
  3995. s.ReturnEnabled = &v
  3996. return s
  3997. }
  3998. // SetSearchEnabled sets the SearchEnabled field's value.
  3999. func (s *DoubleOptions) SetSearchEnabled(v bool) *DoubleOptions {
  4000. s.SearchEnabled = &v
  4001. return s
  4002. }
  4003. // SetSortEnabled sets the SortEnabled field's value.
  4004. func (s *DoubleOptions) SetSortEnabled(v bool) *DoubleOptions {
  4005. s.SortEnabled = &v
  4006. return s
  4007. }
  4008. // SetSourceField sets the SourceField field's value.
  4009. func (s *DoubleOptions) SetSourceField(v string) *DoubleOptions {
  4010. s.SourceField = &v
  4011. return s
  4012. }
  4013. // A named expression that can be evaluated at search time. Can be used to sort
  4014. // the search results, define other expressions, or return computed information
  4015. // in the search results.
  4016. type Expression struct {
  4017. _ struct{} `type:"structure"`
  4018. // Names must begin with a letter and can contain the following characters:
  4019. // a-z (lowercase), 0-9, and _ (underscore).
  4020. //
  4021. // ExpressionName is a required field
  4022. ExpressionName *string `min:"1" type:"string" required:"true"`
  4023. // The expression to evaluate for sorting while processing a search request.
  4024. // The Expression syntax is based on JavaScript expressions. For more information,
  4025. // see Configuring Expressions (http://docs.aws.amazon.com/cloudsearch/latest/developerguide/configuring-expressions.html)
  4026. // in the Amazon CloudSearch Developer Guide.
  4027. //
  4028. // ExpressionValue is a required field
  4029. ExpressionValue *string `min:"1" type:"string" required:"true"`
  4030. }
  4031. // String returns the string representation
  4032. func (s Expression) String() string {
  4033. return awsutil.Prettify(s)
  4034. }
  4035. // GoString returns the string representation
  4036. func (s Expression) GoString() string {
  4037. return s.String()
  4038. }
  4039. // Validate inspects the fields of the type to determine if they are valid.
  4040. func (s *Expression) Validate() error {
  4041. invalidParams := request.ErrInvalidParams{Context: "Expression"}
  4042. if s.ExpressionName == nil {
  4043. invalidParams.Add(request.NewErrParamRequired("ExpressionName"))
  4044. }
  4045. if s.ExpressionName != nil && len(*s.ExpressionName) < 1 {
  4046. invalidParams.Add(request.NewErrParamMinLen("ExpressionName", 1))
  4047. }
  4048. if s.ExpressionValue == nil {
  4049. invalidParams.Add(request.NewErrParamRequired("ExpressionValue"))
  4050. }
  4051. if s.ExpressionValue != nil && len(*s.ExpressionValue) < 1 {
  4052. invalidParams.Add(request.NewErrParamMinLen("ExpressionValue", 1))
  4053. }
  4054. if invalidParams.Len() > 0 {
  4055. return invalidParams
  4056. }
  4057. return nil
  4058. }
  4059. // SetExpressionName sets the ExpressionName field's value.
  4060. func (s *Expression) SetExpressionName(v string) *Expression {
  4061. s.ExpressionName = &v
  4062. return s
  4063. }
  4064. // SetExpressionValue sets the ExpressionValue field's value.
  4065. func (s *Expression) SetExpressionValue(v string) *Expression {
  4066. s.ExpressionValue = &v
  4067. return s
  4068. }
  4069. // The value of an Expression and its current status.
  4070. type ExpressionStatus struct {
  4071. _ struct{} `type:"structure"`
  4072. // The expression that is evaluated for sorting while processing a search request.
  4073. //
  4074. // Options is a required field
  4075. Options *Expression `type:"structure" required:"true"`
  4076. // The status of domain configuration option.
  4077. //
  4078. // Status is a required field
  4079. Status *OptionStatus `type:"structure" required:"true"`
  4080. }
  4081. // String returns the string representation
  4082. func (s ExpressionStatus) String() string {
  4083. return awsutil.Prettify(s)
  4084. }
  4085. // GoString returns the string representation
  4086. func (s ExpressionStatus) GoString() string {
  4087. return s.String()
  4088. }
  4089. // SetOptions sets the Options field's value.
  4090. func (s *ExpressionStatus) SetOptions(v *Expression) *ExpressionStatus {
  4091. s.Options = v
  4092. return s
  4093. }
  4094. // SetStatus sets the Status field's value.
  4095. func (s *ExpressionStatus) SetStatus(v *OptionStatus) *ExpressionStatus {
  4096. s.Status = v
  4097. return s
  4098. }
  4099. // Container for the parameters to the IndexDocuments operation. Specifies the
  4100. // name of the domain you want to re-index.
  4101. type IndexDocumentsInput struct {
  4102. _ struct{} `type:"structure"`
  4103. // A string that represents the name of a domain. Domain names are unique across
  4104. // the domains owned by an account within an AWS region. Domain names start
  4105. // with a letter or number and can contain the following characters: a-z (lowercase),
  4106. // 0-9, and - (hyphen).
  4107. //
  4108. // DomainName is a required field
  4109. DomainName *string `min:"3" type:"string" required:"true"`
  4110. }
  4111. // String returns the string representation
  4112. func (s IndexDocumentsInput) String() string {
  4113. return awsutil.Prettify(s)
  4114. }
  4115. // GoString returns the string representation
  4116. func (s IndexDocumentsInput) GoString() string {
  4117. return s.String()
  4118. }
  4119. // Validate inspects the fields of the type to determine if they are valid.
  4120. func (s *IndexDocumentsInput) Validate() error {
  4121. invalidParams := request.ErrInvalidParams{Context: "IndexDocumentsInput"}
  4122. if s.DomainName == nil {
  4123. invalidParams.Add(request.NewErrParamRequired("DomainName"))
  4124. }
  4125. if s.DomainName != nil && len(*s.DomainName) < 3 {
  4126. invalidParams.Add(request.NewErrParamMinLen("DomainName", 3))
  4127. }
  4128. if invalidParams.Len() > 0 {
  4129. return invalidParams
  4130. }
  4131. return nil
  4132. }
  4133. // SetDomainName sets the DomainName field's value.
  4134. func (s *IndexDocumentsInput) SetDomainName(v string) *IndexDocumentsInput {
  4135. s.DomainName = &v
  4136. return s
  4137. }
  4138. // The result of an IndexDocuments request. Contains the status of the indexing
  4139. // operation, including the fields being indexed.
  4140. type IndexDocumentsOutput struct {
  4141. _ struct{} `type:"structure"`
  4142. // The names of the fields that are currently being indexed.
  4143. FieldNames []*string `type:"list"`
  4144. }
  4145. // String returns the string representation
  4146. func (s IndexDocumentsOutput) String() string {
  4147. return awsutil.Prettify(s)
  4148. }
  4149. // GoString returns the string representation
  4150. func (s IndexDocumentsOutput) GoString() string {
  4151. return s.String()
  4152. }
  4153. // SetFieldNames sets the FieldNames field's value.
  4154. func (s *IndexDocumentsOutput) SetFieldNames(v []*string) *IndexDocumentsOutput {
  4155. s.FieldNames = v
  4156. return s
  4157. }
  4158. // Configuration information for a field in the index, including its name, type,
  4159. // and options. The supported options depend on the IndexFieldType.
  4160. type IndexField struct {
  4161. _ struct{} `type:"structure"`
  4162. // Options for a field that contains an array of dates. Present if IndexFieldType
  4163. // specifies the field is of type date-array. All options are enabled by default.
  4164. DateArrayOptions *DateArrayOptions `type:"structure"`
  4165. // Options for a date field. Dates and times are specified in UTC (Coordinated
  4166. // Universal Time) according to IETF RFC3339: yyyy-mm-ddT00:00:00Z. Present
  4167. // if IndexFieldType specifies the field is of type date. All options are enabled
  4168. // by default.
  4169. DateOptions *DateOptions `type:"structure"`
  4170. // Options for a field that contains an array of double-precision 64-bit floating
  4171. // point values. Present if IndexFieldType specifies the field is of type double-array.
  4172. // All options are enabled by default.
  4173. DoubleArrayOptions *DoubleArrayOptions `type:"structure"`
  4174. // Options for a double-precision 64-bit floating point field. Present if IndexFieldType
  4175. // specifies the field is of type double. All options are enabled by default.
  4176. DoubleOptions *DoubleOptions `type:"structure"`
  4177. // A string that represents the name of an index field. CloudSearch supports
  4178. // regular index fields as well as dynamic fields. A dynamic field's name defines
  4179. // a pattern that begins or ends with a wildcard. Any document fields that don't
  4180. // map to a regular index field but do match a dynamic field's pattern are configured
  4181. // with the dynamic field's indexing options.
  4182. //
  4183. // Regular field names begin with a letter and can contain the following characters:
  4184. // a-z (lowercase), 0-9, and _ (underscore). Dynamic field names must begin
  4185. // or end with a wildcard (*). The wildcard can also be the only character in
  4186. // a dynamic field name. Multiple wildcards, and wildcards embedded within a
  4187. // string are not supported.
  4188. //
  4189. // The name score is reserved and cannot be used as a field name. To reference
  4190. // a document's ID, you can use the name _id.
  4191. //
  4192. // IndexFieldName is a required field
  4193. IndexFieldName *string `min:"1" type:"string" required:"true"`
  4194. // The type of field. The valid options for a field depend on the field type.
  4195. // For more information about the supported field types, see Configuring Index
  4196. // Fields (http://docs.aws.amazon.com/cloudsearch/latest/developerguide/configuring-index-fields.html)
  4197. // in the Amazon CloudSearch Developer Guide.
  4198. //
  4199. // IndexFieldType is a required field
  4200. IndexFieldType *string `type:"string" required:"true" enum:"IndexFieldType"`
  4201. // Options for a field that contains an array of 64-bit signed integers. Present
  4202. // if IndexFieldType specifies the field is of type int-array. All options are
  4203. // enabled by default.
  4204. IntArrayOptions *IntArrayOptions `type:"structure"`
  4205. // Options for a 64-bit signed integer field. Present if IndexFieldType specifies
  4206. // the field is of type int. All options are enabled by default.
  4207. IntOptions *IntOptions `type:"structure"`
  4208. // Options for a latlon field. A latlon field contains a location stored as
  4209. // a latitude and longitude value pair. Present if IndexFieldType specifies
  4210. // the field is of type latlon. All options are enabled by default.
  4211. LatLonOptions *LatLonOptions `type:"structure"`
  4212. // Options for a field that contains an array of literal strings. Present if
  4213. // IndexFieldType specifies the field is of type literal-array. All options
  4214. // are enabled by default.
  4215. LiteralArrayOptions *LiteralArrayOptions `type:"structure"`
  4216. // Options for literal field. Present if IndexFieldType specifies the field
  4217. // is of type literal. All options are enabled by default.
  4218. LiteralOptions *LiteralOptions `type:"structure"`
  4219. // Options for a field that contains an array of text strings. Present if IndexFieldType
  4220. // specifies the field is of type text-array. A text-array field is always searchable.
  4221. // All options are enabled by default.
  4222. TextArrayOptions *TextArrayOptions `type:"structure"`
  4223. // Options for text field. Present if IndexFieldType specifies the field is
  4224. // of type text. A text field is always searchable. All options are enabled
  4225. // by default.
  4226. TextOptions *TextOptions `type:"structure"`
  4227. }
  4228. // String returns the string representation
  4229. func (s IndexField) String() string {
  4230. return awsutil.Prettify(s)
  4231. }
  4232. // GoString returns the string representation
  4233. func (s IndexField) GoString() string {
  4234. return s.String()
  4235. }
  4236. // Validate inspects the fields of the type to determine if they are valid.
  4237. func (s *IndexField) Validate() error {
  4238. invalidParams := request.ErrInvalidParams{Context: "IndexField"}
  4239. if s.IndexFieldName == nil {
  4240. invalidParams.Add(request.NewErrParamRequired("IndexFieldName"))
  4241. }
  4242. if s.IndexFieldName != nil && len(*s.IndexFieldName) < 1 {
  4243. invalidParams.Add(request.NewErrParamMinLen("IndexFieldName", 1))
  4244. }
  4245. if s.IndexFieldType == nil {
  4246. invalidParams.Add(request.NewErrParamRequired("IndexFieldType"))
  4247. }
  4248. if s.DateOptions != nil {
  4249. if err := s.DateOptions.Validate(); err != nil {
  4250. invalidParams.AddNested("DateOptions", err.(request.ErrInvalidParams))
  4251. }
  4252. }
  4253. if s.DoubleOptions != nil {
  4254. if err := s.DoubleOptions.Validate(); err != nil {
  4255. invalidParams.AddNested("DoubleOptions", err.(request.ErrInvalidParams))
  4256. }
  4257. }
  4258. if s.IntOptions != nil {
  4259. if err := s.IntOptions.Validate(); err != nil {
  4260. invalidParams.AddNested("IntOptions", err.(request.ErrInvalidParams))
  4261. }
  4262. }
  4263. if s.LatLonOptions != nil {
  4264. if err := s.LatLonOptions.Validate(); err != nil {
  4265. invalidParams.AddNested("LatLonOptions", err.(request.ErrInvalidParams))
  4266. }
  4267. }
  4268. if s.LiteralOptions != nil {
  4269. if err := s.LiteralOptions.Validate(); err != nil {
  4270. invalidParams.AddNested("LiteralOptions", err.(request.ErrInvalidParams))
  4271. }
  4272. }
  4273. if s.TextOptions != nil {
  4274. if err := s.TextOptions.Validate(); err != nil {
  4275. invalidParams.AddNested("TextOptions", err.(request.ErrInvalidParams))
  4276. }
  4277. }
  4278. if invalidParams.Len() > 0 {
  4279. return invalidParams
  4280. }
  4281. return nil
  4282. }
  4283. // SetDateArrayOptions sets the DateArrayOptions field's value.
  4284. func (s *IndexField) SetDateArrayOptions(v *DateArrayOptions) *IndexField {
  4285. s.DateArrayOptions = v
  4286. return s
  4287. }
  4288. // SetDateOptions sets the DateOptions field's value.
  4289. func (s *IndexField) SetDateOptions(v *DateOptions) *IndexField {
  4290. s.DateOptions = v
  4291. return s
  4292. }
  4293. // SetDoubleArrayOptions sets the DoubleArrayOptions field's value.
  4294. func (s *IndexField) SetDoubleArrayOptions(v *DoubleArrayOptions) *IndexField {
  4295. s.DoubleArrayOptions = v
  4296. return s
  4297. }
  4298. // SetDoubleOptions sets the DoubleOptions field's value.
  4299. func (s *IndexField) SetDoubleOptions(v *DoubleOptions) *IndexField {
  4300. s.DoubleOptions = v
  4301. return s
  4302. }
  4303. // SetIndexFieldName sets the IndexFieldName field's value.
  4304. func (s *IndexField) SetIndexFieldName(v string) *IndexField {
  4305. s.IndexFieldName = &v
  4306. return s
  4307. }
  4308. // SetIndexFieldType sets the IndexFieldType field's value.
  4309. func (s *IndexField) SetIndexFieldType(v string) *IndexField {
  4310. s.IndexFieldType = &v
  4311. return s
  4312. }
  4313. // SetIntArrayOptions sets the IntArrayOptions field's value.
  4314. func (s *IndexField) SetIntArrayOptions(v *IntArrayOptions) *IndexField {
  4315. s.IntArrayOptions = v
  4316. return s
  4317. }
  4318. // SetIntOptions sets the IntOptions field's value.
  4319. func (s *IndexField) SetIntOptions(v *IntOptions) *IndexField {
  4320. s.IntOptions = v
  4321. return s
  4322. }
  4323. // SetLatLonOptions sets the LatLonOptions field's value.
  4324. func (s *IndexField) SetLatLonOptions(v *LatLonOptions) *IndexField {
  4325. s.LatLonOptions = v
  4326. return s
  4327. }
  4328. // SetLiteralArrayOptions sets the LiteralArrayOptions field's value.
  4329. func (s *IndexField) SetLiteralArrayOptions(v *LiteralArrayOptions) *IndexField {
  4330. s.LiteralArrayOptions = v
  4331. return s
  4332. }
  4333. // SetLiteralOptions sets the LiteralOptions field's value.
  4334. func (s *IndexField) SetLiteralOptions(v *LiteralOptions) *IndexField {
  4335. s.LiteralOptions = v
  4336. return s
  4337. }
  4338. // SetTextArrayOptions sets the TextArrayOptions field's value.
  4339. func (s *IndexField) SetTextArrayOptions(v *TextArrayOptions) *IndexField {
  4340. s.TextArrayOptions = v
  4341. return s
  4342. }
  4343. // SetTextOptions sets the TextOptions field's value.
  4344. func (s *IndexField) SetTextOptions(v *TextOptions) *IndexField {
  4345. s.TextOptions = v
  4346. return s
  4347. }
  4348. // The value of an IndexField and its current status.
  4349. type IndexFieldStatus struct {
  4350. _ struct{} `type:"structure"`
  4351. // Configuration information for a field in the index, including its name, type,
  4352. // and options. The supported options depend on the IndexFieldType.
  4353. //
  4354. // Options is a required field
  4355. Options *IndexField `type:"structure" required:"true"`
  4356. // The status of domain configuration option.
  4357. //
  4358. // Status is a required field
  4359. Status *OptionStatus `type:"structure" required:"true"`
  4360. }
  4361. // String returns the string representation
  4362. func (s IndexFieldStatus) String() string {
  4363. return awsutil.Prettify(s)
  4364. }
  4365. // GoString returns the string representation
  4366. func (s IndexFieldStatus) GoString() string {
  4367. return s.String()
  4368. }
  4369. // SetOptions sets the Options field's value.
  4370. func (s *IndexFieldStatus) SetOptions(v *IndexField) *IndexFieldStatus {
  4371. s.Options = v
  4372. return s
  4373. }
  4374. // SetStatus sets the Status field's value.
  4375. func (s *IndexFieldStatus) SetStatus(v *OptionStatus) *IndexFieldStatus {
  4376. s.Status = v
  4377. return s
  4378. }
  4379. // Options for a field that contains an array of 64-bit signed integers. Present
  4380. // if IndexFieldType specifies the field is of type int-array. All options are
  4381. // enabled by default.
  4382. type IntArrayOptions struct {
  4383. _ struct{} `type:"structure"`
  4384. // A value to use for the field if the field isn't specified for a document.
  4385. DefaultValue *int64 `type:"long"`
  4386. // Whether facet information can be returned for the field.
  4387. FacetEnabled *bool `type:"boolean"`
  4388. // Whether the contents of the field can be returned in the search results.
  4389. ReturnEnabled *bool `type:"boolean"`
  4390. // Whether the contents of the field are searchable.
  4391. SearchEnabled *bool `type:"boolean"`
  4392. // A list of source fields to map to the field.
  4393. SourceFields *string `type:"string"`
  4394. }
  4395. // String returns the string representation
  4396. func (s IntArrayOptions) String() string {
  4397. return awsutil.Prettify(s)
  4398. }
  4399. // GoString returns the string representation
  4400. func (s IntArrayOptions) GoString() string {
  4401. return s.String()
  4402. }
  4403. // SetDefaultValue sets the DefaultValue field's value.
  4404. func (s *IntArrayOptions) SetDefaultValue(v int64) *IntArrayOptions {
  4405. s.DefaultValue = &v
  4406. return s
  4407. }
  4408. // SetFacetEnabled sets the FacetEnabled field's value.
  4409. func (s *IntArrayOptions) SetFacetEnabled(v bool) *IntArrayOptions {
  4410. s.FacetEnabled = &v
  4411. return s
  4412. }
  4413. // SetReturnEnabled sets the ReturnEnabled field's value.
  4414. func (s *IntArrayOptions) SetReturnEnabled(v bool) *IntArrayOptions {
  4415. s.ReturnEnabled = &v
  4416. return s
  4417. }
  4418. // SetSearchEnabled sets the SearchEnabled field's value.
  4419. func (s *IntArrayOptions) SetSearchEnabled(v bool) *IntArrayOptions {
  4420. s.SearchEnabled = &v
  4421. return s
  4422. }
  4423. // SetSourceFields sets the SourceFields field's value.
  4424. func (s *IntArrayOptions) SetSourceFields(v string) *IntArrayOptions {
  4425. s.SourceFields = &v
  4426. return s
  4427. }
  4428. // Options for a 64-bit signed integer field. Present if IndexFieldType specifies
  4429. // the field is of type int. All options are enabled by default.
  4430. type IntOptions struct {
  4431. _ struct{} `type:"structure"`
  4432. // A value to use for the field if the field isn't specified for a document.
  4433. // This can be important if you are using the field in an expression and that
  4434. // field is not present in every document.
  4435. DefaultValue *int64 `type:"long"`
  4436. // Whether facet information can be returned for the field.
  4437. FacetEnabled *bool `type:"boolean"`
  4438. // Whether the contents of the field can be returned in the search results.
  4439. ReturnEnabled *bool `type:"boolean"`
  4440. // Whether the contents of the field are searchable.
  4441. SearchEnabled *bool `type:"boolean"`
  4442. // Whether the field can be used to sort the search results.
  4443. SortEnabled *bool `type:"boolean"`
  4444. // The name of the source field to map to the field.
  4445. SourceField *string `min:"1" type:"string"`
  4446. }
  4447. // String returns the string representation
  4448. func (s IntOptions) String() string {
  4449. return awsutil.Prettify(s)
  4450. }
  4451. // GoString returns the string representation
  4452. func (s IntOptions) GoString() string {
  4453. return s.String()
  4454. }
  4455. // Validate inspects the fields of the type to determine if they are valid.
  4456. func (s *IntOptions) Validate() error {
  4457. invalidParams := request.ErrInvalidParams{Context: "IntOptions"}
  4458. if s.SourceField != nil && len(*s.SourceField) < 1 {
  4459. invalidParams.Add(request.NewErrParamMinLen("SourceField", 1))
  4460. }
  4461. if invalidParams.Len() > 0 {
  4462. return invalidParams
  4463. }
  4464. return nil
  4465. }
  4466. // SetDefaultValue sets the DefaultValue field's value.
  4467. func (s *IntOptions) SetDefaultValue(v int64) *IntOptions {
  4468. s.DefaultValue = &v
  4469. return s
  4470. }
  4471. // SetFacetEnabled sets the FacetEnabled field's value.
  4472. func (s *IntOptions) SetFacetEnabled(v bool) *IntOptions {
  4473. s.FacetEnabled = &v
  4474. return s
  4475. }
  4476. // SetReturnEnabled sets the ReturnEnabled field's value.
  4477. func (s *IntOptions) SetReturnEnabled(v bool) *IntOptions {
  4478. s.ReturnEnabled = &v
  4479. return s
  4480. }
  4481. // SetSearchEnabled sets the SearchEnabled field's value.
  4482. func (s *IntOptions) SetSearchEnabled(v bool) *IntOptions {
  4483. s.SearchEnabled = &v
  4484. return s
  4485. }
  4486. // SetSortEnabled sets the SortEnabled field's value.
  4487. func (s *IntOptions) SetSortEnabled(v bool) *IntOptions {
  4488. s.SortEnabled = &v
  4489. return s
  4490. }
  4491. // SetSourceField sets the SourceField field's value.
  4492. func (s *IntOptions) SetSourceField(v string) *IntOptions {
  4493. s.SourceField = &v
  4494. return s
  4495. }
  4496. // Options for a latlon field. A latlon field contains a location stored as
  4497. // a latitude and longitude value pair. Present if IndexFieldType specifies
  4498. // the field is of type latlon. All options are enabled by default.
  4499. type LatLonOptions struct {
  4500. _ struct{} `type:"structure"`
  4501. // A value to use for the field if the field isn't specified for a document.
  4502. DefaultValue *string `type:"string"`
  4503. // Whether facet information can be returned for the field.
  4504. FacetEnabled *bool `type:"boolean"`
  4505. // Whether the contents of the field can be returned in the search results.
  4506. ReturnEnabled *bool `type:"boolean"`
  4507. // Whether the contents of the field are searchable.
  4508. SearchEnabled *bool `type:"boolean"`
  4509. // Whether the field can be used to sort the search results.
  4510. SortEnabled *bool `type:"boolean"`
  4511. // A string that represents the name of an index field. CloudSearch supports
  4512. // regular index fields as well as dynamic fields. A dynamic field's name defines
  4513. // a pattern that begins or ends with a wildcard. Any document fields that don't
  4514. // map to a regular index field but do match a dynamic field's pattern are configured
  4515. // with the dynamic field's indexing options.
  4516. //
  4517. // Regular field names begin with a letter and can contain the following characters:
  4518. // a-z (lowercase), 0-9, and _ (underscore). Dynamic field names must begin
  4519. // or end with a wildcard (*). The wildcard can also be the only character in
  4520. // a dynamic field name. Multiple wildcards, and wildcards embedded within a
  4521. // string are not supported.
  4522. //
  4523. // The name score is reserved and cannot be used as a field name. To reference
  4524. // a document's ID, you can use the name _id.
  4525. SourceField *string `min:"1" type:"string"`
  4526. }
  4527. // String returns the string representation
  4528. func (s LatLonOptions) String() string {
  4529. return awsutil.Prettify(s)
  4530. }
  4531. // GoString returns the string representation
  4532. func (s LatLonOptions) GoString() string {
  4533. return s.String()
  4534. }
  4535. // Validate inspects the fields of the type to determine if they are valid.
  4536. func (s *LatLonOptions) Validate() error {
  4537. invalidParams := request.ErrInvalidParams{Context: "LatLonOptions"}
  4538. if s.SourceField != nil && len(*s.SourceField) < 1 {
  4539. invalidParams.Add(request.NewErrParamMinLen("SourceField", 1))
  4540. }
  4541. if invalidParams.Len() > 0 {
  4542. return invalidParams
  4543. }
  4544. return nil
  4545. }
  4546. // SetDefaultValue sets the DefaultValue field's value.
  4547. func (s *LatLonOptions) SetDefaultValue(v string) *LatLonOptions {
  4548. s.DefaultValue = &v
  4549. return s
  4550. }
  4551. // SetFacetEnabled sets the FacetEnabled field's value.
  4552. func (s *LatLonOptions) SetFacetEnabled(v bool) *LatLonOptions {
  4553. s.FacetEnabled = &v
  4554. return s
  4555. }
  4556. // SetReturnEnabled sets the ReturnEnabled field's value.
  4557. func (s *LatLonOptions) SetReturnEnabled(v bool) *LatLonOptions {
  4558. s.ReturnEnabled = &v
  4559. return s
  4560. }
  4561. // SetSearchEnabled sets the SearchEnabled field's value.
  4562. func (s *LatLonOptions) SetSearchEnabled(v bool) *LatLonOptions {
  4563. s.SearchEnabled = &v
  4564. return s
  4565. }
  4566. // SetSortEnabled sets the SortEnabled field's value.
  4567. func (s *LatLonOptions) SetSortEnabled(v bool) *LatLonOptions {
  4568. s.SortEnabled = &v
  4569. return s
  4570. }
  4571. // SetSourceField sets the SourceField field's value.
  4572. func (s *LatLonOptions) SetSourceField(v string) *LatLonOptions {
  4573. s.SourceField = &v
  4574. return s
  4575. }
  4576. type Limits struct {
  4577. _ struct{} `type:"structure"`
  4578. // MaximumPartitionCount is a required field
  4579. MaximumPartitionCount *int64 `min:"1" type:"integer" required:"true"`
  4580. // MaximumReplicationCount is a required field
  4581. MaximumReplicationCount *int64 `min:"1" type:"integer" required:"true"`
  4582. }
  4583. // String returns the string representation
  4584. func (s Limits) String() string {
  4585. return awsutil.Prettify(s)
  4586. }
  4587. // GoString returns the string representation
  4588. func (s Limits) GoString() string {
  4589. return s.String()
  4590. }
  4591. // SetMaximumPartitionCount sets the MaximumPartitionCount field's value.
  4592. func (s *Limits) SetMaximumPartitionCount(v int64) *Limits {
  4593. s.MaximumPartitionCount = &v
  4594. return s
  4595. }
  4596. // SetMaximumReplicationCount sets the MaximumReplicationCount field's value.
  4597. func (s *Limits) SetMaximumReplicationCount(v int64) *Limits {
  4598. s.MaximumReplicationCount = &v
  4599. return s
  4600. }
  4601. type ListDomainNamesInput struct {
  4602. _ struct{} `type:"structure"`
  4603. }
  4604. // String returns the string representation
  4605. func (s ListDomainNamesInput) String() string {
  4606. return awsutil.Prettify(s)
  4607. }
  4608. // GoString returns the string representation
  4609. func (s ListDomainNamesInput) GoString() string {
  4610. return s.String()
  4611. }
  4612. // The result of a ListDomainNames request. Contains a list of the domains owned
  4613. // by an account.
  4614. type ListDomainNamesOutput struct {
  4615. _ struct{} `type:"structure"`
  4616. // The names of the search domains owned by an account.
  4617. DomainNames map[string]*string `type:"map"`
  4618. }
  4619. // String returns the string representation
  4620. func (s ListDomainNamesOutput) String() string {
  4621. return awsutil.Prettify(s)
  4622. }
  4623. // GoString returns the string representation
  4624. func (s ListDomainNamesOutput) GoString() string {
  4625. return s.String()
  4626. }
  4627. // SetDomainNames sets the DomainNames field's value.
  4628. func (s *ListDomainNamesOutput) SetDomainNames(v map[string]*string) *ListDomainNamesOutput {
  4629. s.DomainNames = v
  4630. return s
  4631. }
  4632. // Options for a field that contains an array of literal strings. Present if
  4633. // IndexFieldType specifies the field is of type literal-array. All options
  4634. // are enabled by default.
  4635. type LiteralArrayOptions struct {
  4636. _ struct{} `type:"structure"`
  4637. // A value to use for the field if the field isn't specified for a document.
  4638. DefaultValue *string `type:"string"`
  4639. // Whether facet information can be returned for the field.
  4640. FacetEnabled *bool `type:"boolean"`
  4641. // Whether the contents of the field can be returned in the search results.
  4642. ReturnEnabled *bool `type:"boolean"`
  4643. // Whether the contents of the field are searchable.
  4644. SearchEnabled *bool `type:"boolean"`
  4645. // A list of source fields to map to the field.
  4646. SourceFields *string `type:"string"`
  4647. }
  4648. // String returns the string representation
  4649. func (s LiteralArrayOptions) String() string {
  4650. return awsutil.Prettify(s)
  4651. }
  4652. // GoString returns the string representation
  4653. func (s LiteralArrayOptions) GoString() string {
  4654. return s.String()
  4655. }
  4656. // SetDefaultValue sets the DefaultValue field's value.
  4657. func (s *LiteralArrayOptions) SetDefaultValue(v string) *LiteralArrayOptions {
  4658. s.DefaultValue = &v
  4659. return s
  4660. }
  4661. // SetFacetEnabled sets the FacetEnabled field's value.
  4662. func (s *LiteralArrayOptions) SetFacetEnabled(v bool) *LiteralArrayOptions {
  4663. s.FacetEnabled = &v
  4664. return s
  4665. }
  4666. // SetReturnEnabled sets the ReturnEnabled field's value.
  4667. func (s *LiteralArrayOptions) SetReturnEnabled(v bool) *LiteralArrayOptions {
  4668. s.ReturnEnabled = &v
  4669. return s
  4670. }
  4671. // SetSearchEnabled sets the SearchEnabled field's value.
  4672. func (s *LiteralArrayOptions) SetSearchEnabled(v bool) *LiteralArrayOptions {
  4673. s.SearchEnabled = &v
  4674. return s
  4675. }
  4676. // SetSourceFields sets the SourceFields field's value.
  4677. func (s *LiteralArrayOptions) SetSourceFields(v string) *LiteralArrayOptions {
  4678. s.SourceFields = &v
  4679. return s
  4680. }
  4681. // Options for literal field. Present if IndexFieldType specifies the field
  4682. // is of type literal. All options are enabled by default.
  4683. type LiteralOptions struct {
  4684. _ struct{} `type:"structure"`
  4685. // A value to use for the field if the field isn't specified for a document.
  4686. DefaultValue *string `type:"string"`
  4687. // Whether facet information can be returned for the field.
  4688. FacetEnabled *bool `type:"boolean"`
  4689. // Whether the contents of the field can be returned in the search results.
  4690. ReturnEnabled *bool `type:"boolean"`
  4691. // Whether the contents of the field are searchable.
  4692. SearchEnabled *bool `type:"boolean"`
  4693. // Whether the field can be used to sort the search results.
  4694. SortEnabled *bool `type:"boolean"`
  4695. // A string that represents the name of an index field. CloudSearch supports
  4696. // regular index fields as well as dynamic fields. A dynamic field's name defines
  4697. // a pattern that begins or ends with a wildcard. Any document fields that don't
  4698. // map to a regular index field but do match a dynamic field's pattern are configured
  4699. // with the dynamic field's indexing options.
  4700. //
  4701. // Regular field names begin with a letter and can contain the following characters:
  4702. // a-z (lowercase), 0-9, and _ (underscore). Dynamic field names must begin
  4703. // or end with a wildcard (*). The wildcard can also be the only character in
  4704. // a dynamic field name. Multiple wildcards, and wildcards embedded within a
  4705. // string are not supported.
  4706. //
  4707. // The name score is reserved and cannot be used as a field name. To reference
  4708. // a document's ID, you can use the name _id.
  4709. SourceField *string `min:"1" type:"string"`
  4710. }
  4711. // String returns the string representation
  4712. func (s LiteralOptions) String() string {
  4713. return awsutil.Prettify(s)
  4714. }
  4715. // GoString returns the string representation
  4716. func (s LiteralOptions) GoString() string {
  4717. return s.String()
  4718. }
  4719. // Validate inspects the fields of the type to determine if they are valid.
  4720. func (s *LiteralOptions) Validate() error {
  4721. invalidParams := request.ErrInvalidParams{Context: "LiteralOptions"}
  4722. if s.SourceField != nil && len(*s.SourceField) < 1 {
  4723. invalidParams.Add(request.NewErrParamMinLen("SourceField", 1))
  4724. }
  4725. if invalidParams.Len() > 0 {
  4726. return invalidParams
  4727. }
  4728. return nil
  4729. }
  4730. // SetDefaultValue sets the DefaultValue field's value.
  4731. func (s *LiteralOptions) SetDefaultValue(v string) *LiteralOptions {
  4732. s.DefaultValue = &v
  4733. return s
  4734. }
  4735. // SetFacetEnabled sets the FacetEnabled field's value.
  4736. func (s *LiteralOptions) SetFacetEnabled(v bool) *LiteralOptions {
  4737. s.FacetEnabled = &v
  4738. return s
  4739. }
  4740. // SetReturnEnabled sets the ReturnEnabled field's value.
  4741. func (s *LiteralOptions) SetReturnEnabled(v bool) *LiteralOptions {
  4742. s.ReturnEnabled = &v
  4743. return s
  4744. }
  4745. // SetSearchEnabled sets the SearchEnabled field's value.
  4746. func (s *LiteralOptions) SetSearchEnabled(v bool) *LiteralOptions {
  4747. s.SearchEnabled = &v
  4748. return s
  4749. }
  4750. // SetSortEnabled sets the SortEnabled field's value.
  4751. func (s *LiteralOptions) SetSortEnabled(v bool) *LiteralOptions {
  4752. s.SortEnabled = &v
  4753. return s
  4754. }
  4755. // SetSourceField sets the SourceField field's value.
  4756. func (s *LiteralOptions) SetSourceField(v string) *LiteralOptions {
  4757. s.SourceField = &v
  4758. return s
  4759. }
  4760. // The status of domain configuration option.
  4761. type OptionStatus struct {
  4762. _ struct{} `type:"structure"`
  4763. // A timestamp for when this option was created.
  4764. //
  4765. // CreationDate is a required field
  4766. CreationDate *time.Time `type:"timestamp" required:"true"`
  4767. // Indicates that the option will be deleted once processing is complete.
  4768. PendingDeletion *bool `type:"boolean"`
  4769. // The state of processing a change to an option. Possible values:
  4770. //
  4771. // * RequiresIndexDocuments: the option's latest value will not be deployed
  4772. // until IndexDocuments has been called and indexing is complete.
  4773. // * Processing: the option's latest value is in the process of being activated.
  4774. //
  4775. // * Active: the option's latest value is completely deployed.
  4776. // * FailedToValidate: the option value is not compatible with the domain's
  4777. // data and cannot be used to index the data. You must either modify the
  4778. // option value or update or remove the incompatible documents.
  4779. //
  4780. // State is a required field
  4781. State *string `type:"string" required:"true" enum:"OptionState"`
  4782. // A timestamp for when this option was last updated.
  4783. //
  4784. // UpdateDate is a required field
  4785. UpdateDate *time.Time `type:"timestamp" required:"true"`
  4786. // A unique integer that indicates when this option was last updated.
  4787. UpdateVersion *int64 `type:"integer"`
  4788. }
  4789. // String returns the string representation
  4790. func (s OptionStatus) String() string {
  4791. return awsutil.Prettify(s)
  4792. }
  4793. // GoString returns the string representation
  4794. func (s OptionStatus) GoString() string {
  4795. return s.String()
  4796. }
  4797. // SetCreationDate sets the CreationDate field's value.
  4798. func (s *OptionStatus) SetCreationDate(v time.Time) *OptionStatus {
  4799. s.CreationDate = &v
  4800. return s
  4801. }
  4802. // SetPendingDeletion sets the PendingDeletion field's value.
  4803. func (s *OptionStatus) SetPendingDeletion(v bool) *OptionStatus {
  4804. s.PendingDeletion = &v
  4805. return s
  4806. }
  4807. // SetState sets the State field's value.
  4808. func (s *OptionStatus) SetState(v string) *OptionStatus {
  4809. s.State = &v
  4810. return s
  4811. }
  4812. // SetUpdateDate sets the UpdateDate field's value.
  4813. func (s *OptionStatus) SetUpdateDate(v time.Time) *OptionStatus {
  4814. s.UpdateDate = &v
  4815. return s
  4816. }
  4817. // SetUpdateVersion sets the UpdateVersion field's value.
  4818. func (s *OptionStatus) SetUpdateVersion(v int64) *OptionStatus {
  4819. s.UpdateVersion = &v
  4820. return s
  4821. }
  4822. // The desired instance type and desired number of replicas of each index partition.
  4823. type ScalingParameters struct {
  4824. _ struct{} `type:"structure"`
  4825. // The instance type that you want to preconfigure for your domain. For example,
  4826. // search.m1.small.
  4827. DesiredInstanceType *string `type:"string" enum:"PartitionInstanceType"`
  4828. // The number of partitions you want to preconfigure for your domain. Only valid
  4829. // when you select m2.2xlarge as the desired instance type.
  4830. DesiredPartitionCount *int64 `type:"integer"`
  4831. // The number of replicas you want to preconfigure for each index partition.
  4832. DesiredReplicationCount *int64 `type:"integer"`
  4833. }
  4834. // String returns the string representation
  4835. func (s ScalingParameters) String() string {
  4836. return awsutil.Prettify(s)
  4837. }
  4838. // GoString returns the string representation
  4839. func (s ScalingParameters) GoString() string {
  4840. return s.String()
  4841. }
  4842. // SetDesiredInstanceType sets the DesiredInstanceType field's value.
  4843. func (s *ScalingParameters) SetDesiredInstanceType(v string) *ScalingParameters {
  4844. s.DesiredInstanceType = &v
  4845. return s
  4846. }
  4847. // SetDesiredPartitionCount sets the DesiredPartitionCount field's value.
  4848. func (s *ScalingParameters) SetDesiredPartitionCount(v int64) *ScalingParameters {
  4849. s.DesiredPartitionCount = &v
  4850. return s
  4851. }
  4852. // SetDesiredReplicationCount sets the DesiredReplicationCount field's value.
  4853. func (s *ScalingParameters) SetDesiredReplicationCount(v int64) *ScalingParameters {
  4854. s.DesiredReplicationCount = &v
  4855. return s
  4856. }
  4857. // The status and configuration of a search domain's scaling parameters.
  4858. type ScalingParametersStatus struct {
  4859. _ struct{} `type:"structure"`
  4860. // The desired instance type and desired number of replicas of each index partition.
  4861. //
  4862. // Options is a required field
  4863. Options *ScalingParameters `type:"structure" required:"true"`
  4864. // The status of domain configuration option.
  4865. //
  4866. // Status is a required field
  4867. Status *OptionStatus `type:"structure" required:"true"`
  4868. }
  4869. // String returns the string representation
  4870. func (s ScalingParametersStatus) String() string {
  4871. return awsutil.Prettify(s)
  4872. }
  4873. // GoString returns the string representation
  4874. func (s ScalingParametersStatus) GoString() string {
  4875. return s.String()
  4876. }
  4877. // SetOptions sets the Options field's value.
  4878. func (s *ScalingParametersStatus) SetOptions(v *ScalingParameters) *ScalingParametersStatus {
  4879. s.Options = v
  4880. return s
  4881. }
  4882. // SetStatus sets the Status field's value.
  4883. func (s *ScalingParametersStatus) SetStatus(v *OptionStatus) *ScalingParametersStatus {
  4884. s.Status = v
  4885. return s
  4886. }
  4887. // The endpoint to which service requests can be submitted.
  4888. type ServiceEndpoint struct {
  4889. _ struct{} `type:"structure"`
  4890. // The endpoint to which service requests can be submitted. For example, search-imdb-movies-oopcnjfn6ugofer3zx5iadxxca.eu-west-1.cloudsearch.amazonaws.com
  4891. // or doc-imdb-movies-oopcnjfn6ugofer3zx5iadxxca.eu-west-1.cloudsearch.amazonaws.com.
  4892. Endpoint *string `type:"string"`
  4893. }
  4894. // String returns the string representation
  4895. func (s ServiceEndpoint) String() string {
  4896. return awsutil.Prettify(s)
  4897. }
  4898. // GoString returns the string representation
  4899. func (s ServiceEndpoint) GoString() string {
  4900. return s.String()
  4901. }
  4902. // SetEndpoint sets the Endpoint field's value.
  4903. func (s *ServiceEndpoint) SetEndpoint(v string) *ServiceEndpoint {
  4904. s.Endpoint = &v
  4905. return s
  4906. }
  4907. // Configuration information for a search suggester. Each suggester has a unique
  4908. // name and specifies the text field you want to use for suggestions. The following
  4909. // options can be configured for a suggester: FuzzyMatching, SortExpression.
  4910. type Suggester struct {
  4911. _ struct{} `type:"structure"`
  4912. // Options for a search suggester.
  4913. //
  4914. // DocumentSuggesterOptions is a required field
  4915. DocumentSuggesterOptions *DocumentSuggesterOptions `type:"structure" required:"true"`
  4916. // Names must begin with a letter and can contain the following characters:
  4917. // a-z (lowercase), 0-9, and _ (underscore).
  4918. //
  4919. // SuggesterName is a required field
  4920. SuggesterName *string `min:"1" type:"string" required:"true"`
  4921. }
  4922. // String returns the string representation
  4923. func (s Suggester) String() string {
  4924. return awsutil.Prettify(s)
  4925. }
  4926. // GoString returns the string representation
  4927. func (s Suggester) GoString() string {
  4928. return s.String()
  4929. }
  4930. // Validate inspects the fields of the type to determine if they are valid.
  4931. func (s *Suggester) Validate() error {
  4932. invalidParams := request.ErrInvalidParams{Context: "Suggester"}
  4933. if s.DocumentSuggesterOptions == nil {
  4934. invalidParams.Add(request.NewErrParamRequired("DocumentSuggesterOptions"))
  4935. }
  4936. if s.SuggesterName == nil {
  4937. invalidParams.Add(request.NewErrParamRequired("SuggesterName"))
  4938. }
  4939. if s.SuggesterName != nil && len(*s.SuggesterName) < 1 {
  4940. invalidParams.Add(request.NewErrParamMinLen("SuggesterName", 1))
  4941. }
  4942. if s.DocumentSuggesterOptions != nil {
  4943. if err := s.DocumentSuggesterOptions.Validate(); err != nil {
  4944. invalidParams.AddNested("DocumentSuggesterOptions", err.(request.ErrInvalidParams))
  4945. }
  4946. }
  4947. if invalidParams.Len() > 0 {
  4948. return invalidParams
  4949. }
  4950. return nil
  4951. }
  4952. // SetDocumentSuggesterOptions sets the DocumentSuggesterOptions field's value.
  4953. func (s *Suggester) SetDocumentSuggesterOptions(v *DocumentSuggesterOptions) *Suggester {
  4954. s.DocumentSuggesterOptions = v
  4955. return s
  4956. }
  4957. // SetSuggesterName sets the SuggesterName field's value.
  4958. func (s *Suggester) SetSuggesterName(v string) *Suggester {
  4959. s.SuggesterName = &v
  4960. return s
  4961. }
  4962. // The value of a Suggester and its current status.
  4963. type SuggesterStatus struct {
  4964. _ struct{} `type:"structure"`
  4965. // Configuration information for a search suggester. Each suggester has a unique
  4966. // name and specifies the text field you want to use for suggestions. The following
  4967. // options can be configured for a suggester: FuzzyMatching, SortExpression.
  4968. //
  4969. // Options is a required field
  4970. Options *Suggester `type:"structure" required:"true"`
  4971. // The status of domain configuration option.
  4972. //
  4973. // Status is a required field
  4974. Status *OptionStatus `type:"structure" required:"true"`
  4975. }
  4976. // String returns the string representation
  4977. func (s SuggesterStatus) String() string {
  4978. return awsutil.Prettify(s)
  4979. }
  4980. // GoString returns the string representation
  4981. func (s SuggesterStatus) GoString() string {
  4982. return s.String()
  4983. }
  4984. // SetOptions sets the Options field's value.
  4985. func (s *SuggesterStatus) SetOptions(v *Suggester) *SuggesterStatus {
  4986. s.Options = v
  4987. return s
  4988. }
  4989. // SetStatus sets the Status field's value.
  4990. func (s *SuggesterStatus) SetStatus(v *OptionStatus) *SuggesterStatus {
  4991. s.Status = v
  4992. return s
  4993. }
  4994. // Options for a field that contains an array of text strings. Present if IndexFieldType
  4995. // specifies the field is of type text-array. A text-array field is always searchable.
  4996. // All options are enabled by default.
  4997. type TextArrayOptions struct {
  4998. _ struct{} `type:"structure"`
  4999. // The name of an analysis scheme for a text-array field.
  5000. AnalysisScheme *string `type:"string"`
  5001. // A value to use for the field if the field isn't specified for a document.
  5002. DefaultValue *string `type:"string"`
  5003. // Whether highlights can be returned for the field.
  5004. HighlightEnabled *bool `type:"boolean"`
  5005. // Whether the contents of the field can be returned in the search results.
  5006. ReturnEnabled *bool `type:"boolean"`
  5007. // A list of source fields to map to the field.
  5008. SourceFields *string `type:"string"`
  5009. }
  5010. // String returns the string representation
  5011. func (s TextArrayOptions) String() string {
  5012. return awsutil.Prettify(s)
  5013. }
  5014. // GoString returns the string representation
  5015. func (s TextArrayOptions) GoString() string {
  5016. return s.String()
  5017. }
  5018. // SetAnalysisScheme sets the AnalysisScheme field's value.
  5019. func (s *TextArrayOptions) SetAnalysisScheme(v string) *TextArrayOptions {
  5020. s.AnalysisScheme = &v
  5021. return s
  5022. }
  5023. // SetDefaultValue sets the DefaultValue field's value.
  5024. func (s *TextArrayOptions) SetDefaultValue(v string) *TextArrayOptions {
  5025. s.DefaultValue = &v
  5026. return s
  5027. }
  5028. // SetHighlightEnabled sets the HighlightEnabled field's value.
  5029. func (s *TextArrayOptions) SetHighlightEnabled(v bool) *TextArrayOptions {
  5030. s.HighlightEnabled = &v
  5031. return s
  5032. }
  5033. // SetReturnEnabled sets the ReturnEnabled field's value.
  5034. func (s *TextArrayOptions) SetReturnEnabled(v bool) *TextArrayOptions {
  5035. s.ReturnEnabled = &v
  5036. return s
  5037. }
  5038. // SetSourceFields sets the SourceFields field's value.
  5039. func (s *TextArrayOptions) SetSourceFields(v string) *TextArrayOptions {
  5040. s.SourceFields = &v
  5041. return s
  5042. }
  5043. // Options for text field. Present if IndexFieldType specifies the field is
  5044. // of type text. A text field is always searchable. All options are enabled
  5045. // by default.
  5046. type TextOptions struct {
  5047. _ struct{} `type:"structure"`
  5048. // The name of an analysis scheme for a text field.
  5049. AnalysisScheme *string `type:"string"`
  5050. // A value to use for the field if the field isn't specified for a document.
  5051. DefaultValue *string `type:"string"`
  5052. // Whether highlights can be returned for the field.
  5053. HighlightEnabled *bool `type:"boolean"`
  5054. // Whether the contents of the field can be returned in the search results.
  5055. ReturnEnabled *bool `type:"boolean"`
  5056. // Whether the field can be used to sort the search results.
  5057. SortEnabled *bool `type:"boolean"`
  5058. // A string that represents the name of an index field. CloudSearch supports
  5059. // regular index fields as well as dynamic fields. A dynamic field's name defines
  5060. // a pattern that begins or ends with a wildcard. Any document fields that don't
  5061. // map to a regular index field but do match a dynamic field's pattern are configured
  5062. // with the dynamic field's indexing options.
  5063. //
  5064. // Regular field names begin with a letter and can contain the following characters:
  5065. // a-z (lowercase), 0-9, and _ (underscore). Dynamic field names must begin
  5066. // or end with a wildcard (*). The wildcard can also be the only character in
  5067. // a dynamic field name. Multiple wildcards, and wildcards embedded within a
  5068. // string are not supported.
  5069. //
  5070. // The name score is reserved and cannot be used as a field name. To reference
  5071. // a document's ID, you can use the name _id.
  5072. SourceField *string `min:"1" type:"string"`
  5073. }
  5074. // String returns the string representation
  5075. func (s TextOptions) String() string {
  5076. return awsutil.Prettify(s)
  5077. }
  5078. // GoString returns the string representation
  5079. func (s TextOptions) GoString() string {
  5080. return s.String()
  5081. }
  5082. // Validate inspects the fields of the type to determine if they are valid.
  5083. func (s *TextOptions) Validate() error {
  5084. invalidParams := request.ErrInvalidParams{Context: "TextOptions"}
  5085. if s.SourceField != nil && len(*s.SourceField) < 1 {
  5086. invalidParams.Add(request.NewErrParamMinLen("SourceField", 1))
  5087. }
  5088. if invalidParams.Len() > 0 {
  5089. return invalidParams
  5090. }
  5091. return nil
  5092. }
  5093. // SetAnalysisScheme sets the AnalysisScheme field's value.
  5094. func (s *TextOptions) SetAnalysisScheme(v string) *TextOptions {
  5095. s.AnalysisScheme = &v
  5096. return s
  5097. }
  5098. // SetDefaultValue sets the DefaultValue field's value.
  5099. func (s *TextOptions) SetDefaultValue(v string) *TextOptions {
  5100. s.DefaultValue = &v
  5101. return s
  5102. }
  5103. // SetHighlightEnabled sets the HighlightEnabled field's value.
  5104. func (s *TextOptions) SetHighlightEnabled(v bool) *TextOptions {
  5105. s.HighlightEnabled = &v
  5106. return s
  5107. }
  5108. // SetReturnEnabled sets the ReturnEnabled field's value.
  5109. func (s *TextOptions) SetReturnEnabled(v bool) *TextOptions {
  5110. s.ReturnEnabled = &v
  5111. return s
  5112. }
  5113. // SetSortEnabled sets the SortEnabled field's value.
  5114. func (s *TextOptions) SetSortEnabled(v bool) *TextOptions {
  5115. s.SortEnabled = &v
  5116. return s
  5117. }
  5118. // SetSourceField sets the SourceField field's value.
  5119. func (s *TextOptions) SetSourceField(v string) *TextOptions {
  5120. s.SourceField = &v
  5121. return s
  5122. }
  5123. // Container for the parameters to the UpdateAvailabilityOptions operation.
  5124. // Specifies the name of the domain you want to update and the Multi-AZ availability
  5125. // option.
  5126. type UpdateAvailabilityOptionsInput struct {
  5127. _ struct{} `type:"structure"`
  5128. // A string that represents the name of a domain. Domain names are unique across
  5129. // the domains owned by an account within an AWS region. Domain names start
  5130. // with a letter or number and can contain the following characters: a-z (lowercase),
  5131. // 0-9, and - (hyphen).
  5132. //
  5133. // DomainName is a required field
  5134. DomainName *string `min:"3" type:"string" required:"true"`
  5135. // You expand an existing search domain to a second Availability Zone by setting
  5136. // the Multi-AZ option to true. Similarly, you can turn off the Multi-AZ option
  5137. // to downgrade the domain to a single Availability Zone by setting the Multi-AZ
  5138. // option to false.
  5139. //
  5140. // MultiAZ is a required field
  5141. MultiAZ *bool `type:"boolean" required:"true"`
  5142. }
  5143. // String returns the string representation
  5144. func (s UpdateAvailabilityOptionsInput) String() string {
  5145. return awsutil.Prettify(s)
  5146. }
  5147. // GoString returns the string representation
  5148. func (s UpdateAvailabilityOptionsInput) GoString() string {
  5149. return s.String()
  5150. }
  5151. // Validate inspects the fields of the type to determine if they are valid.
  5152. func (s *UpdateAvailabilityOptionsInput) Validate() error {
  5153. invalidParams := request.ErrInvalidParams{Context: "UpdateAvailabilityOptionsInput"}
  5154. if s.DomainName == nil {
  5155. invalidParams.Add(request.NewErrParamRequired("DomainName"))
  5156. }
  5157. if s.DomainName != nil && len(*s.DomainName) < 3 {
  5158. invalidParams.Add(request.NewErrParamMinLen("DomainName", 3))
  5159. }
  5160. if s.MultiAZ == nil {
  5161. invalidParams.Add(request.NewErrParamRequired("MultiAZ"))
  5162. }
  5163. if invalidParams.Len() > 0 {
  5164. return invalidParams
  5165. }
  5166. return nil
  5167. }
  5168. // SetDomainName sets the DomainName field's value.
  5169. func (s *UpdateAvailabilityOptionsInput) SetDomainName(v string) *UpdateAvailabilityOptionsInput {
  5170. s.DomainName = &v
  5171. return s
  5172. }
  5173. // SetMultiAZ sets the MultiAZ field's value.
  5174. func (s *UpdateAvailabilityOptionsInput) SetMultiAZ(v bool) *UpdateAvailabilityOptionsInput {
  5175. s.MultiAZ = &v
  5176. return s
  5177. }
  5178. // The result of a UpdateAvailabilityOptions request. Contains the status of
  5179. // the domain's availability options.
  5180. type UpdateAvailabilityOptionsOutput struct {
  5181. _ struct{} `type:"structure"`
  5182. // The newly-configured availability options. Indicates whether Multi-AZ is
  5183. // enabled for the domain.
  5184. AvailabilityOptions *AvailabilityOptionsStatus `type:"structure"`
  5185. }
  5186. // String returns the string representation
  5187. func (s UpdateAvailabilityOptionsOutput) String() string {
  5188. return awsutil.Prettify(s)
  5189. }
  5190. // GoString returns the string representation
  5191. func (s UpdateAvailabilityOptionsOutput) GoString() string {
  5192. return s.String()
  5193. }
  5194. // SetAvailabilityOptions sets the AvailabilityOptions field's value.
  5195. func (s *UpdateAvailabilityOptionsOutput) SetAvailabilityOptions(v *AvailabilityOptionsStatus) *UpdateAvailabilityOptionsOutput {
  5196. s.AvailabilityOptions = v
  5197. return s
  5198. }
  5199. // Container for the parameters to the UpdateScalingParameters operation. Specifies
  5200. // the name of the domain you want to update and the scaling parameters you
  5201. // want to configure.
  5202. type UpdateScalingParametersInput struct {
  5203. _ struct{} `type:"structure"`
  5204. // A string that represents the name of a domain. Domain names are unique across
  5205. // the domains owned by an account within an AWS region. Domain names start
  5206. // with a letter or number and can contain the following characters: a-z (lowercase),
  5207. // 0-9, and - (hyphen).
  5208. //
  5209. // DomainName is a required field
  5210. DomainName *string `min:"3" type:"string" required:"true"`
  5211. // The desired instance type and desired number of replicas of each index partition.
  5212. //
  5213. // ScalingParameters is a required field
  5214. ScalingParameters *ScalingParameters `type:"structure" required:"true"`
  5215. }
  5216. // String returns the string representation
  5217. func (s UpdateScalingParametersInput) String() string {
  5218. return awsutil.Prettify(s)
  5219. }
  5220. // GoString returns the string representation
  5221. func (s UpdateScalingParametersInput) GoString() string {
  5222. return s.String()
  5223. }
  5224. // Validate inspects the fields of the type to determine if they are valid.
  5225. func (s *UpdateScalingParametersInput) Validate() error {
  5226. invalidParams := request.ErrInvalidParams{Context: "UpdateScalingParametersInput"}
  5227. if s.DomainName == nil {
  5228. invalidParams.Add(request.NewErrParamRequired("DomainName"))
  5229. }
  5230. if s.DomainName != nil && len(*s.DomainName) < 3 {
  5231. invalidParams.Add(request.NewErrParamMinLen("DomainName", 3))
  5232. }
  5233. if s.ScalingParameters == nil {
  5234. invalidParams.Add(request.NewErrParamRequired("ScalingParameters"))
  5235. }
  5236. if invalidParams.Len() > 0 {
  5237. return invalidParams
  5238. }
  5239. return nil
  5240. }
  5241. // SetDomainName sets the DomainName field's value.
  5242. func (s *UpdateScalingParametersInput) SetDomainName(v string) *UpdateScalingParametersInput {
  5243. s.DomainName = &v
  5244. return s
  5245. }
  5246. // SetScalingParameters sets the ScalingParameters field's value.
  5247. func (s *UpdateScalingParametersInput) SetScalingParameters(v *ScalingParameters) *UpdateScalingParametersInput {
  5248. s.ScalingParameters = v
  5249. return s
  5250. }
  5251. // The result of a UpdateScalingParameters request. Contains the status of the
  5252. // newly-configured scaling parameters.
  5253. type UpdateScalingParametersOutput struct {
  5254. _ struct{} `type:"structure"`
  5255. // The status and configuration of a search domain's scaling parameters.
  5256. //
  5257. // ScalingParameters is a required field
  5258. ScalingParameters *ScalingParametersStatus `type:"structure" required:"true"`
  5259. }
  5260. // String returns the string representation
  5261. func (s UpdateScalingParametersOutput) String() string {
  5262. return awsutil.Prettify(s)
  5263. }
  5264. // GoString returns the string representation
  5265. func (s UpdateScalingParametersOutput) GoString() string {
  5266. return s.String()
  5267. }
  5268. // SetScalingParameters sets the ScalingParameters field's value.
  5269. func (s *UpdateScalingParametersOutput) SetScalingParameters(v *ScalingParametersStatus) *UpdateScalingParametersOutput {
  5270. s.ScalingParameters = v
  5271. return s
  5272. }
  5273. // Container for the parameters to the UpdateServiceAccessPolicies operation.
  5274. // Specifies the name of the domain you want to update and the access rules
  5275. // you want to configure.
  5276. type UpdateServiceAccessPoliciesInput struct {
  5277. _ struct{} `type:"structure"`
  5278. // The access rules you want to configure. These rules replace any existing
  5279. // rules.
  5280. //
  5281. // AccessPolicies is a required field
  5282. AccessPolicies *string `type:"string" required:"true"`
  5283. // A string that represents the name of a domain. Domain names are unique across
  5284. // the domains owned by an account within an AWS region. Domain names start
  5285. // with a letter or number and can contain the following characters: a-z (lowercase),
  5286. // 0-9, and - (hyphen).
  5287. //
  5288. // DomainName is a required field
  5289. DomainName *string `min:"3" type:"string" required:"true"`
  5290. }
  5291. // String returns the string representation
  5292. func (s UpdateServiceAccessPoliciesInput) String() string {
  5293. return awsutil.Prettify(s)
  5294. }
  5295. // GoString returns the string representation
  5296. func (s UpdateServiceAccessPoliciesInput) GoString() string {
  5297. return s.String()
  5298. }
  5299. // Validate inspects the fields of the type to determine if they are valid.
  5300. func (s *UpdateServiceAccessPoliciesInput) Validate() error {
  5301. invalidParams := request.ErrInvalidParams{Context: "UpdateServiceAccessPoliciesInput"}
  5302. if s.AccessPolicies == nil {
  5303. invalidParams.Add(request.NewErrParamRequired("AccessPolicies"))
  5304. }
  5305. if s.DomainName == nil {
  5306. invalidParams.Add(request.NewErrParamRequired("DomainName"))
  5307. }
  5308. if s.DomainName != nil && len(*s.DomainName) < 3 {
  5309. invalidParams.Add(request.NewErrParamMinLen("DomainName", 3))
  5310. }
  5311. if invalidParams.Len() > 0 {
  5312. return invalidParams
  5313. }
  5314. return nil
  5315. }
  5316. // SetAccessPolicies sets the AccessPolicies field's value.
  5317. func (s *UpdateServiceAccessPoliciesInput) SetAccessPolicies(v string) *UpdateServiceAccessPoliciesInput {
  5318. s.AccessPolicies = &v
  5319. return s
  5320. }
  5321. // SetDomainName sets the DomainName field's value.
  5322. func (s *UpdateServiceAccessPoliciesInput) SetDomainName(v string) *UpdateServiceAccessPoliciesInput {
  5323. s.DomainName = &v
  5324. return s
  5325. }
  5326. // The result of an UpdateServiceAccessPolicies request. Contains the new access
  5327. // policies.
  5328. type UpdateServiceAccessPoliciesOutput struct {
  5329. _ struct{} `type:"structure"`
  5330. // The access rules configured for the domain.
  5331. //
  5332. // AccessPolicies is a required field
  5333. AccessPolicies *AccessPoliciesStatus `type:"structure" required:"true"`
  5334. }
  5335. // String returns the string representation
  5336. func (s UpdateServiceAccessPoliciesOutput) String() string {
  5337. return awsutil.Prettify(s)
  5338. }
  5339. // GoString returns the string representation
  5340. func (s UpdateServiceAccessPoliciesOutput) GoString() string {
  5341. return s.String()
  5342. }
  5343. // SetAccessPolicies sets the AccessPolicies field's value.
  5344. func (s *UpdateServiceAccessPoliciesOutput) SetAccessPolicies(v *AccessPoliciesStatus) *UpdateServiceAccessPoliciesOutput {
  5345. s.AccessPolicies = v
  5346. return s
  5347. }
  5348. const (
  5349. // AlgorithmicStemmingNone is a AlgorithmicStemming enum value
  5350. AlgorithmicStemmingNone = "none"
  5351. // AlgorithmicStemmingMinimal is a AlgorithmicStemming enum value
  5352. AlgorithmicStemmingMinimal = "minimal"
  5353. // AlgorithmicStemmingLight is a AlgorithmicStemming enum value
  5354. AlgorithmicStemmingLight = "light"
  5355. // AlgorithmicStemmingFull is a AlgorithmicStemming enum value
  5356. AlgorithmicStemmingFull = "full"
  5357. )
  5358. // An IETF RFC 4646 (http://tools.ietf.org/html/rfc4646) language code or mul
  5359. // for multiple languages.
  5360. const (
  5361. // AnalysisSchemeLanguageAr is a AnalysisSchemeLanguage enum value
  5362. AnalysisSchemeLanguageAr = "ar"
  5363. // AnalysisSchemeLanguageBg is a AnalysisSchemeLanguage enum value
  5364. AnalysisSchemeLanguageBg = "bg"
  5365. // AnalysisSchemeLanguageCa is a AnalysisSchemeLanguage enum value
  5366. AnalysisSchemeLanguageCa = "ca"
  5367. // AnalysisSchemeLanguageCs is a AnalysisSchemeLanguage enum value
  5368. AnalysisSchemeLanguageCs = "cs"
  5369. // AnalysisSchemeLanguageDa is a AnalysisSchemeLanguage enum value
  5370. AnalysisSchemeLanguageDa = "da"
  5371. // AnalysisSchemeLanguageDe is a AnalysisSchemeLanguage enum value
  5372. AnalysisSchemeLanguageDe = "de"
  5373. // AnalysisSchemeLanguageEl is a AnalysisSchemeLanguage enum value
  5374. AnalysisSchemeLanguageEl = "el"
  5375. // AnalysisSchemeLanguageEn is a AnalysisSchemeLanguage enum value
  5376. AnalysisSchemeLanguageEn = "en"
  5377. // AnalysisSchemeLanguageEs is a AnalysisSchemeLanguage enum value
  5378. AnalysisSchemeLanguageEs = "es"
  5379. // AnalysisSchemeLanguageEu is a AnalysisSchemeLanguage enum value
  5380. AnalysisSchemeLanguageEu = "eu"
  5381. // AnalysisSchemeLanguageFa is a AnalysisSchemeLanguage enum value
  5382. AnalysisSchemeLanguageFa = "fa"
  5383. // AnalysisSchemeLanguageFi is a AnalysisSchemeLanguage enum value
  5384. AnalysisSchemeLanguageFi = "fi"
  5385. // AnalysisSchemeLanguageFr is a AnalysisSchemeLanguage enum value
  5386. AnalysisSchemeLanguageFr = "fr"
  5387. // AnalysisSchemeLanguageGa is a AnalysisSchemeLanguage enum value
  5388. AnalysisSchemeLanguageGa = "ga"
  5389. // AnalysisSchemeLanguageGl is a AnalysisSchemeLanguage enum value
  5390. AnalysisSchemeLanguageGl = "gl"
  5391. // AnalysisSchemeLanguageHe is a AnalysisSchemeLanguage enum value
  5392. AnalysisSchemeLanguageHe = "he"
  5393. // AnalysisSchemeLanguageHi is a AnalysisSchemeLanguage enum value
  5394. AnalysisSchemeLanguageHi = "hi"
  5395. // AnalysisSchemeLanguageHu is a AnalysisSchemeLanguage enum value
  5396. AnalysisSchemeLanguageHu = "hu"
  5397. // AnalysisSchemeLanguageHy is a AnalysisSchemeLanguage enum value
  5398. AnalysisSchemeLanguageHy = "hy"
  5399. // AnalysisSchemeLanguageId is a AnalysisSchemeLanguage enum value
  5400. AnalysisSchemeLanguageId = "id"
  5401. // AnalysisSchemeLanguageIt is a AnalysisSchemeLanguage enum value
  5402. AnalysisSchemeLanguageIt = "it"
  5403. // AnalysisSchemeLanguageJa is a AnalysisSchemeLanguage enum value
  5404. AnalysisSchemeLanguageJa = "ja"
  5405. // AnalysisSchemeLanguageKo is a AnalysisSchemeLanguage enum value
  5406. AnalysisSchemeLanguageKo = "ko"
  5407. // AnalysisSchemeLanguageLv is a AnalysisSchemeLanguage enum value
  5408. AnalysisSchemeLanguageLv = "lv"
  5409. // AnalysisSchemeLanguageMul is a AnalysisSchemeLanguage enum value
  5410. AnalysisSchemeLanguageMul = "mul"
  5411. // AnalysisSchemeLanguageNl is a AnalysisSchemeLanguage enum value
  5412. AnalysisSchemeLanguageNl = "nl"
  5413. // AnalysisSchemeLanguageNo is a AnalysisSchemeLanguage enum value
  5414. AnalysisSchemeLanguageNo = "no"
  5415. // AnalysisSchemeLanguagePt is a AnalysisSchemeLanguage enum value
  5416. AnalysisSchemeLanguagePt = "pt"
  5417. // AnalysisSchemeLanguageRo is a AnalysisSchemeLanguage enum value
  5418. AnalysisSchemeLanguageRo = "ro"
  5419. // AnalysisSchemeLanguageRu is a AnalysisSchemeLanguage enum value
  5420. AnalysisSchemeLanguageRu = "ru"
  5421. // AnalysisSchemeLanguageSv is a AnalysisSchemeLanguage enum value
  5422. AnalysisSchemeLanguageSv = "sv"
  5423. // AnalysisSchemeLanguageTh is a AnalysisSchemeLanguage enum value
  5424. AnalysisSchemeLanguageTh = "th"
  5425. // AnalysisSchemeLanguageTr is a AnalysisSchemeLanguage enum value
  5426. AnalysisSchemeLanguageTr = "tr"
  5427. // AnalysisSchemeLanguageZhHans is a AnalysisSchemeLanguage enum value
  5428. AnalysisSchemeLanguageZhHans = "zh-Hans"
  5429. // AnalysisSchemeLanguageZhHant is a AnalysisSchemeLanguage enum value
  5430. AnalysisSchemeLanguageZhHant = "zh-Hant"
  5431. )
  5432. // The type of field. The valid options for a field depend on the field type.
  5433. // For more information about the supported field types, see Configuring Index
  5434. // Fields (http://docs.aws.amazon.com/cloudsearch/latest/developerguide/configuring-index-fields.html)
  5435. // in the Amazon CloudSearch Developer Guide.
  5436. const (
  5437. // IndexFieldTypeInt is a IndexFieldType enum value
  5438. IndexFieldTypeInt = "int"
  5439. // IndexFieldTypeDouble is a IndexFieldType enum value
  5440. IndexFieldTypeDouble = "double"
  5441. // IndexFieldTypeLiteral is a IndexFieldType enum value
  5442. IndexFieldTypeLiteral = "literal"
  5443. // IndexFieldTypeText is a IndexFieldType enum value
  5444. IndexFieldTypeText = "text"
  5445. // IndexFieldTypeDate is a IndexFieldType enum value
  5446. IndexFieldTypeDate = "date"
  5447. // IndexFieldTypeLatlon is a IndexFieldType enum value
  5448. IndexFieldTypeLatlon = "latlon"
  5449. // IndexFieldTypeIntArray is a IndexFieldType enum value
  5450. IndexFieldTypeIntArray = "int-array"
  5451. // IndexFieldTypeDoubleArray is a IndexFieldType enum value
  5452. IndexFieldTypeDoubleArray = "double-array"
  5453. // IndexFieldTypeLiteralArray is a IndexFieldType enum value
  5454. IndexFieldTypeLiteralArray = "literal-array"
  5455. // IndexFieldTypeTextArray is a IndexFieldType enum value
  5456. IndexFieldTypeTextArray = "text-array"
  5457. // IndexFieldTypeDateArray is a IndexFieldType enum value
  5458. IndexFieldTypeDateArray = "date-array"
  5459. )
  5460. // The state of processing a change to an option. One of:
  5461. //
  5462. // * RequiresIndexDocuments: The option's latest value will not be deployed
  5463. // until IndexDocuments has been called and indexing is complete.
  5464. // * Processing: The option's latest value is in the process of being activated.
  5465. //
  5466. // * Active: The option's latest value is fully deployed.
  5467. // * FailedToValidate: The option value is not compatible with the domain's
  5468. // data and cannot be used to index the data. You must either modify the
  5469. // option value or update or remove the incompatible documents.
  5470. const (
  5471. // OptionStateRequiresIndexDocuments is a OptionState enum value
  5472. OptionStateRequiresIndexDocuments = "RequiresIndexDocuments"
  5473. // OptionStateProcessing is a OptionState enum value
  5474. OptionStateProcessing = "Processing"
  5475. // OptionStateActive is a OptionState enum value
  5476. OptionStateActive = "Active"
  5477. // OptionStateFailedToValidate is a OptionState enum value
  5478. OptionStateFailedToValidate = "FailedToValidate"
  5479. )
  5480. // The instance type (such as search.m1.small) on which an index partition is
  5481. // hosted.
  5482. const (
  5483. // PartitionInstanceTypeSearchM1Small is a PartitionInstanceType enum value
  5484. PartitionInstanceTypeSearchM1Small = "search.m1.small"
  5485. // PartitionInstanceTypeSearchM1Large is a PartitionInstanceType enum value
  5486. PartitionInstanceTypeSearchM1Large = "search.m1.large"
  5487. // PartitionInstanceTypeSearchM2Xlarge is a PartitionInstanceType enum value
  5488. PartitionInstanceTypeSearchM2Xlarge = "search.m2.xlarge"
  5489. // PartitionInstanceTypeSearchM22xlarge is a PartitionInstanceType enum value
  5490. PartitionInstanceTypeSearchM22xlarge = "search.m2.2xlarge"
  5491. // PartitionInstanceTypeSearchM3Medium is a PartitionInstanceType enum value
  5492. PartitionInstanceTypeSearchM3Medium = "search.m3.medium"
  5493. // PartitionInstanceTypeSearchM3Large is a PartitionInstanceType enum value
  5494. PartitionInstanceTypeSearchM3Large = "search.m3.large"
  5495. // PartitionInstanceTypeSearchM3Xlarge is a PartitionInstanceType enum value
  5496. PartitionInstanceTypeSearchM3Xlarge = "search.m3.xlarge"
  5497. // PartitionInstanceTypeSearchM32xlarge is a PartitionInstanceType enum value
  5498. PartitionInstanceTypeSearchM32xlarge = "search.m3.2xlarge"
  5499. )
  5500. const (
  5501. // SuggesterFuzzyMatchingNone is a SuggesterFuzzyMatching enum value
  5502. SuggesterFuzzyMatchingNone = "none"
  5503. // SuggesterFuzzyMatchingLow is a SuggesterFuzzyMatching enum value
  5504. SuggesterFuzzyMatchingLow = "low"
  5505. // SuggesterFuzzyMatchingHigh is a SuggesterFuzzyMatching enum value
  5506. SuggesterFuzzyMatchingHigh = "high"
  5507. )