/
restoreJob.go
720 lines (648 loc) · 42.5 KB
/
restoreJob.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
// Code generated by the Pulumi Terraform Bridge (tfgen) Tool DO NOT EDIT.
// *** WARNING: Do not edit by hand unless you're certain you know what you are doing! ***
package hbr
import (
"context"
"reflect"
"errors"
"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/internal"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
// Provides a Hybrid Backup Recovery (HBR) Restore Job resource.
//
// For information about Hybrid Backup Recovery (HBR) Restore Job and how to use it, see [What is Restore Job](https://www.alibabacloud.com/help/doc-detail/186575.htm).
//
// > **NOTE:** Available in v1.133.0+.
//
// ## Example Usage
//
// # Basic Usage
//
// ```go
// package main
//
// import (
//
// "github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/hbr"
// "github.com/pulumi/pulumi/sdk/v3/go/pulumi"
//
// )
//
// func main() {
// pulumi.Run(func(ctx *pulumi.Context) error {
// _default, err := hbr.GetEcsBackupPlans(ctx, &hbr.GetEcsBackupPlansArgs{
// NameRegex: pulumi.StringRef("plan-tf-used-dont-delete"),
// }, nil)
// if err != nil {
// return err
// }
// defaultGetOssBackupPlans, err := hbr.GetOssBackupPlans(ctx, &hbr.GetOssBackupPlansArgs{
// NameRegex: pulumi.StringRef("plan-tf-used-dont-delete"),
// }, nil)
// if err != nil {
// return err
// }
// defaultGetNasBackupPlans, err := hbr.GetNasBackupPlans(ctx, &hbr.GetNasBackupPlansArgs{
// NameRegex: pulumi.StringRef("plan-tf-used-dont-delete"),
// }, nil)
// if err != nil {
// return err
// }
// ecsSnapshots, err := hbr.GetSnapshots(ctx, &hbr.GetSnapshotsArgs{
// SourceType: "ECS_FILE",
// VaultId: _default.Plans[0].VaultId,
// InstanceId: pulumi.StringRef(_default.Plans[0].InstanceId),
// }, nil)
// if err != nil {
// return err
// }
// ossSnapshots, err := hbr.GetSnapshots(ctx, &hbr.GetSnapshotsArgs{
// SourceType: "OSS",
// VaultId: defaultGetOssBackupPlans.Plans[0].VaultId,
// Bucket: pulumi.StringRef(defaultGetOssBackupPlans.Plans[0].Bucket),
// }, nil)
// if err != nil {
// return err
// }
// nasSnapshots, err := hbr.GetSnapshots(ctx, &hbr.GetSnapshotsArgs{
// SourceType: "NAS",
// VaultId: defaultGetNasBackupPlans.Plans[0].VaultId,
// FileSystemId: pulumi.StringRef(defaultGetNasBackupPlans.Plans[0].FileSystemId),
// CreateTime: pulumi.StringRef(defaultGetNasBackupPlans.Plans[0].CreateTime),
// }, nil)
// if err != nil {
// return err
// }
// _, err = hbr.NewRestoreJob(ctx, "nasJob", &hbr.RestoreJobArgs{
// SnapshotHash: pulumi.String(nasSnapshots.Snapshots[0].SnapshotHash),
// VaultId: pulumi.String(defaultGetNasBackupPlans.Plans[0].VaultId),
// SourceType: pulumi.String("NAS"),
// RestoreType: pulumi.String("NAS"),
// SnapshotId: pulumi.String(nasSnapshots.Snapshots[0].SnapshotId),
// TargetFileSystemId: pulumi.String(defaultGetNasBackupPlans.Plans[0].FileSystemId),
// TargetCreateTime: pulumi.String(defaultGetNasBackupPlans.Plans[0].CreateTime),
// TargetPath: pulumi.String("/"),
// Options: pulumi.String(" {\"includes\":[], \"excludes\":[]}\n"),
// })
// if err != nil {
// return err
// }
// _, err = hbr.NewRestoreJob(ctx, "ossJob", &hbr.RestoreJobArgs{
// SnapshotHash: pulumi.String(ossSnapshots.Snapshots[0].SnapshotHash),
// VaultId: pulumi.String(defaultGetOssBackupPlans.Plans[0].VaultId),
// SourceType: pulumi.String("OSS"),
// RestoreType: pulumi.String("OSS"),
// SnapshotId: pulumi.String(ossSnapshots.Snapshots[0].SnapshotId),
// TargetBucket: pulumi.String(defaultGetOssBackupPlans.Plans[0].Bucket),
// TargetPrefix: pulumi.String(""),
// Options: pulumi.String(" {\"includes\":[], \"excludes\":[]}\n"),
// })
// if err != nil {
// return err
// }
// _, err = hbr.NewRestoreJob(ctx, "ecsJob", &hbr.RestoreJobArgs{
// SnapshotHash: pulumi.String(ecsSnapshots.Snapshots[0].SnapshotHash),
// VaultId: pulumi.String(_default.Plans[0].VaultId),
// SourceType: pulumi.String("ECS_FILE"),
// RestoreType: pulumi.String("ECS_FILE"),
// SnapshotId: pulumi.String(ecsSnapshots.Snapshots[0].SnapshotId),
// TargetInstanceId: pulumi.String(_default.Plans[0].InstanceId),
// TargetPath: pulumi.String("/"),
// })
// if err != nil {
// return err
// }
// return nil
// })
// }
//
// ```
//
// > **NOTE:** This resource can only be created, cannot be modified or deleted. Therefore, any modification of the resource attribute will not affect exist resource.
//
// ## Import
//
// Hybrid Backup Recovery (HBR) Restore Job can be imported using the id. Format to `<restore_job_id>:<restore_type>`, e.g.
//
// ```sh
// $ pulumi import alicloud:hbr/restoreJob:RestoreJob example your_restore_job_id:your_restore_type
// ```
type RestoreJob struct {
pulumi.CustomResourceState
// The role name created in the original account RAM backup by the cross account managed by the current account.
CrossAccountRoleName pulumi.StringPtrOutput `pulumi:"crossAccountRoleName"`
// The type of the cross account backup. Valid values: `SELF_ACCOUNT`, `CROSS_ACCOUNT`.
CrossAccountType pulumi.StringOutput `pulumi:"crossAccountType"`
// The original account ID of the cross account backup managed by the current account.
CrossAccountUserId pulumi.IntPtrOutput `pulumi:"crossAccountUserId"`
// The exclude path. **NOTE:** Invalid while sourceType equals `OSS` or `NAS`. It's a json string with format:`["/excludePath]`, up to 255 characters. **WARNING:** If this value filled in incorrectly, the task may not start correctly, so please check the parameters before executing the plan.
Exclude pulumi.StringPtrOutput `pulumi:"exclude"`
// The include path. **NOTE:** Invalid while sourceType equals `OSS` or `NAS`. It's a json string with format:`["/includePath"]`, Up to 255 characters. **WARNING:** The field is required while sourceType equals `OTS_TABLE` which means source table name. If this value filled in incorrectly, the task may not start correctly, so please check the parameters before executing the plan.
Include pulumi.StringPtrOutput `pulumi:"include"`
// Recovery options. **NOTE:** Required while sourceType equals `OSS` or `NAS`, invalid while sourceType equals `ECS_FILE`. It's a json string with format:`"{"includes":[],"excludes":[]}",`. Recovery options. When restores OTS_TABLE and real target time is the rangEnd time of the snapshot, it should be a string with format: `{"UI_TargetTime":1650032529018}`.
Options pulumi.StringPtrOutput `pulumi:"options"`
// The details about the Tablestore instance. See the following `Block otsDetail`.
OtsDetail RestoreJobOtsDetailOutput `pulumi:"otsDetail"`
// Restore Job ID. It's the unique key of this resource, if you want to set this argument by yourself, you must specify a unique keyword that never appears.
RestoreJobId pulumi.StringOutput `pulumi:"restoreJobId"`
// The type of recovery destination. Valid values: `ECS_FILE`, `NAS`, `OSS`,`OTS_TABLE`,`UDM_ECS_ROLLBACK`. **Note**: Currently, there is a one-to-one correspondence between the data source type with the recovery destination type.
RestoreType pulumi.StringOutput `pulumi:"restoreType"`
// The hashcode of Snapshot.
SnapshotHash pulumi.StringOutput `pulumi:"snapshotHash"`
// The ID of Snapshot.
SnapshotId pulumi.StringOutput `pulumi:"snapshotId"`
// The type of data source. Valid values: `ECS_FILE`, `NAS`, `OSS`,`OTS_TABLE`,`UDM_ECS`.
SourceType pulumi.StringOutput `pulumi:"sourceType"`
// The Restore Job Status.
Status pulumi.StringOutput `pulumi:"status"`
// The target name of OSS bucket. **NOTE:** Required while sourceType equals `OSS`,
TargetBucket pulumi.StringPtrOutput `pulumi:"targetBucket"`
// The target client ID.
TargetClientId pulumi.StringPtrOutput `pulumi:"targetClientId"`
// The creation time of destination File System. **NOTE:** While sourceType equals `NAS`, this parameter must be set. **Note:** The time format of the API adopts the ISO 8601 format, such as `2021-07-09T15:45:30CST` or `2021-07-09T07:45:30Z`.
TargetCreateTime pulumi.StringPtrOutput `pulumi:"targetCreateTime"`
// The target data source ID.
TargetDataSourceId pulumi.StringPtrOutput `pulumi:"targetDataSourceId"`
// The ID of destination File System. **NOTE:** Required while sourceType equals `NAS`
TargetFileSystemId pulumi.StringPtrOutput `pulumi:"targetFileSystemId"`
// The target ID of ECS instance. **NOTE:** Required while sourceType equals `ECS_FILE`
TargetInstanceId pulumi.StringPtrOutput `pulumi:"targetInstanceId"`
// The name of the Table store instance to which you want to restore data.**WARNING:** Required while sourceType equals `OTS_TABLE`.
TargetInstanceName pulumi.StringPtrOutput `pulumi:"targetInstanceName"`
// The target file path of (ECS) instance. **WARNING:** Required while sourceType equals `NAS` or `ECS_FILE`, If this value filled in incorrectly, the task may not start correctly, so please check the parameters before executing the plan.
TargetPath pulumi.StringPtrOutput `pulumi:"targetPath"`
// The target prefix of the OSS object. **WARNING:** Required while sourceType equals `OSS`. If this value filled in incorrectly, the task may not start correctly, so please check the parameters before executing the plan.
TargetPrefix pulumi.StringPtrOutput `pulumi:"targetPrefix"`
// The name of the table that stores the restored data. **WARNING:** Required while sourceType equals `OTS_TABLE`.
TargetTableName pulumi.StringPtrOutput `pulumi:"targetTableName"`
// The time when data is restored to the Table store instance. This value is a UNIX timestamp. Unit: seconds. **WARNING:** Required while sourceType equals `OTS_TABLE`. **Note:** The time when data is restored to the Tablestore instance. It should be 0 if restores data at the End time of the snapshot.
TargetTime pulumi.StringPtrOutput `pulumi:"targetTime"`
// The full machine backup details.
UdmDetail pulumi.StringPtrOutput `pulumi:"udmDetail"`
// The ID of backup vault.
VaultId pulumi.StringOutput `pulumi:"vaultId"`
}
// NewRestoreJob registers a new resource with the given unique name, arguments, and options.
func NewRestoreJob(ctx *pulumi.Context,
name string, args *RestoreJobArgs, opts ...pulumi.ResourceOption) (*RestoreJob, error) {
if args == nil {
return nil, errors.New("missing one or more required arguments")
}
if args.RestoreType == nil {
return nil, errors.New("invalid value for required argument 'RestoreType'")
}
if args.SnapshotHash == nil {
return nil, errors.New("invalid value for required argument 'SnapshotHash'")
}
if args.SnapshotId == nil {
return nil, errors.New("invalid value for required argument 'SnapshotId'")
}
if args.SourceType == nil {
return nil, errors.New("invalid value for required argument 'SourceType'")
}
if args.VaultId == nil {
return nil, errors.New("invalid value for required argument 'VaultId'")
}
opts = internal.PkgResourceDefaultOpts(opts)
var resource RestoreJob
err := ctx.RegisterResource("alicloud:hbr/restoreJob:RestoreJob", name, args, &resource, opts...)
if err != nil {
return nil, err
}
return &resource, nil
}
// GetRestoreJob gets an existing RestoreJob resource's state with the given name, ID, and optional
// state properties that are used to uniquely qualify the lookup (nil if not required).
func GetRestoreJob(ctx *pulumi.Context,
name string, id pulumi.IDInput, state *RestoreJobState, opts ...pulumi.ResourceOption) (*RestoreJob, error) {
var resource RestoreJob
err := ctx.ReadResource("alicloud:hbr/restoreJob:RestoreJob", name, id, state, &resource, opts...)
if err != nil {
return nil, err
}
return &resource, nil
}
// Input properties used for looking up and filtering RestoreJob resources.
type restoreJobState struct {
// The role name created in the original account RAM backup by the cross account managed by the current account.
CrossAccountRoleName *string `pulumi:"crossAccountRoleName"`
// The type of the cross account backup. Valid values: `SELF_ACCOUNT`, `CROSS_ACCOUNT`.
CrossAccountType *string `pulumi:"crossAccountType"`
// The original account ID of the cross account backup managed by the current account.
CrossAccountUserId *int `pulumi:"crossAccountUserId"`
// The exclude path. **NOTE:** Invalid while sourceType equals `OSS` or `NAS`. It's a json string with format:`["/excludePath]`, up to 255 characters. **WARNING:** If this value filled in incorrectly, the task may not start correctly, so please check the parameters before executing the plan.
Exclude *string `pulumi:"exclude"`
// The include path. **NOTE:** Invalid while sourceType equals `OSS` or `NAS`. It's a json string with format:`["/includePath"]`, Up to 255 characters. **WARNING:** The field is required while sourceType equals `OTS_TABLE` which means source table name. If this value filled in incorrectly, the task may not start correctly, so please check the parameters before executing the plan.
Include *string `pulumi:"include"`
// Recovery options. **NOTE:** Required while sourceType equals `OSS` or `NAS`, invalid while sourceType equals `ECS_FILE`. It's a json string with format:`"{"includes":[],"excludes":[]}",`. Recovery options. When restores OTS_TABLE and real target time is the rangEnd time of the snapshot, it should be a string with format: `{"UI_TargetTime":1650032529018}`.
Options *string `pulumi:"options"`
// The details about the Tablestore instance. See the following `Block otsDetail`.
OtsDetail *RestoreJobOtsDetail `pulumi:"otsDetail"`
// Restore Job ID. It's the unique key of this resource, if you want to set this argument by yourself, you must specify a unique keyword that never appears.
RestoreJobId *string `pulumi:"restoreJobId"`
// The type of recovery destination. Valid values: `ECS_FILE`, `NAS`, `OSS`,`OTS_TABLE`,`UDM_ECS_ROLLBACK`. **Note**: Currently, there is a one-to-one correspondence between the data source type with the recovery destination type.
RestoreType *string `pulumi:"restoreType"`
// The hashcode of Snapshot.
SnapshotHash *string `pulumi:"snapshotHash"`
// The ID of Snapshot.
SnapshotId *string `pulumi:"snapshotId"`
// The type of data source. Valid values: `ECS_FILE`, `NAS`, `OSS`,`OTS_TABLE`,`UDM_ECS`.
SourceType *string `pulumi:"sourceType"`
// The Restore Job Status.
Status *string `pulumi:"status"`
// The target name of OSS bucket. **NOTE:** Required while sourceType equals `OSS`,
TargetBucket *string `pulumi:"targetBucket"`
// The target client ID.
TargetClientId *string `pulumi:"targetClientId"`
// The creation time of destination File System. **NOTE:** While sourceType equals `NAS`, this parameter must be set. **Note:** The time format of the API adopts the ISO 8601 format, such as `2021-07-09T15:45:30CST` or `2021-07-09T07:45:30Z`.
TargetCreateTime *string `pulumi:"targetCreateTime"`
// The target data source ID.
TargetDataSourceId *string `pulumi:"targetDataSourceId"`
// The ID of destination File System. **NOTE:** Required while sourceType equals `NAS`
TargetFileSystemId *string `pulumi:"targetFileSystemId"`
// The target ID of ECS instance. **NOTE:** Required while sourceType equals `ECS_FILE`
TargetInstanceId *string `pulumi:"targetInstanceId"`
// The name of the Table store instance to which you want to restore data.**WARNING:** Required while sourceType equals `OTS_TABLE`.
TargetInstanceName *string `pulumi:"targetInstanceName"`
// The target file path of (ECS) instance. **WARNING:** Required while sourceType equals `NAS` or `ECS_FILE`, If this value filled in incorrectly, the task may not start correctly, so please check the parameters before executing the plan.
TargetPath *string `pulumi:"targetPath"`
// The target prefix of the OSS object. **WARNING:** Required while sourceType equals `OSS`. If this value filled in incorrectly, the task may not start correctly, so please check the parameters before executing the plan.
TargetPrefix *string `pulumi:"targetPrefix"`
// The name of the table that stores the restored data. **WARNING:** Required while sourceType equals `OTS_TABLE`.
TargetTableName *string `pulumi:"targetTableName"`
// The time when data is restored to the Table store instance. This value is a UNIX timestamp. Unit: seconds. **WARNING:** Required while sourceType equals `OTS_TABLE`. **Note:** The time when data is restored to the Tablestore instance. It should be 0 if restores data at the End time of the snapshot.
TargetTime *string `pulumi:"targetTime"`
// The full machine backup details.
UdmDetail *string `pulumi:"udmDetail"`
// The ID of backup vault.
VaultId *string `pulumi:"vaultId"`
}
type RestoreJobState struct {
// The role name created in the original account RAM backup by the cross account managed by the current account.
CrossAccountRoleName pulumi.StringPtrInput
// The type of the cross account backup. Valid values: `SELF_ACCOUNT`, `CROSS_ACCOUNT`.
CrossAccountType pulumi.StringPtrInput
// The original account ID of the cross account backup managed by the current account.
CrossAccountUserId pulumi.IntPtrInput
// The exclude path. **NOTE:** Invalid while sourceType equals `OSS` or `NAS`. It's a json string with format:`["/excludePath]`, up to 255 characters. **WARNING:** If this value filled in incorrectly, the task may not start correctly, so please check the parameters before executing the plan.
Exclude pulumi.StringPtrInput
// The include path. **NOTE:** Invalid while sourceType equals `OSS` or `NAS`. It's a json string with format:`["/includePath"]`, Up to 255 characters. **WARNING:** The field is required while sourceType equals `OTS_TABLE` which means source table name. If this value filled in incorrectly, the task may not start correctly, so please check the parameters before executing the plan.
Include pulumi.StringPtrInput
// Recovery options. **NOTE:** Required while sourceType equals `OSS` or `NAS`, invalid while sourceType equals `ECS_FILE`. It's a json string with format:`"{"includes":[],"excludes":[]}",`. Recovery options. When restores OTS_TABLE and real target time is the rangEnd time of the snapshot, it should be a string with format: `{"UI_TargetTime":1650032529018}`.
Options pulumi.StringPtrInput
// The details about the Tablestore instance. See the following `Block otsDetail`.
OtsDetail RestoreJobOtsDetailPtrInput
// Restore Job ID. It's the unique key of this resource, if you want to set this argument by yourself, you must specify a unique keyword that never appears.
RestoreJobId pulumi.StringPtrInput
// The type of recovery destination. Valid values: `ECS_FILE`, `NAS`, `OSS`,`OTS_TABLE`,`UDM_ECS_ROLLBACK`. **Note**: Currently, there is a one-to-one correspondence between the data source type with the recovery destination type.
RestoreType pulumi.StringPtrInput
// The hashcode of Snapshot.
SnapshotHash pulumi.StringPtrInput
// The ID of Snapshot.
SnapshotId pulumi.StringPtrInput
// The type of data source. Valid values: `ECS_FILE`, `NAS`, `OSS`,`OTS_TABLE`,`UDM_ECS`.
SourceType pulumi.StringPtrInput
// The Restore Job Status.
Status pulumi.StringPtrInput
// The target name of OSS bucket. **NOTE:** Required while sourceType equals `OSS`,
TargetBucket pulumi.StringPtrInput
// The target client ID.
TargetClientId pulumi.StringPtrInput
// The creation time of destination File System. **NOTE:** While sourceType equals `NAS`, this parameter must be set. **Note:** The time format of the API adopts the ISO 8601 format, such as `2021-07-09T15:45:30CST` or `2021-07-09T07:45:30Z`.
TargetCreateTime pulumi.StringPtrInput
// The target data source ID.
TargetDataSourceId pulumi.StringPtrInput
// The ID of destination File System. **NOTE:** Required while sourceType equals `NAS`
TargetFileSystemId pulumi.StringPtrInput
// The target ID of ECS instance. **NOTE:** Required while sourceType equals `ECS_FILE`
TargetInstanceId pulumi.StringPtrInput
// The name of the Table store instance to which you want to restore data.**WARNING:** Required while sourceType equals `OTS_TABLE`.
TargetInstanceName pulumi.StringPtrInput
// The target file path of (ECS) instance. **WARNING:** Required while sourceType equals `NAS` or `ECS_FILE`, If this value filled in incorrectly, the task may not start correctly, so please check the parameters before executing the plan.
TargetPath pulumi.StringPtrInput
// The target prefix of the OSS object. **WARNING:** Required while sourceType equals `OSS`. If this value filled in incorrectly, the task may not start correctly, so please check the parameters before executing the plan.
TargetPrefix pulumi.StringPtrInput
// The name of the table that stores the restored data. **WARNING:** Required while sourceType equals `OTS_TABLE`.
TargetTableName pulumi.StringPtrInput
// The time when data is restored to the Table store instance. This value is a UNIX timestamp. Unit: seconds. **WARNING:** Required while sourceType equals `OTS_TABLE`. **Note:** The time when data is restored to the Tablestore instance. It should be 0 if restores data at the End time of the snapshot.
TargetTime pulumi.StringPtrInput
// The full machine backup details.
UdmDetail pulumi.StringPtrInput
// The ID of backup vault.
VaultId pulumi.StringPtrInput
}
func (RestoreJobState) ElementType() reflect.Type {
return reflect.TypeOf((*restoreJobState)(nil)).Elem()
}
type restoreJobArgs struct {
// The role name created in the original account RAM backup by the cross account managed by the current account.
CrossAccountRoleName *string `pulumi:"crossAccountRoleName"`
// The type of the cross account backup. Valid values: `SELF_ACCOUNT`, `CROSS_ACCOUNT`.
CrossAccountType *string `pulumi:"crossAccountType"`
// The original account ID of the cross account backup managed by the current account.
CrossAccountUserId *int `pulumi:"crossAccountUserId"`
// The exclude path. **NOTE:** Invalid while sourceType equals `OSS` or `NAS`. It's a json string with format:`["/excludePath]`, up to 255 characters. **WARNING:** If this value filled in incorrectly, the task may not start correctly, so please check the parameters before executing the plan.
Exclude *string `pulumi:"exclude"`
// The include path. **NOTE:** Invalid while sourceType equals `OSS` or `NAS`. It's a json string with format:`["/includePath"]`, Up to 255 characters. **WARNING:** The field is required while sourceType equals `OTS_TABLE` which means source table name. If this value filled in incorrectly, the task may not start correctly, so please check the parameters before executing the plan.
Include *string `pulumi:"include"`
// Recovery options. **NOTE:** Required while sourceType equals `OSS` or `NAS`, invalid while sourceType equals `ECS_FILE`. It's a json string with format:`"{"includes":[],"excludes":[]}",`. Recovery options. When restores OTS_TABLE and real target time is the rangEnd time of the snapshot, it should be a string with format: `{"UI_TargetTime":1650032529018}`.
Options *string `pulumi:"options"`
// The details about the Tablestore instance. See the following `Block otsDetail`.
OtsDetail *RestoreJobOtsDetail `pulumi:"otsDetail"`
// Restore Job ID. It's the unique key of this resource, if you want to set this argument by yourself, you must specify a unique keyword that never appears.
RestoreJobId *string `pulumi:"restoreJobId"`
// The type of recovery destination. Valid values: `ECS_FILE`, `NAS`, `OSS`,`OTS_TABLE`,`UDM_ECS_ROLLBACK`. **Note**: Currently, there is a one-to-one correspondence between the data source type with the recovery destination type.
RestoreType string `pulumi:"restoreType"`
// The hashcode of Snapshot.
SnapshotHash string `pulumi:"snapshotHash"`
// The ID of Snapshot.
SnapshotId string `pulumi:"snapshotId"`
// The type of data source. Valid values: `ECS_FILE`, `NAS`, `OSS`,`OTS_TABLE`,`UDM_ECS`.
SourceType string `pulumi:"sourceType"`
// The target name of OSS bucket. **NOTE:** Required while sourceType equals `OSS`,
TargetBucket *string `pulumi:"targetBucket"`
// The target client ID.
TargetClientId *string `pulumi:"targetClientId"`
// The creation time of destination File System. **NOTE:** While sourceType equals `NAS`, this parameter must be set. **Note:** The time format of the API adopts the ISO 8601 format, such as `2021-07-09T15:45:30CST` or `2021-07-09T07:45:30Z`.
TargetCreateTime *string `pulumi:"targetCreateTime"`
// The target data source ID.
TargetDataSourceId *string `pulumi:"targetDataSourceId"`
// The ID of destination File System. **NOTE:** Required while sourceType equals `NAS`
TargetFileSystemId *string `pulumi:"targetFileSystemId"`
// The target ID of ECS instance. **NOTE:** Required while sourceType equals `ECS_FILE`
TargetInstanceId *string `pulumi:"targetInstanceId"`
// The name of the Table store instance to which you want to restore data.**WARNING:** Required while sourceType equals `OTS_TABLE`.
TargetInstanceName *string `pulumi:"targetInstanceName"`
// The target file path of (ECS) instance. **WARNING:** Required while sourceType equals `NAS` or `ECS_FILE`, If this value filled in incorrectly, the task may not start correctly, so please check the parameters before executing the plan.
TargetPath *string `pulumi:"targetPath"`
// The target prefix of the OSS object. **WARNING:** Required while sourceType equals `OSS`. If this value filled in incorrectly, the task may not start correctly, so please check the parameters before executing the plan.
TargetPrefix *string `pulumi:"targetPrefix"`
// The name of the table that stores the restored data. **WARNING:** Required while sourceType equals `OTS_TABLE`.
TargetTableName *string `pulumi:"targetTableName"`
// The time when data is restored to the Table store instance. This value is a UNIX timestamp. Unit: seconds. **WARNING:** Required while sourceType equals `OTS_TABLE`. **Note:** The time when data is restored to the Tablestore instance. It should be 0 if restores data at the End time of the snapshot.
TargetTime *string `pulumi:"targetTime"`
// The full machine backup details.
UdmDetail *string `pulumi:"udmDetail"`
// The ID of backup vault.
VaultId string `pulumi:"vaultId"`
}
// The set of arguments for constructing a RestoreJob resource.
type RestoreJobArgs struct {
// The role name created in the original account RAM backup by the cross account managed by the current account.
CrossAccountRoleName pulumi.StringPtrInput
// The type of the cross account backup. Valid values: `SELF_ACCOUNT`, `CROSS_ACCOUNT`.
CrossAccountType pulumi.StringPtrInput
// The original account ID of the cross account backup managed by the current account.
CrossAccountUserId pulumi.IntPtrInput
// The exclude path. **NOTE:** Invalid while sourceType equals `OSS` or `NAS`. It's a json string with format:`["/excludePath]`, up to 255 characters. **WARNING:** If this value filled in incorrectly, the task may not start correctly, so please check the parameters before executing the plan.
Exclude pulumi.StringPtrInput
// The include path. **NOTE:** Invalid while sourceType equals `OSS` or `NAS`. It's a json string with format:`["/includePath"]`, Up to 255 characters. **WARNING:** The field is required while sourceType equals `OTS_TABLE` which means source table name. If this value filled in incorrectly, the task may not start correctly, so please check the parameters before executing the plan.
Include pulumi.StringPtrInput
// Recovery options. **NOTE:** Required while sourceType equals `OSS` or `NAS`, invalid while sourceType equals `ECS_FILE`. It's a json string with format:`"{"includes":[],"excludes":[]}",`. Recovery options. When restores OTS_TABLE and real target time is the rangEnd time of the snapshot, it should be a string with format: `{"UI_TargetTime":1650032529018}`.
Options pulumi.StringPtrInput
// The details about the Tablestore instance. See the following `Block otsDetail`.
OtsDetail RestoreJobOtsDetailPtrInput
// Restore Job ID. It's the unique key of this resource, if you want to set this argument by yourself, you must specify a unique keyword that never appears.
RestoreJobId pulumi.StringPtrInput
// The type of recovery destination. Valid values: `ECS_FILE`, `NAS`, `OSS`,`OTS_TABLE`,`UDM_ECS_ROLLBACK`. **Note**: Currently, there is a one-to-one correspondence between the data source type with the recovery destination type.
RestoreType pulumi.StringInput
// The hashcode of Snapshot.
SnapshotHash pulumi.StringInput
// The ID of Snapshot.
SnapshotId pulumi.StringInput
// The type of data source. Valid values: `ECS_FILE`, `NAS`, `OSS`,`OTS_TABLE`,`UDM_ECS`.
SourceType pulumi.StringInput
// The target name of OSS bucket. **NOTE:** Required while sourceType equals `OSS`,
TargetBucket pulumi.StringPtrInput
// The target client ID.
TargetClientId pulumi.StringPtrInput
// The creation time of destination File System. **NOTE:** While sourceType equals `NAS`, this parameter must be set. **Note:** The time format of the API adopts the ISO 8601 format, such as `2021-07-09T15:45:30CST` or `2021-07-09T07:45:30Z`.
TargetCreateTime pulumi.StringPtrInput
// The target data source ID.
TargetDataSourceId pulumi.StringPtrInput
// The ID of destination File System. **NOTE:** Required while sourceType equals `NAS`
TargetFileSystemId pulumi.StringPtrInput
// The target ID of ECS instance. **NOTE:** Required while sourceType equals `ECS_FILE`
TargetInstanceId pulumi.StringPtrInput
// The name of the Table store instance to which you want to restore data.**WARNING:** Required while sourceType equals `OTS_TABLE`.
TargetInstanceName pulumi.StringPtrInput
// The target file path of (ECS) instance. **WARNING:** Required while sourceType equals `NAS` or `ECS_FILE`, If this value filled in incorrectly, the task may not start correctly, so please check the parameters before executing the plan.
TargetPath pulumi.StringPtrInput
// The target prefix of the OSS object. **WARNING:** Required while sourceType equals `OSS`. If this value filled in incorrectly, the task may not start correctly, so please check the parameters before executing the plan.
TargetPrefix pulumi.StringPtrInput
// The name of the table that stores the restored data. **WARNING:** Required while sourceType equals `OTS_TABLE`.
TargetTableName pulumi.StringPtrInput
// The time when data is restored to the Table store instance. This value is a UNIX timestamp. Unit: seconds. **WARNING:** Required while sourceType equals `OTS_TABLE`. **Note:** The time when data is restored to the Tablestore instance. It should be 0 if restores data at the End time of the snapshot.
TargetTime pulumi.StringPtrInput
// The full machine backup details.
UdmDetail pulumi.StringPtrInput
// The ID of backup vault.
VaultId pulumi.StringInput
}
func (RestoreJobArgs) ElementType() reflect.Type {
return reflect.TypeOf((*restoreJobArgs)(nil)).Elem()
}
type RestoreJobInput interface {
pulumi.Input
ToRestoreJobOutput() RestoreJobOutput
ToRestoreJobOutputWithContext(ctx context.Context) RestoreJobOutput
}
func (*RestoreJob) ElementType() reflect.Type {
return reflect.TypeOf((**RestoreJob)(nil)).Elem()
}
func (i *RestoreJob) ToRestoreJobOutput() RestoreJobOutput {
return i.ToRestoreJobOutputWithContext(context.Background())
}
func (i *RestoreJob) ToRestoreJobOutputWithContext(ctx context.Context) RestoreJobOutput {
return pulumi.ToOutputWithContext(ctx, i).(RestoreJobOutput)
}
// RestoreJobArrayInput is an input type that accepts RestoreJobArray and RestoreJobArrayOutput values.
// You can construct a concrete instance of `RestoreJobArrayInput` via:
//
// RestoreJobArray{ RestoreJobArgs{...} }
type RestoreJobArrayInput interface {
pulumi.Input
ToRestoreJobArrayOutput() RestoreJobArrayOutput
ToRestoreJobArrayOutputWithContext(context.Context) RestoreJobArrayOutput
}
type RestoreJobArray []RestoreJobInput
func (RestoreJobArray) ElementType() reflect.Type {
return reflect.TypeOf((*[]*RestoreJob)(nil)).Elem()
}
func (i RestoreJobArray) ToRestoreJobArrayOutput() RestoreJobArrayOutput {
return i.ToRestoreJobArrayOutputWithContext(context.Background())
}
func (i RestoreJobArray) ToRestoreJobArrayOutputWithContext(ctx context.Context) RestoreJobArrayOutput {
return pulumi.ToOutputWithContext(ctx, i).(RestoreJobArrayOutput)
}
// RestoreJobMapInput is an input type that accepts RestoreJobMap and RestoreJobMapOutput values.
// You can construct a concrete instance of `RestoreJobMapInput` via:
//
// RestoreJobMap{ "key": RestoreJobArgs{...} }
type RestoreJobMapInput interface {
pulumi.Input
ToRestoreJobMapOutput() RestoreJobMapOutput
ToRestoreJobMapOutputWithContext(context.Context) RestoreJobMapOutput
}
type RestoreJobMap map[string]RestoreJobInput
func (RestoreJobMap) ElementType() reflect.Type {
return reflect.TypeOf((*map[string]*RestoreJob)(nil)).Elem()
}
func (i RestoreJobMap) ToRestoreJobMapOutput() RestoreJobMapOutput {
return i.ToRestoreJobMapOutputWithContext(context.Background())
}
func (i RestoreJobMap) ToRestoreJobMapOutputWithContext(ctx context.Context) RestoreJobMapOutput {
return pulumi.ToOutputWithContext(ctx, i).(RestoreJobMapOutput)
}
type RestoreJobOutput struct{ *pulumi.OutputState }
func (RestoreJobOutput) ElementType() reflect.Type {
return reflect.TypeOf((**RestoreJob)(nil)).Elem()
}
func (o RestoreJobOutput) ToRestoreJobOutput() RestoreJobOutput {
return o
}
func (o RestoreJobOutput) ToRestoreJobOutputWithContext(ctx context.Context) RestoreJobOutput {
return o
}
// The role name created in the original account RAM backup by the cross account managed by the current account.
func (o RestoreJobOutput) CrossAccountRoleName() pulumi.StringPtrOutput {
return o.ApplyT(func(v *RestoreJob) pulumi.StringPtrOutput { return v.CrossAccountRoleName }).(pulumi.StringPtrOutput)
}
// The type of the cross account backup. Valid values: `SELF_ACCOUNT`, `CROSS_ACCOUNT`.
func (o RestoreJobOutput) CrossAccountType() pulumi.StringOutput {
return o.ApplyT(func(v *RestoreJob) pulumi.StringOutput { return v.CrossAccountType }).(pulumi.StringOutput)
}
// The original account ID of the cross account backup managed by the current account.
func (o RestoreJobOutput) CrossAccountUserId() pulumi.IntPtrOutput {
return o.ApplyT(func(v *RestoreJob) pulumi.IntPtrOutput { return v.CrossAccountUserId }).(pulumi.IntPtrOutput)
}
// The exclude path. **NOTE:** Invalid while sourceType equals `OSS` or `NAS`. It's a json string with format:`["/excludePath]`, up to 255 characters. **WARNING:** If this value filled in incorrectly, the task may not start correctly, so please check the parameters before executing the plan.
func (o RestoreJobOutput) Exclude() pulumi.StringPtrOutput {
return o.ApplyT(func(v *RestoreJob) pulumi.StringPtrOutput { return v.Exclude }).(pulumi.StringPtrOutput)
}
// The include path. **NOTE:** Invalid while sourceType equals `OSS` or `NAS`. It's a json string with format:`["/includePath"]`, Up to 255 characters. **WARNING:** The field is required while sourceType equals `OTS_TABLE` which means source table name. If this value filled in incorrectly, the task may not start correctly, so please check the parameters before executing the plan.
func (o RestoreJobOutput) Include() pulumi.StringPtrOutput {
return o.ApplyT(func(v *RestoreJob) pulumi.StringPtrOutput { return v.Include }).(pulumi.StringPtrOutput)
}
// Recovery options. **NOTE:** Required while sourceType equals `OSS` or `NAS`, invalid while sourceType equals `ECS_FILE`. It's a json string with format:`"{"includes":[],"excludes":[]}",`. Recovery options. When restores OTS_TABLE and real target time is the rangEnd time of the snapshot, it should be a string with format: `{"UI_TargetTime":1650032529018}`.
func (o RestoreJobOutput) Options() pulumi.StringPtrOutput {
return o.ApplyT(func(v *RestoreJob) pulumi.StringPtrOutput { return v.Options }).(pulumi.StringPtrOutput)
}
// The details about the Tablestore instance. See the following `Block otsDetail`.
func (o RestoreJobOutput) OtsDetail() RestoreJobOtsDetailOutput {
return o.ApplyT(func(v *RestoreJob) RestoreJobOtsDetailOutput { return v.OtsDetail }).(RestoreJobOtsDetailOutput)
}
// Restore Job ID. It's the unique key of this resource, if you want to set this argument by yourself, you must specify a unique keyword that never appears.
func (o RestoreJobOutput) RestoreJobId() pulumi.StringOutput {
return o.ApplyT(func(v *RestoreJob) pulumi.StringOutput { return v.RestoreJobId }).(pulumi.StringOutput)
}
// The type of recovery destination. Valid values: `ECS_FILE`, `NAS`, `OSS`,`OTS_TABLE`,`UDM_ECS_ROLLBACK`. **Note**: Currently, there is a one-to-one correspondence between the data source type with the recovery destination type.
func (o RestoreJobOutput) RestoreType() pulumi.StringOutput {
return o.ApplyT(func(v *RestoreJob) pulumi.StringOutput { return v.RestoreType }).(pulumi.StringOutput)
}
// The hashcode of Snapshot.
func (o RestoreJobOutput) SnapshotHash() pulumi.StringOutput {
return o.ApplyT(func(v *RestoreJob) pulumi.StringOutput { return v.SnapshotHash }).(pulumi.StringOutput)
}
// The ID of Snapshot.
func (o RestoreJobOutput) SnapshotId() pulumi.StringOutput {
return o.ApplyT(func(v *RestoreJob) pulumi.StringOutput { return v.SnapshotId }).(pulumi.StringOutput)
}
// The type of data source. Valid values: `ECS_FILE`, `NAS`, `OSS`,`OTS_TABLE`,`UDM_ECS`.
func (o RestoreJobOutput) SourceType() pulumi.StringOutput {
return o.ApplyT(func(v *RestoreJob) pulumi.StringOutput { return v.SourceType }).(pulumi.StringOutput)
}
// The Restore Job Status.
func (o RestoreJobOutput) Status() pulumi.StringOutput {
return o.ApplyT(func(v *RestoreJob) pulumi.StringOutput { return v.Status }).(pulumi.StringOutput)
}
// The target name of OSS bucket. **NOTE:** Required while sourceType equals `OSS`,
func (o RestoreJobOutput) TargetBucket() pulumi.StringPtrOutput {
return o.ApplyT(func(v *RestoreJob) pulumi.StringPtrOutput { return v.TargetBucket }).(pulumi.StringPtrOutput)
}
// The target client ID.
func (o RestoreJobOutput) TargetClientId() pulumi.StringPtrOutput {
return o.ApplyT(func(v *RestoreJob) pulumi.StringPtrOutput { return v.TargetClientId }).(pulumi.StringPtrOutput)
}
// The creation time of destination File System. **NOTE:** While sourceType equals `NAS`, this parameter must be set. **Note:** The time format of the API adopts the ISO 8601 format, such as `2021-07-09T15:45:30CST` or `2021-07-09T07:45:30Z`.
func (o RestoreJobOutput) TargetCreateTime() pulumi.StringPtrOutput {
return o.ApplyT(func(v *RestoreJob) pulumi.StringPtrOutput { return v.TargetCreateTime }).(pulumi.StringPtrOutput)
}
// The target data source ID.
func (o RestoreJobOutput) TargetDataSourceId() pulumi.StringPtrOutput {
return o.ApplyT(func(v *RestoreJob) pulumi.StringPtrOutput { return v.TargetDataSourceId }).(pulumi.StringPtrOutput)
}
// The ID of destination File System. **NOTE:** Required while sourceType equals `NAS`
func (o RestoreJobOutput) TargetFileSystemId() pulumi.StringPtrOutput {
return o.ApplyT(func(v *RestoreJob) pulumi.StringPtrOutput { return v.TargetFileSystemId }).(pulumi.StringPtrOutput)
}
// The target ID of ECS instance. **NOTE:** Required while sourceType equals `ECS_FILE`
func (o RestoreJobOutput) TargetInstanceId() pulumi.StringPtrOutput {
return o.ApplyT(func(v *RestoreJob) pulumi.StringPtrOutput { return v.TargetInstanceId }).(pulumi.StringPtrOutput)
}
// The name of the Table store instance to which you want to restore data.**WARNING:** Required while sourceType equals `OTS_TABLE`.
func (o RestoreJobOutput) TargetInstanceName() pulumi.StringPtrOutput {
return o.ApplyT(func(v *RestoreJob) pulumi.StringPtrOutput { return v.TargetInstanceName }).(pulumi.StringPtrOutput)
}
// The target file path of (ECS) instance. **WARNING:** Required while sourceType equals `NAS` or `ECS_FILE`, If this value filled in incorrectly, the task may not start correctly, so please check the parameters before executing the plan.
func (o RestoreJobOutput) TargetPath() pulumi.StringPtrOutput {
return o.ApplyT(func(v *RestoreJob) pulumi.StringPtrOutput { return v.TargetPath }).(pulumi.StringPtrOutput)
}
// The target prefix of the OSS object. **WARNING:** Required while sourceType equals `OSS`. If this value filled in incorrectly, the task may not start correctly, so please check the parameters before executing the plan.
func (o RestoreJobOutput) TargetPrefix() pulumi.StringPtrOutput {
return o.ApplyT(func(v *RestoreJob) pulumi.StringPtrOutput { return v.TargetPrefix }).(pulumi.StringPtrOutput)
}
// The name of the table that stores the restored data. **WARNING:** Required while sourceType equals `OTS_TABLE`.
func (o RestoreJobOutput) TargetTableName() pulumi.StringPtrOutput {
return o.ApplyT(func(v *RestoreJob) pulumi.StringPtrOutput { return v.TargetTableName }).(pulumi.StringPtrOutput)
}
// The time when data is restored to the Table store instance. This value is a UNIX timestamp. Unit: seconds. **WARNING:** Required while sourceType equals `OTS_TABLE`. **Note:** The time when data is restored to the Tablestore instance. It should be 0 if restores data at the End time of the snapshot.
func (o RestoreJobOutput) TargetTime() pulumi.StringPtrOutput {
return o.ApplyT(func(v *RestoreJob) pulumi.StringPtrOutput { return v.TargetTime }).(pulumi.StringPtrOutput)
}
// The full machine backup details.
func (o RestoreJobOutput) UdmDetail() pulumi.StringPtrOutput {
return o.ApplyT(func(v *RestoreJob) pulumi.StringPtrOutput { return v.UdmDetail }).(pulumi.StringPtrOutput)
}
// The ID of backup vault.
func (o RestoreJobOutput) VaultId() pulumi.StringOutput {
return o.ApplyT(func(v *RestoreJob) pulumi.StringOutput { return v.VaultId }).(pulumi.StringOutput)
}
type RestoreJobArrayOutput struct{ *pulumi.OutputState }
func (RestoreJobArrayOutput) ElementType() reflect.Type {
return reflect.TypeOf((*[]*RestoreJob)(nil)).Elem()
}
func (o RestoreJobArrayOutput) ToRestoreJobArrayOutput() RestoreJobArrayOutput {
return o
}
func (o RestoreJobArrayOutput) ToRestoreJobArrayOutputWithContext(ctx context.Context) RestoreJobArrayOutput {
return o
}
func (o RestoreJobArrayOutput) Index(i pulumi.IntInput) RestoreJobOutput {
return pulumi.All(o, i).ApplyT(func(vs []interface{}) *RestoreJob {
return vs[0].([]*RestoreJob)[vs[1].(int)]
}).(RestoreJobOutput)
}
type RestoreJobMapOutput struct{ *pulumi.OutputState }
func (RestoreJobMapOutput) ElementType() reflect.Type {
return reflect.TypeOf((*map[string]*RestoreJob)(nil)).Elem()
}
func (o RestoreJobMapOutput) ToRestoreJobMapOutput() RestoreJobMapOutput {
return o
}
func (o RestoreJobMapOutput) ToRestoreJobMapOutputWithContext(ctx context.Context) RestoreJobMapOutput {
return o
}
func (o RestoreJobMapOutput) MapIndex(k pulumi.StringInput) RestoreJobOutput {
return pulumi.All(o, k).ApplyT(func(vs []interface{}) *RestoreJob {
return vs[0].(map[string]*RestoreJob)[vs[1].(string)]
}).(RestoreJobOutput)
}
func init() {
pulumi.RegisterInputType(reflect.TypeOf((*RestoreJobInput)(nil)).Elem(), &RestoreJob{})
pulumi.RegisterInputType(reflect.TypeOf((*RestoreJobArrayInput)(nil)).Elem(), RestoreJobArray{})
pulumi.RegisterInputType(reflect.TypeOf((*RestoreJobMapInput)(nil)).Elem(), RestoreJobMap{})
pulumi.RegisterOutputType(RestoreJobOutput{})
pulumi.RegisterOutputType(RestoreJobArrayOutput{})
pulumi.RegisterOutputType(RestoreJobMapOutput{})
}