/
pulumiTypes.go
3744 lines (3024 loc) · 180 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 rds
import (
"context"
"reflect"
"github.com/pulumi/pulumi-aws/sdk/v6/go/aws/internal"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
var _ = internal.GetEnvOrDefault
type ClusterMasterUserSecret struct {
// ARN for the KMS encryption key. When specifying `kmsKeyId`, `storageEncrypted` needs to be set to true.
KmsKeyId *string `pulumi:"kmsKeyId"`
// Amazon Resource Name (ARN) of the secret.
SecretArn *string `pulumi:"secretArn"`
// Status of the secret. Valid Values: `creating` | `active` | `rotating` | `impaired`.
SecretStatus *string `pulumi:"secretStatus"`
}
// ClusterMasterUserSecretInput is an input type that accepts ClusterMasterUserSecretArgs and ClusterMasterUserSecretOutput values.
// You can construct a concrete instance of `ClusterMasterUserSecretInput` via:
//
// ClusterMasterUserSecretArgs{...}
type ClusterMasterUserSecretInput interface {
pulumi.Input
ToClusterMasterUserSecretOutput() ClusterMasterUserSecretOutput
ToClusterMasterUserSecretOutputWithContext(context.Context) ClusterMasterUserSecretOutput
}
type ClusterMasterUserSecretArgs struct {
// ARN for the KMS encryption key. When specifying `kmsKeyId`, `storageEncrypted` needs to be set to true.
KmsKeyId pulumi.StringPtrInput `pulumi:"kmsKeyId"`
// Amazon Resource Name (ARN) of the secret.
SecretArn pulumi.StringPtrInput `pulumi:"secretArn"`
// Status of the secret. Valid Values: `creating` | `active` | `rotating` | `impaired`.
SecretStatus pulumi.StringPtrInput `pulumi:"secretStatus"`
}
func (ClusterMasterUserSecretArgs) ElementType() reflect.Type {
return reflect.TypeOf((*ClusterMasterUserSecret)(nil)).Elem()
}
func (i ClusterMasterUserSecretArgs) ToClusterMasterUserSecretOutput() ClusterMasterUserSecretOutput {
return i.ToClusterMasterUserSecretOutputWithContext(context.Background())
}
func (i ClusterMasterUserSecretArgs) ToClusterMasterUserSecretOutputWithContext(ctx context.Context) ClusterMasterUserSecretOutput {
return pulumi.ToOutputWithContext(ctx, i).(ClusterMasterUserSecretOutput)
}
// ClusterMasterUserSecretArrayInput is an input type that accepts ClusterMasterUserSecretArray and ClusterMasterUserSecretArrayOutput values.
// You can construct a concrete instance of `ClusterMasterUserSecretArrayInput` via:
//
// ClusterMasterUserSecretArray{ ClusterMasterUserSecretArgs{...} }
type ClusterMasterUserSecretArrayInput interface {
pulumi.Input
ToClusterMasterUserSecretArrayOutput() ClusterMasterUserSecretArrayOutput
ToClusterMasterUserSecretArrayOutputWithContext(context.Context) ClusterMasterUserSecretArrayOutput
}
type ClusterMasterUserSecretArray []ClusterMasterUserSecretInput
func (ClusterMasterUserSecretArray) ElementType() reflect.Type {
return reflect.TypeOf((*[]ClusterMasterUserSecret)(nil)).Elem()
}
func (i ClusterMasterUserSecretArray) ToClusterMasterUserSecretArrayOutput() ClusterMasterUserSecretArrayOutput {
return i.ToClusterMasterUserSecretArrayOutputWithContext(context.Background())
}
func (i ClusterMasterUserSecretArray) ToClusterMasterUserSecretArrayOutputWithContext(ctx context.Context) ClusterMasterUserSecretArrayOutput {
return pulumi.ToOutputWithContext(ctx, i).(ClusterMasterUserSecretArrayOutput)
}
type ClusterMasterUserSecretOutput struct{ *pulumi.OutputState }
func (ClusterMasterUserSecretOutput) ElementType() reflect.Type {
return reflect.TypeOf((*ClusterMasterUserSecret)(nil)).Elem()
}
func (o ClusterMasterUserSecretOutput) ToClusterMasterUserSecretOutput() ClusterMasterUserSecretOutput {
return o
}
func (o ClusterMasterUserSecretOutput) ToClusterMasterUserSecretOutputWithContext(ctx context.Context) ClusterMasterUserSecretOutput {
return o
}
// ARN for the KMS encryption key. When specifying `kmsKeyId`, `storageEncrypted` needs to be set to true.
func (o ClusterMasterUserSecretOutput) KmsKeyId() pulumi.StringPtrOutput {
return o.ApplyT(func(v ClusterMasterUserSecret) *string { return v.KmsKeyId }).(pulumi.StringPtrOutput)
}
// Amazon Resource Name (ARN) of the secret.
func (o ClusterMasterUserSecretOutput) SecretArn() pulumi.StringPtrOutput {
return o.ApplyT(func(v ClusterMasterUserSecret) *string { return v.SecretArn }).(pulumi.StringPtrOutput)
}
// Status of the secret. Valid Values: `creating` | `active` | `rotating` | `impaired`.
func (o ClusterMasterUserSecretOutput) SecretStatus() pulumi.StringPtrOutput {
return o.ApplyT(func(v ClusterMasterUserSecret) *string { return v.SecretStatus }).(pulumi.StringPtrOutput)
}
type ClusterMasterUserSecretArrayOutput struct{ *pulumi.OutputState }
func (ClusterMasterUserSecretArrayOutput) ElementType() reflect.Type {
return reflect.TypeOf((*[]ClusterMasterUserSecret)(nil)).Elem()
}
func (o ClusterMasterUserSecretArrayOutput) ToClusterMasterUserSecretArrayOutput() ClusterMasterUserSecretArrayOutput {
return o
}
func (o ClusterMasterUserSecretArrayOutput) ToClusterMasterUserSecretArrayOutputWithContext(ctx context.Context) ClusterMasterUserSecretArrayOutput {
return o
}
func (o ClusterMasterUserSecretArrayOutput) Index(i pulumi.IntInput) ClusterMasterUserSecretOutput {
return pulumi.All(o, i).ApplyT(func(vs []interface{}) ClusterMasterUserSecret {
return vs[0].([]ClusterMasterUserSecret)[vs[1].(int)]
}).(ClusterMasterUserSecretOutput)
}
type ClusterParameterGroupParameter struct {
// "immediate" (default), or "pending-reboot". Some
// engines can't apply some parameters without a reboot, and you will need to
// specify "pending-reboot" here.
ApplyMethod *string `pulumi:"applyMethod"`
// The name of the DB parameter.
Name string `pulumi:"name"`
// The value of the DB parameter.
Value string `pulumi:"value"`
}
// ClusterParameterGroupParameterInput is an input type that accepts ClusterParameterGroupParameterArgs and ClusterParameterGroupParameterOutput values.
// You can construct a concrete instance of `ClusterParameterGroupParameterInput` via:
//
// ClusterParameterGroupParameterArgs{...}
type ClusterParameterGroupParameterInput interface {
pulumi.Input
ToClusterParameterGroupParameterOutput() ClusterParameterGroupParameterOutput
ToClusterParameterGroupParameterOutputWithContext(context.Context) ClusterParameterGroupParameterOutput
}
type ClusterParameterGroupParameterArgs struct {
// "immediate" (default), or "pending-reboot". Some
// engines can't apply some parameters without a reboot, and you will need to
// specify "pending-reboot" here.
ApplyMethod pulumi.StringPtrInput `pulumi:"applyMethod"`
// The name of the DB parameter.
Name pulumi.StringInput `pulumi:"name"`
// The value of the DB parameter.
Value pulumi.StringInput `pulumi:"value"`
}
func (ClusterParameterGroupParameterArgs) ElementType() reflect.Type {
return reflect.TypeOf((*ClusterParameterGroupParameter)(nil)).Elem()
}
func (i ClusterParameterGroupParameterArgs) ToClusterParameterGroupParameterOutput() ClusterParameterGroupParameterOutput {
return i.ToClusterParameterGroupParameterOutputWithContext(context.Background())
}
func (i ClusterParameterGroupParameterArgs) ToClusterParameterGroupParameterOutputWithContext(ctx context.Context) ClusterParameterGroupParameterOutput {
return pulumi.ToOutputWithContext(ctx, i).(ClusterParameterGroupParameterOutput)
}
// ClusterParameterGroupParameterArrayInput is an input type that accepts ClusterParameterGroupParameterArray and ClusterParameterGroupParameterArrayOutput values.
// You can construct a concrete instance of `ClusterParameterGroupParameterArrayInput` via:
//
// ClusterParameterGroupParameterArray{ ClusterParameterGroupParameterArgs{...} }
type ClusterParameterGroupParameterArrayInput interface {
pulumi.Input
ToClusterParameterGroupParameterArrayOutput() ClusterParameterGroupParameterArrayOutput
ToClusterParameterGroupParameterArrayOutputWithContext(context.Context) ClusterParameterGroupParameterArrayOutput
}
type ClusterParameterGroupParameterArray []ClusterParameterGroupParameterInput
func (ClusterParameterGroupParameterArray) ElementType() reflect.Type {
return reflect.TypeOf((*[]ClusterParameterGroupParameter)(nil)).Elem()
}
func (i ClusterParameterGroupParameterArray) ToClusterParameterGroupParameterArrayOutput() ClusterParameterGroupParameterArrayOutput {
return i.ToClusterParameterGroupParameterArrayOutputWithContext(context.Background())
}
func (i ClusterParameterGroupParameterArray) ToClusterParameterGroupParameterArrayOutputWithContext(ctx context.Context) ClusterParameterGroupParameterArrayOutput {
return pulumi.ToOutputWithContext(ctx, i).(ClusterParameterGroupParameterArrayOutput)
}
type ClusterParameterGroupParameterOutput struct{ *pulumi.OutputState }
func (ClusterParameterGroupParameterOutput) ElementType() reflect.Type {
return reflect.TypeOf((*ClusterParameterGroupParameter)(nil)).Elem()
}
func (o ClusterParameterGroupParameterOutput) ToClusterParameterGroupParameterOutput() ClusterParameterGroupParameterOutput {
return o
}
func (o ClusterParameterGroupParameterOutput) ToClusterParameterGroupParameterOutputWithContext(ctx context.Context) ClusterParameterGroupParameterOutput {
return o
}
// "immediate" (default), or "pending-reboot". Some
// engines can't apply some parameters without a reboot, and you will need to
// specify "pending-reboot" here.
func (o ClusterParameterGroupParameterOutput) ApplyMethod() pulumi.StringPtrOutput {
return o.ApplyT(func(v ClusterParameterGroupParameter) *string { return v.ApplyMethod }).(pulumi.StringPtrOutput)
}
// The name of the DB parameter.
func (o ClusterParameterGroupParameterOutput) Name() pulumi.StringOutput {
return o.ApplyT(func(v ClusterParameterGroupParameter) string { return v.Name }).(pulumi.StringOutput)
}
// The value of the DB parameter.
func (o ClusterParameterGroupParameterOutput) Value() pulumi.StringOutput {
return o.ApplyT(func(v ClusterParameterGroupParameter) string { return v.Value }).(pulumi.StringOutput)
}
type ClusterParameterGroupParameterArrayOutput struct{ *pulumi.OutputState }
func (ClusterParameterGroupParameterArrayOutput) ElementType() reflect.Type {
return reflect.TypeOf((*[]ClusterParameterGroupParameter)(nil)).Elem()
}
func (o ClusterParameterGroupParameterArrayOutput) ToClusterParameterGroupParameterArrayOutput() ClusterParameterGroupParameterArrayOutput {
return o
}
func (o ClusterParameterGroupParameterArrayOutput) ToClusterParameterGroupParameterArrayOutputWithContext(ctx context.Context) ClusterParameterGroupParameterArrayOutput {
return o
}
func (o ClusterParameterGroupParameterArrayOutput) Index(i pulumi.IntInput) ClusterParameterGroupParameterOutput {
return pulumi.All(o, i).ApplyT(func(vs []interface{}) ClusterParameterGroupParameter {
return vs[0].([]ClusterParameterGroupParameter)[vs[1].(int)]
}).(ClusterParameterGroupParameterOutput)
}
type ClusterRestoreToPointInTime struct {
// Date and time in UTC format to restore the database cluster to. Conflicts with `useLatestRestorableTime`.
RestoreToTime *string `pulumi:"restoreToTime"`
// Type of restore to be performed.
// Valid options are `full-copy` (default) and `copy-on-write`.
RestoreType *string `pulumi:"restoreType"`
// Identifier of the source database cluster from which to restore. When restoring from a cluster in another AWS account, the identifier is the ARN of that cluster.
SourceClusterIdentifier string `pulumi:"sourceClusterIdentifier"`
// Set to true to restore the database cluster to the latest restorable backup time. Defaults to false. Conflicts with `restoreToTime`.
UseLatestRestorableTime *bool `pulumi:"useLatestRestorableTime"`
}
// ClusterRestoreToPointInTimeInput is an input type that accepts ClusterRestoreToPointInTimeArgs and ClusterRestoreToPointInTimeOutput values.
// You can construct a concrete instance of `ClusterRestoreToPointInTimeInput` via:
//
// ClusterRestoreToPointInTimeArgs{...}
type ClusterRestoreToPointInTimeInput interface {
pulumi.Input
ToClusterRestoreToPointInTimeOutput() ClusterRestoreToPointInTimeOutput
ToClusterRestoreToPointInTimeOutputWithContext(context.Context) ClusterRestoreToPointInTimeOutput
}
type ClusterRestoreToPointInTimeArgs struct {
// Date and time in UTC format to restore the database cluster to. Conflicts with `useLatestRestorableTime`.
RestoreToTime pulumi.StringPtrInput `pulumi:"restoreToTime"`
// Type of restore to be performed.
// Valid options are `full-copy` (default) and `copy-on-write`.
RestoreType pulumi.StringPtrInput `pulumi:"restoreType"`
// Identifier of the source database cluster from which to restore. When restoring from a cluster in another AWS account, the identifier is the ARN of that cluster.
SourceClusterIdentifier pulumi.StringInput `pulumi:"sourceClusterIdentifier"`
// Set to true to restore the database cluster to the latest restorable backup time. Defaults to false. Conflicts with `restoreToTime`.
UseLatestRestorableTime pulumi.BoolPtrInput `pulumi:"useLatestRestorableTime"`
}
func (ClusterRestoreToPointInTimeArgs) ElementType() reflect.Type {
return reflect.TypeOf((*ClusterRestoreToPointInTime)(nil)).Elem()
}
func (i ClusterRestoreToPointInTimeArgs) ToClusterRestoreToPointInTimeOutput() ClusterRestoreToPointInTimeOutput {
return i.ToClusterRestoreToPointInTimeOutputWithContext(context.Background())
}
func (i ClusterRestoreToPointInTimeArgs) ToClusterRestoreToPointInTimeOutputWithContext(ctx context.Context) ClusterRestoreToPointInTimeOutput {
return pulumi.ToOutputWithContext(ctx, i).(ClusterRestoreToPointInTimeOutput)
}
func (i ClusterRestoreToPointInTimeArgs) ToClusterRestoreToPointInTimePtrOutput() ClusterRestoreToPointInTimePtrOutput {
return i.ToClusterRestoreToPointInTimePtrOutputWithContext(context.Background())
}
func (i ClusterRestoreToPointInTimeArgs) ToClusterRestoreToPointInTimePtrOutputWithContext(ctx context.Context) ClusterRestoreToPointInTimePtrOutput {
return pulumi.ToOutputWithContext(ctx, i).(ClusterRestoreToPointInTimeOutput).ToClusterRestoreToPointInTimePtrOutputWithContext(ctx)
}
// ClusterRestoreToPointInTimePtrInput is an input type that accepts ClusterRestoreToPointInTimeArgs, ClusterRestoreToPointInTimePtr and ClusterRestoreToPointInTimePtrOutput values.
// You can construct a concrete instance of `ClusterRestoreToPointInTimePtrInput` via:
//
// ClusterRestoreToPointInTimeArgs{...}
//
// or:
//
// nil
type ClusterRestoreToPointInTimePtrInput interface {
pulumi.Input
ToClusterRestoreToPointInTimePtrOutput() ClusterRestoreToPointInTimePtrOutput
ToClusterRestoreToPointInTimePtrOutputWithContext(context.Context) ClusterRestoreToPointInTimePtrOutput
}
type clusterRestoreToPointInTimePtrType ClusterRestoreToPointInTimeArgs
func ClusterRestoreToPointInTimePtr(v *ClusterRestoreToPointInTimeArgs) ClusterRestoreToPointInTimePtrInput {
return (*clusterRestoreToPointInTimePtrType)(v)
}
func (*clusterRestoreToPointInTimePtrType) ElementType() reflect.Type {
return reflect.TypeOf((**ClusterRestoreToPointInTime)(nil)).Elem()
}
func (i *clusterRestoreToPointInTimePtrType) ToClusterRestoreToPointInTimePtrOutput() ClusterRestoreToPointInTimePtrOutput {
return i.ToClusterRestoreToPointInTimePtrOutputWithContext(context.Background())
}
func (i *clusterRestoreToPointInTimePtrType) ToClusterRestoreToPointInTimePtrOutputWithContext(ctx context.Context) ClusterRestoreToPointInTimePtrOutput {
return pulumi.ToOutputWithContext(ctx, i).(ClusterRestoreToPointInTimePtrOutput)
}
type ClusterRestoreToPointInTimeOutput struct{ *pulumi.OutputState }
func (ClusterRestoreToPointInTimeOutput) ElementType() reflect.Type {
return reflect.TypeOf((*ClusterRestoreToPointInTime)(nil)).Elem()
}
func (o ClusterRestoreToPointInTimeOutput) ToClusterRestoreToPointInTimeOutput() ClusterRestoreToPointInTimeOutput {
return o
}
func (o ClusterRestoreToPointInTimeOutput) ToClusterRestoreToPointInTimeOutputWithContext(ctx context.Context) ClusterRestoreToPointInTimeOutput {
return o
}
func (o ClusterRestoreToPointInTimeOutput) ToClusterRestoreToPointInTimePtrOutput() ClusterRestoreToPointInTimePtrOutput {
return o.ToClusterRestoreToPointInTimePtrOutputWithContext(context.Background())
}
func (o ClusterRestoreToPointInTimeOutput) ToClusterRestoreToPointInTimePtrOutputWithContext(ctx context.Context) ClusterRestoreToPointInTimePtrOutput {
return o.ApplyTWithContext(ctx, func(_ context.Context, v ClusterRestoreToPointInTime) *ClusterRestoreToPointInTime {
return &v
}).(ClusterRestoreToPointInTimePtrOutput)
}
// Date and time in UTC format to restore the database cluster to. Conflicts with `useLatestRestorableTime`.
func (o ClusterRestoreToPointInTimeOutput) RestoreToTime() pulumi.StringPtrOutput {
return o.ApplyT(func(v ClusterRestoreToPointInTime) *string { return v.RestoreToTime }).(pulumi.StringPtrOutput)
}
// Type of restore to be performed.
// Valid options are `full-copy` (default) and `copy-on-write`.
func (o ClusterRestoreToPointInTimeOutput) RestoreType() pulumi.StringPtrOutput {
return o.ApplyT(func(v ClusterRestoreToPointInTime) *string { return v.RestoreType }).(pulumi.StringPtrOutput)
}
// Identifier of the source database cluster from which to restore. When restoring from a cluster in another AWS account, the identifier is the ARN of that cluster.
func (o ClusterRestoreToPointInTimeOutput) SourceClusterIdentifier() pulumi.StringOutput {
return o.ApplyT(func(v ClusterRestoreToPointInTime) string { return v.SourceClusterIdentifier }).(pulumi.StringOutput)
}
// Set to true to restore the database cluster to the latest restorable backup time. Defaults to false. Conflicts with `restoreToTime`.
func (o ClusterRestoreToPointInTimeOutput) UseLatestRestorableTime() pulumi.BoolPtrOutput {
return o.ApplyT(func(v ClusterRestoreToPointInTime) *bool { return v.UseLatestRestorableTime }).(pulumi.BoolPtrOutput)
}
type ClusterRestoreToPointInTimePtrOutput struct{ *pulumi.OutputState }
func (ClusterRestoreToPointInTimePtrOutput) ElementType() reflect.Type {
return reflect.TypeOf((**ClusterRestoreToPointInTime)(nil)).Elem()
}
func (o ClusterRestoreToPointInTimePtrOutput) ToClusterRestoreToPointInTimePtrOutput() ClusterRestoreToPointInTimePtrOutput {
return o
}
func (o ClusterRestoreToPointInTimePtrOutput) ToClusterRestoreToPointInTimePtrOutputWithContext(ctx context.Context) ClusterRestoreToPointInTimePtrOutput {
return o
}
func (o ClusterRestoreToPointInTimePtrOutput) Elem() ClusterRestoreToPointInTimeOutput {
return o.ApplyT(func(v *ClusterRestoreToPointInTime) ClusterRestoreToPointInTime {
if v != nil {
return *v
}
var ret ClusterRestoreToPointInTime
return ret
}).(ClusterRestoreToPointInTimeOutput)
}
// Date and time in UTC format to restore the database cluster to. Conflicts with `useLatestRestorableTime`.
func (o ClusterRestoreToPointInTimePtrOutput) RestoreToTime() pulumi.StringPtrOutput {
return o.ApplyT(func(v *ClusterRestoreToPointInTime) *string {
if v == nil {
return nil
}
return v.RestoreToTime
}).(pulumi.StringPtrOutput)
}
// Type of restore to be performed.
// Valid options are `full-copy` (default) and `copy-on-write`.
func (o ClusterRestoreToPointInTimePtrOutput) RestoreType() pulumi.StringPtrOutput {
return o.ApplyT(func(v *ClusterRestoreToPointInTime) *string {
if v == nil {
return nil
}
return v.RestoreType
}).(pulumi.StringPtrOutput)
}
// Identifier of the source database cluster from which to restore. When restoring from a cluster in another AWS account, the identifier is the ARN of that cluster.
func (o ClusterRestoreToPointInTimePtrOutput) SourceClusterIdentifier() pulumi.StringPtrOutput {
return o.ApplyT(func(v *ClusterRestoreToPointInTime) *string {
if v == nil {
return nil
}
return &v.SourceClusterIdentifier
}).(pulumi.StringPtrOutput)
}
// Set to true to restore the database cluster to the latest restorable backup time. Defaults to false. Conflicts with `restoreToTime`.
func (o ClusterRestoreToPointInTimePtrOutput) UseLatestRestorableTime() pulumi.BoolPtrOutput {
return o.ApplyT(func(v *ClusterRestoreToPointInTime) *bool {
if v == nil {
return nil
}
return v.UseLatestRestorableTime
}).(pulumi.BoolPtrOutput)
}
type ClusterS3Import struct {
// Bucket name where your backup is stored
BucketName string `pulumi:"bucketName"`
// Can be blank, but is the path to your backup
BucketPrefix *string `pulumi:"bucketPrefix"`
// Role applied to load the data.
IngestionRole string `pulumi:"ingestionRole"`
// Source engine for the backup
SourceEngine string `pulumi:"sourceEngine"`
// Version of the source engine used to make the backup
//
// This will not recreate the resource if the S3 object changes in some way. It's only used to initialize the database. This only works currently with the aurora engine. See AWS for currently supported engines and options. See [Aurora S3 Migration Docs](https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/AuroraMySQL.Migrating.ExtMySQL.html#AuroraMySQL.Migrating.ExtMySQL.S3).
SourceEngineVersion string `pulumi:"sourceEngineVersion"`
}
// ClusterS3ImportInput is an input type that accepts ClusterS3ImportArgs and ClusterS3ImportOutput values.
// You can construct a concrete instance of `ClusterS3ImportInput` via:
//
// ClusterS3ImportArgs{...}
type ClusterS3ImportInput interface {
pulumi.Input
ToClusterS3ImportOutput() ClusterS3ImportOutput
ToClusterS3ImportOutputWithContext(context.Context) ClusterS3ImportOutput
}
type ClusterS3ImportArgs struct {
// Bucket name where your backup is stored
BucketName pulumi.StringInput `pulumi:"bucketName"`
// Can be blank, but is the path to your backup
BucketPrefix pulumi.StringPtrInput `pulumi:"bucketPrefix"`
// Role applied to load the data.
IngestionRole pulumi.StringInput `pulumi:"ingestionRole"`
// Source engine for the backup
SourceEngine pulumi.StringInput `pulumi:"sourceEngine"`
// Version of the source engine used to make the backup
//
// This will not recreate the resource if the S3 object changes in some way. It's only used to initialize the database. This only works currently with the aurora engine. See AWS for currently supported engines and options. See [Aurora S3 Migration Docs](https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/AuroraMySQL.Migrating.ExtMySQL.html#AuroraMySQL.Migrating.ExtMySQL.S3).
SourceEngineVersion pulumi.StringInput `pulumi:"sourceEngineVersion"`
}
func (ClusterS3ImportArgs) ElementType() reflect.Type {
return reflect.TypeOf((*ClusterS3Import)(nil)).Elem()
}
func (i ClusterS3ImportArgs) ToClusterS3ImportOutput() ClusterS3ImportOutput {
return i.ToClusterS3ImportOutputWithContext(context.Background())
}
func (i ClusterS3ImportArgs) ToClusterS3ImportOutputWithContext(ctx context.Context) ClusterS3ImportOutput {
return pulumi.ToOutputWithContext(ctx, i).(ClusterS3ImportOutput)
}
func (i ClusterS3ImportArgs) ToClusterS3ImportPtrOutput() ClusterS3ImportPtrOutput {
return i.ToClusterS3ImportPtrOutputWithContext(context.Background())
}
func (i ClusterS3ImportArgs) ToClusterS3ImportPtrOutputWithContext(ctx context.Context) ClusterS3ImportPtrOutput {
return pulumi.ToOutputWithContext(ctx, i).(ClusterS3ImportOutput).ToClusterS3ImportPtrOutputWithContext(ctx)
}
// ClusterS3ImportPtrInput is an input type that accepts ClusterS3ImportArgs, ClusterS3ImportPtr and ClusterS3ImportPtrOutput values.
// You can construct a concrete instance of `ClusterS3ImportPtrInput` via:
//
// ClusterS3ImportArgs{...}
//
// or:
//
// nil
type ClusterS3ImportPtrInput interface {
pulumi.Input
ToClusterS3ImportPtrOutput() ClusterS3ImportPtrOutput
ToClusterS3ImportPtrOutputWithContext(context.Context) ClusterS3ImportPtrOutput
}
type clusterS3ImportPtrType ClusterS3ImportArgs
func ClusterS3ImportPtr(v *ClusterS3ImportArgs) ClusterS3ImportPtrInput {
return (*clusterS3ImportPtrType)(v)
}
func (*clusterS3ImportPtrType) ElementType() reflect.Type {
return reflect.TypeOf((**ClusterS3Import)(nil)).Elem()
}
func (i *clusterS3ImportPtrType) ToClusterS3ImportPtrOutput() ClusterS3ImportPtrOutput {
return i.ToClusterS3ImportPtrOutputWithContext(context.Background())
}
func (i *clusterS3ImportPtrType) ToClusterS3ImportPtrOutputWithContext(ctx context.Context) ClusterS3ImportPtrOutput {
return pulumi.ToOutputWithContext(ctx, i).(ClusterS3ImportPtrOutput)
}
type ClusterS3ImportOutput struct{ *pulumi.OutputState }
func (ClusterS3ImportOutput) ElementType() reflect.Type {
return reflect.TypeOf((*ClusterS3Import)(nil)).Elem()
}
func (o ClusterS3ImportOutput) ToClusterS3ImportOutput() ClusterS3ImportOutput {
return o
}
func (o ClusterS3ImportOutput) ToClusterS3ImportOutputWithContext(ctx context.Context) ClusterS3ImportOutput {
return o
}
func (o ClusterS3ImportOutput) ToClusterS3ImportPtrOutput() ClusterS3ImportPtrOutput {
return o.ToClusterS3ImportPtrOutputWithContext(context.Background())
}
func (o ClusterS3ImportOutput) ToClusterS3ImportPtrOutputWithContext(ctx context.Context) ClusterS3ImportPtrOutput {
return o.ApplyTWithContext(ctx, func(_ context.Context, v ClusterS3Import) *ClusterS3Import {
return &v
}).(ClusterS3ImportPtrOutput)
}
// Bucket name where your backup is stored
func (o ClusterS3ImportOutput) BucketName() pulumi.StringOutput {
return o.ApplyT(func(v ClusterS3Import) string { return v.BucketName }).(pulumi.StringOutput)
}
// Can be blank, but is the path to your backup
func (o ClusterS3ImportOutput) BucketPrefix() pulumi.StringPtrOutput {
return o.ApplyT(func(v ClusterS3Import) *string { return v.BucketPrefix }).(pulumi.StringPtrOutput)
}
// Role applied to load the data.
func (o ClusterS3ImportOutput) IngestionRole() pulumi.StringOutput {
return o.ApplyT(func(v ClusterS3Import) string { return v.IngestionRole }).(pulumi.StringOutput)
}
// Source engine for the backup
func (o ClusterS3ImportOutput) SourceEngine() pulumi.StringOutput {
return o.ApplyT(func(v ClusterS3Import) string { return v.SourceEngine }).(pulumi.StringOutput)
}
// Version of the source engine used to make the backup
//
// This will not recreate the resource if the S3 object changes in some way. It's only used to initialize the database. This only works currently with the aurora engine. See AWS for currently supported engines and options. See [Aurora S3 Migration Docs](https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/AuroraMySQL.Migrating.ExtMySQL.html#AuroraMySQL.Migrating.ExtMySQL.S3).
func (o ClusterS3ImportOutput) SourceEngineVersion() pulumi.StringOutput {
return o.ApplyT(func(v ClusterS3Import) string { return v.SourceEngineVersion }).(pulumi.StringOutput)
}
type ClusterS3ImportPtrOutput struct{ *pulumi.OutputState }
func (ClusterS3ImportPtrOutput) ElementType() reflect.Type {
return reflect.TypeOf((**ClusterS3Import)(nil)).Elem()
}
func (o ClusterS3ImportPtrOutput) ToClusterS3ImportPtrOutput() ClusterS3ImportPtrOutput {
return o
}
func (o ClusterS3ImportPtrOutput) ToClusterS3ImportPtrOutputWithContext(ctx context.Context) ClusterS3ImportPtrOutput {
return o
}
func (o ClusterS3ImportPtrOutput) Elem() ClusterS3ImportOutput {
return o.ApplyT(func(v *ClusterS3Import) ClusterS3Import {
if v != nil {
return *v
}
var ret ClusterS3Import
return ret
}).(ClusterS3ImportOutput)
}
// Bucket name where your backup is stored
func (o ClusterS3ImportPtrOutput) BucketName() pulumi.StringPtrOutput {
return o.ApplyT(func(v *ClusterS3Import) *string {
if v == nil {
return nil
}
return &v.BucketName
}).(pulumi.StringPtrOutput)
}
// Can be blank, but is the path to your backup
func (o ClusterS3ImportPtrOutput) BucketPrefix() pulumi.StringPtrOutput {
return o.ApplyT(func(v *ClusterS3Import) *string {
if v == nil {
return nil
}
return v.BucketPrefix
}).(pulumi.StringPtrOutput)
}
// Role applied to load the data.
func (o ClusterS3ImportPtrOutput) IngestionRole() pulumi.StringPtrOutput {
return o.ApplyT(func(v *ClusterS3Import) *string {
if v == nil {
return nil
}
return &v.IngestionRole
}).(pulumi.StringPtrOutput)
}
// Source engine for the backup
func (o ClusterS3ImportPtrOutput) SourceEngine() pulumi.StringPtrOutput {
return o.ApplyT(func(v *ClusterS3Import) *string {
if v == nil {
return nil
}
return &v.SourceEngine
}).(pulumi.StringPtrOutput)
}
// Version of the source engine used to make the backup
//
// This will not recreate the resource if the S3 object changes in some way. It's only used to initialize the database. This only works currently with the aurora engine. See AWS for currently supported engines and options. See [Aurora S3 Migration Docs](https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/AuroraMySQL.Migrating.ExtMySQL.html#AuroraMySQL.Migrating.ExtMySQL.S3).
func (o ClusterS3ImportPtrOutput) SourceEngineVersion() pulumi.StringPtrOutput {
return o.ApplyT(func(v *ClusterS3Import) *string {
if v == nil {
return nil
}
return &v.SourceEngineVersion
}).(pulumi.StringPtrOutput)
}
type ClusterScalingConfiguration struct {
// Whether to enable automatic pause. A DB cluster can be paused only when it's idle (it has no connections). If a DB cluster is paused for more than seven days, the DB cluster might be backed up with a snapshot. In this case, the DB cluster is restored when there is a request to connect to it. Defaults to `true`.
AutoPause *bool `pulumi:"autoPause"`
// Maximum capacity for an Aurora DB cluster in `serverless` DB engine mode. The maximum capacity must be greater than or equal to the minimum capacity. Valid Aurora MySQL capacity values are `1`, `2`, `4`, `8`, `16`, `32`, `64`, `128`, `256`. Valid Aurora PostgreSQL capacity values are (`2`, `4`, `8`, `16`, `32`, `64`, `192`, and `384`). Defaults to `16`.
MaxCapacity *int `pulumi:"maxCapacity"`
// Minimum capacity for an Aurora DB cluster in `serverless` DB engine mode. The minimum capacity must be lesser than or equal to the maximum capacity. Valid Aurora MySQL capacity values are `1`, `2`, `4`, `8`, `16`, `32`, `64`, `128`, `256`. Valid Aurora PostgreSQL capacity values are (`2`, `4`, `8`, `16`, `32`, `64`, `192`, and `384`). Defaults to `1`.
MinCapacity *int `pulumi:"minCapacity"`
// Time, in seconds, before an Aurora DB cluster in serverless mode is paused. Valid values are `300` through `86400`. Defaults to `300`.
SecondsUntilAutoPause *int `pulumi:"secondsUntilAutoPause"`
// Action to take when the timeout is reached. Valid values: `ForceApplyCapacityChange`, `RollbackCapacityChange`. Defaults to `RollbackCapacityChange`. See [documentation](https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/aurora-serverless-v1.how-it-works.html#aurora-serverless.how-it-works.timeout-action).
TimeoutAction *string `pulumi:"timeoutAction"`
}
// ClusterScalingConfigurationInput is an input type that accepts ClusterScalingConfigurationArgs and ClusterScalingConfigurationOutput values.
// You can construct a concrete instance of `ClusterScalingConfigurationInput` via:
//
// ClusterScalingConfigurationArgs{...}
type ClusterScalingConfigurationInput interface {
pulumi.Input
ToClusterScalingConfigurationOutput() ClusterScalingConfigurationOutput
ToClusterScalingConfigurationOutputWithContext(context.Context) ClusterScalingConfigurationOutput
}
type ClusterScalingConfigurationArgs struct {
// Whether to enable automatic pause. A DB cluster can be paused only when it's idle (it has no connections). If a DB cluster is paused for more than seven days, the DB cluster might be backed up with a snapshot. In this case, the DB cluster is restored when there is a request to connect to it. Defaults to `true`.
AutoPause pulumi.BoolPtrInput `pulumi:"autoPause"`
// Maximum capacity for an Aurora DB cluster in `serverless` DB engine mode. The maximum capacity must be greater than or equal to the minimum capacity. Valid Aurora MySQL capacity values are `1`, `2`, `4`, `8`, `16`, `32`, `64`, `128`, `256`. Valid Aurora PostgreSQL capacity values are (`2`, `4`, `8`, `16`, `32`, `64`, `192`, and `384`). Defaults to `16`.
MaxCapacity pulumi.IntPtrInput `pulumi:"maxCapacity"`
// Minimum capacity for an Aurora DB cluster in `serverless` DB engine mode. The minimum capacity must be lesser than or equal to the maximum capacity. Valid Aurora MySQL capacity values are `1`, `2`, `4`, `8`, `16`, `32`, `64`, `128`, `256`. Valid Aurora PostgreSQL capacity values are (`2`, `4`, `8`, `16`, `32`, `64`, `192`, and `384`). Defaults to `1`.
MinCapacity pulumi.IntPtrInput `pulumi:"minCapacity"`
// Time, in seconds, before an Aurora DB cluster in serverless mode is paused. Valid values are `300` through `86400`. Defaults to `300`.
SecondsUntilAutoPause pulumi.IntPtrInput `pulumi:"secondsUntilAutoPause"`
// Action to take when the timeout is reached. Valid values: `ForceApplyCapacityChange`, `RollbackCapacityChange`. Defaults to `RollbackCapacityChange`. See [documentation](https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/aurora-serverless-v1.how-it-works.html#aurora-serverless.how-it-works.timeout-action).
TimeoutAction pulumi.StringPtrInput `pulumi:"timeoutAction"`
}
func (ClusterScalingConfigurationArgs) ElementType() reflect.Type {
return reflect.TypeOf((*ClusterScalingConfiguration)(nil)).Elem()
}
func (i ClusterScalingConfigurationArgs) ToClusterScalingConfigurationOutput() ClusterScalingConfigurationOutput {
return i.ToClusterScalingConfigurationOutputWithContext(context.Background())
}
func (i ClusterScalingConfigurationArgs) ToClusterScalingConfigurationOutputWithContext(ctx context.Context) ClusterScalingConfigurationOutput {
return pulumi.ToOutputWithContext(ctx, i).(ClusterScalingConfigurationOutput)
}
func (i ClusterScalingConfigurationArgs) ToClusterScalingConfigurationPtrOutput() ClusterScalingConfigurationPtrOutput {
return i.ToClusterScalingConfigurationPtrOutputWithContext(context.Background())
}
func (i ClusterScalingConfigurationArgs) ToClusterScalingConfigurationPtrOutputWithContext(ctx context.Context) ClusterScalingConfigurationPtrOutput {
return pulumi.ToOutputWithContext(ctx, i).(ClusterScalingConfigurationOutput).ToClusterScalingConfigurationPtrOutputWithContext(ctx)
}
// ClusterScalingConfigurationPtrInput is an input type that accepts ClusterScalingConfigurationArgs, ClusterScalingConfigurationPtr and ClusterScalingConfigurationPtrOutput values.
// You can construct a concrete instance of `ClusterScalingConfigurationPtrInput` via:
//
// ClusterScalingConfigurationArgs{...}
//
// or:
//
// nil
type ClusterScalingConfigurationPtrInput interface {
pulumi.Input
ToClusterScalingConfigurationPtrOutput() ClusterScalingConfigurationPtrOutput
ToClusterScalingConfigurationPtrOutputWithContext(context.Context) ClusterScalingConfigurationPtrOutput
}
type clusterScalingConfigurationPtrType ClusterScalingConfigurationArgs
func ClusterScalingConfigurationPtr(v *ClusterScalingConfigurationArgs) ClusterScalingConfigurationPtrInput {
return (*clusterScalingConfigurationPtrType)(v)
}
func (*clusterScalingConfigurationPtrType) ElementType() reflect.Type {
return reflect.TypeOf((**ClusterScalingConfiguration)(nil)).Elem()
}
func (i *clusterScalingConfigurationPtrType) ToClusterScalingConfigurationPtrOutput() ClusterScalingConfigurationPtrOutput {
return i.ToClusterScalingConfigurationPtrOutputWithContext(context.Background())
}
func (i *clusterScalingConfigurationPtrType) ToClusterScalingConfigurationPtrOutputWithContext(ctx context.Context) ClusterScalingConfigurationPtrOutput {
return pulumi.ToOutputWithContext(ctx, i).(ClusterScalingConfigurationPtrOutput)
}
type ClusterScalingConfigurationOutput struct{ *pulumi.OutputState }
func (ClusterScalingConfigurationOutput) ElementType() reflect.Type {
return reflect.TypeOf((*ClusterScalingConfiguration)(nil)).Elem()
}
func (o ClusterScalingConfigurationOutput) ToClusterScalingConfigurationOutput() ClusterScalingConfigurationOutput {
return o
}
func (o ClusterScalingConfigurationOutput) ToClusterScalingConfigurationOutputWithContext(ctx context.Context) ClusterScalingConfigurationOutput {
return o
}
func (o ClusterScalingConfigurationOutput) ToClusterScalingConfigurationPtrOutput() ClusterScalingConfigurationPtrOutput {
return o.ToClusterScalingConfigurationPtrOutputWithContext(context.Background())
}
func (o ClusterScalingConfigurationOutput) ToClusterScalingConfigurationPtrOutputWithContext(ctx context.Context) ClusterScalingConfigurationPtrOutput {
return o.ApplyTWithContext(ctx, func(_ context.Context, v ClusterScalingConfiguration) *ClusterScalingConfiguration {
return &v
}).(ClusterScalingConfigurationPtrOutput)
}
// Whether to enable automatic pause. A DB cluster can be paused only when it's idle (it has no connections). If a DB cluster is paused for more than seven days, the DB cluster might be backed up with a snapshot. In this case, the DB cluster is restored when there is a request to connect to it. Defaults to `true`.
func (o ClusterScalingConfigurationOutput) AutoPause() pulumi.BoolPtrOutput {
return o.ApplyT(func(v ClusterScalingConfiguration) *bool { return v.AutoPause }).(pulumi.BoolPtrOutput)
}
// Maximum capacity for an Aurora DB cluster in `serverless` DB engine mode. The maximum capacity must be greater than or equal to the minimum capacity. Valid Aurora MySQL capacity values are `1`, `2`, `4`, `8`, `16`, `32`, `64`, `128`, `256`. Valid Aurora PostgreSQL capacity values are (`2`, `4`, `8`, `16`, `32`, `64`, `192`, and `384`). Defaults to `16`.
func (o ClusterScalingConfigurationOutput) MaxCapacity() pulumi.IntPtrOutput {
return o.ApplyT(func(v ClusterScalingConfiguration) *int { return v.MaxCapacity }).(pulumi.IntPtrOutput)
}
// Minimum capacity for an Aurora DB cluster in `serverless` DB engine mode. The minimum capacity must be lesser than or equal to the maximum capacity. Valid Aurora MySQL capacity values are `1`, `2`, `4`, `8`, `16`, `32`, `64`, `128`, `256`. Valid Aurora PostgreSQL capacity values are (`2`, `4`, `8`, `16`, `32`, `64`, `192`, and `384`). Defaults to `1`.
func (o ClusterScalingConfigurationOutput) MinCapacity() pulumi.IntPtrOutput {
return o.ApplyT(func(v ClusterScalingConfiguration) *int { return v.MinCapacity }).(pulumi.IntPtrOutput)
}
// Time, in seconds, before an Aurora DB cluster in serverless mode is paused. Valid values are `300` through `86400`. Defaults to `300`.
func (o ClusterScalingConfigurationOutput) SecondsUntilAutoPause() pulumi.IntPtrOutput {
return o.ApplyT(func(v ClusterScalingConfiguration) *int { return v.SecondsUntilAutoPause }).(pulumi.IntPtrOutput)
}
// Action to take when the timeout is reached. Valid values: `ForceApplyCapacityChange`, `RollbackCapacityChange`. Defaults to `RollbackCapacityChange`. See [documentation](https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/aurora-serverless-v1.how-it-works.html#aurora-serverless.how-it-works.timeout-action).
func (o ClusterScalingConfigurationOutput) TimeoutAction() pulumi.StringPtrOutput {
return o.ApplyT(func(v ClusterScalingConfiguration) *string { return v.TimeoutAction }).(pulumi.StringPtrOutput)
}
type ClusterScalingConfigurationPtrOutput struct{ *pulumi.OutputState }
func (ClusterScalingConfigurationPtrOutput) ElementType() reflect.Type {
return reflect.TypeOf((**ClusterScalingConfiguration)(nil)).Elem()
}
func (o ClusterScalingConfigurationPtrOutput) ToClusterScalingConfigurationPtrOutput() ClusterScalingConfigurationPtrOutput {
return o
}
func (o ClusterScalingConfigurationPtrOutput) ToClusterScalingConfigurationPtrOutputWithContext(ctx context.Context) ClusterScalingConfigurationPtrOutput {
return o
}
func (o ClusterScalingConfigurationPtrOutput) Elem() ClusterScalingConfigurationOutput {
return o.ApplyT(func(v *ClusterScalingConfiguration) ClusterScalingConfiguration {
if v != nil {
return *v
}
var ret ClusterScalingConfiguration
return ret
}).(ClusterScalingConfigurationOutput)
}
// Whether to enable automatic pause. A DB cluster can be paused only when it's idle (it has no connections). If a DB cluster is paused for more than seven days, the DB cluster might be backed up with a snapshot. In this case, the DB cluster is restored when there is a request to connect to it. Defaults to `true`.
func (o ClusterScalingConfigurationPtrOutput) AutoPause() pulumi.BoolPtrOutput {
return o.ApplyT(func(v *ClusterScalingConfiguration) *bool {
if v == nil {
return nil
}
return v.AutoPause
}).(pulumi.BoolPtrOutput)
}
// Maximum capacity for an Aurora DB cluster in `serverless` DB engine mode. The maximum capacity must be greater than or equal to the minimum capacity. Valid Aurora MySQL capacity values are `1`, `2`, `4`, `8`, `16`, `32`, `64`, `128`, `256`. Valid Aurora PostgreSQL capacity values are (`2`, `4`, `8`, `16`, `32`, `64`, `192`, and `384`). Defaults to `16`.
func (o ClusterScalingConfigurationPtrOutput) MaxCapacity() pulumi.IntPtrOutput {
return o.ApplyT(func(v *ClusterScalingConfiguration) *int {
if v == nil {
return nil
}
return v.MaxCapacity
}).(pulumi.IntPtrOutput)
}
// Minimum capacity for an Aurora DB cluster in `serverless` DB engine mode. The minimum capacity must be lesser than or equal to the maximum capacity. Valid Aurora MySQL capacity values are `1`, `2`, `4`, `8`, `16`, `32`, `64`, `128`, `256`. Valid Aurora PostgreSQL capacity values are (`2`, `4`, `8`, `16`, `32`, `64`, `192`, and `384`). Defaults to `1`.
func (o ClusterScalingConfigurationPtrOutput) MinCapacity() pulumi.IntPtrOutput {
return o.ApplyT(func(v *ClusterScalingConfiguration) *int {
if v == nil {
return nil
}
return v.MinCapacity
}).(pulumi.IntPtrOutput)
}
// Time, in seconds, before an Aurora DB cluster in serverless mode is paused. Valid values are `300` through `86400`. Defaults to `300`.
func (o ClusterScalingConfigurationPtrOutput) SecondsUntilAutoPause() pulumi.IntPtrOutput {
return o.ApplyT(func(v *ClusterScalingConfiguration) *int {
if v == nil {
return nil
}
return v.SecondsUntilAutoPause
}).(pulumi.IntPtrOutput)
}
// Action to take when the timeout is reached. Valid values: `ForceApplyCapacityChange`, `RollbackCapacityChange`. Defaults to `RollbackCapacityChange`. See [documentation](https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/aurora-serverless-v1.how-it-works.html#aurora-serverless.how-it-works.timeout-action).
func (o ClusterScalingConfigurationPtrOutput) TimeoutAction() pulumi.StringPtrOutput {
return o.ApplyT(func(v *ClusterScalingConfiguration) *string {
if v == nil {
return nil
}
return v.TimeoutAction
}).(pulumi.StringPtrOutput)
}
type ClusterServerlessv2ScalingConfiguration struct {
// Maximum capacity for an Aurora DB cluster in `serverless` DB engine mode. The maximum capacity must be greater than or equal to the minimum capacity. Valid Aurora MySQL capacity values are `1`, `2`, `4`, `8`, `16`, `32`, `64`, `128`, `256`. Valid Aurora PostgreSQL capacity values are (`2`, `4`, `8`, `16`, `32`, `64`, `192`, and `384`). Defaults to `16`.
MaxCapacity float64 `pulumi:"maxCapacity"`
// Minimum capacity for an Aurora DB cluster in `serverless` DB engine mode. The minimum capacity must be lesser than or equal to the maximum capacity. Valid Aurora MySQL capacity values are `1`, `2`, `4`, `8`, `16`, `32`, `64`, `128`, `256`. Valid Aurora PostgreSQL capacity values are (`2`, `4`, `8`, `16`, `32`, `64`, `192`, and `384`). Defaults to `1`.
MinCapacity float64 `pulumi:"minCapacity"`
}
// ClusterServerlessv2ScalingConfigurationInput is an input type that accepts ClusterServerlessv2ScalingConfigurationArgs and ClusterServerlessv2ScalingConfigurationOutput values.
// You can construct a concrete instance of `ClusterServerlessv2ScalingConfigurationInput` via:
//
// ClusterServerlessv2ScalingConfigurationArgs{...}
type ClusterServerlessv2ScalingConfigurationInput interface {
pulumi.Input
ToClusterServerlessv2ScalingConfigurationOutput() ClusterServerlessv2ScalingConfigurationOutput
ToClusterServerlessv2ScalingConfigurationOutputWithContext(context.Context) ClusterServerlessv2ScalingConfigurationOutput
}
type ClusterServerlessv2ScalingConfigurationArgs struct {
// Maximum capacity for an Aurora DB cluster in `serverless` DB engine mode. The maximum capacity must be greater than or equal to the minimum capacity. Valid Aurora MySQL capacity values are `1`, `2`, `4`, `8`, `16`, `32`, `64`, `128`, `256`. Valid Aurora PostgreSQL capacity values are (`2`, `4`, `8`, `16`, `32`, `64`, `192`, and `384`). Defaults to `16`.
MaxCapacity pulumi.Float64Input `pulumi:"maxCapacity"`
// Minimum capacity for an Aurora DB cluster in `serverless` DB engine mode. The minimum capacity must be lesser than or equal to the maximum capacity. Valid Aurora MySQL capacity values are `1`, `2`, `4`, `8`, `16`, `32`, `64`, `128`, `256`. Valid Aurora PostgreSQL capacity values are (`2`, `4`, `8`, `16`, `32`, `64`, `192`, and `384`). Defaults to `1`.
MinCapacity pulumi.Float64Input `pulumi:"minCapacity"`
}
func (ClusterServerlessv2ScalingConfigurationArgs) ElementType() reflect.Type {
return reflect.TypeOf((*ClusterServerlessv2ScalingConfiguration)(nil)).Elem()
}
func (i ClusterServerlessv2ScalingConfigurationArgs) ToClusterServerlessv2ScalingConfigurationOutput() ClusterServerlessv2ScalingConfigurationOutput {
return i.ToClusterServerlessv2ScalingConfigurationOutputWithContext(context.Background())
}
func (i ClusterServerlessv2ScalingConfigurationArgs) ToClusterServerlessv2ScalingConfigurationOutputWithContext(ctx context.Context) ClusterServerlessv2ScalingConfigurationOutput {
return pulumi.ToOutputWithContext(ctx, i).(ClusterServerlessv2ScalingConfigurationOutput)
}
func (i ClusterServerlessv2ScalingConfigurationArgs) ToClusterServerlessv2ScalingConfigurationPtrOutput() ClusterServerlessv2ScalingConfigurationPtrOutput {
return i.ToClusterServerlessv2ScalingConfigurationPtrOutputWithContext(context.Background())
}
func (i ClusterServerlessv2ScalingConfigurationArgs) ToClusterServerlessv2ScalingConfigurationPtrOutputWithContext(ctx context.Context) ClusterServerlessv2ScalingConfigurationPtrOutput {
return pulumi.ToOutputWithContext(ctx, i).(ClusterServerlessv2ScalingConfigurationOutput).ToClusterServerlessv2ScalingConfigurationPtrOutputWithContext(ctx)
}
// ClusterServerlessv2ScalingConfigurationPtrInput is an input type that accepts ClusterServerlessv2ScalingConfigurationArgs, ClusterServerlessv2ScalingConfigurationPtr and ClusterServerlessv2ScalingConfigurationPtrOutput values.
// You can construct a concrete instance of `ClusterServerlessv2ScalingConfigurationPtrInput` via:
//
// ClusterServerlessv2ScalingConfigurationArgs{...}
//
// or:
//
// nil
type ClusterServerlessv2ScalingConfigurationPtrInput interface {
pulumi.Input
ToClusterServerlessv2ScalingConfigurationPtrOutput() ClusterServerlessv2ScalingConfigurationPtrOutput
ToClusterServerlessv2ScalingConfigurationPtrOutputWithContext(context.Context) ClusterServerlessv2ScalingConfigurationPtrOutput
}
type clusterServerlessv2ScalingConfigurationPtrType ClusterServerlessv2ScalingConfigurationArgs
func ClusterServerlessv2ScalingConfigurationPtr(v *ClusterServerlessv2ScalingConfigurationArgs) ClusterServerlessv2ScalingConfigurationPtrInput {
return (*clusterServerlessv2ScalingConfigurationPtrType)(v)
}
func (*clusterServerlessv2ScalingConfigurationPtrType) ElementType() reflect.Type {
return reflect.TypeOf((**ClusterServerlessv2ScalingConfiguration)(nil)).Elem()
}
func (i *clusterServerlessv2ScalingConfigurationPtrType) ToClusterServerlessv2ScalingConfigurationPtrOutput() ClusterServerlessv2ScalingConfigurationPtrOutput {
return i.ToClusterServerlessv2ScalingConfigurationPtrOutputWithContext(context.Background())
}
func (i *clusterServerlessv2ScalingConfigurationPtrType) ToClusterServerlessv2ScalingConfigurationPtrOutputWithContext(ctx context.Context) ClusterServerlessv2ScalingConfigurationPtrOutput {
return pulumi.ToOutputWithContext(ctx, i).(ClusterServerlessv2ScalingConfigurationPtrOutput)
}
type ClusterServerlessv2ScalingConfigurationOutput struct{ *pulumi.OutputState }
func (ClusterServerlessv2ScalingConfigurationOutput) ElementType() reflect.Type {
return reflect.TypeOf((*ClusterServerlessv2ScalingConfiguration)(nil)).Elem()
}
func (o ClusterServerlessv2ScalingConfigurationOutput) ToClusterServerlessv2ScalingConfigurationOutput() ClusterServerlessv2ScalingConfigurationOutput {
return o
}
func (o ClusterServerlessv2ScalingConfigurationOutput) ToClusterServerlessv2ScalingConfigurationOutputWithContext(ctx context.Context) ClusterServerlessv2ScalingConfigurationOutput {
return o
}
func (o ClusterServerlessv2ScalingConfigurationOutput) ToClusterServerlessv2ScalingConfigurationPtrOutput() ClusterServerlessv2ScalingConfigurationPtrOutput {
return o.ToClusterServerlessv2ScalingConfigurationPtrOutputWithContext(context.Background())
}
func (o ClusterServerlessv2ScalingConfigurationOutput) ToClusterServerlessv2ScalingConfigurationPtrOutputWithContext(ctx context.Context) ClusterServerlessv2ScalingConfigurationPtrOutput {
return o.ApplyTWithContext(ctx, func(_ context.Context, v ClusterServerlessv2ScalingConfiguration) *ClusterServerlessv2ScalingConfiguration {
return &v
}).(ClusterServerlessv2ScalingConfigurationPtrOutput)
}
// Maximum capacity for an Aurora DB cluster in `serverless` DB engine mode. The maximum capacity must be greater than or equal to the minimum capacity. Valid Aurora MySQL capacity values are `1`, `2`, `4`, `8`, `16`, `32`, `64`, `128`, `256`. Valid Aurora PostgreSQL capacity values are (`2`, `4`, `8`, `16`, `32`, `64`, `192`, and `384`). Defaults to `16`.
func (o ClusterServerlessv2ScalingConfigurationOutput) MaxCapacity() pulumi.Float64Output {
return o.ApplyT(func(v ClusterServerlessv2ScalingConfiguration) float64 { return v.MaxCapacity }).(pulumi.Float64Output)
}
// Minimum capacity for an Aurora DB cluster in `serverless` DB engine mode. The minimum capacity must be lesser than or equal to the maximum capacity. Valid Aurora MySQL capacity values are `1`, `2`, `4`, `8`, `16`, `32`, `64`, `128`, `256`. Valid Aurora PostgreSQL capacity values are (`2`, `4`, `8`, `16`, `32`, `64`, `192`, and `384`). Defaults to `1`.
func (o ClusterServerlessv2ScalingConfigurationOutput) MinCapacity() pulumi.Float64Output {
return o.ApplyT(func(v ClusterServerlessv2ScalingConfiguration) float64 { return v.MinCapacity }).(pulumi.Float64Output)
}
type ClusterServerlessv2ScalingConfigurationPtrOutput struct{ *pulumi.OutputState }
func (ClusterServerlessv2ScalingConfigurationPtrOutput) ElementType() reflect.Type {
return reflect.TypeOf((**ClusterServerlessv2ScalingConfiguration)(nil)).Elem()
}