-
Notifications
You must be signed in to change notification settings - Fork 623
/
api_types.go
4474 lines (3578 loc) · 144 KB
/
api_types.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
// Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT.
package glue
import (
"fmt"
"time"
"github.com/aws/aws-sdk-go-v2/aws"
"github.com/aws/aws-sdk-go-v2/internal/awsutil"
)
var _ aws.Config
var _ = awsutil.Prettify
// Defines an action to be initiated by a trigger.
type Action struct {
_ struct{} `type:"structure"`
// The job arguments used when this trigger fires. For this job run, they replace
// the default arguments set in the job definition itself.
//
// You can specify arguments here that your own job-execution script consumes,
// as well as arguments that AWS Glue itself consumes.
//
// For information about how to specify and consume your own Job arguments,
// see the Calling AWS Glue APIs in Python (https://docs.aws.amazon.com/glue/latest/dg/aws-glue-programming-python-calling.html)
// topic in the developer guide.
//
// For information about the key-value pairs that AWS Glue consumes to set up
// your job, see the Special Parameters Used by AWS Glue (https://docs.aws.amazon.com/glue/latest/dg/aws-glue-programming-etl-glue-arguments.html)
// topic in the developer guide.
Arguments map[string]string `type:"map"`
// The name of the crawler to be used with this action.
CrawlerName *string `min:"1" type:"string"`
// The name of a job to be executed.
JobName *string `min:"1" type:"string"`
// Specifies configuration properties of a job run notification.
NotificationProperty *NotificationProperty `type:"structure"`
// The name of the SecurityConfiguration structure to be used with this action.
SecurityConfiguration *string `min:"1" type:"string"`
// The JobRun timeout in minutes. This is the maximum time that a job run can
// consume resources before it is terminated and enters TIMEOUT status. The
// default is 2,880 minutes (48 hours). This overrides the timeout value set
// in the parent job.
Timeout *int64 `min:"1" type:"integer"`
}
// String returns the string representation
func (s Action) String() string {
return awsutil.Prettify(s)
}
// Validate inspects the fields of the type to determine if they are valid.
func (s *Action) Validate() error {
invalidParams := aws.ErrInvalidParams{Context: "Action"}
if s.CrawlerName != nil && len(*s.CrawlerName) < 1 {
invalidParams.Add(aws.NewErrParamMinLen("CrawlerName", 1))
}
if s.JobName != nil && len(*s.JobName) < 1 {
invalidParams.Add(aws.NewErrParamMinLen("JobName", 1))
}
if s.SecurityConfiguration != nil && len(*s.SecurityConfiguration) < 1 {
invalidParams.Add(aws.NewErrParamMinLen("SecurityConfiguration", 1))
}
if s.Timeout != nil && *s.Timeout < 1 {
invalidParams.Add(aws.NewErrParamMinValue("Timeout", 1))
}
if s.NotificationProperty != nil {
if err := s.NotificationProperty.Validate(); err != nil {
invalidParams.AddNested("NotificationProperty", err.(aws.ErrInvalidParams))
}
}
if invalidParams.Len() > 0 {
return invalidParams
}
return nil
}
// Records an error that occurred when attempting to stop a specified job run.
type BatchStopJobRunError struct {
_ struct{} `type:"structure"`
// Specifies details about the error that was encountered.
ErrorDetail *ErrorDetail `type:"structure"`
// The name of the job definition that is used in the job run in question.
JobName *string `min:"1" type:"string"`
// The JobRunId of the job run in question.
JobRunId *string `min:"1" type:"string"`
}
// String returns the string representation
func (s BatchStopJobRunError) String() string {
return awsutil.Prettify(s)
}
// Records a successful request to stop a specified JobRun.
type BatchStopJobRunSuccessfulSubmission struct {
_ struct{} `type:"structure"`
// The name of the job definition used in the job run that was stopped.
JobName *string `min:"1" type:"string"`
// The JobRunId of the job run that was stopped.
JobRunId *string `min:"1" type:"string"`
}
// String returns the string representation
func (s BatchStopJobRunSuccessfulSubmission) String() string {
return awsutil.Prettify(s)
}
// Specifies a table definition in the AWS Glue Data Catalog.
type CatalogEntry struct {
_ struct{} `type:"structure"`
// The database in which the table metadata resides.
//
// DatabaseName is a required field
DatabaseName *string `min:"1" type:"string" required:"true"`
// The name of the table in question.
//
// TableName is a required field
TableName *string `min:"1" type:"string" required:"true"`
}
// String returns the string representation
func (s CatalogEntry) String() string {
return awsutil.Prettify(s)
}
// Validate inspects the fields of the type to determine if they are valid.
func (s *CatalogEntry) Validate() error {
invalidParams := aws.ErrInvalidParams{Context: "CatalogEntry"}
if s.DatabaseName == nil {
invalidParams.Add(aws.NewErrParamRequired("DatabaseName"))
}
if s.DatabaseName != nil && len(*s.DatabaseName) < 1 {
invalidParams.Add(aws.NewErrParamMinLen("DatabaseName", 1))
}
if s.TableName == nil {
invalidParams.Add(aws.NewErrParamRequired("TableName"))
}
if s.TableName != nil && len(*s.TableName) < 1 {
invalidParams.Add(aws.NewErrParamMinLen("TableName", 1))
}
if invalidParams.Len() > 0 {
return invalidParams
}
return nil
}
// A structure containing migration status information.
type CatalogImportStatus struct {
_ struct{} `type:"structure"`
// True if the migration has completed, or False otherwise.
ImportCompleted *bool `type:"boolean"`
// The time that the migration was started.
ImportTime *time.Time `type:"timestamp"`
// The name of the person who initiated the migration.
ImportedBy *string `min:"1" type:"string"`
}
// String returns the string representation
func (s CatalogImportStatus) String() string {
return awsutil.Prettify(s)
}
// Specifies an AWS Glue Data Catalog target.
type CatalogTarget struct {
_ struct{} `type:"structure"`
// The name of the database to be synchronized.
//
// DatabaseName is a required field
DatabaseName *string `min:"1" type:"string" required:"true"`
// A list of the tables to be synchronized.
//
// Tables is a required field
Tables []string `min:"1" type:"list" required:"true"`
}
// String returns the string representation
func (s CatalogTarget) String() string {
return awsutil.Prettify(s)
}
// Validate inspects the fields of the type to determine if they are valid.
func (s *CatalogTarget) Validate() error {
invalidParams := aws.ErrInvalidParams{Context: "CatalogTarget"}
if s.DatabaseName == nil {
invalidParams.Add(aws.NewErrParamRequired("DatabaseName"))
}
if s.DatabaseName != nil && len(*s.DatabaseName) < 1 {
invalidParams.Add(aws.NewErrParamMinLen("DatabaseName", 1))
}
if s.Tables == nil {
invalidParams.Add(aws.NewErrParamRequired("Tables"))
}
if s.Tables != nil && len(s.Tables) < 1 {
invalidParams.Add(aws.NewErrParamMinLen("Tables", 1))
}
if invalidParams.Len() > 0 {
return invalidParams
}
return nil
}
// Classifiers are triggered during a crawl task. A classifier checks whether
// a given file is in a format it can handle. If it is, the classifier creates
// a schema in the form of a StructType object that matches that data format.
//
// You can use the standard classifiers that AWS Glue provides, or you can write
// your own classifiers to best categorize your data sources and specify the
// appropriate schemas to use for them. A classifier can be a grok classifier,
// an XML classifier, a JSON classifier, or a custom CSV classifier, as specified
// in one of the fields in the Classifier object.
type Classifier struct {
_ struct{} `type:"structure"`
// A classifier for comma-separated values (CSV).
CsvClassifier *CsvClassifier `type:"structure"`
// A classifier that uses grok.
GrokClassifier *GrokClassifier `type:"structure"`
// A classifier for JSON content.
JsonClassifier *JsonClassifier `type:"structure"`
// A classifier for XML content.
XMLClassifier *XMLClassifier `type:"structure"`
}
// String returns the string representation
func (s Classifier) String() string {
return awsutil.Prettify(s)
}
// Specifies how Amazon CloudWatch data should be encrypted.
type CloudWatchEncryption struct {
_ struct{} `type:"structure"`
// The encryption mode to use for CloudWatch data.
CloudWatchEncryptionMode CloudWatchEncryptionMode `type:"string" enum:"true"`
// The Amazon Resource Name (ARN) of the KMS key to be used to encrypt the data.
KmsKeyArn *string `type:"string"`
}
// String returns the string representation
func (s CloudWatchEncryption) String() string {
return awsutil.Prettify(s)
}
// Represents a directional edge in a directed acyclic graph (DAG).
type CodeGenEdge struct {
_ struct{} `type:"structure"`
// The ID of the node at which the edge starts.
//
// Source is a required field
Source *string `min:"1" type:"string" required:"true"`
// The ID of the node at which the edge ends.
//
// Target is a required field
Target *string `min:"1" type:"string" required:"true"`
// The target of the edge.
TargetParameter *string `type:"string"`
}
// String returns the string representation
func (s CodeGenEdge) String() string {
return awsutil.Prettify(s)
}
// Validate inspects the fields of the type to determine if they are valid.
func (s *CodeGenEdge) Validate() error {
invalidParams := aws.ErrInvalidParams{Context: "CodeGenEdge"}
if s.Source == nil {
invalidParams.Add(aws.NewErrParamRequired("Source"))
}
if s.Source != nil && len(*s.Source) < 1 {
invalidParams.Add(aws.NewErrParamMinLen("Source", 1))
}
if s.Target == nil {
invalidParams.Add(aws.NewErrParamRequired("Target"))
}
if s.Target != nil && len(*s.Target) < 1 {
invalidParams.Add(aws.NewErrParamMinLen("Target", 1))
}
if invalidParams.Len() > 0 {
return invalidParams
}
return nil
}
// Represents a node in a directed acyclic graph (DAG)
type CodeGenNode struct {
_ struct{} `type:"structure"`
// Properties of the node, in the form of name-value pairs.
//
// Args is a required field
Args []CodeGenNodeArg `type:"list" required:"true"`
// A node identifier that is unique within the node's graph.
//
// Id is a required field
Id *string `min:"1" type:"string" required:"true"`
// The line number of the node.
LineNumber *int64 `type:"integer"`
// The type of node that this is.
//
// NodeType is a required field
NodeType *string `type:"string" required:"true"`
}
// String returns the string representation
func (s CodeGenNode) String() string {
return awsutil.Prettify(s)
}
// Validate inspects the fields of the type to determine if they are valid.
func (s *CodeGenNode) Validate() error {
invalidParams := aws.ErrInvalidParams{Context: "CodeGenNode"}
if s.Args == nil {
invalidParams.Add(aws.NewErrParamRequired("Args"))
}
if s.Id == nil {
invalidParams.Add(aws.NewErrParamRequired("Id"))
}
if s.Id != nil && len(*s.Id) < 1 {
invalidParams.Add(aws.NewErrParamMinLen("Id", 1))
}
if s.NodeType == nil {
invalidParams.Add(aws.NewErrParamRequired("NodeType"))
}
if s.Args != nil {
for i, v := range s.Args {
if err := v.Validate(); err != nil {
invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Args", i), err.(aws.ErrInvalidParams))
}
}
}
if invalidParams.Len() > 0 {
return invalidParams
}
return nil
}
// An argument or property of a node.
type CodeGenNodeArg struct {
_ struct{} `type:"structure"`
// The name of the argument or property.
//
// Name is a required field
Name *string `type:"string" required:"true"`
// True if the value is used as a parameter.
Param *bool `type:"boolean"`
// The value of the argument or property.
//
// Value is a required field
Value *string `type:"string" required:"true"`
}
// String returns the string representation
func (s CodeGenNodeArg) String() string {
return awsutil.Prettify(s)
}
// Validate inspects the fields of the type to determine if they are valid.
func (s *CodeGenNodeArg) Validate() error {
invalidParams := aws.ErrInvalidParams{Context: "CodeGenNodeArg"}
if s.Name == nil {
invalidParams.Add(aws.NewErrParamRequired("Name"))
}
if s.Value == nil {
invalidParams.Add(aws.NewErrParamRequired("Value"))
}
if invalidParams.Len() > 0 {
return invalidParams
}
return nil
}
// A column in a Table.
type Column struct {
_ struct{} `type:"structure"`
// A free-form text comment.
Comment *string `type:"string"`
// The name of the Column.
//
// Name is a required field
Name *string `min:"1" type:"string" required:"true"`
// These key-value pairs define properties associated with the column.
Parameters map[string]string `type:"map"`
// The data type of the Column.
Type *string `type:"string"`
}
// String returns the string representation
func (s Column) String() string {
return awsutil.Prettify(s)
}
// Validate inspects the fields of the type to determine if they are valid.
func (s *Column) Validate() error {
invalidParams := aws.ErrInvalidParams{Context: "Column"}
if s.Name == nil {
invalidParams.Add(aws.NewErrParamRequired("Name"))
}
if s.Name != nil && len(*s.Name) < 1 {
invalidParams.Add(aws.NewErrParamMinLen("Name", 1))
}
if invalidParams.Len() > 0 {
return invalidParams
}
return nil
}
// Defines a condition under which a trigger fires.
type Condition struct {
_ struct{} `type:"structure"`
// The state of the crawler to which this condition applies.
CrawlState CrawlState `type:"string" enum:"true"`
// The name of the crawler to which this condition applies.
CrawlerName *string `min:"1" type:"string"`
// The name of the job whose JobRuns this condition applies to, and on which
// this trigger waits.
JobName *string `min:"1" type:"string"`
// A logical operator.
LogicalOperator LogicalOperator `type:"string" enum:"true"`
// The condition state. Currently, the values supported are SUCCEEDED, STOPPED,
// TIMEOUT, and FAILED.
State JobRunState `type:"string" enum:"true"`
}
// String returns the string representation
func (s Condition) String() string {
return awsutil.Prettify(s)
}
// Validate inspects the fields of the type to determine if they are valid.
func (s *Condition) Validate() error {
invalidParams := aws.ErrInvalidParams{Context: "Condition"}
if s.CrawlerName != nil && len(*s.CrawlerName) < 1 {
invalidParams.Add(aws.NewErrParamMinLen("CrawlerName", 1))
}
if s.JobName != nil && len(*s.JobName) < 1 {
invalidParams.Add(aws.NewErrParamMinLen("JobName", 1))
}
if invalidParams.Len() > 0 {
return invalidParams
}
return nil
}
// The confusion matrix shows you what your transform is predicting accurately
// and what types of errors it is making.
//
// For more information, see Confusion matrix (https://en.wikipedia.org/wiki/Confusion_matrix)
// in Wikipedia.
type ConfusionMatrix struct {
_ struct{} `type:"structure"`
// The number of matches in the data that the transform didn't find, in the
// confusion matrix for your transform.
NumFalseNegatives *int64 `type:"long"`
// The number of nonmatches in the data that the transform incorrectly classified
// as a match, in the confusion matrix for your transform.
NumFalsePositives *int64 `type:"long"`
// The number of nonmatches in the data that the transform correctly rejected,
// in the confusion matrix for your transform.
NumTrueNegatives *int64 `type:"long"`
// The number of matches in the data that the transform correctly found, in
// the confusion matrix for your transform.
NumTruePositives *int64 `type:"long"`
}
// String returns the string representation
func (s ConfusionMatrix) String() string {
return awsutil.Prettify(s)
}
// Defines a connection to a data source.
type Connection struct {
_ struct{} `type:"structure"`
// These key-value pairs define parameters for the connection:
//
// * HOST - The host URI: either the fully qualified domain name (FQDN) or
// the IPv4 address of the database host.
//
// * PORT - The port number, between 1024 and 65535, of the port on which
// the database host is listening for database connections.
//
// * USER_NAME - The name under which to log in to the database. The value
// string for USER_NAME is "USERNAME".
//
// * PASSWORD - A password, if one is used, for the user name.
//
// * ENCRYPTED_PASSWORD - When you enable connection password protection
// by setting ConnectionPasswordEncryption in the Data Catalog encryption
// settings, this field stores the encrypted password.
//
// * JDBC_DRIVER_JAR_URI - The Amazon Simple Storage Service (Amazon S3)
// path of the JAR file that contains the JDBC driver to use.
//
// * JDBC_DRIVER_CLASS_NAME - The class name of the JDBC driver to use.
//
// * JDBC_ENGINE - The name of the JDBC engine to use.
//
// * JDBC_ENGINE_VERSION - The version of the JDBC engine to use.
//
// * CONFIG_FILES - (Reserved for future use.)
//
// * INSTANCE_ID - The instance ID to use.
//
// * JDBC_CONNECTION_URL - The URL for connecting to a JDBC data source.
//
// * JDBC_ENFORCE_SSL - A Boolean string (true, false) specifying whether
// Secure Sockets Layer (SSL) with hostname matching is enforced for the
// JDBC connection on the client. The default is false.
//
// * CUSTOM_JDBC_CERT - An Amazon S3 location specifying the customer's root
// certificate. AWS Glue uses this root certificate to validate the customer’s
// certificate when connecting to the customer database. AWS Glue only handles
// X.509 certificates. The certificate provided must be DER-encoded and supplied
// in Base64 encoding PEM format.
//
// * SKIP_CUSTOM_JDBC_CERT_VALIDATION - By default, this is false. AWS Glue
// validates the Signature algorithm and Subject Public Key Algorithm for
// the customer certificate. The only permitted algorithms for the Signature
// algorithm are SHA256withRSA, SHA384withRSA or SHA512withRSA. For the Subject
// Public Key Algorithm, the key length must be at least 2048. You can set
// the value of this property to true to skip AWS Glue’s validation of
// the customer certificate.
//
// * CUSTOM_JDBC_CERT_STRING - A custom JDBC certificate string which is
// used for domain match or distinguished name match to prevent a man-in-the-middle
// attack. In Oracle database, this is used as the SSL_SERVER_CERT_DN; in
// Microsoft SQL Server, this is used as the hostNameInCertificate.
//
// * CONNECTION_URL - The URL for connecting to a general (non-JDBC) data
// source.
//
// * KAFKA_BOOTSTRAP_SERVERS - A comma-separated list of host and port pairs
// that are the addresses of the Apache Kafka brokers in a Kafka cluster
// to which a Kafka client will connect to and bootstrap itself.
ConnectionProperties map[string]string `type:"map"`
// The type of the connection. Currently, only JDBC is supported; SFTP is not
// supported.
ConnectionType ConnectionType `type:"string" enum:"true"`
// The time that this connection definition was created.
CreationTime *time.Time `type:"timestamp"`
// The description of the connection.
Description *string `type:"string"`
// The user, group, or role that last updated this connection definition.
LastUpdatedBy *string `min:"1" type:"string"`
// The last time that this connection definition was updated.
LastUpdatedTime *time.Time `type:"timestamp"`
// A list of criteria that can be used in selecting this connection.
MatchCriteria []string `type:"list"`
// The name of the connection definition.
Name *string `min:"1" type:"string"`
// A map of physical connection requirements, such as virtual private cloud
// (VPC) and SecurityGroup, that are needed to make this connection successfully.
PhysicalConnectionRequirements *PhysicalConnectionRequirements `type:"structure"`
}
// String returns the string representation
func (s Connection) String() string {
return awsutil.Prettify(s)
}
// A structure that is used to specify a connection to create or update.
type ConnectionInput struct {
_ struct{} `type:"structure"`
// These key-value pairs define parameters for the connection.
//
// ConnectionProperties is a required field
ConnectionProperties map[string]string `type:"map" required:"true"`
// The type of the connection. Currently, these types are supported:
//
// * JDBC - Designates a connection to a database through Java Database Connectivity
// (JDBC).
//
// * KAFKA - Designates a connection to an Apache Kafka streaming platform.
//
// * MONGODB - Designates a connection to a MongoDB document database.
//
// SFTP is not supported.
//
// ConnectionType is a required field
ConnectionType ConnectionType `type:"string" required:"true" enum:"true"`
// The description of the connection.
Description *string `type:"string"`
// A list of criteria that can be used in selecting this connection.
MatchCriteria []string `type:"list"`
// The name of the connection.
//
// Name is a required field
Name *string `min:"1" type:"string" required:"true"`
// A map of physical connection requirements, such as virtual private cloud
// (VPC) and SecurityGroup, that are needed to successfully make this connection.
PhysicalConnectionRequirements *PhysicalConnectionRequirements `type:"structure"`
}
// String returns the string representation
func (s ConnectionInput) String() string {
return awsutil.Prettify(s)
}
// Validate inspects the fields of the type to determine if they are valid.
func (s *ConnectionInput) Validate() error {
invalidParams := aws.ErrInvalidParams{Context: "ConnectionInput"}
if s.ConnectionProperties == nil {
invalidParams.Add(aws.NewErrParamRequired("ConnectionProperties"))
}
if len(s.ConnectionType) == 0 {
invalidParams.Add(aws.NewErrParamRequired("ConnectionType"))
}
if s.Name == nil {
invalidParams.Add(aws.NewErrParamRequired("Name"))
}
if s.Name != nil && len(*s.Name) < 1 {
invalidParams.Add(aws.NewErrParamMinLen("Name", 1))
}
if s.PhysicalConnectionRequirements != nil {
if err := s.PhysicalConnectionRequirements.Validate(); err != nil {
invalidParams.AddNested("PhysicalConnectionRequirements", err.(aws.ErrInvalidParams))
}
}
if invalidParams.Len() > 0 {
return invalidParams
}
return nil
}
// The data structure used by the Data Catalog to encrypt the password as part
// of CreateConnection or UpdateConnection and store it in the ENCRYPTED_PASSWORD
// field in the connection properties. You can enable catalog encryption or
// only password encryption.
//
// When a CreationConnection request arrives containing a password, the Data
// Catalog first encrypts the password using your AWS KMS key. It then encrypts
// the whole connection object again if catalog encryption is also enabled.
//
// This encryption requires that you set AWS KMS key permissions to enable or
// restrict access on the password key according to your security requirements.
// For example, you might want only administrators to have decrypt permission
// on the password key.
type ConnectionPasswordEncryption struct {
_ struct{} `type:"structure"`
// An AWS KMS key that is used to encrypt the connection password.
//
// If connection password protection is enabled, the caller of CreateConnection
// and UpdateConnection needs at least kms:Encrypt permission on the specified
// AWS KMS key, to encrypt passwords before storing them in the Data Catalog.
//
// You can set the decrypt permission to enable or restrict access on the password
// key according to your security requirements.
AwsKmsKeyId *string `min:"1" type:"string"`
// When the ReturnConnectionPasswordEncrypted flag is set to "true", passwords
// remain encrypted in the responses of GetConnection and GetConnections. This
// encryption takes effect independently from catalog encryption.
//
// ReturnConnectionPasswordEncrypted is a required field
ReturnConnectionPasswordEncrypted *bool `type:"boolean" required:"true"`
}
// String returns the string representation
func (s ConnectionPasswordEncryption) String() string {
return awsutil.Prettify(s)
}
// Validate inspects the fields of the type to determine if they are valid.
func (s *ConnectionPasswordEncryption) Validate() error {
invalidParams := aws.ErrInvalidParams{Context: "ConnectionPasswordEncryption"}
if s.AwsKmsKeyId != nil && len(*s.AwsKmsKeyId) < 1 {
invalidParams.Add(aws.NewErrParamMinLen("AwsKmsKeyId", 1))
}
if s.ReturnConnectionPasswordEncrypted == nil {
invalidParams.Add(aws.NewErrParamRequired("ReturnConnectionPasswordEncrypted"))
}
if invalidParams.Len() > 0 {
return invalidParams
}
return nil
}
// Specifies the connections used by a job.
type ConnectionsList struct {
_ struct{} `type:"structure"`
// A list of connections used by the job.
Connections []string `type:"list"`
}
// String returns the string representation
func (s ConnectionsList) String() string {
return awsutil.Prettify(s)
}
// The details of a crawl in the workflow.
type Crawl struct {
_ struct{} `type:"structure"`
// The date and time on which the crawl completed.
CompletedOn *time.Time `type:"timestamp"`
// The error message associated with the crawl.
ErrorMessage *string `type:"string"`
// The log group associated with the crawl.
LogGroup *string `min:"1" type:"string"`
// The log stream associated with the crawl.
LogStream *string `min:"1" type:"string"`
// The date and time on which the crawl started.
StartedOn *time.Time `type:"timestamp"`
// The state of the crawler.
State CrawlState `type:"string" enum:"true"`
}
// String returns the string representation
func (s Crawl) String() string {
return awsutil.Prettify(s)
}
// Specifies a crawler program that examines a data source and uses classifiers
// to try to determine its schema. If successful, the crawler records metadata
// concerning the data source in the AWS Glue Data Catalog.
type Crawler struct {
_ struct{} `type:"structure"`
// A list of UTF-8 strings that specify the custom classifiers that are associated
// with the crawler.
Classifiers []string `type:"list"`
// Crawler configuration information. This versioned JSON string allows users
// to specify aspects of a crawler's behavior. For more information, see Configuring
// a Crawler (http://docs.aws.amazon.com/glue/latest/dg/crawler-configuration.html).
Configuration *string `type:"string"`
// If the crawler is running, contains the total time elapsed since the last
// crawl began.
CrawlElapsedTime *int64 `type:"long"`
// The name of the SecurityConfiguration structure to be used by this crawler.
CrawlerSecurityConfiguration *string `type:"string"`
// The time that the crawler was created.
CreationTime *time.Time `type:"timestamp"`
// The name of the database in which the crawler's output is stored.
DatabaseName *string `type:"string"`
// A description of the crawler.
Description *string `type:"string"`
// The status of the last crawl, and potentially error information if an error
// occurred.
LastCrawl *LastCrawlInfo `type:"structure"`
// The time that the crawler was last updated.
LastUpdated *time.Time `type:"timestamp"`
// The name of the crawler.
Name *string `min:"1" type:"string"`
// The Amazon Resource Name (ARN) of an IAM role that's used to access customer
// resources, such as Amazon Simple Storage Service (Amazon S3) data.
Role *string `type:"string"`
// For scheduled crawlers, the schedule when the crawler runs.
Schedule *Schedule `type:"structure"`
// The policy that specifies update and delete behaviors for the crawler.
SchemaChangePolicy *SchemaChangePolicy `type:"structure"`
// Indicates whether the crawler is running, or whether a run is pending.
State CrawlerState `type:"string" enum:"true"`
// The prefix added to the names of tables that are created.
TablePrefix *string `type:"string"`
// A collection of targets to crawl.
Targets *CrawlerTargets `type:"structure"`
// The version of the crawler.
Version *int64 `type:"long"`
}
// String returns the string representation
func (s Crawler) String() string {
return awsutil.Prettify(s)
}
// Metrics for a specified crawler.
type CrawlerMetrics struct {
_ struct{} `type:"structure"`
// The name of the crawler.
CrawlerName *string `min:"1" type:"string"`
// The duration of the crawler's most recent run, in seconds.
LastRuntimeSeconds *float64 `type:"double"`
// The median duration of this crawler's runs, in seconds.
MedianRuntimeSeconds *float64 `type:"double"`
// True if the crawler is still estimating how long it will take to complete
// this run.
StillEstimating *bool `type:"boolean"`
// The number of tables created by this crawler.
TablesCreated *int64 `type:"integer"`
// The number of tables deleted by this crawler.
TablesDeleted *int64 `type:"integer"`
// The number of tables updated by this crawler.
TablesUpdated *int64 `type:"integer"`
// The estimated time left to complete a running crawl.
TimeLeftSeconds *float64 `type:"double"`
}
// String returns the string representation
func (s CrawlerMetrics) String() string {
return awsutil.Prettify(s)
}
// The details of a Crawler node present in the workflow.
type CrawlerNodeDetails struct {
_ struct{} `type:"structure"`
// A list of crawls represented by the crawl node.
Crawls []Crawl `type:"list"`
}
// String returns the string representation
func (s CrawlerNodeDetails) String() string {
return awsutil.Prettify(s)
}
// Specifies data stores to crawl.
type CrawlerTargets struct {
_ struct{} `type:"structure"`
// Specifies AWS Glue Data Catalog targets.
CatalogTargets []CatalogTarget `type:"list"`
// Specifies Amazon DynamoDB targets.
DynamoDBTargets []DynamoDBTarget `type:"list"`
// Specifies JDBC targets.
JdbcTargets []JdbcTarget `type:"list"`
// Specifies Amazon Simple Storage Service (Amazon S3) targets.
S3Targets []S3Target `type:"list"`
}
// String returns the string representation
func (s CrawlerTargets) String() string {
return awsutil.Prettify(s)
}
// Validate inspects the fields of the type to determine if they are valid.
func (s *CrawlerTargets) Validate() error {
invalidParams := aws.ErrInvalidParams{Context: "CrawlerTargets"}
if s.CatalogTargets != nil {
for i, v := range s.CatalogTargets {
if err := v.Validate(); err != nil {
invalidParams.AddNested(fmt.Sprintf("%s[%v]", "CatalogTargets", i), err.(aws.ErrInvalidParams))
}
}
}
if invalidParams.Len() > 0 {
return invalidParams
}
return nil
}
// Specifies a custom CSV classifier for CreateClassifier to create.
type CreateCsvClassifierRequest struct {
_ struct{} `type:"structure"`
// Enables the processing of files that contain only one column.
AllowSingleColumn *bool `type:"boolean"`
// Indicates whether the CSV file contains a header.
ContainsHeader CsvHeaderOption `type:"string" enum:"true"`
// A custom symbol to denote what separates each column entry in the row.
Delimiter *string `min:"1" type:"string"`
// Specifies not to trim values before identifying the type of column values.
// The default value is true.
DisableValueTrimming *bool `type:"boolean"`
// A list of strings representing column names.
Header []string `type:"list"`
// The name of the classifier.
//
// Name is a required field
Name *string `min:"1" type:"string" required:"true"`
// A custom symbol to denote what combines content into a single column value.
// Must be different from the column delimiter.
QuoteSymbol *string `min:"1" type:"string"`
}
// String returns the string representation
func (s CreateCsvClassifierRequest) String() string {
return awsutil.Prettify(s)
}
// Validate inspects the fields of the type to determine if they are valid.
func (s *CreateCsvClassifierRequest) Validate() error {
invalidParams := aws.ErrInvalidParams{Context: "CreateCsvClassifierRequest"}
if s.Delimiter != nil && len(*s.Delimiter) < 1 {
invalidParams.Add(aws.NewErrParamMinLen("Delimiter", 1))