forked from aws/aws-sdk-go
-
Notifications
You must be signed in to change notification settings - Fork 0
/
api.go
3457 lines (2953 loc) · 119 KB
/
api.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
// THIS FILE IS AUTOMATICALLY GENERATED. DO NOT EDIT.
// Package kinesisanalytics provides a client for Amazon Kinesis Analytics.
package kinesisanalytics
import (
"fmt"
"time"
"github.com/aws/aws-sdk-go/aws/awsutil"
"github.com/aws/aws-sdk-go/aws/request"
)
const opAddApplicationInput = "AddApplicationInput"
// AddApplicationInputRequest generates a "aws/request.Request" representing the
// client's request for the AddApplicationInput operation. The "output" return
// value can be used to capture response data after the request's "Send" method
// is called.
//
// Creating a request object using this method should be used when you want to inject
// custom logic into the request's lifecycle using a custom handler, or if you want to
// access properties on the request object before or after sending the request. If
// you just want the service response, call the AddApplicationInput method directly
// instead.
//
// Note: You must call the "Send" method on the returned request object in order
// to execute the request.
//
// // Example sending a request using the AddApplicationInputRequest method.
// req, resp := client.AddApplicationInputRequest(params)
//
// err := req.Send()
// if err == nil { // resp is now filled
// fmt.Println(resp)
// }
//
func (c *KinesisAnalytics) AddApplicationInputRequest(input *AddApplicationInputInput) (req *request.Request, output *AddApplicationInputOutput) {
op := &request.Operation{
Name: opAddApplicationInput,
HTTPMethod: "POST",
HTTPPath: "/",
}
if input == nil {
input = &AddApplicationInputInput{}
}
req = c.newRequest(op, input, output)
output = &AddApplicationInputOutput{}
req.Data = output
return
}
// Adds a streaming source to your Amazon Kinesis application. For conceptual
// information, see Configuring Application Input (http://docs.aws.amazon.com/kinesisanalytics/latest/dev/how-it-works-input.html).
//
// You can add a streaming source either when you create an application or
// you can use this operation to add a streaming source after you create an
// application. For more information, see CreateApplication.
//
// Any configuration update, including adding a streaming source using this
// operation, results in a new version of the application. You can use the DescribeApplication
// operation to find the current application version.
//
// This operation requires permissions to perform the kinesisanalytics:AddApplicationInput
// action.
func (c *KinesisAnalytics) AddApplicationInput(input *AddApplicationInputInput) (*AddApplicationInputOutput, error) {
req, out := c.AddApplicationInputRequest(input)
err := req.Send()
return out, err
}
const opAddApplicationOutput = "AddApplicationOutput"
// AddApplicationOutputRequest generates a "aws/request.Request" representing the
// client's request for the AddApplicationOutput operation. The "output" return
// value can be used to capture response data after the request's "Send" method
// is called.
//
// Creating a request object using this method should be used when you want to inject
// custom logic into the request's lifecycle using a custom handler, or if you want to
// access properties on the request object before or after sending the request. If
// you just want the service response, call the AddApplicationOutput method directly
// instead.
//
// Note: You must call the "Send" method on the returned request object in order
// to execute the request.
//
// // Example sending a request using the AddApplicationOutputRequest method.
// req, resp := client.AddApplicationOutputRequest(params)
//
// err := req.Send()
// if err == nil { // resp is now filled
// fmt.Println(resp)
// }
//
func (c *KinesisAnalytics) AddApplicationOutputRequest(input *AddApplicationOutputInput) (req *request.Request, output *AddApplicationOutputOutput) {
op := &request.Operation{
Name: opAddApplicationOutput,
HTTPMethod: "POST",
HTTPPath: "/",
}
if input == nil {
input = &AddApplicationOutputInput{}
}
req = c.newRequest(op, input, output)
output = &AddApplicationOutputOutput{}
req.Data = output
return
}
// Adds an external destination to your Amazon Kinesis Analytics application.
//
// If you want Amazon Kinesis Analytics to deliver data from an in-application
// stream within your application to an external destination (such as an Amazon
// Kinesis stream or a Firehose delivery stream), you add the relevant configuration
// to your application using this operation. You can configure one or more outputs
// for your application. Each output configuration maps an in-application stream
// and an external destination.
//
// You can use one of the output configurations to deliver data from your
// in-application error stream to an external destination so that you can analyze
// the errors. For conceptual information, see Understanding Application Output
// (Destination) (http://docs.aws.amazon.com/kinesisanalytics/latest/dev/how-it-works-output.html).
//
// Note that any configuration update, including adding a streaming source
// using this operation, results in a new version of the application. You can
// use the DescribeApplication operation to find the current application version.
//
// For the limits on the number of application inputs and outputs you can configure,
// see Limits (http://docs.aws.amazon.com/kinesisanalytics/latest/dev/limits.html).
//
// This operation requires permissions to perform the kinesisanalytics:AddApplicationOutput
// action.
func (c *KinesisAnalytics) AddApplicationOutput(input *AddApplicationOutputInput) (*AddApplicationOutputOutput, error) {
req, out := c.AddApplicationOutputRequest(input)
err := req.Send()
return out, err
}
const opAddApplicationReferenceDataSource = "AddApplicationReferenceDataSource"
// AddApplicationReferenceDataSourceRequest generates a "aws/request.Request" representing the
// client's request for the AddApplicationReferenceDataSource operation. The "output" return
// value can be used to capture response data after the request's "Send" method
// is called.
//
// Creating a request object using this method should be used when you want to inject
// custom logic into the request's lifecycle using a custom handler, or if you want to
// access properties on the request object before or after sending the request. If
// you just want the service response, call the AddApplicationReferenceDataSource method directly
// instead.
//
// Note: You must call the "Send" method on the returned request object in order
// to execute the request.
//
// // Example sending a request using the AddApplicationReferenceDataSourceRequest method.
// req, resp := client.AddApplicationReferenceDataSourceRequest(params)
//
// err := req.Send()
// if err == nil { // resp is now filled
// fmt.Println(resp)
// }
//
func (c *KinesisAnalytics) AddApplicationReferenceDataSourceRequest(input *AddApplicationReferenceDataSourceInput) (req *request.Request, output *AddApplicationReferenceDataSourceOutput) {
op := &request.Operation{
Name: opAddApplicationReferenceDataSource,
HTTPMethod: "POST",
HTTPPath: "/",
}
if input == nil {
input = &AddApplicationReferenceDataSourceInput{}
}
req = c.newRequest(op, input, output)
output = &AddApplicationReferenceDataSourceOutput{}
req.Data = output
return
}
// Adds a reference data source to an existing application.
//
// Amazon Kinesis Analytics reads reference data (that is, an Amazon S3 object)
// and creates an in-application table within your application. In the request,
// you provide the source (S3 bucket name and object key name), name of the
// in-application table to create, and the necessary mapping information that
// describes how data in Amazon S3 object maps to columns in the resulting in-application
// table.
//
// For conceptual information, see Configuring Application Input (http://docs.aws.amazon.com/kinesisanalytics/latest/dev/how-it-works-input.html).
// For the limits on data sources you can add to your application, see Limits
// (http://docs.aws.amazon.com/kinesisanalytics/latest/dev/limits.html).
//
// This operation requires permissions to perform the kinesisanalytics:AddApplicationOutput
// action.
func (c *KinesisAnalytics) AddApplicationReferenceDataSource(input *AddApplicationReferenceDataSourceInput) (*AddApplicationReferenceDataSourceOutput, error) {
req, out := c.AddApplicationReferenceDataSourceRequest(input)
err := req.Send()
return out, err
}
const opCreateApplication = "CreateApplication"
// CreateApplicationRequest generates a "aws/request.Request" representing the
// client's request for the CreateApplication operation. The "output" return
// value can be used to capture response data after the request's "Send" method
// is called.
//
// Creating a request object using this method should be used when you want to inject
// custom logic into the request's lifecycle using a custom handler, or if you want to
// access properties on the request object before or after sending the request. If
// you just want the service response, call the CreateApplication method directly
// instead.
//
// Note: You must call the "Send" method on the returned request object in order
// to execute the request.
//
// // Example sending a request using the CreateApplicationRequest method.
// req, resp := client.CreateApplicationRequest(params)
//
// err := req.Send()
// if err == nil { // resp is now filled
// fmt.Println(resp)
// }
//
func (c *KinesisAnalytics) CreateApplicationRequest(input *CreateApplicationInput) (req *request.Request, output *CreateApplicationOutput) {
op := &request.Operation{
Name: opCreateApplication,
HTTPMethod: "POST",
HTTPPath: "/",
}
if input == nil {
input = &CreateApplicationInput{}
}
req = c.newRequest(op, input, output)
output = &CreateApplicationOutput{}
req.Data = output
return
}
// Creates an Amazon Kinesis Analytics application. You can configure each application
// with one streaming source as input, application code to process the input,
// and up to five streaming destinations where you want Amazon Kinesis Analytics
// to write the output data from your application. For an overview, see How
// it Works (http://docs.aws.amazon.com/kinesisanalytics/latest/dev/how-it-works.html).
//
// In the input configuration, you map the streaming source to an in-application
// stream, which you can think of as a constantly updating table. In the mapping,
// you must provide a schema for the in-application stream and map each data
// column in the in-application stream to a data element in the streaming source,
// with the option of renaming, casting and dropping columns as desired.
//
// Your application code is one or more SQL statements that read input data,
// transform it, and generate output. Your application code can create one or
// more SQL artifacts like SQL streams or pumps.
//
// In the output configuration, you can configure the application to write
// data from in-application streams created in your applications to up to five
// streaming destinations.
//
// To read data from your source stream or write data to destination streams,
// Amazon Kinesis Analytics needs your permissions. You grant these permissions
// by creating IAM roles. This operation requires permissions to perform the
// kinesisanalytics:CreateApplication action.
//
// For introductory exercises to create an Amazon Kinesis Analytics application,
// see Getting Started (http://docs.aws.amazon.com/kinesisanalytics/latest/dev/getting-started.html).
func (c *KinesisAnalytics) CreateApplication(input *CreateApplicationInput) (*CreateApplicationOutput, error) {
req, out := c.CreateApplicationRequest(input)
err := req.Send()
return out, err
}
const opDeleteApplication = "DeleteApplication"
// DeleteApplicationRequest generates a "aws/request.Request" representing the
// client's request for the DeleteApplication operation. The "output" return
// value can be used to capture response data after the request's "Send" method
// is called.
//
// Creating a request object using this method should be used when you want to inject
// custom logic into the request's lifecycle using a custom handler, or if you want to
// access properties on the request object before or after sending the request. If
// you just want the service response, call the DeleteApplication method directly
// instead.
//
// Note: You must call the "Send" method on the returned request object in order
// to execute the request.
//
// // Example sending a request using the DeleteApplicationRequest method.
// req, resp := client.DeleteApplicationRequest(params)
//
// err := req.Send()
// if err == nil { // resp is now filled
// fmt.Println(resp)
// }
//
func (c *KinesisAnalytics) DeleteApplicationRequest(input *DeleteApplicationInput) (req *request.Request, output *DeleteApplicationOutput) {
op := &request.Operation{
Name: opDeleteApplication,
HTTPMethod: "POST",
HTTPPath: "/",
}
if input == nil {
input = &DeleteApplicationInput{}
}
req = c.newRequest(op, input, output)
output = &DeleteApplicationOutput{}
req.Data = output
return
}
// Deletes the specified application. Amazon Kinesis Analytics halts application
// execution and deletes the application, including any application artifacts
// (such as in-application streams, reference table, and application code).
//
// This operation requires permissions to perform the kinesisanalytics:DeleteApplication
// action.
func (c *KinesisAnalytics) DeleteApplication(input *DeleteApplicationInput) (*DeleteApplicationOutput, error) {
req, out := c.DeleteApplicationRequest(input)
err := req.Send()
return out, err
}
const opDeleteApplicationOutput = "DeleteApplicationOutput"
// DeleteApplicationOutputRequest generates a "aws/request.Request" representing the
// client's request for the DeleteApplicationOutput operation. The "output" return
// value can be used to capture response data after the request's "Send" method
// is called.
//
// Creating a request object using this method should be used when you want to inject
// custom logic into the request's lifecycle using a custom handler, or if you want to
// access properties on the request object before or after sending the request. If
// you just want the service response, call the DeleteApplicationOutput method directly
// instead.
//
// Note: You must call the "Send" method on the returned request object in order
// to execute the request.
//
// // Example sending a request using the DeleteApplicationOutputRequest method.
// req, resp := client.DeleteApplicationOutputRequest(params)
//
// err := req.Send()
// if err == nil { // resp is now filled
// fmt.Println(resp)
// }
//
func (c *KinesisAnalytics) DeleteApplicationOutputRequest(input *DeleteApplicationOutputInput) (req *request.Request, output *DeleteApplicationOutputOutput) {
op := &request.Operation{
Name: opDeleteApplicationOutput,
HTTPMethod: "POST",
HTTPPath: "/",
}
if input == nil {
input = &DeleteApplicationOutputInput{}
}
req = c.newRequest(op, input, output)
output = &DeleteApplicationOutputOutput{}
req.Data = output
return
}
// Deletes output destination configuration from your application configuration.
// Amazon Kinesis Analytics will no longer write data from the corresponding
// in-application stream to the external output destination.
//
// This operation requires permissions to perform the kinesisanalytics:DeleteApplicationOutput
// action.
func (c *KinesisAnalytics) DeleteApplicationOutput(input *DeleteApplicationOutputInput) (*DeleteApplicationOutputOutput, error) {
req, out := c.DeleteApplicationOutputRequest(input)
err := req.Send()
return out, err
}
const opDeleteApplicationReferenceDataSource = "DeleteApplicationReferenceDataSource"
// DeleteApplicationReferenceDataSourceRequest generates a "aws/request.Request" representing the
// client's request for the DeleteApplicationReferenceDataSource operation. The "output" return
// value can be used to capture response data after the request's "Send" method
// is called.
//
// Creating a request object using this method should be used when you want to inject
// custom logic into the request's lifecycle using a custom handler, or if you want to
// access properties on the request object before or after sending the request. If
// you just want the service response, call the DeleteApplicationReferenceDataSource method directly
// instead.
//
// Note: You must call the "Send" method on the returned request object in order
// to execute the request.
//
// // Example sending a request using the DeleteApplicationReferenceDataSourceRequest method.
// req, resp := client.DeleteApplicationReferenceDataSourceRequest(params)
//
// err := req.Send()
// if err == nil { // resp is now filled
// fmt.Println(resp)
// }
//
func (c *KinesisAnalytics) DeleteApplicationReferenceDataSourceRequest(input *DeleteApplicationReferenceDataSourceInput) (req *request.Request, output *DeleteApplicationReferenceDataSourceOutput) {
op := &request.Operation{
Name: opDeleteApplicationReferenceDataSource,
HTTPMethod: "POST",
HTTPPath: "/",
}
if input == nil {
input = &DeleteApplicationReferenceDataSourceInput{}
}
req = c.newRequest(op, input, output)
output = &DeleteApplicationReferenceDataSourceOutput{}
req.Data = output
return
}
// Deletes a reference data source configuration from the specified application
// configuration.
//
// If the application is running, Amazon Kinesis Analytics immediately removes
// the in-application table that you created using the AddApplicationReferenceDataSource
// operation.
//
// This operation requires permissions to perform the kinesisanalytics.DeleteApplicationReferenceDataSource
// action.
func (c *KinesisAnalytics) DeleteApplicationReferenceDataSource(input *DeleteApplicationReferenceDataSourceInput) (*DeleteApplicationReferenceDataSourceOutput, error) {
req, out := c.DeleteApplicationReferenceDataSourceRequest(input)
err := req.Send()
return out, err
}
const opDescribeApplication = "DescribeApplication"
// DescribeApplicationRequest generates a "aws/request.Request" representing the
// client's request for the DescribeApplication operation. The "output" return
// value can be used to capture response data after the request's "Send" method
// is called.
//
// Creating a request object using this method should be used when you want to inject
// custom logic into the request's lifecycle using a custom handler, or if you want to
// access properties on the request object before or after sending the request. If
// you just want the service response, call the DescribeApplication method directly
// instead.
//
// Note: You must call the "Send" method on the returned request object in order
// to execute the request.
//
// // Example sending a request using the DescribeApplicationRequest method.
// req, resp := client.DescribeApplicationRequest(params)
//
// err := req.Send()
// if err == nil { // resp is now filled
// fmt.Println(resp)
// }
//
func (c *KinesisAnalytics) DescribeApplicationRequest(input *DescribeApplicationInput) (req *request.Request, output *DescribeApplicationOutput) {
op := &request.Operation{
Name: opDescribeApplication,
HTTPMethod: "POST",
HTTPPath: "/",
}
if input == nil {
input = &DescribeApplicationInput{}
}
req = c.newRequest(op, input, output)
output = &DescribeApplicationOutput{}
req.Data = output
return
}
// Returns information about a specific Amazon Kinesis Analytics application.
//
// If you want to retrieve a list of all applications in your account, use
// the ListApplications operation.
//
// This operation requires permissions to perform the kinesisanalytics:DescribeApplication
// action. You can use DescribeApplication to get the current application versionId,
// which you need to call other operations such as Update.
func (c *KinesisAnalytics) DescribeApplication(input *DescribeApplicationInput) (*DescribeApplicationOutput, error) {
req, out := c.DescribeApplicationRequest(input)
err := req.Send()
return out, err
}
const opDiscoverInputSchema = "DiscoverInputSchema"
// DiscoverInputSchemaRequest generates a "aws/request.Request" representing the
// client's request for the DiscoverInputSchema operation. The "output" return
// value can be used to capture response data after the request's "Send" method
// is called.
//
// Creating a request object using this method should be used when you want to inject
// custom logic into the request's lifecycle using a custom handler, or if you want to
// access properties on the request object before or after sending the request. If
// you just want the service response, call the DiscoverInputSchema method directly
// instead.
//
// Note: You must call the "Send" method on the returned request object in order
// to execute the request.
//
// // Example sending a request using the DiscoverInputSchemaRequest method.
// req, resp := client.DiscoverInputSchemaRequest(params)
//
// err := req.Send()
// if err == nil { // resp is now filled
// fmt.Println(resp)
// }
//
func (c *KinesisAnalytics) DiscoverInputSchemaRequest(input *DiscoverInputSchemaInput) (req *request.Request, output *DiscoverInputSchemaOutput) {
op := &request.Operation{
Name: opDiscoverInputSchema,
HTTPMethod: "POST",
HTTPPath: "/",
}
if input == nil {
input = &DiscoverInputSchemaInput{}
}
req = c.newRequest(op, input, output)
output = &DiscoverInputSchemaOutput{}
req.Data = output
return
}
// Infers a schema by evaluating sample records on the specified streaming source
// (Amazon Kinesis stream or Amazon Kinesis Firehose delivery stream). In the
// response, the operation returns the inferred schema and also the sample records
// that the operation used to infer the schema.
//
// You can use the inferred schema when configuring a streaming source for
// your application. For conceptual information, see Configuring Application
// Input (http://docs.aws.amazon.com/kinesisanalytics/latest/dev/how-it-works-input.html).
// Note that when you create an application using the Amazon Kinesis Analytics
// console, the console uses this operation to infer a schema and show it in
// the console user interface.
//
// This operation requires permissions to perform the kinesisanalytics:DiscoverInputSchema
// action.
func (c *KinesisAnalytics) DiscoverInputSchema(input *DiscoverInputSchemaInput) (*DiscoverInputSchemaOutput, error) {
req, out := c.DiscoverInputSchemaRequest(input)
err := req.Send()
return out, err
}
const opListApplications = "ListApplications"
// ListApplicationsRequest generates a "aws/request.Request" representing the
// client's request for the ListApplications operation. The "output" return
// value can be used to capture response data after the request's "Send" method
// is called.
//
// Creating a request object using this method should be used when you want to inject
// custom logic into the request's lifecycle using a custom handler, or if you want to
// access properties on the request object before or after sending the request. If
// you just want the service response, call the ListApplications method directly
// instead.
//
// Note: You must call the "Send" method on the returned request object in order
// to execute the request.
//
// // Example sending a request using the ListApplicationsRequest method.
// req, resp := client.ListApplicationsRequest(params)
//
// err := req.Send()
// if err == nil { // resp is now filled
// fmt.Println(resp)
// }
//
func (c *KinesisAnalytics) ListApplicationsRequest(input *ListApplicationsInput) (req *request.Request, output *ListApplicationsOutput) {
op := &request.Operation{
Name: opListApplications,
HTTPMethod: "POST",
HTTPPath: "/",
}
if input == nil {
input = &ListApplicationsInput{}
}
req = c.newRequest(op, input, output)
output = &ListApplicationsOutput{}
req.Data = output
return
}
// Returns a list of Amazon Kinesis Analytics applications in your account.
// For each application, the response includes the application name, Amazon
// Resource Name (ARN), and status. If the response returns the HasMoreApplications
// value as true, you can send another request by adding the ExclusiveStartApplicationName
// in the request body, and set the value of this to the last application name
// from the previous response.
//
// If you want detailed information about a specific application, use DescribeApplication.
//
// This operation requires permissions to perform the kinesisanalytics:ListApplications
// action.
func (c *KinesisAnalytics) ListApplications(input *ListApplicationsInput) (*ListApplicationsOutput, error) {
req, out := c.ListApplicationsRequest(input)
err := req.Send()
return out, err
}
const opStartApplication = "StartApplication"
// StartApplicationRequest generates a "aws/request.Request" representing the
// client's request for the StartApplication operation. The "output" return
// value can be used to capture response data after the request's "Send" method
// is called.
//
// Creating a request object using this method should be used when you want to inject
// custom logic into the request's lifecycle using a custom handler, or if you want to
// access properties on the request object before or after sending the request. If
// you just want the service response, call the StartApplication method directly
// instead.
//
// Note: You must call the "Send" method on the returned request object in order
// to execute the request.
//
// // Example sending a request using the StartApplicationRequest method.
// req, resp := client.StartApplicationRequest(params)
//
// err := req.Send()
// if err == nil { // resp is now filled
// fmt.Println(resp)
// }
//
func (c *KinesisAnalytics) StartApplicationRequest(input *StartApplicationInput) (req *request.Request, output *StartApplicationOutput) {
op := &request.Operation{
Name: opStartApplication,
HTTPMethod: "POST",
HTTPPath: "/",
}
if input == nil {
input = &StartApplicationInput{}
}
req = c.newRequest(op, input, output)
output = &StartApplicationOutput{}
req.Data = output
return
}
// Starts the specified Amazon Kinesis Analytics application. After creating
// an application, you must exclusively call this operation to start your application.
//
// After the application starts, it begins consuming the input data, processes
// it, and writes the output to the configured destination.
//
// The application status must be READY for you to start an application. You
// can get the application status in the console or using the DescribeApplication
// operation.
//
// After you start the application, you can stop the application from processing
// the input by calling the StopApplication operation.
//
// This operation requires permissions to perform the kinesisanalytics:StartApplication
// action.
func (c *KinesisAnalytics) StartApplication(input *StartApplicationInput) (*StartApplicationOutput, error) {
req, out := c.StartApplicationRequest(input)
err := req.Send()
return out, err
}
const opStopApplication = "StopApplication"
// StopApplicationRequest generates a "aws/request.Request" representing the
// client's request for the StopApplication operation. The "output" return
// value can be used to capture response data after the request's "Send" method
// is called.
//
// Creating a request object using this method should be used when you want to inject
// custom logic into the request's lifecycle using a custom handler, or if you want to
// access properties on the request object before or after sending the request. If
// you just want the service response, call the StopApplication method directly
// instead.
//
// Note: You must call the "Send" method on the returned request object in order
// to execute the request.
//
// // Example sending a request using the StopApplicationRequest method.
// req, resp := client.StopApplicationRequest(params)
//
// err := req.Send()
// if err == nil { // resp is now filled
// fmt.Println(resp)
// }
//
func (c *KinesisAnalytics) StopApplicationRequest(input *StopApplicationInput) (req *request.Request, output *StopApplicationOutput) {
op := &request.Operation{
Name: opStopApplication,
HTTPMethod: "POST",
HTTPPath: "/",
}
if input == nil {
input = &StopApplicationInput{}
}
req = c.newRequest(op, input, output)
output = &StopApplicationOutput{}
req.Data = output
return
}
// Stops the application from processing input data. You can stop an application
// only if it is in the running state. You can use the DescribeApplication operation
// to find the application state. After the application is stopped, Amazon Kinesis
// Analytics stops reading data from the input, the application stops processing
// data, and there is no output written to the destination.
//
// This operation requires permissions to perform the kinesisanalytics:StopApplication
// action.
func (c *KinesisAnalytics) StopApplication(input *StopApplicationInput) (*StopApplicationOutput, error) {
req, out := c.StopApplicationRequest(input)
err := req.Send()
return out, err
}
const opUpdateApplication = "UpdateApplication"
// UpdateApplicationRequest generates a "aws/request.Request" representing the
// client's request for the UpdateApplication operation. The "output" return
// value can be used to capture response data after the request's "Send" method
// is called.
//
// Creating a request object using this method should be used when you want to inject
// custom logic into the request's lifecycle using a custom handler, or if you want to
// access properties on the request object before or after sending the request. If
// you just want the service response, call the UpdateApplication method directly
// instead.
//
// Note: You must call the "Send" method on the returned request object in order
// to execute the request.
//
// // Example sending a request using the UpdateApplicationRequest method.
// req, resp := client.UpdateApplicationRequest(params)
//
// err := req.Send()
// if err == nil { // resp is now filled
// fmt.Println(resp)
// }
//
func (c *KinesisAnalytics) UpdateApplicationRequest(input *UpdateApplicationInput) (req *request.Request, output *UpdateApplicationOutput) {
op := &request.Operation{
Name: opUpdateApplication,
HTTPMethod: "POST",
HTTPPath: "/",
}
if input == nil {
input = &UpdateApplicationInput{}
}
req = c.newRequest(op, input, output)
output = &UpdateApplicationOutput{}
req.Data = output
return
}
// Updates an existing Kinesis Analytics application. Using this API, you can
// update application code, input configuration, and output configuration.
//
// Note that Kinesis Analytics updates the CurrentApplicationVersionId each
// time you update your application.
//
// This opeation requires permission for the kinesisanalytics:UpdateApplication
// action.
func (c *KinesisAnalytics) UpdateApplication(input *UpdateApplicationInput) (*UpdateApplicationOutput, error) {
req, out := c.UpdateApplicationRequest(input)
err := req.Send()
return out, err
}
type AddApplicationInputInput struct {
_ struct{} `type:"structure"`
// Name of your existing Amazon Kinesis Analytics application to which you want
// to add the streaming source.
ApplicationName *string `min:"1" type:"string" required:"true"`
// Current version of your Amazon Kinesis Analytics application. You can use
// the DescribeApplication operation to find the current application version.
CurrentApplicationVersionId *int64 `min:"1" type:"long" required:"true"`
// When you configure the application input, you specify the streaming source,
// the in-application stream name that is created, and the mapping between the
// two. For more information, see Configuring Application Input (http://docs.aws.amazon.com/kinesisanalytics/latest/dev/how-it-works-input.html).
Input *Input `type:"structure" required:"true"`
}
// String returns the string representation
func (s AddApplicationInputInput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s AddApplicationInputInput) GoString() string {
return s.String()
}
// Validate inspects the fields of the type to determine if they are valid.
func (s *AddApplicationInputInput) Validate() error {
invalidParams := request.ErrInvalidParams{Context: "AddApplicationInputInput"}
if s.ApplicationName == nil {
invalidParams.Add(request.NewErrParamRequired("ApplicationName"))
}
if s.ApplicationName != nil && len(*s.ApplicationName) < 1 {
invalidParams.Add(request.NewErrParamMinLen("ApplicationName", 1))
}
if s.CurrentApplicationVersionId == nil {
invalidParams.Add(request.NewErrParamRequired("CurrentApplicationVersionId"))
}
if s.CurrentApplicationVersionId != nil && *s.CurrentApplicationVersionId < 1 {
invalidParams.Add(request.NewErrParamMinValue("CurrentApplicationVersionId", 1))
}
if s.Input == nil {
invalidParams.Add(request.NewErrParamRequired("Input"))
}
if s.Input != nil {
if err := s.Input.Validate(); err != nil {
invalidParams.AddNested("Input", err.(request.ErrInvalidParams))
}
}
if invalidParams.Len() > 0 {
return invalidParams
}
return nil
}
type AddApplicationInputOutput struct {
_ struct{} `type:"structure"`
}
// String returns the string representation
func (s AddApplicationInputOutput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s AddApplicationInputOutput) GoString() string {
return s.String()
}
type AddApplicationOutputInput struct {
_ struct{} `type:"structure"`
// Name of the application to which you want to add the output configuration.
ApplicationName *string `min:"1" type:"string" required:"true"`
// Version of the application to which you want add the output configuration.
// You can use the DescribeApplication operation to get the current application
// version. If the version specified is not the current version, the ConcurrentModificationException
// is returned.
CurrentApplicationVersionId *int64 `min:"1" type:"long" required:"true"`
// An array of objects, each describing one output configuration. In the output
// configuration, you specify the name of an in-application stream, a destination
// (that is, an Amazon Kinesis stream or an Amazon Kinesis Firehose delivery
// stream), and record the formation to use when writing to the destination.
Output *Output `type:"structure" required:"true"`
}
// String returns the string representation
func (s AddApplicationOutputInput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s AddApplicationOutputInput) GoString() string {
return s.String()
}
// Validate inspects the fields of the type to determine if they are valid.
func (s *AddApplicationOutputInput) Validate() error {
invalidParams := request.ErrInvalidParams{Context: "AddApplicationOutputInput"}
if s.ApplicationName == nil {
invalidParams.Add(request.NewErrParamRequired("ApplicationName"))
}
if s.ApplicationName != nil && len(*s.ApplicationName) < 1 {
invalidParams.Add(request.NewErrParamMinLen("ApplicationName", 1))
}
if s.CurrentApplicationVersionId == nil {
invalidParams.Add(request.NewErrParamRequired("CurrentApplicationVersionId"))
}
if s.CurrentApplicationVersionId != nil && *s.CurrentApplicationVersionId < 1 {
invalidParams.Add(request.NewErrParamMinValue("CurrentApplicationVersionId", 1))
}
if s.Output == nil {
invalidParams.Add(request.NewErrParamRequired("Output"))
}
if s.Output != nil {
if err := s.Output.Validate(); err != nil {
invalidParams.AddNested("Output", err.(request.ErrInvalidParams))
}
}
if invalidParams.Len() > 0 {
return invalidParams
}
return nil
}
type AddApplicationOutputOutput struct {
_ struct{} `type:"structure"`
}
// String returns the string representation
func (s AddApplicationOutputOutput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s AddApplicationOutputOutput) GoString() string {
return s.String()
}
type AddApplicationReferenceDataSourceInput struct {
_ struct{} `type:"structure"`
// Name of an existing application.
ApplicationName *string `min:"1" type:"string" required:"true"`
// Version of the application for which you are adding the reference data source.
// You can use the DescribeApplication operation to get the current application
// version. If the version specified is not the current version, the ConcurrentModificationException
// is returned.
CurrentApplicationVersionId *int64 `min:"1" type:"long" required:"true"`
// The reference data source can be an object in your Amazon S3 bucket. Amazon
// Kinesis Analytics reads the object and copies the data into the in-application
// table that is created. You provide an S3 bucket, object key name, and the
// resulting in-application table that is created. You must also provide an
// IAM role with the necessary permissions that Amazon Kinesis Analytics can
// assume to read the object from your S3 bucket on your behalf.
ReferenceDataSource *ReferenceDataSource `type:"structure" required:"true"`
}
// String returns the string representation
func (s AddApplicationReferenceDataSourceInput) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation
func (s AddApplicationReferenceDataSourceInput) GoString() string {
return s.String()
}
// Validate inspects the fields of the type to determine if they are valid.
func (s *AddApplicationReferenceDataSourceInput) Validate() error {
invalidParams := request.ErrInvalidParams{Context: "AddApplicationReferenceDataSourceInput"}
if s.ApplicationName == nil {
invalidParams.Add(request.NewErrParamRequired("ApplicationName"))
}
if s.ApplicationName != nil && len(*s.ApplicationName) < 1 {
invalidParams.Add(request.NewErrParamMinLen("ApplicationName", 1))
}
if s.CurrentApplicationVersionId == nil {
invalidParams.Add(request.NewErrParamRequired("CurrentApplicationVersionId"))
}
if s.CurrentApplicationVersionId != nil && *s.CurrentApplicationVersionId < 1 {
invalidParams.Add(request.NewErrParamMinValue("CurrentApplicationVersionId", 1))
}
if s.ReferenceDataSource == nil {
invalidParams.Add(request.NewErrParamRequired("ReferenceDataSource"))
}
if s.ReferenceDataSource != nil {
if err := s.ReferenceDataSource.Validate(); err != nil {
invalidParams.AddNested("ReferenceDataSource", err.(request.ErrInvalidParams))
}
}
if invalidParams.Len() > 0 {
return invalidParams
}
return nil
}
type AddApplicationReferenceDataSourceOutput struct {
_ struct{} `type:"structure"`
}
// String returns the string representation
func (s AddApplicationReferenceDataSourceOutput) String() string {
return awsutil.Prettify(s)
}