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