| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457 |
- // THIS FILE IS AUTOMATICALLY GENERATED. DO NOT EDIT.
- // Package kinesisanalytics provides a client for Amazon Kinesis Analytics.
- package kinesisanalytics
- import (
- "fmt"
- "time"
- "github.com/aws/aws-sdk-go/aws/awsutil"
- "github.com/aws/aws-sdk-go/aws/request"
- )
- const opAddApplicationInput = "AddApplicationInput"
- // AddApplicationInputRequest generates a "aws/request.Request" representing the
- // client's request for the AddApplicationInput operation. The "output" return
- // value can be used to capture response data after the request's "Send" method
- // is called.
- //
- // 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 AddApplicationInput 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 AddApplicationInputRequest method.
- // req, resp := client.AddApplicationInputRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- func (c *KinesisAnalytics) AddApplicationInputRequest(input *AddApplicationInputInput) (req *request.Request, output *AddApplicationInputOutput) {
- op := &request.Operation{
- Name: opAddApplicationInput,
- HTTPMethod: "POST",
- HTTPPath: "/",
- }
- if input == nil {
- input = &AddApplicationInputInput{}
- }
- req = c.newRequest(op, input, output)
- output = &AddApplicationInputOutput{}
- req.Data = output
- return
- }
- // Adds a streaming source to your Amazon Kinesis application. For conceptual
- // information, see Configuring Application Input (http://docs.aws.amazon.com/kinesisanalytics/latest/dev/how-it-works-input.html).
- //
- // You can add a streaming source either when you create an application or
- // you can use this operation to add a streaming source after you create an
- // application. For more information, see CreateApplication.
- //
- // Any configuration update, including adding a streaming source using this
- // operation, results in a new version of the application. You can use the DescribeApplication
- // operation to find the current application version.
- //
- // This operation requires permissions to perform the kinesisanalytics:AddApplicationInput
- // action.
- func (c *KinesisAnalytics) AddApplicationInput(input *AddApplicationInputInput) (*AddApplicationInputOutput, error) {
- req, out := c.AddApplicationInputRequest(input)
- err := req.Send()
- return out, err
- }
- const opAddApplicationOutput = "AddApplicationOutput"
- // AddApplicationOutputRequest generates a "aws/request.Request" representing the
- // client's request for the AddApplicationOutput operation. The "output" return
- // value can be used to capture response data after the request's "Send" method
- // is called.
- //
- // 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 AddApplicationOutput 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 AddApplicationOutputRequest method.
- // req, resp := client.AddApplicationOutputRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- func (c *KinesisAnalytics) AddApplicationOutputRequest(input *AddApplicationOutputInput) (req *request.Request, output *AddApplicationOutputOutput) {
- op := &request.Operation{
- Name: opAddApplicationOutput,
- HTTPMethod: "POST",
- HTTPPath: "/",
- }
- if input == nil {
- input = &AddApplicationOutputInput{}
- }
- req = c.newRequest(op, input, output)
- output = &AddApplicationOutputOutput{}
- req.Data = output
- return
- }
- // Adds an external destination to your Amazon Kinesis Analytics application.
- //
- // If you want Amazon Kinesis Analytics to deliver data from an in-application
- // stream within your application to an external destination (such as an Amazon
- // Kinesis stream or a Firehose delivery stream), you add the relevant configuration
- // to your application using this operation. You can configure one or more outputs
- // for your application. Each output configuration maps an in-application stream
- // and an external destination.
- //
- // You can use one of the output configurations to deliver data from your
- // in-application error stream to an external destination so that you can analyze
- // the errors. For conceptual information, see Understanding Application Output
- // (Destination) (http://docs.aws.amazon.com/kinesisanalytics/latest/dev/how-it-works-output.html).
- //
- // Note that any configuration update, including adding a streaming source
- // using this operation, results in a new version of the application. You can
- // use the DescribeApplication operation to find the current application version.
- //
- // For the limits on the number of application inputs and outputs you can configure,
- // see Limits (http://docs.aws.amazon.com/kinesisanalytics/latest/dev/limits.html).
- //
- // This operation requires permissions to perform the kinesisanalytics:AddApplicationOutput
- // action.
- func (c *KinesisAnalytics) AddApplicationOutput(input *AddApplicationOutputInput) (*AddApplicationOutputOutput, error) {
- req, out := c.AddApplicationOutputRequest(input)
- err := req.Send()
- return out, err
- }
- const opAddApplicationReferenceDataSource = "AddApplicationReferenceDataSource"
- // AddApplicationReferenceDataSourceRequest generates a "aws/request.Request" representing the
- // client's request for the AddApplicationReferenceDataSource operation. The "output" return
- // value can be used to capture response data after the request's "Send" method
- // is called.
- //
- // 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 AddApplicationReferenceDataSource 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 AddApplicationReferenceDataSourceRequest method.
- // req, resp := client.AddApplicationReferenceDataSourceRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- func (c *KinesisAnalytics) AddApplicationReferenceDataSourceRequest(input *AddApplicationReferenceDataSourceInput) (req *request.Request, output *AddApplicationReferenceDataSourceOutput) {
- op := &request.Operation{
- Name: opAddApplicationReferenceDataSource,
- HTTPMethod: "POST",
- HTTPPath: "/",
- }
- if input == nil {
- input = &AddApplicationReferenceDataSourceInput{}
- }
- req = c.newRequest(op, input, output)
- output = &AddApplicationReferenceDataSourceOutput{}
- req.Data = output
- return
- }
- // Adds a reference data source to an existing application.
- //
- // Amazon Kinesis Analytics reads reference data (that is, an Amazon S3 object)
- // and creates an in-application table within your application. In the request,
- // you provide the source (S3 bucket name and object key name), name of the
- // in-application table to create, and the necessary mapping information that
- // describes how data in Amazon S3 object maps to columns in the resulting in-application
- // table.
- //
- // For conceptual information, see Configuring Application Input (http://docs.aws.amazon.com/kinesisanalytics/latest/dev/how-it-works-input.html).
- // For the limits on data sources you can add to your application, see Limits
- // (http://docs.aws.amazon.com/kinesisanalytics/latest/dev/limits.html).
- //
- // This operation requires permissions to perform the kinesisanalytics:AddApplicationOutput
- // action.
- func (c *KinesisAnalytics) AddApplicationReferenceDataSource(input *AddApplicationReferenceDataSourceInput) (*AddApplicationReferenceDataSourceOutput, error) {
- req, out := c.AddApplicationReferenceDataSourceRequest(input)
- err := req.Send()
- return out, err
- }
- const opCreateApplication = "CreateApplication"
- // CreateApplicationRequest generates a "aws/request.Request" representing the
- // client's request for the CreateApplication operation. The "output" return
- // value can be used to capture response data after the request's "Send" method
- // is called.
- //
- // 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 CreateApplication 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 CreateApplicationRequest method.
- // req, resp := client.CreateApplicationRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- func (c *KinesisAnalytics) CreateApplicationRequest(input *CreateApplicationInput) (req *request.Request, output *CreateApplicationOutput) {
- op := &request.Operation{
- Name: opCreateApplication,
- HTTPMethod: "POST",
- HTTPPath: "/",
- }
- if input == nil {
- input = &CreateApplicationInput{}
- }
- req = c.newRequest(op, input, output)
- output = &CreateApplicationOutput{}
- req.Data = output
- return
- }
- // Creates an Amazon Kinesis Analytics application. You can configure each application
- // with one streaming source as input, application code to process the input,
- // and up to five streaming destinations where you want Amazon Kinesis Analytics
- // to write the output data from your application. For an overview, see How
- // it Works (http://docs.aws.amazon.com/kinesisanalytics/latest/dev/how-it-works.html).
- //
- // In the input configuration, you map the streaming source to an in-application
- // stream, which you can think of as a constantly updating table. In the mapping,
- // you must provide a schema for the in-application stream and map each data
- // column in the in-application stream to a data element in the streaming source,
- // with the option of renaming, casting and dropping columns as desired.
- //
- // Your application code is one or more SQL statements that read input data,
- // transform it, and generate output. Your application code can create one or
- // more SQL artifacts like SQL streams or pumps.
- //
- // In the output configuration, you can configure the application to write
- // data from in-application streams created in your applications to up to five
- // streaming destinations.
- //
- // To read data from your source stream or write data to destination streams,
- // Amazon Kinesis Analytics needs your permissions. You grant these permissions
- // by creating IAM roles. This operation requires permissions to perform the
- // kinesisanalytics:CreateApplication action.
- //
- // For introductory exercises to create an Amazon Kinesis Analytics application,
- // see Getting Started (http://docs.aws.amazon.com/kinesisanalytics/latest/dev/getting-started.html).
- func (c *KinesisAnalytics) CreateApplication(input *CreateApplicationInput) (*CreateApplicationOutput, error) {
- req, out := c.CreateApplicationRequest(input)
- err := req.Send()
- return out, err
- }
- const opDeleteApplication = "DeleteApplication"
- // DeleteApplicationRequest generates a "aws/request.Request" representing the
- // client's request for the DeleteApplication operation. The "output" return
- // value can be used to capture response data after the request's "Send" method
- // is called.
- //
- // 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 DeleteApplication 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 DeleteApplicationRequest method.
- // req, resp := client.DeleteApplicationRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- func (c *KinesisAnalytics) DeleteApplicationRequest(input *DeleteApplicationInput) (req *request.Request, output *DeleteApplicationOutput) {
- op := &request.Operation{
- Name: opDeleteApplication,
- HTTPMethod: "POST",
- HTTPPath: "/",
- }
- if input == nil {
- input = &DeleteApplicationInput{}
- }
- req = c.newRequest(op, input, output)
- output = &DeleteApplicationOutput{}
- req.Data = output
- return
- }
- // Deletes the specified application. Amazon Kinesis Analytics halts application
- // execution and deletes the application, including any application artifacts
- // (such as in-application streams, reference table, and application code).
- //
- // This operation requires permissions to perform the kinesisanalytics:DeleteApplication
- // action.
- func (c *KinesisAnalytics) DeleteApplication(input *DeleteApplicationInput) (*DeleteApplicationOutput, error) {
- req, out := c.DeleteApplicationRequest(input)
- err := req.Send()
- return out, err
- }
- const opDeleteApplicationOutput = "DeleteApplicationOutput"
- // DeleteApplicationOutputRequest generates a "aws/request.Request" representing the
- // client's request for the DeleteApplicationOutput operation. The "output" return
- // value can be used to capture response data after the request's "Send" method
- // is called.
- //
- // 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 DeleteApplicationOutput 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 DeleteApplicationOutputRequest method.
- // req, resp := client.DeleteApplicationOutputRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- func (c *KinesisAnalytics) DeleteApplicationOutputRequest(input *DeleteApplicationOutputInput) (req *request.Request, output *DeleteApplicationOutputOutput) {
- op := &request.Operation{
- Name: opDeleteApplicationOutput,
- HTTPMethod: "POST",
- HTTPPath: "/",
- }
- if input == nil {
- input = &DeleteApplicationOutputInput{}
- }
- req = c.newRequest(op, input, output)
- output = &DeleteApplicationOutputOutput{}
- req.Data = output
- return
- }
- // Deletes output destination configuration from your application configuration.
- // Amazon Kinesis Analytics will no longer write data from the corresponding
- // in-application stream to the external output destination.
- //
- // This operation requires permissions to perform the kinesisanalytics:DeleteApplicationOutput
- // action.
- func (c *KinesisAnalytics) DeleteApplicationOutput(input *DeleteApplicationOutputInput) (*DeleteApplicationOutputOutput, error) {
- req, out := c.DeleteApplicationOutputRequest(input)
- err := req.Send()
- return out, err
- }
- const opDeleteApplicationReferenceDataSource = "DeleteApplicationReferenceDataSource"
- // DeleteApplicationReferenceDataSourceRequest generates a "aws/request.Request" representing the
- // client's request for the DeleteApplicationReferenceDataSource operation. The "output" return
- // value can be used to capture response data after the request's "Send" method
- // is called.
- //
- // 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 DeleteApplicationReferenceDataSource 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 DeleteApplicationReferenceDataSourceRequest method.
- // req, resp := client.DeleteApplicationReferenceDataSourceRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- func (c *KinesisAnalytics) DeleteApplicationReferenceDataSourceRequest(input *DeleteApplicationReferenceDataSourceInput) (req *request.Request, output *DeleteApplicationReferenceDataSourceOutput) {
- op := &request.Operation{
- Name: opDeleteApplicationReferenceDataSource,
- HTTPMethod: "POST",
- HTTPPath: "/",
- }
- if input == nil {
- input = &DeleteApplicationReferenceDataSourceInput{}
- }
- req = c.newRequest(op, input, output)
- output = &DeleteApplicationReferenceDataSourceOutput{}
- req.Data = output
- return
- }
- // Deletes a reference data source configuration from the specified application
- // configuration.
- //
- // If the application is running, Amazon Kinesis Analytics immediately removes
- // the in-application table that you created using the AddApplicationReferenceDataSource
- // operation.
- //
- // This operation requires permissions to perform the kinesisanalytics.DeleteApplicationReferenceDataSource
- // action.
- func (c *KinesisAnalytics) DeleteApplicationReferenceDataSource(input *DeleteApplicationReferenceDataSourceInput) (*DeleteApplicationReferenceDataSourceOutput, error) {
- req, out := c.DeleteApplicationReferenceDataSourceRequest(input)
- err := req.Send()
- return out, err
- }
- const opDescribeApplication = "DescribeApplication"
- // DescribeApplicationRequest generates a "aws/request.Request" representing the
- // client's request for the DescribeApplication operation. The "output" return
- // value can be used to capture response data after the request's "Send" method
- // is called.
- //
- // 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 DescribeApplication 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 DescribeApplicationRequest method.
- // req, resp := client.DescribeApplicationRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- func (c *KinesisAnalytics) DescribeApplicationRequest(input *DescribeApplicationInput) (req *request.Request, output *DescribeApplicationOutput) {
- op := &request.Operation{
- Name: opDescribeApplication,
- HTTPMethod: "POST",
- HTTPPath: "/",
- }
- if input == nil {
- input = &DescribeApplicationInput{}
- }
- req = c.newRequest(op, input, output)
- output = &DescribeApplicationOutput{}
- req.Data = output
- return
- }
- // Returns information about a specific Amazon Kinesis Analytics application.
- //
- // If you want to retrieve a list of all applications in your account, use
- // the ListApplications operation.
- //
- // This operation requires permissions to perform the kinesisanalytics:DescribeApplication
- // action. You can use DescribeApplication to get the current application versionId,
- // which you need to call other operations such as Update.
- func (c *KinesisAnalytics) DescribeApplication(input *DescribeApplicationInput) (*DescribeApplicationOutput, error) {
- req, out := c.DescribeApplicationRequest(input)
- err := req.Send()
- return out, err
- }
- const opDiscoverInputSchema = "DiscoverInputSchema"
- // DiscoverInputSchemaRequest generates a "aws/request.Request" representing the
- // client's request for the DiscoverInputSchema operation. The "output" return
- // value can be used to capture response data after the request's "Send" method
- // is called.
- //
- // 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 DiscoverInputSchema 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 DiscoverInputSchemaRequest method.
- // req, resp := client.DiscoverInputSchemaRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- func (c *KinesisAnalytics) DiscoverInputSchemaRequest(input *DiscoverInputSchemaInput) (req *request.Request, output *DiscoverInputSchemaOutput) {
- op := &request.Operation{
- Name: opDiscoverInputSchema,
- HTTPMethod: "POST",
- HTTPPath: "/",
- }
- if input == nil {
- input = &DiscoverInputSchemaInput{}
- }
- req = c.newRequest(op, input, output)
- output = &DiscoverInputSchemaOutput{}
- req.Data = output
- return
- }
- // Infers a schema by evaluating sample records on the specified streaming source
- // (Amazon Kinesis stream or Amazon Kinesis Firehose delivery stream). In the
- // response, the operation returns the inferred schema and also the sample records
- // that the operation used to infer the schema.
- //
- // You can use the inferred schema when configuring a streaming source for
- // your application. For conceptual information, see Configuring Application
- // Input (http://docs.aws.amazon.com/kinesisanalytics/latest/dev/how-it-works-input.html).
- // Note that when you create an application using the Amazon Kinesis Analytics
- // console, the console uses this operation to infer a schema and show it in
- // the console user interface.
- //
- // This operation requires permissions to perform the kinesisanalytics:DiscoverInputSchema
- // action.
- func (c *KinesisAnalytics) DiscoverInputSchema(input *DiscoverInputSchemaInput) (*DiscoverInputSchemaOutput, error) {
- req, out := c.DiscoverInputSchemaRequest(input)
- err := req.Send()
- return out, err
- }
- const opListApplications = "ListApplications"
- // ListApplicationsRequest generates a "aws/request.Request" representing the
- // client's request for the ListApplications operation. The "output" return
- // value can be used to capture response data after the request's "Send" method
- // is called.
- //
- // 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 ListApplications 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 ListApplicationsRequest method.
- // req, resp := client.ListApplicationsRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- func (c *KinesisAnalytics) ListApplicationsRequest(input *ListApplicationsInput) (req *request.Request, output *ListApplicationsOutput) {
- op := &request.Operation{
- Name: opListApplications,
- HTTPMethod: "POST",
- HTTPPath: "/",
- }
- if input == nil {
- input = &ListApplicationsInput{}
- }
- req = c.newRequest(op, input, output)
- output = &ListApplicationsOutput{}
- req.Data = output
- return
- }
- // Returns a list of Amazon Kinesis Analytics applications in your account.
- // For each application, the response includes the application name, Amazon
- // Resource Name (ARN), and status. If the response returns the HasMoreApplications
- // value as true, you can send another request by adding the ExclusiveStartApplicationName
- // in the request body, and set the value of this to the last application name
- // from the previous response.
- //
- // If you want detailed information about a specific application, use DescribeApplication.
- //
- // This operation requires permissions to perform the kinesisanalytics:ListApplications
- // action.
- func (c *KinesisAnalytics) ListApplications(input *ListApplicationsInput) (*ListApplicationsOutput, error) {
- req, out := c.ListApplicationsRequest(input)
- err := req.Send()
- return out, err
- }
- const opStartApplication = "StartApplication"
- // StartApplicationRequest generates a "aws/request.Request" representing the
- // client's request for the StartApplication operation. The "output" return
- // value can be used to capture response data after the request's "Send" method
- // is called.
- //
- // 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 StartApplication 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 StartApplicationRequest method.
- // req, resp := client.StartApplicationRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- func (c *KinesisAnalytics) StartApplicationRequest(input *StartApplicationInput) (req *request.Request, output *StartApplicationOutput) {
- op := &request.Operation{
- Name: opStartApplication,
- HTTPMethod: "POST",
- HTTPPath: "/",
- }
- if input == nil {
- input = &StartApplicationInput{}
- }
- req = c.newRequest(op, input, output)
- output = &StartApplicationOutput{}
- req.Data = output
- return
- }
- // Starts the specified Amazon Kinesis Analytics application. After creating
- // an application, you must exclusively call this operation to start your application.
- //
- // After the application starts, it begins consuming the input data, processes
- // it, and writes the output to the configured destination.
- //
- // The application status must be READY for you to start an application. You
- // can get the application status in the console or using the DescribeApplication
- // operation.
- //
- // After you start the application, you can stop the application from processing
- // the input by calling the StopApplication operation.
- //
- // This operation requires permissions to perform the kinesisanalytics:StartApplication
- // action.
- func (c *KinesisAnalytics) StartApplication(input *StartApplicationInput) (*StartApplicationOutput, error) {
- req, out := c.StartApplicationRequest(input)
- err := req.Send()
- return out, err
- }
- const opStopApplication = "StopApplication"
- // StopApplicationRequest generates a "aws/request.Request" representing the
- // client's request for the StopApplication operation. The "output" return
- // value can be used to capture response data after the request's "Send" method
- // is called.
- //
- // 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 StopApplication 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 StopApplicationRequest method.
- // req, resp := client.StopApplicationRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- func (c *KinesisAnalytics) StopApplicationRequest(input *StopApplicationInput) (req *request.Request, output *StopApplicationOutput) {
- op := &request.Operation{
- Name: opStopApplication,
- HTTPMethod: "POST",
- HTTPPath: "/",
- }
- if input == nil {
- input = &StopApplicationInput{}
- }
- req = c.newRequest(op, input, output)
- output = &StopApplicationOutput{}
- req.Data = output
- return
- }
- // Stops the application from processing input data. You can stop an application
- // only if it is in the running state. You can use the DescribeApplication operation
- // to find the application state. After the application is stopped, Amazon Kinesis
- // Analytics stops reading data from the input, the application stops processing
- // data, and there is no output written to the destination.
- //
- // This operation requires permissions to perform the kinesisanalytics:StopApplication
- // action.
- func (c *KinesisAnalytics) StopApplication(input *StopApplicationInput) (*StopApplicationOutput, error) {
- req, out := c.StopApplicationRequest(input)
- err := req.Send()
- return out, err
- }
- const opUpdateApplication = "UpdateApplication"
- // UpdateApplicationRequest generates a "aws/request.Request" representing the
- // client's request for the UpdateApplication operation. The "output" return
- // value can be used to capture response data after the request's "Send" method
- // is called.
- //
- // 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 UpdateApplication 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 UpdateApplicationRequest method.
- // req, resp := client.UpdateApplicationRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- func (c *KinesisAnalytics) UpdateApplicationRequest(input *UpdateApplicationInput) (req *request.Request, output *UpdateApplicationOutput) {
- op := &request.Operation{
- Name: opUpdateApplication,
- HTTPMethod: "POST",
- HTTPPath: "/",
- }
- if input == nil {
- input = &UpdateApplicationInput{}
- }
- req = c.newRequest(op, input, output)
- output = &UpdateApplicationOutput{}
- req.Data = output
- return
- }
- // Updates an existing Kinesis Analytics application. Using this API, you can
- // update application code, input configuration, and output configuration.
- //
- // Note that Kinesis Analytics updates the CurrentApplicationVersionId each
- // time you update your application.
- //
- // This opeation requires permission for the kinesisanalytics:UpdateApplication
- // action.
- func (c *KinesisAnalytics) UpdateApplication(input *UpdateApplicationInput) (*UpdateApplicationOutput, error) {
- req, out := c.UpdateApplicationRequest(input)
- err := req.Send()
- return out, err
- }
- type AddApplicationInputInput struct {
- _ struct{} `type:"structure"`
- // Name of your existing Amazon Kinesis Analytics application to which you want
- // to add the streaming source.
- ApplicationName *string `min:"1" type:"string" required:"true"`
- // Current version of your Amazon Kinesis Analytics application. You can use
- // the DescribeApplication operation to find the current application version.
- CurrentApplicationVersionId *int64 `min:"1" type:"long" required:"true"`
- // When you configure the application input, you specify the streaming source,
- // the in-application stream name that is created, and the mapping between the
- // two. For more information, see Configuring Application Input (http://docs.aws.amazon.com/kinesisanalytics/latest/dev/how-it-works-input.html).
- Input *Input `type:"structure" required:"true"`
- }
- // String returns the string representation
- func (s AddApplicationInputInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s AddApplicationInputInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *AddApplicationInputInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "AddApplicationInputInput"}
- if s.ApplicationName == nil {
- invalidParams.Add(request.NewErrParamRequired("ApplicationName"))
- }
- if s.ApplicationName != nil && len(*s.ApplicationName) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("ApplicationName", 1))
- }
- if s.CurrentApplicationVersionId == nil {
- invalidParams.Add(request.NewErrParamRequired("CurrentApplicationVersionId"))
- }
- if s.CurrentApplicationVersionId != nil && *s.CurrentApplicationVersionId < 1 {
- invalidParams.Add(request.NewErrParamMinValue("CurrentApplicationVersionId", 1))
- }
- if s.Input == nil {
- invalidParams.Add(request.NewErrParamRequired("Input"))
- }
- if s.Input != nil {
- if err := s.Input.Validate(); err != nil {
- invalidParams.AddNested("Input", err.(request.ErrInvalidParams))
- }
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- type AddApplicationInputOutput struct {
- _ struct{} `type:"structure"`
- }
- // String returns the string representation
- func (s AddApplicationInputOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s AddApplicationInputOutput) GoString() string {
- return s.String()
- }
- type AddApplicationOutputInput struct {
- _ struct{} `type:"structure"`
- // Name of the application to which you want to add the output configuration.
- ApplicationName *string `min:"1" type:"string" required:"true"`
- // Version of the application to which you want add the output configuration.
- // You can use the DescribeApplication operation to get the current application
- // version. If the version specified is not the current version, the ConcurrentModificationException
- // is returned.
- CurrentApplicationVersionId *int64 `min:"1" type:"long" required:"true"`
- // An array of objects, each describing one output configuration. In the output
- // configuration, you specify the name of an in-application stream, a destination
- // (that is, an Amazon Kinesis stream or an Amazon Kinesis Firehose delivery
- // stream), and record the formation to use when writing to the destination.
- Output *Output `type:"structure" required:"true"`
- }
- // String returns the string representation
- func (s AddApplicationOutputInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s AddApplicationOutputInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *AddApplicationOutputInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "AddApplicationOutputInput"}
- if s.ApplicationName == nil {
- invalidParams.Add(request.NewErrParamRequired("ApplicationName"))
- }
- if s.ApplicationName != nil && len(*s.ApplicationName) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("ApplicationName", 1))
- }
- if s.CurrentApplicationVersionId == nil {
- invalidParams.Add(request.NewErrParamRequired("CurrentApplicationVersionId"))
- }
- if s.CurrentApplicationVersionId != nil && *s.CurrentApplicationVersionId < 1 {
- invalidParams.Add(request.NewErrParamMinValue("CurrentApplicationVersionId", 1))
- }
- if s.Output == nil {
- invalidParams.Add(request.NewErrParamRequired("Output"))
- }
- if s.Output != nil {
- if err := s.Output.Validate(); err != nil {
- invalidParams.AddNested("Output", err.(request.ErrInvalidParams))
- }
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- type AddApplicationOutputOutput struct {
- _ struct{} `type:"structure"`
- }
- // String returns the string representation
- func (s AddApplicationOutputOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s AddApplicationOutputOutput) GoString() string {
- return s.String()
- }
- type AddApplicationReferenceDataSourceInput struct {
- _ struct{} `type:"structure"`
- // Name of an existing application.
- ApplicationName *string `min:"1" type:"string" required:"true"`
- // Version of the application for which you are adding the reference data source.
- // You can use the DescribeApplication operation to get the current application
- // version. If the version specified is not the current version, the ConcurrentModificationException
- // is returned.
- CurrentApplicationVersionId *int64 `min:"1" type:"long" required:"true"`
- // The reference data source can be an object in your Amazon S3 bucket. Amazon
- // Kinesis Analytics reads the object and copies the data into the in-application
- // table that is created. You provide an S3 bucket, object key name, and the
- // resulting in-application table that is created. You must also provide an
- // IAM role with the necessary permissions that Amazon Kinesis Analytics can
- // assume to read the object from your S3 bucket on your behalf.
- ReferenceDataSource *ReferenceDataSource `type:"structure" required:"true"`
- }
- // String returns the string representation
- func (s AddApplicationReferenceDataSourceInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s AddApplicationReferenceDataSourceInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *AddApplicationReferenceDataSourceInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "AddApplicationReferenceDataSourceInput"}
- if s.ApplicationName == nil {
- invalidParams.Add(request.NewErrParamRequired("ApplicationName"))
- }
- if s.ApplicationName != nil && len(*s.ApplicationName) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("ApplicationName", 1))
- }
- if s.CurrentApplicationVersionId == nil {
- invalidParams.Add(request.NewErrParamRequired("CurrentApplicationVersionId"))
- }
- if s.CurrentApplicationVersionId != nil && *s.CurrentApplicationVersionId < 1 {
- invalidParams.Add(request.NewErrParamMinValue("CurrentApplicationVersionId", 1))
- }
- if s.ReferenceDataSource == nil {
- invalidParams.Add(request.NewErrParamRequired("ReferenceDataSource"))
- }
- if s.ReferenceDataSource != nil {
- if err := s.ReferenceDataSource.Validate(); err != nil {
- invalidParams.AddNested("ReferenceDataSource", err.(request.ErrInvalidParams))
- }
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- type AddApplicationReferenceDataSourceOutput struct {
- _ struct{} `type:"structure"`
- }
- // String returns the string representation
- func (s AddApplicationReferenceDataSourceOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s AddApplicationReferenceDataSourceOutput) GoString() string {
- return s.String()
- }
- // Provides a description of the application, including the application Amazon
- // Resource Name (ARN), status, latest version, and input and output configuration.
- type ApplicationDetail struct {
- _ struct{} `type:"structure"`
- // ARN of the application.
- ApplicationARN *string `min:"1" type:"string" required:"true"`
- // Returns the application code that you provided to perform data analysis on
- // any of the in-application streams in your application.
- ApplicationCode *string `type:"string"`
- // Description of the application.
- ApplicationDescription *string `type:"string"`
- // Name of the application.
- ApplicationName *string `min:"1" type:"string" required:"true"`
- // Status of the application.
- ApplicationStatus *string `type:"string" required:"true" enum:"ApplicationStatus"`
- // Provides the current application version.
- ApplicationVersionId *int64 `min:"1" type:"long" required:"true"`
- // Timestamp when the application version was created.
- CreateTimestamp *time.Time `type:"timestamp" timestampFormat:"unix"`
- // Describes the application input configuration. For more information, see
- // Configuring Application Input (http://docs.aws.amazon.com/kinesisanalytics/latest/dev/how-it-works-input.html).
- InputDescriptions []*InputDescription `type:"list"`
- // Timestamp when the application was last updated.
- LastUpdateTimestamp *time.Time `type:"timestamp" timestampFormat:"unix"`
- // Describes the application output configuration. For more information, see
- // Configuring Application Output (http://docs.aws.amazon.com/kinesisanalytics/latest/dev/how-it-works-output.html).
- OutputDescriptions []*OutputDescription `type:"list"`
- // Describes reference data sources configured for the application. For more
- // information, see Configuring Application Input (http://docs.aws.amazon.com/kinesisanalytics/latest/dev/how-it-works-input.html).
- ReferenceDataSourceDescriptions []*ReferenceDataSourceDescription `type:"list"`
- }
- // String returns the string representation
- func (s ApplicationDetail) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s ApplicationDetail) GoString() string {
- return s.String()
- }
- // Provides application summary information, including the application Amazon
- // Resource Name (ARN), name, and status.
- type ApplicationSummary struct {
- _ struct{} `type:"structure"`
- // ARN of the application.
- ApplicationARN *string `min:"1" type:"string" required:"true"`
- // Name of the application.
- ApplicationName *string `min:"1" type:"string" required:"true"`
- // Status of the application.
- ApplicationStatus *string `type:"string" required:"true" enum:"ApplicationStatus"`
- }
- // String returns the string representation
- func (s ApplicationSummary) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s ApplicationSummary) GoString() string {
- return s.String()
- }
- // Describes updates to apply to an existing Kinesis Analytics application.
- type ApplicationUpdate struct {
- _ struct{} `type:"structure"`
- // Describes application code updates.
- ApplicationCodeUpdate *string `type:"string"`
- // Describes application input configuration updates.
- InputUpdates []*InputUpdate `type:"list"`
- // Describes application output configuration updates.
- OutputUpdates []*OutputUpdate `type:"list"`
- // Describes application reference data source updates.
- ReferenceDataSourceUpdates []*ReferenceDataSourceUpdate `type:"list"`
- }
- // String returns the string representation
- func (s ApplicationUpdate) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s ApplicationUpdate) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *ApplicationUpdate) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "ApplicationUpdate"}
- if s.InputUpdates != nil {
- for i, v := range s.InputUpdates {
- if v == nil {
- continue
- }
- if err := v.Validate(); err != nil {
- invalidParams.AddNested(fmt.Sprintf("%s[%v]", "InputUpdates", i), err.(request.ErrInvalidParams))
- }
- }
- }
- if s.OutputUpdates != nil {
- for i, v := range s.OutputUpdates {
- if v == nil {
- continue
- }
- if err := v.Validate(); err != nil {
- invalidParams.AddNested(fmt.Sprintf("%s[%v]", "OutputUpdates", i), err.(request.ErrInvalidParams))
- }
- }
- }
- if s.ReferenceDataSourceUpdates != nil {
- for i, v := range s.ReferenceDataSourceUpdates {
- if v == nil {
- continue
- }
- if err := v.Validate(); err != nil {
- invalidParams.AddNested(fmt.Sprintf("%s[%v]", "ReferenceDataSourceUpdates", i), err.(request.ErrInvalidParams))
- }
- }
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // Provides additional mapping information when the record format uses delimiters,
- // such as CSV. For example, the following sample records use CSV format, where
- // the records use the '\n' as the row delimiter and a comma (",") as the column
- // delimiter:
- //
- // "name1", "address1"
- //
- // "name2, "address2"
- type CSVMappingParameters struct {
- _ struct{} `type:"structure"`
- // Column delimiter. For example, in a CSV format, a comma (",") is the typical
- // column delimiter.
- RecordColumnDelimiter *string `type:"string" required:"true"`
- // Row delimiter. For example, in a CSV format, '\n' is the typical row delimiter.
- RecordRowDelimiter *string `type:"string" required:"true"`
- }
- // String returns the string representation
- func (s CSVMappingParameters) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s CSVMappingParameters) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *CSVMappingParameters) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "CSVMappingParameters"}
- if s.RecordColumnDelimiter == nil {
- invalidParams.Add(request.NewErrParamRequired("RecordColumnDelimiter"))
- }
- if s.RecordRowDelimiter == nil {
- invalidParams.Add(request.NewErrParamRequired("RecordRowDelimiter"))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // TBD
- type CreateApplicationInput struct {
- _ struct{} `type:"structure"`
- // One or more SQL statements that read input data, transform it, and generate
- // output. For example, you can write a SQL statement that reads input data
- // and generates a running average of the number of advertisement clicks by
- // vendor.
- //
- // You can also provide a series of SQL statements, where output of one statement
- // can be used as the input for the next statement.
- //
- // Note that the application code must create the streams with names specified
- // in the Outputs. For example, if your Outputs defines output streams named
- // ExampleOutputStream1 and ExampleOutputStream2, then your application code
- // must create these streams.
- ApplicationCode *string `type:"string"`
- // Summary description of the application.
- ApplicationDescription *string `type:"string"`
- // Name of your Amazon Kinesis Analytics application (for example, sample-app).
- ApplicationName *string `min:"1" type:"string" required:"true"`
- // Use this parameter to configure the application input.
- //
- // You can configure your application to receive input from a single streaming
- // source. In this configuration, you map this streaming source to an in-application
- // stream that is created. Your application code can then query the in-application
- // stream like a table (you can think of it as a constantly updating table).
- //
- // For the streaming source, you provide its Amazon Resource Name (ARN) and
- // format of data on the stream (for example, JSON, CSV, etc). You also must
- // provide an IAM role that Amazon Kinesis Analytics can assume to read this
- // stream on your behalf.
- //
- // To create the in-application stream, you need to specify a schema to transform
- // your data into a schematized version used in SQL. In the schema, you provide
- // the necessary mapping of the data elements in the streaming source to record
- // columns in the in-app stream.
- Inputs []*Input `type:"list"`
- // You can configure application output to write data from any of the in-application
- // streams to up to five destinations.
- //
- // These destinations can be Amazon Kinesis streams, Amazon Kinesis Firehose
- // delivery streams, or both.
- //
- // In the configuration, you specify the in-application stream name, the destination
- // stream Amazon Resource Name (ARN), and the format to use when writing data.
- // You must also provide an IAM role that Amazon Kinesis Analytics can assume
- // to write to the destination stream on your behalf.
- //
- // In the output configuration, you also provide the output stream Amazon Resource
- // Name (ARN) and the format of data in the stream (for example, JSON, CSV).
- // You also must provide an IAM role that Amazon Kinesis Analytics can assume
- // to write to this stream on your behalf.
- Outputs []*Output `type:"list"`
- }
- // String returns the string representation
- func (s CreateApplicationInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s CreateApplicationInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *CreateApplicationInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "CreateApplicationInput"}
- if s.ApplicationName == nil {
- invalidParams.Add(request.NewErrParamRequired("ApplicationName"))
- }
- if s.ApplicationName != nil && len(*s.ApplicationName) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("ApplicationName", 1))
- }
- if s.Inputs != nil {
- for i, v := range s.Inputs {
- if v == nil {
- continue
- }
- if err := v.Validate(); err != nil {
- invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Inputs", i), err.(request.ErrInvalidParams))
- }
- }
- }
- if s.Outputs != nil {
- for i, v := range s.Outputs {
- if v == nil {
- continue
- }
- if err := v.Validate(); err != nil {
- invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Outputs", i), err.(request.ErrInvalidParams))
- }
- }
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // TBD
- type CreateApplicationOutput struct {
- _ struct{} `type:"structure"`
- // In response to your CreateApplication request, Amazon Kinesis Analytics returns
- // a response with a summary of the application it created, including the application
- // Amazon Resource Name (ARN), name, and status.
- ApplicationSummary *ApplicationSummary `type:"structure" required:"true"`
- }
- // String returns the string representation
- func (s CreateApplicationOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s CreateApplicationOutput) GoString() string {
- return s.String()
- }
- type DeleteApplicationInput struct {
- _ struct{} `type:"structure"`
- // Name of the Amazon Kinesis Analytics application to delete.
- ApplicationName *string `min:"1" type:"string" required:"true"`
- // You can use the DescribeApplication operation to get this value.
- CreateTimestamp *time.Time `type:"timestamp" timestampFormat:"unix" required:"true"`
- }
- // String returns the string representation
- func (s DeleteApplicationInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s DeleteApplicationInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *DeleteApplicationInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "DeleteApplicationInput"}
- if s.ApplicationName == nil {
- invalidParams.Add(request.NewErrParamRequired("ApplicationName"))
- }
- if s.ApplicationName != nil && len(*s.ApplicationName) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("ApplicationName", 1))
- }
- if s.CreateTimestamp == nil {
- invalidParams.Add(request.NewErrParamRequired("CreateTimestamp"))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- type DeleteApplicationOutput struct {
- _ struct{} `type:"structure"`
- }
- // String returns the string representation
- func (s DeleteApplicationOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s DeleteApplicationOutput) GoString() string {
- return s.String()
- }
- type DeleteApplicationOutputInput struct {
- _ struct{} `type:"structure"`
- // Amazon Kinesis Analytics application name.
- ApplicationName *string `min:"1" type:"string" required:"true"`
- // Amazon Kinesis Analytics application version. You can use the DescribeApplication
- // operation to get the current application version. If the version specified
- // is not the current version, the ConcurrentModificationException is returned.
- CurrentApplicationVersionId *int64 `min:"1" type:"long" required:"true"`
- // The ID of the configuration to delete. Each output configuration that is
- // added to the application, either when the application is created or later
- // using the AddApplicationOutput operation, has a unique ID. You need to provide
- // the ID to uniquely identify the output configuration that you want to delete
- // from the application configuration. You can use the DescribeApplication operation
- // to get the specific OutputId.
- OutputId *string `min:"1" type:"string" required:"true"`
- }
- // String returns the string representation
- func (s DeleteApplicationOutputInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s DeleteApplicationOutputInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *DeleteApplicationOutputInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "DeleteApplicationOutputInput"}
- if s.ApplicationName == nil {
- invalidParams.Add(request.NewErrParamRequired("ApplicationName"))
- }
- if s.ApplicationName != nil && len(*s.ApplicationName) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("ApplicationName", 1))
- }
- if s.CurrentApplicationVersionId == nil {
- invalidParams.Add(request.NewErrParamRequired("CurrentApplicationVersionId"))
- }
- if s.CurrentApplicationVersionId != nil && *s.CurrentApplicationVersionId < 1 {
- invalidParams.Add(request.NewErrParamMinValue("CurrentApplicationVersionId", 1))
- }
- if s.OutputId == nil {
- invalidParams.Add(request.NewErrParamRequired("OutputId"))
- }
- if s.OutputId != nil && len(*s.OutputId) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("OutputId", 1))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- type DeleteApplicationOutputOutput struct {
- _ struct{} `type:"structure"`
- }
- // String returns the string representation
- func (s DeleteApplicationOutputOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s DeleteApplicationOutputOutput) GoString() string {
- return s.String()
- }
- type DeleteApplicationReferenceDataSourceInput struct {
- _ struct{} `type:"structure"`
- // Name of an existing application.
- ApplicationName *string `min:"1" type:"string" required:"true"`
- // Version of the application. You can use the DescribeApplication operation
- // to get the current application version. If the version specified is not the
- // current version, the ConcurrentModificationException is returned.
- CurrentApplicationVersionId *int64 `min:"1" type:"long" required:"true"`
- // ID of the reference data source. When you add a reference data source to
- // your application using the AddApplicationReferenceDataSource, Amazon Kinesis
- // Analytics assigns an ID. You can use the DescribeApplication operation to
- // get the reference ID.
- ReferenceId *string `min:"1" type:"string" required:"true"`
- }
- // String returns the string representation
- func (s DeleteApplicationReferenceDataSourceInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s DeleteApplicationReferenceDataSourceInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *DeleteApplicationReferenceDataSourceInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "DeleteApplicationReferenceDataSourceInput"}
- if s.ApplicationName == nil {
- invalidParams.Add(request.NewErrParamRequired("ApplicationName"))
- }
- if s.ApplicationName != nil && len(*s.ApplicationName) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("ApplicationName", 1))
- }
- if s.CurrentApplicationVersionId == nil {
- invalidParams.Add(request.NewErrParamRequired("CurrentApplicationVersionId"))
- }
- if s.CurrentApplicationVersionId != nil && *s.CurrentApplicationVersionId < 1 {
- invalidParams.Add(request.NewErrParamMinValue("CurrentApplicationVersionId", 1))
- }
- if s.ReferenceId == nil {
- invalidParams.Add(request.NewErrParamRequired("ReferenceId"))
- }
- if s.ReferenceId != nil && len(*s.ReferenceId) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("ReferenceId", 1))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- type DeleteApplicationReferenceDataSourceOutput struct {
- _ struct{} `type:"structure"`
- }
- // String returns the string representation
- func (s DeleteApplicationReferenceDataSourceOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s DeleteApplicationReferenceDataSourceOutput) GoString() string {
- return s.String()
- }
- type DescribeApplicationInput struct {
- _ struct{} `type:"structure"`
- // Name of the application.
- ApplicationName *string `min:"1" type:"string" required:"true"`
- }
- // String returns the string representation
- func (s DescribeApplicationInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s DescribeApplicationInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *DescribeApplicationInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "DescribeApplicationInput"}
- if s.ApplicationName == nil {
- invalidParams.Add(request.NewErrParamRequired("ApplicationName"))
- }
- if s.ApplicationName != nil && len(*s.ApplicationName) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("ApplicationName", 1))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- type DescribeApplicationOutput struct {
- _ struct{} `type:"structure"`
- // Provides a description of the application, such as the application Amazon
- // Resource Name (ARN), status, latest version, and input and output configuration
- // details.
- ApplicationDetail *ApplicationDetail `type:"structure" required:"true"`
- }
- // String returns the string representation
- func (s DescribeApplicationOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s DescribeApplicationOutput) GoString() string {
- return s.String()
- }
- // Describes the data format when records are written to the destination. For
- // more information, see Configuring Application Output (http://docs.aws.amazon.com/kinesisanalytics/latest/dev/how-it-works-output.html).
- type DestinationSchema struct {
- _ struct{} `type:"structure"`
- // Specifies the format of the records on the output stream.
- RecordFormatType *string `type:"string" enum:"RecordFormatType"`
- }
- // String returns the string representation
- func (s DestinationSchema) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s DestinationSchema) GoString() string {
- return s.String()
- }
- type DiscoverInputSchemaInput struct {
- _ struct{} `type:"structure"`
- // Point at which you want Amazon Kinesis Analytics to start reading records
- // from the specified streaming source discovery purposes.
- InputStartingPositionConfiguration *InputStartingPositionConfiguration `type:"structure" required:"true"`
- // Amazon Resource Name (ARN) of the streaming source.
- ResourceARN *string `min:"1" type:"string" required:"true"`
- // ARN of the IAM role that Amazon Kinesis Analytics can assume to access the
- // stream on your behalf.
- RoleARN *string `min:"1" type:"string" required:"true"`
- }
- // String returns the string representation
- func (s DiscoverInputSchemaInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s DiscoverInputSchemaInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *DiscoverInputSchemaInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "DiscoverInputSchemaInput"}
- if s.InputStartingPositionConfiguration == nil {
- invalidParams.Add(request.NewErrParamRequired("InputStartingPositionConfiguration"))
- }
- if s.ResourceARN == nil {
- invalidParams.Add(request.NewErrParamRequired("ResourceARN"))
- }
- if s.ResourceARN != nil && len(*s.ResourceARN) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("ResourceARN", 1))
- }
- if s.RoleARN == nil {
- invalidParams.Add(request.NewErrParamRequired("RoleARN"))
- }
- if s.RoleARN != nil && len(*s.RoleARN) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("RoleARN", 1))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- type DiscoverInputSchemaOutput struct {
- _ struct{} `type:"structure"`
- // Schema inferred from the streaming source. It identifies the format of the
- // data in the streaming source and how each data element maps to corresponding
- // columns in the in-application stream that you can create.
- InputSchema *SourceSchema `type:"structure"`
- // An array of elements, where each element corresponds to a row in a stream
- // record (a stream record can have more than one row).
- ParsedInputRecords [][]*string `type:"list"`
- // Raw stream data that was sampled to infer the schema.
- RawInputRecords []*string `type:"list"`
- }
- // String returns the string representation
- func (s DiscoverInputSchemaOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s DiscoverInputSchemaOutput) GoString() string {
- return s.String()
- }
- // When you configure the application input, you specify the streaming source,
- // the in-application stream name that is created, and the mapping between the
- // two. For more information, see Configuring Application Input (http://docs.aws.amazon.com/kinesisanalytics/latest/dev/how-it-works-input.html).
- type Input struct {
- _ struct{} `type:"structure"`
- // Describes the number of in-application streams to create.
- //
- // Data from your source will be routed to these in-application input streams.
- //
- // (see Configuring Application Input (http://docs.aws.amazon.com/kinesisanalytics/latest/dev/how-it-works-input.html).
- InputParallelism *InputParallelism `type:"structure"`
- // Describes the format of the data in the streaming source, and how each data
- // element maps to corresponding columns in the in-application stream that is
- // being created.
- //
- // Also used to describe the format of the reference data source.
- InputSchema *SourceSchema `type:"structure"`
- // If the streaming source is an Amazon Kinesis Firehose delivery stream, identifies
- // the Firehose delivery stream's ARN and an IAM role that enables Amazon Kinesis
- // Analytics to access the stream on your behalf.
- KinesisFirehoseInput *KinesisFirehoseInput `type:"structure"`
- // If the streaming source is an Amazon Kinesis stream, identifies the stream's
- // Amazon Resource Name (ARN) and an IAM role that enables Amazon Kinesis Analytics
- // to access the stream on your behalf.
- KinesisStreamsInput *KinesisStreamsInput `type:"structure"`
- // Name prefix to use when creating in-application stream. Suppose you specify
- // a prefix "MyInApplicationStream". Kinesis Analytics will then create one
- // or more (as per the InputParallelism count you specified) in-application
- // streams with names "MyInApplicationStream_001", "MyInApplicationStream_002"
- // and so on.
- NamePrefix *string `min:"1" type:"string" required:"true"`
- }
- // String returns the string representation
- func (s Input) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s Input) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *Input) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "Input"}
- if s.NamePrefix == nil {
- invalidParams.Add(request.NewErrParamRequired("NamePrefix"))
- }
- if s.NamePrefix != nil && len(*s.NamePrefix) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("NamePrefix", 1))
- }
- if s.InputParallelism != nil {
- if err := s.InputParallelism.Validate(); err != nil {
- invalidParams.AddNested("InputParallelism", err.(request.ErrInvalidParams))
- }
- }
- if s.InputSchema != nil {
- if err := s.InputSchema.Validate(); err != nil {
- invalidParams.AddNested("InputSchema", err.(request.ErrInvalidParams))
- }
- }
- if s.KinesisFirehoseInput != nil {
- if err := s.KinesisFirehoseInput.Validate(); err != nil {
- invalidParams.AddNested("KinesisFirehoseInput", err.(request.ErrInvalidParams))
- }
- }
- if s.KinesisStreamsInput != nil {
- if err := s.KinesisStreamsInput.Validate(); err != nil {
- invalidParams.AddNested("KinesisStreamsInput", err.(request.ErrInvalidParams))
- }
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // When you start your application, you provide this configuration, which identifies
- // the input source and the point in the input source at which you want the
- // application to start processing records.
- type InputConfiguration struct {
- _ struct{} `type:"structure"`
- // Input source ID. You can get this ID by calling the DescribeApplication operation.
- Id *string `min:"1" type:"string" required:"true"`
- // Point at which you want the application to start processing records from
- // the streaming source.
- InputStartingPositionConfiguration *InputStartingPositionConfiguration `type:"structure" required:"true"`
- }
- // String returns the string representation
- func (s InputConfiguration) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s InputConfiguration) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *InputConfiguration) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "InputConfiguration"}
- if s.Id == nil {
- invalidParams.Add(request.NewErrParamRequired("Id"))
- }
- if s.Id != nil && len(*s.Id) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("Id", 1))
- }
- if s.InputStartingPositionConfiguration == nil {
- invalidParams.Add(request.NewErrParamRequired("InputStartingPositionConfiguration"))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // Describes the application input configuration. For more information, see
- // Configuring Application Input (http://docs.aws.amazon.com/kinesisanalytics/latest/dev/how-it-works-input.html).
- type InputDescription struct {
- _ struct{} `type:"structure"`
- // Returns the in-application stream names that are mapped to the stream source.
- InAppStreamNames []*string `type:"list"`
- // Input ID associated with the application input. This is the ID that Amazon
- // Kinesis Analytics assigns to each input configuration you add to your application.
- InputId *string `min:"1" type:"string"`
- // Describes the configured parallelism (number of in-application streams mapped
- // to the streaming source).
- InputParallelism *InputParallelism `type:"structure"`
- // Describes the format of the data in the streaming source, and how each data
- // element maps to corresponding columns created in the in-application stream.
- InputSchema *SourceSchema `type:"structure"`
- // Point at which the application is configured to read from the input stream.
- InputStartingPositionConfiguration *InputStartingPositionConfiguration `type:"structure"`
- // If an Amazon Kinesis Firehose delivery stream is configured as a streaming
- // source, provides the Firehose delivery stream's Amazon Resource Name (ARN)
- // and an IAM role that enables Amazon Kinesis Analytics to access the stream
- // on your behalf.
- KinesisFirehoseInputDescription *KinesisFirehoseInputDescription `type:"structure"`
- // If an Amazon Kinesis stream is configured as streaming source, provides Amazon
- // Kinesis stream's ARN and an IAM role that enables Amazon Kinesis Analytics
- // to access the stream on your behalf.
- KinesisStreamsInputDescription *KinesisStreamsInputDescription `type:"structure"`
- // In-application name prefix.
- NamePrefix *string `min:"1" type:"string"`
- }
- // String returns the string representation
- func (s InputDescription) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s InputDescription) GoString() string {
- return s.String()
- }
- // Describes the number of in-application streams to create for a given streaming
- // source. For information about parallellism, see Configuring Application Input
- // (http://docs.aws.amazon.com/kinesisanalytics/latest/dev/how-it-works-input.html).
- type InputParallelism struct {
- _ struct{} `type:"structure"`
- // Number of in-application streams to create. For more information, see Limits
- // (http://docs.aws.amazon.com/kinesisanalytics/latest/dev/limits.html).
- Count *int64 `min:"1" type:"integer"`
- }
- // String returns the string representation
- func (s InputParallelism) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s InputParallelism) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *InputParallelism) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "InputParallelism"}
- if s.Count != nil && *s.Count < 1 {
- invalidParams.Add(request.NewErrParamMinValue("Count", 1))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // Provides updates to the parallelism count.
- type InputParallelismUpdate struct {
- _ struct{} `type:"structure"`
- // Number of in-application streams to create for the specified streaming source.
- CountUpdate *int64 `min:"1" type:"integer"`
- }
- // String returns the string representation
- func (s InputParallelismUpdate) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s InputParallelismUpdate) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *InputParallelismUpdate) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "InputParallelismUpdate"}
- if s.CountUpdate != nil && *s.CountUpdate < 1 {
- invalidParams.Add(request.NewErrParamMinValue("CountUpdate", 1))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // Describes updates for the application's input schema.
- type InputSchemaUpdate struct {
- _ struct{} `type:"structure"`
- // A list of RecordColumn objects. Each object describes the mapping of the
- // streaming source element to the corresponding column in the in-application
- // stream.
- RecordColumnUpdates []*RecordColumn `min:"1" type:"list"`
- // Specifies the encoding of the records in the streaming source. For example,
- // UTF-8.
- RecordEncodingUpdate *string `type:"string"`
- // Specifies the format of the records on the streaming source.
- RecordFormatUpdate *RecordFormat `type:"structure"`
- }
- // String returns the string representation
- func (s InputSchemaUpdate) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s InputSchemaUpdate) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *InputSchemaUpdate) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "InputSchemaUpdate"}
- if s.RecordColumnUpdates != nil && len(s.RecordColumnUpdates) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("RecordColumnUpdates", 1))
- }
- if s.RecordColumnUpdates != nil {
- for i, v := range s.RecordColumnUpdates {
- if v == nil {
- continue
- }
- if err := v.Validate(); err != nil {
- invalidParams.AddNested(fmt.Sprintf("%s[%v]", "RecordColumnUpdates", i), err.(request.ErrInvalidParams))
- }
- }
- }
- if s.RecordFormatUpdate != nil {
- if err := s.RecordFormatUpdate.Validate(); err != nil {
- invalidParams.AddNested("RecordFormatUpdate", err.(request.ErrInvalidParams))
- }
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // Describes the point at which the application reads from the streaming source.
- type InputStartingPositionConfiguration struct {
- _ struct{} `type:"structure"`
- // The starting position on the stream.
- //
- // LATEST - Start reading just after the most recent record in the stream.
- //
- // TRIM_HORIZON - Start reading at the last untrimmed record in the stream,
- // which is the oldest record available in the stream. This option is not available
- // for an Amazon Kinesis Firehose delivery stream.
- //
- // LAST_STOPPED_POINT - Resume reading from where the application last stopped
- // reading.
- InputStartingPosition *string `type:"string" enum:"InputStartingPosition"`
- }
- // String returns the string representation
- func (s InputStartingPositionConfiguration) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s InputStartingPositionConfiguration) GoString() string {
- return s.String()
- }
- // Describes updates to a specific input configuration (identified by the InputId
- // of an application).
- type InputUpdate struct {
- _ struct{} `type:"structure"`
- // Input ID of the application input to be updated.
- InputId *string `min:"1" type:"string" required:"true"`
- // Describes the parallelism updates (the number in-application streams Kinesis
- // Analytics creates for the specific streaming source).
- InputParallelismUpdate *InputParallelismUpdate `type:"structure"`
- // Describes the data format on the streaming source, and how record elements
- // on the streaming source map to columns of the in-application stream that
- // is created.
- InputSchemaUpdate *InputSchemaUpdate `type:"structure"`
- // If an Amazon Kinesis Firehose delivery stream is the streaming source to
- // be updated, provides an updated stream Amazon Resource Name (ARN) and IAM
- // role ARN.
- KinesisFirehoseInputUpdate *KinesisFirehoseInputUpdate `type:"structure"`
- // If a Amazon Kinesis stream is the streaming source to be updated, provides
- // an updated stream ARN and IAM role ARN.
- KinesisStreamsInputUpdate *KinesisStreamsInputUpdate `type:"structure"`
- // Name prefix for in-application stream(s) that Kinesis Analytics creates for
- // the specific streaming source.
- NamePrefixUpdate *string `min:"1" type:"string"`
- }
- // String returns the string representation
- func (s InputUpdate) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s InputUpdate) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *InputUpdate) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "InputUpdate"}
- if s.InputId == nil {
- invalidParams.Add(request.NewErrParamRequired("InputId"))
- }
- if s.InputId != nil && len(*s.InputId) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("InputId", 1))
- }
- if s.NamePrefixUpdate != nil && len(*s.NamePrefixUpdate) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("NamePrefixUpdate", 1))
- }
- if s.InputParallelismUpdate != nil {
- if err := s.InputParallelismUpdate.Validate(); err != nil {
- invalidParams.AddNested("InputParallelismUpdate", err.(request.ErrInvalidParams))
- }
- }
- if s.InputSchemaUpdate != nil {
- if err := s.InputSchemaUpdate.Validate(); err != nil {
- invalidParams.AddNested("InputSchemaUpdate", err.(request.ErrInvalidParams))
- }
- }
- if s.KinesisFirehoseInputUpdate != nil {
- if err := s.KinesisFirehoseInputUpdate.Validate(); err != nil {
- invalidParams.AddNested("KinesisFirehoseInputUpdate", err.(request.ErrInvalidParams))
- }
- }
- if s.KinesisStreamsInputUpdate != nil {
- if err := s.KinesisStreamsInputUpdate.Validate(); err != nil {
- invalidParams.AddNested("KinesisStreamsInputUpdate", err.(request.ErrInvalidParams))
- }
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // Provides additional mapping information when JSON is the record format on
- // the streaming source.
- type JSONMappingParameters struct {
- _ struct{} `type:"structure"`
- // Path to the top-level parent that contains the records.
- //
- // For example, consider the following JSON record:
- //
- // In the RecordRowPath, "$" refers to the root and path "$.vehicle.Model"
- // refers to the specific "Model" key in the JSON.
- RecordRowPath *string `type:"string" required:"true"`
- }
- // String returns the string representation
- func (s JSONMappingParameters) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s JSONMappingParameters) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *JSONMappingParameters) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "JSONMappingParameters"}
- if s.RecordRowPath == nil {
- invalidParams.Add(request.NewErrParamRequired("RecordRowPath"))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // Identifies an Amazon Kinesis Firehose delivery stream as the streaming source.
- // You provide the Firehose delivery stream's Amazon Resource Name (ARN) and
- // an IAM role ARN that enables Amazon Kinesis Analytics to access the stream
- // on your behalf.
- type KinesisFirehoseInput struct {
- _ struct{} `type:"structure"`
- // ARN of the input Firehose delivery stream.
- ResourceARN *string `min:"1" type:"string" required:"true"`
- // ARN of the IAM role that Amazon Kinesis Analytics can assume to access the
- // stream on your behalf. You need to make sure the role has necessary permissions
- // to access the stream.
- RoleARN *string `min:"1" type:"string" required:"true"`
- }
- // String returns the string representation
- func (s KinesisFirehoseInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s KinesisFirehoseInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *KinesisFirehoseInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "KinesisFirehoseInput"}
- if s.ResourceARN == nil {
- invalidParams.Add(request.NewErrParamRequired("ResourceARN"))
- }
- if s.ResourceARN != nil && len(*s.ResourceARN) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("ResourceARN", 1))
- }
- if s.RoleARN == nil {
- invalidParams.Add(request.NewErrParamRequired("RoleARN"))
- }
- if s.RoleARN != nil && len(*s.RoleARN) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("RoleARN", 1))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // Describes the Amazon Kinesis Firehose delivery stream that is configured
- // as the streaming source in the application input configuration.
- type KinesisFirehoseInputDescription struct {
- _ struct{} `type:"structure"`
- // Amazon Resource Name (ARN) of the Amazon Kinesis Firehose delivery stream.
- ResourceARN *string `min:"1" type:"string"`
- // ARN of the IAM role that Amazon Kinesis Analytics assumes to access the stream.
- RoleARN *string `min:"1" type:"string"`
- }
- // String returns the string representation
- func (s KinesisFirehoseInputDescription) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s KinesisFirehoseInputDescription) GoString() string {
- return s.String()
- }
- // When updating application input configuration, provides information about
- // an Amazon Kinesis Firehose delivery stream as the streaming source.
- type KinesisFirehoseInputUpdate struct {
- _ struct{} `type:"structure"`
- // ARN of the input Amazon Kinesis Firehose delivery stream to read.
- ResourceARNUpdate *string `min:"1" type:"string"`
- // Amazon Resource Name (ARN) of the IAM role that Amazon Kinesis Analytics
- // can assume to access the stream on your behalf. You need to grant necessary
- // permissions to this role.
- RoleARNUpdate *string `min:"1" type:"string"`
- }
- // String returns the string representation
- func (s KinesisFirehoseInputUpdate) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s KinesisFirehoseInputUpdate) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *KinesisFirehoseInputUpdate) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "KinesisFirehoseInputUpdate"}
- if s.ResourceARNUpdate != nil && len(*s.ResourceARNUpdate) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("ResourceARNUpdate", 1))
- }
- if s.RoleARNUpdate != nil && len(*s.RoleARNUpdate) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("RoleARNUpdate", 1))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // When configuring application output, identifies an Amazon Kinesis Firehose
- // delivery stream as the destination. You provide the stream Amazon Resource
- // Name (ARN) and an IAM role that enables Amazon Kinesis Analytics to write
- // to the stream on your behalf.
- type KinesisFirehoseOutput struct {
- _ struct{} `type:"structure"`
- // ARN of the destination Amazon Kinesis Firehose delivery stream to write to.
- ResourceARN *string `min:"1" type:"string" required:"true"`
- // ARN of the IAM role that Amazon Kinesis Analytics can assume to write to
- // the destination stream on your behalf. You need to grant the necessary permissions
- // to this role.
- RoleARN *string `min:"1" type:"string" required:"true"`
- }
- // String returns the string representation
- func (s KinesisFirehoseOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s KinesisFirehoseOutput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *KinesisFirehoseOutput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "KinesisFirehoseOutput"}
- if s.ResourceARN == nil {
- invalidParams.Add(request.NewErrParamRequired("ResourceARN"))
- }
- if s.ResourceARN != nil && len(*s.ResourceARN) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("ResourceARN", 1))
- }
- if s.RoleARN == nil {
- invalidParams.Add(request.NewErrParamRequired("RoleARN"))
- }
- if s.RoleARN != nil && len(*s.RoleARN) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("RoleARN", 1))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // For an application output, describes the Amazon Kinesis Firehose delivery
- // stream configured as its destination.
- type KinesisFirehoseOutputDescription struct {
- _ struct{} `type:"structure"`
- // Amazon Resource Name (ARN) of the Amazon Kinesis Firehose delivery stream.
- ResourceARN *string `min:"1" type:"string"`
- // ARN of the IAM role that Amazon Kinesis Analytics can assume to access the
- // stream.
- RoleARN *string `min:"1" type:"string"`
- }
- // String returns the string representation
- func (s KinesisFirehoseOutputDescription) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s KinesisFirehoseOutputDescription) GoString() string {
- return s.String()
- }
- // When updating an output configuration using the UpdateApplication operation,
- // provides information about an Amazon Kinesis Firehose delivery stream configured
- // as the destination.
- type KinesisFirehoseOutputUpdate struct {
- _ struct{} `type:"structure"`
- // Amazon Resource Name (ARN) of the Amazon Kinesis Firehose delivery stream
- // to write to.
- ResourceARNUpdate *string `min:"1" type:"string"`
- // ARN of the IAM role that Amazon Kinesis Analytics can assume to access the
- // stream on your behalf. You need to grant necessary permissions to this role.
- RoleARNUpdate *string `min:"1" type:"string"`
- }
- // String returns the string representation
- func (s KinesisFirehoseOutputUpdate) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s KinesisFirehoseOutputUpdate) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *KinesisFirehoseOutputUpdate) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "KinesisFirehoseOutputUpdate"}
- if s.ResourceARNUpdate != nil && len(*s.ResourceARNUpdate) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("ResourceARNUpdate", 1))
- }
- if s.RoleARNUpdate != nil && len(*s.RoleARNUpdate) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("RoleARNUpdate", 1))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // Identifies an Amazon Kinesis stream as the streaming source. You provide
- // the stream's ARN and an IAM role ARN that enables Amazon Kinesis Analytics
- // to access the stream on your behalf.
- type KinesisStreamsInput struct {
- _ struct{} `type:"structure"`
- // ARN of the input Amazon Kinesis stream to read.
- ResourceARN *string `min:"1" type:"string" required:"true"`
- // ARN of the IAM role that Amazon Kinesis Analytics can assume to access the
- // stream on your behalf. You need to grant the necessary permissions to this
- // role.
- RoleARN *string `min:"1" type:"string" required:"true"`
- }
- // String returns the string representation
- func (s KinesisStreamsInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s KinesisStreamsInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *KinesisStreamsInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "KinesisStreamsInput"}
- if s.ResourceARN == nil {
- invalidParams.Add(request.NewErrParamRequired("ResourceARN"))
- }
- if s.ResourceARN != nil && len(*s.ResourceARN) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("ResourceARN", 1))
- }
- if s.RoleARN == nil {
- invalidParams.Add(request.NewErrParamRequired("RoleARN"))
- }
- if s.RoleARN != nil && len(*s.RoleARN) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("RoleARN", 1))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // Describes the Amazon Kinesis stream that is configured as the streaming source
- // in the application input configuration.
- type KinesisStreamsInputDescription struct {
- _ struct{} `type:"structure"`
- // Amazon Resource Name (ARN) of the Amazon Kinesis stream.
- ResourceARN *string `min:"1" type:"string"`
- // ARN of the IAM role that Amazon Kinesis Analytics can assume to access the
- // stream.
- RoleARN *string `min:"1" type:"string"`
- }
- // String returns the string representation
- func (s KinesisStreamsInputDescription) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s KinesisStreamsInputDescription) GoString() string {
- return s.String()
- }
- // When updating application input configuration, provides information about
- // an Amazon Kinesis stream as the streaming source.
- type KinesisStreamsInputUpdate struct {
- _ struct{} `type:"structure"`
- // Amazon Resource Name (ARN) of the input Amazon Kinesis stream to read.
- ResourceARNUpdate *string `min:"1" type:"string"`
- // ARN of the IAM role that Amazon Kinesis Analytics can assume to access the
- // stream on your behalf. You need to grant the necessary permissions to this
- // role.
- RoleARNUpdate *string `min:"1" type:"string"`
- }
- // String returns the string representation
- func (s KinesisStreamsInputUpdate) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s KinesisStreamsInputUpdate) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *KinesisStreamsInputUpdate) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "KinesisStreamsInputUpdate"}
- if s.ResourceARNUpdate != nil && len(*s.ResourceARNUpdate) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("ResourceARNUpdate", 1))
- }
- if s.RoleARNUpdate != nil && len(*s.RoleARNUpdate) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("RoleARNUpdate", 1))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // When configuring application output, identifies a Amazon Kinesis stream as
- // the destination. You provide the stream Amazon Resource Name (ARN) and also
- // an IAM role ARN that Amazon Kinesis Analytics can use to write to the stream
- // on your behalf.
- type KinesisStreamsOutput struct {
- _ struct{} `type:"structure"`
- // ARN of the destination Amazon Kinesis stream to write to.
- ResourceARN *string `min:"1" type:"string" required:"true"`
- // ARN of the IAM role that Amazon Kinesis Analytics can assume to write to
- // the destination stream on your behalf. You need to grant the necessary permissions
- // to this role.
- RoleARN *string `min:"1" type:"string" required:"true"`
- }
- // String returns the string representation
- func (s KinesisStreamsOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s KinesisStreamsOutput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *KinesisStreamsOutput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "KinesisStreamsOutput"}
- if s.ResourceARN == nil {
- invalidParams.Add(request.NewErrParamRequired("ResourceARN"))
- }
- if s.ResourceARN != nil && len(*s.ResourceARN) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("ResourceARN", 1))
- }
- if s.RoleARN == nil {
- invalidParams.Add(request.NewErrParamRequired("RoleARN"))
- }
- if s.RoleARN != nil && len(*s.RoleARN) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("RoleARN", 1))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // For an application output, describes the Amazon Kinesis stream configured
- // as its destination.
- type KinesisStreamsOutputDescription struct {
- _ struct{} `type:"structure"`
- // Amazon Resource Name (ARN) of the Amazon Kinesis stream.
- ResourceARN *string `min:"1" type:"string"`
- // ARN of the IAM role that Amazon Kinesis Analytics can assume to access the
- // stream.
- RoleARN *string `min:"1" type:"string"`
- }
- // String returns the string representation
- func (s KinesisStreamsOutputDescription) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s KinesisStreamsOutputDescription) GoString() string {
- return s.String()
- }
- // When updating an output configuration using the UpdateApplication operation,
- // provides information about an Amazon Kinesis stream configured as the destination.
- type KinesisStreamsOutputUpdate struct {
- _ struct{} `type:"structure"`
- // Amazon Resource Name (ARN) of the Amazon Kinesis stream where you want to
- // write the output.
- ResourceARNUpdate *string `min:"1" type:"string"`
- // ARN of the IAM role that Amazon Kinesis Analytics can assume to access the
- // stream on your behalf. You need to grant the necessary permissions to this
- // role.
- RoleARNUpdate *string `min:"1" type:"string"`
- }
- // String returns the string representation
- func (s KinesisStreamsOutputUpdate) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s KinesisStreamsOutputUpdate) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *KinesisStreamsOutputUpdate) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "KinesisStreamsOutputUpdate"}
- if s.ResourceARNUpdate != nil && len(*s.ResourceARNUpdate) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("ResourceARNUpdate", 1))
- }
- if s.RoleARNUpdate != nil && len(*s.RoleARNUpdate) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("RoleARNUpdate", 1))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- type ListApplicationsInput struct {
- _ struct{} `type:"structure"`
- // Name of the application to start the list with. When using pagination to
- // retrieve the list, you don't need to specify this parameter in the first
- // request. However, in subsequent requests, you add the last application name
- // from the previous response to get the next page of applications.
- ExclusiveStartApplicationName *string `min:"1" type:"string"`
- // Maximum number of applications to list.
- Limit *int64 `min:"1" type:"integer"`
- }
- // String returns the string representation
- func (s ListApplicationsInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s ListApplicationsInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *ListApplicationsInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "ListApplicationsInput"}
- if s.ExclusiveStartApplicationName != nil && len(*s.ExclusiveStartApplicationName) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("ExclusiveStartApplicationName", 1))
- }
- if s.Limit != nil && *s.Limit < 1 {
- invalidParams.Add(request.NewErrParamMinValue("Limit", 1))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- type ListApplicationsOutput struct {
- _ struct{} `type:"structure"`
- // List of ApplicationSummary objects.
- ApplicationSummaries []*ApplicationSummary `type:"list" required:"true"`
- // Returns true if there are more applications to retrieve.
- HasMoreApplications *bool `type:"boolean" required:"true"`
- }
- // String returns the string representation
- func (s ListApplicationsOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s ListApplicationsOutput) GoString() string {
- return s.String()
- }
- // When configuring application input at the time of creating or updating an
- // application, provides additional mapping information specific to the record
- // format (such as JSON, CSV, or record fields delimited by some delimiter)
- // on the streaming source.
- type MappingParameters struct {
- _ struct{} `type:"structure"`
- // Provides additional mapping information when the record format uses delimiters
- // (for example, CSV).
- CSVMappingParameters *CSVMappingParameters `type:"structure"`
- // Provides additional mapping information when JSON is the record format on
- // the streaming source.
- JSONMappingParameters *JSONMappingParameters `type:"structure"`
- }
- // String returns the string representation
- func (s MappingParameters) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s MappingParameters) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *MappingParameters) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "MappingParameters"}
- if s.CSVMappingParameters != nil {
- if err := s.CSVMappingParameters.Validate(); err != nil {
- invalidParams.AddNested("CSVMappingParameters", err.(request.ErrInvalidParams))
- }
- }
- if s.JSONMappingParameters != nil {
- if err := s.JSONMappingParameters.Validate(); err != nil {
- invalidParams.AddNested("JSONMappingParameters", err.(request.ErrInvalidParams))
- }
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // Describes application output configuration in which you identify an in-application
- // stream and a destination where you want the in-application stream data to
- // be written. The destination can be an Amazon Kinesis stream or an Amazon
- // Kinesis Firehose delivery stream.
- //
- // You can configure your application to write output to up to five destinations.
- type Output struct {
- _ struct{} `type:"structure"`
- // Describes the data format when records are written to the destination. For
- // more information, see Configuring Application Output (http://docs.aws.amazon.com/kinesisanalytics/latest/dev/how-it-works-output.html).
- DestinationSchema *DestinationSchema `type:"structure" required:"true"`
- // Identifies an Amazon Kinesis Firehose delivery stream as the destination.
- KinesisFirehoseOutput *KinesisFirehoseOutput `type:"structure"`
- // Identifies an Amazon Kinesis stream as the destination.
- KinesisStreamsOutput *KinesisStreamsOutput `type:"structure"`
- // Name of the in-application stream.
- Name *string `min:"1" type:"string" required:"true"`
- }
- // String returns the string representation
- func (s Output) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s Output) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *Output) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "Output"}
- if s.DestinationSchema == nil {
- invalidParams.Add(request.NewErrParamRequired("DestinationSchema"))
- }
- if s.Name == nil {
- invalidParams.Add(request.NewErrParamRequired("Name"))
- }
- if s.Name != nil && len(*s.Name) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("Name", 1))
- }
- if s.KinesisFirehoseOutput != nil {
- if err := s.KinesisFirehoseOutput.Validate(); err != nil {
- invalidParams.AddNested("KinesisFirehoseOutput", err.(request.ErrInvalidParams))
- }
- }
- if s.KinesisStreamsOutput != nil {
- if err := s.KinesisStreamsOutput.Validate(); err != nil {
- invalidParams.AddNested("KinesisStreamsOutput", err.(request.ErrInvalidParams))
- }
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // Describes the application output configuration, which includes the in-application
- // stream name and the destination where the stream data is written. The destination
- // can be an Amazon Kinesis stream or an Amazon Kinesis Firehose delivery stream.
- type OutputDescription struct {
- _ struct{} `type:"structure"`
- // Data format used for writing data to the destination.
- DestinationSchema *DestinationSchema `type:"structure"`
- // Describes the Amazon Kinesis Firehose delivery stream configured as the destination
- // where output is written.
- KinesisFirehoseOutputDescription *KinesisFirehoseOutputDescription `type:"structure"`
- // Describes Amazon Kinesis stream configured as the destination where output
- // is written.
- KinesisStreamsOutputDescription *KinesisStreamsOutputDescription `type:"structure"`
- // Name of the in-application stream configured as output.
- Name *string `min:"1" type:"string"`
- // A unique identifier for the output configuration.
- OutputId *string `min:"1" type:"string"`
- }
- // String returns the string representation
- func (s OutputDescription) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s OutputDescription) GoString() string {
- return s.String()
- }
- // Describes updates to the output configuration identified by the OutputId.
- type OutputUpdate struct {
- _ struct{} `type:"structure"`
- // Describes the data format when records are written to the destination. For
- // more information, see Configuring Application Output (http://docs.aws.amazon.com/kinesisanalytics/latest/dev/how-it-works-output.html).
- DestinationSchemaUpdate *DestinationSchema `type:"structure"`
- // Describes a Amazon Kinesis Firehose delivery stream as the destination for
- // the output.
- KinesisFirehoseOutputUpdate *KinesisFirehoseOutputUpdate `type:"structure"`
- // Describes an Amazon Kinesis stream as the destination for the output.
- KinesisStreamsOutputUpdate *KinesisStreamsOutputUpdate `type:"structure"`
- // If you want to specify a different in-application stream for this output
- // configuration, use this field to specify the new in-application stream name.
- NameUpdate *string `min:"1" type:"string"`
- // Identifies the specific output configuration that you want to update.
- OutputId *string `min:"1" type:"string" required:"true"`
- }
- // String returns the string representation
- func (s OutputUpdate) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s OutputUpdate) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *OutputUpdate) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "OutputUpdate"}
- if s.NameUpdate != nil && len(*s.NameUpdate) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("NameUpdate", 1))
- }
- if s.OutputId == nil {
- invalidParams.Add(request.NewErrParamRequired("OutputId"))
- }
- if s.OutputId != nil && len(*s.OutputId) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("OutputId", 1))
- }
- if s.KinesisFirehoseOutputUpdate != nil {
- if err := s.KinesisFirehoseOutputUpdate.Validate(); err != nil {
- invalidParams.AddNested("KinesisFirehoseOutputUpdate", err.(request.ErrInvalidParams))
- }
- }
- if s.KinesisStreamsOutputUpdate != nil {
- if err := s.KinesisStreamsOutputUpdate.Validate(); err != nil {
- invalidParams.AddNested("KinesisStreamsOutputUpdate", err.(request.ErrInvalidParams))
- }
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // Describes the mapping of each data element in the streaming source to the
- // corresponding column in the in-application stream.
- //
- // Also used to describe the format of the reference data source.
- type RecordColumn struct {
- _ struct{} `type:"structure"`
- // Reference to the data element in the streaming input of the reference data
- // source.
- Mapping *string `type:"string"`
- // Name of the column created in the in-application input stream or reference
- // table.
- Name *string `type:"string" required:"true"`
- // Type of column created in the in-application input stream or reference table.
- SqlType *string `type:"string" required:"true"`
- }
- // String returns the string representation
- func (s RecordColumn) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s RecordColumn) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *RecordColumn) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "RecordColumn"}
- if s.Name == nil {
- invalidParams.Add(request.NewErrParamRequired("Name"))
- }
- if s.SqlType == nil {
- invalidParams.Add(request.NewErrParamRequired("SqlType"))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // Describes the record format and relevant mapping information that should
- // be applied to schematize the records on the stream.
- type RecordFormat struct {
- _ struct{} `type:"structure"`
- // When configuring application input at the time of creating or updating an
- // application, provides additional mapping information specific to the record
- // format (such as JSON, CSV, or record fields delimited by some delimiter)
- // on the streaming source.
- MappingParameters *MappingParameters `type:"structure"`
- // The type of record format.
- RecordFormatType *string `type:"string" required:"true" enum:"RecordFormatType"`
- }
- // String returns the string representation
- func (s RecordFormat) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s RecordFormat) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *RecordFormat) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "RecordFormat"}
- if s.RecordFormatType == nil {
- invalidParams.Add(request.NewErrParamRequired("RecordFormatType"))
- }
- if s.MappingParameters != nil {
- if err := s.MappingParameters.Validate(); err != nil {
- invalidParams.AddNested("MappingParameters", err.(request.ErrInvalidParams))
- }
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // Describes the reference data source by providing the source information (S3
- // bucket name and object key name), the resulting in-application table name
- // that is created, and the necessary schema to map the data elements in the
- // Amazon S3 object to the in-application table.
- type ReferenceDataSource struct {
- _ struct{} `type:"structure"`
- // Describes the format of the data in the streaming source, and how each data
- // element maps to corresponding columns created in the in-application stream.
- ReferenceSchema *SourceSchema `type:"structure" required:"true"`
- // Identifies the S3 bucket and object that contains the reference data. Also
- // identifies the IAM role Amazon Kinesis Analytics can assume to read this
- // object on your behalf.
- //
- // An Amazon Kinesis Analytics application loads reference data only once.
- // If the data changes, you call the UpdateApplication operation to trigger
- // reloading of data into your application.
- S3ReferenceDataSource *S3ReferenceDataSource `type:"structure"`
- // Name of the in-application table to create.
- TableName *string `min:"1" type:"string" required:"true"`
- }
- // String returns the string representation
- func (s ReferenceDataSource) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s ReferenceDataSource) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *ReferenceDataSource) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "ReferenceDataSource"}
- if s.ReferenceSchema == nil {
- invalidParams.Add(request.NewErrParamRequired("ReferenceSchema"))
- }
- if s.TableName == nil {
- invalidParams.Add(request.NewErrParamRequired("TableName"))
- }
- if s.TableName != nil && len(*s.TableName) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("TableName", 1))
- }
- if s.ReferenceSchema != nil {
- if err := s.ReferenceSchema.Validate(); err != nil {
- invalidParams.AddNested("ReferenceSchema", err.(request.ErrInvalidParams))
- }
- }
- if s.S3ReferenceDataSource != nil {
- if err := s.S3ReferenceDataSource.Validate(); err != nil {
- invalidParams.AddNested("S3ReferenceDataSource", err.(request.ErrInvalidParams))
- }
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // Describes the reference data source configured for an application.
- type ReferenceDataSourceDescription struct {
- _ struct{} `type:"structure"`
- // ID of the reference data source. This is the ID that Amazon Kinesis Analytics
- // assigns when you add the reference data source to your application using
- // the AddApplicationReferenceDataSource operation.
- ReferenceId *string `min:"1" type:"string" required:"true"`
- // Describes the format of the data in the streaming source, and how each data
- // element maps to corresponding columns created in the in-application stream.
- ReferenceSchema *SourceSchema `type:"structure"`
- // Provides the S3 bucket name, the object key name that contains the reference
- // data. It also provides the Amazon Resource Name (ARN) of the IAM role that
- // Amazon Kinesis Analytics can assume to read the Amazon S3 object and populate
- // the in-application reference table.
- S3ReferenceDataSourceDescription *S3ReferenceDataSourceDescription `type:"structure" required:"true"`
- // The in-application table name created by the specific reference data source
- // configuration.
- TableName *string `min:"1" type:"string" required:"true"`
- }
- // String returns the string representation
- func (s ReferenceDataSourceDescription) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s ReferenceDataSourceDescription) GoString() string {
- return s.String()
- }
- // When you update a reference data source configuration for an application,
- // this object provides all the updated values (such as the source bucket name
- // and object key name), the in-application table name that is created, and
- // updated mapping information that maps the data in the Amazon S3 object to
- // the in-application reference table that is created.
- type ReferenceDataSourceUpdate struct {
- _ struct{} `type:"structure"`
- // ID of the reference data source being updated. You can use the DescribeApplication
- // operation to get this value.
- ReferenceId *string `min:"1" type:"string" required:"true"`
- // Describes the format of the data in the streaming source, and how each data
- // element maps to corresponding columns created in the in-application stream.
- ReferenceSchemaUpdate *SourceSchema `type:"structure"`
- // Describes the S3 bucket name, object key name, and IAM role that Amazon Kinesis
- // Analytics can assume to read the Amazon S3 object on your behalf and populate
- // the in-application reference table.
- S3ReferenceDataSourceUpdate *S3ReferenceDataSourceUpdate `type:"structure"`
- // In-application table name that is created by this update.
- TableNameUpdate *string `min:"1" type:"string"`
- }
- // String returns the string representation
- func (s ReferenceDataSourceUpdate) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s ReferenceDataSourceUpdate) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *ReferenceDataSourceUpdate) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "ReferenceDataSourceUpdate"}
- if s.ReferenceId == nil {
- invalidParams.Add(request.NewErrParamRequired("ReferenceId"))
- }
- if s.ReferenceId != nil && len(*s.ReferenceId) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("ReferenceId", 1))
- }
- if s.TableNameUpdate != nil && len(*s.TableNameUpdate) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("TableNameUpdate", 1))
- }
- if s.ReferenceSchemaUpdate != nil {
- if err := s.ReferenceSchemaUpdate.Validate(); err != nil {
- invalidParams.AddNested("ReferenceSchemaUpdate", err.(request.ErrInvalidParams))
- }
- }
- if s.S3ReferenceDataSourceUpdate != nil {
- if err := s.S3ReferenceDataSourceUpdate.Validate(); err != nil {
- invalidParams.AddNested("S3ReferenceDataSourceUpdate", err.(request.ErrInvalidParams))
- }
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // Identifies the S3 bucket and object that contains the reference data. Also
- // identifies the IAM role Amazon Kinesis Analytics can assume to read this
- // object on your behalf.
- //
- // An Amazon Kinesis Analytics application loads reference data only once.
- // If the data changes, you call the UpdateApplication operation to trigger
- // reloading of data into your application.
- type S3ReferenceDataSource struct {
- _ struct{} `type:"structure"`
- // Amazon Resource Name (ARN) of the S3 bucket.
- BucketARN *string `min:"1" type:"string" required:"true"`
- // Object key name containing reference data.
- FileKey *string `type:"string" required:"true"`
- // ARN of the IAM role that the service can assume to read data on your behalf.
- // This role must have permission for the s3:GetObject action on the object
- // and trust policy that allows Amazon Kinesis Analytics service principal to
- // assume this role.
- ReferenceRoleARN *string `min:"1" type:"string" required:"true"`
- }
- // String returns the string representation
- func (s S3ReferenceDataSource) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s S3ReferenceDataSource) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *S3ReferenceDataSource) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "S3ReferenceDataSource"}
- if s.BucketARN == nil {
- invalidParams.Add(request.NewErrParamRequired("BucketARN"))
- }
- if s.BucketARN != nil && len(*s.BucketARN) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("BucketARN", 1))
- }
- if s.FileKey == nil {
- invalidParams.Add(request.NewErrParamRequired("FileKey"))
- }
- if s.ReferenceRoleARN == nil {
- invalidParams.Add(request.NewErrParamRequired("ReferenceRoleARN"))
- }
- if s.ReferenceRoleARN != nil && len(*s.ReferenceRoleARN) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("ReferenceRoleARN", 1))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // Provides the bucket name and object key name that stores the reference data.
- type S3ReferenceDataSourceDescription struct {
- _ struct{} `type:"structure"`
- // Amazon Resource Name (ARN) of the S3 bucket.
- BucketARN *string `min:"1" type:"string" required:"true"`
- // Amazon S3 object key name.
- FileKey *string `type:"string" required:"true"`
- // ARN of the IAM role that Amazon Kinesis Analytics can assume to read the
- // Amazon S3 object on your behalf to populate the in-application reference
- // table.
- ReferenceRoleARN *string `min:"1" type:"string" required:"true"`
- }
- // String returns the string representation
- func (s S3ReferenceDataSourceDescription) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s S3ReferenceDataSourceDescription) GoString() string {
- return s.String()
- }
- // Describes the S3 bucket name, object key name, and IAM role that Amazon Kinesis
- // Analytics can assume to read the Amazon S3 object on your behalf and populate
- // the in-application reference table.
- type S3ReferenceDataSourceUpdate struct {
- _ struct{} `type:"structure"`
- // Amazon Resource Name (ARN) of the S3 bucket.
- BucketARNUpdate *string `min:"1" type:"string"`
- // Object key name.
- FileKeyUpdate *string `type:"string"`
- // ARN of the IAM role that Amazon Kinesis Analytics can assume to read the
- // Amazon S3 object and populate the in-application.
- ReferenceRoleARNUpdate *string `min:"1" type:"string"`
- }
- // String returns the string representation
- func (s S3ReferenceDataSourceUpdate) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s S3ReferenceDataSourceUpdate) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *S3ReferenceDataSourceUpdate) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "S3ReferenceDataSourceUpdate"}
- if s.BucketARNUpdate != nil && len(*s.BucketARNUpdate) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("BucketARNUpdate", 1))
- }
- if s.ReferenceRoleARNUpdate != nil && len(*s.ReferenceRoleARNUpdate) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("ReferenceRoleARNUpdate", 1))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // Describes the format of the data in the streaming source, and how each data
- // element maps to corresponding columns created in the in-application stream.
- type SourceSchema struct {
- _ struct{} `type:"structure"`
- // A list of RecordColumn objects.
- RecordColumns []*RecordColumn `min:"1" type:"list" required:"true"`
- // Specifies the encoding of the records in the streaming source. For example,
- // UTF-8.
- RecordEncoding *string `type:"string"`
- // Specifies the format of the records on the streaming source.
- RecordFormat *RecordFormat `type:"structure" required:"true"`
- }
- // String returns the string representation
- func (s SourceSchema) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s SourceSchema) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *SourceSchema) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "SourceSchema"}
- if s.RecordColumns == nil {
- invalidParams.Add(request.NewErrParamRequired("RecordColumns"))
- }
- if s.RecordColumns != nil && len(s.RecordColumns) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("RecordColumns", 1))
- }
- if s.RecordFormat == nil {
- invalidParams.Add(request.NewErrParamRequired("RecordFormat"))
- }
- if s.RecordColumns != nil {
- for i, v := range s.RecordColumns {
- if v == nil {
- continue
- }
- if err := v.Validate(); err != nil {
- invalidParams.AddNested(fmt.Sprintf("%s[%v]", "RecordColumns", i), err.(request.ErrInvalidParams))
- }
- }
- }
- if s.RecordFormat != nil {
- if err := s.RecordFormat.Validate(); err != nil {
- invalidParams.AddNested("RecordFormat", err.(request.ErrInvalidParams))
- }
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- type StartApplicationInput struct {
- _ struct{} `type:"structure"`
- // Name of the application.
- ApplicationName *string `min:"1" type:"string" required:"true"`
- // Identifies the specific input, by ID, that the application starts consuming.
- // Amazon Kinesis Analytics starts reading the streaming source associated with
- // the input. You can also specify where in the streaming source you want Amazon
- // Kinesis Analytics to start reading.
- InputConfigurations []*InputConfiguration `type:"list" required:"true"`
- }
- // String returns the string representation
- func (s StartApplicationInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s StartApplicationInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *StartApplicationInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "StartApplicationInput"}
- if s.ApplicationName == nil {
- invalidParams.Add(request.NewErrParamRequired("ApplicationName"))
- }
- if s.ApplicationName != nil && len(*s.ApplicationName) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("ApplicationName", 1))
- }
- if s.InputConfigurations == nil {
- invalidParams.Add(request.NewErrParamRequired("InputConfigurations"))
- }
- if s.InputConfigurations != nil {
- for i, v := range s.InputConfigurations {
- if v == nil {
- continue
- }
- if err := v.Validate(); err != nil {
- invalidParams.AddNested(fmt.Sprintf("%s[%v]", "InputConfigurations", i), err.(request.ErrInvalidParams))
- }
- }
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- type StartApplicationOutput struct {
- _ struct{} `type:"structure"`
- }
- // String returns the string representation
- func (s StartApplicationOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s StartApplicationOutput) GoString() string {
- return s.String()
- }
- type StopApplicationInput struct {
- _ struct{} `type:"structure"`
- // Name of the running application to stop.
- ApplicationName *string `min:"1" type:"string" required:"true"`
- }
- // String returns the string representation
- func (s StopApplicationInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s StopApplicationInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *StopApplicationInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "StopApplicationInput"}
- if s.ApplicationName == nil {
- invalidParams.Add(request.NewErrParamRequired("ApplicationName"))
- }
- if s.ApplicationName != nil && len(*s.ApplicationName) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("ApplicationName", 1))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- type StopApplicationOutput struct {
- _ struct{} `type:"structure"`
- }
- // String returns the string representation
- func (s StopApplicationOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s StopApplicationOutput) GoString() string {
- return s.String()
- }
- type UpdateApplicationInput struct {
- _ struct{} `type:"structure"`
- // Name of the Kinesis Analytics application to update.
- ApplicationName *string `min:"1" type:"string" required:"true"`
- // Describes application updates.
- ApplicationUpdate *ApplicationUpdate `type:"structure" required:"true"`
- // The current application version ID. You can use the DescribeApplication operation
- // to get this value.
- CurrentApplicationVersionId *int64 `min:"1" type:"long" required:"true"`
- }
- // String returns the string representation
- func (s UpdateApplicationInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s UpdateApplicationInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *UpdateApplicationInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "UpdateApplicationInput"}
- if s.ApplicationName == nil {
- invalidParams.Add(request.NewErrParamRequired("ApplicationName"))
- }
- if s.ApplicationName != nil && len(*s.ApplicationName) < 1 {
- invalidParams.Add(request.NewErrParamMinLen("ApplicationName", 1))
- }
- if s.ApplicationUpdate == nil {
- invalidParams.Add(request.NewErrParamRequired("ApplicationUpdate"))
- }
- if s.CurrentApplicationVersionId == nil {
- invalidParams.Add(request.NewErrParamRequired("CurrentApplicationVersionId"))
- }
- if s.CurrentApplicationVersionId != nil && *s.CurrentApplicationVersionId < 1 {
- invalidParams.Add(request.NewErrParamMinValue("CurrentApplicationVersionId", 1))
- }
- if s.ApplicationUpdate != nil {
- if err := s.ApplicationUpdate.Validate(); err != nil {
- invalidParams.AddNested("ApplicationUpdate", err.(request.ErrInvalidParams))
- }
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- type UpdateApplicationOutput struct {
- _ struct{} `type:"structure"`
- }
- // String returns the string representation
- func (s UpdateApplicationOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation
- func (s UpdateApplicationOutput) GoString() string {
- return s.String()
- }
- const (
- // @enum ApplicationStatus
- ApplicationStatusDeleting = "DELETING"
- // @enum ApplicationStatus
- ApplicationStatusStarting = "STARTING"
- // @enum ApplicationStatus
- ApplicationStatusStopping = "STOPPING"
- // @enum ApplicationStatus
- ApplicationStatusReady = "READY"
- // @enum ApplicationStatus
- ApplicationStatusRunning = "RUNNING"
- // @enum ApplicationStatus
- ApplicationStatusUpdating = "UPDATING"
- )
- const (
- // @enum InputStartingPosition
- InputStartingPositionNow = "NOW"
- // @enum InputStartingPosition
- InputStartingPositionTrimHorizon = "TRIM_HORIZON"
- // @enum InputStartingPosition
- InputStartingPositionLastStoppedPoint = "LAST_STOPPED_POINT"
- )
- const (
- // @enum RecordFormatType
- RecordFormatTypeJson = "JSON"
- // @enum RecordFormatType
- RecordFormatTypeCsv = "CSV"
- )
|