/
pulumiTypes.go
6218 lines (5022 loc) · 250 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 vultr
import (
"context"
"reflect"
"github.com/dirien/pulumi-vultr/sdk/v2/go/vultr/internal"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
var _ = internal.GetEnvOrDefault
type DatabaseReadReplica struct {
// The configured time zone for the Managed Database in TZ database format (e.g. `UTC`, `America/New_York`, `Europe/London`).
ClusterTimeZone *string `pulumi:"clusterTimeZone"`
// The database engine of the new managed database.
DatabaseEngine *string `pulumi:"databaseEngine"`
// The database engine version of the new managed database.
DatabaseEngineVersion *string `pulumi:"databaseEngineVersion"`
// The date the managed database was added to your Vultr account.
DateCreated *string `pulumi:"dateCreated"`
// The managed database's default logical database.
Dbname *string `pulumi:"dbname"`
// An associated list of FerretDB connection credentials (FerretDB + PostgreSQL engine types only).
FerretdbCredentials map[string]interface{} `pulumi:"ferretdbCredentials"`
// The hostname assigned to the managed database.
Host *string `pulumi:"host"`
// The ID of the managed database.
Id *string `pulumi:"id"`
// A label for the managed database.
Label string `pulumi:"label"`
// The date of the latest backup available on the managed database.
LatestBackup *string `pulumi:"latestBackup"`
// The preferred maintenance day of week for the managed database.
MaintenanceDow *string `pulumi:"maintenanceDow"`
// The preferred maintenance time for the managed database in 24-hour HH:00 format (e.g. `01:00`, `13:00`, `23:00`).
MaintenanceTime *string `pulumi:"maintenanceTime"`
// The configuration value for the long query time (in seconds) on the managed database (MySQL engine types only).
MysqlLongQueryTime *int `pulumi:"mysqlLongQueryTime"`
// The configuration value for whether primary keys are required on the managed database (MySQL engine types only).
MysqlRequirePrimaryKey *bool `pulumi:"mysqlRequirePrimaryKey"`
// The configuration value for slow query logging on the managed database (MySQL engine types only).
MysqlSlowQueryLog *bool `pulumi:"mysqlSlowQueryLog"`
// A list of SQL modes to configure for the managed database (MySQL engine types only - `ALLOW_INVALID_DATES`, `ANSI`, `ANSI_QUOTES`, `ERROR_FOR_DIVISION_BY_ZERO`, `HIGH_NOT_PRECEDENCE`, `IGNORE_SPACE`, `NO_AUTO_VALUE_ON_ZERO`, `NO_DIR_IN_CREATE`, `NO_ENGINE_SUBSTITUTION`, `NO_UNSIGNED_SUBTRACTION`, `NO_ZERO_DATE`, `NO_ZERO_IN_DATE`, `ONLY_FULL_GROUP_BY`, `PIPES_AS_CONCAT`, `REAL_AS_FLOAT`, `STRICT_ALL_TABLES`, `STRICT_TRANS_TABLES`, `TIME_TRUNCATE_FRACTIONAL`, `TRADITIONAL`).
MysqlSqlModes []string `pulumi:"mysqlSqlModes"`
// The password for the managed database's primary admin user.
Password *string `pulumi:"password"`
// The ID of the plan that you want the managed database to subscribe to. [See List Managed Database Plans](https://www.vultr.com/api/#tag/managed-databases/operation/list-database-plans)
Plan *string `pulumi:"plan"`
// The description of the disk(s) on the managed database.
PlanDisk *int `pulumi:"planDisk"`
// The amount of memory available on the managed database in MB.
PlanRam *int `pulumi:"planRam"`
// The number of standby nodes available on the managed database.
PlanReplicas *int `pulumi:"planReplicas"`
// The number of virtual CPUs available on the managed database.
PlanVcpus *int `pulumi:"planVcpus"`
// The connection port for the managed database.
Port *string `pulumi:"port"`
// The public hostname assigned to the managed database (VPC-attached only).
PublicHost *string `pulumi:"publicHost"`
// The configuration value for the data eviction policy on the managed database (Redis engine types only - `noeviction`, `allkeys-lru`, `volatile-lru`, `allkeys-random`, `volatile-random`, `volatile-ttl`, `volatile-lfu`, `allkeys-lfu`).
RedisEvictionPolicy *string `pulumi:"redisEvictionPolicy"`
// The ID of the region that the managed database is to be created in. [See List Regions](https://www.vultr.com/api/#operation/list-regions)
Region string `pulumi:"region"`
// The current status of the managed database (poweroff, rebuilding, rebalancing, configuring, running).
Status *string `pulumi:"status"`
// The tag to assign to the managed database.
Tag *string `pulumi:"tag"`
// A list of allowed IP addresses for the managed database.
TrustedIps []string `pulumi:"trustedIps"`
// The primary admin user for the managed database.
User *string `pulumi:"user"`
// The ID of the VPC Network to attach to the Managed Database.
VpcId *string `pulumi:"vpcId"`
}
// DatabaseReadReplicaInput is an input type that accepts DatabaseReadReplicaArgs and DatabaseReadReplicaOutput values.
// You can construct a concrete instance of `DatabaseReadReplicaInput` via:
//
// DatabaseReadReplicaArgs{...}
type DatabaseReadReplicaInput interface {
pulumi.Input
ToDatabaseReadReplicaOutput() DatabaseReadReplicaOutput
ToDatabaseReadReplicaOutputWithContext(context.Context) DatabaseReadReplicaOutput
}
type DatabaseReadReplicaArgs struct {
// The configured time zone for the Managed Database in TZ database format (e.g. `UTC`, `America/New_York`, `Europe/London`).
ClusterTimeZone pulumi.StringPtrInput `pulumi:"clusterTimeZone"`
// The database engine of the new managed database.
DatabaseEngine pulumi.StringPtrInput `pulumi:"databaseEngine"`
// The database engine version of the new managed database.
DatabaseEngineVersion pulumi.StringPtrInput `pulumi:"databaseEngineVersion"`
// The date the managed database was added to your Vultr account.
DateCreated pulumi.StringPtrInput `pulumi:"dateCreated"`
// The managed database's default logical database.
Dbname pulumi.StringPtrInput `pulumi:"dbname"`
// An associated list of FerretDB connection credentials (FerretDB + PostgreSQL engine types only).
FerretdbCredentials pulumi.MapInput `pulumi:"ferretdbCredentials"`
// The hostname assigned to the managed database.
Host pulumi.StringPtrInput `pulumi:"host"`
// The ID of the managed database.
Id pulumi.StringPtrInput `pulumi:"id"`
// A label for the managed database.
Label pulumi.StringInput `pulumi:"label"`
// The date of the latest backup available on the managed database.
LatestBackup pulumi.StringPtrInput `pulumi:"latestBackup"`
// The preferred maintenance day of week for the managed database.
MaintenanceDow pulumi.StringPtrInput `pulumi:"maintenanceDow"`
// The preferred maintenance time for the managed database in 24-hour HH:00 format (e.g. `01:00`, `13:00`, `23:00`).
MaintenanceTime pulumi.StringPtrInput `pulumi:"maintenanceTime"`
// The configuration value for the long query time (in seconds) on the managed database (MySQL engine types only).
MysqlLongQueryTime pulumi.IntPtrInput `pulumi:"mysqlLongQueryTime"`
// The configuration value for whether primary keys are required on the managed database (MySQL engine types only).
MysqlRequirePrimaryKey pulumi.BoolPtrInput `pulumi:"mysqlRequirePrimaryKey"`
// The configuration value for slow query logging on the managed database (MySQL engine types only).
MysqlSlowQueryLog pulumi.BoolPtrInput `pulumi:"mysqlSlowQueryLog"`
// A list of SQL modes to configure for the managed database (MySQL engine types only - `ALLOW_INVALID_DATES`, `ANSI`, `ANSI_QUOTES`, `ERROR_FOR_DIVISION_BY_ZERO`, `HIGH_NOT_PRECEDENCE`, `IGNORE_SPACE`, `NO_AUTO_VALUE_ON_ZERO`, `NO_DIR_IN_CREATE`, `NO_ENGINE_SUBSTITUTION`, `NO_UNSIGNED_SUBTRACTION`, `NO_ZERO_DATE`, `NO_ZERO_IN_DATE`, `ONLY_FULL_GROUP_BY`, `PIPES_AS_CONCAT`, `REAL_AS_FLOAT`, `STRICT_ALL_TABLES`, `STRICT_TRANS_TABLES`, `TIME_TRUNCATE_FRACTIONAL`, `TRADITIONAL`).
MysqlSqlModes pulumi.StringArrayInput `pulumi:"mysqlSqlModes"`
// The password for the managed database's primary admin user.
Password pulumi.StringPtrInput `pulumi:"password"`
// The ID of the plan that you want the managed database to subscribe to. [See List Managed Database Plans](https://www.vultr.com/api/#tag/managed-databases/operation/list-database-plans)
Plan pulumi.StringPtrInput `pulumi:"plan"`
// The description of the disk(s) on the managed database.
PlanDisk pulumi.IntPtrInput `pulumi:"planDisk"`
// The amount of memory available on the managed database in MB.
PlanRam pulumi.IntPtrInput `pulumi:"planRam"`
// The number of standby nodes available on the managed database.
PlanReplicas pulumi.IntPtrInput `pulumi:"planReplicas"`
// The number of virtual CPUs available on the managed database.
PlanVcpus pulumi.IntPtrInput `pulumi:"planVcpus"`
// The connection port for the managed database.
Port pulumi.StringPtrInput `pulumi:"port"`
// The public hostname assigned to the managed database (VPC-attached only).
PublicHost pulumi.StringPtrInput `pulumi:"publicHost"`
// The configuration value for the data eviction policy on the managed database (Redis engine types only - `noeviction`, `allkeys-lru`, `volatile-lru`, `allkeys-random`, `volatile-random`, `volatile-ttl`, `volatile-lfu`, `allkeys-lfu`).
RedisEvictionPolicy pulumi.StringPtrInput `pulumi:"redisEvictionPolicy"`
// The ID of the region that the managed database is to be created in. [See List Regions](https://www.vultr.com/api/#operation/list-regions)
Region pulumi.StringInput `pulumi:"region"`
// The current status of the managed database (poweroff, rebuilding, rebalancing, configuring, running).
Status pulumi.StringPtrInput `pulumi:"status"`
// The tag to assign to the managed database.
Tag pulumi.StringPtrInput `pulumi:"tag"`
// A list of allowed IP addresses for the managed database.
TrustedIps pulumi.StringArrayInput `pulumi:"trustedIps"`
// The primary admin user for the managed database.
User pulumi.StringPtrInput `pulumi:"user"`
// The ID of the VPC Network to attach to the Managed Database.
VpcId pulumi.StringPtrInput `pulumi:"vpcId"`
}
func (DatabaseReadReplicaArgs) ElementType() reflect.Type {
return reflect.TypeOf((*DatabaseReadReplica)(nil)).Elem()
}
func (i DatabaseReadReplicaArgs) ToDatabaseReadReplicaOutput() DatabaseReadReplicaOutput {
return i.ToDatabaseReadReplicaOutputWithContext(context.Background())
}
func (i DatabaseReadReplicaArgs) ToDatabaseReadReplicaOutputWithContext(ctx context.Context) DatabaseReadReplicaOutput {
return pulumi.ToOutputWithContext(ctx, i).(DatabaseReadReplicaOutput)
}
// DatabaseReadReplicaArrayInput is an input type that accepts DatabaseReadReplicaArray and DatabaseReadReplicaArrayOutput values.
// You can construct a concrete instance of `DatabaseReadReplicaArrayInput` via:
//
// DatabaseReadReplicaArray{ DatabaseReadReplicaArgs{...} }
type DatabaseReadReplicaArrayInput interface {
pulumi.Input
ToDatabaseReadReplicaArrayOutput() DatabaseReadReplicaArrayOutput
ToDatabaseReadReplicaArrayOutputWithContext(context.Context) DatabaseReadReplicaArrayOutput
}
type DatabaseReadReplicaArray []DatabaseReadReplicaInput
func (DatabaseReadReplicaArray) ElementType() reflect.Type {
return reflect.TypeOf((*[]DatabaseReadReplica)(nil)).Elem()
}
func (i DatabaseReadReplicaArray) ToDatabaseReadReplicaArrayOutput() DatabaseReadReplicaArrayOutput {
return i.ToDatabaseReadReplicaArrayOutputWithContext(context.Background())
}
func (i DatabaseReadReplicaArray) ToDatabaseReadReplicaArrayOutputWithContext(ctx context.Context) DatabaseReadReplicaArrayOutput {
return pulumi.ToOutputWithContext(ctx, i).(DatabaseReadReplicaArrayOutput)
}
type DatabaseReadReplicaOutput struct{ *pulumi.OutputState }
func (DatabaseReadReplicaOutput) ElementType() reflect.Type {
return reflect.TypeOf((*DatabaseReadReplica)(nil)).Elem()
}
func (o DatabaseReadReplicaOutput) ToDatabaseReadReplicaOutput() DatabaseReadReplicaOutput {
return o
}
func (o DatabaseReadReplicaOutput) ToDatabaseReadReplicaOutputWithContext(ctx context.Context) DatabaseReadReplicaOutput {
return o
}
// The configured time zone for the Managed Database in TZ database format (e.g. `UTC`, `America/New_York`, `Europe/London`).
func (o DatabaseReadReplicaOutput) ClusterTimeZone() pulumi.StringPtrOutput {
return o.ApplyT(func(v DatabaseReadReplica) *string { return v.ClusterTimeZone }).(pulumi.StringPtrOutput)
}
// The database engine of the new managed database.
func (o DatabaseReadReplicaOutput) DatabaseEngine() pulumi.StringPtrOutput {
return o.ApplyT(func(v DatabaseReadReplica) *string { return v.DatabaseEngine }).(pulumi.StringPtrOutput)
}
// The database engine version of the new managed database.
func (o DatabaseReadReplicaOutput) DatabaseEngineVersion() pulumi.StringPtrOutput {
return o.ApplyT(func(v DatabaseReadReplica) *string { return v.DatabaseEngineVersion }).(pulumi.StringPtrOutput)
}
// The date the managed database was added to your Vultr account.
func (o DatabaseReadReplicaOutput) DateCreated() pulumi.StringPtrOutput {
return o.ApplyT(func(v DatabaseReadReplica) *string { return v.DateCreated }).(pulumi.StringPtrOutput)
}
// The managed database's default logical database.
func (o DatabaseReadReplicaOutput) Dbname() pulumi.StringPtrOutput {
return o.ApplyT(func(v DatabaseReadReplica) *string { return v.Dbname }).(pulumi.StringPtrOutput)
}
// An associated list of FerretDB connection credentials (FerretDB + PostgreSQL engine types only).
func (o DatabaseReadReplicaOutput) FerretdbCredentials() pulumi.MapOutput {
return o.ApplyT(func(v DatabaseReadReplica) map[string]interface{} { return v.FerretdbCredentials }).(pulumi.MapOutput)
}
// The hostname assigned to the managed database.
func (o DatabaseReadReplicaOutput) Host() pulumi.StringPtrOutput {
return o.ApplyT(func(v DatabaseReadReplica) *string { return v.Host }).(pulumi.StringPtrOutput)
}
// The ID of the managed database.
func (o DatabaseReadReplicaOutput) Id() pulumi.StringPtrOutput {
return o.ApplyT(func(v DatabaseReadReplica) *string { return v.Id }).(pulumi.StringPtrOutput)
}
// A label for the managed database.
func (o DatabaseReadReplicaOutput) Label() pulumi.StringOutput {
return o.ApplyT(func(v DatabaseReadReplica) string { return v.Label }).(pulumi.StringOutput)
}
// The date of the latest backup available on the managed database.
func (o DatabaseReadReplicaOutput) LatestBackup() pulumi.StringPtrOutput {
return o.ApplyT(func(v DatabaseReadReplica) *string { return v.LatestBackup }).(pulumi.StringPtrOutput)
}
// The preferred maintenance day of week for the managed database.
func (o DatabaseReadReplicaOutput) MaintenanceDow() pulumi.StringPtrOutput {
return o.ApplyT(func(v DatabaseReadReplica) *string { return v.MaintenanceDow }).(pulumi.StringPtrOutput)
}
// The preferred maintenance time for the managed database in 24-hour HH:00 format (e.g. `01:00`, `13:00`, `23:00`).
func (o DatabaseReadReplicaOutput) MaintenanceTime() pulumi.StringPtrOutput {
return o.ApplyT(func(v DatabaseReadReplica) *string { return v.MaintenanceTime }).(pulumi.StringPtrOutput)
}
// The configuration value for the long query time (in seconds) on the managed database (MySQL engine types only).
func (o DatabaseReadReplicaOutput) MysqlLongQueryTime() pulumi.IntPtrOutput {
return o.ApplyT(func(v DatabaseReadReplica) *int { return v.MysqlLongQueryTime }).(pulumi.IntPtrOutput)
}
// The configuration value for whether primary keys are required on the managed database (MySQL engine types only).
func (o DatabaseReadReplicaOutput) MysqlRequirePrimaryKey() pulumi.BoolPtrOutput {
return o.ApplyT(func(v DatabaseReadReplica) *bool { return v.MysqlRequirePrimaryKey }).(pulumi.BoolPtrOutput)
}
// The configuration value for slow query logging on the managed database (MySQL engine types only).
func (o DatabaseReadReplicaOutput) MysqlSlowQueryLog() pulumi.BoolPtrOutput {
return o.ApplyT(func(v DatabaseReadReplica) *bool { return v.MysqlSlowQueryLog }).(pulumi.BoolPtrOutput)
}
// A list of SQL modes to configure for the managed database (MySQL engine types only - `ALLOW_INVALID_DATES`, `ANSI`, `ANSI_QUOTES`, `ERROR_FOR_DIVISION_BY_ZERO`, `HIGH_NOT_PRECEDENCE`, `IGNORE_SPACE`, `NO_AUTO_VALUE_ON_ZERO`, `NO_DIR_IN_CREATE`, `NO_ENGINE_SUBSTITUTION`, `NO_UNSIGNED_SUBTRACTION`, `NO_ZERO_DATE`, `NO_ZERO_IN_DATE`, `ONLY_FULL_GROUP_BY`, `PIPES_AS_CONCAT`, `REAL_AS_FLOAT`, `STRICT_ALL_TABLES`, `STRICT_TRANS_TABLES`, `TIME_TRUNCATE_FRACTIONAL`, `TRADITIONAL`).
func (o DatabaseReadReplicaOutput) MysqlSqlModes() pulumi.StringArrayOutput {
return o.ApplyT(func(v DatabaseReadReplica) []string { return v.MysqlSqlModes }).(pulumi.StringArrayOutput)
}
// The password for the managed database's primary admin user.
func (o DatabaseReadReplicaOutput) Password() pulumi.StringPtrOutput {
return o.ApplyT(func(v DatabaseReadReplica) *string { return v.Password }).(pulumi.StringPtrOutput)
}
// The ID of the plan that you want the managed database to subscribe to. [See List Managed Database Plans](https://www.vultr.com/api/#tag/managed-databases/operation/list-database-plans)
func (o DatabaseReadReplicaOutput) Plan() pulumi.StringPtrOutput {
return o.ApplyT(func(v DatabaseReadReplica) *string { return v.Plan }).(pulumi.StringPtrOutput)
}
// The description of the disk(s) on the managed database.
func (o DatabaseReadReplicaOutput) PlanDisk() pulumi.IntPtrOutput {
return o.ApplyT(func(v DatabaseReadReplica) *int { return v.PlanDisk }).(pulumi.IntPtrOutput)
}
// The amount of memory available on the managed database in MB.
func (o DatabaseReadReplicaOutput) PlanRam() pulumi.IntPtrOutput {
return o.ApplyT(func(v DatabaseReadReplica) *int { return v.PlanRam }).(pulumi.IntPtrOutput)
}
// The number of standby nodes available on the managed database.
func (o DatabaseReadReplicaOutput) PlanReplicas() pulumi.IntPtrOutput {
return o.ApplyT(func(v DatabaseReadReplica) *int { return v.PlanReplicas }).(pulumi.IntPtrOutput)
}
// The number of virtual CPUs available on the managed database.
func (o DatabaseReadReplicaOutput) PlanVcpus() pulumi.IntPtrOutput {
return o.ApplyT(func(v DatabaseReadReplica) *int { return v.PlanVcpus }).(pulumi.IntPtrOutput)
}
// The connection port for the managed database.
func (o DatabaseReadReplicaOutput) Port() pulumi.StringPtrOutput {
return o.ApplyT(func(v DatabaseReadReplica) *string { return v.Port }).(pulumi.StringPtrOutput)
}
// The public hostname assigned to the managed database (VPC-attached only).
func (o DatabaseReadReplicaOutput) PublicHost() pulumi.StringPtrOutput {
return o.ApplyT(func(v DatabaseReadReplica) *string { return v.PublicHost }).(pulumi.StringPtrOutput)
}
// The configuration value for the data eviction policy on the managed database (Redis engine types only - `noeviction`, `allkeys-lru`, `volatile-lru`, `allkeys-random`, `volatile-random`, `volatile-ttl`, `volatile-lfu`, `allkeys-lfu`).
func (o DatabaseReadReplicaOutput) RedisEvictionPolicy() pulumi.StringPtrOutput {
return o.ApplyT(func(v DatabaseReadReplica) *string { return v.RedisEvictionPolicy }).(pulumi.StringPtrOutput)
}
// The ID of the region that the managed database is to be created in. [See List Regions](https://www.vultr.com/api/#operation/list-regions)
func (o DatabaseReadReplicaOutput) Region() pulumi.StringOutput {
return o.ApplyT(func(v DatabaseReadReplica) string { return v.Region }).(pulumi.StringOutput)
}
// The current status of the managed database (poweroff, rebuilding, rebalancing, configuring, running).
func (o DatabaseReadReplicaOutput) Status() pulumi.StringPtrOutput {
return o.ApplyT(func(v DatabaseReadReplica) *string { return v.Status }).(pulumi.StringPtrOutput)
}
// The tag to assign to the managed database.
func (o DatabaseReadReplicaOutput) Tag() pulumi.StringPtrOutput {
return o.ApplyT(func(v DatabaseReadReplica) *string { return v.Tag }).(pulumi.StringPtrOutput)
}
// A list of allowed IP addresses for the managed database.
func (o DatabaseReadReplicaOutput) TrustedIps() pulumi.StringArrayOutput {
return o.ApplyT(func(v DatabaseReadReplica) []string { return v.TrustedIps }).(pulumi.StringArrayOutput)
}
// The primary admin user for the managed database.
func (o DatabaseReadReplicaOutput) User() pulumi.StringPtrOutput {
return o.ApplyT(func(v DatabaseReadReplica) *string { return v.User }).(pulumi.StringPtrOutput)
}
// The ID of the VPC Network to attach to the Managed Database.
func (o DatabaseReadReplicaOutput) VpcId() pulumi.StringPtrOutput {
return o.ApplyT(func(v DatabaseReadReplica) *string { return v.VpcId }).(pulumi.StringPtrOutput)
}
type DatabaseReadReplicaArrayOutput struct{ *pulumi.OutputState }
func (DatabaseReadReplicaArrayOutput) ElementType() reflect.Type {
return reflect.TypeOf((*[]DatabaseReadReplica)(nil)).Elem()
}
func (o DatabaseReadReplicaArrayOutput) ToDatabaseReadReplicaArrayOutput() DatabaseReadReplicaArrayOutput {
return o
}
func (o DatabaseReadReplicaArrayOutput) ToDatabaseReadReplicaArrayOutputWithContext(ctx context.Context) DatabaseReadReplicaArrayOutput {
return o
}
func (o DatabaseReadReplicaArrayOutput) Index(i pulumi.IntInput) DatabaseReadReplicaOutput {
return pulumi.All(o, i).ApplyT(func(vs []interface{}) DatabaseReadReplica {
return vs[0].([]DatabaseReadReplica)[vs[1].(int)]
}).(DatabaseReadReplicaOutput)
}
type DatabaseUserAccessControl struct {
// The list of command category rules for this managed database user.
RedisAclCategories []string `pulumi:"redisAclCategories"`
// The list of publish/subscribe channel patterns for this managed database user.
RedisAclChannels []string `pulumi:"redisAclChannels"`
// The list of individual command rules for this managed database user.
RedisAclCommands []string `pulumi:"redisAclCommands"`
// The list of access rules for this managed database user.
RedisAclKeys []string `pulumi:"redisAclKeys"`
}
// DatabaseUserAccessControlInput is an input type that accepts DatabaseUserAccessControlArgs and DatabaseUserAccessControlOutput values.
// You can construct a concrete instance of `DatabaseUserAccessControlInput` via:
//
// DatabaseUserAccessControlArgs{...}
type DatabaseUserAccessControlInput interface {
pulumi.Input
ToDatabaseUserAccessControlOutput() DatabaseUserAccessControlOutput
ToDatabaseUserAccessControlOutputWithContext(context.Context) DatabaseUserAccessControlOutput
}
type DatabaseUserAccessControlArgs struct {
// The list of command category rules for this managed database user.
RedisAclCategories pulumi.StringArrayInput `pulumi:"redisAclCategories"`
// The list of publish/subscribe channel patterns for this managed database user.
RedisAclChannels pulumi.StringArrayInput `pulumi:"redisAclChannels"`
// The list of individual command rules for this managed database user.
RedisAclCommands pulumi.StringArrayInput `pulumi:"redisAclCommands"`
// The list of access rules for this managed database user.
RedisAclKeys pulumi.StringArrayInput `pulumi:"redisAclKeys"`
}
func (DatabaseUserAccessControlArgs) ElementType() reflect.Type {
return reflect.TypeOf((*DatabaseUserAccessControl)(nil)).Elem()
}
func (i DatabaseUserAccessControlArgs) ToDatabaseUserAccessControlOutput() DatabaseUserAccessControlOutput {
return i.ToDatabaseUserAccessControlOutputWithContext(context.Background())
}
func (i DatabaseUserAccessControlArgs) ToDatabaseUserAccessControlOutputWithContext(ctx context.Context) DatabaseUserAccessControlOutput {
return pulumi.ToOutputWithContext(ctx, i).(DatabaseUserAccessControlOutput)
}
func (i DatabaseUserAccessControlArgs) ToDatabaseUserAccessControlPtrOutput() DatabaseUserAccessControlPtrOutput {
return i.ToDatabaseUserAccessControlPtrOutputWithContext(context.Background())
}
func (i DatabaseUserAccessControlArgs) ToDatabaseUserAccessControlPtrOutputWithContext(ctx context.Context) DatabaseUserAccessControlPtrOutput {
return pulumi.ToOutputWithContext(ctx, i).(DatabaseUserAccessControlOutput).ToDatabaseUserAccessControlPtrOutputWithContext(ctx)
}
// DatabaseUserAccessControlPtrInput is an input type that accepts DatabaseUserAccessControlArgs, DatabaseUserAccessControlPtr and DatabaseUserAccessControlPtrOutput values.
// You can construct a concrete instance of `DatabaseUserAccessControlPtrInput` via:
//
// DatabaseUserAccessControlArgs{...}
//
// or:
//
// nil
type DatabaseUserAccessControlPtrInput interface {
pulumi.Input
ToDatabaseUserAccessControlPtrOutput() DatabaseUserAccessControlPtrOutput
ToDatabaseUserAccessControlPtrOutputWithContext(context.Context) DatabaseUserAccessControlPtrOutput
}
type databaseUserAccessControlPtrType DatabaseUserAccessControlArgs
func DatabaseUserAccessControlPtr(v *DatabaseUserAccessControlArgs) DatabaseUserAccessControlPtrInput {
return (*databaseUserAccessControlPtrType)(v)
}
func (*databaseUserAccessControlPtrType) ElementType() reflect.Type {
return reflect.TypeOf((**DatabaseUserAccessControl)(nil)).Elem()
}
func (i *databaseUserAccessControlPtrType) ToDatabaseUserAccessControlPtrOutput() DatabaseUserAccessControlPtrOutput {
return i.ToDatabaseUserAccessControlPtrOutputWithContext(context.Background())
}
func (i *databaseUserAccessControlPtrType) ToDatabaseUserAccessControlPtrOutputWithContext(ctx context.Context) DatabaseUserAccessControlPtrOutput {
return pulumi.ToOutputWithContext(ctx, i).(DatabaseUserAccessControlPtrOutput)
}
type DatabaseUserAccessControlOutput struct{ *pulumi.OutputState }
func (DatabaseUserAccessControlOutput) ElementType() reflect.Type {
return reflect.TypeOf((*DatabaseUserAccessControl)(nil)).Elem()
}
func (o DatabaseUserAccessControlOutput) ToDatabaseUserAccessControlOutput() DatabaseUserAccessControlOutput {
return o
}
func (o DatabaseUserAccessControlOutput) ToDatabaseUserAccessControlOutputWithContext(ctx context.Context) DatabaseUserAccessControlOutput {
return o
}
func (o DatabaseUserAccessControlOutput) ToDatabaseUserAccessControlPtrOutput() DatabaseUserAccessControlPtrOutput {
return o.ToDatabaseUserAccessControlPtrOutputWithContext(context.Background())
}
func (o DatabaseUserAccessControlOutput) ToDatabaseUserAccessControlPtrOutputWithContext(ctx context.Context) DatabaseUserAccessControlPtrOutput {
return o.ApplyTWithContext(ctx, func(_ context.Context, v DatabaseUserAccessControl) *DatabaseUserAccessControl {
return &v
}).(DatabaseUserAccessControlPtrOutput)
}
// The list of command category rules for this managed database user.
func (o DatabaseUserAccessControlOutput) RedisAclCategories() pulumi.StringArrayOutput {
return o.ApplyT(func(v DatabaseUserAccessControl) []string { return v.RedisAclCategories }).(pulumi.StringArrayOutput)
}
// The list of publish/subscribe channel patterns for this managed database user.
func (o DatabaseUserAccessControlOutput) RedisAclChannels() pulumi.StringArrayOutput {
return o.ApplyT(func(v DatabaseUserAccessControl) []string { return v.RedisAclChannels }).(pulumi.StringArrayOutput)
}
// The list of individual command rules for this managed database user.
func (o DatabaseUserAccessControlOutput) RedisAclCommands() pulumi.StringArrayOutput {
return o.ApplyT(func(v DatabaseUserAccessControl) []string { return v.RedisAclCommands }).(pulumi.StringArrayOutput)
}
// The list of access rules for this managed database user.
func (o DatabaseUserAccessControlOutput) RedisAclKeys() pulumi.StringArrayOutput {
return o.ApplyT(func(v DatabaseUserAccessControl) []string { return v.RedisAclKeys }).(pulumi.StringArrayOutput)
}
type DatabaseUserAccessControlPtrOutput struct{ *pulumi.OutputState }
func (DatabaseUserAccessControlPtrOutput) ElementType() reflect.Type {
return reflect.TypeOf((**DatabaseUserAccessControl)(nil)).Elem()
}
func (o DatabaseUserAccessControlPtrOutput) ToDatabaseUserAccessControlPtrOutput() DatabaseUserAccessControlPtrOutput {
return o
}
func (o DatabaseUserAccessControlPtrOutput) ToDatabaseUserAccessControlPtrOutputWithContext(ctx context.Context) DatabaseUserAccessControlPtrOutput {
return o
}
func (o DatabaseUserAccessControlPtrOutput) Elem() DatabaseUserAccessControlOutput {
return o.ApplyT(func(v *DatabaseUserAccessControl) DatabaseUserAccessControl {
if v != nil {
return *v
}
var ret DatabaseUserAccessControl
return ret
}).(DatabaseUserAccessControlOutput)
}
// The list of command category rules for this managed database user.
func (o DatabaseUserAccessControlPtrOutput) RedisAclCategories() pulumi.StringArrayOutput {
return o.ApplyT(func(v *DatabaseUserAccessControl) []string {
if v == nil {
return nil
}
return v.RedisAclCategories
}).(pulumi.StringArrayOutput)
}
// The list of publish/subscribe channel patterns for this managed database user.
func (o DatabaseUserAccessControlPtrOutput) RedisAclChannels() pulumi.StringArrayOutput {
return o.ApplyT(func(v *DatabaseUserAccessControl) []string {
if v == nil {
return nil
}
return v.RedisAclChannels
}).(pulumi.StringArrayOutput)
}
// The list of individual command rules for this managed database user.
func (o DatabaseUserAccessControlPtrOutput) RedisAclCommands() pulumi.StringArrayOutput {
return o.ApplyT(func(v *DatabaseUserAccessControl) []string {
if v == nil {
return nil
}
return v.RedisAclCommands
}).(pulumi.StringArrayOutput)
}
// The list of access rules for this managed database user.
func (o DatabaseUserAccessControlPtrOutput) RedisAclKeys() pulumi.StringArrayOutput {
return o.ApplyT(func(v *DatabaseUserAccessControl) []string {
if v == nil {
return nil
}
return v.RedisAclKeys
}).(pulumi.StringArrayOutput)
}
type InstanceBackupsSchedule struct {
// Day of month to run. Use values between 1 and 28.
Dom *int `pulumi:"dom"`
// Day of week to run. `1 = Sunday`, `2 = Monday`, `3 = Tuesday`, `4 = Wednesday`, `5 = Thursday`, `6 = Friday`, `7 = Saturday`
Dow *int `pulumi:"dow"`
// Hour of day to run in UTC.
Hour *int `pulumi:"hour"`
// Type of backup schedule Possible values are `daily`, `weekly`, `monthly`, `dailyAltEven`, or `dailyAltOdd`.
Type string `pulumi:"type"`
}
// InstanceBackupsScheduleInput is an input type that accepts InstanceBackupsScheduleArgs and InstanceBackupsScheduleOutput values.
// You can construct a concrete instance of `InstanceBackupsScheduleInput` via:
//
// InstanceBackupsScheduleArgs{...}
type InstanceBackupsScheduleInput interface {
pulumi.Input
ToInstanceBackupsScheduleOutput() InstanceBackupsScheduleOutput
ToInstanceBackupsScheduleOutputWithContext(context.Context) InstanceBackupsScheduleOutput
}
type InstanceBackupsScheduleArgs struct {
// Day of month to run. Use values between 1 and 28.
Dom pulumi.IntPtrInput `pulumi:"dom"`
// Day of week to run. `1 = Sunday`, `2 = Monday`, `3 = Tuesday`, `4 = Wednesday`, `5 = Thursday`, `6 = Friday`, `7 = Saturday`
Dow pulumi.IntPtrInput `pulumi:"dow"`
// Hour of day to run in UTC.
Hour pulumi.IntPtrInput `pulumi:"hour"`
// Type of backup schedule Possible values are `daily`, `weekly`, `monthly`, `dailyAltEven`, or `dailyAltOdd`.
Type pulumi.StringInput `pulumi:"type"`
}
func (InstanceBackupsScheduleArgs) ElementType() reflect.Type {
return reflect.TypeOf((*InstanceBackupsSchedule)(nil)).Elem()
}
func (i InstanceBackupsScheduleArgs) ToInstanceBackupsScheduleOutput() InstanceBackupsScheduleOutput {
return i.ToInstanceBackupsScheduleOutputWithContext(context.Background())
}
func (i InstanceBackupsScheduleArgs) ToInstanceBackupsScheduleOutputWithContext(ctx context.Context) InstanceBackupsScheduleOutput {
return pulumi.ToOutputWithContext(ctx, i).(InstanceBackupsScheduleOutput)
}
func (i InstanceBackupsScheduleArgs) ToInstanceBackupsSchedulePtrOutput() InstanceBackupsSchedulePtrOutput {
return i.ToInstanceBackupsSchedulePtrOutputWithContext(context.Background())
}
func (i InstanceBackupsScheduleArgs) ToInstanceBackupsSchedulePtrOutputWithContext(ctx context.Context) InstanceBackupsSchedulePtrOutput {
return pulumi.ToOutputWithContext(ctx, i).(InstanceBackupsScheduleOutput).ToInstanceBackupsSchedulePtrOutputWithContext(ctx)
}
// InstanceBackupsSchedulePtrInput is an input type that accepts InstanceBackupsScheduleArgs, InstanceBackupsSchedulePtr and InstanceBackupsSchedulePtrOutput values.
// You can construct a concrete instance of `InstanceBackupsSchedulePtrInput` via:
//
// InstanceBackupsScheduleArgs{...}
//
// or:
//
// nil
type InstanceBackupsSchedulePtrInput interface {
pulumi.Input
ToInstanceBackupsSchedulePtrOutput() InstanceBackupsSchedulePtrOutput
ToInstanceBackupsSchedulePtrOutputWithContext(context.Context) InstanceBackupsSchedulePtrOutput
}
type instanceBackupsSchedulePtrType InstanceBackupsScheduleArgs
func InstanceBackupsSchedulePtr(v *InstanceBackupsScheduleArgs) InstanceBackupsSchedulePtrInput {
return (*instanceBackupsSchedulePtrType)(v)
}
func (*instanceBackupsSchedulePtrType) ElementType() reflect.Type {
return reflect.TypeOf((**InstanceBackupsSchedule)(nil)).Elem()
}
func (i *instanceBackupsSchedulePtrType) ToInstanceBackupsSchedulePtrOutput() InstanceBackupsSchedulePtrOutput {
return i.ToInstanceBackupsSchedulePtrOutputWithContext(context.Background())
}
func (i *instanceBackupsSchedulePtrType) ToInstanceBackupsSchedulePtrOutputWithContext(ctx context.Context) InstanceBackupsSchedulePtrOutput {
return pulumi.ToOutputWithContext(ctx, i).(InstanceBackupsSchedulePtrOutput)
}
type InstanceBackupsScheduleOutput struct{ *pulumi.OutputState }
func (InstanceBackupsScheduleOutput) ElementType() reflect.Type {
return reflect.TypeOf((*InstanceBackupsSchedule)(nil)).Elem()
}
func (o InstanceBackupsScheduleOutput) ToInstanceBackupsScheduleOutput() InstanceBackupsScheduleOutput {
return o
}
func (o InstanceBackupsScheduleOutput) ToInstanceBackupsScheduleOutputWithContext(ctx context.Context) InstanceBackupsScheduleOutput {
return o
}
func (o InstanceBackupsScheduleOutput) ToInstanceBackupsSchedulePtrOutput() InstanceBackupsSchedulePtrOutput {
return o.ToInstanceBackupsSchedulePtrOutputWithContext(context.Background())
}
func (o InstanceBackupsScheduleOutput) ToInstanceBackupsSchedulePtrOutputWithContext(ctx context.Context) InstanceBackupsSchedulePtrOutput {
return o.ApplyTWithContext(ctx, func(_ context.Context, v InstanceBackupsSchedule) *InstanceBackupsSchedule {
return &v
}).(InstanceBackupsSchedulePtrOutput)
}
// Day of month to run. Use values between 1 and 28.
func (o InstanceBackupsScheduleOutput) Dom() pulumi.IntPtrOutput {
return o.ApplyT(func(v InstanceBackupsSchedule) *int { return v.Dom }).(pulumi.IntPtrOutput)
}
// Day of week to run. `1 = Sunday`, `2 = Monday`, `3 = Tuesday`, `4 = Wednesday`, `5 = Thursday`, `6 = Friday`, `7 = Saturday`
func (o InstanceBackupsScheduleOutput) Dow() pulumi.IntPtrOutput {
return o.ApplyT(func(v InstanceBackupsSchedule) *int { return v.Dow }).(pulumi.IntPtrOutput)
}
// Hour of day to run in UTC.
func (o InstanceBackupsScheduleOutput) Hour() pulumi.IntPtrOutput {
return o.ApplyT(func(v InstanceBackupsSchedule) *int { return v.Hour }).(pulumi.IntPtrOutput)
}
// Type of backup schedule Possible values are `daily`, `weekly`, `monthly`, `dailyAltEven`, or `dailyAltOdd`.
func (o InstanceBackupsScheduleOutput) Type() pulumi.StringOutput {
return o.ApplyT(func(v InstanceBackupsSchedule) string { return v.Type }).(pulumi.StringOutput)
}
type InstanceBackupsSchedulePtrOutput struct{ *pulumi.OutputState }
func (InstanceBackupsSchedulePtrOutput) ElementType() reflect.Type {
return reflect.TypeOf((**InstanceBackupsSchedule)(nil)).Elem()
}
func (o InstanceBackupsSchedulePtrOutput) ToInstanceBackupsSchedulePtrOutput() InstanceBackupsSchedulePtrOutput {
return o
}
func (o InstanceBackupsSchedulePtrOutput) ToInstanceBackupsSchedulePtrOutputWithContext(ctx context.Context) InstanceBackupsSchedulePtrOutput {
return o
}
func (o InstanceBackupsSchedulePtrOutput) Elem() InstanceBackupsScheduleOutput {
return o.ApplyT(func(v *InstanceBackupsSchedule) InstanceBackupsSchedule {
if v != nil {
return *v
}
var ret InstanceBackupsSchedule
return ret
}).(InstanceBackupsScheduleOutput)
}
// Day of month to run. Use values between 1 and 28.
func (o InstanceBackupsSchedulePtrOutput) Dom() pulumi.IntPtrOutput {
return o.ApplyT(func(v *InstanceBackupsSchedule) *int {
if v == nil {
return nil
}
return v.Dom
}).(pulumi.IntPtrOutput)
}
// Day of week to run. `1 = Sunday`, `2 = Monday`, `3 = Tuesday`, `4 = Wednesday`, `5 = Thursday`, `6 = Friday`, `7 = Saturday`
func (o InstanceBackupsSchedulePtrOutput) Dow() pulumi.IntPtrOutput {
return o.ApplyT(func(v *InstanceBackupsSchedule) *int {
if v == nil {
return nil
}
return v.Dow
}).(pulumi.IntPtrOutput)
}
// Hour of day to run in UTC.
func (o InstanceBackupsSchedulePtrOutput) Hour() pulumi.IntPtrOutput {
return o.ApplyT(func(v *InstanceBackupsSchedule) *int {
if v == nil {
return nil
}
return v.Hour
}).(pulumi.IntPtrOutput)
}
// Type of backup schedule Possible values are `daily`, `weekly`, `monthly`, `dailyAltEven`, or `dailyAltOdd`.
func (o InstanceBackupsSchedulePtrOutput) Type() pulumi.StringPtrOutput {
return o.ApplyT(func(v *InstanceBackupsSchedule) *string {
if v == nil {
return nil
}
return &v.Type
}).(pulumi.StringPtrOutput)
}
type KubernetesNodePoolsType struct {
// Enable the auto scaler for the default node pool.
AutoScaler *bool `pulumi:"autoScaler"`
// Date node was created.
DateCreated *string `pulumi:"dateCreated"`
// Date of node pool updates.
DateUpdated *string `pulumi:"dateUpdated"`
// ID of node.
Id *string `pulumi:"id"`
// The label to be used as a prefix for nodes in this node pool.
Label string `pulumi:"label"`
// The maximum number of nodes to use with the auto scaler.
MaxNodes *int `pulumi:"maxNodes"`
// The minimum number of nodes to use with the auto scaler.
MinNodes *int `pulumi:"minNodes"`
// The number of nodes in this node pool.
NodeQuantity int `pulumi:"nodeQuantity"`
// Array that contains information about nodes within this node pool.
Nodes []KubernetesNodePoolsNode `pulumi:"nodes"`
// The plan to be used in this node pool. [See Plans List](https://www.vultr.com/api/#operation/list-plans) Note the minimum plan requirements must have at least 1 core and 2 gbs of memory.
Plan string `pulumi:"plan"`
// Status of node.
Status *string `pulumi:"status"`
// Tag for node pool.
Tag *string `pulumi:"tag"`
}
// KubernetesNodePoolsTypeInput is an input type that accepts KubernetesNodePoolsTypeArgs and KubernetesNodePoolsTypeOutput values.
// You can construct a concrete instance of `KubernetesNodePoolsTypeInput` via:
//
// KubernetesNodePoolsTypeArgs{...}
type KubernetesNodePoolsTypeInput interface {
pulumi.Input
ToKubernetesNodePoolsTypeOutput() KubernetesNodePoolsTypeOutput
ToKubernetesNodePoolsTypeOutputWithContext(context.Context) KubernetesNodePoolsTypeOutput
}
type KubernetesNodePoolsTypeArgs struct {
// Enable the auto scaler for the default node pool.
AutoScaler pulumi.BoolPtrInput `pulumi:"autoScaler"`
// Date node was created.
DateCreated pulumi.StringPtrInput `pulumi:"dateCreated"`
// Date of node pool updates.
DateUpdated pulumi.StringPtrInput `pulumi:"dateUpdated"`
// ID of node.
Id pulumi.StringPtrInput `pulumi:"id"`
// The label to be used as a prefix for nodes in this node pool.
Label pulumi.StringInput `pulumi:"label"`
// The maximum number of nodes to use with the auto scaler.
MaxNodes pulumi.IntPtrInput `pulumi:"maxNodes"`
// The minimum number of nodes to use with the auto scaler.
MinNodes pulumi.IntPtrInput `pulumi:"minNodes"`
// The number of nodes in this node pool.
NodeQuantity pulumi.IntInput `pulumi:"nodeQuantity"`
// Array that contains information about nodes within this node pool.
Nodes KubernetesNodePoolsNodeArrayInput `pulumi:"nodes"`
// The plan to be used in this node pool. [See Plans List](https://www.vultr.com/api/#operation/list-plans) Note the minimum plan requirements must have at least 1 core and 2 gbs of memory.
Plan pulumi.StringInput `pulumi:"plan"`
// Status of node.
Status pulumi.StringPtrInput `pulumi:"status"`
// Tag for node pool.
Tag pulumi.StringPtrInput `pulumi:"tag"`
}
func (KubernetesNodePoolsTypeArgs) ElementType() reflect.Type {
return reflect.TypeOf((*KubernetesNodePoolsType)(nil)).Elem()
}
func (i KubernetesNodePoolsTypeArgs) ToKubernetesNodePoolsTypeOutput() KubernetesNodePoolsTypeOutput {
return i.ToKubernetesNodePoolsTypeOutputWithContext(context.Background())
}
func (i KubernetesNodePoolsTypeArgs) ToKubernetesNodePoolsTypeOutputWithContext(ctx context.Context) KubernetesNodePoolsTypeOutput {
return pulumi.ToOutputWithContext(ctx, i).(KubernetesNodePoolsTypeOutput)
}
func (i KubernetesNodePoolsTypeArgs) ToKubernetesNodePoolsTypePtrOutput() KubernetesNodePoolsTypePtrOutput {
return i.ToKubernetesNodePoolsTypePtrOutputWithContext(context.Background())
}
func (i KubernetesNodePoolsTypeArgs) ToKubernetesNodePoolsTypePtrOutputWithContext(ctx context.Context) KubernetesNodePoolsTypePtrOutput {
return pulumi.ToOutputWithContext(ctx, i).(KubernetesNodePoolsTypeOutput).ToKubernetesNodePoolsTypePtrOutputWithContext(ctx)
}
// KubernetesNodePoolsTypePtrInput is an input type that accepts KubernetesNodePoolsTypeArgs, KubernetesNodePoolsTypePtr and KubernetesNodePoolsTypePtrOutput values.
// You can construct a concrete instance of `KubernetesNodePoolsTypePtrInput` via:
//
// KubernetesNodePoolsTypeArgs{...}
//
// or:
//
// nil
type KubernetesNodePoolsTypePtrInput interface {
pulumi.Input
ToKubernetesNodePoolsTypePtrOutput() KubernetesNodePoolsTypePtrOutput
ToKubernetesNodePoolsTypePtrOutputWithContext(context.Context) KubernetesNodePoolsTypePtrOutput
}
type kubernetesNodePoolsTypePtrType KubernetesNodePoolsTypeArgs
func KubernetesNodePoolsTypePtr(v *KubernetesNodePoolsTypeArgs) KubernetesNodePoolsTypePtrInput {
return (*kubernetesNodePoolsTypePtrType)(v)
}
func (*kubernetesNodePoolsTypePtrType) ElementType() reflect.Type {
return reflect.TypeOf((**KubernetesNodePoolsType)(nil)).Elem()
}
func (i *kubernetesNodePoolsTypePtrType) ToKubernetesNodePoolsTypePtrOutput() KubernetesNodePoolsTypePtrOutput {
return i.ToKubernetesNodePoolsTypePtrOutputWithContext(context.Background())
}
func (i *kubernetesNodePoolsTypePtrType) ToKubernetesNodePoolsTypePtrOutputWithContext(ctx context.Context) KubernetesNodePoolsTypePtrOutput {
return pulumi.ToOutputWithContext(ctx, i).(KubernetesNodePoolsTypePtrOutput)
}
type KubernetesNodePoolsTypeOutput struct{ *pulumi.OutputState }
func (KubernetesNodePoolsTypeOutput) ElementType() reflect.Type {
return reflect.TypeOf((*KubernetesNodePoolsType)(nil)).Elem()
}
func (o KubernetesNodePoolsTypeOutput) ToKubernetesNodePoolsTypeOutput() KubernetesNodePoolsTypeOutput {
return o
}
func (o KubernetesNodePoolsTypeOutput) ToKubernetesNodePoolsTypeOutputWithContext(ctx context.Context) KubernetesNodePoolsTypeOutput {
return o
}
func (o KubernetesNodePoolsTypeOutput) ToKubernetesNodePoolsTypePtrOutput() KubernetesNodePoolsTypePtrOutput {
return o.ToKubernetesNodePoolsTypePtrOutputWithContext(context.Background())
}
func (o KubernetesNodePoolsTypeOutput) ToKubernetesNodePoolsTypePtrOutputWithContext(ctx context.Context) KubernetesNodePoolsTypePtrOutput {
return o.ApplyTWithContext(ctx, func(_ context.Context, v KubernetesNodePoolsType) *KubernetesNodePoolsType {
return &v
}).(KubernetesNodePoolsTypePtrOutput)
}
// Enable the auto scaler for the default node pool.
func (o KubernetesNodePoolsTypeOutput) AutoScaler() pulumi.BoolPtrOutput {
return o.ApplyT(func(v KubernetesNodePoolsType) *bool { return v.AutoScaler }).(pulumi.BoolPtrOutput)
}
// Date node was created.
func (o KubernetesNodePoolsTypeOutput) DateCreated() pulumi.StringPtrOutput {
return o.ApplyT(func(v KubernetesNodePoolsType) *string { return v.DateCreated }).(pulumi.StringPtrOutput)
}
// Date of node pool updates.
func (o KubernetesNodePoolsTypeOutput) DateUpdated() pulumi.StringPtrOutput {
return o.ApplyT(func(v KubernetesNodePoolsType) *string { return v.DateUpdated }).(pulumi.StringPtrOutput)
}
// ID of node.
func (o KubernetesNodePoolsTypeOutput) Id() pulumi.StringPtrOutput {
return o.ApplyT(func(v KubernetesNodePoolsType) *string { return v.Id }).(pulumi.StringPtrOutput)
}
// The label to be used as a prefix for nodes in this node pool.
func (o KubernetesNodePoolsTypeOutput) Label() pulumi.StringOutput {
return o.ApplyT(func(v KubernetesNodePoolsType) string { return v.Label }).(pulumi.StringOutput)
}
// The maximum number of nodes to use with the auto scaler.
func (o KubernetesNodePoolsTypeOutput) MaxNodes() pulumi.IntPtrOutput {
return o.ApplyT(func(v KubernetesNodePoolsType) *int { return v.MaxNodes }).(pulumi.IntPtrOutput)
}
// The minimum number of nodes to use with the auto scaler.
func (o KubernetesNodePoolsTypeOutput) MinNodes() pulumi.IntPtrOutput {
return o.ApplyT(func(v KubernetesNodePoolsType) *int { return v.MinNodes }).(pulumi.IntPtrOutput)
}
// The number of nodes in this node pool.
func (o KubernetesNodePoolsTypeOutput) NodeQuantity() pulumi.IntOutput {
return o.ApplyT(func(v KubernetesNodePoolsType) int { return v.NodeQuantity }).(pulumi.IntOutput)
}
// Array that contains information about nodes within this node pool.
func (o KubernetesNodePoolsTypeOutput) Nodes() KubernetesNodePoolsNodeArrayOutput {
return o.ApplyT(func(v KubernetesNodePoolsType) []KubernetesNodePoolsNode { return v.Nodes }).(KubernetesNodePoolsNodeArrayOutput)
}
// The plan to be used in this node pool. [See Plans List](https://www.vultr.com/api/#operation/list-plans) Note the minimum plan requirements must have at least 1 core and 2 gbs of memory.
func (o KubernetesNodePoolsTypeOutput) Plan() pulumi.StringOutput {
return o.ApplyT(func(v KubernetesNodePoolsType) string { return v.Plan }).(pulumi.StringOutput)
}
// Status of node.
func (o KubernetesNodePoolsTypeOutput) Status() pulumi.StringPtrOutput {
return o.ApplyT(func(v KubernetesNodePoolsType) *string { return v.Status }).(pulumi.StringPtrOutput)
}
// Tag for node pool.
func (o KubernetesNodePoolsTypeOutput) Tag() pulumi.StringPtrOutput {
return o.ApplyT(func(v KubernetesNodePoolsType) *string { return v.Tag }).(pulumi.StringPtrOutput)
}
type KubernetesNodePoolsTypePtrOutput struct{ *pulumi.OutputState }
func (KubernetesNodePoolsTypePtrOutput) ElementType() reflect.Type {
return reflect.TypeOf((**KubernetesNodePoolsType)(nil)).Elem()
}
func (o KubernetesNodePoolsTypePtrOutput) ToKubernetesNodePoolsTypePtrOutput() KubernetesNodePoolsTypePtrOutput {
return o
}
func (o KubernetesNodePoolsTypePtrOutput) ToKubernetesNodePoolsTypePtrOutputWithContext(ctx context.Context) KubernetesNodePoolsTypePtrOutput {
return o
}
func (o KubernetesNodePoolsTypePtrOutput) Elem() KubernetesNodePoolsTypeOutput {
return o.ApplyT(func(v *KubernetesNodePoolsType) KubernetesNodePoolsType {
if v != nil {
return *v
}
var ret KubernetesNodePoolsType
return ret
}).(KubernetesNodePoolsTypeOutput)
}
// Enable the auto scaler for the default node pool.
func (o KubernetesNodePoolsTypePtrOutput) AutoScaler() pulumi.BoolPtrOutput {
return o.ApplyT(func(v *KubernetesNodePoolsType) *bool {
if v == nil {