generated from pulumi/pulumi-tf-provider-boilerplate
/
pulumiTypes.go
2228 lines (1790 loc) · 102 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
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
// Code generated by 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 polardb
import (
"context"
"reflect"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
type ClusterDbClusterIpArray struct {
// The name of the IP whitelist group. The group name must be 2 to 120 characters in length and consists of lowercase letters and digits. It must start with a letter, and end with a letter or a digit.
// **NOTE:** If the specified whitelist group name does not exist, the whitelist group is created. If the specified whitelist group name exists, the whitelist group is modified. If you do not specify this parameter, the default group is modified. You can create a maximum of 50 IP whitelist groups for a cluster.
DbClusterIpArrayName *string `pulumi:"dbClusterIpArrayName"`
// The method for modifying the IP whitelist. Valid values are `Cover`, `Append`, `Delete`.
// **NOTE:** There does not recommend setting modifyMode to `Append` or `Delete` and it will bring a potential diff error.
ModifyMode *string `pulumi:"modifyMode"`
// List of IP addresses allowed to access all databases of a cluster. The list contains up to 1,000 IP addresses, separated by commas. Supported formats include 0.0.0.0/0, 10.23.12.24 (IP), and 10.23.12.24/24 (Classless Inter-Domain Routing (CIDR) mode. /24 represents the length of the prefix in an IP address. The range of the prefix length is [1,32]).
SecurityIps []string `pulumi:"securityIps"`
}
// ClusterDbClusterIpArrayInput is an input type that accepts ClusterDbClusterIpArray and ClusterDbClusterIpArrayOutput values.
// You can construct a concrete instance of `ClusterDbClusterIpArrayInput` via:
//
// ClusterDbClusterIpArray{ ClusterDbClusterIpArgs{...} }
type ClusterDbClusterIpArrayInput interface {
pulumi.Input
ToClusterDbClusterIpArrayOutput() ClusterDbClusterIpArrayOutput
ToClusterDbClusterIpArrayOutputWithContext(context.Context) ClusterDbClusterIpArrayOutput
}
type ClusterDbClusterIpArrayArgs struct {
// The name of the IP whitelist group. The group name must be 2 to 120 characters in length and consists of lowercase letters and digits. It must start with a letter, and end with a letter or a digit.
// **NOTE:** If the specified whitelist group name does not exist, the whitelist group is created. If the specified whitelist group name exists, the whitelist group is modified. If you do not specify this parameter, the default group is modified. You can create a maximum of 50 IP whitelist groups for a cluster.
DbClusterIpArrayName pulumi.StringPtrInput `pulumi:"dbClusterIpArrayName"`
// The method for modifying the IP whitelist. Valid values are `Cover`, `Append`, `Delete`.
// **NOTE:** There does not recommend setting modifyMode to `Append` or `Delete` and it will bring a potential diff error.
ModifyMode pulumi.StringPtrInput `pulumi:"modifyMode"`
// List of IP addresses allowed to access all databases of a cluster. The list contains up to 1,000 IP addresses, separated by commas. Supported formats include 0.0.0.0/0, 10.23.12.24 (IP), and 10.23.12.24/24 (Classless Inter-Domain Routing (CIDR) mode. /24 represents the length of the prefix in an IP address. The range of the prefix length is [1,32]).
SecurityIps pulumi.StringArrayInput `pulumi:"securityIps"`
}
func (ClusterDbClusterIpArrayArgs) ElementType() reflect.Type {
return reflect.TypeOf((*ClusterDbClusterIpArray)(nil)).Elem()
}
func (i ClusterDbClusterIpArrayArgs) ToClusterDbClusterIpArrayOutput() ClusterDbClusterIpArrayOutput {
return i.ToClusterDbClusterIpArrayOutputWithContext(context.Background())
}
func (i ClusterDbClusterIpArrayArgs) ToClusterDbClusterIpArrayOutputWithContext(ctx context.Context) ClusterDbClusterIpArrayOutput {
return pulumi.ToOutputWithContext(ctx, i).(ClusterDbClusterIpArrayOutput)
}
// ClusterDbClusterIpArrayArrayInput is an input type that accepts ClusterDbClusterIpArrayArray and ClusterDbClusterIpArrayArrayOutput values.
// You can construct a concrete instance of `ClusterDbClusterIpArrayArrayInput` via:
//
// ClusterDbClusterIpArrayArray{ ClusterDbClusterIpArrayArgs{...} }
type ClusterDbClusterIpArrayArrayInput interface {
pulumi.Input
ToClusterDbClusterIpArrayArrayOutput() ClusterDbClusterIpArrayArrayOutput
ToClusterDbClusterIpArrayArrayOutputWithContext(context.Context) ClusterDbClusterIpArrayArrayOutput
}
type ClusterDbClusterIpArrayArray []ClusterDbClusterIpArrayInput
func (ClusterDbClusterIpArrayArray) ElementType() reflect.Type {
return reflect.TypeOf((*[]ClusterDbClusterIpArray)(nil)).Elem()
}
func (i ClusterDbClusterIpArrayArray) ToClusterDbClusterIpArrayArrayOutput() ClusterDbClusterIpArrayArrayOutput {
return i.ToClusterDbClusterIpArrayArrayOutputWithContext(context.Background())
}
func (i ClusterDbClusterIpArrayArray) ToClusterDbClusterIpArrayArrayOutputWithContext(ctx context.Context) ClusterDbClusterIpArrayArrayOutput {
return pulumi.ToOutputWithContext(ctx, i).(ClusterDbClusterIpArrayArrayOutput)
}
type ClusterDbClusterIpArrayOutput struct{ *pulumi.OutputState }
func (ClusterDbClusterIpArrayOutput) ElementType() reflect.Type {
return reflect.TypeOf((*ClusterDbClusterIpArray)(nil)).Elem()
}
func (o ClusterDbClusterIpArrayOutput) ToClusterDbClusterIpArrayOutput() ClusterDbClusterIpArrayOutput {
return o
}
func (o ClusterDbClusterIpArrayOutput) ToClusterDbClusterIpArrayOutputWithContext(ctx context.Context) ClusterDbClusterIpArrayOutput {
return o
}
// The name of the IP whitelist group. The group name must be 2 to 120 characters in length and consists of lowercase letters and digits. It must start with a letter, and end with a letter or a digit.
// **NOTE:** If the specified whitelist group name does not exist, the whitelist group is created. If the specified whitelist group name exists, the whitelist group is modified. If you do not specify this parameter, the default group is modified. You can create a maximum of 50 IP whitelist groups for a cluster.
func (o ClusterDbClusterIpArrayOutput) DbClusterIpArrayName() pulumi.StringPtrOutput {
return o.ApplyT(func(v ClusterDbClusterIpArray) *string { return v.DbClusterIpArrayName }).(pulumi.StringPtrOutput)
}
// The method for modifying the IP whitelist. Valid values are `Cover`, `Append`, `Delete`.
// **NOTE:** There does not recommend setting modifyMode to `Append` or `Delete` and it will bring a potential diff error.
func (o ClusterDbClusterIpArrayOutput) ModifyMode() pulumi.StringPtrOutput {
return o.ApplyT(func(v ClusterDbClusterIpArray) *string { return v.ModifyMode }).(pulumi.StringPtrOutput)
}
// List of IP addresses allowed to access all databases of a cluster. The list contains up to 1,000 IP addresses, separated by commas. Supported formats include 0.0.0.0/0, 10.23.12.24 (IP), and 10.23.12.24/24 (Classless Inter-Domain Routing (CIDR) mode. /24 represents the length of the prefix in an IP address. The range of the prefix length is [1,32]).
func (o ClusterDbClusterIpArrayOutput) SecurityIps() pulumi.StringArrayOutput {
return o.ApplyT(func(v ClusterDbClusterIpArray) []string { return v.SecurityIps }).(pulumi.StringArrayOutput)
}
type ClusterDbClusterIpArrayArrayOutput struct{ *pulumi.OutputState }
func (ClusterDbClusterIpArrayArrayOutput) ElementType() reflect.Type {
return reflect.TypeOf((*[]ClusterDbClusterIpArray)(nil)).Elem()
}
func (o ClusterDbClusterIpArrayArrayOutput) ToClusterDbClusterIpArrayArrayOutput() ClusterDbClusterIpArrayArrayOutput {
return o
}
func (o ClusterDbClusterIpArrayArrayOutput) ToClusterDbClusterIpArrayArrayOutputWithContext(ctx context.Context) ClusterDbClusterIpArrayArrayOutput {
return o
}
func (o ClusterDbClusterIpArrayArrayOutput) Index(i pulumi.IntInput) ClusterDbClusterIpArrayOutput {
return pulumi.All(o, i).ApplyT(func(vs []interface{}) ClusterDbClusterIpArray {
return vs[0].([]ClusterDbClusterIpArray)[vs[1].(int)]
}).(ClusterDbClusterIpArrayOutput)
}
type ClusterParameter struct {
Name string `pulumi:"name"`
Value string `pulumi:"value"`
}
// ClusterParameterInput is an input type that accepts ClusterParameterArgs and ClusterParameterOutput values.
// You can construct a concrete instance of `ClusterParameterInput` via:
//
// ClusterParameterArgs{...}
type ClusterParameterInput interface {
pulumi.Input
ToClusterParameterOutput() ClusterParameterOutput
ToClusterParameterOutputWithContext(context.Context) ClusterParameterOutput
}
type ClusterParameterArgs struct {
Name pulumi.StringInput `pulumi:"name"`
Value pulumi.StringInput `pulumi:"value"`
}
func (ClusterParameterArgs) ElementType() reflect.Type {
return reflect.TypeOf((*ClusterParameter)(nil)).Elem()
}
func (i ClusterParameterArgs) ToClusterParameterOutput() ClusterParameterOutput {
return i.ToClusterParameterOutputWithContext(context.Background())
}
func (i ClusterParameterArgs) ToClusterParameterOutputWithContext(ctx context.Context) ClusterParameterOutput {
return pulumi.ToOutputWithContext(ctx, i).(ClusterParameterOutput)
}
// ClusterParameterArrayInput is an input type that accepts ClusterParameterArray and ClusterParameterArrayOutput values.
// You can construct a concrete instance of `ClusterParameterArrayInput` via:
//
// ClusterParameterArray{ ClusterParameterArgs{...} }
type ClusterParameterArrayInput interface {
pulumi.Input
ToClusterParameterArrayOutput() ClusterParameterArrayOutput
ToClusterParameterArrayOutputWithContext(context.Context) ClusterParameterArrayOutput
}
type ClusterParameterArray []ClusterParameterInput
func (ClusterParameterArray) ElementType() reflect.Type {
return reflect.TypeOf((*[]ClusterParameter)(nil)).Elem()
}
func (i ClusterParameterArray) ToClusterParameterArrayOutput() ClusterParameterArrayOutput {
return i.ToClusterParameterArrayOutputWithContext(context.Background())
}
func (i ClusterParameterArray) ToClusterParameterArrayOutputWithContext(ctx context.Context) ClusterParameterArrayOutput {
return pulumi.ToOutputWithContext(ctx, i).(ClusterParameterArrayOutput)
}
type ClusterParameterOutput struct{ *pulumi.OutputState }
func (ClusterParameterOutput) ElementType() reflect.Type {
return reflect.TypeOf((*ClusterParameter)(nil)).Elem()
}
func (o ClusterParameterOutput) ToClusterParameterOutput() ClusterParameterOutput {
return o
}
func (o ClusterParameterOutput) ToClusterParameterOutputWithContext(ctx context.Context) ClusterParameterOutput {
return o
}
func (o ClusterParameterOutput) Name() pulumi.StringOutput {
return o.ApplyT(func(v ClusterParameter) string { return v.Name }).(pulumi.StringOutput)
}
func (o ClusterParameterOutput) Value() pulumi.StringOutput {
return o.ApplyT(func(v ClusterParameter) string { return v.Value }).(pulumi.StringOutput)
}
type ClusterParameterArrayOutput struct{ *pulumi.OutputState }
func (ClusterParameterArrayOutput) ElementType() reflect.Type {
return reflect.TypeOf((*[]ClusterParameter)(nil)).Elem()
}
func (o ClusterParameterArrayOutput) ToClusterParameterArrayOutput() ClusterParameterArrayOutput {
return o
}
func (o ClusterParameterArrayOutput) ToClusterParameterArrayOutputWithContext(ctx context.Context) ClusterParameterArrayOutput {
return o
}
func (o ClusterParameterArrayOutput) Index(i pulumi.IntInput) ClusterParameterOutput {
return pulumi.All(o, i).ApplyT(func(vs []interface{}) ClusterParameter {
return vs[0].([]ClusterParameter)[vs[1].(int)]
}).(ClusterParameterOutput)
}
type GetAccountsAccount struct {
// Account description.
AccountDescription string `pulumi:"accountDescription"`
// Account lock state, Valid values are `Lock`, `UnLock`.
AccountLockState string `pulumi:"accountLockState"`
// Account name.
AccountName string `pulumi:"accountName"`
// Cluster address type.`Cluster`: the default address of the Cluster.`Primary`: Primary address.`Custom`: Custom cluster addresses.
AccountStatus string `pulumi:"accountStatus"`
// Account type, Valid values are `Normal`, `Super`.
AccountType string `pulumi:"accountType"`
// A list of database privilege. Each element contains the following attributes.
DatabasePrivileges []GetAccountsAccountDatabasePrivilege `pulumi:"databasePrivileges"`
}
// GetAccountsAccountInput is an input type that accepts GetAccountsAccountArgs and GetAccountsAccountOutput values.
// You can construct a concrete instance of `GetAccountsAccountInput` via:
//
// GetAccountsAccountArgs{...}
type GetAccountsAccountInput interface {
pulumi.Input
ToGetAccountsAccountOutput() GetAccountsAccountOutput
ToGetAccountsAccountOutputWithContext(context.Context) GetAccountsAccountOutput
}
type GetAccountsAccountArgs struct {
// Account description.
AccountDescription pulumi.StringInput `pulumi:"accountDescription"`
// Account lock state, Valid values are `Lock`, `UnLock`.
AccountLockState pulumi.StringInput `pulumi:"accountLockState"`
// Account name.
AccountName pulumi.StringInput `pulumi:"accountName"`
// Cluster address type.`Cluster`: the default address of the Cluster.`Primary`: Primary address.`Custom`: Custom cluster addresses.
AccountStatus pulumi.StringInput `pulumi:"accountStatus"`
// Account type, Valid values are `Normal`, `Super`.
AccountType pulumi.StringInput `pulumi:"accountType"`
// A list of database privilege. Each element contains the following attributes.
DatabasePrivileges GetAccountsAccountDatabasePrivilegeArrayInput `pulumi:"databasePrivileges"`
}
func (GetAccountsAccountArgs) ElementType() reflect.Type {
return reflect.TypeOf((*GetAccountsAccount)(nil)).Elem()
}
func (i GetAccountsAccountArgs) ToGetAccountsAccountOutput() GetAccountsAccountOutput {
return i.ToGetAccountsAccountOutputWithContext(context.Background())
}
func (i GetAccountsAccountArgs) ToGetAccountsAccountOutputWithContext(ctx context.Context) GetAccountsAccountOutput {
return pulumi.ToOutputWithContext(ctx, i).(GetAccountsAccountOutput)
}
// GetAccountsAccountArrayInput is an input type that accepts GetAccountsAccountArray and GetAccountsAccountArrayOutput values.
// You can construct a concrete instance of `GetAccountsAccountArrayInput` via:
//
// GetAccountsAccountArray{ GetAccountsAccountArgs{...} }
type GetAccountsAccountArrayInput interface {
pulumi.Input
ToGetAccountsAccountArrayOutput() GetAccountsAccountArrayOutput
ToGetAccountsAccountArrayOutputWithContext(context.Context) GetAccountsAccountArrayOutput
}
type GetAccountsAccountArray []GetAccountsAccountInput
func (GetAccountsAccountArray) ElementType() reflect.Type {
return reflect.TypeOf((*[]GetAccountsAccount)(nil)).Elem()
}
func (i GetAccountsAccountArray) ToGetAccountsAccountArrayOutput() GetAccountsAccountArrayOutput {
return i.ToGetAccountsAccountArrayOutputWithContext(context.Background())
}
func (i GetAccountsAccountArray) ToGetAccountsAccountArrayOutputWithContext(ctx context.Context) GetAccountsAccountArrayOutput {
return pulumi.ToOutputWithContext(ctx, i).(GetAccountsAccountArrayOutput)
}
type GetAccountsAccountOutput struct{ *pulumi.OutputState }
func (GetAccountsAccountOutput) ElementType() reflect.Type {
return reflect.TypeOf((*GetAccountsAccount)(nil)).Elem()
}
func (o GetAccountsAccountOutput) ToGetAccountsAccountOutput() GetAccountsAccountOutput {
return o
}
func (o GetAccountsAccountOutput) ToGetAccountsAccountOutputWithContext(ctx context.Context) GetAccountsAccountOutput {
return o
}
// Account description.
func (o GetAccountsAccountOutput) AccountDescription() pulumi.StringOutput {
return o.ApplyT(func(v GetAccountsAccount) string { return v.AccountDescription }).(pulumi.StringOutput)
}
// Account lock state, Valid values are `Lock`, `UnLock`.
func (o GetAccountsAccountOutput) AccountLockState() pulumi.StringOutput {
return o.ApplyT(func(v GetAccountsAccount) string { return v.AccountLockState }).(pulumi.StringOutput)
}
// Account name.
func (o GetAccountsAccountOutput) AccountName() pulumi.StringOutput {
return o.ApplyT(func(v GetAccountsAccount) string { return v.AccountName }).(pulumi.StringOutput)
}
// Cluster address type.`Cluster`: the default address of the Cluster.`Primary`: Primary address.`Custom`: Custom cluster addresses.
func (o GetAccountsAccountOutput) AccountStatus() pulumi.StringOutput {
return o.ApplyT(func(v GetAccountsAccount) string { return v.AccountStatus }).(pulumi.StringOutput)
}
// Account type, Valid values are `Normal`, `Super`.
func (o GetAccountsAccountOutput) AccountType() pulumi.StringOutput {
return o.ApplyT(func(v GetAccountsAccount) string { return v.AccountType }).(pulumi.StringOutput)
}
// A list of database privilege. Each element contains the following attributes.
func (o GetAccountsAccountOutput) DatabasePrivileges() GetAccountsAccountDatabasePrivilegeArrayOutput {
return o.ApplyT(func(v GetAccountsAccount) []GetAccountsAccountDatabasePrivilege { return v.DatabasePrivileges }).(GetAccountsAccountDatabasePrivilegeArrayOutput)
}
type GetAccountsAccountArrayOutput struct{ *pulumi.OutputState }
func (GetAccountsAccountArrayOutput) ElementType() reflect.Type {
return reflect.TypeOf((*[]GetAccountsAccount)(nil)).Elem()
}
func (o GetAccountsAccountArrayOutput) ToGetAccountsAccountArrayOutput() GetAccountsAccountArrayOutput {
return o
}
func (o GetAccountsAccountArrayOutput) ToGetAccountsAccountArrayOutputWithContext(ctx context.Context) GetAccountsAccountArrayOutput {
return o
}
func (o GetAccountsAccountArrayOutput) Index(i pulumi.IntInput) GetAccountsAccountOutput {
return pulumi.All(o, i).ApplyT(func(vs []interface{}) GetAccountsAccount {
return vs[0].([]GetAccountsAccount)[vs[1].(int)]
}).(GetAccountsAccountOutput)
}
type GetAccountsAccountDatabasePrivilege struct {
// Account privilege of database
AccountPrivilege string `pulumi:"accountPrivilege"`
// The account owned database name
DbName string `pulumi:"dbName"`
}
// GetAccountsAccountDatabasePrivilegeInput is an input type that accepts GetAccountsAccountDatabasePrivilegeArgs and GetAccountsAccountDatabasePrivilegeOutput values.
// You can construct a concrete instance of `GetAccountsAccountDatabasePrivilegeInput` via:
//
// GetAccountsAccountDatabasePrivilegeArgs{...}
type GetAccountsAccountDatabasePrivilegeInput interface {
pulumi.Input
ToGetAccountsAccountDatabasePrivilegeOutput() GetAccountsAccountDatabasePrivilegeOutput
ToGetAccountsAccountDatabasePrivilegeOutputWithContext(context.Context) GetAccountsAccountDatabasePrivilegeOutput
}
type GetAccountsAccountDatabasePrivilegeArgs struct {
// Account privilege of database
AccountPrivilege pulumi.StringInput `pulumi:"accountPrivilege"`
// The account owned database name
DbName pulumi.StringInput `pulumi:"dbName"`
}
func (GetAccountsAccountDatabasePrivilegeArgs) ElementType() reflect.Type {
return reflect.TypeOf((*GetAccountsAccountDatabasePrivilege)(nil)).Elem()
}
func (i GetAccountsAccountDatabasePrivilegeArgs) ToGetAccountsAccountDatabasePrivilegeOutput() GetAccountsAccountDatabasePrivilegeOutput {
return i.ToGetAccountsAccountDatabasePrivilegeOutputWithContext(context.Background())
}
func (i GetAccountsAccountDatabasePrivilegeArgs) ToGetAccountsAccountDatabasePrivilegeOutputWithContext(ctx context.Context) GetAccountsAccountDatabasePrivilegeOutput {
return pulumi.ToOutputWithContext(ctx, i).(GetAccountsAccountDatabasePrivilegeOutput)
}
// GetAccountsAccountDatabasePrivilegeArrayInput is an input type that accepts GetAccountsAccountDatabasePrivilegeArray and GetAccountsAccountDatabasePrivilegeArrayOutput values.
// You can construct a concrete instance of `GetAccountsAccountDatabasePrivilegeArrayInput` via:
//
// GetAccountsAccountDatabasePrivilegeArray{ GetAccountsAccountDatabasePrivilegeArgs{...} }
type GetAccountsAccountDatabasePrivilegeArrayInput interface {
pulumi.Input
ToGetAccountsAccountDatabasePrivilegeArrayOutput() GetAccountsAccountDatabasePrivilegeArrayOutput
ToGetAccountsAccountDatabasePrivilegeArrayOutputWithContext(context.Context) GetAccountsAccountDatabasePrivilegeArrayOutput
}
type GetAccountsAccountDatabasePrivilegeArray []GetAccountsAccountDatabasePrivilegeInput
func (GetAccountsAccountDatabasePrivilegeArray) ElementType() reflect.Type {
return reflect.TypeOf((*[]GetAccountsAccountDatabasePrivilege)(nil)).Elem()
}
func (i GetAccountsAccountDatabasePrivilegeArray) ToGetAccountsAccountDatabasePrivilegeArrayOutput() GetAccountsAccountDatabasePrivilegeArrayOutput {
return i.ToGetAccountsAccountDatabasePrivilegeArrayOutputWithContext(context.Background())
}
func (i GetAccountsAccountDatabasePrivilegeArray) ToGetAccountsAccountDatabasePrivilegeArrayOutputWithContext(ctx context.Context) GetAccountsAccountDatabasePrivilegeArrayOutput {
return pulumi.ToOutputWithContext(ctx, i).(GetAccountsAccountDatabasePrivilegeArrayOutput)
}
type GetAccountsAccountDatabasePrivilegeOutput struct{ *pulumi.OutputState }
func (GetAccountsAccountDatabasePrivilegeOutput) ElementType() reflect.Type {
return reflect.TypeOf((*GetAccountsAccountDatabasePrivilege)(nil)).Elem()
}
func (o GetAccountsAccountDatabasePrivilegeOutput) ToGetAccountsAccountDatabasePrivilegeOutput() GetAccountsAccountDatabasePrivilegeOutput {
return o
}
func (o GetAccountsAccountDatabasePrivilegeOutput) ToGetAccountsAccountDatabasePrivilegeOutputWithContext(ctx context.Context) GetAccountsAccountDatabasePrivilegeOutput {
return o
}
// Account privilege of database
func (o GetAccountsAccountDatabasePrivilegeOutput) AccountPrivilege() pulumi.StringOutput {
return o.ApplyT(func(v GetAccountsAccountDatabasePrivilege) string { return v.AccountPrivilege }).(pulumi.StringOutput)
}
// The account owned database name
func (o GetAccountsAccountDatabasePrivilegeOutput) DbName() pulumi.StringOutput {
return o.ApplyT(func(v GetAccountsAccountDatabasePrivilege) string { return v.DbName }).(pulumi.StringOutput)
}
type GetAccountsAccountDatabasePrivilegeArrayOutput struct{ *pulumi.OutputState }
func (GetAccountsAccountDatabasePrivilegeArrayOutput) ElementType() reflect.Type {
return reflect.TypeOf((*[]GetAccountsAccountDatabasePrivilege)(nil)).Elem()
}
func (o GetAccountsAccountDatabasePrivilegeArrayOutput) ToGetAccountsAccountDatabasePrivilegeArrayOutput() GetAccountsAccountDatabasePrivilegeArrayOutput {
return o
}
func (o GetAccountsAccountDatabasePrivilegeArrayOutput) ToGetAccountsAccountDatabasePrivilegeArrayOutputWithContext(ctx context.Context) GetAccountsAccountDatabasePrivilegeArrayOutput {
return o
}
func (o GetAccountsAccountDatabasePrivilegeArrayOutput) Index(i pulumi.IntInput) GetAccountsAccountDatabasePrivilegeOutput {
return pulumi.All(o, i).ApplyT(func(vs []interface{}) GetAccountsAccountDatabasePrivilege {
return vs[0].([]GetAccountsAccountDatabasePrivilege)[vs[1].(int)]
}).(GetAccountsAccountDatabasePrivilegeOutput)
}
type GetClustersCluster struct {
// Billing method. Value options: `PostPaid` for Pay-As-You-Go and `PrePaid` for subscription.
ChargeType string `pulumi:"chargeType"`
// The createTime of the db_nodes.
CreateTime string `pulumi:"createTime"`
// The dbNodeClass of the db_nodes.
DbNodeClass string `pulumi:"dbNodeClass"`
// The DBNodeNumber of the PolarDB cluster.
DbNodeNumber int `pulumi:"dbNodeNumber"`
// The DBNodes of the PolarDB cluster.
DbNodes []GetClustersClusterDbNode `pulumi:"dbNodes"`
// Database type. Options are `MySQL`, `Oracle` and `PostgreSQL`. If no value is specified, all types are returned.
DbType string `pulumi:"dbType"`
// The DBVersion of the PolarDB cluster.
DbVersion string `pulumi:"dbVersion"`
// The DeleteLock of the PolarDB cluster.
DeleteLock int `pulumi:"deleteLock"`
// The description of the PolarDB cluster.
Description string `pulumi:"description"`
// Database type. Options are `MySQL`, `Oracle` and `PostgreSQL`. If no value is specified, all types are returned.
Engine string `pulumi:"engine"`
// Expiration time. Pay-As-You-Go clusters never expire.
ExpireTime string `pulumi:"expireTime"`
// The expired of the PolarDB cluster.
Expired string `pulumi:"expired"`
// The ID of the PolarDB cluster.
Id string `pulumi:"id"`
// The LockMode of the PolarDB cluster.
LockMode string `pulumi:"lockMode"`
// The DBClusterNetworkType of the PolarDB cluster.
NetworkType string `pulumi:"networkType"`
// The regionId of the db_nodes.
RegionId string `pulumi:"regionId"`
// status of the cluster.
Status string `pulumi:"status"`
// The StorageUsed of the PolarDB cluster.
StorageUsed int `pulumi:"storageUsed"`
// ID of the VPC the cluster belongs to.
VpcId string `pulumi:"vpcId"`
// The zoneId of the db_nodes.
ZoneId string `pulumi:"zoneId"`
}
// 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 {
// Billing method. Value options: `PostPaid` for Pay-As-You-Go and `PrePaid` for subscription.
ChargeType pulumi.StringInput `pulumi:"chargeType"`
// The createTime of the db_nodes.
CreateTime pulumi.StringInput `pulumi:"createTime"`
// The dbNodeClass of the db_nodes.
DbNodeClass pulumi.StringInput `pulumi:"dbNodeClass"`
// The DBNodeNumber of the PolarDB cluster.
DbNodeNumber pulumi.IntInput `pulumi:"dbNodeNumber"`
// The DBNodes of the PolarDB cluster.
DbNodes GetClustersClusterDbNodeArrayInput `pulumi:"dbNodes"`
// Database type. Options are `MySQL`, `Oracle` and `PostgreSQL`. If no value is specified, all types are returned.
DbType pulumi.StringInput `pulumi:"dbType"`
// The DBVersion of the PolarDB cluster.
DbVersion pulumi.StringInput `pulumi:"dbVersion"`
// The DeleteLock of the PolarDB cluster.
DeleteLock pulumi.IntInput `pulumi:"deleteLock"`
// The description of the PolarDB cluster.
Description pulumi.StringInput `pulumi:"description"`
// Database type. Options are `MySQL`, `Oracle` and `PostgreSQL`. If no value is specified, all types are returned.
Engine pulumi.StringInput `pulumi:"engine"`
// Expiration time. Pay-As-You-Go clusters never expire.
ExpireTime pulumi.StringInput `pulumi:"expireTime"`
// The expired of the PolarDB cluster.
Expired pulumi.StringInput `pulumi:"expired"`
// The ID of the PolarDB cluster.
Id pulumi.StringInput `pulumi:"id"`
// The LockMode of the PolarDB cluster.
LockMode pulumi.StringInput `pulumi:"lockMode"`
// The DBClusterNetworkType of the PolarDB cluster.
NetworkType pulumi.StringInput `pulumi:"networkType"`
// The regionId of the db_nodes.
RegionId pulumi.StringInput `pulumi:"regionId"`
// status of the cluster.
Status pulumi.StringInput `pulumi:"status"`
// The StorageUsed of the PolarDB cluster.
StorageUsed pulumi.IntInput `pulumi:"storageUsed"`
// ID of the VPC the cluster belongs to.
VpcId pulumi.StringInput `pulumi:"vpcId"`
// The zoneId of the db_nodes.
ZoneId pulumi.StringInput `pulumi:"zoneId"`
}
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
}
// Billing method. Value options: `PostPaid` for Pay-As-You-Go and `PrePaid` for subscription.
func (o GetClustersClusterOutput) ChargeType() pulumi.StringOutput {
return o.ApplyT(func(v GetClustersCluster) string { return v.ChargeType }).(pulumi.StringOutput)
}
// The createTime of the db_nodes.
func (o GetClustersClusterOutput) CreateTime() pulumi.StringOutput {
return o.ApplyT(func(v GetClustersCluster) string { return v.CreateTime }).(pulumi.StringOutput)
}
// The dbNodeClass of the db_nodes.
func (o GetClustersClusterOutput) DbNodeClass() pulumi.StringOutput {
return o.ApplyT(func(v GetClustersCluster) string { return v.DbNodeClass }).(pulumi.StringOutput)
}
// The DBNodeNumber of the PolarDB cluster.
func (o GetClustersClusterOutput) DbNodeNumber() pulumi.IntOutput {
return o.ApplyT(func(v GetClustersCluster) int { return v.DbNodeNumber }).(pulumi.IntOutput)
}
// The DBNodes of the PolarDB cluster.
func (o GetClustersClusterOutput) DbNodes() GetClustersClusterDbNodeArrayOutput {
return o.ApplyT(func(v GetClustersCluster) []GetClustersClusterDbNode { return v.DbNodes }).(GetClustersClusterDbNodeArrayOutput)
}
// Database type. Options are `MySQL`, `Oracle` and `PostgreSQL`. If no value is specified, all types are returned.
func (o GetClustersClusterOutput) DbType() pulumi.StringOutput {
return o.ApplyT(func(v GetClustersCluster) string { return v.DbType }).(pulumi.StringOutput)
}
// The DBVersion of the PolarDB cluster.
func (o GetClustersClusterOutput) DbVersion() pulumi.StringOutput {
return o.ApplyT(func(v GetClustersCluster) string { return v.DbVersion }).(pulumi.StringOutput)
}
// The DeleteLock of the PolarDB cluster.
func (o GetClustersClusterOutput) DeleteLock() pulumi.IntOutput {
return o.ApplyT(func(v GetClustersCluster) int { return v.DeleteLock }).(pulumi.IntOutput)
}
// The description of the PolarDB cluster.
func (o GetClustersClusterOutput) Description() pulumi.StringOutput {
return o.ApplyT(func(v GetClustersCluster) string { return v.Description }).(pulumi.StringOutput)
}
// Database type. Options are `MySQL`, `Oracle` and `PostgreSQL`. If no value is specified, all types are returned.
func (o GetClustersClusterOutput) Engine() pulumi.StringOutput {
return o.ApplyT(func(v GetClustersCluster) string { return v.Engine }).(pulumi.StringOutput)
}
// Expiration time. Pay-As-You-Go clusters never expire.
func (o GetClustersClusterOutput) ExpireTime() pulumi.StringOutput {
return o.ApplyT(func(v GetClustersCluster) string { return v.ExpireTime }).(pulumi.StringOutput)
}
// The expired of the PolarDB cluster.
func (o GetClustersClusterOutput) Expired() pulumi.StringOutput {
return o.ApplyT(func(v GetClustersCluster) string { return v.Expired }).(pulumi.StringOutput)
}
// The ID of the PolarDB cluster.
func (o GetClustersClusterOutput) Id() pulumi.StringOutput {
return o.ApplyT(func(v GetClustersCluster) string { return v.Id }).(pulumi.StringOutput)
}
// The LockMode of the PolarDB cluster.
func (o GetClustersClusterOutput) LockMode() pulumi.StringOutput {
return o.ApplyT(func(v GetClustersCluster) string { return v.LockMode }).(pulumi.StringOutput)
}
// The DBClusterNetworkType of the PolarDB cluster.
func (o GetClustersClusterOutput) NetworkType() pulumi.StringOutput {
return o.ApplyT(func(v GetClustersCluster) string { return v.NetworkType }).(pulumi.StringOutput)
}
// The regionId of the db_nodes.
func (o GetClustersClusterOutput) RegionId() pulumi.StringOutput {
return o.ApplyT(func(v GetClustersCluster) string { return v.RegionId }).(pulumi.StringOutput)
}
// status of the cluster.
func (o GetClustersClusterOutput) Status() pulumi.StringOutput {
return o.ApplyT(func(v GetClustersCluster) string { return v.Status }).(pulumi.StringOutput)
}
// The StorageUsed of the PolarDB cluster.
func (o GetClustersClusterOutput) StorageUsed() pulumi.IntOutput {
return o.ApplyT(func(v GetClustersCluster) int { return v.StorageUsed }).(pulumi.IntOutput)
}
// ID of the VPC the cluster belongs to.
func (o GetClustersClusterOutput) VpcId() pulumi.StringOutput {
return o.ApplyT(func(v GetClustersCluster) string { return v.VpcId }).(pulumi.StringOutput)
}
// The zoneId of the db_nodes.
func (o GetClustersClusterOutput) ZoneId() pulumi.StringOutput {
return o.ApplyT(func(v GetClustersCluster) string { return v.ZoneId }).(pulumi.StringOutput)
}
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 GetClustersClusterDbNode struct {
// The createTime of the db_nodes.
CreateTime string `pulumi:"createTime"`
// The dbNodeClass of the db_nodes.
DbNodeClass string `pulumi:"dbNodeClass"`
// The dbNodeId of the db_nodes.
DbNodeId string `pulumi:"dbNodeId"`
// The dbNodeRole of the db_nodes.
DbNodeRole string `pulumi:"dbNodeRole"`
// The dbNodeStatus of the db_nodes.
DbNodeStatus string `pulumi:"dbNodeStatus"`
// The maxConnections of the db_nodes.
MaxConnections int `pulumi:"maxConnections"`
// The maxIops of the db_nodes.
MaxIops int `pulumi:"maxIops"`
// The regionId of the db_nodes.
RegionId string `pulumi:"regionId"`
// The zoneId of the db_nodes.
ZoneId string `pulumi:"zoneId"`
}
// GetClustersClusterDbNodeInput is an input type that accepts GetClustersClusterDbNodeArgs and GetClustersClusterDbNodeOutput values.
// You can construct a concrete instance of `GetClustersClusterDbNodeInput` via:
//
// GetClustersClusterDbNodeArgs{...}
type GetClustersClusterDbNodeInput interface {
pulumi.Input
ToGetClustersClusterDbNodeOutput() GetClustersClusterDbNodeOutput
ToGetClustersClusterDbNodeOutputWithContext(context.Context) GetClustersClusterDbNodeOutput
}
type GetClustersClusterDbNodeArgs struct {
// The createTime of the db_nodes.
CreateTime pulumi.StringInput `pulumi:"createTime"`
// The dbNodeClass of the db_nodes.
DbNodeClass pulumi.StringInput `pulumi:"dbNodeClass"`
// The dbNodeId of the db_nodes.
DbNodeId pulumi.StringInput `pulumi:"dbNodeId"`
// The dbNodeRole of the db_nodes.
DbNodeRole pulumi.StringInput `pulumi:"dbNodeRole"`
// The dbNodeStatus of the db_nodes.
DbNodeStatus pulumi.StringInput `pulumi:"dbNodeStatus"`
// The maxConnections of the db_nodes.
MaxConnections pulumi.IntInput `pulumi:"maxConnections"`
// The maxIops of the db_nodes.
MaxIops pulumi.IntInput `pulumi:"maxIops"`
// The regionId of the db_nodes.
RegionId pulumi.StringInput `pulumi:"regionId"`
// The zoneId of the db_nodes.
ZoneId pulumi.StringInput `pulumi:"zoneId"`
}
func (GetClustersClusterDbNodeArgs) ElementType() reflect.Type {
return reflect.TypeOf((*GetClustersClusterDbNode)(nil)).Elem()
}
func (i GetClustersClusterDbNodeArgs) ToGetClustersClusterDbNodeOutput() GetClustersClusterDbNodeOutput {
return i.ToGetClustersClusterDbNodeOutputWithContext(context.Background())
}
func (i GetClustersClusterDbNodeArgs) ToGetClustersClusterDbNodeOutputWithContext(ctx context.Context) GetClustersClusterDbNodeOutput {
return pulumi.ToOutputWithContext(ctx, i).(GetClustersClusterDbNodeOutput)
}
// GetClustersClusterDbNodeArrayInput is an input type that accepts GetClustersClusterDbNodeArray and GetClustersClusterDbNodeArrayOutput values.
// You can construct a concrete instance of `GetClustersClusterDbNodeArrayInput` via:
//
// GetClustersClusterDbNodeArray{ GetClustersClusterDbNodeArgs{...} }
type GetClustersClusterDbNodeArrayInput interface {
pulumi.Input
ToGetClustersClusterDbNodeArrayOutput() GetClustersClusterDbNodeArrayOutput
ToGetClustersClusterDbNodeArrayOutputWithContext(context.Context) GetClustersClusterDbNodeArrayOutput
}
type GetClustersClusterDbNodeArray []GetClustersClusterDbNodeInput
func (GetClustersClusterDbNodeArray) ElementType() reflect.Type {
return reflect.TypeOf((*[]GetClustersClusterDbNode)(nil)).Elem()
}
func (i GetClustersClusterDbNodeArray) ToGetClustersClusterDbNodeArrayOutput() GetClustersClusterDbNodeArrayOutput {
return i.ToGetClustersClusterDbNodeArrayOutputWithContext(context.Background())
}
func (i GetClustersClusterDbNodeArray) ToGetClustersClusterDbNodeArrayOutputWithContext(ctx context.Context) GetClustersClusterDbNodeArrayOutput {
return pulumi.ToOutputWithContext(ctx, i).(GetClustersClusterDbNodeArrayOutput)
}
type GetClustersClusterDbNodeOutput struct{ *pulumi.OutputState }
func (GetClustersClusterDbNodeOutput) ElementType() reflect.Type {
return reflect.TypeOf((*GetClustersClusterDbNode)(nil)).Elem()
}
func (o GetClustersClusterDbNodeOutput) ToGetClustersClusterDbNodeOutput() GetClustersClusterDbNodeOutput {
return o
}
func (o GetClustersClusterDbNodeOutput) ToGetClustersClusterDbNodeOutputWithContext(ctx context.Context) GetClustersClusterDbNodeOutput {
return o
}
// The createTime of the db_nodes.
func (o GetClustersClusterDbNodeOutput) CreateTime() pulumi.StringOutput {
return o.ApplyT(func(v GetClustersClusterDbNode) string { return v.CreateTime }).(pulumi.StringOutput)
}
// The dbNodeClass of the db_nodes.
func (o GetClustersClusterDbNodeOutput) DbNodeClass() pulumi.StringOutput {
return o.ApplyT(func(v GetClustersClusterDbNode) string { return v.DbNodeClass }).(pulumi.StringOutput)
}
// The dbNodeId of the db_nodes.
func (o GetClustersClusterDbNodeOutput) DbNodeId() pulumi.StringOutput {
return o.ApplyT(func(v GetClustersClusterDbNode) string { return v.DbNodeId }).(pulumi.StringOutput)
}
// The dbNodeRole of the db_nodes.
func (o GetClustersClusterDbNodeOutput) DbNodeRole() pulumi.StringOutput {
return o.ApplyT(func(v GetClustersClusterDbNode) string { return v.DbNodeRole }).(pulumi.StringOutput)
}
// The dbNodeStatus of the db_nodes.
func (o GetClustersClusterDbNodeOutput) DbNodeStatus() pulumi.StringOutput {
return o.ApplyT(func(v GetClustersClusterDbNode) string { return v.DbNodeStatus }).(pulumi.StringOutput)
}
// The maxConnections of the db_nodes.
func (o GetClustersClusterDbNodeOutput) MaxConnections() pulumi.IntOutput {
return o.ApplyT(func(v GetClustersClusterDbNode) int { return v.MaxConnections }).(pulumi.IntOutput)
}
// The maxIops of the db_nodes.
func (o GetClustersClusterDbNodeOutput) MaxIops() pulumi.IntOutput {
return o.ApplyT(func(v GetClustersClusterDbNode) int { return v.MaxIops }).(pulumi.IntOutput)
}
// The regionId of the db_nodes.
func (o GetClustersClusterDbNodeOutput) RegionId() pulumi.StringOutput {
return o.ApplyT(func(v GetClustersClusterDbNode) string { return v.RegionId }).(pulumi.StringOutput)
}
// The zoneId of the db_nodes.
func (o GetClustersClusterDbNodeOutput) ZoneId() pulumi.StringOutput {
return o.ApplyT(func(v GetClustersClusterDbNode) string { return v.ZoneId }).(pulumi.StringOutput)
}
type GetClustersClusterDbNodeArrayOutput struct{ *pulumi.OutputState }
func (GetClustersClusterDbNodeArrayOutput) ElementType() reflect.Type {
return reflect.TypeOf((*[]GetClustersClusterDbNode)(nil)).Elem()
}
func (o GetClustersClusterDbNodeArrayOutput) ToGetClustersClusterDbNodeArrayOutput() GetClustersClusterDbNodeArrayOutput {
return o
}
func (o GetClustersClusterDbNodeArrayOutput) ToGetClustersClusterDbNodeArrayOutputWithContext(ctx context.Context) GetClustersClusterDbNodeArrayOutput {
return o
}
func (o GetClustersClusterDbNodeArrayOutput) Index(i pulumi.IntInput) GetClustersClusterDbNodeOutput {
return pulumi.All(o, i).ApplyT(func(vs []interface{}) GetClustersClusterDbNode {
return vs[0].([]GetClustersClusterDbNode)[vs[1].(int)]
}).(GetClustersClusterDbNodeOutput)
}
type GetDatabasesDatabase struct {
// A list of accounts of database. Each element contains the following attributes.
Accounts []GetDatabasesDatabaseAccount `pulumi:"accounts"`
// The character set name of database.
CharacterSetName string `pulumi:"characterSetName"`
// Database description.
DbDescription string `pulumi:"dbDescription"`
// Database name.
DbName string `pulumi:"dbName"`
// The status of database.
DbStatus string `pulumi:"dbStatus"`
// The engine of database.
Engine string `pulumi:"engine"`
}
// GetDatabasesDatabaseInput is an input type that accepts GetDatabasesDatabaseArgs and GetDatabasesDatabaseOutput values.
// You can construct a concrete instance of `GetDatabasesDatabaseInput` via:
//
// GetDatabasesDatabaseArgs{...}
type GetDatabasesDatabaseInput interface {
pulumi.Input
ToGetDatabasesDatabaseOutput() GetDatabasesDatabaseOutput
ToGetDatabasesDatabaseOutputWithContext(context.Context) GetDatabasesDatabaseOutput
}
type GetDatabasesDatabaseArgs struct {
// A list of accounts of database. Each element contains the following attributes.
Accounts GetDatabasesDatabaseAccountArrayInput `pulumi:"accounts"`
// The character set name of database.
CharacterSetName pulumi.StringInput `pulumi:"characterSetName"`
// Database description.
DbDescription pulumi.StringInput `pulumi:"dbDescription"`
// Database name.
DbName pulumi.StringInput `pulumi:"dbName"`
// The status of database.
DbStatus pulumi.StringInput `pulumi:"dbStatus"`
// The engine of database.
Engine pulumi.StringInput `pulumi:"engine"`
}
func (GetDatabasesDatabaseArgs) ElementType() reflect.Type {
return reflect.TypeOf((*GetDatabasesDatabase)(nil)).Elem()
}
func (i GetDatabasesDatabaseArgs) ToGetDatabasesDatabaseOutput() GetDatabasesDatabaseOutput {
return i.ToGetDatabasesDatabaseOutputWithContext(context.Background())
}
func (i GetDatabasesDatabaseArgs) ToGetDatabasesDatabaseOutputWithContext(ctx context.Context) GetDatabasesDatabaseOutput {
return pulumi.ToOutputWithContext(ctx, i).(GetDatabasesDatabaseOutput)
}
// GetDatabasesDatabaseArrayInput is an input type that accepts GetDatabasesDatabaseArray and GetDatabasesDatabaseArrayOutput values.
// You can construct a concrete instance of `GetDatabasesDatabaseArrayInput` via:
//
// GetDatabasesDatabaseArray{ GetDatabasesDatabaseArgs{...} }
type GetDatabasesDatabaseArrayInput interface {
pulumi.Input
ToGetDatabasesDatabaseArrayOutput() GetDatabasesDatabaseArrayOutput
ToGetDatabasesDatabaseArrayOutputWithContext(context.Context) GetDatabasesDatabaseArrayOutput
}
type GetDatabasesDatabaseArray []GetDatabasesDatabaseInput
func (GetDatabasesDatabaseArray) ElementType() reflect.Type {
return reflect.TypeOf((*[]GetDatabasesDatabase)(nil)).Elem()
}
func (i GetDatabasesDatabaseArray) ToGetDatabasesDatabaseArrayOutput() GetDatabasesDatabaseArrayOutput {
return i.ToGetDatabasesDatabaseArrayOutputWithContext(context.Background())
}
func (i GetDatabasesDatabaseArray) ToGetDatabasesDatabaseArrayOutputWithContext(ctx context.Context) GetDatabasesDatabaseArrayOutput {
return pulumi.ToOutputWithContext(ctx, i).(GetDatabasesDatabaseArrayOutput)
}
type GetDatabasesDatabaseOutput struct{ *pulumi.OutputState }
func (GetDatabasesDatabaseOutput) ElementType() reflect.Type {
return reflect.TypeOf((*GetDatabasesDatabase)(nil)).Elem()