/
pulumiTypes.go
721 lines (590 loc) · 28.5 KB
/
pulumiTypes.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
// 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 cassandra
import (
"context"
"reflect"
"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/internal"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
var _ = internal.GetEnvOrDefault
type GetBackupPlansPlan struct {
// Specifies whether to activate the backup plan.
Active bool `pulumi:"active"`
// The backup cycle. Valid values: Monday, Tuesday, Wednesday, Thursday, Friday, Saturday, and Sunday.
BackupPeriod string `pulumi:"backupPeriod"`
// The start time of the backup task each day. The time is displayed in UTC and denoted by Z.
BackupTime string `pulumi:"backupTime"`
// The ID of the cluster for the backup.
ClusterId string `pulumi:"clusterId"`
// The time when the backup plan was created.
CreateTime string `pulumi:"createTime"`
// The ID of the data center for the backup in the cluster.
DataCenterId string `pulumi:"dataCenterId"`
// The ID of the Backup Plan.
Id string `pulumi:"id"`
// The duration for which you want to retain the backup. Valid values: 1 to 30. Unit: days.
RetentionPeriod int `pulumi:"retentionPeriod"`
}
// GetBackupPlansPlanInput is an input type that accepts GetBackupPlansPlanArgs and GetBackupPlansPlanOutput values.
// You can construct a concrete instance of `GetBackupPlansPlanInput` via:
//
// GetBackupPlansPlanArgs{...}
type GetBackupPlansPlanInput interface {
pulumi.Input
ToGetBackupPlansPlanOutput() GetBackupPlansPlanOutput
ToGetBackupPlansPlanOutputWithContext(context.Context) GetBackupPlansPlanOutput
}
type GetBackupPlansPlanArgs struct {
// Specifies whether to activate the backup plan.
Active pulumi.BoolInput `pulumi:"active"`
// The backup cycle. Valid values: Monday, Tuesday, Wednesday, Thursday, Friday, Saturday, and Sunday.
BackupPeriod pulumi.StringInput `pulumi:"backupPeriod"`
// The start time of the backup task each day. The time is displayed in UTC and denoted by Z.
BackupTime pulumi.StringInput `pulumi:"backupTime"`
// The ID of the cluster for the backup.
ClusterId pulumi.StringInput `pulumi:"clusterId"`
// The time when the backup plan was created.
CreateTime pulumi.StringInput `pulumi:"createTime"`
// The ID of the data center for the backup in the cluster.
DataCenterId pulumi.StringInput `pulumi:"dataCenterId"`
// The ID of the Backup Plan.
Id pulumi.StringInput `pulumi:"id"`
// The duration for which you want to retain the backup. Valid values: 1 to 30. Unit: days.
RetentionPeriod pulumi.IntInput `pulumi:"retentionPeriod"`
}
func (GetBackupPlansPlanArgs) ElementType() reflect.Type {
return reflect.TypeOf((*GetBackupPlansPlan)(nil)).Elem()
}
func (i GetBackupPlansPlanArgs) ToGetBackupPlansPlanOutput() GetBackupPlansPlanOutput {
return i.ToGetBackupPlansPlanOutputWithContext(context.Background())
}
func (i GetBackupPlansPlanArgs) ToGetBackupPlansPlanOutputWithContext(ctx context.Context) GetBackupPlansPlanOutput {
return pulumi.ToOutputWithContext(ctx, i).(GetBackupPlansPlanOutput)
}
// GetBackupPlansPlanArrayInput is an input type that accepts GetBackupPlansPlanArray and GetBackupPlansPlanArrayOutput values.
// You can construct a concrete instance of `GetBackupPlansPlanArrayInput` via:
//
// GetBackupPlansPlanArray{ GetBackupPlansPlanArgs{...} }
type GetBackupPlansPlanArrayInput interface {
pulumi.Input
ToGetBackupPlansPlanArrayOutput() GetBackupPlansPlanArrayOutput
ToGetBackupPlansPlanArrayOutputWithContext(context.Context) GetBackupPlansPlanArrayOutput
}
type GetBackupPlansPlanArray []GetBackupPlansPlanInput
func (GetBackupPlansPlanArray) ElementType() reflect.Type {
return reflect.TypeOf((*[]GetBackupPlansPlan)(nil)).Elem()
}
func (i GetBackupPlansPlanArray) ToGetBackupPlansPlanArrayOutput() GetBackupPlansPlanArrayOutput {
return i.ToGetBackupPlansPlanArrayOutputWithContext(context.Background())
}
func (i GetBackupPlansPlanArray) ToGetBackupPlansPlanArrayOutputWithContext(ctx context.Context) GetBackupPlansPlanArrayOutput {
return pulumi.ToOutputWithContext(ctx, i).(GetBackupPlansPlanArrayOutput)
}
type GetBackupPlansPlanOutput struct{ *pulumi.OutputState }
func (GetBackupPlansPlanOutput) ElementType() reflect.Type {
return reflect.TypeOf((*GetBackupPlansPlan)(nil)).Elem()
}
func (o GetBackupPlansPlanOutput) ToGetBackupPlansPlanOutput() GetBackupPlansPlanOutput {
return o
}
func (o GetBackupPlansPlanOutput) ToGetBackupPlansPlanOutputWithContext(ctx context.Context) GetBackupPlansPlanOutput {
return o
}
// Specifies whether to activate the backup plan.
func (o GetBackupPlansPlanOutput) Active() pulumi.BoolOutput {
return o.ApplyT(func(v GetBackupPlansPlan) bool { return v.Active }).(pulumi.BoolOutput)
}
// The backup cycle. Valid values: Monday, Tuesday, Wednesday, Thursday, Friday, Saturday, and Sunday.
func (o GetBackupPlansPlanOutput) BackupPeriod() pulumi.StringOutput {
return o.ApplyT(func(v GetBackupPlansPlan) string { return v.BackupPeriod }).(pulumi.StringOutput)
}
// The start time of the backup task each day. The time is displayed in UTC and denoted by Z.
func (o GetBackupPlansPlanOutput) BackupTime() pulumi.StringOutput {
return o.ApplyT(func(v GetBackupPlansPlan) string { return v.BackupTime }).(pulumi.StringOutput)
}
// The ID of the cluster for the backup.
func (o GetBackupPlansPlanOutput) ClusterId() pulumi.StringOutput {
return o.ApplyT(func(v GetBackupPlansPlan) string { return v.ClusterId }).(pulumi.StringOutput)
}
// The time when the backup plan was created.
func (o GetBackupPlansPlanOutput) CreateTime() pulumi.StringOutput {
return o.ApplyT(func(v GetBackupPlansPlan) string { return v.CreateTime }).(pulumi.StringOutput)
}
// The ID of the data center for the backup in the cluster.
func (o GetBackupPlansPlanOutput) DataCenterId() pulumi.StringOutput {
return o.ApplyT(func(v GetBackupPlansPlan) string { return v.DataCenterId }).(pulumi.StringOutput)
}
// The ID of the Backup Plan.
func (o GetBackupPlansPlanOutput) Id() pulumi.StringOutput {
return o.ApplyT(func(v GetBackupPlansPlan) string { return v.Id }).(pulumi.StringOutput)
}
// The duration for which you want to retain the backup. Valid values: 1 to 30. Unit: days.
func (o GetBackupPlansPlanOutput) RetentionPeriod() pulumi.IntOutput {
return o.ApplyT(func(v GetBackupPlansPlan) int { return v.RetentionPeriod }).(pulumi.IntOutput)
}
type GetBackupPlansPlanArrayOutput struct{ *pulumi.OutputState }
func (GetBackupPlansPlanArrayOutput) ElementType() reflect.Type {
return reflect.TypeOf((*[]GetBackupPlansPlan)(nil)).Elem()
}
func (o GetBackupPlansPlanArrayOutput) ToGetBackupPlansPlanArrayOutput() GetBackupPlansPlanArrayOutput {
return o
}
func (o GetBackupPlansPlanArrayOutput) ToGetBackupPlansPlanArrayOutputWithContext(ctx context.Context) GetBackupPlansPlanArrayOutput {
return o
}
func (o GetBackupPlansPlanArrayOutput) Index(i pulumi.IntInput) GetBackupPlansPlanOutput {
return pulumi.All(o, i).ApplyT(func(vs []interface{}) GetBackupPlansPlan {
return vs[0].([]GetBackupPlansPlan)[vs[1].(int)]
}).(GetBackupPlansPlanOutput)
}
type GetClustersCluster struct {
// The ID of the Cassandra cluster.
ClusterId string `pulumi:"clusterId"`
// The name of the Cassandra cluster.
ClusterName string `pulumi:"clusterName"`
CreatedTime string `pulumi:"createdTime"`
// The count of data centers
DataCenterCount int `pulumi:"dataCenterCount"`
// The expire time of the cluster.
ExpireTime string `pulumi:"expireTime"`
// The ID of the Cassandra cluster.
Id string `pulumi:"id"`
// The lock mode of the cluster.
LockMode string `pulumi:"lockMode"`
// The major version of the cluster.
MajorVersion string `pulumi:"majorVersion"`
// The minor version of the cluster.
MinorVersion string `pulumi:"minorVersion"`
// Billing method. Value options are `Subscription` for Pay-As-You-Go and `PayAsYouGo` for yearly or monthly subscription.
PayType string `pulumi:"payType"`
// Status of the cluster.
Status string `pulumi:"status"`
// A mapping of tags to assign to the resource.
Tags map[string]interface{} `pulumi:"tags"`
}
// GetClustersClusterInput is an input type that accepts GetClustersClusterArgs and GetClustersClusterOutput values.
// You can construct a concrete instance of `GetClustersClusterInput` via:
//
// GetClustersClusterArgs{...}
type GetClustersClusterInput interface {
pulumi.Input
ToGetClustersClusterOutput() GetClustersClusterOutput
ToGetClustersClusterOutputWithContext(context.Context) GetClustersClusterOutput
}
type GetClustersClusterArgs struct {
// The ID of the Cassandra cluster.
ClusterId pulumi.StringInput `pulumi:"clusterId"`
// The name of the Cassandra cluster.
ClusterName pulumi.StringInput `pulumi:"clusterName"`
CreatedTime pulumi.StringInput `pulumi:"createdTime"`
// The count of data centers
DataCenterCount pulumi.IntInput `pulumi:"dataCenterCount"`
// The expire time of the cluster.
ExpireTime pulumi.StringInput `pulumi:"expireTime"`
// The ID of the Cassandra cluster.
Id pulumi.StringInput `pulumi:"id"`
// The lock mode of the cluster.
LockMode pulumi.StringInput `pulumi:"lockMode"`
// The major version of the cluster.
MajorVersion pulumi.StringInput `pulumi:"majorVersion"`
// The minor version of the cluster.
MinorVersion pulumi.StringInput `pulumi:"minorVersion"`
// Billing method. Value options are `Subscription` for Pay-As-You-Go and `PayAsYouGo` for yearly or monthly subscription.
PayType pulumi.StringInput `pulumi:"payType"`
// Status of the cluster.
Status pulumi.StringInput `pulumi:"status"`
// A mapping of tags to assign to the resource.
Tags pulumi.MapInput `pulumi:"tags"`
}
func (GetClustersClusterArgs) ElementType() reflect.Type {
return reflect.TypeOf((*GetClustersCluster)(nil)).Elem()
}
func (i GetClustersClusterArgs) ToGetClustersClusterOutput() GetClustersClusterOutput {
return i.ToGetClustersClusterOutputWithContext(context.Background())
}
func (i GetClustersClusterArgs) ToGetClustersClusterOutputWithContext(ctx context.Context) GetClustersClusterOutput {
return pulumi.ToOutputWithContext(ctx, i).(GetClustersClusterOutput)
}
// GetClustersClusterArrayInput is an input type that accepts GetClustersClusterArray and GetClustersClusterArrayOutput values.
// You can construct a concrete instance of `GetClustersClusterArrayInput` via:
//
// GetClustersClusterArray{ GetClustersClusterArgs{...} }
type GetClustersClusterArrayInput interface {
pulumi.Input
ToGetClustersClusterArrayOutput() GetClustersClusterArrayOutput
ToGetClustersClusterArrayOutputWithContext(context.Context) GetClustersClusterArrayOutput
}
type GetClustersClusterArray []GetClustersClusterInput
func (GetClustersClusterArray) ElementType() reflect.Type {
return reflect.TypeOf((*[]GetClustersCluster)(nil)).Elem()
}
func (i GetClustersClusterArray) ToGetClustersClusterArrayOutput() GetClustersClusterArrayOutput {
return i.ToGetClustersClusterArrayOutputWithContext(context.Background())
}
func (i GetClustersClusterArray) ToGetClustersClusterArrayOutputWithContext(ctx context.Context) GetClustersClusterArrayOutput {
return pulumi.ToOutputWithContext(ctx, i).(GetClustersClusterArrayOutput)
}
type GetClustersClusterOutput struct{ *pulumi.OutputState }
func (GetClustersClusterOutput) ElementType() reflect.Type {
return reflect.TypeOf((*GetClustersCluster)(nil)).Elem()
}
func (o GetClustersClusterOutput) ToGetClustersClusterOutput() GetClustersClusterOutput {
return o
}
func (o GetClustersClusterOutput) ToGetClustersClusterOutputWithContext(ctx context.Context) GetClustersClusterOutput {
return o
}
// The ID of the Cassandra cluster.
func (o GetClustersClusterOutput) ClusterId() pulumi.StringOutput {
return o.ApplyT(func(v GetClustersCluster) string { return v.ClusterId }).(pulumi.StringOutput)
}
// The name of the Cassandra cluster.
func (o GetClustersClusterOutput) ClusterName() pulumi.StringOutput {
return o.ApplyT(func(v GetClustersCluster) string { return v.ClusterName }).(pulumi.StringOutput)
}
func (o GetClustersClusterOutput) CreatedTime() pulumi.StringOutput {
return o.ApplyT(func(v GetClustersCluster) string { return v.CreatedTime }).(pulumi.StringOutput)
}
// The count of data centers
func (o GetClustersClusterOutput) DataCenterCount() pulumi.IntOutput {
return o.ApplyT(func(v GetClustersCluster) int { return v.DataCenterCount }).(pulumi.IntOutput)
}
// The expire time of the cluster.
func (o GetClustersClusterOutput) ExpireTime() pulumi.StringOutput {
return o.ApplyT(func(v GetClustersCluster) string { return v.ExpireTime }).(pulumi.StringOutput)
}
// The ID of the Cassandra cluster.
func (o GetClustersClusterOutput) Id() pulumi.StringOutput {
return o.ApplyT(func(v GetClustersCluster) string { return v.Id }).(pulumi.StringOutput)
}
// The lock mode of the cluster.
func (o GetClustersClusterOutput) LockMode() pulumi.StringOutput {
return o.ApplyT(func(v GetClustersCluster) string { return v.LockMode }).(pulumi.StringOutput)
}
// The major version of the cluster.
func (o GetClustersClusterOutput) MajorVersion() pulumi.StringOutput {
return o.ApplyT(func(v GetClustersCluster) string { return v.MajorVersion }).(pulumi.StringOutput)
}
// The minor version of the cluster.
func (o GetClustersClusterOutput) MinorVersion() pulumi.StringOutput {
return o.ApplyT(func(v GetClustersCluster) string { return v.MinorVersion }).(pulumi.StringOutput)
}
// Billing method. Value options are `Subscription` for Pay-As-You-Go and `PayAsYouGo` for yearly or monthly subscription.
func (o GetClustersClusterOutput) PayType() pulumi.StringOutput {
return o.ApplyT(func(v GetClustersCluster) string { return v.PayType }).(pulumi.StringOutput)
}
// Status of the cluster.
func (o GetClustersClusterOutput) Status() pulumi.StringOutput {
return o.ApplyT(func(v GetClustersCluster) string { return v.Status }).(pulumi.StringOutput)
}
// A mapping of tags to assign to the resource.
func (o GetClustersClusterOutput) Tags() pulumi.MapOutput {
return o.ApplyT(func(v GetClustersCluster) map[string]interface{} { return v.Tags }).(pulumi.MapOutput)
}
type GetClustersClusterArrayOutput struct{ *pulumi.OutputState }
func (GetClustersClusterArrayOutput) ElementType() reflect.Type {
return reflect.TypeOf((*[]GetClustersCluster)(nil)).Elem()
}
func (o GetClustersClusterArrayOutput) ToGetClustersClusterArrayOutput() GetClustersClusterArrayOutput {
return o
}
func (o GetClustersClusterArrayOutput) ToGetClustersClusterArrayOutputWithContext(ctx context.Context) GetClustersClusterArrayOutput {
return o
}
func (o GetClustersClusterArrayOutput) Index(i pulumi.IntInput) GetClustersClusterOutput {
return pulumi.All(o, i).ApplyT(func(vs []interface{}) GetClustersCluster {
return vs[0].([]GetClustersCluster)[vs[1].(int)]
}).(GetClustersClusterOutput)
}
type GetDataCentersCenter struct {
// The cluster id of dataCenters belongs to.
ClusterId string `pulumi:"clusterId"`
// The commodity ID of the Cassandra dataCenter.
CommodityInstance string `pulumi:"commodityInstance"`
CreatedTime string `pulumi:"createdTime"`
// The id of the Cassandra dataCenter.
DataCenterId string `pulumi:"dataCenterId"`
// The name of the Cassandra dataCenter.
DataCenterName string `pulumi:"dataCenterName"`
// One node disk size, unit:GB.
DiskSize int `pulumi:"diskSize"`
// Cloud_ssd or cloud_efficiency.
DiskType string `pulumi:"diskType"`
// The expire time of the dataCenter.
ExpireTime string `pulumi:"expireTime"`
// The instance type of the Cassandra dataCenter, eg: cassandra.c.large.
InstanceType string `pulumi:"instanceType"`
// The lock mode of the dataCenter.
LockMode string `pulumi:"lockMode"`
// The node count of dataCenter.
NodeCount int `pulumi:"nodeCount"`
// Billing method. Value options are `Subscription` for Pay-As-You-Go and `PayAsYouGo` for yearly or monthly subscription.
PayType string `pulumi:"payType"`
// Status of the dataCenter.
Status string `pulumi:"status"`
// VPC ID the dataCenter belongs to.
VpcId string `pulumi:"vpcId"`
// VSwitch ID the dataCenter belongs to.
VswitchId string `pulumi:"vswitchId"`
// Zone ID the dataCenter belongs to.
ZoneId string `pulumi:"zoneId"`
}
// GetDataCentersCenterInput is an input type that accepts GetDataCentersCenterArgs and GetDataCentersCenterOutput values.
// You can construct a concrete instance of `GetDataCentersCenterInput` via:
//
// GetDataCentersCenterArgs{...}
type GetDataCentersCenterInput interface {
pulumi.Input
ToGetDataCentersCenterOutput() GetDataCentersCenterOutput
ToGetDataCentersCenterOutputWithContext(context.Context) GetDataCentersCenterOutput
}
type GetDataCentersCenterArgs struct {
// The cluster id of dataCenters belongs to.
ClusterId pulumi.StringInput `pulumi:"clusterId"`
// The commodity ID of the Cassandra dataCenter.
CommodityInstance pulumi.StringInput `pulumi:"commodityInstance"`
CreatedTime pulumi.StringInput `pulumi:"createdTime"`
// The id of the Cassandra dataCenter.
DataCenterId pulumi.StringInput `pulumi:"dataCenterId"`
// The name of the Cassandra dataCenter.
DataCenterName pulumi.StringInput `pulumi:"dataCenterName"`
// One node disk size, unit:GB.
DiskSize pulumi.IntInput `pulumi:"diskSize"`
// Cloud_ssd or cloud_efficiency.
DiskType pulumi.StringInput `pulumi:"diskType"`
// The expire time of the dataCenter.
ExpireTime pulumi.StringInput `pulumi:"expireTime"`
// The instance type of the Cassandra dataCenter, eg: cassandra.c.large.
InstanceType pulumi.StringInput `pulumi:"instanceType"`
// The lock mode of the dataCenter.
LockMode pulumi.StringInput `pulumi:"lockMode"`
// The node count of dataCenter.
NodeCount pulumi.IntInput `pulumi:"nodeCount"`
// Billing method. Value options are `Subscription` for Pay-As-You-Go and `PayAsYouGo` for yearly or monthly subscription.
PayType pulumi.StringInput `pulumi:"payType"`
// Status of the dataCenter.
Status pulumi.StringInput `pulumi:"status"`
// VPC ID the dataCenter belongs to.
VpcId pulumi.StringInput `pulumi:"vpcId"`
// VSwitch ID the dataCenter belongs to.
VswitchId pulumi.StringInput `pulumi:"vswitchId"`
// Zone ID the dataCenter belongs to.
ZoneId pulumi.StringInput `pulumi:"zoneId"`
}
func (GetDataCentersCenterArgs) ElementType() reflect.Type {
return reflect.TypeOf((*GetDataCentersCenter)(nil)).Elem()
}
func (i GetDataCentersCenterArgs) ToGetDataCentersCenterOutput() GetDataCentersCenterOutput {
return i.ToGetDataCentersCenterOutputWithContext(context.Background())
}
func (i GetDataCentersCenterArgs) ToGetDataCentersCenterOutputWithContext(ctx context.Context) GetDataCentersCenterOutput {
return pulumi.ToOutputWithContext(ctx, i).(GetDataCentersCenterOutput)
}
// GetDataCentersCenterArrayInput is an input type that accepts GetDataCentersCenterArray and GetDataCentersCenterArrayOutput values.
// You can construct a concrete instance of `GetDataCentersCenterArrayInput` via:
//
// GetDataCentersCenterArray{ GetDataCentersCenterArgs{...} }
type GetDataCentersCenterArrayInput interface {
pulumi.Input
ToGetDataCentersCenterArrayOutput() GetDataCentersCenterArrayOutput
ToGetDataCentersCenterArrayOutputWithContext(context.Context) GetDataCentersCenterArrayOutput
}
type GetDataCentersCenterArray []GetDataCentersCenterInput
func (GetDataCentersCenterArray) ElementType() reflect.Type {
return reflect.TypeOf((*[]GetDataCentersCenter)(nil)).Elem()
}
func (i GetDataCentersCenterArray) ToGetDataCentersCenterArrayOutput() GetDataCentersCenterArrayOutput {
return i.ToGetDataCentersCenterArrayOutputWithContext(context.Background())
}
func (i GetDataCentersCenterArray) ToGetDataCentersCenterArrayOutputWithContext(ctx context.Context) GetDataCentersCenterArrayOutput {
return pulumi.ToOutputWithContext(ctx, i).(GetDataCentersCenterArrayOutput)
}
type GetDataCentersCenterOutput struct{ *pulumi.OutputState }
func (GetDataCentersCenterOutput) ElementType() reflect.Type {
return reflect.TypeOf((*GetDataCentersCenter)(nil)).Elem()
}
func (o GetDataCentersCenterOutput) ToGetDataCentersCenterOutput() GetDataCentersCenterOutput {
return o
}
func (o GetDataCentersCenterOutput) ToGetDataCentersCenterOutputWithContext(ctx context.Context) GetDataCentersCenterOutput {
return o
}
// The cluster id of dataCenters belongs to.
func (o GetDataCentersCenterOutput) ClusterId() pulumi.StringOutput {
return o.ApplyT(func(v GetDataCentersCenter) string { return v.ClusterId }).(pulumi.StringOutput)
}
// The commodity ID of the Cassandra dataCenter.
func (o GetDataCentersCenterOutput) CommodityInstance() pulumi.StringOutput {
return o.ApplyT(func(v GetDataCentersCenter) string { return v.CommodityInstance }).(pulumi.StringOutput)
}
func (o GetDataCentersCenterOutput) CreatedTime() pulumi.StringOutput {
return o.ApplyT(func(v GetDataCentersCenter) string { return v.CreatedTime }).(pulumi.StringOutput)
}
// The id of the Cassandra dataCenter.
func (o GetDataCentersCenterOutput) DataCenterId() pulumi.StringOutput {
return o.ApplyT(func(v GetDataCentersCenter) string { return v.DataCenterId }).(pulumi.StringOutput)
}
// The name of the Cassandra dataCenter.
func (o GetDataCentersCenterOutput) DataCenterName() pulumi.StringOutput {
return o.ApplyT(func(v GetDataCentersCenter) string { return v.DataCenterName }).(pulumi.StringOutput)
}
// One node disk size, unit:GB.
func (o GetDataCentersCenterOutput) DiskSize() pulumi.IntOutput {
return o.ApplyT(func(v GetDataCentersCenter) int { return v.DiskSize }).(pulumi.IntOutput)
}
// Cloud_ssd or cloud_efficiency.
func (o GetDataCentersCenterOutput) DiskType() pulumi.StringOutput {
return o.ApplyT(func(v GetDataCentersCenter) string { return v.DiskType }).(pulumi.StringOutput)
}
// The expire time of the dataCenter.
func (o GetDataCentersCenterOutput) ExpireTime() pulumi.StringOutput {
return o.ApplyT(func(v GetDataCentersCenter) string { return v.ExpireTime }).(pulumi.StringOutput)
}
// The instance type of the Cassandra dataCenter, eg: cassandra.c.large.
func (o GetDataCentersCenterOutput) InstanceType() pulumi.StringOutput {
return o.ApplyT(func(v GetDataCentersCenter) string { return v.InstanceType }).(pulumi.StringOutput)
}
// The lock mode of the dataCenter.
func (o GetDataCentersCenterOutput) LockMode() pulumi.StringOutput {
return o.ApplyT(func(v GetDataCentersCenter) string { return v.LockMode }).(pulumi.StringOutput)
}
// The node count of dataCenter.
func (o GetDataCentersCenterOutput) NodeCount() pulumi.IntOutput {
return o.ApplyT(func(v GetDataCentersCenter) int { return v.NodeCount }).(pulumi.IntOutput)
}
// Billing method. Value options are `Subscription` for Pay-As-You-Go and `PayAsYouGo` for yearly or monthly subscription.
func (o GetDataCentersCenterOutput) PayType() pulumi.StringOutput {
return o.ApplyT(func(v GetDataCentersCenter) string { return v.PayType }).(pulumi.StringOutput)
}
// Status of the dataCenter.
func (o GetDataCentersCenterOutput) Status() pulumi.StringOutput {
return o.ApplyT(func(v GetDataCentersCenter) string { return v.Status }).(pulumi.StringOutput)
}
// VPC ID the dataCenter belongs to.
func (o GetDataCentersCenterOutput) VpcId() pulumi.StringOutput {
return o.ApplyT(func(v GetDataCentersCenter) string { return v.VpcId }).(pulumi.StringOutput)
}
// VSwitch ID the dataCenter belongs to.
func (o GetDataCentersCenterOutput) VswitchId() pulumi.StringOutput {
return o.ApplyT(func(v GetDataCentersCenter) string { return v.VswitchId }).(pulumi.StringOutput)
}
// Zone ID the dataCenter belongs to.
func (o GetDataCentersCenterOutput) ZoneId() pulumi.StringOutput {
return o.ApplyT(func(v GetDataCentersCenter) string { return v.ZoneId }).(pulumi.StringOutput)
}
type GetDataCentersCenterArrayOutput struct{ *pulumi.OutputState }
func (GetDataCentersCenterArrayOutput) ElementType() reflect.Type {
return reflect.TypeOf((*[]GetDataCentersCenter)(nil)).Elem()
}
func (o GetDataCentersCenterArrayOutput) ToGetDataCentersCenterArrayOutput() GetDataCentersCenterArrayOutput {
return o
}
func (o GetDataCentersCenterArrayOutput) ToGetDataCentersCenterArrayOutputWithContext(ctx context.Context) GetDataCentersCenterArrayOutput {
return o
}
func (o GetDataCentersCenterArrayOutput) Index(i pulumi.IntInput) GetDataCentersCenterOutput {
return pulumi.All(o, i).ApplyT(func(vs []interface{}) GetDataCentersCenter {
return vs[0].([]GetDataCentersCenter)[vs[1].(int)]
}).(GetDataCentersCenterOutput)
}
type GetZonesZone struct {
// ID of the zone.
Id string `pulumi:"id"`
// A list of zone ids in which the multi zone.
MultiZoneIds []string `pulumi:"multiZoneIds"`
}
// GetZonesZoneInput is an input type that accepts GetZonesZoneArgs and GetZonesZoneOutput values.
// You can construct a concrete instance of `GetZonesZoneInput` via:
//
// GetZonesZoneArgs{...}
type GetZonesZoneInput interface {
pulumi.Input
ToGetZonesZoneOutput() GetZonesZoneOutput
ToGetZonesZoneOutputWithContext(context.Context) GetZonesZoneOutput
}
type GetZonesZoneArgs struct {
// ID of the zone.
Id pulumi.StringInput `pulumi:"id"`
// A list of zone ids in which the multi zone.
MultiZoneIds pulumi.StringArrayInput `pulumi:"multiZoneIds"`
}
func (GetZonesZoneArgs) ElementType() reflect.Type {
return reflect.TypeOf((*GetZonesZone)(nil)).Elem()
}
func (i GetZonesZoneArgs) ToGetZonesZoneOutput() GetZonesZoneOutput {
return i.ToGetZonesZoneOutputWithContext(context.Background())
}
func (i GetZonesZoneArgs) ToGetZonesZoneOutputWithContext(ctx context.Context) GetZonesZoneOutput {
return pulumi.ToOutputWithContext(ctx, i).(GetZonesZoneOutput)
}
// GetZonesZoneArrayInput is an input type that accepts GetZonesZoneArray and GetZonesZoneArrayOutput values.
// You can construct a concrete instance of `GetZonesZoneArrayInput` via:
//
// GetZonesZoneArray{ GetZonesZoneArgs{...} }
type GetZonesZoneArrayInput interface {
pulumi.Input
ToGetZonesZoneArrayOutput() GetZonesZoneArrayOutput
ToGetZonesZoneArrayOutputWithContext(context.Context) GetZonesZoneArrayOutput
}
type GetZonesZoneArray []GetZonesZoneInput
func (GetZonesZoneArray) ElementType() reflect.Type {
return reflect.TypeOf((*[]GetZonesZone)(nil)).Elem()
}
func (i GetZonesZoneArray) ToGetZonesZoneArrayOutput() GetZonesZoneArrayOutput {
return i.ToGetZonesZoneArrayOutputWithContext(context.Background())
}
func (i GetZonesZoneArray) ToGetZonesZoneArrayOutputWithContext(ctx context.Context) GetZonesZoneArrayOutput {
return pulumi.ToOutputWithContext(ctx, i).(GetZonesZoneArrayOutput)
}
type GetZonesZoneOutput struct{ *pulumi.OutputState }
func (GetZonesZoneOutput) ElementType() reflect.Type {
return reflect.TypeOf((*GetZonesZone)(nil)).Elem()
}
func (o GetZonesZoneOutput) ToGetZonesZoneOutput() GetZonesZoneOutput {
return o
}
func (o GetZonesZoneOutput) ToGetZonesZoneOutputWithContext(ctx context.Context) GetZonesZoneOutput {
return o
}
// ID of the zone.
func (o GetZonesZoneOutput) Id() pulumi.StringOutput {
return o.ApplyT(func(v GetZonesZone) string { return v.Id }).(pulumi.StringOutput)
}
// A list of zone ids in which the multi zone.
func (o GetZonesZoneOutput) MultiZoneIds() pulumi.StringArrayOutput {
return o.ApplyT(func(v GetZonesZone) []string { return v.MultiZoneIds }).(pulumi.StringArrayOutput)
}
type GetZonesZoneArrayOutput struct{ *pulumi.OutputState }
func (GetZonesZoneArrayOutput) ElementType() reflect.Type {
return reflect.TypeOf((*[]GetZonesZone)(nil)).Elem()
}
func (o GetZonesZoneArrayOutput) ToGetZonesZoneArrayOutput() GetZonesZoneArrayOutput {
return o
}
func (o GetZonesZoneArrayOutput) ToGetZonesZoneArrayOutputWithContext(ctx context.Context) GetZonesZoneArrayOutput {
return o
}
func (o GetZonesZoneArrayOutput) Index(i pulumi.IntInput) GetZonesZoneOutput {
return pulumi.All(o, i).ApplyT(func(vs []interface{}) GetZonesZone {
return vs[0].([]GetZonesZone)[vs[1].(int)]
}).(GetZonesZoneOutput)
}
func init() {
pulumi.RegisterInputType(reflect.TypeOf((*GetBackupPlansPlanInput)(nil)).Elem(), GetBackupPlansPlanArgs{})
pulumi.RegisterInputType(reflect.TypeOf((*GetBackupPlansPlanArrayInput)(nil)).Elem(), GetBackupPlansPlanArray{})
pulumi.RegisterInputType(reflect.TypeOf((*GetClustersClusterInput)(nil)).Elem(), GetClustersClusterArgs{})
pulumi.RegisterInputType(reflect.TypeOf((*GetClustersClusterArrayInput)(nil)).Elem(), GetClustersClusterArray{})
pulumi.RegisterInputType(reflect.TypeOf((*GetDataCentersCenterInput)(nil)).Elem(), GetDataCentersCenterArgs{})
pulumi.RegisterInputType(reflect.TypeOf((*GetDataCentersCenterArrayInput)(nil)).Elem(), GetDataCentersCenterArray{})
pulumi.RegisterInputType(reflect.TypeOf((*GetZonesZoneInput)(nil)).Elem(), GetZonesZoneArgs{})
pulumi.RegisterInputType(reflect.TypeOf((*GetZonesZoneArrayInput)(nil)).Elem(), GetZonesZoneArray{})
pulumi.RegisterOutputType(GetBackupPlansPlanOutput{})
pulumi.RegisterOutputType(GetBackupPlansPlanArrayOutput{})
pulumi.RegisterOutputType(GetClustersClusterOutput{})
pulumi.RegisterOutputType(GetClustersClusterArrayOutput{})
pulumi.RegisterOutputType(GetDataCentersCenterOutput{})
pulumi.RegisterOutputType(GetDataCentersCenterArrayOutput{})
pulumi.RegisterOutputType(GetZonesZoneOutput{})
pulumi.RegisterOutputType(GetZonesZoneArrayOutput{})
}