api.go 119 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457
  1. // THIS FILE IS AUTOMATICALLY GENERATED. DO NOT EDIT.
  2. // Package kinesisanalytics provides a client for Amazon Kinesis Analytics.
  3. package kinesisanalytics
  4. import (
  5. "fmt"
  6. "time"
  7. "github.com/aws/aws-sdk-go/aws/awsutil"
  8. "github.com/aws/aws-sdk-go/aws/request"
  9. )
  10. const opAddApplicationInput = "AddApplicationInput"
  11. // AddApplicationInputRequest generates a "aws/request.Request" representing the
  12. // client's request for the AddApplicationInput operation. The "output" return
  13. // value can be used to capture response data after the request's "Send" method
  14. // is called.
  15. //
  16. // Creating a request object using this method should be used when you want to inject
  17. // custom logic into the request's lifecycle using a custom handler, or if you want to
  18. // access properties on the request object before or after sending the request. If
  19. // you just want the service response, call the AddApplicationInput method directly
  20. // instead.
  21. //
  22. // Note: You must call the "Send" method on the returned request object in order
  23. // to execute the request.
  24. //
  25. // // Example sending a request using the AddApplicationInputRequest method.
  26. // req, resp := client.AddApplicationInputRequest(params)
  27. //
  28. // err := req.Send()
  29. // if err == nil { // resp is now filled
  30. // fmt.Println(resp)
  31. // }
  32. //
  33. func (c *KinesisAnalytics) AddApplicationInputRequest(input *AddApplicationInputInput) (req *request.Request, output *AddApplicationInputOutput) {
  34. op := &request.Operation{
  35. Name: opAddApplicationInput,
  36. HTTPMethod: "POST",
  37. HTTPPath: "/",
  38. }
  39. if input == nil {
  40. input = &AddApplicationInputInput{}
  41. }
  42. req = c.newRequest(op, input, output)
  43. output = &AddApplicationInputOutput{}
  44. req.Data = output
  45. return
  46. }
  47. // Adds a streaming source to your Amazon Kinesis application. For conceptual
  48. // information, see Configuring Application Input (http://docs.aws.amazon.com/kinesisanalytics/latest/dev/how-it-works-input.html).
  49. //
  50. // You can add a streaming source either when you create an application or
  51. // you can use this operation to add a streaming source after you create an
  52. // application. For more information, see CreateApplication.
  53. //
  54. // Any configuration update, including adding a streaming source using this
  55. // operation, results in a new version of the application. You can use the DescribeApplication
  56. // operation to find the current application version.
  57. //
  58. // This operation requires permissions to perform the kinesisanalytics:AddApplicationInput
  59. // action.
  60. func (c *KinesisAnalytics) AddApplicationInput(input *AddApplicationInputInput) (*AddApplicationInputOutput, error) {
  61. req, out := c.AddApplicationInputRequest(input)
  62. err := req.Send()
  63. return out, err
  64. }
  65. const opAddApplicationOutput = "AddApplicationOutput"
  66. // AddApplicationOutputRequest generates a "aws/request.Request" representing the
  67. // client's request for the AddApplicationOutput operation. The "output" return
  68. // value can be used to capture response data after the request's "Send" method
  69. // is called.
  70. //
  71. // Creating a request object using this method should be used when you want to inject
  72. // custom logic into the request's lifecycle using a custom handler, or if you want to
  73. // access properties on the request object before or after sending the request. If
  74. // you just want the service response, call the AddApplicationOutput method directly
  75. // instead.
  76. //
  77. // Note: You must call the "Send" method on the returned request object in order
  78. // to execute the request.
  79. //
  80. // // Example sending a request using the AddApplicationOutputRequest method.
  81. // req, resp := client.AddApplicationOutputRequest(params)
  82. //
  83. // err := req.Send()
  84. // if err == nil { // resp is now filled
  85. // fmt.Println(resp)
  86. // }
  87. //
  88. func (c *KinesisAnalytics) AddApplicationOutputRequest(input *AddApplicationOutputInput) (req *request.Request, output *AddApplicationOutputOutput) {
  89. op := &request.Operation{
  90. Name: opAddApplicationOutput,
  91. HTTPMethod: "POST",
  92. HTTPPath: "/",
  93. }
  94. if input == nil {
  95. input = &AddApplicationOutputInput{}
  96. }
  97. req = c.newRequest(op, input, output)
  98. output = &AddApplicationOutputOutput{}
  99. req.Data = output
  100. return
  101. }
  102. // Adds an external destination to your Amazon Kinesis Analytics application.
  103. //
  104. // If you want Amazon Kinesis Analytics to deliver data from an in-application
  105. // stream within your application to an external destination (such as an Amazon
  106. // Kinesis stream or a Firehose delivery stream), you add the relevant configuration
  107. // to your application using this operation. You can configure one or more outputs
  108. // for your application. Each output configuration maps an in-application stream
  109. // and an external destination.
  110. //
  111. // You can use one of the output configurations to deliver data from your
  112. // in-application error stream to an external destination so that you can analyze
  113. // the errors. For conceptual information, see Understanding Application Output
  114. // (Destination) (http://docs.aws.amazon.com/kinesisanalytics/latest/dev/how-it-works-output.html).
  115. //
  116. // Note that any configuration update, including adding a streaming source
  117. // using this operation, results in a new version of the application. You can
  118. // use the DescribeApplication operation to find the current application version.
  119. //
  120. // For the limits on the number of application inputs and outputs you can configure,
  121. // see Limits (http://docs.aws.amazon.com/kinesisanalytics/latest/dev/limits.html).
  122. //
  123. // This operation requires permissions to perform the kinesisanalytics:AddApplicationOutput
  124. // action.
  125. func (c *KinesisAnalytics) AddApplicationOutput(input *AddApplicationOutputInput) (*AddApplicationOutputOutput, error) {
  126. req, out := c.AddApplicationOutputRequest(input)
  127. err := req.Send()
  128. return out, err
  129. }
  130. const opAddApplicationReferenceDataSource = "AddApplicationReferenceDataSource"
  131. // AddApplicationReferenceDataSourceRequest generates a "aws/request.Request" representing the
  132. // client's request for the AddApplicationReferenceDataSource operation. The "output" return
  133. // value can be used to capture response data after the request's "Send" method
  134. // is called.
  135. //
  136. // Creating a request object using this method should be used when you want to inject
  137. // custom logic into the request's lifecycle using a custom handler, or if you want to
  138. // access properties on the request object before or after sending the request. If
  139. // you just want the service response, call the AddApplicationReferenceDataSource method directly
  140. // instead.
  141. //
  142. // Note: You must call the "Send" method on the returned request object in order
  143. // to execute the request.
  144. //
  145. // // Example sending a request using the AddApplicationReferenceDataSourceRequest method.
  146. // req, resp := client.AddApplicationReferenceDataSourceRequest(params)
  147. //
  148. // err := req.Send()
  149. // if err == nil { // resp is now filled
  150. // fmt.Println(resp)
  151. // }
  152. //
  153. func (c *KinesisAnalytics) AddApplicationReferenceDataSourceRequest(input *AddApplicationReferenceDataSourceInput) (req *request.Request, output *AddApplicationReferenceDataSourceOutput) {
  154. op := &request.Operation{
  155. Name: opAddApplicationReferenceDataSource,
  156. HTTPMethod: "POST",
  157. HTTPPath: "/",
  158. }
  159. if input == nil {
  160. input = &AddApplicationReferenceDataSourceInput{}
  161. }
  162. req = c.newRequest(op, input, output)
  163. output = &AddApplicationReferenceDataSourceOutput{}
  164. req.Data = output
  165. return
  166. }
  167. // Adds a reference data source to an existing application.
  168. //
  169. // Amazon Kinesis Analytics reads reference data (that is, an Amazon S3 object)
  170. // and creates an in-application table within your application. In the request,
  171. // you provide the source (S3 bucket name and object key name), name of the
  172. // in-application table to create, and the necessary mapping information that
  173. // describes how data in Amazon S3 object maps to columns in the resulting in-application
  174. // table.
  175. //
  176. // For conceptual information, see Configuring Application Input (http://docs.aws.amazon.com/kinesisanalytics/latest/dev/how-it-works-input.html).
  177. // For the limits on data sources you can add to your application, see Limits
  178. // (http://docs.aws.amazon.com/kinesisanalytics/latest/dev/limits.html).
  179. //
  180. // This operation requires permissions to perform the kinesisanalytics:AddApplicationOutput
  181. // action.
  182. func (c *KinesisAnalytics) AddApplicationReferenceDataSource(input *AddApplicationReferenceDataSourceInput) (*AddApplicationReferenceDataSourceOutput, error) {
  183. req, out := c.AddApplicationReferenceDataSourceRequest(input)
  184. err := req.Send()
  185. return out, err
  186. }
  187. const opCreateApplication = "CreateApplication"
  188. // CreateApplicationRequest generates a "aws/request.Request" representing the
  189. // client's request for the CreateApplication operation. The "output" return
  190. // value can be used to capture response data after the request's "Send" method
  191. // is called.
  192. //
  193. // Creating a request object using this method should be used when you want to inject
  194. // custom logic into the request's lifecycle using a custom handler, or if you want to
  195. // access properties on the request object before or after sending the request. If
  196. // you just want the service response, call the CreateApplication method directly
  197. // instead.
  198. //
  199. // Note: You must call the "Send" method on the returned request object in order
  200. // to execute the request.
  201. //
  202. // // Example sending a request using the CreateApplicationRequest method.
  203. // req, resp := client.CreateApplicationRequest(params)
  204. //
  205. // err := req.Send()
  206. // if err == nil { // resp is now filled
  207. // fmt.Println(resp)
  208. // }
  209. //
  210. func (c *KinesisAnalytics) CreateApplicationRequest(input *CreateApplicationInput) (req *request.Request, output *CreateApplicationOutput) {
  211. op := &request.Operation{
  212. Name: opCreateApplication,
  213. HTTPMethod: "POST",
  214. HTTPPath: "/",
  215. }
  216. if input == nil {
  217. input = &CreateApplicationInput{}
  218. }
  219. req = c.newRequest(op, input, output)
  220. output = &CreateApplicationOutput{}
  221. req.Data = output
  222. return
  223. }
  224. // Creates an Amazon Kinesis Analytics application. You can configure each application
  225. // with one streaming source as input, application code to process the input,
  226. // and up to five streaming destinations where you want Amazon Kinesis Analytics
  227. // to write the output data from your application. For an overview, see How
  228. // it Works (http://docs.aws.amazon.com/kinesisanalytics/latest/dev/how-it-works.html).
  229. //
  230. // In the input configuration, you map the streaming source to an in-application
  231. // stream, which you can think of as a constantly updating table. In the mapping,
  232. // you must provide a schema for the in-application stream and map each data
  233. // column in the in-application stream to a data element in the streaming source,
  234. // with the option of renaming, casting and dropping columns as desired.
  235. //
  236. // Your application code is one or more SQL statements that read input data,
  237. // transform it, and generate output. Your application code can create one or
  238. // more SQL artifacts like SQL streams or pumps.
  239. //
  240. // In the output configuration, you can configure the application to write
  241. // data from in-application streams created in your applications to up to five
  242. // streaming destinations.
  243. //
  244. // To read data from your source stream or write data to destination streams,
  245. // Amazon Kinesis Analytics needs your permissions. You grant these permissions
  246. // by creating IAM roles. This operation requires permissions to perform the
  247. // kinesisanalytics:CreateApplication action.
  248. //
  249. // For introductory exercises to create an Amazon Kinesis Analytics application,
  250. // see Getting Started (http://docs.aws.amazon.com/kinesisanalytics/latest/dev/getting-started.html).
  251. func (c *KinesisAnalytics) CreateApplication(input *CreateApplicationInput) (*CreateApplicationOutput, error) {
  252. req, out := c.CreateApplicationRequest(input)
  253. err := req.Send()
  254. return out, err
  255. }
  256. const opDeleteApplication = "DeleteApplication"
  257. // DeleteApplicationRequest generates a "aws/request.Request" representing the
  258. // client's request for the DeleteApplication operation. The "output" return
  259. // value can be used to capture response data after the request's "Send" method
  260. // is called.
  261. //
  262. // Creating a request object using this method should be used when you want to inject
  263. // custom logic into the request's lifecycle using a custom handler, or if you want to
  264. // access properties on the request object before or after sending the request. If
  265. // you just want the service response, call the DeleteApplication method directly
  266. // instead.
  267. //
  268. // Note: You must call the "Send" method on the returned request object in order
  269. // to execute the request.
  270. //
  271. // // Example sending a request using the DeleteApplicationRequest method.
  272. // req, resp := client.DeleteApplicationRequest(params)
  273. //
  274. // err := req.Send()
  275. // if err == nil { // resp is now filled
  276. // fmt.Println(resp)
  277. // }
  278. //
  279. func (c *KinesisAnalytics) DeleteApplicationRequest(input *DeleteApplicationInput) (req *request.Request, output *DeleteApplicationOutput) {
  280. op := &request.Operation{
  281. Name: opDeleteApplication,
  282. HTTPMethod: "POST",
  283. HTTPPath: "/",
  284. }
  285. if input == nil {
  286. input = &DeleteApplicationInput{}
  287. }
  288. req = c.newRequest(op, input, output)
  289. output = &DeleteApplicationOutput{}
  290. req.Data = output
  291. return
  292. }
  293. // Deletes the specified application. Amazon Kinesis Analytics halts application
  294. // execution and deletes the application, including any application artifacts
  295. // (such as in-application streams, reference table, and application code).
  296. //
  297. // This operation requires permissions to perform the kinesisanalytics:DeleteApplication
  298. // action.
  299. func (c *KinesisAnalytics) DeleteApplication(input *DeleteApplicationInput) (*DeleteApplicationOutput, error) {
  300. req, out := c.DeleteApplicationRequest(input)
  301. err := req.Send()
  302. return out, err
  303. }
  304. const opDeleteApplicationOutput = "DeleteApplicationOutput"
  305. // DeleteApplicationOutputRequest generates a "aws/request.Request" representing the
  306. // client's request for the DeleteApplicationOutput operation. The "output" return
  307. // value can be used to capture response data after the request's "Send" method
  308. // is called.
  309. //
  310. // Creating a request object using this method should be used when you want to inject
  311. // custom logic into the request's lifecycle using a custom handler, or if you want to
  312. // access properties on the request object before or after sending the request. If
  313. // you just want the service response, call the DeleteApplicationOutput method directly
  314. // instead.
  315. //
  316. // Note: You must call the "Send" method on the returned request object in order
  317. // to execute the request.
  318. //
  319. // // Example sending a request using the DeleteApplicationOutputRequest method.
  320. // req, resp := client.DeleteApplicationOutputRequest(params)
  321. //
  322. // err := req.Send()
  323. // if err == nil { // resp is now filled
  324. // fmt.Println(resp)
  325. // }
  326. //
  327. func (c *KinesisAnalytics) DeleteApplicationOutputRequest(input *DeleteApplicationOutputInput) (req *request.Request, output *DeleteApplicationOutputOutput) {
  328. op := &request.Operation{
  329. Name: opDeleteApplicationOutput,
  330. HTTPMethod: "POST",
  331. HTTPPath: "/",
  332. }
  333. if input == nil {
  334. input = &DeleteApplicationOutputInput{}
  335. }
  336. req = c.newRequest(op, input, output)
  337. output = &DeleteApplicationOutputOutput{}
  338. req.Data = output
  339. return
  340. }
  341. // Deletes output destination configuration from your application configuration.
  342. // Amazon Kinesis Analytics will no longer write data from the corresponding
  343. // in-application stream to the external output destination.
  344. //
  345. // This operation requires permissions to perform the kinesisanalytics:DeleteApplicationOutput
  346. // action.
  347. func (c *KinesisAnalytics) DeleteApplicationOutput(input *DeleteApplicationOutputInput) (*DeleteApplicationOutputOutput, error) {
  348. req, out := c.DeleteApplicationOutputRequest(input)
  349. err := req.Send()
  350. return out, err
  351. }
  352. const opDeleteApplicationReferenceDataSource = "DeleteApplicationReferenceDataSource"
  353. // DeleteApplicationReferenceDataSourceRequest generates a "aws/request.Request" representing the
  354. // client's request for the DeleteApplicationReferenceDataSource operation. The "output" return
  355. // value can be used to capture response data after the request's "Send" method
  356. // is called.
  357. //
  358. // Creating a request object using this method should be used when you want to inject
  359. // custom logic into the request's lifecycle using a custom handler, or if you want to
  360. // access properties on the request object before or after sending the request. If
  361. // you just want the service response, call the DeleteApplicationReferenceDataSource method directly
  362. // instead.
  363. //
  364. // Note: You must call the "Send" method on the returned request object in order
  365. // to execute the request.
  366. //
  367. // // Example sending a request using the DeleteApplicationReferenceDataSourceRequest method.
  368. // req, resp := client.DeleteApplicationReferenceDataSourceRequest(params)
  369. //
  370. // err := req.Send()
  371. // if err == nil { // resp is now filled
  372. // fmt.Println(resp)
  373. // }
  374. //
  375. func (c *KinesisAnalytics) DeleteApplicationReferenceDataSourceRequest(input *DeleteApplicationReferenceDataSourceInput) (req *request.Request, output *DeleteApplicationReferenceDataSourceOutput) {
  376. op := &request.Operation{
  377. Name: opDeleteApplicationReferenceDataSource,
  378. HTTPMethod: "POST",
  379. HTTPPath: "/",
  380. }
  381. if input == nil {
  382. input = &DeleteApplicationReferenceDataSourceInput{}
  383. }
  384. req = c.newRequest(op, input, output)
  385. output = &DeleteApplicationReferenceDataSourceOutput{}
  386. req.Data = output
  387. return
  388. }
  389. // Deletes a reference data source configuration from the specified application
  390. // configuration.
  391. //
  392. // If the application is running, Amazon Kinesis Analytics immediately removes
  393. // the in-application table that you created using the AddApplicationReferenceDataSource
  394. // operation.
  395. //
  396. // This operation requires permissions to perform the kinesisanalytics.DeleteApplicationReferenceDataSource
  397. // action.
  398. func (c *KinesisAnalytics) DeleteApplicationReferenceDataSource(input *DeleteApplicationReferenceDataSourceInput) (*DeleteApplicationReferenceDataSourceOutput, error) {
  399. req, out := c.DeleteApplicationReferenceDataSourceRequest(input)
  400. err := req.Send()
  401. return out, err
  402. }
  403. const opDescribeApplication = "DescribeApplication"
  404. // DescribeApplicationRequest generates a "aws/request.Request" representing the
  405. // client's request for the DescribeApplication operation. The "output" return
  406. // value can be used to capture response data after the request's "Send" method
  407. // is called.
  408. //
  409. // Creating a request object using this method should be used when you want to inject
  410. // custom logic into the request's lifecycle using a custom handler, or if you want to
  411. // access properties on the request object before or after sending the request. If
  412. // you just want the service response, call the DescribeApplication method directly
  413. // instead.
  414. //
  415. // Note: You must call the "Send" method on the returned request object in order
  416. // to execute the request.
  417. //
  418. // // Example sending a request using the DescribeApplicationRequest method.
  419. // req, resp := client.DescribeApplicationRequest(params)
  420. //
  421. // err := req.Send()
  422. // if err == nil { // resp is now filled
  423. // fmt.Println(resp)
  424. // }
  425. //
  426. func (c *KinesisAnalytics) DescribeApplicationRequest(input *DescribeApplicationInput) (req *request.Request, output *DescribeApplicationOutput) {
  427. op := &request.Operation{
  428. Name: opDescribeApplication,
  429. HTTPMethod: "POST",
  430. HTTPPath: "/",
  431. }
  432. if input == nil {
  433. input = &DescribeApplicationInput{}
  434. }
  435. req = c.newRequest(op, input, output)
  436. output = &DescribeApplicationOutput{}
  437. req.Data = output
  438. return
  439. }
  440. // Returns information about a specific Amazon Kinesis Analytics application.
  441. //
  442. // If you want to retrieve a list of all applications in your account, use
  443. // the ListApplications operation.
  444. //
  445. // This operation requires permissions to perform the kinesisanalytics:DescribeApplication
  446. // action. You can use DescribeApplication to get the current application versionId,
  447. // which you need to call other operations such as Update.
  448. func (c *KinesisAnalytics) DescribeApplication(input *DescribeApplicationInput) (*DescribeApplicationOutput, error) {
  449. req, out := c.DescribeApplicationRequest(input)
  450. err := req.Send()
  451. return out, err
  452. }
  453. const opDiscoverInputSchema = "DiscoverInputSchema"
  454. // DiscoverInputSchemaRequest generates a "aws/request.Request" representing the
  455. // client's request for the DiscoverInputSchema operation. The "output" return
  456. // value can be used to capture response data after the request's "Send" method
  457. // is called.
  458. //
  459. // Creating a request object using this method should be used when you want to inject
  460. // custom logic into the request's lifecycle using a custom handler, or if you want to
  461. // access properties on the request object before or after sending the request. If
  462. // you just want the service response, call the DiscoverInputSchema method directly
  463. // instead.
  464. //
  465. // Note: You must call the "Send" method on the returned request object in order
  466. // to execute the request.
  467. //
  468. // // Example sending a request using the DiscoverInputSchemaRequest method.
  469. // req, resp := client.DiscoverInputSchemaRequest(params)
  470. //
  471. // err := req.Send()
  472. // if err == nil { // resp is now filled
  473. // fmt.Println(resp)
  474. // }
  475. //
  476. func (c *KinesisAnalytics) DiscoverInputSchemaRequest(input *DiscoverInputSchemaInput) (req *request.Request, output *DiscoverInputSchemaOutput) {
  477. op := &request.Operation{
  478. Name: opDiscoverInputSchema,
  479. HTTPMethod: "POST",
  480. HTTPPath: "/",
  481. }
  482. if input == nil {
  483. input = &DiscoverInputSchemaInput{}
  484. }
  485. req = c.newRequest(op, input, output)
  486. output = &DiscoverInputSchemaOutput{}
  487. req.Data = output
  488. return
  489. }
  490. // Infers a schema by evaluating sample records on the specified streaming source
  491. // (Amazon Kinesis stream or Amazon Kinesis Firehose delivery stream). In the
  492. // response, the operation returns the inferred schema and also the sample records
  493. // that the operation used to infer the schema.
  494. //
  495. // You can use the inferred schema when configuring a streaming source for
  496. // your application. For conceptual information, see Configuring Application
  497. // Input (http://docs.aws.amazon.com/kinesisanalytics/latest/dev/how-it-works-input.html).
  498. // Note that when you create an application using the Amazon Kinesis Analytics
  499. // console, the console uses this operation to infer a schema and show it in
  500. // the console user interface.
  501. //
  502. // This operation requires permissions to perform the kinesisanalytics:DiscoverInputSchema
  503. // action.
  504. func (c *KinesisAnalytics) DiscoverInputSchema(input *DiscoverInputSchemaInput) (*DiscoverInputSchemaOutput, error) {
  505. req, out := c.DiscoverInputSchemaRequest(input)
  506. err := req.Send()
  507. return out, err
  508. }
  509. const opListApplications = "ListApplications"
  510. // ListApplicationsRequest generates a "aws/request.Request" representing the
  511. // client's request for the ListApplications operation. The "output" return
  512. // value can be used to capture response data after the request's "Send" method
  513. // is called.
  514. //
  515. // Creating a request object using this method should be used when you want to inject
  516. // custom logic into the request's lifecycle using a custom handler, or if you want to
  517. // access properties on the request object before or after sending the request. If
  518. // you just want the service response, call the ListApplications method directly
  519. // instead.
  520. //
  521. // Note: You must call the "Send" method on the returned request object in order
  522. // to execute the request.
  523. //
  524. // // Example sending a request using the ListApplicationsRequest method.
  525. // req, resp := client.ListApplicationsRequest(params)
  526. //
  527. // err := req.Send()
  528. // if err == nil { // resp is now filled
  529. // fmt.Println(resp)
  530. // }
  531. //
  532. func (c *KinesisAnalytics) ListApplicationsRequest(input *ListApplicationsInput) (req *request.Request, output *ListApplicationsOutput) {
  533. op := &request.Operation{
  534. Name: opListApplications,
  535. HTTPMethod: "POST",
  536. HTTPPath: "/",
  537. }
  538. if input == nil {
  539. input = &ListApplicationsInput{}
  540. }
  541. req = c.newRequest(op, input, output)
  542. output = &ListApplicationsOutput{}
  543. req.Data = output
  544. return
  545. }
  546. // Returns a list of Amazon Kinesis Analytics applications in your account.
  547. // For each application, the response includes the application name, Amazon
  548. // Resource Name (ARN), and status. If the response returns the HasMoreApplications
  549. // value as true, you can send another request by adding the ExclusiveStartApplicationName
  550. // in the request body, and set the value of this to the last application name
  551. // from the previous response.
  552. //
  553. // If you want detailed information about a specific application, use DescribeApplication.
  554. //
  555. // This operation requires permissions to perform the kinesisanalytics:ListApplications
  556. // action.
  557. func (c *KinesisAnalytics) ListApplications(input *ListApplicationsInput) (*ListApplicationsOutput, error) {
  558. req, out := c.ListApplicationsRequest(input)
  559. err := req.Send()
  560. return out, err
  561. }
  562. const opStartApplication = "StartApplication"
  563. // StartApplicationRequest generates a "aws/request.Request" representing the
  564. // client's request for the StartApplication operation. The "output" return
  565. // value can be used to capture response data after the request's "Send" method
  566. // is called.
  567. //
  568. // Creating a request object using this method should be used when you want to inject
  569. // custom logic into the request's lifecycle using a custom handler, or if you want to
  570. // access properties on the request object before or after sending the request. If
  571. // you just want the service response, call the StartApplication method directly
  572. // instead.
  573. //
  574. // Note: You must call the "Send" method on the returned request object in order
  575. // to execute the request.
  576. //
  577. // // Example sending a request using the StartApplicationRequest method.
  578. // req, resp := client.StartApplicationRequest(params)
  579. //
  580. // err := req.Send()
  581. // if err == nil { // resp is now filled
  582. // fmt.Println(resp)
  583. // }
  584. //
  585. func (c *KinesisAnalytics) StartApplicationRequest(input *StartApplicationInput) (req *request.Request, output *StartApplicationOutput) {
  586. op := &request.Operation{
  587. Name: opStartApplication,
  588. HTTPMethod: "POST",
  589. HTTPPath: "/",
  590. }
  591. if input == nil {
  592. input = &StartApplicationInput{}
  593. }
  594. req = c.newRequest(op, input, output)
  595. output = &StartApplicationOutput{}
  596. req.Data = output
  597. return
  598. }
  599. // Starts the specified Amazon Kinesis Analytics application. After creating
  600. // an application, you must exclusively call this operation to start your application.
  601. //
  602. // After the application starts, it begins consuming the input data, processes
  603. // it, and writes the output to the configured destination.
  604. //
  605. // The application status must be READY for you to start an application. You
  606. // can get the application status in the console or using the DescribeApplication
  607. // operation.
  608. //
  609. // After you start the application, you can stop the application from processing
  610. // the input by calling the StopApplication operation.
  611. //
  612. // This operation requires permissions to perform the kinesisanalytics:StartApplication
  613. // action.
  614. func (c *KinesisAnalytics) StartApplication(input *StartApplicationInput) (*StartApplicationOutput, error) {
  615. req, out := c.StartApplicationRequest(input)
  616. err := req.Send()
  617. return out, err
  618. }
  619. const opStopApplication = "StopApplication"
  620. // StopApplicationRequest generates a "aws/request.Request" representing the
  621. // client's request for the StopApplication operation. The "output" return
  622. // value can be used to capture response data after the request's "Send" method
  623. // is called.
  624. //
  625. // Creating a request object using this method should be used when you want to inject
  626. // custom logic into the request's lifecycle using a custom handler, or if you want to
  627. // access properties on the request object before or after sending the request. If
  628. // you just want the service response, call the StopApplication method directly
  629. // instead.
  630. //
  631. // Note: You must call the "Send" method on the returned request object in order
  632. // to execute the request.
  633. //
  634. // // Example sending a request using the StopApplicationRequest method.
  635. // req, resp := client.StopApplicationRequest(params)
  636. //
  637. // err := req.Send()
  638. // if err == nil { // resp is now filled
  639. // fmt.Println(resp)
  640. // }
  641. //
  642. func (c *KinesisAnalytics) StopApplicationRequest(input *StopApplicationInput) (req *request.Request, output *StopApplicationOutput) {
  643. op := &request.Operation{
  644. Name: opStopApplication,
  645. HTTPMethod: "POST",
  646. HTTPPath: "/",
  647. }
  648. if input == nil {
  649. input = &StopApplicationInput{}
  650. }
  651. req = c.newRequest(op, input, output)
  652. output = &StopApplicationOutput{}
  653. req.Data = output
  654. return
  655. }
  656. // Stops the application from processing input data. You can stop an application
  657. // only if it is in the running state. You can use the DescribeApplication operation
  658. // to find the application state. After the application is stopped, Amazon Kinesis
  659. // Analytics stops reading data from the input, the application stops processing
  660. // data, and there is no output written to the destination.
  661. //
  662. // This operation requires permissions to perform the kinesisanalytics:StopApplication
  663. // action.
  664. func (c *KinesisAnalytics) StopApplication(input *StopApplicationInput) (*StopApplicationOutput, error) {
  665. req, out := c.StopApplicationRequest(input)
  666. err := req.Send()
  667. return out, err
  668. }
  669. const opUpdateApplication = "UpdateApplication"
  670. // UpdateApplicationRequest generates a "aws/request.Request" representing the
  671. // client's request for the UpdateApplication operation. The "output" return
  672. // value can be used to capture response data after the request's "Send" method
  673. // is called.
  674. //
  675. // Creating a request object using this method should be used when you want to inject
  676. // custom logic into the request's lifecycle using a custom handler, or if you want to
  677. // access properties on the request object before or after sending the request. If
  678. // you just want the service response, call the UpdateApplication method directly
  679. // instead.
  680. //
  681. // Note: You must call the "Send" method on the returned request object in order
  682. // to execute the request.
  683. //
  684. // // Example sending a request using the UpdateApplicationRequest method.
  685. // req, resp := client.UpdateApplicationRequest(params)
  686. //
  687. // err := req.Send()
  688. // if err == nil { // resp is now filled
  689. // fmt.Println(resp)
  690. // }
  691. //
  692. func (c *KinesisAnalytics) UpdateApplicationRequest(input *UpdateApplicationInput) (req *request.Request, output *UpdateApplicationOutput) {
  693. op := &request.Operation{
  694. Name: opUpdateApplication,
  695. HTTPMethod: "POST",
  696. HTTPPath: "/",
  697. }
  698. if input == nil {
  699. input = &UpdateApplicationInput{}
  700. }
  701. req = c.newRequest(op, input, output)
  702. output = &UpdateApplicationOutput{}
  703. req.Data = output
  704. return
  705. }
  706. // Updates an existing Kinesis Analytics application. Using this API, you can
  707. // update application code, input configuration, and output configuration.
  708. //
  709. // Note that Kinesis Analytics updates the CurrentApplicationVersionId each
  710. // time you update your application.
  711. //
  712. // This opeation requires permission for the kinesisanalytics:UpdateApplication
  713. // action.
  714. func (c *KinesisAnalytics) UpdateApplication(input *UpdateApplicationInput) (*UpdateApplicationOutput, error) {
  715. req, out := c.UpdateApplicationRequest(input)
  716. err := req.Send()
  717. return out, err
  718. }
  719. type AddApplicationInputInput struct {
  720. _ struct{} `type:"structure"`
  721. // Name of your existing Amazon Kinesis Analytics application to which you want
  722. // to add the streaming source.
  723. ApplicationName *string `min:"1" type:"string" required:"true"`
  724. // Current version of your Amazon Kinesis Analytics application. You can use
  725. // the DescribeApplication operation to find the current application version.
  726. CurrentApplicationVersionId *int64 `min:"1" type:"long" required:"true"`
  727. // When you configure the application input, you specify the streaming source,
  728. // the in-application stream name that is created, and the mapping between the
  729. // two. For more information, see Configuring Application Input (http://docs.aws.amazon.com/kinesisanalytics/latest/dev/how-it-works-input.html).
  730. Input *Input `type:"structure" required:"true"`
  731. }
  732. // String returns the string representation
  733. func (s AddApplicationInputInput) String() string {
  734. return awsutil.Prettify(s)
  735. }
  736. // GoString returns the string representation
  737. func (s AddApplicationInputInput) GoString() string {
  738. return s.String()
  739. }
  740. // Validate inspects the fields of the type to determine if they are valid.
  741. func (s *AddApplicationInputInput) Validate() error {
  742. invalidParams := request.ErrInvalidParams{Context: "AddApplicationInputInput"}
  743. if s.ApplicationName == nil {
  744. invalidParams.Add(request.NewErrParamRequired("ApplicationName"))
  745. }
  746. if s.ApplicationName != nil && len(*s.ApplicationName) < 1 {
  747. invalidParams.Add(request.NewErrParamMinLen("ApplicationName", 1))
  748. }
  749. if s.CurrentApplicationVersionId == nil {
  750. invalidParams.Add(request.NewErrParamRequired("CurrentApplicationVersionId"))
  751. }
  752. if s.CurrentApplicationVersionId != nil && *s.CurrentApplicationVersionId < 1 {
  753. invalidParams.Add(request.NewErrParamMinValue("CurrentApplicationVersionId", 1))
  754. }
  755. if s.Input == nil {
  756. invalidParams.Add(request.NewErrParamRequired("Input"))
  757. }
  758. if s.Input != nil {
  759. if err := s.Input.Validate(); err != nil {
  760. invalidParams.AddNested("Input", err.(request.ErrInvalidParams))
  761. }
  762. }
  763. if invalidParams.Len() > 0 {
  764. return invalidParams
  765. }
  766. return nil
  767. }
  768. type AddApplicationInputOutput struct {
  769. _ struct{} `type:"structure"`
  770. }
  771. // String returns the string representation
  772. func (s AddApplicationInputOutput) String() string {
  773. return awsutil.Prettify(s)
  774. }
  775. // GoString returns the string representation
  776. func (s AddApplicationInputOutput) GoString() string {
  777. return s.String()
  778. }
  779. type AddApplicationOutputInput struct {
  780. _ struct{} `type:"structure"`
  781. // Name of the application to which you want to add the output configuration.
  782. ApplicationName *string `min:"1" type:"string" required:"true"`
  783. // Version of the application to which you want add the output configuration.
  784. // You can use the DescribeApplication operation to get the current application
  785. // version. If the version specified is not the current version, the ConcurrentModificationException
  786. // is returned.
  787. CurrentApplicationVersionId *int64 `min:"1" type:"long" required:"true"`
  788. // An array of objects, each describing one output configuration. In the output
  789. // configuration, you specify the name of an in-application stream, a destination
  790. // (that is, an Amazon Kinesis stream or an Amazon Kinesis Firehose delivery
  791. // stream), and record the formation to use when writing to the destination.
  792. Output *Output `type:"structure" required:"true"`
  793. }
  794. // String returns the string representation
  795. func (s AddApplicationOutputInput) String() string {
  796. return awsutil.Prettify(s)
  797. }
  798. // GoString returns the string representation
  799. func (s AddApplicationOutputInput) GoString() string {
  800. return s.String()
  801. }
  802. // Validate inspects the fields of the type to determine if they are valid.
  803. func (s *AddApplicationOutputInput) Validate() error {
  804. invalidParams := request.ErrInvalidParams{Context: "AddApplicationOutputInput"}
  805. if s.ApplicationName == nil {
  806. invalidParams.Add(request.NewErrParamRequired("ApplicationName"))
  807. }
  808. if s.ApplicationName != nil && len(*s.ApplicationName) < 1 {
  809. invalidParams.Add(request.NewErrParamMinLen("ApplicationName", 1))
  810. }
  811. if s.CurrentApplicationVersionId == nil {
  812. invalidParams.Add(request.NewErrParamRequired("CurrentApplicationVersionId"))
  813. }
  814. if s.CurrentApplicationVersionId != nil && *s.CurrentApplicationVersionId < 1 {
  815. invalidParams.Add(request.NewErrParamMinValue("CurrentApplicationVersionId", 1))
  816. }
  817. if s.Output == nil {
  818. invalidParams.Add(request.NewErrParamRequired("Output"))
  819. }
  820. if s.Output != nil {
  821. if err := s.Output.Validate(); err != nil {
  822. invalidParams.AddNested("Output", err.(request.ErrInvalidParams))
  823. }
  824. }
  825. if invalidParams.Len() > 0 {
  826. return invalidParams
  827. }
  828. return nil
  829. }
  830. type AddApplicationOutputOutput struct {
  831. _ struct{} `type:"structure"`
  832. }
  833. // String returns the string representation
  834. func (s AddApplicationOutputOutput) String() string {
  835. return awsutil.Prettify(s)
  836. }
  837. // GoString returns the string representation
  838. func (s AddApplicationOutputOutput) GoString() string {
  839. return s.String()
  840. }
  841. type AddApplicationReferenceDataSourceInput struct {
  842. _ struct{} `type:"structure"`
  843. // Name of an existing application.
  844. ApplicationName *string `min:"1" type:"string" required:"true"`
  845. // Version of the application for which you are adding the reference data source.
  846. // You can use the DescribeApplication operation to get the current application
  847. // version. If the version specified is not the current version, the ConcurrentModificationException
  848. // is returned.
  849. CurrentApplicationVersionId *int64 `min:"1" type:"long" required:"true"`
  850. // The reference data source can be an object in your Amazon S3 bucket. Amazon
  851. // Kinesis Analytics reads the object and copies the data into the in-application
  852. // table that is created. You provide an S3 bucket, object key name, and the
  853. // resulting in-application table that is created. You must also provide an
  854. // IAM role with the necessary permissions that Amazon Kinesis Analytics can
  855. // assume to read the object from your S3 bucket on your behalf.
  856. ReferenceDataSource *ReferenceDataSource `type:"structure" required:"true"`
  857. }
  858. // String returns the string representation
  859. func (s AddApplicationReferenceDataSourceInput) String() string {
  860. return awsutil.Prettify(s)
  861. }
  862. // GoString returns the string representation
  863. func (s AddApplicationReferenceDataSourceInput) GoString() string {
  864. return s.String()
  865. }
  866. // Validate inspects the fields of the type to determine if they are valid.
  867. func (s *AddApplicationReferenceDataSourceInput) Validate() error {
  868. invalidParams := request.ErrInvalidParams{Context: "AddApplicationReferenceDataSourceInput"}
  869. if s.ApplicationName == nil {
  870. invalidParams.Add(request.NewErrParamRequired("ApplicationName"))
  871. }
  872. if s.ApplicationName != nil && len(*s.ApplicationName) < 1 {
  873. invalidParams.Add(request.NewErrParamMinLen("ApplicationName", 1))
  874. }
  875. if s.CurrentApplicationVersionId == nil {
  876. invalidParams.Add(request.NewErrParamRequired("CurrentApplicationVersionId"))
  877. }
  878. if s.CurrentApplicationVersionId != nil && *s.CurrentApplicationVersionId < 1 {
  879. invalidParams.Add(request.NewErrParamMinValue("CurrentApplicationVersionId", 1))
  880. }
  881. if s.ReferenceDataSource == nil {
  882. invalidParams.Add(request.NewErrParamRequired("ReferenceDataSource"))
  883. }
  884. if s.ReferenceDataSource != nil {
  885. if err := s.ReferenceDataSource.Validate(); err != nil {
  886. invalidParams.AddNested("ReferenceDataSource", err.(request.ErrInvalidParams))
  887. }
  888. }
  889. if invalidParams.Len() > 0 {
  890. return invalidParams
  891. }
  892. return nil
  893. }
  894. type AddApplicationReferenceDataSourceOutput struct {
  895. _ struct{} `type:"structure"`
  896. }
  897. // String returns the string representation
  898. func (s AddApplicationReferenceDataSourceOutput) String() string {
  899. return awsutil.Prettify(s)
  900. }
  901. // GoString returns the string representation
  902. func (s AddApplicationReferenceDataSourceOutput) GoString() string {
  903. return s.String()
  904. }
  905. // Provides a description of the application, including the application Amazon
  906. // Resource Name (ARN), status, latest version, and input and output configuration.
  907. type ApplicationDetail struct {
  908. _ struct{} `type:"structure"`
  909. // ARN of the application.
  910. ApplicationARN *string `min:"1" type:"string" required:"true"`
  911. // Returns the application code that you provided to perform data analysis on
  912. // any of the in-application streams in your application.
  913. ApplicationCode *string `type:"string"`
  914. // Description of the application.
  915. ApplicationDescription *string `type:"string"`
  916. // Name of the application.
  917. ApplicationName *string `min:"1" type:"string" required:"true"`
  918. // Status of the application.
  919. ApplicationStatus *string `type:"string" required:"true" enum:"ApplicationStatus"`
  920. // Provides the current application version.
  921. ApplicationVersionId *int64 `min:"1" type:"long" required:"true"`
  922. // Timestamp when the application version was created.
  923. CreateTimestamp *time.Time `type:"timestamp" timestampFormat:"unix"`
  924. // Describes the application input configuration. For more information, see
  925. // Configuring Application Input (http://docs.aws.amazon.com/kinesisanalytics/latest/dev/how-it-works-input.html).
  926. InputDescriptions []*InputDescription `type:"list"`
  927. // Timestamp when the application was last updated.
  928. LastUpdateTimestamp *time.Time `type:"timestamp" timestampFormat:"unix"`
  929. // Describes the application output configuration. For more information, see
  930. // Configuring Application Output (http://docs.aws.amazon.com/kinesisanalytics/latest/dev/how-it-works-output.html).
  931. OutputDescriptions []*OutputDescription `type:"list"`
  932. // Describes reference data sources configured for the application. For more
  933. // information, see Configuring Application Input (http://docs.aws.amazon.com/kinesisanalytics/latest/dev/how-it-works-input.html).
  934. ReferenceDataSourceDescriptions []*ReferenceDataSourceDescription `type:"list"`
  935. }
  936. // String returns the string representation
  937. func (s ApplicationDetail) String() string {
  938. return awsutil.Prettify(s)
  939. }
  940. // GoString returns the string representation
  941. func (s ApplicationDetail) GoString() string {
  942. return s.String()
  943. }
  944. // Provides application summary information, including the application Amazon
  945. // Resource Name (ARN), name, and status.
  946. type ApplicationSummary struct {
  947. _ struct{} `type:"structure"`
  948. // ARN of the application.
  949. ApplicationARN *string `min:"1" type:"string" required:"true"`
  950. // Name of the application.
  951. ApplicationName *string `min:"1" type:"string" required:"true"`
  952. // Status of the application.
  953. ApplicationStatus *string `type:"string" required:"true" enum:"ApplicationStatus"`
  954. }
  955. // String returns the string representation
  956. func (s ApplicationSummary) String() string {
  957. return awsutil.Prettify(s)
  958. }
  959. // GoString returns the string representation
  960. func (s ApplicationSummary) GoString() string {
  961. return s.String()
  962. }
  963. // Describes updates to apply to an existing Kinesis Analytics application.
  964. type ApplicationUpdate struct {
  965. _ struct{} `type:"structure"`
  966. // Describes application code updates.
  967. ApplicationCodeUpdate *string `type:"string"`
  968. // Describes application input configuration updates.
  969. InputUpdates []*InputUpdate `type:"list"`
  970. // Describes application output configuration updates.
  971. OutputUpdates []*OutputUpdate `type:"list"`
  972. // Describes application reference data source updates.
  973. ReferenceDataSourceUpdates []*ReferenceDataSourceUpdate `type:"list"`
  974. }
  975. // String returns the string representation
  976. func (s ApplicationUpdate) String() string {
  977. return awsutil.Prettify(s)
  978. }
  979. // GoString returns the string representation
  980. func (s ApplicationUpdate) GoString() string {
  981. return s.String()
  982. }
  983. // Validate inspects the fields of the type to determine if they are valid.
  984. func (s *ApplicationUpdate) Validate() error {
  985. invalidParams := request.ErrInvalidParams{Context: "ApplicationUpdate"}
  986. if s.InputUpdates != nil {
  987. for i, v := range s.InputUpdates {
  988. if v == nil {
  989. continue
  990. }
  991. if err := v.Validate(); err != nil {
  992. invalidParams.AddNested(fmt.Sprintf("%s[%v]", "InputUpdates", i), err.(request.ErrInvalidParams))
  993. }
  994. }
  995. }
  996. if s.OutputUpdates != nil {
  997. for i, v := range s.OutputUpdates {
  998. if v == nil {
  999. continue
  1000. }
  1001. if err := v.Validate(); err != nil {
  1002. invalidParams.AddNested(fmt.Sprintf("%s[%v]", "OutputUpdates", i), err.(request.ErrInvalidParams))
  1003. }
  1004. }
  1005. }
  1006. if s.ReferenceDataSourceUpdates != nil {
  1007. for i, v := range s.ReferenceDataSourceUpdates {
  1008. if v == nil {
  1009. continue
  1010. }
  1011. if err := v.Validate(); err != nil {
  1012. invalidParams.AddNested(fmt.Sprintf("%s[%v]", "ReferenceDataSourceUpdates", i), err.(request.ErrInvalidParams))
  1013. }
  1014. }
  1015. }
  1016. if invalidParams.Len() > 0 {
  1017. return invalidParams
  1018. }
  1019. return nil
  1020. }
  1021. // Provides additional mapping information when the record format uses delimiters,
  1022. // such as CSV. For example, the following sample records use CSV format, where
  1023. // the records use the '\n' as the row delimiter and a comma (",") as the column
  1024. // delimiter:
  1025. //
  1026. // "name1", "address1"
  1027. //
  1028. // "name2, "address2"
  1029. type CSVMappingParameters struct {
  1030. _ struct{} `type:"structure"`
  1031. // Column delimiter. For example, in a CSV format, a comma (",") is the typical
  1032. // column delimiter.
  1033. RecordColumnDelimiter *string `type:"string" required:"true"`
  1034. // Row delimiter. For example, in a CSV format, '\n' is the typical row delimiter.
  1035. RecordRowDelimiter *string `type:"string" required:"true"`
  1036. }
  1037. // String returns the string representation
  1038. func (s CSVMappingParameters) String() string {
  1039. return awsutil.Prettify(s)
  1040. }
  1041. // GoString returns the string representation
  1042. func (s CSVMappingParameters) GoString() string {
  1043. return s.String()
  1044. }
  1045. // Validate inspects the fields of the type to determine if they are valid.
  1046. func (s *CSVMappingParameters) Validate() error {
  1047. invalidParams := request.ErrInvalidParams{Context: "CSVMappingParameters"}
  1048. if s.RecordColumnDelimiter == nil {
  1049. invalidParams.Add(request.NewErrParamRequired("RecordColumnDelimiter"))
  1050. }
  1051. if s.RecordRowDelimiter == nil {
  1052. invalidParams.Add(request.NewErrParamRequired("RecordRowDelimiter"))
  1053. }
  1054. if invalidParams.Len() > 0 {
  1055. return invalidParams
  1056. }
  1057. return nil
  1058. }
  1059. // TBD
  1060. type CreateApplicationInput struct {
  1061. _ struct{} `type:"structure"`
  1062. // One or more SQL statements that read input data, transform it, and generate
  1063. // output. For example, you can write a SQL statement that reads input data
  1064. // and generates a running average of the number of advertisement clicks by
  1065. // vendor.
  1066. //
  1067. // You can also provide a series of SQL statements, where output of one statement
  1068. // can be used as the input for the next statement.
  1069. //
  1070. // Note that the application code must create the streams with names specified
  1071. // in the Outputs. For example, if your Outputs defines output streams named
  1072. // ExampleOutputStream1 and ExampleOutputStream2, then your application code
  1073. // must create these streams.
  1074. ApplicationCode *string `type:"string"`
  1075. // Summary description of the application.
  1076. ApplicationDescription *string `type:"string"`
  1077. // Name of your Amazon Kinesis Analytics application (for example, sample-app).
  1078. ApplicationName *string `min:"1" type:"string" required:"true"`
  1079. // Use this parameter to configure the application input.
  1080. //
  1081. // You can configure your application to receive input from a single streaming
  1082. // source. In this configuration, you map this streaming source to an in-application
  1083. // stream that is created. Your application code can then query the in-application
  1084. // stream like a table (you can think of it as a constantly updating table).
  1085. //
  1086. // For the streaming source, you provide its Amazon Resource Name (ARN) and
  1087. // format of data on the stream (for example, JSON, CSV, etc). You also must
  1088. // provide an IAM role that Amazon Kinesis Analytics can assume to read this
  1089. // stream on your behalf.
  1090. //
  1091. // To create the in-application stream, you need to specify a schema to transform
  1092. // your data into a schematized version used in SQL. In the schema, you provide
  1093. // the necessary mapping of the data elements in the streaming source to record
  1094. // columns in the in-app stream.
  1095. Inputs []*Input `type:"list"`
  1096. // You can configure application output to write data from any of the in-application
  1097. // streams to up to five destinations.
  1098. //
  1099. // These destinations can be Amazon Kinesis streams, Amazon Kinesis Firehose
  1100. // delivery streams, or both.
  1101. //
  1102. // In the configuration, you specify the in-application stream name, the destination
  1103. // stream Amazon Resource Name (ARN), and the format to use when writing data.
  1104. // You must also provide an IAM role that Amazon Kinesis Analytics can assume
  1105. // to write to the destination stream on your behalf.
  1106. //
  1107. // In the output configuration, you also provide the output stream Amazon Resource
  1108. // Name (ARN) and the format of data in the stream (for example, JSON, CSV).
  1109. // You also must provide an IAM role that Amazon Kinesis Analytics can assume
  1110. // to write to this stream on your behalf.
  1111. Outputs []*Output `type:"list"`
  1112. }
  1113. // String returns the string representation
  1114. func (s CreateApplicationInput) String() string {
  1115. return awsutil.Prettify(s)
  1116. }
  1117. // GoString returns the string representation
  1118. func (s CreateApplicationInput) GoString() string {
  1119. return s.String()
  1120. }
  1121. // Validate inspects the fields of the type to determine if they are valid.
  1122. func (s *CreateApplicationInput) Validate() error {
  1123. invalidParams := request.ErrInvalidParams{Context: "CreateApplicationInput"}
  1124. if s.ApplicationName == nil {
  1125. invalidParams.Add(request.NewErrParamRequired("ApplicationName"))
  1126. }
  1127. if s.ApplicationName != nil && len(*s.ApplicationName) < 1 {
  1128. invalidParams.Add(request.NewErrParamMinLen("ApplicationName", 1))
  1129. }
  1130. if s.Inputs != nil {
  1131. for i, v := range s.Inputs {
  1132. if v == nil {
  1133. continue
  1134. }
  1135. if err := v.Validate(); err != nil {
  1136. invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Inputs", i), err.(request.ErrInvalidParams))
  1137. }
  1138. }
  1139. }
  1140. if s.Outputs != nil {
  1141. for i, v := range s.Outputs {
  1142. if v == nil {
  1143. continue
  1144. }
  1145. if err := v.Validate(); err != nil {
  1146. invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Outputs", i), err.(request.ErrInvalidParams))
  1147. }
  1148. }
  1149. }
  1150. if invalidParams.Len() > 0 {
  1151. return invalidParams
  1152. }
  1153. return nil
  1154. }
  1155. // TBD
  1156. type CreateApplicationOutput struct {
  1157. _ struct{} `type:"structure"`
  1158. // In response to your CreateApplication request, Amazon Kinesis Analytics returns
  1159. // a response with a summary of the application it created, including the application
  1160. // Amazon Resource Name (ARN), name, and status.
  1161. ApplicationSummary *ApplicationSummary `type:"structure" required:"true"`
  1162. }
  1163. // String returns the string representation
  1164. func (s CreateApplicationOutput) String() string {
  1165. return awsutil.Prettify(s)
  1166. }
  1167. // GoString returns the string representation
  1168. func (s CreateApplicationOutput) GoString() string {
  1169. return s.String()
  1170. }
  1171. type DeleteApplicationInput struct {
  1172. _ struct{} `type:"structure"`
  1173. // Name of the Amazon Kinesis Analytics application to delete.
  1174. ApplicationName *string `min:"1" type:"string" required:"true"`
  1175. // You can use the DescribeApplication operation to get this value.
  1176. CreateTimestamp *time.Time `type:"timestamp" timestampFormat:"unix" required:"true"`
  1177. }
  1178. // String returns the string representation
  1179. func (s DeleteApplicationInput) String() string {
  1180. return awsutil.Prettify(s)
  1181. }
  1182. // GoString returns the string representation
  1183. func (s DeleteApplicationInput) GoString() string {
  1184. return s.String()
  1185. }
  1186. // Validate inspects the fields of the type to determine if they are valid.
  1187. func (s *DeleteApplicationInput) Validate() error {
  1188. invalidParams := request.ErrInvalidParams{Context: "DeleteApplicationInput"}
  1189. if s.ApplicationName == nil {
  1190. invalidParams.Add(request.NewErrParamRequired("ApplicationName"))
  1191. }
  1192. if s.ApplicationName != nil && len(*s.ApplicationName) < 1 {
  1193. invalidParams.Add(request.NewErrParamMinLen("ApplicationName", 1))
  1194. }
  1195. if s.CreateTimestamp == nil {
  1196. invalidParams.Add(request.NewErrParamRequired("CreateTimestamp"))
  1197. }
  1198. if invalidParams.Len() > 0 {
  1199. return invalidParams
  1200. }
  1201. return nil
  1202. }
  1203. type DeleteApplicationOutput struct {
  1204. _ struct{} `type:"structure"`
  1205. }
  1206. // String returns the string representation
  1207. func (s DeleteApplicationOutput) String() string {
  1208. return awsutil.Prettify(s)
  1209. }
  1210. // GoString returns the string representation
  1211. func (s DeleteApplicationOutput) GoString() string {
  1212. return s.String()
  1213. }
  1214. type DeleteApplicationOutputInput struct {
  1215. _ struct{} `type:"structure"`
  1216. // Amazon Kinesis Analytics application name.
  1217. ApplicationName *string `min:"1" type:"string" required:"true"`
  1218. // Amazon Kinesis Analytics application version. You can use the DescribeApplication
  1219. // operation to get the current application version. If the version specified
  1220. // is not the current version, the ConcurrentModificationException is returned.
  1221. CurrentApplicationVersionId *int64 `min:"1" type:"long" required:"true"`
  1222. // The ID of the configuration to delete. Each output configuration that is
  1223. // added to the application, either when the application is created or later
  1224. // using the AddApplicationOutput operation, has a unique ID. You need to provide
  1225. // the ID to uniquely identify the output configuration that you want to delete
  1226. // from the application configuration. You can use the DescribeApplication operation
  1227. // to get the specific OutputId.
  1228. OutputId *string `min:"1" type:"string" required:"true"`
  1229. }
  1230. // String returns the string representation
  1231. func (s DeleteApplicationOutputInput) String() string {
  1232. return awsutil.Prettify(s)
  1233. }
  1234. // GoString returns the string representation
  1235. func (s DeleteApplicationOutputInput) GoString() string {
  1236. return s.String()
  1237. }
  1238. // Validate inspects the fields of the type to determine if they are valid.
  1239. func (s *DeleteApplicationOutputInput) Validate() error {
  1240. invalidParams := request.ErrInvalidParams{Context: "DeleteApplicationOutputInput"}
  1241. if s.ApplicationName == nil {
  1242. invalidParams.Add(request.NewErrParamRequired("ApplicationName"))
  1243. }
  1244. if s.ApplicationName != nil && len(*s.ApplicationName) < 1 {
  1245. invalidParams.Add(request.NewErrParamMinLen("ApplicationName", 1))
  1246. }
  1247. if s.CurrentApplicationVersionId == nil {
  1248. invalidParams.Add(request.NewErrParamRequired("CurrentApplicationVersionId"))
  1249. }
  1250. if s.CurrentApplicationVersionId != nil && *s.CurrentApplicationVersionId < 1 {
  1251. invalidParams.Add(request.NewErrParamMinValue("CurrentApplicationVersionId", 1))
  1252. }
  1253. if s.OutputId == nil {
  1254. invalidParams.Add(request.NewErrParamRequired("OutputId"))
  1255. }
  1256. if s.OutputId != nil && len(*s.OutputId) < 1 {
  1257. invalidParams.Add(request.NewErrParamMinLen("OutputId", 1))
  1258. }
  1259. if invalidParams.Len() > 0 {
  1260. return invalidParams
  1261. }
  1262. return nil
  1263. }
  1264. type DeleteApplicationOutputOutput struct {
  1265. _ struct{} `type:"structure"`
  1266. }
  1267. // String returns the string representation
  1268. func (s DeleteApplicationOutputOutput) String() string {
  1269. return awsutil.Prettify(s)
  1270. }
  1271. // GoString returns the string representation
  1272. func (s DeleteApplicationOutputOutput) GoString() string {
  1273. return s.String()
  1274. }
  1275. type DeleteApplicationReferenceDataSourceInput struct {
  1276. _ struct{} `type:"structure"`
  1277. // Name of an existing application.
  1278. ApplicationName *string `min:"1" type:"string" required:"true"`
  1279. // Version of the application. You can use the DescribeApplication operation
  1280. // to get the current application version. If the version specified is not the
  1281. // current version, the ConcurrentModificationException is returned.
  1282. CurrentApplicationVersionId *int64 `min:"1" type:"long" required:"true"`
  1283. // ID of the reference data source. When you add a reference data source to
  1284. // your application using the AddApplicationReferenceDataSource, Amazon Kinesis
  1285. // Analytics assigns an ID. You can use the DescribeApplication operation to
  1286. // get the reference ID.
  1287. ReferenceId *string `min:"1" type:"string" required:"true"`
  1288. }
  1289. // String returns the string representation
  1290. func (s DeleteApplicationReferenceDataSourceInput) String() string {
  1291. return awsutil.Prettify(s)
  1292. }
  1293. // GoString returns the string representation
  1294. func (s DeleteApplicationReferenceDataSourceInput) GoString() string {
  1295. return s.String()
  1296. }
  1297. // Validate inspects the fields of the type to determine if they are valid.
  1298. func (s *DeleteApplicationReferenceDataSourceInput) Validate() error {
  1299. invalidParams := request.ErrInvalidParams{Context: "DeleteApplicationReferenceDataSourceInput"}
  1300. if s.ApplicationName == nil {
  1301. invalidParams.Add(request.NewErrParamRequired("ApplicationName"))
  1302. }
  1303. if s.ApplicationName != nil && len(*s.ApplicationName) < 1 {
  1304. invalidParams.Add(request.NewErrParamMinLen("ApplicationName", 1))
  1305. }
  1306. if s.CurrentApplicationVersionId == nil {
  1307. invalidParams.Add(request.NewErrParamRequired("CurrentApplicationVersionId"))
  1308. }
  1309. if s.CurrentApplicationVersionId != nil && *s.CurrentApplicationVersionId < 1 {
  1310. invalidParams.Add(request.NewErrParamMinValue("CurrentApplicationVersionId", 1))
  1311. }
  1312. if s.ReferenceId == nil {
  1313. invalidParams.Add(request.NewErrParamRequired("ReferenceId"))
  1314. }
  1315. if s.ReferenceId != nil && len(*s.ReferenceId) < 1 {
  1316. invalidParams.Add(request.NewErrParamMinLen("ReferenceId", 1))
  1317. }
  1318. if invalidParams.Len() > 0 {
  1319. return invalidParams
  1320. }
  1321. return nil
  1322. }
  1323. type DeleteApplicationReferenceDataSourceOutput struct {
  1324. _ struct{} `type:"structure"`
  1325. }
  1326. // String returns the string representation
  1327. func (s DeleteApplicationReferenceDataSourceOutput) String() string {
  1328. return awsutil.Prettify(s)
  1329. }
  1330. // GoString returns the string representation
  1331. func (s DeleteApplicationReferenceDataSourceOutput) GoString() string {
  1332. return s.String()
  1333. }
  1334. type DescribeApplicationInput struct {
  1335. _ struct{} `type:"structure"`
  1336. // Name of the application.
  1337. ApplicationName *string `min:"1" type:"string" required:"true"`
  1338. }
  1339. // String returns the string representation
  1340. func (s DescribeApplicationInput) String() string {
  1341. return awsutil.Prettify(s)
  1342. }
  1343. // GoString returns the string representation
  1344. func (s DescribeApplicationInput) GoString() string {
  1345. return s.String()
  1346. }
  1347. // Validate inspects the fields of the type to determine if they are valid.
  1348. func (s *DescribeApplicationInput) Validate() error {
  1349. invalidParams := request.ErrInvalidParams{Context: "DescribeApplicationInput"}
  1350. if s.ApplicationName == nil {
  1351. invalidParams.Add(request.NewErrParamRequired("ApplicationName"))
  1352. }
  1353. if s.ApplicationName != nil && len(*s.ApplicationName) < 1 {
  1354. invalidParams.Add(request.NewErrParamMinLen("ApplicationName", 1))
  1355. }
  1356. if invalidParams.Len() > 0 {
  1357. return invalidParams
  1358. }
  1359. return nil
  1360. }
  1361. type DescribeApplicationOutput struct {
  1362. _ struct{} `type:"structure"`
  1363. // Provides a description of the application, such as the application Amazon
  1364. // Resource Name (ARN), status, latest version, and input and output configuration
  1365. // details.
  1366. ApplicationDetail *ApplicationDetail `type:"structure" required:"true"`
  1367. }
  1368. // String returns the string representation
  1369. func (s DescribeApplicationOutput) String() string {
  1370. return awsutil.Prettify(s)
  1371. }
  1372. // GoString returns the string representation
  1373. func (s DescribeApplicationOutput) GoString() string {
  1374. return s.String()
  1375. }
  1376. // Describes the data format when records are written to the destination. For
  1377. // more information, see Configuring Application Output (http://docs.aws.amazon.com/kinesisanalytics/latest/dev/how-it-works-output.html).
  1378. type DestinationSchema struct {
  1379. _ struct{} `type:"structure"`
  1380. // Specifies the format of the records on the output stream.
  1381. RecordFormatType *string `type:"string" enum:"RecordFormatType"`
  1382. }
  1383. // String returns the string representation
  1384. func (s DestinationSchema) String() string {
  1385. return awsutil.Prettify(s)
  1386. }
  1387. // GoString returns the string representation
  1388. func (s DestinationSchema) GoString() string {
  1389. return s.String()
  1390. }
  1391. type DiscoverInputSchemaInput struct {
  1392. _ struct{} `type:"structure"`
  1393. // Point at which you want Amazon Kinesis Analytics to start reading records
  1394. // from the specified streaming source discovery purposes.
  1395. InputStartingPositionConfiguration *InputStartingPositionConfiguration `type:"structure" required:"true"`
  1396. // Amazon Resource Name (ARN) of the streaming source.
  1397. ResourceARN *string `min:"1" type:"string" required:"true"`
  1398. // ARN of the IAM role that Amazon Kinesis Analytics can assume to access the
  1399. // stream on your behalf.
  1400. RoleARN *string `min:"1" type:"string" required:"true"`
  1401. }
  1402. // String returns the string representation
  1403. func (s DiscoverInputSchemaInput) String() string {
  1404. return awsutil.Prettify(s)
  1405. }
  1406. // GoString returns the string representation
  1407. func (s DiscoverInputSchemaInput) GoString() string {
  1408. return s.String()
  1409. }
  1410. // Validate inspects the fields of the type to determine if they are valid.
  1411. func (s *DiscoverInputSchemaInput) Validate() error {
  1412. invalidParams := request.ErrInvalidParams{Context: "DiscoverInputSchemaInput"}
  1413. if s.InputStartingPositionConfiguration == nil {
  1414. invalidParams.Add(request.NewErrParamRequired("InputStartingPositionConfiguration"))
  1415. }
  1416. if s.ResourceARN == nil {
  1417. invalidParams.Add(request.NewErrParamRequired("ResourceARN"))
  1418. }
  1419. if s.ResourceARN != nil && len(*s.ResourceARN) < 1 {
  1420. invalidParams.Add(request.NewErrParamMinLen("ResourceARN", 1))
  1421. }
  1422. if s.RoleARN == nil {
  1423. invalidParams.Add(request.NewErrParamRequired("RoleARN"))
  1424. }
  1425. if s.RoleARN != nil && len(*s.RoleARN) < 1 {
  1426. invalidParams.Add(request.NewErrParamMinLen("RoleARN", 1))
  1427. }
  1428. if invalidParams.Len() > 0 {
  1429. return invalidParams
  1430. }
  1431. return nil
  1432. }
  1433. type DiscoverInputSchemaOutput struct {
  1434. _ struct{} `type:"structure"`
  1435. // Schema inferred from the streaming source. It identifies the format of the
  1436. // data in the streaming source and how each data element maps to corresponding
  1437. // columns in the in-application stream that you can create.
  1438. InputSchema *SourceSchema `type:"structure"`
  1439. // An array of elements, where each element corresponds to a row in a stream
  1440. // record (a stream record can have more than one row).
  1441. ParsedInputRecords [][]*string `type:"list"`
  1442. // Raw stream data that was sampled to infer the schema.
  1443. RawInputRecords []*string `type:"list"`
  1444. }
  1445. // String returns the string representation
  1446. func (s DiscoverInputSchemaOutput) String() string {
  1447. return awsutil.Prettify(s)
  1448. }
  1449. // GoString returns the string representation
  1450. func (s DiscoverInputSchemaOutput) GoString() string {
  1451. return s.String()
  1452. }
  1453. // When you configure the application input, you specify the streaming source,
  1454. // the in-application stream name that is created, and the mapping between the
  1455. // two. For more information, see Configuring Application Input (http://docs.aws.amazon.com/kinesisanalytics/latest/dev/how-it-works-input.html).
  1456. type Input struct {
  1457. _ struct{} `type:"structure"`
  1458. // Describes the number of in-application streams to create.
  1459. //
  1460. // Data from your source will be routed to these in-application input streams.
  1461. //
  1462. // (see Configuring Application Input (http://docs.aws.amazon.com/kinesisanalytics/latest/dev/how-it-works-input.html).
  1463. InputParallelism *InputParallelism `type:"structure"`
  1464. // Describes the format of the data in the streaming source, and how each data
  1465. // element maps to corresponding columns in the in-application stream that is
  1466. // being created.
  1467. //
  1468. // Also used to describe the format of the reference data source.
  1469. InputSchema *SourceSchema `type:"structure"`
  1470. // If the streaming source is an Amazon Kinesis Firehose delivery stream, identifies
  1471. // the Firehose delivery stream's ARN and an IAM role that enables Amazon Kinesis
  1472. // Analytics to access the stream on your behalf.
  1473. KinesisFirehoseInput *KinesisFirehoseInput `type:"structure"`
  1474. // If the streaming source is an Amazon Kinesis stream, identifies the stream's
  1475. // Amazon Resource Name (ARN) and an IAM role that enables Amazon Kinesis Analytics
  1476. // to access the stream on your behalf.
  1477. KinesisStreamsInput *KinesisStreamsInput `type:"structure"`
  1478. // Name prefix to use when creating in-application stream. Suppose you specify
  1479. // a prefix "MyInApplicationStream". Kinesis Analytics will then create one
  1480. // or more (as per the InputParallelism count you specified) in-application
  1481. // streams with names "MyInApplicationStream_001", "MyInApplicationStream_002"
  1482. // and so on.
  1483. NamePrefix *string `min:"1" type:"string" required:"true"`
  1484. }
  1485. // String returns the string representation
  1486. func (s Input) String() string {
  1487. return awsutil.Prettify(s)
  1488. }
  1489. // GoString returns the string representation
  1490. func (s Input) GoString() string {
  1491. return s.String()
  1492. }
  1493. // Validate inspects the fields of the type to determine if they are valid.
  1494. func (s *Input) Validate() error {
  1495. invalidParams := request.ErrInvalidParams{Context: "Input"}
  1496. if s.NamePrefix == nil {
  1497. invalidParams.Add(request.NewErrParamRequired("NamePrefix"))
  1498. }
  1499. if s.NamePrefix != nil && len(*s.NamePrefix) < 1 {
  1500. invalidParams.Add(request.NewErrParamMinLen("NamePrefix", 1))
  1501. }
  1502. if s.InputParallelism != nil {
  1503. if err := s.InputParallelism.Validate(); err != nil {
  1504. invalidParams.AddNested("InputParallelism", err.(request.ErrInvalidParams))
  1505. }
  1506. }
  1507. if s.InputSchema != nil {
  1508. if err := s.InputSchema.Validate(); err != nil {
  1509. invalidParams.AddNested("InputSchema", err.(request.ErrInvalidParams))
  1510. }
  1511. }
  1512. if s.KinesisFirehoseInput != nil {
  1513. if err := s.KinesisFirehoseInput.Validate(); err != nil {
  1514. invalidParams.AddNested("KinesisFirehoseInput", err.(request.ErrInvalidParams))
  1515. }
  1516. }
  1517. if s.KinesisStreamsInput != nil {
  1518. if err := s.KinesisStreamsInput.Validate(); err != nil {
  1519. invalidParams.AddNested("KinesisStreamsInput", err.(request.ErrInvalidParams))
  1520. }
  1521. }
  1522. if invalidParams.Len() > 0 {
  1523. return invalidParams
  1524. }
  1525. return nil
  1526. }
  1527. // When you start your application, you provide this configuration, which identifies
  1528. // the input source and the point in the input source at which you want the
  1529. // application to start processing records.
  1530. type InputConfiguration struct {
  1531. _ struct{} `type:"structure"`
  1532. // Input source ID. You can get this ID by calling the DescribeApplication operation.
  1533. Id *string `min:"1" type:"string" required:"true"`
  1534. // Point at which you want the application to start processing records from
  1535. // the streaming source.
  1536. InputStartingPositionConfiguration *InputStartingPositionConfiguration `type:"structure" required:"true"`
  1537. }
  1538. // String returns the string representation
  1539. func (s InputConfiguration) String() string {
  1540. return awsutil.Prettify(s)
  1541. }
  1542. // GoString returns the string representation
  1543. func (s InputConfiguration) GoString() string {
  1544. return s.String()
  1545. }
  1546. // Validate inspects the fields of the type to determine if they are valid.
  1547. func (s *InputConfiguration) Validate() error {
  1548. invalidParams := request.ErrInvalidParams{Context: "InputConfiguration"}
  1549. if s.Id == nil {
  1550. invalidParams.Add(request.NewErrParamRequired("Id"))
  1551. }
  1552. if s.Id != nil && len(*s.Id) < 1 {
  1553. invalidParams.Add(request.NewErrParamMinLen("Id", 1))
  1554. }
  1555. if s.InputStartingPositionConfiguration == nil {
  1556. invalidParams.Add(request.NewErrParamRequired("InputStartingPositionConfiguration"))
  1557. }
  1558. if invalidParams.Len() > 0 {
  1559. return invalidParams
  1560. }
  1561. return nil
  1562. }
  1563. // Describes the application input configuration. For more information, see
  1564. // Configuring Application Input (http://docs.aws.amazon.com/kinesisanalytics/latest/dev/how-it-works-input.html).
  1565. type InputDescription struct {
  1566. _ struct{} `type:"structure"`
  1567. // Returns the in-application stream names that are mapped to the stream source.
  1568. InAppStreamNames []*string `type:"list"`
  1569. // Input ID associated with the application input. This is the ID that Amazon
  1570. // Kinesis Analytics assigns to each input configuration you add to your application.
  1571. InputId *string `min:"1" type:"string"`
  1572. // Describes the configured parallelism (number of in-application streams mapped
  1573. // to the streaming source).
  1574. InputParallelism *InputParallelism `type:"structure"`
  1575. // Describes the format of the data in the streaming source, and how each data
  1576. // element maps to corresponding columns created in the in-application stream.
  1577. InputSchema *SourceSchema `type:"structure"`
  1578. // Point at which the application is configured to read from the input stream.
  1579. InputStartingPositionConfiguration *InputStartingPositionConfiguration `type:"structure"`
  1580. // If an Amazon Kinesis Firehose delivery stream is configured as a streaming
  1581. // source, provides the Firehose delivery stream's Amazon Resource Name (ARN)
  1582. // and an IAM role that enables Amazon Kinesis Analytics to access the stream
  1583. // on your behalf.
  1584. KinesisFirehoseInputDescription *KinesisFirehoseInputDescription `type:"structure"`
  1585. // If an Amazon Kinesis stream is configured as streaming source, provides Amazon
  1586. // Kinesis stream's ARN and an IAM role that enables Amazon Kinesis Analytics
  1587. // to access the stream on your behalf.
  1588. KinesisStreamsInputDescription *KinesisStreamsInputDescription `type:"structure"`
  1589. // In-application name prefix.
  1590. NamePrefix *string `min:"1" type:"string"`
  1591. }
  1592. // String returns the string representation
  1593. func (s InputDescription) String() string {
  1594. return awsutil.Prettify(s)
  1595. }
  1596. // GoString returns the string representation
  1597. func (s InputDescription) GoString() string {
  1598. return s.String()
  1599. }
  1600. // Describes the number of in-application streams to create for a given streaming
  1601. // source. For information about parallellism, see Configuring Application Input
  1602. // (http://docs.aws.amazon.com/kinesisanalytics/latest/dev/how-it-works-input.html).
  1603. type InputParallelism struct {
  1604. _ struct{} `type:"structure"`
  1605. // Number of in-application streams to create. For more information, see Limits
  1606. // (http://docs.aws.amazon.com/kinesisanalytics/latest/dev/limits.html).
  1607. Count *int64 `min:"1" type:"integer"`
  1608. }
  1609. // String returns the string representation
  1610. func (s InputParallelism) String() string {
  1611. return awsutil.Prettify(s)
  1612. }
  1613. // GoString returns the string representation
  1614. func (s InputParallelism) GoString() string {
  1615. return s.String()
  1616. }
  1617. // Validate inspects the fields of the type to determine if they are valid.
  1618. func (s *InputParallelism) Validate() error {
  1619. invalidParams := request.ErrInvalidParams{Context: "InputParallelism"}
  1620. if s.Count != nil && *s.Count < 1 {
  1621. invalidParams.Add(request.NewErrParamMinValue("Count", 1))
  1622. }
  1623. if invalidParams.Len() > 0 {
  1624. return invalidParams
  1625. }
  1626. return nil
  1627. }
  1628. // Provides updates to the parallelism count.
  1629. type InputParallelismUpdate struct {
  1630. _ struct{} `type:"structure"`
  1631. // Number of in-application streams to create for the specified streaming source.
  1632. CountUpdate *int64 `min:"1" type:"integer"`
  1633. }
  1634. // String returns the string representation
  1635. func (s InputParallelismUpdate) String() string {
  1636. return awsutil.Prettify(s)
  1637. }
  1638. // GoString returns the string representation
  1639. func (s InputParallelismUpdate) GoString() string {
  1640. return s.String()
  1641. }
  1642. // Validate inspects the fields of the type to determine if they are valid.
  1643. func (s *InputParallelismUpdate) Validate() error {
  1644. invalidParams := request.ErrInvalidParams{Context: "InputParallelismUpdate"}
  1645. if s.CountUpdate != nil && *s.CountUpdate < 1 {
  1646. invalidParams.Add(request.NewErrParamMinValue("CountUpdate", 1))
  1647. }
  1648. if invalidParams.Len() > 0 {
  1649. return invalidParams
  1650. }
  1651. return nil
  1652. }
  1653. // Describes updates for the application's input schema.
  1654. type InputSchemaUpdate struct {
  1655. _ struct{} `type:"structure"`
  1656. // A list of RecordColumn objects. Each object describes the mapping of the
  1657. // streaming source element to the corresponding column in the in-application
  1658. // stream.
  1659. RecordColumnUpdates []*RecordColumn `min:"1" type:"list"`
  1660. // Specifies the encoding of the records in the streaming source. For example,
  1661. // UTF-8.
  1662. RecordEncodingUpdate *string `type:"string"`
  1663. // Specifies the format of the records on the streaming source.
  1664. RecordFormatUpdate *RecordFormat `type:"structure"`
  1665. }
  1666. // String returns the string representation
  1667. func (s InputSchemaUpdate) String() string {
  1668. return awsutil.Prettify(s)
  1669. }
  1670. // GoString returns the string representation
  1671. func (s InputSchemaUpdate) GoString() string {
  1672. return s.String()
  1673. }
  1674. // Validate inspects the fields of the type to determine if they are valid.
  1675. func (s *InputSchemaUpdate) Validate() error {
  1676. invalidParams := request.ErrInvalidParams{Context: "InputSchemaUpdate"}
  1677. if s.RecordColumnUpdates != nil && len(s.RecordColumnUpdates) < 1 {
  1678. invalidParams.Add(request.NewErrParamMinLen("RecordColumnUpdates", 1))
  1679. }
  1680. if s.RecordColumnUpdates != nil {
  1681. for i, v := range s.RecordColumnUpdates {
  1682. if v == nil {
  1683. continue
  1684. }
  1685. if err := v.Validate(); err != nil {
  1686. invalidParams.AddNested(fmt.Sprintf("%s[%v]", "RecordColumnUpdates", i), err.(request.ErrInvalidParams))
  1687. }
  1688. }
  1689. }
  1690. if s.RecordFormatUpdate != nil {
  1691. if err := s.RecordFormatUpdate.Validate(); err != nil {
  1692. invalidParams.AddNested("RecordFormatUpdate", err.(request.ErrInvalidParams))
  1693. }
  1694. }
  1695. if invalidParams.Len() > 0 {
  1696. return invalidParams
  1697. }
  1698. return nil
  1699. }
  1700. // Describes the point at which the application reads from the streaming source.
  1701. type InputStartingPositionConfiguration struct {
  1702. _ struct{} `type:"structure"`
  1703. // The starting position on the stream.
  1704. //
  1705. // LATEST - Start reading just after the most recent record in the stream.
  1706. //
  1707. // TRIM_HORIZON - Start reading at the last untrimmed record in the stream,
  1708. // which is the oldest record available in the stream. This option is not available
  1709. // for an Amazon Kinesis Firehose delivery stream.
  1710. //
  1711. // LAST_STOPPED_POINT - Resume reading from where the application last stopped
  1712. // reading.
  1713. InputStartingPosition *string `type:"string" enum:"InputStartingPosition"`
  1714. }
  1715. // String returns the string representation
  1716. func (s InputStartingPositionConfiguration) String() string {
  1717. return awsutil.Prettify(s)
  1718. }
  1719. // GoString returns the string representation
  1720. func (s InputStartingPositionConfiguration) GoString() string {
  1721. return s.String()
  1722. }
  1723. // Describes updates to a specific input configuration (identified by the InputId
  1724. // of an application).
  1725. type InputUpdate struct {
  1726. _ struct{} `type:"structure"`
  1727. // Input ID of the application input to be updated.
  1728. InputId *string `min:"1" type:"string" required:"true"`
  1729. // Describes the parallelism updates (the number in-application streams Kinesis
  1730. // Analytics creates for the specific streaming source).
  1731. InputParallelismUpdate *InputParallelismUpdate `type:"structure"`
  1732. // Describes the data format on the streaming source, and how record elements
  1733. // on the streaming source map to columns of the in-application stream that
  1734. // is created.
  1735. InputSchemaUpdate *InputSchemaUpdate `type:"structure"`
  1736. // If an Amazon Kinesis Firehose delivery stream is the streaming source to
  1737. // be updated, provides an updated stream Amazon Resource Name (ARN) and IAM
  1738. // role ARN.
  1739. KinesisFirehoseInputUpdate *KinesisFirehoseInputUpdate `type:"structure"`
  1740. // If a Amazon Kinesis stream is the streaming source to be updated, provides
  1741. // an updated stream ARN and IAM role ARN.
  1742. KinesisStreamsInputUpdate *KinesisStreamsInputUpdate `type:"structure"`
  1743. // Name prefix for in-application stream(s) that Kinesis Analytics creates for
  1744. // the specific streaming source.
  1745. NamePrefixUpdate *string `min:"1" type:"string"`
  1746. }
  1747. // String returns the string representation
  1748. func (s InputUpdate) String() string {
  1749. return awsutil.Prettify(s)
  1750. }
  1751. // GoString returns the string representation
  1752. func (s InputUpdate) GoString() string {
  1753. return s.String()
  1754. }
  1755. // Validate inspects the fields of the type to determine if they are valid.
  1756. func (s *InputUpdate) Validate() error {
  1757. invalidParams := request.ErrInvalidParams{Context: "InputUpdate"}
  1758. if s.InputId == nil {
  1759. invalidParams.Add(request.NewErrParamRequired("InputId"))
  1760. }
  1761. if s.InputId != nil && len(*s.InputId) < 1 {
  1762. invalidParams.Add(request.NewErrParamMinLen("InputId", 1))
  1763. }
  1764. if s.NamePrefixUpdate != nil && len(*s.NamePrefixUpdate) < 1 {
  1765. invalidParams.Add(request.NewErrParamMinLen("NamePrefixUpdate", 1))
  1766. }
  1767. if s.InputParallelismUpdate != nil {
  1768. if err := s.InputParallelismUpdate.Validate(); err != nil {
  1769. invalidParams.AddNested("InputParallelismUpdate", err.(request.ErrInvalidParams))
  1770. }
  1771. }
  1772. if s.InputSchemaUpdate != nil {
  1773. if err := s.InputSchemaUpdate.Validate(); err != nil {
  1774. invalidParams.AddNested("InputSchemaUpdate", err.(request.ErrInvalidParams))
  1775. }
  1776. }
  1777. if s.KinesisFirehoseInputUpdate != nil {
  1778. if err := s.KinesisFirehoseInputUpdate.Validate(); err != nil {
  1779. invalidParams.AddNested("KinesisFirehoseInputUpdate", err.(request.ErrInvalidParams))
  1780. }
  1781. }
  1782. if s.KinesisStreamsInputUpdate != nil {
  1783. if err := s.KinesisStreamsInputUpdate.Validate(); err != nil {
  1784. invalidParams.AddNested("KinesisStreamsInputUpdate", err.(request.ErrInvalidParams))
  1785. }
  1786. }
  1787. if invalidParams.Len() > 0 {
  1788. return invalidParams
  1789. }
  1790. return nil
  1791. }
  1792. // Provides additional mapping information when JSON is the record format on
  1793. // the streaming source.
  1794. type JSONMappingParameters struct {
  1795. _ struct{} `type:"structure"`
  1796. // Path to the top-level parent that contains the records.
  1797. //
  1798. // For example, consider the following JSON record:
  1799. //
  1800. // In the RecordRowPath, "$" refers to the root and path "$.vehicle.Model"
  1801. // refers to the specific "Model" key in the JSON.
  1802. RecordRowPath *string `type:"string" required:"true"`
  1803. }
  1804. // String returns the string representation
  1805. func (s JSONMappingParameters) String() string {
  1806. return awsutil.Prettify(s)
  1807. }
  1808. // GoString returns the string representation
  1809. func (s JSONMappingParameters) GoString() string {
  1810. return s.String()
  1811. }
  1812. // Validate inspects the fields of the type to determine if they are valid.
  1813. func (s *JSONMappingParameters) Validate() error {
  1814. invalidParams := request.ErrInvalidParams{Context: "JSONMappingParameters"}
  1815. if s.RecordRowPath == nil {
  1816. invalidParams.Add(request.NewErrParamRequired("RecordRowPath"))
  1817. }
  1818. if invalidParams.Len() > 0 {
  1819. return invalidParams
  1820. }
  1821. return nil
  1822. }
  1823. // Identifies an Amazon Kinesis Firehose delivery stream as the streaming source.
  1824. // You provide the Firehose delivery stream's Amazon Resource Name (ARN) and
  1825. // an IAM role ARN that enables Amazon Kinesis Analytics to access the stream
  1826. // on your behalf.
  1827. type KinesisFirehoseInput struct {
  1828. _ struct{} `type:"structure"`
  1829. // ARN of the input Firehose delivery stream.
  1830. ResourceARN *string `min:"1" type:"string" required:"true"`
  1831. // ARN of the IAM role that Amazon Kinesis Analytics can assume to access the
  1832. // stream on your behalf. You need to make sure the role has necessary permissions
  1833. // to access the stream.
  1834. RoleARN *string `min:"1" type:"string" required:"true"`
  1835. }
  1836. // String returns the string representation
  1837. func (s KinesisFirehoseInput) String() string {
  1838. return awsutil.Prettify(s)
  1839. }
  1840. // GoString returns the string representation
  1841. func (s KinesisFirehoseInput) GoString() string {
  1842. return s.String()
  1843. }
  1844. // Validate inspects the fields of the type to determine if they are valid.
  1845. func (s *KinesisFirehoseInput) Validate() error {
  1846. invalidParams := request.ErrInvalidParams{Context: "KinesisFirehoseInput"}
  1847. if s.ResourceARN == nil {
  1848. invalidParams.Add(request.NewErrParamRequired("ResourceARN"))
  1849. }
  1850. if s.ResourceARN != nil && len(*s.ResourceARN) < 1 {
  1851. invalidParams.Add(request.NewErrParamMinLen("ResourceARN", 1))
  1852. }
  1853. if s.RoleARN == nil {
  1854. invalidParams.Add(request.NewErrParamRequired("RoleARN"))
  1855. }
  1856. if s.RoleARN != nil && len(*s.RoleARN) < 1 {
  1857. invalidParams.Add(request.NewErrParamMinLen("RoleARN", 1))
  1858. }
  1859. if invalidParams.Len() > 0 {
  1860. return invalidParams
  1861. }
  1862. return nil
  1863. }
  1864. // Describes the Amazon Kinesis Firehose delivery stream that is configured
  1865. // as the streaming source in the application input configuration.
  1866. type KinesisFirehoseInputDescription struct {
  1867. _ struct{} `type:"structure"`
  1868. // Amazon Resource Name (ARN) of the Amazon Kinesis Firehose delivery stream.
  1869. ResourceARN *string `min:"1" type:"string"`
  1870. // ARN of the IAM role that Amazon Kinesis Analytics assumes to access the stream.
  1871. RoleARN *string `min:"1" type:"string"`
  1872. }
  1873. // String returns the string representation
  1874. func (s KinesisFirehoseInputDescription) String() string {
  1875. return awsutil.Prettify(s)
  1876. }
  1877. // GoString returns the string representation
  1878. func (s KinesisFirehoseInputDescription) GoString() string {
  1879. return s.String()
  1880. }
  1881. // When updating application input configuration, provides information about
  1882. // an Amazon Kinesis Firehose delivery stream as the streaming source.
  1883. type KinesisFirehoseInputUpdate struct {
  1884. _ struct{} `type:"structure"`
  1885. // ARN of the input Amazon Kinesis Firehose delivery stream to read.
  1886. ResourceARNUpdate *string `min:"1" type:"string"`
  1887. // Amazon Resource Name (ARN) of the IAM role that Amazon Kinesis Analytics
  1888. // can assume to access the stream on your behalf. You need to grant necessary
  1889. // permissions to this role.
  1890. RoleARNUpdate *string `min:"1" type:"string"`
  1891. }
  1892. // String returns the string representation
  1893. func (s KinesisFirehoseInputUpdate) String() string {
  1894. return awsutil.Prettify(s)
  1895. }
  1896. // GoString returns the string representation
  1897. func (s KinesisFirehoseInputUpdate) GoString() string {
  1898. return s.String()
  1899. }
  1900. // Validate inspects the fields of the type to determine if they are valid.
  1901. func (s *KinesisFirehoseInputUpdate) Validate() error {
  1902. invalidParams := request.ErrInvalidParams{Context: "KinesisFirehoseInputUpdate"}
  1903. if s.ResourceARNUpdate != nil && len(*s.ResourceARNUpdate) < 1 {
  1904. invalidParams.Add(request.NewErrParamMinLen("ResourceARNUpdate", 1))
  1905. }
  1906. if s.RoleARNUpdate != nil && len(*s.RoleARNUpdate) < 1 {
  1907. invalidParams.Add(request.NewErrParamMinLen("RoleARNUpdate", 1))
  1908. }
  1909. if invalidParams.Len() > 0 {
  1910. return invalidParams
  1911. }
  1912. return nil
  1913. }
  1914. // When configuring application output, identifies an Amazon Kinesis Firehose
  1915. // delivery stream as the destination. You provide the stream Amazon Resource
  1916. // Name (ARN) and an IAM role that enables Amazon Kinesis Analytics to write
  1917. // to the stream on your behalf.
  1918. type KinesisFirehoseOutput struct {
  1919. _ struct{} `type:"structure"`
  1920. // ARN of the destination Amazon Kinesis Firehose delivery stream to write to.
  1921. ResourceARN *string `min:"1" type:"string" required:"true"`
  1922. // ARN of the IAM role that Amazon Kinesis Analytics can assume to write to
  1923. // the destination stream on your behalf. You need to grant the necessary permissions
  1924. // to this role.
  1925. RoleARN *string `min:"1" type:"string" required:"true"`
  1926. }
  1927. // String returns the string representation
  1928. func (s KinesisFirehoseOutput) String() string {
  1929. return awsutil.Prettify(s)
  1930. }
  1931. // GoString returns the string representation
  1932. func (s KinesisFirehoseOutput) GoString() string {
  1933. return s.String()
  1934. }
  1935. // Validate inspects the fields of the type to determine if they are valid.
  1936. func (s *KinesisFirehoseOutput) Validate() error {
  1937. invalidParams := request.ErrInvalidParams{Context: "KinesisFirehoseOutput"}
  1938. if s.ResourceARN == nil {
  1939. invalidParams.Add(request.NewErrParamRequired("ResourceARN"))
  1940. }
  1941. if s.ResourceARN != nil && len(*s.ResourceARN) < 1 {
  1942. invalidParams.Add(request.NewErrParamMinLen("ResourceARN", 1))
  1943. }
  1944. if s.RoleARN == nil {
  1945. invalidParams.Add(request.NewErrParamRequired("RoleARN"))
  1946. }
  1947. if s.RoleARN != nil && len(*s.RoleARN) < 1 {
  1948. invalidParams.Add(request.NewErrParamMinLen("RoleARN", 1))
  1949. }
  1950. if invalidParams.Len() > 0 {
  1951. return invalidParams
  1952. }
  1953. return nil
  1954. }
  1955. // For an application output, describes the Amazon Kinesis Firehose delivery
  1956. // stream configured as its destination.
  1957. type KinesisFirehoseOutputDescription struct {
  1958. _ struct{} `type:"structure"`
  1959. // Amazon Resource Name (ARN) of the Amazon Kinesis Firehose delivery stream.
  1960. ResourceARN *string `min:"1" type:"string"`
  1961. // ARN of the IAM role that Amazon Kinesis Analytics can assume to access the
  1962. // stream.
  1963. RoleARN *string `min:"1" type:"string"`
  1964. }
  1965. // String returns the string representation
  1966. func (s KinesisFirehoseOutputDescription) String() string {
  1967. return awsutil.Prettify(s)
  1968. }
  1969. // GoString returns the string representation
  1970. func (s KinesisFirehoseOutputDescription) GoString() string {
  1971. return s.String()
  1972. }
  1973. // When updating an output configuration using the UpdateApplication operation,
  1974. // provides information about an Amazon Kinesis Firehose delivery stream configured
  1975. // as the destination.
  1976. type KinesisFirehoseOutputUpdate struct {
  1977. _ struct{} `type:"structure"`
  1978. // Amazon Resource Name (ARN) of the Amazon Kinesis Firehose delivery stream
  1979. // to write to.
  1980. ResourceARNUpdate *string `min:"1" type:"string"`
  1981. // ARN of the IAM role that Amazon Kinesis Analytics can assume to access the
  1982. // stream on your behalf. You need to grant necessary permissions to this role.
  1983. RoleARNUpdate *string `min:"1" type:"string"`
  1984. }
  1985. // String returns the string representation
  1986. func (s KinesisFirehoseOutputUpdate) String() string {
  1987. return awsutil.Prettify(s)
  1988. }
  1989. // GoString returns the string representation
  1990. func (s KinesisFirehoseOutputUpdate) GoString() string {
  1991. return s.String()
  1992. }
  1993. // Validate inspects the fields of the type to determine if they are valid.
  1994. func (s *KinesisFirehoseOutputUpdate) Validate() error {
  1995. invalidParams := request.ErrInvalidParams{Context: "KinesisFirehoseOutputUpdate"}
  1996. if s.ResourceARNUpdate != nil && len(*s.ResourceARNUpdate) < 1 {
  1997. invalidParams.Add(request.NewErrParamMinLen("ResourceARNUpdate", 1))
  1998. }
  1999. if s.RoleARNUpdate != nil && len(*s.RoleARNUpdate) < 1 {
  2000. invalidParams.Add(request.NewErrParamMinLen("RoleARNUpdate", 1))
  2001. }
  2002. if invalidParams.Len() > 0 {
  2003. return invalidParams
  2004. }
  2005. return nil
  2006. }
  2007. // Identifies an Amazon Kinesis stream as the streaming source. You provide
  2008. // the stream's ARN and an IAM role ARN that enables Amazon Kinesis Analytics
  2009. // to access the stream on your behalf.
  2010. type KinesisStreamsInput struct {
  2011. _ struct{} `type:"structure"`
  2012. // ARN of the input Amazon Kinesis stream to read.
  2013. ResourceARN *string `min:"1" type:"string" required:"true"`
  2014. // ARN of the IAM role that Amazon Kinesis Analytics can assume to access the
  2015. // stream on your behalf. You need to grant the necessary permissions to this
  2016. // role.
  2017. RoleARN *string `min:"1" type:"string" required:"true"`
  2018. }
  2019. // String returns the string representation
  2020. func (s KinesisStreamsInput) String() string {
  2021. return awsutil.Prettify(s)
  2022. }
  2023. // GoString returns the string representation
  2024. func (s KinesisStreamsInput) GoString() string {
  2025. return s.String()
  2026. }
  2027. // Validate inspects the fields of the type to determine if they are valid.
  2028. func (s *KinesisStreamsInput) Validate() error {
  2029. invalidParams := request.ErrInvalidParams{Context: "KinesisStreamsInput"}
  2030. if s.ResourceARN == nil {
  2031. invalidParams.Add(request.NewErrParamRequired("ResourceARN"))
  2032. }
  2033. if s.ResourceARN != nil && len(*s.ResourceARN) < 1 {
  2034. invalidParams.Add(request.NewErrParamMinLen("ResourceARN", 1))
  2035. }
  2036. if s.RoleARN == nil {
  2037. invalidParams.Add(request.NewErrParamRequired("RoleARN"))
  2038. }
  2039. if s.RoleARN != nil && len(*s.RoleARN) < 1 {
  2040. invalidParams.Add(request.NewErrParamMinLen("RoleARN", 1))
  2041. }
  2042. if invalidParams.Len() > 0 {
  2043. return invalidParams
  2044. }
  2045. return nil
  2046. }
  2047. // Describes the Amazon Kinesis stream that is configured as the streaming source
  2048. // in the application input configuration.
  2049. type KinesisStreamsInputDescription struct {
  2050. _ struct{} `type:"structure"`
  2051. // Amazon Resource Name (ARN) of the Amazon Kinesis stream.
  2052. ResourceARN *string `min:"1" type:"string"`
  2053. // ARN of the IAM role that Amazon Kinesis Analytics can assume to access the
  2054. // stream.
  2055. RoleARN *string `min:"1" type:"string"`
  2056. }
  2057. // String returns the string representation
  2058. func (s KinesisStreamsInputDescription) String() string {
  2059. return awsutil.Prettify(s)
  2060. }
  2061. // GoString returns the string representation
  2062. func (s KinesisStreamsInputDescription) GoString() string {
  2063. return s.String()
  2064. }
  2065. // When updating application input configuration, provides information about
  2066. // an Amazon Kinesis stream as the streaming source.
  2067. type KinesisStreamsInputUpdate struct {
  2068. _ struct{} `type:"structure"`
  2069. // Amazon Resource Name (ARN) of the input Amazon Kinesis stream to read.
  2070. ResourceARNUpdate *string `min:"1" type:"string"`
  2071. // ARN of the IAM role that Amazon Kinesis Analytics can assume to access the
  2072. // stream on your behalf. You need to grant the necessary permissions to this
  2073. // role.
  2074. RoleARNUpdate *string `min:"1" type:"string"`
  2075. }
  2076. // String returns the string representation
  2077. func (s KinesisStreamsInputUpdate) String() string {
  2078. return awsutil.Prettify(s)
  2079. }
  2080. // GoString returns the string representation
  2081. func (s KinesisStreamsInputUpdate) GoString() string {
  2082. return s.String()
  2083. }
  2084. // Validate inspects the fields of the type to determine if they are valid.
  2085. func (s *KinesisStreamsInputUpdate) Validate() error {
  2086. invalidParams := request.ErrInvalidParams{Context: "KinesisStreamsInputUpdate"}
  2087. if s.ResourceARNUpdate != nil && len(*s.ResourceARNUpdate) < 1 {
  2088. invalidParams.Add(request.NewErrParamMinLen("ResourceARNUpdate", 1))
  2089. }
  2090. if s.RoleARNUpdate != nil && len(*s.RoleARNUpdate) < 1 {
  2091. invalidParams.Add(request.NewErrParamMinLen("RoleARNUpdate", 1))
  2092. }
  2093. if invalidParams.Len() > 0 {
  2094. return invalidParams
  2095. }
  2096. return nil
  2097. }
  2098. // When configuring application output, identifies a Amazon Kinesis stream as
  2099. // the destination. You provide the stream Amazon Resource Name (ARN) and also
  2100. // an IAM role ARN that Amazon Kinesis Analytics can use to write to the stream
  2101. // on your behalf.
  2102. type KinesisStreamsOutput struct {
  2103. _ struct{} `type:"structure"`
  2104. // ARN of the destination Amazon Kinesis stream to write to.
  2105. ResourceARN *string `min:"1" type:"string" required:"true"`
  2106. // ARN of the IAM role that Amazon Kinesis Analytics can assume to write to
  2107. // the destination stream on your behalf. You need to grant the necessary permissions
  2108. // to this role.
  2109. RoleARN *string `min:"1" type:"string" required:"true"`
  2110. }
  2111. // String returns the string representation
  2112. func (s KinesisStreamsOutput) String() string {
  2113. return awsutil.Prettify(s)
  2114. }
  2115. // GoString returns the string representation
  2116. func (s KinesisStreamsOutput) GoString() string {
  2117. return s.String()
  2118. }
  2119. // Validate inspects the fields of the type to determine if they are valid.
  2120. func (s *KinesisStreamsOutput) Validate() error {
  2121. invalidParams := request.ErrInvalidParams{Context: "KinesisStreamsOutput"}
  2122. if s.ResourceARN == nil {
  2123. invalidParams.Add(request.NewErrParamRequired("ResourceARN"))
  2124. }
  2125. if s.ResourceARN != nil && len(*s.ResourceARN) < 1 {
  2126. invalidParams.Add(request.NewErrParamMinLen("ResourceARN", 1))
  2127. }
  2128. if s.RoleARN == nil {
  2129. invalidParams.Add(request.NewErrParamRequired("RoleARN"))
  2130. }
  2131. if s.RoleARN != nil && len(*s.RoleARN) < 1 {
  2132. invalidParams.Add(request.NewErrParamMinLen("RoleARN", 1))
  2133. }
  2134. if invalidParams.Len() > 0 {
  2135. return invalidParams
  2136. }
  2137. return nil
  2138. }
  2139. // For an application output, describes the Amazon Kinesis stream configured
  2140. // as its destination.
  2141. type KinesisStreamsOutputDescription struct {
  2142. _ struct{} `type:"structure"`
  2143. // Amazon Resource Name (ARN) of the Amazon Kinesis stream.
  2144. ResourceARN *string `min:"1" type:"string"`
  2145. // ARN of the IAM role that Amazon Kinesis Analytics can assume to access the
  2146. // stream.
  2147. RoleARN *string `min:"1" type:"string"`
  2148. }
  2149. // String returns the string representation
  2150. func (s KinesisStreamsOutputDescription) String() string {
  2151. return awsutil.Prettify(s)
  2152. }
  2153. // GoString returns the string representation
  2154. func (s KinesisStreamsOutputDescription) GoString() string {
  2155. return s.String()
  2156. }
  2157. // When updating an output configuration using the UpdateApplication operation,
  2158. // provides information about an Amazon Kinesis stream configured as the destination.
  2159. type KinesisStreamsOutputUpdate struct {
  2160. _ struct{} `type:"structure"`
  2161. // Amazon Resource Name (ARN) of the Amazon Kinesis stream where you want to
  2162. // write the output.
  2163. ResourceARNUpdate *string `min:"1" type:"string"`
  2164. // ARN of the IAM role that Amazon Kinesis Analytics can assume to access the
  2165. // stream on your behalf. You need to grant the necessary permissions to this
  2166. // role.
  2167. RoleARNUpdate *string `min:"1" type:"string"`
  2168. }
  2169. // String returns the string representation
  2170. func (s KinesisStreamsOutputUpdate) String() string {
  2171. return awsutil.Prettify(s)
  2172. }
  2173. // GoString returns the string representation
  2174. func (s KinesisStreamsOutputUpdate) GoString() string {
  2175. return s.String()
  2176. }
  2177. // Validate inspects the fields of the type to determine if they are valid.
  2178. func (s *KinesisStreamsOutputUpdate) Validate() error {
  2179. invalidParams := request.ErrInvalidParams{Context: "KinesisStreamsOutputUpdate"}
  2180. if s.ResourceARNUpdate != nil && len(*s.ResourceARNUpdate) < 1 {
  2181. invalidParams.Add(request.NewErrParamMinLen("ResourceARNUpdate", 1))
  2182. }
  2183. if s.RoleARNUpdate != nil && len(*s.RoleARNUpdate) < 1 {
  2184. invalidParams.Add(request.NewErrParamMinLen("RoleARNUpdate", 1))
  2185. }
  2186. if invalidParams.Len() > 0 {
  2187. return invalidParams
  2188. }
  2189. return nil
  2190. }
  2191. type ListApplicationsInput struct {
  2192. _ struct{} `type:"structure"`
  2193. // Name of the application to start the list with. When using pagination to
  2194. // retrieve the list, you don't need to specify this parameter in the first
  2195. // request. However, in subsequent requests, you add the last application name
  2196. // from the previous response to get the next page of applications.
  2197. ExclusiveStartApplicationName *string `min:"1" type:"string"`
  2198. // Maximum number of applications to list.
  2199. Limit *int64 `min:"1" type:"integer"`
  2200. }
  2201. // String returns the string representation
  2202. func (s ListApplicationsInput) String() string {
  2203. return awsutil.Prettify(s)
  2204. }
  2205. // GoString returns the string representation
  2206. func (s ListApplicationsInput) GoString() string {
  2207. return s.String()
  2208. }
  2209. // Validate inspects the fields of the type to determine if they are valid.
  2210. func (s *ListApplicationsInput) Validate() error {
  2211. invalidParams := request.ErrInvalidParams{Context: "ListApplicationsInput"}
  2212. if s.ExclusiveStartApplicationName != nil && len(*s.ExclusiveStartApplicationName) < 1 {
  2213. invalidParams.Add(request.NewErrParamMinLen("ExclusiveStartApplicationName", 1))
  2214. }
  2215. if s.Limit != nil && *s.Limit < 1 {
  2216. invalidParams.Add(request.NewErrParamMinValue("Limit", 1))
  2217. }
  2218. if invalidParams.Len() > 0 {
  2219. return invalidParams
  2220. }
  2221. return nil
  2222. }
  2223. type ListApplicationsOutput struct {
  2224. _ struct{} `type:"structure"`
  2225. // List of ApplicationSummary objects.
  2226. ApplicationSummaries []*ApplicationSummary `type:"list" required:"true"`
  2227. // Returns true if there are more applications to retrieve.
  2228. HasMoreApplications *bool `type:"boolean" required:"true"`
  2229. }
  2230. // String returns the string representation
  2231. func (s ListApplicationsOutput) String() string {
  2232. return awsutil.Prettify(s)
  2233. }
  2234. // GoString returns the string representation
  2235. func (s ListApplicationsOutput) GoString() string {
  2236. return s.String()
  2237. }
  2238. // When configuring application input at the time of creating or updating an
  2239. // application, provides additional mapping information specific to the record
  2240. // format (such as JSON, CSV, or record fields delimited by some delimiter)
  2241. // on the streaming source.
  2242. type MappingParameters struct {
  2243. _ struct{} `type:"structure"`
  2244. // Provides additional mapping information when the record format uses delimiters
  2245. // (for example, CSV).
  2246. CSVMappingParameters *CSVMappingParameters `type:"structure"`
  2247. // Provides additional mapping information when JSON is the record format on
  2248. // the streaming source.
  2249. JSONMappingParameters *JSONMappingParameters `type:"structure"`
  2250. }
  2251. // String returns the string representation
  2252. func (s MappingParameters) String() string {
  2253. return awsutil.Prettify(s)
  2254. }
  2255. // GoString returns the string representation
  2256. func (s MappingParameters) GoString() string {
  2257. return s.String()
  2258. }
  2259. // Validate inspects the fields of the type to determine if they are valid.
  2260. func (s *MappingParameters) Validate() error {
  2261. invalidParams := request.ErrInvalidParams{Context: "MappingParameters"}
  2262. if s.CSVMappingParameters != nil {
  2263. if err := s.CSVMappingParameters.Validate(); err != nil {
  2264. invalidParams.AddNested("CSVMappingParameters", err.(request.ErrInvalidParams))
  2265. }
  2266. }
  2267. if s.JSONMappingParameters != nil {
  2268. if err := s.JSONMappingParameters.Validate(); err != nil {
  2269. invalidParams.AddNested("JSONMappingParameters", err.(request.ErrInvalidParams))
  2270. }
  2271. }
  2272. if invalidParams.Len() > 0 {
  2273. return invalidParams
  2274. }
  2275. return nil
  2276. }
  2277. // Describes application output configuration in which you identify an in-application
  2278. // stream and a destination where you want the in-application stream data to
  2279. // be written. The destination can be an Amazon Kinesis stream or an Amazon
  2280. // Kinesis Firehose delivery stream.
  2281. //
  2282. // You can configure your application to write output to up to five destinations.
  2283. type Output struct {
  2284. _ struct{} `type:"structure"`
  2285. // Describes the data format when records are written to the destination. For
  2286. // more information, see Configuring Application Output (http://docs.aws.amazon.com/kinesisanalytics/latest/dev/how-it-works-output.html).
  2287. DestinationSchema *DestinationSchema `type:"structure" required:"true"`
  2288. // Identifies an Amazon Kinesis Firehose delivery stream as the destination.
  2289. KinesisFirehoseOutput *KinesisFirehoseOutput `type:"structure"`
  2290. // Identifies an Amazon Kinesis stream as the destination.
  2291. KinesisStreamsOutput *KinesisStreamsOutput `type:"structure"`
  2292. // Name of the in-application stream.
  2293. Name *string `min:"1" type:"string" required:"true"`
  2294. }
  2295. // String returns the string representation
  2296. func (s Output) String() string {
  2297. return awsutil.Prettify(s)
  2298. }
  2299. // GoString returns the string representation
  2300. func (s Output) GoString() string {
  2301. return s.String()
  2302. }
  2303. // Validate inspects the fields of the type to determine if they are valid.
  2304. func (s *Output) Validate() error {
  2305. invalidParams := request.ErrInvalidParams{Context: "Output"}
  2306. if s.DestinationSchema == nil {
  2307. invalidParams.Add(request.NewErrParamRequired("DestinationSchema"))
  2308. }
  2309. if s.Name == nil {
  2310. invalidParams.Add(request.NewErrParamRequired("Name"))
  2311. }
  2312. if s.Name != nil && len(*s.Name) < 1 {
  2313. invalidParams.Add(request.NewErrParamMinLen("Name", 1))
  2314. }
  2315. if s.KinesisFirehoseOutput != nil {
  2316. if err := s.KinesisFirehoseOutput.Validate(); err != nil {
  2317. invalidParams.AddNested("KinesisFirehoseOutput", err.(request.ErrInvalidParams))
  2318. }
  2319. }
  2320. if s.KinesisStreamsOutput != nil {
  2321. if err := s.KinesisStreamsOutput.Validate(); err != nil {
  2322. invalidParams.AddNested("KinesisStreamsOutput", err.(request.ErrInvalidParams))
  2323. }
  2324. }
  2325. if invalidParams.Len() > 0 {
  2326. return invalidParams
  2327. }
  2328. return nil
  2329. }
  2330. // Describes the application output configuration, which includes the in-application
  2331. // stream name and the destination where the stream data is written. The destination
  2332. // can be an Amazon Kinesis stream or an Amazon Kinesis Firehose delivery stream.
  2333. type OutputDescription struct {
  2334. _ struct{} `type:"structure"`
  2335. // Data format used for writing data to the destination.
  2336. DestinationSchema *DestinationSchema `type:"structure"`
  2337. // Describes the Amazon Kinesis Firehose delivery stream configured as the destination
  2338. // where output is written.
  2339. KinesisFirehoseOutputDescription *KinesisFirehoseOutputDescription `type:"structure"`
  2340. // Describes Amazon Kinesis stream configured as the destination where output
  2341. // is written.
  2342. KinesisStreamsOutputDescription *KinesisStreamsOutputDescription `type:"structure"`
  2343. // Name of the in-application stream configured as output.
  2344. Name *string `min:"1" type:"string"`
  2345. // A unique identifier for the output configuration.
  2346. OutputId *string `min:"1" type:"string"`
  2347. }
  2348. // String returns the string representation
  2349. func (s OutputDescription) String() string {
  2350. return awsutil.Prettify(s)
  2351. }
  2352. // GoString returns the string representation
  2353. func (s OutputDescription) GoString() string {
  2354. return s.String()
  2355. }
  2356. // Describes updates to the output configuration identified by the OutputId.
  2357. type OutputUpdate struct {
  2358. _ struct{} `type:"structure"`
  2359. // Describes the data format when records are written to the destination. For
  2360. // more information, see Configuring Application Output (http://docs.aws.amazon.com/kinesisanalytics/latest/dev/how-it-works-output.html).
  2361. DestinationSchemaUpdate *DestinationSchema `type:"structure"`
  2362. // Describes a Amazon Kinesis Firehose delivery stream as the destination for
  2363. // the output.
  2364. KinesisFirehoseOutputUpdate *KinesisFirehoseOutputUpdate `type:"structure"`
  2365. // Describes an Amazon Kinesis stream as the destination for the output.
  2366. KinesisStreamsOutputUpdate *KinesisStreamsOutputUpdate `type:"structure"`
  2367. // If you want to specify a different in-application stream for this output
  2368. // configuration, use this field to specify the new in-application stream name.
  2369. NameUpdate *string `min:"1" type:"string"`
  2370. // Identifies the specific output configuration that you want to update.
  2371. OutputId *string `min:"1" type:"string" required:"true"`
  2372. }
  2373. // String returns the string representation
  2374. func (s OutputUpdate) String() string {
  2375. return awsutil.Prettify(s)
  2376. }
  2377. // GoString returns the string representation
  2378. func (s OutputUpdate) GoString() string {
  2379. return s.String()
  2380. }
  2381. // Validate inspects the fields of the type to determine if they are valid.
  2382. func (s *OutputUpdate) Validate() error {
  2383. invalidParams := request.ErrInvalidParams{Context: "OutputUpdate"}
  2384. if s.NameUpdate != nil && len(*s.NameUpdate) < 1 {
  2385. invalidParams.Add(request.NewErrParamMinLen("NameUpdate", 1))
  2386. }
  2387. if s.OutputId == nil {
  2388. invalidParams.Add(request.NewErrParamRequired("OutputId"))
  2389. }
  2390. if s.OutputId != nil && len(*s.OutputId) < 1 {
  2391. invalidParams.Add(request.NewErrParamMinLen("OutputId", 1))
  2392. }
  2393. if s.KinesisFirehoseOutputUpdate != nil {
  2394. if err := s.KinesisFirehoseOutputUpdate.Validate(); err != nil {
  2395. invalidParams.AddNested("KinesisFirehoseOutputUpdate", err.(request.ErrInvalidParams))
  2396. }
  2397. }
  2398. if s.KinesisStreamsOutputUpdate != nil {
  2399. if err := s.KinesisStreamsOutputUpdate.Validate(); err != nil {
  2400. invalidParams.AddNested("KinesisStreamsOutputUpdate", err.(request.ErrInvalidParams))
  2401. }
  2402. }
  2403. if invalidParams.Len() > 0 {
  2404. return invalidParams
  2405. }
  2406. return nil
  2407. }
  2408. // Describes the mapping of each data element in the streaming source to the
  2409. // corresponding column in the in-application stream.
  2410. //
  2411. // Also used to describe the format of the reference data source.
  2412. type RecordColumn struct {
  2413. _ struct{} `type:"structure"`
  2414. // Reference to the data element in the streaming input of the reference data
  2415. // source.
  2416. Mapping *string `type:"string"`
  2417. // Name of the column created in the in-application input stream or reference
  2418. // table.
  2419. Name *string `type:"string" required:"true"`
  2420. // Type of column created in the in-application input stream or reference table.
  2421. SqlType *string `type:"string" required:"true"`
  2422. }
  2423. // String returns the string representation
  2424. func (s RecordColumn) String() string {
  2425. return awsutil.Prettify(s)
  2426. }
  2427. // GoString returns the string representation
  2428. func (s RecordColumn) GoString() string {
  2429. return s.String()
  2430. }
  2431. // Validate inspects the fields of the type to determine if they are valid.
  2432. func (s *RecordColumn) Validate() error {
  2433. invalidParams := request.ErrInvalidParams{Context: "RecordColumn"}
  2434. if s.Name == nil {
  2435. invalidParams.Add(request.NewErrParamRequired("Name"))
  2436. }
  2437. if s.SqlType == nil {
  2438. invalidParams.Add(request.NewErrParamRequired("SqlType"))
  2439. }
  2440. if invalidParams.Len() > 0 {
  2441. return invalidParams
  2442. }
  2443. return nil
  2444. }
  2445. // Describes the record format and relevant mapping information that should
  2446. // be applied to schematize the records on the stream.
  2447. type RecordFormat struct {
  2448. _ struct{} `type:"structure"`
  2449. // When configuring application input at the time of creating or updating an
  2450. // application, provides additional mapping information specific to the record
  2451. // format (such as JSON, CSV, or record fields delimited by some delimiter)
  2452. // on the streaming source.
  2453. MappingParameters *MappingParameters `type:"structure"`
  2454. // The type of record format.
  2455. RecordFormatType *string `type:"string" required:"true" enum:"RecordFormatType"`
  2456. }
  2457. // String returns the string representation
  2458. func (s RecordFormat) String() string {
  2459. return awsutil.Prettify(s)
  2460. }
  2461. // GoString returns the string representation
  2462. func (s RecordFormat) GoString() string {
  2463. return s.String()
  2464. }
  2465. // Validate inspects the fields of the type to determine if they are valid.
  2466. func (s *RecordFormat) Validate() error {
  2467. invalidParams := request.ErrInvalidParams{Context: "RecordFormat"}
  2468. if s.RecordFormatType == nil {
  2469. invalidParams.Add(request.NewErrParamRequired("RecordFormatType"))
  2470. }
  2471. if s.MappingParameters != nil {
  2472. if err := s.MappingParameters.Validate(); err != nil {
  2473. invalidParams.AddNested("MappingParameters", err.(request.ErrInvalidParams))
  2474. }
  2475. }
  2476. if invalidParams.Len() > 0 {
  2477. return invalidParams
  2478. }
  2479. return nil
  2480. }
  2481. // Describes the reference data source by providing the source information (S3
  2482. // bucket name and object key name), the resulting in-application table name
  2483. // that is created, and the necessary schema to map the data elements in the
  2484. // Amazon S3 object to the in-application table.
  2485. type ReferenceDataSource struct {
  2486. _ struct{} `type:"structure"`
  2487. // Describes the format of the data in the streaming source, and how each data
  2488. // element maps to corresponding columns created in the in-application stream.
  2489. ReferenceSchema *SourceSchema `type:"structure" required:"true"`
  2490. // Identifies the S3 bucket and object that contains the reference data. Also
  2491. // identifies the IAM role Amazon Kinesis Analytics can assume to read this
  2492. // object on your behalf.
  2493. //
  2494. // An Amazon Kinesis Analytics application loads reference data only once.
  2495. // If the data changes, you call the UpdateApplication operation to trigger
  2496. // reloading of data into your application.
  2497. S3ReferenceDataSource *S3ReferenceDataSource `type:"structure"`
  2498. // Name of the in-application table to create.
  2499. TableName *string `min:"1" type:"string" required:"true"`
  2500. }
  2501. // String returns the string representation
  2502. func (s ReferenceDataSource) String() string {
  2503. return awsutil.Prettify(s)
  2504. }
  2505. // GoString returns the string representation
  2506. func (s ReferenceDataSource) GoString() string {
  2507. return s.String()
  2508. }
  2509. // Validate inspects the fields of the type to determine if they are valid.
  2510. func (s *ReferenceDataSource) Validate() error {
  2511. invalidParams := request.ErrInvalidParams{Context: "ReferenceDataSource"}
  2512. if s.ReferenceSchema == nil {
  2513. invalidParams.Add(request.NewErrParamRequired("ReferenceSchema"))
  2514. }
  2515. if s.TableName == nil {
  2516. invalidParams.Add(request.NewErrParamRequired("TableName"))
  2517. }
  2518. if s.TableName != nil && len(*s.TableName) < 1 {
  2519. invalidParams.Add(request.NewErrParamMinLen("TableName", 1))
  2520. }
  2521. if s.ReferenceSchema != nil {
  2522. if err := s.ReferenceSchema.Validate(); err != nil {
  2523. invalidParams.AddNested("ReferenceSchema", err.(request.ErrInvalidParams))
  2524. }
  2525. }
  2526. if s.S3ReferenceDataSource != nil {
  2527. if err := s.S3ReferenceDataSource.Validate(); err != nil {
  2528. invalidParams.AddNested("S3ReferenceDataSource", err.(request.ErrInvalidParams))
  2529. }
  2530. }
  2531. if invalidParams.Len() > 0 {
  2532. return invalidParams
  2533. }
  2534. return nil
  2535. }
  2536. // Describes the reference data source configured for an application.
  2537. type ReferenceDataSourceDescription struct {
  2538. _ struct{} `type:"structure"`
  2539. // ID of the reference data source. This is the ID that Amazon Kinesis Analytics
  2540. // assigns when you add the reference data source to your application using
  2541. // the AddApplicationReferenceDataSource operation.
  2542. ReferenceId *string `min:"1" type:"string" required:"true"`
  2543. // Describes the format of the data in the streaming source, and how each data
  2544. // element maps to corresponding columns created in the in-application stream.
  2545. ReferenceSchema *SourceSchema `type:"structure"`
  2546. // Provides the S3 bucket name, the object key name that contains the reference
  2547. // data. It also provides the Amazon Resource Name (ARN) of the IAM role that
  2548. // Amazon Kinesis Analytics can assume to read the Amazon S3 object and populate
  2549. // the in-application reference table.
  2550. S3ReferenceDataSourceDescription *S3ReferenceDataSourceDescription `type:"structure" required:"true"`
  2551. // The in-application table name created by the specific reference data source
  2552. // configuration.
  2553. TableName *string `min:"1" type:"string" required:"true"`
  2554. }
  2555. // String returns the string representation
  2556. func (s ReferenceDataSourceDescription) String() string {
  2557. return awsutil.Prettify(s)
  2558. }
  2559. // GoString returns the string representation
  2560. func (s ReferenceDataSourceDescription) GoString() string {
  2561. return s.String()
  2562. }
  2563. // When you update a reference data source configuration for an application,
  2564. // this object provides all the updated values (such as the source bucket name
  2565. // and object key name), the in-application table name that is created, and
  2566. // updated mapping information that maps the data in the Amazon S3 object to
  2567. // the in-application reference table that is created.
  2568. type ReferenceDataSourceUpdate struct {
  2569. _ struct{} `type:"structure"`
  2570. // ID of the reference data source being updated. You can use the DescribeApplication
  2571. // operation to get this value.
  2572. ReferenceId *string `min:"1" type:"string" required:"true"`
  2573. // Describes the format of the data in the streaming source, and how each data
  2574. // element maps to corresponding columns created in the in-application stream.
  2575. ReferenceSchemaUpdate *SourceSchema `type:"structure"`
  2576. // Describes the S3 bucket name, object key name, and IAM role that Amazon Kinesis
  2577. // Analytics can assume to read the Amazon S3 object on your behalf and populate
  2578. // the in-application reference table.
  2579. S3ReferenceDataSourceUpdate *S3ReferenceDataSourceUpdate `type:"structure"`
  2580. // In-application table name that is created by this update.
  2581. TableNameUpdate *string `min:"1" type:"string"`
  2582. }
  2583. // String returns the string representation
  2584. func (s ReferenceDataSourceUpdate) String() string {
  2585. return awsutil.Prettify(s)
  2586. }
  2587. // GoString returns the string representation
  2588. func (s ReferenceDataSourceUpdate) GoString() string {
  2589. return s.String()
  2590. }
  2591. // Validate inspects the fields of the type to determine if they are valid.
  2592. func (s *ReferenceDataSourceUpdate) Validate() error {
  2593. invalidParams := request.ErrInvalidParams{Context: "ReferenceDataSourceUpdate"}
  2594. if s.ReferenceId == nil {
  2595. invalidParams.Add(request.NewErrParamRequired("ReferenceId"))
  2596. }
  2597. if s.ReferenceId != nil && len(*s.ReferenceId) < 1 {
  2598. invalidParams.Add(request.NewErrParamMinLen("ReferenceId", 1))
  2599. }
  2600. if s.TableNameUpdate != nil && len(*s.TableNameUpdate) < 1 {
  2601. invalidParams.Add(request.NewErrParamMinLen("TableNameUpdate", 1))
  2602. }
  2603. if s.ReferenceSchemaUpdate != nil {
  2604. if err := s.ReferenceSchemaUpdate.Validate(); err != nil {
  2605. invalidParams.AddNested("ReferenceSchemaUpdate", err.(request.ErrInvalidParams))
  2606. }
  2607. }
  2608. if s.S3ReferenceDataSourceUpdate != nil {
  2609. if err := s.S3ReferenceDataSourceUpdate.Validate(); err != nil {
  2610. invalidParams.AddNested("S3ReferenceDataSourceUpdate", err.(request.ErrInvalidParams))
  2611. }
  2612. }
  2613. if invalidParams.Len() > 0 {
  2614. return invalidParams
  2615. }
  2616. return nil
  2617. }
  2618. // Identifies the S3 bucket and object that contains the reference data. Also
  2619. // identifies the IAM role Amazon Kinesis Analytics can assume to read this
  2620. // object on your behalf.
  2621. //
  2622. // An Amazon Kinesis Analytics application loads reference data only once.
  2623. // If the data changes, you call the UpdateApplication operation to trigger
  2624. // reloading of data into your application.
  2625. type S3ReferenceDataSource struct {
  2626. _ struct{} `type:"structure"`
  2627. // Amazon Resource Name (ARN) of the S3 bucket.
  2628. BucketARN *string `min:"1" type:"string" required:"true"`
  2629. // Object key name containing reference data.
  2630. FileKey *string `type:"string" required:"true"`
  2631. // ARN of the IAM role that the service can assume to read data on your behalf.
  2632. // This role must have permission for the s3:GetObject action on the object
  2633. // and trust policy that allows Amazon Kinesis Analytics service principal to
  2634. // assume this role.
  2635. ReferenceRoleARN *string `min:"1" type:"string" required:"true"`
  2636. }
  2637. // String returns the string representation
  2638. func (s S3ReferenceDataSource) String() string {
  2639. return awsutil.Prettify(s)
  2640. }
  2641. // GoString returns the string representation
  2642. func (s S3ReferenceDataSource) GoString() string {
  2643. return s.String()
  2644. }
  2645. // Validate inspects the fields of the type to determine if they are valid.
  2646. func (s *S3ReferenceDataSource) Validate() error {
  2647. invalidParams := request.ErrInvalidParams{Context: "S3ReferenceDataSource"}
  2648. if s.BucketARN == nil {
  2649. invalidParams.Add(request.NewErrParamRequired("BucketARN"))
  2650. }
  2651. if s.BucketARN != nil && len(*s.BucketARN) < 1 {
  2652. invalidParams.Add(request.NewErrParamMinLen("BucketARN", 1))
  2653. }
  2654. if s.FileKey == nil {
  2655. invalidParams.Add(request.NewErrParamRequired("FileKey"))
  2656. }
  2657. if s.ReferenceRoleARN == nil {
  2658. invalidParams.Add(request.NewErrParamRequired("ReferenceRoleARN"))
  2659. }
  2660. if s.ReferenceRoleARN != nil && len(*s.ReferenceRoleARN) < 1 {
  2661. invalidParams.Add(request.NewErrParamMinLen("ReferenceRoleARN", 1))
  2662. }
  2663. if invalidParams.Len() > 0 {
  2664. return invalidParams
  2665. }
  2666. return nil
  2667. }
  2668. // Provides the bucket name and object key name that stores the reference data.
  2669. type S3ReferenceDataSourceDescription struct {
  2670. _ struct{} `type:"structure"`
  2671. // Amazon Resource Name (ARN) of the S3 bucket.
  2672. BucketARN *string `min:"1" type:"string" required:"true"`
  2673. // Amazon S3 object key name.
  2674. FileKey *string `type:"string" required:"true"`
  2675. // ARN of the IAM role that Amazon Kinesis Analytics can assume to read the
  2676. // Amazon S3 object on your behalf to populate the in-application reference
  2677. // table.
  2678. ReferenceRoleARN *string `min:"1" type:"string" required:"true"`
  2679. }
  2680. // String returns the string representation
  2681. func (s S3ReferenceDataSourceDescription) String() string {
  2682. return awsutil.Prettify(s)
  2683. }
  2684. // GoString returns the string representation
  2685. func (s S3ReferenceDataSourceDescription) GoString() string {
  2686. return s.String()
  2687. }
  2688. // Describes the S3 bucket name, object key name, and IAM role that Amazon Kinesis
  2689. // Analytics can assume to read the Amazon S3 object on your behalf and populate
  2690. // the in-application reference table.
  2691. type S3ReferenceDataSourceUpdate struct {
  2692. _ struct{} `type:"structure"`
  2693. // Amazon Resource Name (ARN) of the S3 bucket.
  2694. BucketARNUpdate *string `min:"1" type:"string"`
  2695. // Object key name.
  2696. FileKeyUpdate *string `type:"string"`
  2697. // ARN of the IAM role that Amazon Kinesis Analytics can assume to read the
  2698. // Amazon S3 object and populate the in-application.
  2699. ReferenceRoleARNUpdate *string `min:"1" type:"string"`
  2700. }
  2701. // String returns the string representation
  2702. func (s S3ReferenceDataSourceUpdate) String() string {
  2703. return awsutil.Prettify(s)
  2704. }
  2705. // GoString returns the string representation
  2706. func (s S3ReferenceDataSourceUpdate) GoString() string {
  2707. return s.String()
  2708. }
  2709. // Validate inspects the fields of the type to determine if they are valid.
  2710. func (s *S3ReferenceDataSourceUpdate) Validate() error {
  2711. invalidParams := request.ErrInvalidParams{Context: "S3ReferenceDataSourceUpdate"}
  2712. if s.BucketARNUpdate != nil && len(*s.BucketARNUpdate) < 1 {
  2713. invalidParams.Add(request.NewErrParamMinLen("BucketARNUpdate", 1))
  2714. }
  2715. if s.ReferenceRoleARNUpdate != nil && len(*s.ReferenceRoleARNUpdate) < 1 {
  2716. invalidParams.Add(request.NewErrParamMinLen("ReferenceRoleARNUpdate", 1))
  2717. }
  2718. if invalidParams.Len() > 0 {
  2719. return invalidParams
  2720. }
  2721. return nil
  2722. }
  2723. // Describes the format of the data in the streaming source, and how each data
  2724. // element maps to corresponding columns created in the in-application stream.
  2725. type SourceSchema struct {
  2726. _ struct{} `type:"structure"`
  2727. // A list of RecordColumn objects.
  2728. RecordColumns []*RecordColumn `min:"1" type:"list" required:"true"`
  2729. // Specifies the encoding of the records in the streaming source. For example,
  2730. // UTF-8.
  2731. RecordEncoding *string `type:"string"`
  2732. // Specifies the format of the records on the streaming source.
  2733. RecordFormat *RecordFormat `type:"structure" required:"true"`
  2734. }
  2735. // String returns the string representation
  2736. func (s SourceSchema) String() string {
  2737. return awsutil.Prettify(s)
  2738. }
  2739. // GoString returns the string representation
  2740. func (s SourceSchema) GoString() string {
  2741. return s.String()
  2742. }
  2743. // Validate inspects the fields of the type to determine if they are valid.
  2744. func (s *SourceSchema) Validate() error {
  2745. invalidParams := request.ErrInvalidParams{Context: "SourceSchema"}
  2746. if s.RecordColumns == nil {
  2747. invalidParams.Add(request.NewErrParamRequired("RecordColumns"))
  2748. }
  2749. if s.RecordColumns != nil && len(s.RecordColumns) < 1 {
  2750. invalidParams.Add(request.NewErrParamMinLen("RecordColumns", 1))
  2751. }
  2752. if s.RecordFormat == nil {
  2753. invalidParams.Add(request.NewErrParamRequired("RecordFormat"))
  2754. }
  2755. if s.RecordColumns != nil {
  2756. for i, v := range s.RecordColumns {
  2757. if v == nil {
  2758. continue
  2759. }
  2760. if err := v.Validate(); err != nil {
  2761. invalidParams.AddNested(fmt.Sprintf("%s[%v]", "RecordColumns", i), err.(request.ErrInvalidParams))
  2762. }
  2763. }
  2764. }
  2765. if s.RecordFormat != nil {
  2766. if err := s.RecordFormat.Validate(); err != nil {
  2767. invalidParams.AddNested("RecordFormat", err.(request.ErrInvalidParams))
  2768. }
  2769. }
  2770. if invalidParams.Len() > 0 {
  2771. return invalidParams
  2772. }
  2773. return nil
  2774. }
  2775. type StartApplicationInput struct {
  2776. _ struct{} `type:"structure"`
  2777. // Name of the application.
  2778. ApplicationName *string `min:"1" type:"string" required:"true"`
  2779. // Identifies the specific input, by ID, that the application starts consuming.
  2780. // Amazon Kinesis Analytics starts reading the streaming source associated with
  2781. // the input. You can also specify where in the streaming source you want Amazon
  2782. // Kinesis Analytics to start reading.
  2783. InputConfigurations []*InputConfiguration `type:"list" required:"true"`
  2784. }
  2785. // String returns the string representation
  2786. func (s StartApplicationInput) String() string {
  2787. return awsutil.Prettify(s)
  2788. }
  2789. // GoString returns the string representation
  2790. func (s StartApplicationInput) GoString() string {
  2791. return s.String()
  2792. }
  2793. // Validate inspects the fields of the type to determine if they are valid.
  2794. func (s *StartApplicationInput) Validate() error {
  2795. invalidParams := request.ErrInvalidParams{Context: "StartApplicationInput"}
  2796. if s.ApplicationName == nil {
  2797. invalidParams.Add(request.NewErrParamRequired("ApplicationName"))
  2798. }
  2799. if s.ApplicationName != nil && len(*s.ApplicationName) < 1 {
  2800. invalidParams.Add(request.NewErrParamMinLen("ApplicationName", 1))
  2801. }
  2802. if s.InputConfigurations == nil {
  2803. invalidParams.Add(request.NewErrParamRequired("InputConfigurations"))
  2804. }
  2805. if s.InputConfigurations != nil {
  2806. for i, v := range s.InputConfigurations {
  2807. if v == nil {
  2808. continue
  2809. }
  2810. if err := v.Validate(); err != nil {
  2811. invalidParams.AddNested(fmt.Sprintf("%s[%v]", "InputConfigurations", i), err.(request.ErrInvalidParams))
  2812. }
  2813. }
  2814. }
  2815. if invalidParams.Len() > 0 {
  2816. return invalidParams
  2817. }
  2818. return nil
  2819. }
  2820. type StartApplicationOutput struct {
  2821. _ struct{} `type:"structure"`
  2822. }
  2823. // String returns the string representation
  2824. func (s StartApplicationOutput) String() string {
  2825. return awsutil.Prettify(s)
  2826. }
  2827. // GoString returns the string representation
  2828. func (s StartApplicationOutput) GoString() string {
  2829. return s.String()
  2830. }
  2831. type StopApplicationInput struct {
  2832. _ struct{} `type:"structure"`
  2833. // Name of the running application to stop.
  2834. ApplicationName *string `min:"1" type:"string" required:"true"`
  2835. }
  2836. // String returns the string representation
  2837. func (s StopApplicationInput) String() string {
  2838. return awsutil.Prettify(s)
  2839. }
  2840. // GoString returns the string representation
  2841. func (s StopApplicationInput) GoString() string {
  2842. return s.String()
  2843. }
  2844. // Validate inspects the fields of the type to determine if they are valid.
  2845. func (s *StopApplicationInput) Validate() error {
  2846. invalidParams := request.ErrInvalidParams{Context: "StopApplicationInput"}
  2847. if s.ApplicationName == nil {
  2848. invalidParams.Add(request.NewErrParamRequired("ApplicationName"))
  2849. }
  2850. if s.ApplicationName != nil && len(*s.ApplicationName) < 1 {
  2851. invalidParams.Add(request.NewErrParamMinLen("ApplicationName", 1))
  2852. }
  2853. if invalidParams.Len() > 0 {
  2854. return invalidParams
  2855. }
  2856. return nil
  2857. }
  2858. type StopApplicationOutput struct {
  2859. _ struct{} `type:"structure"`
  2860. }
  2861. // String returns the string representation
  2862. func (s StopApplicationOutput) String() string {
  2863. return awsutil.Prettify(s)
  2864. }
  2865. // GoString returns the string representation
  2866. func (s StopApplicationOutput) GoString() string {
  2867. return s.String()
  2868. }
  2869. type UpdateApplicationInput struct {
  2870. _ struct{} `type:"structure"`
  2871. // Name of the Kinesis Analytics application to update.
  2872. ApplicationName *string `min:"1" type:"string" required:"true"`
  2873. // Describes application updates.
  2874. ApplicationUpdate *ApplicationUpdate `type:"structure" required:"true"`
  2875. // The current application version ID. You can use the DescribeApplication operation
  2876. // to get this value.
  2877. CurrentApplicationVersionId *int64 `min:"1" type:"long" required:"true"`
  2878. }
  2879. // String returns the string representation
  2880. func (s UpdateApplicationInput) String() string {
  2881. return awsutil.Prettify(s)
  2882. }
  2883. // GoString returns the string representation
  2884. func (s UpdateApplicationInput) GoString() string {
  2885. return s.String()
  2886. }
  2887. // Validate inspects the fields of the type to determine if they are valid.
  2888. func (s *UpdateApplicationInput) Validate() error {
  2889. invalidParams := request.ErrInvalidParams{Context: "UpdateApplicationInput"}
  2890. if s.ApplicationName == nil {
  2891. invalidParams.Add(request.NewErrParamRequired("ApplicationName"))
  2892. }
  2893. if s.ApplicationName != nil && len(*s.ApplicationName) < 1 {
  2894. invalidParams.Add(request.NewErrParamMinLen("ApplicationName", 1))
  2895. }
  2896. if s.ApplicationUpdate == nil {
  2897. invalidParams.Add(request.NewErrParamRequired("ApplicationUpdate"))
  2898. }
  2899. if s.CurrentApplicationVersionId == nil {
  2900. invalidParams.Add(request.NewErrParamRequired("CurrentApplicationVersionId"))
  2901. }
  2902. if s.CurrentApplicationVersionId != nil && *s.CurrentApplicationVersionId < 1 {
  2903. invalidParams.Add(request.NewErrParamMinValue("CurrentApplicationVersionId", 1))
  2904. }
  2905. if s.ApplicationUpdate != nil {
  2906. if err := s.ApplicationUpdate.Validate(); err != nil {
  2907. invalidParams.AddNested("ApplicationUpdate", err.(request.ErrInvalidParams))
  2908. }
  2909. }
  2910. if invalidParams.Len() > 0 {
  2911. return invalidParams
  2912. }
  2913. return nil
  2914. }
  2915. type UpdateApplicationOutput struct {
  2916. _ struct{} `type:"structure"`
  2917. }
  2918. // String returns the string representation
  2919. func (s UpdateApplicationOutput) String() string {
  2920. return awsutil.Prettify(s)
  2921. }
  2922. // GoString returns the string representation
  2923. func (s UpdateApplicationOutput) GoString() string {
  2924. return s.String()
  2925. }
  2926. const (
  2927. // @enum ApplicationStatus
  2928. ApplicationStatusDeleting = "DELETING"
  2929. // @enum ApplicationStatus
  2930. ApplicationStatusStarting = "STARTING"
  2931. // @enum ApplicationStatus
  2932. ApplicationStatusStopping = "STOPPING"
  2933. // @enum ApplicationStatus
  2934. ApplicationStatusReady = "READY"
  2935. // @enum ApplicationStatus
  2936. ApplicationStatusRunning = "RUNNING"
  2937. // @enum ApplicationStatus
  2938. ApplicationStatusUpdating = "UPDATING"
  2939. )
  2940. const (
  2941. // @enum InputStartingPosition
  2942. InputStartingPositionNow = "NOW"
  2943. // @enum InputStartingPosition
  2944. InputStartingPositionTrimHorizon = "TRIM_HORIZON"
  2945. // @enum InputStartingPosition
  2946. InputStartingPositionLastStoppedPoint = "LAST_STOPPED_POINT"
  2947. )
  2948. const (
  2949. // @enum RecordFormatType
  2950. RecordFormatTypeJson = "JSON"
  2951. // @enum RecordFormatType
  2952. RecordFormatTypeCsv = "CSV"
  2953. )