generated from hashicorp/terraform-provider-scaffolding
-
Notifications
You must be signed in to change notification settings - Fork 104
/
application_resource_gen.go
2031 lines (2016 loc) · 99.5 KB
/
application_resource_gen.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
// Copyright (c) HashiCorp, Inc.
// SPDX-License-Identifier: MPL-2.0
// Code generated by generators/resource/main.go; DO NOT EDIT.
package kinesisanalyticsv2
import (
"context"
"regexp"
"github.com/hashicorp/terraform-plugin-framework-validators/int64validator"
"github.com/hashicorp/terraform-plugin-framework-validators/listvalidator"
"github.com/hashicorp/terraform-plugin-framework-validators/stringvalidator"
"github.com/hashicorp/terraform-plugin-framework/resource"
"github.com/hashicorp/terraform-plugin-framework/resource/schema"
"github.com/hashicorp/terraform-plugin-framework/resource/schema/boolplanmodifier"
"github.com/hashicorp/terraform-plugin-framework/resource/schema/int64planmodifier"
"github.com/hashicorp/terraform-plugin-framework/resource/schema/listplanmodifier"
"github.com/hashicorp/terraform-plugin-framework/resource/schema/mapplanmodifier"
"github.com/hashicorp/terraform-plugin-framework/resource/schema/objectplanmodifier"
"github.com/hashicorp/terraform-plugin-framework/resource/schema/planmodifier"
"github.com/hashicorp/terraform-plugin-framework/resource/schema/stringdefault"
"github.com/hashicorp/terraform-plugin-framework/resource/schema/stringplanmodifier"
"github.com/hashicorp/terraform-plugin-framework/schema/validator"
"github.com/hashicorp/terraform-plugin-framework/types"
"github.com/hashicorp/terraform-provider-awscc/internal/generic"
"github.com/hashicorp/terraform-provider-awscc/internal/registry"
)
func init() {
registry.AddResourceFactory("awscc_kinesisanalyticsv2_application", applicationResource)
}
// applicationResource returns the Terraform awscc_kinesisanalyticsv2_application resource.
// This Terraform resource corresponds to the CloudFormation AWS::KinesisAnalyticsV2::Application resource.
func applicationResource(ctx context.Context) (resource.Resource, error) {
attributes := map[string]schema.Attribute{ /*START SCHEMA*/
// Property: ApplicationConfiguration
// CloudFormation resource type schema:
//
// {
// "additionalProperties": false,
// "description": "Use this parameter to configure the application.",
// "properties": {
// "ApplicationCodeConfiguration": {
// "additionalProperties": false,
// "description": "The code location and type parameters for a Flink-based Kinesis Data Analytics application.",
// "properties": {
// "CodeContent": {
// "additionalProperties": false,
// "description": "The location and type of the application code.",
// "properties": {
// "S3ContentLocation": {
// "additionalProperties": false,
// "description": "Information about the Amazon S3 bucket that contains the application code.",
// "properties": {
// "BucketARN": {
// "description": "The Amazon Resource Name (ARN) for the S3 bucket containing the application code.",
// "maxLength": 2048,
// "minLength": 1,
// "pattern": "^arn:.*$",
// "type": "string"
// },
// "FileKey": {
// "description": "The file key for the object containing the application code.",
// "maxLength": 1024,
// "minLength": 1,
// "type": "string"
// },
// "ObjectVersion": {
// "description": "The version of the object containing the application code.",
// "maxLength": 1024,
// "minLength": 1,
// "type": "string"
// }
// },
// "required": [
// "BucketARN",
// "FileKey"
// ],
// "type": "object"
// },
// "TextContent": {
// "description": "The text-format code for a Flink-based Kinesis Data Analytics application.",
// "maxLength": 102400,
// "minLength": 1,
// "type": "string"
// },
// "ZipFileContent": {
// "description": "The zip-format code for a Flink-based Kinesis Data Analytics application.",
// "type": "string"
// }
// },
// "type": "object"
// },
// "CodeContentType": {
// "description": "Specifies whether the code content is in text or zip format.",
// "enum": [
// "PLAINTEXT",
// "ZIPFILE"
// ],
// "type": "string"
// }
// },
// "required": [
// "CodeContentType",
// "CodeContent"
// ],
// "type": "object"
// },
// "ApplicationSnapshotConfiguration": {
// "additionalProperties": false,
// "description": "Describes whether snapshots are enabled for a Flink-based Kinesis Data Analytics application.",
// "properties": {
// "SnapshotsEnabled": {
// "description": "Describes whether snapshots are enabled for a Flink-based Kinesis Data Analytics application.",
// "type": "boolean"
// }
// },
// "required": [
// "SnapshotsEnabled"
// ],
// "type": "object"
// },
// "EnvironmentProperties": {
// "additionalProperties": false,
// "description": "Describes execution properties for a Flink-based Kinesis Data Analytics application.",
// "properties": {
// "PropertyGroups": {
// "description": "Describes the execution property groups.",
// "insertionOrder": false,
// "items": {
// "additionalProperties": false,
// "description": "Property key-value pairs passed into an application.",
// "properties": {
// "PropertyGroupId": {
// "description": "Describes the key of an application execution property key-value pair.",
// "maxLength": 50,
// "minLength": 1,
// "pattern": "^[a-zA-Z0-9_.-]+$",
// "type": "string"
// },
// "PropertyMap": {
// "additionalProperties": false,
// "description": "Describes the value of an application execution property key-value pair.",
// "patternProperties": {
// "": {
// "maxLength": 2048,
// "minLength": 1,
// "type": "string"
// }
// },
// "type": "object"
// }
// },
// "type": "object"
// },
// "maxItems": 50,
// "type": "array",
// "uniqueItems": false
// }
// },
// "type": "object"
// },
// "FlinkApplicationConfiguration": {
// "additionalProperties": false,
// "description": "The creation and update parameters for a Flink-based Kinesis Data Analytics application.",
// "properties": {
// "CheckpointConfiguration": {
// "additionalProperties": false,
// "description": "Describes an application's checkpointing configuration. Checkpointing is the process of persisting application state for fault tolerance. For more information, see Checkpoints for Fault Tolerance in the Apache Flink Documentation.",
// "properties": {
// "CheckpointInterval": {
// "description": "Describes the interval in milliseconds between checkpoint operations.",
// "format": "int64",
// "maximum": 9223372036854775807,
// "minimum": 1,
// "type": "integer"
// },
// "CheckpointingEnabled": {
// "description": "Describes whether checkpointing is enabled for a Flink-based Kinesis Data Analytics application.",
// "type": "boolean"
// },
// "ConfigurationType": {
// "description": "Describes whether the application uses Kinesis Data Analytics' default checkpointing behavior. You must set this property to `CUSTOM` in order to set the `CheckpointingEnabled`, `CheckpointInterval`, or `MinPauseBetweenCheckpoints` parameters.",
// "enum": [
// "DEFAULT",
// "CUSTOM"
// ],
// "type": "string"
// },
// "MinPauseBetweenCheckpoints": {
// "description": "Describes the minimum time in milliseconds after a checkpoint operation completes that a new checkpoint operation can start. If a checkpoint operation takes longer than the CheckpointInterval, the application otherwise performs continual checkpoint operations. For more information, see Tuning Checkpointing in the Apache Flink Documentation.",
// "format": "int64",
// "maximum": 9223372036854775807,
// "minimum": 0,
// "type": "integer"
// }
// },
// "required": [
// "ConfigurationType"
// ],
// "type": "object"
// },
// "MonitoringConfiguration": {
// "additionalProperties": false,
// "description": "Describes configuration parameters for Amazon CloudWatch logging for an application.",
// "properties": {
// "ConfigurationType": {
// "description": "Describes whether to use the default CloudWatch logging configuration for an application. You must set this property to CUSTOM in order to set the LogLevel or MetricsLevel parameters.",
// "enum": [
// "DEFAULT",
// "CUSTOM"
// ],
// "type": "string"
// },
// "LogLevel": {
// "description": "Describes the verbosity of the CloudWatch Logs for an application.",
// "enum": [
// "DEBUG",
// "INFO",
// "WARN",
// "ERROR"
// ],
// "type": "string"
// },
// "MetricsLevel": {
// "description": "Describes the granularity of the CloudWatch Logs for an application. The Parallelism level is not recommended for applications with a Parallelism over 64 due to excessive costs.",
// "enum": [
// "APPLICATION",
// "OPERATOR",
// "PARALLELISM",
// "TASK"
// ],
// "type": "string"
// }
// },
// "required": [
// "ConfigurationType"
// ],
// "type": "object"
// },
// "ParallelismConfiguration": {
// "additionalProperties": false,
// "description": "Describes parameters for how an application executes multiple tasks simultaneously.",
// "properties": {
// "AutoScalingEnabled": {
// "description": "Describes whether the Kinesis Data Analytics service can increase the parallelism of the application in response to increased throughput.",
// "type": "boolean"
// },
// "ConfigurationType": {
// "description": "Describes whether the application uses the default parallelism for the Kinesis Data Analytics service. You must set this property to `CUSTOM` in order to change your application's `AutoScalingEnabled`, `Parallelism`, or `ParallelismPerKPU` properties.",
// "enum": [
// "CUSTOM",
// "DEFAULT"
// ],
// "type": "string"
// },
// "Parallelism": {
// "description": "Describes the initial number of parallel tasks that a Java-based Kinesis Data Analytics application can perform. The Kinesis Data Analytics service can increase this number automatically if ParallelismConfiguration:AutoScalingEnabled is set to true.",
// "minimum": 1,
// "type": "integer"
// },
// "ParallelismPerKPU": {
// "description": "Describes the number of parallel tasks that a Java-based Kinesis Data Analytics application can perform per Kinesis Processing Unit (KPU) used by the application. For more information about KPUs, see Amazon Kinesis Data Analytics Pricing.",
// "minimum": 1,
// "type": "integer"
// }
// },
// "required": [
// "ConfigurationType"
// ],
// "type": "object"
// }
// },
// "type": "object"
// },
// "SqlApplicationConfiguration": {
// "additionalProperties": false,
// "description": "The creation and update parameters for a SQL-based Kinesis Data Analytics application.",
// "properties": {
// "Inputs": {
// "description": "The array of Input objects describing the input streams used by the application.",
// "insertionOrder": false,
// "items": {
// "additionalProperties": false,
// "description": "When you configure the application input for a SQL-based Kinesis Data Analytics application, you specify the streaming source, the in-application stream name that is created, and the mapping between the two.",
// "properties": {
// "InputParallelism": {
// "additionalProperties": false,
// "description": "Describes the number of in-application streams to create.",
// "properties": {
// "Count": {
// "description": "The number of in-application streams to create.",
// "maximum": 64,
// "minimum": 1,
// "type": "integer"
// }
// },
// "type": "object"
// },
// "InputProcessingConfiguration": {
// "additionalProperties": false,
// "description": "The InputProcessingConfiguration for the input. An input processor transforms records as they are received from the stream, before the application's SQL code executes. Currently, the only input processing configuration available is InputLambdaProcessor.",
// "properties": {
// "InputLambdaProcessor": {
// "additionalProperties": false,
// "description": "The InputLambdaProcessor that is used to preprocess the records in the stream before being processed by your application code.",
// "properties": {
// "ResourceARN": {
// "description": "The ARN of the Amazon Lambda function that operates on records in the stream.",
// "maxLength": 2048,
// "minLength": 1,
// "pattern": "^arn:.*$",
// "type": "string"
// }
// },
// "required": [
// "ResourceARN"
// ],
// "type": "object"
// }
// },
// "type": "object"
// },
// "InputSchema": {
// "additionalProperties": false,
// "description": "Describes the format of the data in the streaming source, and how each data element maps to corresponding columns in the in-application stream that is being created.",
// "properties": {
// "RecordColumns": {
// "description": "A list of `RecordColumn` objects.",
// "insertionOrder": false,
// "items": {
// "additionalProperties": false,
// "description": "For a SQL-based Kinesis Data Analytics application, describes the mapping of each data element in the streaming source to the corresponding column in the in-application stream.\nAlso used to describe the format of the reference data source.",
// "properties": {
// "Mapping": {
// "description": "A reference to the data element in the streaming input or the reference data source.",
// "maxLength": 65535,
// "minLength": 1,
// "type": "string"
// },
// "Name": {
// "description": "The name of the column that is created in the in-application input stream or reference table.",
// "maxLength": 256,
// "minLength": 1,
// "pattern": "^[^-\\s\u003c\u003e\u0026]*$",
// "type": "string"
// },
// "SqlType": {
// "description": "The type of column created in the in-application input stream or reference table.",
// "maxLength": 100,
// "minLength": 1,
// "type": "string"
// }
// },
// "required": [
// "SqlType",
// "Name"
// ],
// "type": "object"
// },
// "maxItems": 1000,
// "type": "array",
// "uniqueItems": false
// },
// "RecordEncoding": {
// "description": "Specifies the encoding of the records in the streaming source. For example, UTF-8.",
// "enum": [
// "UTF-8"
// ],
// "type": "string"
// },
// "RecordFormat": {
// "additionalProperties": false,
// "description": "Specifies the format of the records on the streaming source.",
// "properties": {
// "MappingParameters": {
// "additionalProperties": false,
// "description": "When you configure application input at the time of creating or updating an application, provides additional mapping information specific to the record format (such as JSON, CSV, or record fields delimited by some delimiter) on the streaming source.",
// "properties": {
// "CSVMappingParameters": {
// "additionalProperties": false,
// "description": "Provides additional mapping information when the record format uses delimiters (for example, CSV).",
// "properties": {
// "RecordColumnDelimiter": {
// "description": "The column delimiter. For example, in a CSV format, a comma (\",\") is the typical column delimiter.",
// "maxLength": 1024,
// "minLength": 1,
// "type": "string"
// },
// "RecordRowDelimiter": {
// "description": "The row delimiter. For example, in a CSV format, '\\n' is the typical row delimiter.",
// "maxLength": 1024,
// "minLength": 1,
// "type": "string"
// }
// },
// "required": [
// "RecordRowDelimiter",
// "RecordColumnDelimiter"
// ],
// "type": "object"
// },
// "JSONMappingParameters": {
// "additionalProperties": false,
// "description": "Provides additional mapping information when JSON is the record format on the streaming source.",
// "properties": {
// "RecordRowPath": {
// "description": "The path to the top-level parent that contains the records.",
// "maxLength": 65535,
// "minLength": 1,
// "pattern": "",
// "type": "string"
// }
// },
// "required": [
// "RecordRowPath"
// ],
// "type": "object"
// }
// },
// "type": "object"
// },
// "RecordFormatType": {
// "description": "The type of record format.",
// "enum": [
// "CSV",
// "JSON"
// ],
// "type": "string"
// }
// },
// "required": [
// "RecordFormatType"
// ],
// "type": "object"
// }
// },
// "required": [
// "RecordColumns",
// "RecordFormat"
// ],
// "type": "object"
// },
// "KinesisFirehoseInput": {
// "additionalProperties": false,
// "description": "If the streaming source is an Amazon Kinesis Data Firehose delivery stream, identifies the delivery stream's ARN.",
// "properties": {
// "ResourceARN": {
// "description": "The Amazon Resource Name (ARN) of the delivery stream.",
// "maxLength": 2048,
// "minLength": 1,
// "pattern": "^arn:.*$",
// "type": "string"
// }
// },
// "required": [
// "ResourceARN"
// ],
// "type": "object"
// },
// "KinesisStreamsInput": {
// "additionalProperties": false,
// "description": "If the streaming source is an Amazon Kinesis data stream, identifies the stream's Amazon Resource Name (ARN).",
// "properties": {
// "ResourceARN": {
// "description": "The ARN of the input Kinesis data stream to read.",
// "maxLength": 2048,
// "minLength": 1,
// "pattern": "^arn:.*$",
// "type": "string"
// }
// },
// "required": [
// "ResourceARN"
// ],
// "type": "object"
// },
// "NamePrefix": {
// "description": "The name prefix to use when creating an in-application stream. Suppose that you specify a prefix `\"MyInApplicationStream\"`. Kinesis Data Analytics then creates one or more (as per the InputParallelism count you specified) in-application streams with the names `\"MyInApplicationStream_001\"`, `\"MyInApplicationStream_002\"`, and so on.",
// "maxLength": 32,
// "minLength": 1,
// "pattern": "^[^-\\s\u003c\u003e\u0026]*$",
// "type": "string"
// }
// },
// "required": [
// "NamePrefix",
// "InputSchema"
// ],
// "type": "object"
// },
// "maxItems": 1,
// "type": "array",
// "uniqueItems": false
// }
// },
// "type": "object"
// },
// "VpcConfigurations": {
// "description": "The array of descriptions of VPC configurations available to the application.",
// "insertionOrder": false,
// "items": {
// "additionalProperties": false,
// "description": "Describes the parameters of a VPC used by the application.",
// "properties": {
// "SecurityGroupIds": {
// "description": "The array of SecurityGroup IDs used by the VPC configuration.",
// "insertionOrder": false,
// "items": {
// "type": "string"
// },
// "maxItems": 5,
// "minItems": 1,
// "type": "array",
// "uniqueItems": false
// },
// "SubnetIds": {
// "description": "The array of Subnet IDs used by the VPC configuration.",
// "insertionOrder": false,
// "items": {
// "type": "string"
// },
// "maxItems": 16,
// "minItems": 1,
// "type": "array",
// "uniqueItems": false
// }
// },
// "required": [
// "SecurityGroupIds",
// "SubnetIds"
// ],
// "type": "object"
// },
// "maxItems": 1,
// "type": "array",
// "uniqueItems": false
// },
// "ZeppelinApplicationConfiguration": {
// "additionalProperties": false,
// "description": "The configuration parameters for a Kinesis Data Analytics Studio notebook.",
// "properties": {
// "CatalogConfiguration": {
// "additionalProperties": false,
// "description": "The Amazon Glue Data Catalog that you use in queries in a Kinesis Data Analytics Studio notebook.",
// "properties": {
// "GlueDataCatalogConfiguration": {
// "additionalProperties": false,
// "description": "The configuration parameters for the default Amazon Glue database. You use this database for Apache Flink SQL queries and table API transforms that you write in a Kinesis Data Analytics Studio notebook.",
// "properties": {
// "DatabaseARN": {
// "description": "The Amazon Resource Name (ARN) of the database.",
// "maxLength": 2048,
// "minLength": 1,
// "pattern": "^arn:.*$",
// "type": "string"
// }
// },
// "type": "object"
// }
// },
// "type": "object"
// },
// "CustomArtifactsConfiguration": {
// "description": "A list of CustomArtifactConfiguration objects.",
// "insertionOrder": false,
// "items": {
// "additionalProperties": false,
// "description": "The configuration of connectors and user-defined functions.",
// "properties": {
// "ArtifactType": {
// "description": "Set this to either `UDF` or `DEPENDENCY_JAR`. `UDF` stands for user-defined functions. This type of artifact must be in an S3 bucket. A `DEPENDENCY_JAR` can be in either Maven or an S3 bucket.",
// "enum": [
// "DEPENDENCY_JAR",
// "UDF"
// ],
// "type": "string"
// },
// "MavenReference": {
// "additionalProperties": false,
// "description": "The parameters required to fully specify a Maven reference.",
// "properties": {
// "ArtifactId": {
// "description": "The artifact ID of the Maven reference.",
// "maxLength": 256,
// "minLength": 1,
// "pattern": "^[a-zA-Z0-9_.-]+$",
// "type": "string"
// },
// "GroupId": {
// "description": "The group ID of the Maven reference.",
// "maxLength": 256,
// "minLength": 1,
// "pattern": "^[a-zA-Z0-9_.-]+$",
// "type": "string"
// },
// "Version": {
// "description": "The version of the Maven reference.",
// "maxLength": 256,
// "minLength": 1,
// "pattern": "^[a-zA-Z0-9_.-]+$",
// "type": "string"
// }
// },
// "required": [
// "ArtifactId",
// "GroupId",
// "Version"
// ],
// "type": "object"
// },
// "S3ContentLocation": {
// "additionalProperties": false,
// "description": "The location of the custom artifacts.",
// "properties": {
// "BucketARN": {
// "description": "The Amazon Resource Name (ARN) for the S3 bucket containing the application code.",
// "maxLength": 2048,
// "minLength": 1,
// "pattern": "^arn:.*$",
// "type": "string"
// },
// "FileKey": {
// "description": "The file key for the object containing the application code.",
// "maxLength": 1024,
// "minLength": 1,
// "type": "string"
// },
// "ObjectVersion": {
// "description": "The version of the object containing the application code.",
// "maxLength": 1024,
// "minLength": 1,
// "type": "string"
// }
// },
// "required": [
// "BucketARN",
// "FileKey"
// ],
// "type": "object"
// }
// },
// "required": [
// "ArtifactType"
// ],
// "type": "object"
// },
// "maxItems": 50,
// "type": "array",
// "uniqueItems": false
// },
// "DeployAsApplicationConfiguration": {
// "additionalProperties": false,
// "description": "The information required to deploy a Kinesis Data Analytics Studio notebook as an application with durable state.",
// "properties": {
// "S3ContentLocation": {
// "additionalProperties": false,
// "description": "The description of an Amazon S3 object that contains the Amazon Data Analytics application, including the Amazon Resource Name (ARN) of the S3 bucket, the name of the Amazon S3 object that contains the data, and the version number of the Amazon S3 object that contains the data.",
// "properties": {
// "BasePath": {
// "description": "The base path for the S3 bucket.",
// "maxLength": 1024,
// "minLength": 1,
// "pattern": "^[a-zA-Z0-9/!-_.*'()]+$",
// "type": "string"
// },
// "BucketARN": {
// "description": "The Amazon Resource Name (ARN) of the S3 bucket.",
// "maxLength": 2048,
// "minLength": 1,
// "pattern": "^arn:.*$",
// "type": "string"
// }
// },
// "required": [
// "BucketARN"
// ],
// "type": "object"
// }
// },
// "required": [
// "S3ContentLocation"
// ],
// "type": "object"
// },
// "MonitoringConfiguration": {
// "additionalProperties": false,
// "description": "The monitoring configuration of a Kinesis Data Analytics Studio notebook.",
// "properties": {
// "LogLevel": {
// "description": "The verbosity of the CloudWatch Logs for an application. You can set it to `INFO`, `WARN`, `ERROR`, or `DEBUG`.",
// "enum": [
// "DEBUG",
// "INFO",
// "WARN",
// "ERROR"
// ],
// "type": "string"
// }
// },
// "type": "object"
// }
// },
// "type": "object"
// }
// },
// "type": "object"
// }
"application_configuration": schema.SingleNestedAttribute{ /*START ATTRIBUTE*/
Attributes: map[string]schema.Attribute{ /*START SCHEMA*/
// Property: ApplicationCodeConfiguration
"application_code_configuration": schema.SingleNestedAttribute{ /*START ATTRIBUTE*/
Attributes: map[string]schema.Attribute{ /*START SCHEMA*/
// Property: CodeContent
"code_content": schema.SingleNestedAttribute{ /*START ATTRIBUTE*/
Attributes: map[string]schema.Attribute{ /*START SCHEMA*/
// Property: S3ContentLocation
"s3_content_location": schema.SingleNestedAttribute{ /*START ATTRIBUTE*/
Attributes: map[string]schema.Attribute{ /*START SCHEMA*/
// Property: BucketARN
"bucket_arn": schema.StringAttribute{ /*START ATTRIBUTE*/
Description: "The Amazon Resource Name (ARN) for the S3 bucket containing the application code.",
Required: true,
Validators: []validator.String{ /*START VALIDATORS*/
stringvalidator.LengthBetween(1, 2048),
stringvalidator.RegexMatches(regexp.MustCompile("^arn:.*$"), ""),
}, /*END VALIDATORS*/
}, /*END ATTRIBUTE*/
// Property: FileKey
"file_key": schema.StringAttribute{ /*START ATTRIBUTE*/
Description: "The file key for the object containing the application code.",
Required: true,
Validators: []validator.String{ /*START VALIDATORS*/
stringvalidator.LengthBetween(1, 1024),
}, /*END VALIDATORS*/
}, /*END ATTRIBUTE*/
// Property: ObjectVersion
"object_version": schema.StringAttribute{ /*START ATTRIBUTE*/
Description: "The version of the object containing the application code.",
Optional: true,
Computed: true,
Validators: []validator.String{ /*START VALIDATORS*/
stringvalidator.LengthBetween(1, 1024),
}, /*END VALIDATORS*/
PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/
stringplanmodifier.UseStateForUnknown(),
}, /*END PLAN MODIFIERS*/
}, /*END ATTRIBUTE*/
}, /*END SCHEMA*/
Description: "Information about the Amazon S3 bucket that contains the application code.",
Optional: true,
Computed: true,
PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/
objectplanmodifier.UseStateForUnknown(),
}, /*END PLAN MODIFIERS*/
}, /*END ATTRIBUTE*/
// Property: TextContent
"text_content": schema.StringAttribute{ /*START ATTRIBUTE*/
Description: "The text-format code for a Flink-based Kinesis Data Analytics application.",
Optional: true,
Computed: true,
Validators: []validator.String{ /*START VALIDATORS*/
stringvalidator.LengthBetween(1, 102400),
}, /*END VALIDATORS*/
PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/
stringplanmodifier.UseStateForUnknown(),
}, /*END PLAN MODIFIERS*/
}, /*END ATTRIBUTE*/
// Property: ZipFileContent
"zip_file_content": schema.StringAttribute{ /*START ATTRIBUTE*/
Description: "The zip-format code for a Flink-based Kinesis Data Analytics application.",
Optional: true,
Computed: true,
PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/
stringplanmodifier.UseStateForUnknown(),
}, /*END PLAN MODIFIERS*/
// ZipFileContent is a write-only property.
}, /*END ATTRIBUTE*/
}, /*END SCHEMA*/
Description: "The location and type of the application code.",
Required: true,
}, /*END ATTRIBUTE*/
// Property: CodeContentType
"code_content_type": schema.StringAttribute{ /*START ATTRIBUTE*/
Description: "Specifies whether the code content is in text or zip format.",
Required: true,
Validators: []validator.String{ /*START VALIDATORS*/
stringvalidator.OneOf(
"PLAINTEXT",
"ZIPFILE",
),
}, /*END VALIDATORS*/
}, /*END ATTRIBUTE*/
}, /*END SCHEMA*/
Description: "The code location and type parameters for a Flink-based Kinesis Data Analytics application.",
Optional: true,
Computed: true,
PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/
objectplanmodifier.UseStateForUnknown(),
}, /*END PLAN MODIFIERS*/
}, /*END ATTRIBUTE*/
// Property: ApplicationSnapshotConfiguration
"application_snapshot_configuration": schema.SingleNestedAttribute{ /*START ATTRIBUTE*/
Attributes: map[string]schema.Attribute{ /*START SCHEMA*/
// Property: SnapshotsEnabled
"snapshots_enabled": schema.BoolAttribute{ /*START ATTRIBUTE*/
Description: "Describes whether snapshots are enabled for a Flink-based Kinesis Data Analytics application.",
Required: true,
}, /*END ATTRIBUTE*/
}, /*END SCHEMA*/
Description: "Describes whether snapshots are enabled for a Flink-based Kinesis Data Analytics application.",
Optional: true,
Computed: true,
PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/
objectplanmodifier.UseStateForUnknown(),
}, /*END PLAN MODIFIERS*/
}, /*END ATTRIBUTE*/
// Property: EnvironmentProperties
"environment_properties": schema.SingleNestedAttribute{ /*START ATTRIBUTE*/
Attributes: map[string]schema.Attribute{ /*START SCHEMA*/
// Property: PropertyGroups
"property_groups": schema.ListNestedAttribute{ /*START ATTRIBUTE*/
NestedObject: schema.NestedAttributeObject{ /*START NESTED OBJECT*/
Attributes: map[string]schema.Attribute{ /*START SCHEMA*/
// Property: PropertyGroupId
"property_group_id": schema.StringAttribute{ /*START ATTRIBUTE*/
Description: "Describes the key of an application execution property key-value pair.",
Optional: true,
Computed: true,
Validators: []validator.String{ /*START VALIDATORS*/
stringvalidator.LengthBetween(1, 50),
stringvalidator.RegexMatches(regexp.MustCompile("^[a-zA-Z0-9_.-]+$"), ""),
}, /*END VALIDATORS*/
PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/
stringplanmodifier.UseStateForUnknown(),
}, /*END PLAN MODIFIERS*/
}, /*END ATTRIBUTE*/
// Property: PropertyMap
"property_map": // Pattern: ""
schema.MapAttribute{ /*START ATTRIBUTE*/
ElementType: types.StringType,
Description: "Describes the value of an application execution property key-value pair.",
Optional: true,
Computed: true,
PlanModifiers: []planmodifier.Map{ /*START PLAN MODIFIERS*/
mapplanmodifier.UseStateForUnknown(),
}, /*END PLAN MODIFIERS*/
}, /*END ATTRIBUTE*/
}, /*END SCHEMA*/
}, /*END NESTED OBJECT*/
Description: "Describes the execution property groups.",
Optional: true,
Computed: true,
Validators: []validator.List{ /*START VALIDATORS*/
listvalidator.SizeAtMost(50),
}, /*END VALIDATORS*/
PlanModifiers: []planmodifier.List{ /*START PLAN MODIFIERS*/
generic.Multiset(),
listplanmodifier.UseStateForUnknown(),
}, /*END PLAN MODIFIERS*/
}, /*END ATTRIBUTE*/
}, /*END SCHEMA*/
Description: "Describes execution properties for a Flink-based Kinesis Data Analytics application.",
Optional: true,
Computed: true,
PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/
objectplanmodifier.UseStateForUnknown(),
}, /*END PLAN MODIFIERS*/
// EnvironmentProperties is a write-only property.
}, /*END ATTRIBUTE*/
// Property: FlinkApplicationConfiguration
"flink_application_configuration": schema.SingleNestedAttribute{ /*START ATTRIBUTE*/
Attributes: map[string]schema.Attribute{ /*START SCHEMA*/
// Property: CheckpointConfiguration
"checkpoint_configuration": schema.SingleNestedAttribute{ /*START ATTRIBUTE*/
Attributes: map[string]schema.Attribute{ /*START SCHEMA*/
// Property: CheckpointInterval
"checkpoint_interval": schema.Int64Attribute{ /*START ATTRIBUTE*/
Description: "Describes the interval in milliseconds between checkpoint operations.",
Optional: true,
Computed: true,
Validators: []validator.Int64{ /*START VALIDATORS*/
int64validator.Between(1, 9223372036854775807),
}, /*END VALIDATORS*/
PlanModifiers: []planmodifier.Int64{ /*START PLAN MODIFIERS*/
int64planmodifier.UseStateForUnknown(),
}, /*END PLAN MODIFIERS*/
}, /*END ATTRIBUTE*/
// Property: CheckpointingEnabled
"checkpointing_enabled": schema.BoolAttribute{ /*START ATTRIBUTE*/
Description: "Describes whether checkpointing is enabled for a Flink-based Kinesis Data Analytics application.",
Optional: true,
Computed: true,
PlanModifiers: []planmodifier.Bool{ /*START PLAN MODIFIERS*/
boolplanmodifier.UseStateForUnknown(),
}, /*END PLAN MODIFIERS*/
}, /*END ATTRIBUTE*/
// Property: ConfigurationType
"configuration_type": schema.StringAttribute{ /*START ATTRIBUTE*/
Description: "Describes whether the application uses Kinesis Data Analytics' default checkpointing behavior. You must set this property to `CUSTOM` in order to set the `CheckpointingEnabled`, `CheckpointInterval`, or `MinPauseBetweenCheckpoints` parameters.",
Required: true,
Validators: []validator.String{ /*START VALIDATORS*/
stringvalidator.OneOf(
"DEFAULT",
"CUSTOM",
),
}, /*END VALIDATORS*/
}, /*END ATTRIBUTE*/
// Property: MinPauseBetweenCheckpoints
"min_pause_between_checkpoints": schema.Int64Attribute{ /*START ATTRIBUTE*/
Description: "Describes the minimum time in milliseconds after a checkpoint operation completes that a new checkpoint operation can start. If a checkpoint operation takes longer than the CheckpointInterval, the application otherwise performs continual checkpoint operations. For more information, see Tuning Checkpointing in the Apache Flink Documentation.",
Optional: true,
Computed: true,
Validators: []validator.Int64{ /*START VALIDATORS*/
int64validator.Between(0, 9223372036854775807),
}, /*END VALIDATORS*/
PlanModifiers: []planmodifier.Int64{ /*START PLAN MODIFIERS*/
int64planmodifier.UseStateForUnknown(),
}, /*END PLAN MODIFIERS*/
}, /*END ATTRIBUTE*/
}, /*END SCHEMA*/
Description: "Describes an application's checkpointing configuration. Checkpointing is the process of persisting application state for fault tolerance. For more information, see Checkpoints for Fault Tolerance in the Apache Flink Documentation.",
Optional: true,
Computed: true,
PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/
objectplanmodifier.UseStateForUnknown(),
}, /*END PLAN MODIFIERS*/
}, /*END ATTRIBUTE*/
// Property: MonitoringConfiguration
"monitoring_configuration": schema.SingleNestedAttribute{ /*START ATTRIBUTE*/
Attributes: map[string]schema.Attribute{ /*START SCHEMA*/
// Property: ConfigurationType
"configuration_type": schema.StringAttribute{ /*START ATTRIBUTE*/
Description: "Describes whether to use the default CloudWatch logging configuration for an application. You must set this property to CUSTOM in order to set the LogLevel or MetricsLevel parameters.",
Required: true,
Validators: []validator.String{ /*START VALIDATORS*/
stringvalidator.OneOf(
"DEFAULT",
"CUSTOM",
),
}, /*END VALIDATORS*/
}, /*END ATTRIBUTE*/
// Property: LogLevel
"log_level": schema.StringAttribute{ /*START ATTRIBUTE*/
Description: "Describes the verbosity of the CloudWatch Logs for an application.",
Optional: true,
Computed: true,
Validators: []validator.String{ /*START VALIDATORS*/
stringvalidator.OneOf(
"DEBUG",
"INFO",
"WARN",
"ERROR",
),
}, /*END VALIDATORS*/
PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/
stringplanmodifier.UseStateForUnknown(),
}, /*END PLAN MODIFIERS*/
}, /*END ATTRIBUTE*/
// Property: MetricsLevel
"metrics_level": schema.StringAttribute{ /*START ATTRIBUTE*/
Description: "Describes the granularity of the CloudWatch Logs for an application. The Parallelism level is not recommended for applications with a Parallelism over 64 due to excessive costs.",
Optional: true,
Computed: true,
Validators: []validator.String{ /*START VALIDATORS*/
stringvalidator.OneOf(
"APPLICATION",
"OPERATOR",
"PARALLELISM",
"TASK",
),
}, /*END VALIDATORS*/
PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/
stringplanmodifier.UseStateForUnknown(),
}, /*END PLAN MODIFIERS*/
}, /*END ATTRIBUTE*/
}, /*END SCHEMA*/
Description: "Describes configuration parameters for Amazon CloudWatch logging for an application.",
Optional: true,
Computed: true,
PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/
objectplanmodifier.UseStateForUnknown(),
}, /*END PLAN MODIFIERS*/
}, /*END ATTRIBUTE*/
// Property: ParallelismConfiguration
"parallelism_configuration": schema.SingleNestedAttribute{ /*START ATTRIBUTE*/
Attributes: map[string]schema.Attribute{ /*START SCHEMA*/
// Property: AutoScalingEnabled
"auto_scaling_enabled": schema.BoolAttribute{ /*START ATTRIBUTE*/
Description: "Describes whether the Kinesis Data Analytics service can increase the parallelism of the application in response to increased throughput.",
Optional: true,
Computed: true,
PlanModifiers: []planmodifier.Bool{ /*START PLAN MODIFIERS*/
boolplanmodifier.UseStateForUnknown(),
}, /*END PLAN MODIFIERS*/
}, /*END ATTRIBUTE*/
// Property: ConfigurationType