/
zz_task_types.go
executable file
·641 lines (463 loc) · 39.2 KB
/
zz_task_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
// SPDX-FileCopyrightText: 2024 The Crossplane Authors <https://crossplane.io>
//
// SPDX-License-Identifier: Apache-2.0
// Code generated by upjet. DO NOT EDIT.
package v1beta1
import (
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
"k8s.io/apimachinery/pkg/runtime/schema"
v1 "github.com/crossplane/crossplane-runtime/apis/common/v1"
)
type ExcludesInitParameters struct {
// The type of filter rule to apply. Valid values: SIMPLE_PATTERN.
FilterType *string `json:"filterType,omitempty" tf:"filter_type,omitempty"`
// A single filter string that consists of the patterns to exclude. The patterns are delimited by "|" (that is, a pipe), for example: /folder1|/folder2
Value *string `json:"value,omitempty" tf:"value,omitempty"`
}
type ExcludesObservation struct {
// The type of filter rule to apply. Valid values: SIMPLE_PATTERN.
FilterType *string `json:"filterType,omitempty" tf:"filter_type,omitempty"`
// A single filter string that consists of the patterns to exclude. The patterns are delimited by "|" (that is, a pipe), for example: /folder1|/folder2
Value *string `json:"value,omitempty" tf:"value,omitempty"`
}
type ExcludesParameters struct {
// The type of filter rule to apply. Valid values: SIMPLE_PATTERN.
// +kubebuilder:validation:Optional
FilterType *string `json:"filterType,omitempty" tf:"filter_type,omitempty"`
// A single filter string that consists of the patterns to exclude. The patterns are delimited by "|" (that is, a pipe), for example: /folder1|/folder2
// +kubebuilder:validation:Optional
Value *string `json:"value,omitempty" tf:"value,omitempty"`
}
type IncludesInitParameters struct {
// The type of filter rule to apply. Valid values: SIMPLE_PATTERN.
FilterType *string `json:"filterType,omitempty" tf:"filter_type,omitempty"`
// A single filter string that consists of the patterns to exclude. The patterns are delimited by "|" (that is, a pipe), for example: /folder1|/folder2
Value *string `json:"value,omitempty" tf:"value,omitempty"`
}
type IncludesObservation struct {
// The type of filter rule to apply. Valid values: SIMPLE_PATTERN.
FilterType *string `json:"filterType,omitempty" tf:"filter_type,omitempty"`
// A single filter string that consists of the patterns to exclude. The patterns are delimited by "|" (that is, a pipe), for example: /folder1|/folder2
Value *string `json:"value,omitempty" tf:"value,omitempty"`
}
type IncludesParameters struct {
// The type of filter rule to apply. Valid values: SIMPLE_PATTERN.
// +kubebuilder:validation:Optional
FilterType *string `json:"filterType,omitempty" tf:"filter_type,omitempty"`
// A single filter string that consists of the patterns to exclude. The patterns are delimited by "|" (that is, a pipe), for example: /folder1|/folder2
// +kubebuilder:validation:Optional
Value *string `json:"value,omitempty" tf:"value,omitempty"`
}
type OptionsInitParameters struct {
// A file metadata that shows the last time a file was accessed (that is when the file was read or written to). If set to BEST_EFFORT, the DataSync Task attempts to preserve the original (that is, the version before sync PREPARING phase) atime attribute on all source files. Valid values: BEST_EFFORT, NONE. Default: BEST_EFFORT.
Atime *string `json:"atime,omitempty" tf:"atime,omitempty"`
// Limits the bandwidth utilized. For example, to set a maximum of 1 MB, set this value to 1048576. Value values: -1 or greater. Default: -1 (unlimited).
BytesPerSecond *float64 `json:"bytesPerSecond,omitempty" tf:"bytes_per_second,omitempty"`
// Group identifier of the file's owners. Valid values: BOTH, INT_VALUE, NAME, NONE. Default: INT_VALUE (preserve integer value of the ID).
GID *string `json:"gid,omitempty" tf:"gid,omitempty"`
// Determines the type of logs that DataSync publishes to a log stream in the Amazon CloudWatch log group that you provide. Valid values: OFF, BASIC, TRANSFER. Default: OFF.
LogLevel *string `json:"logLevel,omitempty" tf:"log_level,omitempty"`
// A file metadata that indicates the last time a file was modified (written to) before the sync PREPARING phase. Value values: NONE, PRESERVE. Default: PRESERVE.
Mtime *string `json:"mtime,omitempty" tf:"mtime,omitempty"`
// Specifies whether object tags are maintained when transferring between object storage systems. If you want your DataSync task to ignore object tags, specify the NONE value. Valid values: PRESERVE, NONE. Default value: PRESERVE.
ObjectTags *string `json:"objectTags,omitempty" tf:"object_tags,omitempty"`
// Determines whether files at the destination should be overwritten or preserved when copying files. Valid values: ALWAYS, NEVER. Default: ALWAYS.
OverwriteMode *string `json:"overwriteMode,omitempty" tf:"overwrite_mode,omitempty"`
// Determines which users or groups can access a file for a specific purpose such as reading, writing, or execution of the file. Valid values: NONE, PRESERVE. Default: PRESERVE.
PosixPermissions *string `json:"posixPermissions,omitempty" tf:"posix_permissions,omitempty"`
// Whether files deleted in the source should be removed or preserved in the destination file system. Valid values: PRESERVE, REMOVE. Default: PRESERVE.
PreserveDeletedFiles *string `json:"preserveDeletedFiles,omitempty" tf:"preserve_deleted_files,omitempty"`
// Whether the DataSync Task should preserve the metadata of block and character devices in the source files system, and recreate the files with that device name and metadata on the destination. The DataSync Task can’t sync the actual contents of such devices, because many of the devices are non-terminal and don’t return an end of file (EOF) marker. Valid values: NONE, PRESERVE. Default: NONE (ignore special devices).
PreserveDevices *string `json:"preserveDevices,omitempty" tf:"preserve_devices,omitempty"`
// Determines which components of the SMB security descriptor are copied from source to destination objects. This value is only used for transfers between SMB and Amazon FSx for Windows File Server locations, or between two Amazon FSx for Windows File Server locations. Valid values: NONE, OWNER_DACL, OWNER_DACL_SACL. Default: OWNER_DACL.
SecurityDescriptorCopyFlags *string `json:"securityDescriptorCopyFlags,omitempty" tf:"security_descriptor_copy_flags,omitempty"`
// Determines whether tasks should be queued before executing the tasks. Valid values: ENABLED, DISABLED. Default ENABLED.
TaskQueueing *string `json:"taskQueueing,omitempty" tf:"task_queueing,omitempty"`
// Determines whether DataSync transfers only the data and metadata that differ between the source and the destination location, or whether DataSync transfers all the content from the source, without comparing to the destination location. Valid values: CHANGED, ALL. Default: CHANGED
TransferMode *string `json:"transferMode,omitempty" tf:"transfer_mode,omitempty"`
// User identifier of the file's owners. Valid values: BOTH, INT_VALUE, NAME, NONE. Default: INT_VALUE (preserve integer value of the ID).
UID *string `json:"uid,omitempty" tf:"uid,omitempty"`
// Whether a data integrity verification should be performed at the end of a task execution after all data and metadata have been transferred. Valid values: NONE, POINT_IN_TIME_CONSISTENT, ONLY_FILES_TRANSFERRED. Default: POINT_IN_TIME_CONSISTENT.
VerifyMode *string `json:"verifyMode,omitempty" tf:"verify_mode,omitempty"`
}
type OptionsObservation struct {
// A file metadata that shows the last time a file was accessed (that is when the file was read or written to). If set to BEST_EFFORT, the DataSync Task attempts to preserve the original (that is, the version before sync PREPARING phase) atime attribute on all source files. Valid values: BEST_EFFORT, NONE. Default: BEST_EFFORT.
Atime *string `json:"atime,omitempty" tf:"atime,omitempty"`
// Limits the bandwidth utilized. For example, to set a maximum of 1 MB, set this value to 1048576. Value values: -1 or greater. Default: -1 (unlimited).
BytesPerSecond *float64 `json:"bytesPerSecond,omitempty" tf:"bytes_per_second,omitempty"`
// Group identifier of the file's owners. Valid values: BOTH, INT_VALUE, NAME, NONE. Default: INT_VALUE (preserve integer value of the ID).
GID *string `json:"gid,omitempty" tf:"gid,omitempty"`
// Determines the type of logs that DataSync publishes to a log stream in the Amazon CloudWatch log group that you provide. Valid values: OFF, BASIC, TRANSFER. Default: OFF.
LogLevel *string `json:"logLevel,omitempty" tf:"log_level,omitempty"`
// A file metadata that indicates the last time a file was modified (written to) before the sync PREPARING phase. Value values: NONE, PRESERVE. Default: PRESERVE.
Mtime *string `json:"mtime,omitempty" tf:"mtime,omitempty"`
// Specifies whether object tags are maintained when transferring between object storage systems. If you want your DataSync task to ignore object tags, specify the NONE value. Valid values: PRESERVE, NONE. Default value: PRESERVE.
ObjectTags *string `json:"objectTags,omitempty" tf:"object_tags,omitempty"`
// Determines whether files at the destination should be overwritten or preserved when copying files. Valid values: ALWAYS, NEVER. Default: ALWAYS.
OverwriteMode *string `json:"overwriteMode,omitempty" tf:"overwrite_mode,omitempty"`
// Determines which users or groups can access a file for a specific purpose such as reading, writing, or execution of the file. Valid values: NONE, PRESERVE. Default: PRESERVE.
PosixPermissions *string `json:"posixPermissions,omitempty" tf:"posix_permissions,omitempty"`
// Whether files deleted in the source should be removed or preserved in the destination file system. Valid values: PRESERVE, REMOVE. Default: PRESERVE.
PreserveDeletedFiles *string `json:"preserveDeletedFiles,omitempty" tf:"preserve_deleted_files,omitempty"`
// Whether the DataSync Task should preserve the metadata of block and character devices in the source files system, and recreate the files with that device name and metadata on the destination. The DataSync Task can’t sync the actual contents of such devices, because many of the devices are non-terminal and don’t return an end of file (EOF) marker. Valid values: NONE, PRESERVE. Default: NONE (ignore special devices).
PreserveDevices *string `json:"preserveDevices,omitempty" tf:"preserve_devices,omitempty"`
// Determines which components of the SMB security descriptor are copied from source to destination objects. This value is only used for transfers between SMB and Amazon FSx for Windows File Server locations, or between two Amazon FSx for Windows File Server locations. Valid values: NONE, OWNER_DACL, OWNER_DACL_SACL. Default: OWNER_DACL.
SecurityDescriptorCopyFlags *string `json:"securityDescriptorCopyFlags,omitempty" tf:"security_descriptor_copy_flags,omitempty"`
// Determines whether tasks should be queued before executing the tasks. Valid values: ENABLED, DISABLED. Default ENABLED.
TaskQueueing *string `json:"taskQueueing,omitempty" tf:"task_queueing,omitempty"`
// Determines whether DataSync transfers only the data and metadata that differ between the source and the destination location, or whether DataSync transfers all the content from the source, without comparing to the destination location. Valid values: CHANGED, ALL. Default: CHANGED
TransferMode *string `json:"transferMode,omitempty" tf:"transfer_mode,omitempty"`
// User identifier of the file's owners. Valid values: BOTH, INT_VALUE, NAME, NONE. Default: INT_VALUE (preserve integer value of the ID).
UID *string `json:"uid,omitempty" tf:"uid,omitempty"`
// Whether a data integrity verification should be performed at the end of a task execution after all data and metadata have been transferred. Valid values: NONE, POINT_IN_TIME_CONSISTENT, ONLY_FILES_TRANSFERRED. Default: POINT_IN_TIME_CONSISTENT.
VerifyMode *string `json:"verifyMode,omitempty" tf:"verify_mode,omitempty"`
}
type OptionsParameters struct {
// A file metadata that shows the last time a file was accessed (that is when the file was read or written to). If set to BEST_EFFORT, the DataSync Task attempts to preserve the original (that is, the version before sync PREPARING phase) atime attribute on all source files. Valid values: BEST_EFFORT, NONE. Default: BEST_EFFORT.
// +kubebuilder:validation:Optional
Atime *string `json:"atime,omitempty" tf:"atime,omitempty"`
// Limits the bandwidth utilized. For example, to set a maximum of 1 MB, set this value to 1048576. Value values: -1 or greater. Default: -1 (unlimited).
// +kubebuilder:validation:Optional
BytesPerSecond *float64 `json:"bytesPerSecond,omitempty" tf:"bytes_per_second,omitempty"`
// Group identifier of the file's owners. Valid values: BOTH, INT_VALUE, NAME, NONE. Default: INT_VALUE (preserve integer value of the ID).
// +kubebuilder:validation:Optional
GID *string `json:"gid,omitempty" tf:"gid,omitempty"`
// Determines the type of logs that DataSync publishes to a log stream in the Amazon CloudWatch log group that you provide. Valid values: OFF, BASIC, TRANSFER. Default: OFF.
// +kubebuilder:validation:Optional
LogLevel *string `json:"logLevel,omitempty" tf:"log_level,omitempty"`
// A file metadata that indicates the last time a file was modified (written to) before the sync PREPARING phase. Value values: NONE, PRESERVE. Default: PRESERVE.
// +kubebuilder:validation:Optional
Mtime *string `json:"mtime,omitempty" tf:"mtime,omitempty"`
// Specifies whether object tags are maintained when transferring between object storage systems. If you want your DataSync task to ignore object tags, specify the NONE value. Valid values: PRESERVE, NONE. Default value: PRESERVE.
// +kubebuilder:validation:Optional
ObjectTags *string `json:"objectTags,omitempty" tf:"object_tags,omitempty"`
// Determines whether files at the destination should be overwritten or preserved when copying files. Valid values: ALWAYS, NEVER. Default: ALWAYS.
// +kubebuilder:validation:Optional
OverwriteMode *string `json:"overwriteMode,omitempty" tf:"overwrite_mode,omitempty"`
// Determines which users or groups can access a file for a specific purpose such as reading, writing, or execution of the file. Valid values: NONE, PRESERVE. Default: PRESERVE.
// +kubebuilder:validation:Optional
PosixPermissions *string `json:"posixPermissions,omitempty" tf:"posix_permissions,omitempty"`
// Whether files deleted in the source should be removed or preserved in the destination file system. Valid values: PRESERVE, REMOVE. Default: PRESERVE.
// +kubebuilder:validation:Optional
PreserveDeletedFiles *string `json:"preserveDeletedFiles,omitempty" tf:"preserve_deleted_files,omitempty"`
// Whether the DataSync Task should preserve the metadata of block and character devices in the source files system, and recreate the files with that device name and metadata on the destination. The DataSync Task can’t sync the actual contents of such devices, because many of the devices are non-terminal and don’t return an end of file (EOF) marker. Valid values: NONE, PRESERVE. Default: NONE (ignore special devices).
// +kubebuilder:validation:Optional
PreserveDevices *string `json:"preserveDevices,omitempty" tf:"preserve_devices,omitempty"`
// Determines which components of the SMB security descriptor are copied from source to destination objects. This value is only used for transfers between SMB and Amazon FSx for Windows File Server locations, or between two Amazon FSx for Windows File Server locations. Valid values: NONE, OWNER_DACL, OWNER_DACL_SACL. Default: OWNER_DACL.
// +kubebuilder:validation:Optional
SecurityDescriptorCopyFlags *string `json:"securityDescriptorCopyFlags,omitempty" tf:"security_descriptor_copy_flags,omitempty"`
// Determines whether tasks should be queued before executing the tasks. Valid values: ENABLED, DISABLED. Default ENABLED.
// +kubebuilder:validation:Optional
TaskQueueing *string `json:"taskQueueing,omitempty" tf:"task_queueing,omitempty"`
// Determines whether DataSync transfers only the data and metadata that differ between the source and the destination location, or whether DataSync transfers all the content from the source, without comparing to the destination location. Valid values: CHANGED, ALL. Default: CHANGED
// +kubebuilder:validation:Optional
TransferMode *string `json:"transferMode,omitempty" tf:"transfer_mode,omitempty"`
// User identifier of the file's owners. Valid values: BOTH, INT_VALUE, NAME, NONE. Default: INT_VALUE (preserve integer value of the ID).
// +kubebuilder:validation:Optional
UID *string `json:"uid,omitempty" tf:"uid,omitempty"`
// Whether a data integrity verification should be performed at the end of a task execution after all data and metadata have been transferred. Valid values: NONE, POINT_IN_TIME_CONSISTENT, ONLY_FILES_TRANSFERRED. Default: POINT_IN_TIME_CONSISTENT.
// +kubebuilder:validation:Optional
VerifyMode *string `json:"verifyMode,omitempty" tf:"verify_mode,omitempty"`
}
type ReportOverridesInitParameters struct {
// Specifies the level of reporting for the files, objects, and directories that DataSync attempted to delete in your destination location. This only applies if you configure your task to delete data in the destination that isn't in the source. Valid values: ERRORS_ONLY and SUCCESSES_AND_ERRORS.
DeletedOverride *string `json:"deletedOverride,omitempty" tf:"deleted_override,omitempty"`
// Specifies the level of reporting for the files, objects, and directories that DataSync attempted to skip during your transfer. Valid values: ERRORS_ONLY and SUCCESSES_AND_ERRORS.
SkippedOverride *string `json:"skippedOverride,omitempty" tf:"skipped_override,omitempty"`
// Specifies the level of reporting for the files, objects, and directories that DataSync attempted to transfer. Valid values: ERRORS_ONLY and SUCCESSES_AND_ERRORS.
TransferredOverride *string `json:"transferredOverride,omitempty" tf:"transferred_override,omitempty"`
// Specifies the level of reporting for the files, objects, and directories that DataSync attempted to verify at the end of your transfer. Valid values: ERRORS_ONLY and SUCCESSES_AND_ERRORS.
VerifiedOverride *string `json:"verifiedOverride,omitempty" tf:"verified_override,omitempty"`
}
type ReportOverridesObservation struct {
// Specifies the level of reporting for the files, objects, and directories that DataSync attempted to delete in your destination location. This only applies if you configure your task to delete data in the destination that isn't in the source. Valid values: ERRORS_ONLY and SUCCESSES_AND_ERRORS.
DeletedOverride *string `json:"deletedOverride,omitempty" tf:"deleted_override,omitempty"`
// Specifies the level of reporting for the files, objects, and directories that DataSync attempted to skip during your transfer. Valid values: ERRORS_ONLY and SUCCESSES_AND_ERRORS.
SkippedOverride *string `json:"skippedOverride,omitempty" tf:"skipped_override,omitempty"`
// Specifies the level of reporting for the files, objects, and directories that DataSync attempted to transfer. Valid values: ERRORS_ONLY and SUCCESSES_AND_ERRORS.
TransferredOverride *string `json:"transferredOverride,omitempty" tf:"transferred_override,omitempty"`
// Specifies the level of reporting for the files, objects, and directories that DataSync attempted to verify at the end of your transfer. Valid values: ERRORS_ONLY and SUCCESSES_AND_ERRORS.
VerifiedOverride *string `json:"verifiedOverride,omitempty" tf:"verified_override,omitempty"`
}
type ReportOverridesParameters struct {
// Specifies the level of reporting for the files, objects, and directories that DataSync attempted to delete in your destination location. This only applies if you configure your task to delete data in the destination that isn't in the source. Valid values: ERRORS_ONLY and SUCCESSES_AND_ERRORS.
// +kubebuilder:validation:Optional
DeletedOverride *string `json:"deletedOverride,omitempty" tf:"deleted_override,omitempty"`
// Specifies the level of reporting for the files, objects, and directories that DataSync attempted to skip during your transfer. Valid values: ERRORS_ONLY and SUCCESSES_AND_ERRORS.
// +kubebuilder:validation:Optional
SkippedOverride *string `json:"skippedOverride,omitempty" tf:"skipped_override,omitempty"`
// Specifies the level of reporting for the files, objects, and directories that DataSync attempted to transfer. Valid values: ERRORS_ONLY and SUCCESSES_AND_ERRORS.
// +kubebuilder:validation:Optional
TransferredOverride *string `json:"transferredOverride,omitempty" tf:"transferred_override,omitempty"`
// Specifies the level of reporting for the files, objects, and directories that DataSync attempted to verify at the end of your transfer. Valid values: ERRORS_ONLY and SUCCESSES_AND_ERRORS.
// +kubebuilder:validation:Optional
VerifiedOverride *string `json:"verifiedOverride,omitempty" tf:"verified_override,omitempty"`
}
type S3DestinationInitParameters struct {
// Specifies the Amazon Resource Name (ARN) of the IAM policy that allows DataSync to upload a task report to your S3 bucket.
BucketAccessRoleArn *string `json:"bucketAccessRoleArn,omitempty" tf:"bucket_access_role_arn,omitempty"`
// Specifies the ARN of the S3 bucket where DataSync uploads your report.
S3BucketArn *string `json:"s3BucketArn,omitempty" tf:"s3_bucket_arn,omitempty"`
// Specifies a bucket prefix for your report.
Subdirectory *string `json:"subdirectory,omitempty" tf:"subdirectory,omitempty"`
}
type S3DestinationObservation struct {
// Specifies the Amazon Resource Name (ARN) of the IAM policy that allows DataSync to upload a task report to your S3 bucket.
BucketAccessRoleArn *string `json:"bucketAccessRoleArn,omitempty" tf:"bucket_access_role_arn,omitempty"`
// Specifies the ARN of the S3 bucket where DataSync uploads your report.
S3BucketArn *string `json:"s3BucketArn,omitempty" tf:"s3_bucket_arn,omitempty"`
// Specifies a bucket prefix for your report.
Subdirectory *string `json:"subdirectory,omitempty" tf:"subdirectory,omitempty"`
}
type S3DestinationParameters struct {
// Specifies the Amazon Resource Name (ARN) of the IAM policy that allows DataSync to upload a task report to your S3 bucket.
// +kubebuilder:validation:Optional
BucketAccessRoleArn *string `json:"bucketAccessRoleArn" tf:"bucket_access_role_arn,omitempty"`
// Specifies the ARN of the S3 bucket where DataSync uploads your report.
// +kubebuilder:validation:Optional
S3BucketArn *string `json:"s3BucketArn" tf:"s3_bucket_arn,omitempty"`
// Specifies a bucket prefix for your report.
// +kubebuilder:validation:Optional
Subdirectory *string `json:"subdirectory,omitempty" tf:"subdirectory,omitempty"`
}
type ScheduleInitParameters struct {
// Specifies the schedule you want your task to use for repeated executions. For more information, see Schedule Expressions for Rules.
ScheduleExpression *string `json:"scheduleExpression,omitempty" tf:"schedule_expression,omitempty"`
}
type ScheduleObservation struct {
// Specifies the schedule you want your task to use for repeated executions. For more information, see Schedule Expressions for Rules.
ScheduleExpression *string `json:"scheduleExpression,omitempty" tf:"schedule_expression,omitempty"`
}
type ScheduleParameters struct {
// Specifies the schedule you want your task to use for repeated executions. For more information, see Schedule Expressions for Rules.
// +kubebuilder:validation:Optional
ScheduleExpression *string `json:"scheduleExpression" tf:"schedule_expression,omitempty"`
}
type TaskInitParameters struct {
// Amazon Resource Name (ARN) of the CloudWatch Log Group that is used to monitor and log events in the sync task.
// +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/cloudwatchlogs/v1beta1.Group
// +crossplane:generate:reference:extractor=github.com/upbound/provider-aws/config/common.ARNExtractor()
CloudwatchLogGroupArn *string `json:"cloudwatchLogGroupArn,omitempty" tf:"cloudwatch_log_group_arn,omitempty"`
// Reference to a Group in cloudwatchlogs to populate cloudwatchLogGroupArn.
// +kubebuilder:validation:Optional
CloudwatchLogGroupArnRef *v1.Reference `json:"cloudwatchLogGroupArnRef,omitempty" tf:"-"`
// Selector for a Group in cloudwatchlogs to populate cloudwatchLogGroupArn.
// +kubebuilder:validation:Optional
CloudwatchLogGroupArnSelector *v1.Selector `json:"cloudwatchLogGroupArnSelector,omitempty" tf:"-"`
// Amazon Resource Name (ARN) of destination DataSync Location.
// +crossplane:generate:reference:type=LocationS3
DestinationLocationArn *string `json:"destinationLocationArn,omitempty" tf:"destination_location_arn,omitempty"`
// Reference to a LocationS3 to populate destinationLocationArn.
// +kubebuilder:validation:Optional
DestinationLocationArnRef *v1.Reference `json:"destinationLocationArnRef,omitempty" tf:"-"`
// Selector for a LocationS3 to populate destinationLocationArn.
// +kubebuilder:validation:Optional
DestinationLocationArnSelector *v1.Selector `json:"destinationLocationArnSelector,omitempty" tf:"-"`
// Filter rules that determines which files to exclude from a task.
Excludes []ExcludesInitParameters `json:"excludes,omitempty" tf:"excludes,omitempty"`
// Filter rules that determines which files to include in a task.
Includes []IncludesInitParameters `json:"includes,omitempty" tf:"includes,omitempty"`
// Name of the DataSync Task.
Name *string `json:"name,omitempty" tf:"name,omitempty"`
// Configuration block containing option that controls the default behavior when you start an execution of this DataSync Task. For each individual task execution, you can override these options by specifying an overriding configuration in those executions.
Options []OptionsInitParameters `json:"options,omitempty" tf:"options,omitempty"`
// Specifies a schedule used to periodically transfer files from a source to a destination location.
Schedule []ScheduleInitParameters `json:"schedule,omitempty" tf:"schedule,omitempty"`
// Amazon Resource Name (ARN) of source DataSync Location.
// +crossplane:generate:reference:type=LocationS3
SourceLocationArn *string `json:"sourceLocationArn,omitempty" tf:"source_location_arn,omitempty"`
// Reference to a LocationS3 to populate sourceLocationArn.
// +kubebuilder:validation:Optional
SourceLocationArnRef *v1.Reference `json:"sourceLocationArnRef,omitempty" tf:"-"`
// Selector for a LocationS3 to populate sourceLocationArn.
// +kubebuilder:validation:Optional
SourceLocationArnSelector *v1.Selector `json:"sourceLocationArnSelector,omitempty" tf:"-"`
// Key-value map of resource tags.
// +mapType=granular
Tags map[string]*string `json:"tags,omitempty" tf:"tags,omitempty"`
// Configuration block containing the configuration of a DataSync Task Report. See task_report_config below.
TaskReportConfig []TaskReportConfigInitParameters `json:"taskReportConfig,omitempty" tf:"task_report_config,omitempty"`
}
type TaskObservation struct {
// Amazon Resource Name (ARN) of the DataSync Task.
Arn *string `json:"arn,omitempty" tf:"arn,omitempty"`
// Amazon Resource Name (ARN) of the CloudWatch Log Group that is used to monitor and log events in the sync task.
CloudwatchLogGroupArn *string `json:"cloudwatchLogGroupArn,omitempty" tf:"cloudwatch_log_group_arn,omitempty"`
// Amazon Resource Name (ARN) of destination DataSync Location.
DestinationLocationArn *string `json:"destinationLocationArn,omitempty" tf:"destination_location_arn,omitempty"`
// Filter rules that determines which files to exclude from a task.
Excludes []ExcludesObservation `json:"excludes,omitempty" tf:"excludes,omitempty"`
// Amazon Resource Name (ARN) of the DataSync Task.
ID *string `json:"id,omitempty" tf:"id,omitempty"`
// Filter rules that determines which files to include in a task.
Includes []IncludesObservation `json:"includes,omitempty" tf:"includes,omitempty"`
// Name of the DataSync Task.
Name *string `json:"name,omitempty" tf:"name,omitempty"`
// Configuration block containing option that controls the default behavior when you start an execution of this DataSync Task. For each individual task execution, you can override these options by specifying an overriding configuration in those executions.
Options []OptionsObservation `json:"options,omitempty" tf:"options,omitempty"`
// Specifies a schedule used to periodically transfer files from a source to a destination location.
Schedule []ScheduleObservation `json:"schedule,omitempty" tf:"schedule,omitempty"`
// Amazon Resource Name (ARN) of source DataSync Location.
SourceLocationArn *string `json:"sourceLocationArn,omitempty" tf:"source_location_arn,omitempty"`
// Key-value map of resource tags.
// +mapType=granular
Tags map[string]*string `json:"tags,omitempty" tf:"tags,omitempty"`
// A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block.
// +mapType=granular
TagsAll map[string]*string `json:"tagsAll,omitempty" tf:"tags_all,omitempty"`
// Configuration block containing the configuration of a DataSync Task Report. See task_report_config below.
TaskReportConfig []TaskReportConfigObservation `json:"taskReportConfig,omitempty" tf:"task_report_config,omitempty"`
}
type TaskParameters struct {
// Amazon Resource Name (ARN) of the CloudWatch Log Group that is used to monitor and log events in the sync task.
// +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/cloudwatchlogs/v1beta1.Group
// +crossplane:generate:reference:extractor=github.com/upbound/provider-aws/config/common.ARNExtractor()
// +kubebuilder:validation:Optional
CloudwatchLogGroupArn *string `json:"cloudwatchLogGroupArn,omitempty" tf:"cloudwatch_log_group_arn,omitempty"`
// Reference to a Group in cloudwatchlogs to populate cloudwatchLogGroupArn.
// +kubebuilder:validation:Optional
CloudwatchLogGroupArnRef *v1.Reference `json:"cloudwatchLogGroupArnRef,omitempty" tf:"-"`
// Selector for a Group in cloudwatchlogs to populate cloudwatchLogGroupArn.
// +kubebuilder:validation:Optional
CloudwatchLogGroupArnSelector *v1.Selector `json:"cloudwatchLogGroupArnSelector,omitempty" tf:"-"`
// Amazon Resource Name (ARN) of destination DataSync Location.
// +crossplane:generate:reference:type=LocationS3
// +kubebuilder:validation:Optional
DestinationLocationArn *string `json:"destinationLocationArn,omitempty" tf:"destination_location_arn,omitempty"`
// Reference to a LocationS3 to populate destinationLocationArn.
// +kubebuilder:validation:Optional
DestinationLocationArnRef *v1.Reference `json:"destinationLocationArnRef,omitempty" tf:"-"`
// Selector for a LocationS3 to populate destinationLocationArn.
// +kubebuilder:validation:Optional
DestinationLocationArnSelector *v1.Selector `json:"destinationLocationArnSelector,omitempty" tf:"-"`
// Filter rules that determines which files to exclude from a task.
// +kubebuilder:validation:Optional
Excludes []ExcludesParameters `json:"excludes,omitempty" tf:"excludes,omitempty"`
// Filter rules that determines which files to include in a task.
// +kubebuilder:validation:Optional
Includes []IncludesParameters `json:"includes,omitempty" tf:"includes,omitempty"`
// Name of the DataSync Task.
// +kubebuilder:validation:Optional
Name *string `json:"name,omitempty" tf:"name,omitempty"`
// Configuration block containing option that controls the default behavior when you start an execution of this DataSync Task. For each individual task execution, you can override these options by specifying an overriding configuration in those executions.
// +kubebuilder:validation:Optional
Options []OptionsParameters `json:"options,omitempty" tf:"options,omitempty"`
// Region is the region you'd like your resource to be created in.
// +upjet:crd:field:TFTag=-
// +kubebuilder:validation:Required
Region *string `json:"region" tf:"-"`
// Specifies a schedule used to periodically transfer files from a source to a destination location.
// +kubebuilder:validation:Optional
Schedule []ScheduleParameters `json:"schedule,omitempty" tf:"schedule,omitempty"`
// Amazon Resource Name (ARN) of source DataSync Location.
// +crossplane:generate:reference:type=LocationS3
// +kubebuilder:validation:Optional
SourceLocationArn *string `json:"sourceLocationArn,omitempty" tf:"source_location_arn,omitempty"`
// Reference to a LocationS3 to populate sourceLocationArn.
// +kubebuilder:validation:Optional
SourceLocationArnRef *v1.Reference `json:"sourceLocationArnRef,omitempty" tf:"-"`
// Selector for a LocationS3 to populate sourceLocationArn.
// +kubebuilder:validation:Optional
SourceLocationArnSelector *v1.Selector `json:"sourceLocationArnSelector,omitempty" tf:"-"`
// Key-value map of resource tags.
// +kubebuilder:validation:Optional
// +mapType=granular
Tags map[string]*string `json:"tags,omitempty" tf:"tags,omitempty"`
// Configuration block containing the configuration of a DataSync Task Report. See task_report_config below.
// +kubebuilder:validation:Optional
TaskReportConfig []TaskReportConfigParameters `json:"taskReportConfig,omitempty" tf:"task_report_config,omitempty"`
}
type TaskReportConfigInitParameters struct {
// Specifies the type of task report you'd like. Valid values: SUMMARY_ONLY and STANDARD.
OutputType *string `json:"outputType,omitempty" tf:"output_type,omitempty"`
// Specifies whether you want your task report to include only what went wrong with your transfer or a list of what succeeded and didn't. Valid values: ERRORS_ONLY and SUCCESSES_AND_ERRORS.
ReportLevel *string `json:"reportLevel,omitempty" tf:"report_level,omitempty"`
// Configuration block containing the configuration of the reporting level for aspects of your task report. See report_overrides below.
ReportOverrides []ReportOverridesInitParameters `json:"reportOverrides,omitempty" tf:"report_overrides,omitempty"`
// Configuration block containing the configuration for the Amazon S3 bucket where DataSync uploads your task report. See s3_destination below.
S3Destination []S3DestinationInitParameters `json:"s3Destination,omitempty" tf:"s3_destination,omitempty"`
// Specifies whether your task report includes the new version of each object transferred into an S3 bucket. This only applies if you enable versioning on your bucket. Keep in mind that setting this to INCLUDE can increase the duration of your task execution. Valid values: INCLUDE and NONE.
S3ObjectVersioning *string `json:"s3ObjectVersioning,omitempty" tf:"s3_object_versioning,omitempty"`
}
type TaskReportConfigObservation struct {
// Specifies the type of task report you'd like. Valid values: SUMMARY_ONLY and STANDARD.
OutputType *string `json:"outputType,omitempty" tf:"output_type,omitempty"`
// Specifies whether you want your task report to include only what went wrong with your transfer or a list of what succeeded and didn't. Valid values: ERRORS_ONLY and SUCCESSES_AND_ERRORS.
ReportLevel *string `json:"reportLevel,omitempty" tf:"report_level,omitempty"`
// Configuration block containing the configuration of the reporting level for aspects of your task report. See report_overrides below.
ReportOverrides []ReportOverridesObservation `json:"reportOverrides,omitempty" tf:"report_overrides,omitempty"`
// Configuration block containing the configuration for the Amazon S3 bucket where DataSync uploads your task report. See s3_destination below.
S3Destination []S3DestinationObservation `json:"s3Destination,omitempty" tf:"s3_destination,omitempty"`
// Specifies whether your task report includes the new version of each object transferred into an S3 bucket. This only applies if you enable versioning on your bucket. Keep in mind that setting this to INCLUDE can increase the duration of your task execution. Valid values: INCLUDE and NONE.
S3ObjectVersioning *string `json:"s3ObjectVersioning,omitempty" tf:"s3_object_versioning,omitempty"`
}
type TaskReportConfigParameters struct {
// Specifies the type of task report you'd like. Valid values: SUMMARY_ONLY and STANDARD.
// +kubebuilder:validation:Optional
OutputType *string `json:"outputType,omitempty" tf:"output_type,omitempty"`
// Specifies whether you want your task report to include only what went wrong with your transfer or a list of what succeeded and didn't. Valid values: ERRORS_ONLY and SUCCESSES_AND_ERRORS.
// +kubebuilder:validation:Optional
ReportLevel *string `json:"reportLevel,omitempty" tf:"report_level,omitempty"`
// Configuration block containing the configuration of the reporting level for aspects of your task report. See report_overrides below.
// +kubebuilder:validation:Optional
ReportOverrides []ReportOverridesParameters `json:"reportOverrides,omitempty" tf:"report_overrides,omitempty"`
// Configuration block containing the configuration for the Amazon S3 bucket where DataSync uploads your task report. See s3_destination below.
// +kubebuilder:validation:Optional
S3Destination []S3DestinationParameters `json:"s3Destination" tf:"s3_destination,omitempty"`
// Specifies whether your task report includes the new version of each object transferred into an S3 bucket. This only applies if you enable versioning on your bucket. Keep in mind that setting this to INCLUDE can increase the duration of your task execution. Valid values: INCLUDE and NONE.
// +kubebuilder:validation:Optional
S3ObjectVersioning *string `json:"s3ObjectVersioning,omitempty" tf:"s3_object_versioning,omitempty"`
}
// TaskSpec defines the desired state of Task
type TaskSpec struct {
v1.ResourceSpec `json:",inline"`
ForProvider TaskParameters `json:"forProvider"`
// THIS IS A BETA FIELD. It will be honored
// unless the Management Policies feature flag is disabled.
// InitProvider holds the same fields as ForProvider, with the exception
// of Identifier and other resource reference fields. The fields that are
// in InitProvider are merged into ForProvider when the resource is created.
// The same fields are also added to the terraform ignore_changes hook, to
// avoid updating them after creation. This is useful for fields that are
// required on creation, but we do not desire to update them after creation,
// for example because of an external controller is managing them, like an
// autoscaler.
InitProvider TaskInitParameters `json:"initProvider,omitempty"`
}
// TaskStatus defines the observed state of Task.
type TaskStatus struct {
v1.ResourceStatus `json:",inline"`
AtProvider TaskObservation `json:"atProvider,omitempty"`
}
// +kubebuilder:object:root=true
// +kubebuilder:subresource:status
// +kubebuilder:storageversion
// Task is the Schema for the Tasks API. Manages an AWS DataSync Task
// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status"
// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status"
// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name"
// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp"
// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws}
type Task struct {
metav1.TypeMeta `json:",inline"`
metav1.ObjectMeta `json:"metadata,omitempty"`
Spec TaskSpec `json:"spec"`
Status TaskStatus `json:"status,omitempty"`
}
// +kubebuilder:object:root=true
// TaskList contains a list of Tasks
type TaskList struct {
metav1.TypeMeta `json:",inline"`
metav1.ListMeta `json:"metadata,omitempty"`
Items []Task `json:"items"`
}
// Repository type metadata.
var (
Task_Kind = "Task"
Task_GroupKind = schema.GroupKind{Group: CRDGroup, Kind: Task_Kind}.String()
Task_KindAPIVersion = Task_Kind + "." + CRDGroupVersion.String()
Task_GroupVersionKind = CRDGroupVersion.WithKind(Task_Kind)
)
func init() {
SchemeBuilder.Register(&Task{}, &TaskList{})
}