/
pulumiTypes.go
3901 lines (3056 loc) · 179 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
// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
// *** Do not edit by hand unless you're certain you know what you are doing! ***
package cosmosdb
import (
"context"
"reflect"
"github.com/pulumi/pulumi/sdk/v2/go/pulumi"
)
type AccountCapability struct {
// Specifies the name of the CosmosDB Account. Changing this forces a new resource to be created.
Name string `pulumi:"name"`
}
// AccountCapabilityInput is an input type that accepts AccountCapabilityArgs and AccountCapabilityOutput values.
// You can construct a concrete instance of `AccountCapabilityInput` via:
//
// AccountCapabilityArgs{...}
type AccountCapabilityInput interface {
pulumi.Input
ToAccountCapabilityOutput() AccountCapabilityOutput
ToAccountCapabilityOutputWithContext(context.Context) AccountCapabilityOutput
}
type AccountCapabilityArgs struct {
// Specifies the name of the CosmosDB Account. Changing this forces a new resource to be created.
Name pulumi.StringInput `pulumi:"name"`
}
func (AccountCapabilityArgs) ElementType() reflect.Type {
return reflect.TypeOf((*AccountCapability)(nil)).Elem()
}
func (i AccountCapabilityArgs) ToAccountCapabilityOutput() AccountCapabilityOutput {
return i.ToAccountCapabilityOutputWithContext(context.Background())
}
func (i AccountCapabilityArgs) ToAccountCapabilityOutputWithContext(ctx context.Context) AccountCapabilityOutput {
return pulumi.ToOutputWithContext(ctx, i).(AccountCapabilityOutput)
}
// AccountCapabilityArrayInput is an input type that accepts AccountCapabilityArray and AccountCapabilityArrayOutput values.
// You can construct a concrete instance of `AccountCapabilityArrayInput` via:
//
// AccountCapabilityArray{ AccountCapabilityArgs{...} }
type AccountCapabilityArrayInput interface {
pulumi.Input
ToAccountCapabilityArrayOutput() AccountCapabilityArrayOutput
ToAccountCapabilityArrayOutputWithContext(context.Context) AccountCapabilityArrayOutput
}
type AccountCapabilityArray []AccountCapabilityInput
func (AccountCapabilityArray) ElementType() reflect.Type {
return reflect.TypeOf((*[]AccountCapability)(nil)).Elem()
}
func (i AccountCapabilityArray) ToAccountCapabilityArrayOutput() AccountCapabilityArrayOutput {
return i.ToAccountCapabilityArrayOutputWithContext(context.Background())
}
func (i AccountCapabilityArray) ToAccountCapabilityArrayOutputWithContext(ctx context.Context) AccountCapabilityArrayOutput {
return pulumi.ToOutputWithContext(ctx, i).(AccountCapabilityArrayOutput)
}
type AccountCapabilityOutput struct{ *pulumi.OutputState }
func (AccountCapabilityOutput) ElementType() reflect.Type {
return reflect.TypeOf((*AccountCapability)(nil)).Elem()
}
func (o AccountCapabilityOutput) ToAccountCapabilityOutput() AccountCapabilityOutput {
return o
}
func (o AccountCapabilityOutput) ToAccountCapabilityOutputWithContext(ctx context.Context) AccountCapabilityOutput {
return o
}
// Specifies the name of the CosmosDB Account. Changing this forces a new resource to be created.
func (o AccountCapabilityOutput) Name() pulumi.StringOutput {
return o.ApplyT(func(v AccountCapability) string { return v.Name }).(pulumi.StringOutput)
}
type AccountCapabilityArrayOutput struct{ *pulumi.OutputState }
func (AccountCapabilityArrayOutput) ElementType() reflect.Type {
return reflect.TypeOf((*[]AccountCapability)(nil)).Elem()
}
func (o AccountCapabilityArrayOutput) ToAccountCapabilityArrayOutput() AccountCapabilityArrayOutput {
return o
}
func (o AccountCapabilityArrayOutput) ToAccountCapabilityArrayOutputWithContext(ctx context.Context) AccountCapabilityArrayOutput {
return o
}
func (o AccountCapabilityArrayOutput) Index(i pulumi.IntInput) AccountCapabilityOutput {
return pulumi.All(o, i).ApplyT(func(vs []interface{}) AccountCapability {
return vs[0].([]AccountCapability)[vs[1].(int)]
}).(AccountCapabilityOutput)
}
type AccountConsistencyPolicy struct {
// The Consistency Level to use for this CosmosDB Account - can be either `BoundedStaleness`, `Eventual`, `Session`, `Strong` or `ConsistentPrefix`.
ConsistencyLevel string `pulumi:"consistencyLevel"`
// When used with the Bounded Staleness consistency level, this value represents the time amount of staleness (in seconds) tolerated. Accepted range for this value is `5` - `86400` (1 day). Defaults to `5`. Required when `consistencyLevel` is set to `BoundedStaleness`.
MaxIntervalInSeconds *int `pulumi:"maxIntervalInSeconds"`
// When used with the Bounded Staleness consistency level, this value represents the number of stale requests tolerated. Accepted range for this value is `10` – `2147483647`. Defaults to `100`. Required when `consistencyLevel` is set to `BoundedStaleness`.
MaxStalenessPrefix *int `pulumi:"maxStalenessPrefix"`
}
// AccountConsistencyPolicyInput is an input type that accepts AccountConsistencyPolicyArgs and AccountConsistencyPolicyOutput values.
// You can construct a concrete instance of `AccountConsistencyPolicyInput` via:
//
// AccountConsistencyPolicyArgs{...}
type AccountConsistencyPolicyInput interface {
pulumi.Input
ToAccountConsistencyPolicyOutput() AccountConsistencyPolicyOutput
ToAccountConsistencyPolicyOutputWithContext(context.Context) AccountConsistencyPolicyOutput
}
type AccountConsistencyPolicyArgs struct {
// The Consistency Level to use for this CosmosDB Account - can be either `BoundedStaleness`, `Eventual`, `Session`, `Strong` or `ConsistentPrefix`.
ConsistencyLevel pulumi.StringInput `pulumi:"consistencyLevel"`
// When used with the Bounded Staleness consistency level, this value represents the time amount of staleness (in seconds) tolerated. Accepted range for this value is `5` - `86400` (1 day). Defaults to `5`. Required when `consistencyLevel` is set to `BoundedStaleness`.
MaxIntervalInSeconds pulumi.IntPtrInput `pulumi:"maxIntervalInSeconds"`
// When used with the Bounded Staleness consistency level, this value represents the number of stale requests tolerated. Accepted range for this value is `10` – `2147483647`. Defaults to `100`. Required when `consistencyLevel` is set to `BoundedStaleness`.
MaxStalenessPrefix pulumi.IntPtrInput `pulumi:"maxStalenessPrefix"`
}
func (AccountConsistencyPolicyArgs) ElementType() reflect.Type {
return reflect.TypeOf((*AccountConsistencyPolicy)(nil)).Elem()
}
func (i AccountConsistencyPolicyArgs) ToAccountConsistencyPolicyOutput() AccountConsistencyPolicyOutput {
return i.ToAccountConsistencyPolicyOutputWithContext(context.Background())
}
func (i AccountConsistencyPolicyArgs) ToAccountConsistencyPolicyOutputWithContext(ctx context.Context) AccountConsistencyPolicyOutput {
return pulumi.ToOutputWithContext(ctx, i).(AccountConsistencyPolicyOutput)
}
func (i AccountConsistencyPolicyArgs) ToAccountConsistencyPolicyPtrOutput() AccountConsistencyPolicyPtrOutput {
return i.ToAccountConsistencyPolicyPtrOutputWithContext(context.Background())
}
func (i AccountConsistencyPolicyArgs) ToAccountConsistencyPolicyPtrOutputWithContext(ctx context.Context) AccountConsistencyPolicyPtrOutput {
return pulumi.ToOutputWithContext(ctx, i).(AccountConsistencyPolicyOutput).ToAccountConsistencyPolicyPtrOutputWithContext(ctx)
}
// AccountConsistencyPolicyPtrInput is an input type that accepts AccountConsistencyPolicyArgs, AccountConsistencyPolicyPtr and AccountConsistencyPolicyPtrOutput values.
// You can construct a concrete instance of `AccountConsistencyPolicyPtrInput` via:
//
// AccountConsistencyPolicyArgs{...}
//
// or:
//
// nil
type AccountConsistencyPolicyPtrInput interface {
pulumi.Input
ToAccountConsistencyPolicyPtrOutput() AccountConsistencyPolicyPtrOutput
ToAccountConsistencyPolicyPtrOutputWithContext(context.Context) AccountConsistencyPolicyPtrOutput
}
type accountConsistencyPolicyPtrType AccountConsistencyPolicyArgs
func AccountConsistencyPolicyPtr(v *AccountConsistencyPolicyArgs) AccountConsistencyPolicyPtrInput {
return (*accountConsistencyPolicyPtrType)(v)
}
func (*accountConsistencyPolicyPtrType) ElementType() reflect.Type {
return reflect.TypeOf((**AccountConsistencyPolicy)(nil)).Elem()
}
func (i *accountConsistencyPolicyPtrType) ToAccountConsistencyPolicyPtrOutput() AccountConsistencyPolicyPtrOutput {
return i.ToAccountConsistencyPolicyPtrOutputWithContext(context.Background())
}
func (i *accountConsistencyPolicyPtrType) ToAccountConsistencyPolicyPtrOutputWithContext(ctx context.Context) AccountConsistencyPolicyPtrOutput {
return pulumi.ToOutputWithContext(ctx, i).(AccountConsistencyPolicyPtrOutput)
}
type AccountConsistencyPolicyOutput struct{ *pulumi.OutputState }
func (AccountConsistencyPolicyOutput) ElementType() reflect.Type {
return reflect.TypeOf((*AccountConsistencyPolicy)(nil)).Elem()
}
func (o AccountConsistencyPolicyOutput) ToAccountConsistencyPolicyOutput() AccountConsistencyPolicyOutput {
return o
}
func (o AccountConsistencyPolicyOutput) ToAccountConsistencyPolicyOutputWithContext(ctx context.Context) AccountConsistencyPolicyOutput {
return o
}
func (o AccountConsistencyPolicyOutput) ToAccountConsistencyPolicyPtrOutput() AccountConsistencyPolicyPtrOutput {
return o.ToAccountConsistencyPolicyPtrOutputWithContext(context.Background())
}
func (o AccountConsistencyPolicyOutput) ToAccountConsistencyPolicyPtrOutputWithContext(ctx context.Context) AccountConsistencyPolicyPtrOutput {
return o.ApplyT(func(v AccountConsistencyPolicy) *AccountConsistencyPolicy {
return &v
}).(AccountConsistencyPolicyPtrOutput)
}
// The Consistency Level to use for this CosmosDB Account - can be either `BoundedStaleness`, `Eventual`, `Session`, `Strong` or `ConsistentPrefix`.
func (o AccountConsistencyPolicyOutput) ConsistencyLevel() pulumi.StringOutput {
return o.ApplyT(func(v AccountConsistencyPolicy) string { return v.ConsistencyLevel }).(pulumi.StringOutput)
}
// When used with the Bounded Staleness consistency level, this value represents the time amount of staleness (in seconds) tolerated. Accepted range for this value is `5` - `86400` (1 day). Defaults to `5`. Required when `consistencyLevel` is set to `BoundedStaleness`.
func (o AccountConsistencyPolicyOutput) MaxIntervalInSeconds() pulumi.IntPtrOutput {
return o.ApplyT(func(v AccountConsistencyPolicy) *int { return v.MaxIntervalInSeconds }).(pulumi.IntPtrOutput)
}
// When used with the Bounded Staleness consistency level, this value represents the number of stale requests tolerated. Accepted range for this value is `10` – `2147483647`. Defaults to `100`. Required when `consistencyLevel` is set to `BoundedStaleness`.
func (o AccountConsistencyPolicyOutput) MaxStalenessPrefix() pulumi.IntPtrOutput {
return o.ApplyT(func(v AccountConsistencyPolicy) *int { return v.MaxStalenessPrefix }).(pulumi.IntPtrOutput)
}
type AccountConsistencyPolicyPtrOutput struct{ *pulumi.OutputState }
func (AccountConsistencyPolicyPtrOutput) ElementType() reflect.Type {
return reflect.TypeOf((**AccountConsistencyPolicy)(nil)).Elem()
}
func (o AccountConsistencyPolicyPtrOutput) ToAccountConsistencyPolicyPtrOutput() AccountConsistencyPolicyPtrOutput {
return o
}
func (o AccountConsistencyPolicyPtrOutput) ToAccountConsistencyPolicyPtrOutputWithContext(ctx context.Context) AccountConsistencyPolicyPtrOutput {
return o
}
func (o AccountConsistencyPolicyPtrOutput) Elem() AccountConsistencyPolicyOutput {
return o.ApplyT(func(v *AccountConsistencyPolicy) AccountConsistencyPolicy { return *v }).(AccountConsistencyPolicyOutput)
}
// The Consistency Level to use for this CosmosDB Account - can be either `BoundedStaleness`, `Eventual`, `Session`, `Strong` or `ConsistentPrefix`.
func (o AccountConsistencyPolicyPtrOutput) ConsistencyLevel() pulumi.StringPtrOutput {
return o.ApplyT(func(v *AccountConsistencyPolicy) *string {
if v == nil {
return nil
}
return &v.ConsistencyLevel
}).(pulumi.StringPtrOutput)
}
// When used with the Bounded Staleness consistency level, this value represents the time amount of staleness (in seconds) tolerated. Accepted range for this value is `5` - `86400` (1 day). Defaults to `5`. Required when `consistencyLevel` is set to `BoundedStaleness`.
func (o AccountConsistencyPolicyPtrOutput) MaxIntervalInSeconds() pulumi.IntPtrOutput {
return o.ApplyT(func(v *AccountConsistencyPolicy) *int {
if v == nil {
return nil
}
return v.MaxIntervalInSeconds
}).(pulumi.IntPtrOutput)
}
// When used with the Bounded Staleness consistency level, this value represents the number of stale requests tolerated. Accepted range for this value is `10` – `2147483647`. Defaults to `100`. Required when `consistencyLevel` is set to `BoundedStaleness`.
func (o AccountConsistencyPolicyPtrOutput) MaxStalenessPrefix() pulumi.IntPtrOutput {
return o.ApplyT(func(v *AccountConsistencyPolicy) *int {
if v == nil {
return nil
}
return v.MaxStalenessPrefix
}).(pulumi.IntPtrOutput)
}
type AccountGeoLocation struct {
// The failover priority of the region. A failover priority of `0` indicates a write region. The maximum value for a failover priority = (total number of regions - 1). Failover priority values must be unique for each of the regions in which the database account exists. Changing this causes the location to be re-provisioned and cannot be changed for the location with failover priority `0`.
FailoverPriority int `pulumi:"failoverPriority"`
// The ID of the virtual network subnet.
Id *string `pulumi:"id"`
// The name of the Azure region to host replicated data.
Location string `pulumi:"location"`
// The string used to generate the document endpoints for this region. If not specified it defaults to `${cosmosdb_account.name}-${location}`. Changing this causes the location to be deleted and re-provisioned and cannot be changed for the location with failover priority `0`.
//
// Deprecated: This is deprecated because the service no longer accepts this as an input since Apr 25, 2019
Prefix *string `pulumi:"prefix"`
// Should zone redundancy be enabled for this region? Defaults to `false`.
ZoneRedundant *bool `pulumi:"zoneRedundant"`
}
// AccountGeoLocationInput is an input type that accepts AccountGeoLocationArgs and AccountGeoLocationOutput values.
// You can construct a concrete instance of `AccountGeoLocationInput` via:
//
// AccountGeoLocationArgs{...}
type AccountGeoLocationInput interface {
pulumi.Input
ToAccountGeoLocationOutput() AccountGeoLocationOutput
ToAccountGeoLocationOutputWithContext(context.Context) AccountGeoLocationOutput
}
type AccountGeoLocationArgs struct {
// The failover priority of the region. A failover priority of `0` indicates a write region. The maximum value for a failover priority = (total number of regions - 1). Failover priority values must be unique for each of the regions in which the database account exists. Changing this causes the location to be re-provisioned and cannot be changed for the location with failover priority `0`.
FailoverPriority pulumi.IntInput `pulumi:"failoverPriority"`
// The ID of the virtual network subnet.
Id pulumi.StringPtrInput `pulumi:"id"`
// The name of the Azure region to host replicated data.
Location pulumi.StringInput `pulumi:"location"`
// The string used to generate the document endpoints for this region. If not specified it defaults to `${cosmosdb_account.name}-${location}`. Changing this causes the location to be deleted and re-provisioned and cannot be changed for the location with failover priority `0`.
//
// Deprecated: This is deprecated because the service no longer accepts this as an input since Apr 25, 2019
Prefix pulumi.StringPtrInput `pulumi:"prefix"`
// Should zone redundancy be enabled for this region? Defaults to `false`.
ZoneRedundant pulumi.BoolPtrInput `pulumi:"zoneRedundant"`
}
func (AccountGeoLocationArgs) ElementType() reflect.Type {
return reflect.TypeOf((*AccountGeoLocation)(nil)).Elem()
}
func (i AccountGeoLocationArgs) ToAccountGeoLocationOutput() AccountGeoLocationOutput {
return i.ToAccountGeoLocationOutputWithContext(context.Background())
}
func (i AccountGeoLocationArgs) ToAccountGeoLocationOutputWithContext(ctx context.Context) AccountGeoLocationOutput {
return pulumi.ToOutputWithContext(ctx, i).(AccountGeoLocationOutput)
}
// AccountGeoLocationArrayInput is an input type that accepts AccountGeoLocationArray and AccountGeoLocationArrayOutput values.
// You can construct a concrete instance of `AccountGeoLocationArrayInput` via:
//
// AccountGeoLocationArray{ AccountGeoLocationArgs{...} }
type AccountGeoLocationArrayInput interface {
pulumi.Input
ToAccountGeoLocationArrayOutput() AccountGeoLocationArrayOutput
ToAccountGeoLocationArrayOutputWithContext(context.Context) AccountGeoLocationArrayOutput
}
type AccountGeoLocationArray []AccountGeoLocationInput
func (AccountGeoLocationArray) ElementType() reflect.Type {
return reflect.TypeOf((*[]AccountGeoLocation)(nil)).Elem()
}
func (i AccountGeoLocationArray) ToAccountGeoLocationArrayOutput() AccountGeoLocationArrayOutput {
return i.ToAccountGeoLocationArrayOutputWithContext(context.Background())
}
func (i AccountGeoLocationArray) ToAccountGeoLocationArrayOutputWithContext(ctx context.Context) AccountGeoLocationArrayOutput {
return pulumi.ToOutputWithContext(ctx, i).(AccountGeoLocationArrayOutput)
}
type AccountGeoLocationOutput struct{ *pulumi.OutputState }
func (AccountGeoLocationOutput) ElementType() reflect.Type {
return reflect.TypeOf((*AccountGeoLocation)(nil)).Elem()
}
func (o AccountGeoLocationOutput) ToAccountGeoLocationOutput() AccountGeoLocationOutput {
return o
}
func (o AccountGeoLocationOutput) ToAccountGeoLocationOutputWithContext(ctx context.Context) AccountGeoLocationOutput {
return o
}
// The failover priority of the region. A failover priority of `0` indicates a write region. The maximum value for a failover priority = (total number of regions - 1). Failover priority values must be unique for each of the regions in which the database account exists. Changing this causes the location to be re-provisioned and cannot be changed for the location with failover priority `0`.
func (o AccountGeoLocationOutput) FailoverPriority() pulumi.IntOutput {
return o.ApplyT(func(v AccountGeoLocation) int { return v.FailoverPriority }).(pulumi.IntOutput)
}
// The ID of the virtual network subnet.
func (o AccountGeoLocationOutput) Id() pulumi.StringPtrOutput {
return o.ApplyT(func(v AccountGeoLocation) *string { return v.Id }).(pulumi.StringPtrOutput)
}
// The name of the Azure region to host replicated data.
func (o AccountGeoLocationOutput) Location() pulumi.StringOutput {
return o.ApplyT(func(v AccountGeoLocation) string { return v.Location }).(pulumi.StringOutput)
}
// The string used to generate the document endpoints for this region. If not specified it defaults to `${cosmosdb_account.name}-${location}`. Changing this causes the location to be deleted and re-provisioned and cannot be changed for the location with failover priority `0`.
//
// Deprecated: This is deprecated because the service no longer accepts this as an input since Apr 25, 2019
func (o AccountGeoLocationOutput) Prefix() pulumi.StringPtrOutput {
return o.ApplyT(func(v AccountGeoLocation) *string { return v.Prefix }).(pulumi.StringPtrOutput)
}
// Should zone redundancy be enabled for this region? Defaults to `false`.
func (o AccountGeoLocationOutput) ZoneRedundant() pulumi.BoolPtrOutput {
return o.ApplyT(func(v AccountGeoLocation) *bool { return v.ZoneRedundant }).(pulumi.BoolPtrOutput)
}
type AccountGeoLocationArrayOutput struct{ *pulumi.OutputState }
func (AccountGeoLocationArrayOutput) ElementType() reflect.Type {
return reflect.TypeOf((*[]AccountGeoLocation)(nil)).Elem()
}
func (o AccountGeoLocationArrayOutput) ToAccountGeoLocationArrayOutput() AccountGeoLocationArrayOutput {
return o
}
func (o AccountGeoLocationArrayOutput) ToAccountGeoLocationArrayOutputWithContext(ctx context.Context) AccountGeoLocationArrayOutput {
return o
}
func (o AccountGeoLocationArrayOutput) Index(i pulumi.IntInput) AccountGeoLocationOutput {
return pulumi.All(o, i).ApplyT(func(vs []interface{}) AccountGeoLocation {
return vs[0].([]AccountGeoLocation)[vs[1].(int)]
}).(AccountGeoLocationOutput)
}
type AccountVirtualNetworkRule struct {
// The ID of the virtual network subnet.
Id string `pulumi:"id"`
// If set to true, the specified subnet will be added as a virtual network rule even if its CosmosDB service endpoint is not active. Defaults to `false`.
IgnoreMissingVnetServiceEndpoint *bool `pulumi:"ignoreMissingVnetServiceEndpoint"`
}
// AccountVirtualNetworkRuleInput is an input type that accepts AccountVirtualNetworkRuleArgs and AccountVirtualNetworkRuleOutput values.
// You can construct a concrete instance of `AccountVirtualNetworkRuleInput` via:
//
// AccountVirtualNetworkRuleArgs{...}
type AccountVirtualNetworkRuleInput interface {
pulumi.Input
ToAccountVirtualNetworkRuleOutput() AccountVirtualNetworkRuleOutput
ToAccountVirtualNetworkRuleOutputWithContext(context.Context) AccountVirtualNetworkRuleOutput
}
type AccountVirtualNetworkRuleArgs struct {
// The ID of the virtual network subnet.
Id pulumi.StringInput `pulumi:"id"`
// If set to true, the specified subnet will be added as a virtual network rule even if its CosmosDB service endpoint is not active. Defaults to `false`.
IgnoreMissingVnetServiceEndpoint pulumi.BoolPtrInput `pulumi:"ignoreMissingVnetServiceEndpoint"`
}
func (AccountVirtualNetworkRuleArgs) ElementType() reflect.Type {
return reflect.TypeOf((*AccountVirtualNetworkRule)(nil)).Elem()
}
func (i AccountVirtualNetworkRuleArgs) ToAccountVirtualNetworkRuleOutput() AccountVirtualNetworkRuleOutput {
return i.ToAccountVirtualNetworkRuleOutputWithContext(context.Background())
}
func (i AccountVirtualNetworkRuleArgs) ToAccountVirtualNetworkRuleOutputWithContext(ctx context.Context) AccountVirtualNetworkRuleOutput {
return pulumi.ToOutputWithContext(ctx, i).(AccountVirtualNetworkRuleOutput)
}
// AccountVirtualNetworkRuleArrayInput is an input type that accepts AccountVirtualNetworkRuleArray and AccountVirtualNetworkRuleArrayOutput values.
// You can construct a concrete instance of `AccountVirtualNetworkRuleArrayInput` via:
//
// AccountVirtualNetworkRuleArray{ AccountVirtualNetworkRuleArgs{...} }
type AccountVirtualNetworkRuleArrayInput interface {
pulumi.Input
ToAccountVirtualNetworkRuleArrayOutput() AccountVirtualNetworkRuleArrayOutput
ToAccountVirtualNetworkRuleArrayOutputWithContext(context.Context) AccountVirtualNetworkRuleArrayOutput
}
type AccountVirtualNetworkRuleArray []AccountVirtualNetworkRuleInput
func (AccountVirtualNetworkRuleArray) ElementType() reflect.Type {
return reflect.TypeOf((*[]AccountVirtualNetworkRule)(nil)).Elem()
}
func (i AccountVirtualNetworkRuleArray) ToAccountVirtualNetworkRuleArrayOutput() AccountVirtualNetworkRuleArrayOutput {
return i.ToAccountVirtualNetworkRuleArrayOutputWithContext(context.Background())
}
func (i AccountVirtualNetworkRuleArray) ToAccountVirtualNetworkRuleArrayOutputWithContext(ctx context.Context) AccountVirtualNetworkRuleArrayOutput {
return pulumi.ToOutputWithContext(ctx, i).(AccountVirtualNetworkRuleArrayOutput)
}
type AccountVirtualNetworkRuleOutput struct{ *pulumi.OutputState }
func (AccountVirtualNetworkRuleOutput) ElementType() reflect.Type {
return reflect.TypeOf((*AccountVirtualNetworkRule)(nil)).Elem()
}
func (o AccountVirtualNetworkRuleOutput) ToAccountVirtualNetworkRuleOutput() AccountVirtualNetworkRuleOutput {
return o
}
func (o AccountVirtualNetworkRuleOutput) ToAccountVirtualNetworkRuleOutputWithContext(ctx context.Context) AccountVirtualNetworkRuleOutput {
return o
}
// The ID of the virtual network subnet.
func (o AccountVirtualNetworkRuleOutput) Id() pulumi.StringOutput {
return o.ApplyT(func(v AccountVirtualNetworkRule) string { return v.Id }).(pulumi.StringOutput)
}
// If set to true, the specified subnet will be added as a virtual network rule even if its CosmosDB service endpoint is not active. Defaults to `false`.
func (o AccountVirtualNetworkRuleOutput) IgnoreMissingVnetServiceEndpoint() pulumi.BoolPtrOutput {
return o.ApplyT(func(v AccountVirtualNetworkRule) *bool { return v.IgnoreMissingVnetServiceEndpoint }).(pulumi.BoolPtrOutput)
}
type AccountVirtualNetworkRuleArrayOutput struct{ *pulumi.OutputState }
func (AccountVirtualNetworkRuleArrayOutput) ElementType() reflect.Type {
return reflect.TypeOf((*[]AccountVirtualNetworkRule)(nil)).Elem()
}
func (o AccountVirtualNetworkRuleArrayOutput) ToAccountVirtualNetworkRuleArrayOutput() AccountVirtualNetworkRuleArrayOutput {
return o
}
func (o AccountVirtualNetworkRuleArrayOutput) ToAccountVirtualNetworkRuleArrayOutputWithContext(ctx context.Context) AccountVirtualNetworkRuleArrayOutput {
return o
}
func (o AccountVirtualNetworkRuleArrayOutput) Index(i pulumi.IntInput) AccountVirtualNetworkRuleOutput {
return pulumi.All(o, i).ApplyT(func(vs []interface{}) AccountVirtualNetworkRule {
return vs[0].([]AccountVirtualNetworkRule)[vs[1].(int)]
}).(AccountVirtualNetworkRuleOutput)
}
type CassandraKeyspaceAutoscaleSettings struct {
// The maximum throughput of the Cassandra KeySpace (RU/s). Must be between `4,000` and `1,000,000`. Must be set in increments of `1,000`. Conflicts with `throughput`.
MaxThroughput *int `pulumi:"maxThroughput"`
}
// CassandraKeyspaceAutoscaleSettingsInput is an input type that accepts CassandraKeyspaceAutoscaleSettingsArgs and CassandraKeyspaceAutoscaleSettingsOutput values.
// You can construct a concrete instance of `CassandraKeyspaceAutoscaleSettingsInput` via:
//
// CassandraKeyspaceAutoscaleSettingsArgs{...}
type CassandraKeyspaceAutoscaleSettingsInput interface {
pulumi.Input
ToCassandraKeyspaceAutoscaleSettingsOutput() CassandraKeyspaceAutoscaleSettingsOutput
ToCassandraKeyspaceAutoscaleSettingsOutputWithContext(context.Context) CassandraKeyspaceAutoscaleSettingsOutput
}
type CassandraKeyspaceAutoscaleSettingsArgs struct {
// The maximum throughput of the Cassandra KeySpace (RU/s). Must be between `4,000` and `1,000,000`. Must be set in increments of `1,000`. Conflicts with `throughput`.
MaxThroughput pulumi.IntPtrInput `pulumi:"maxThroughput"`
}
func (CassandraKeyspaceAutoscaleSettingsArgs) ElementType() reflect.Type {
return reflect.TypeOf((*CassandraKeyspaceAutoscaleSettings)(nil)).Elem()
}
func (i CassandraKeyspaceAutoscaleSettingsArgs) ToCassandraKeyspaceAutoscaleSettingsOutput() CassandraKeyspaceAutoscaleSettingsOutput {
return i.ToCassandraKeyspaceAutoscaleSettingsOutputWithContext(context.Background())
}
func (i CassandraKeyspaceAutoscaleSettingsArgs) ToCassandraKeyspaceAutoscaleSettingsOutputWithContext(ctx context.Context) CassandraKeyspaceAutoscaleSettingsOutput {
return pulumi.ToOutputWithContext(ctx, i).(CassandraKeyspaceAutoscaleSettingsOutput)
}
func (i CassandraKeyspaceAutoscaleSettingsArgs) ToCassandraKeyspaceAutoscaleSettingsPtrOutput() CassandraKeyspaceAutoscaleSettingsPtrOutput {
return i.ToCassandraKeyspaceAutoscaleSettingsPtrOutputWithContext(context.Background())
}
func (i CassandraKeyspaceAutoscaleSettingsArgs) ToCassandraKeyspaceAutoscaleSettingsPtrOutputWithContext(ctx context.Context) CassandraKeyspaceAutoscaleSettingsPtrOutput {
return pulumi.ToOutputWithContext(ctx, i).(CassandraKeyspaceAutoscaleSettingsOutput).ToCassandraKeyspaceAutoscaleSettingsPtrOutputWithContext(ctx)
}
// CassandraKeyspaceAutoscaleSettingsPtrInput is an input type that accepts CassandraKeyspaceAutoscaleSettingsArgs, CassandraKeyspaceAutoscaleSettingsPtr and CassandraKeyspaceAutoscaleSettingsPtrOutput values.
// You can construct a concrete instance of `CassandraKeyspaceAutoscaleSettingsPtrInput` via:
//
// CassandraKeyspaceAutoscaleSettingsArgs{...}
//
// or:
//
// nil
type CassandraKeyspaceAutoscaleSettingsPtrInput interface {
pulumi.Input
ToCassandraKeyspaceAutoscaleSettingsPtrOutput() CassandraKeyspaceAutoscaleSettingsPtrOutput
ToCassandraKeyspaceAutoscaleSettingsPtrOutputWithContext(context.Context) CassandraKeyspaceAutoscaleSettingsPtrOutput
}
type cassandraKeyspaceAutoscaleSettingsPtrType CassandraKeyspaceAutoscaleSettingsArgs
func CassandraKeyspaceAutoscaleSettingsPtr(v *CassandraKeyspaceAutoscaleSettingsArgs) CassandraKeyspaceAutoscaleSettingsPtrInput {
return (*cassandraKeyspaceAutoscaleSettingsPtrType)(v)
}
func (*cassandraKeyspaceAutoscaleSettingsPtrType) ElementType() reflect.Type {
return reflect.TypeOf((**CassandraKeyspaceAutoscaleSettings)(nil)).Elem()
}
func (i *cassandraKeyspaceAutoscaleSettingsPtrType) ToCassandraKeyspaceAutoscaleSettingsPtrOutput() CassandraKeyspaceAutoscaleSettingsPtrOutput {
return i.ToCassandraKeyspaceAutoscaleSettingsPtrOutputWithContext(context.Background())
}
func (i *cassandraKeyspaceAutoscaleSettingsPtrType) ToCassandraKeyspaceAutoscaleSettingsPtrOutputWithContext(ctx context.Context) CassandraKeyspaceAutoscaleSettingsPtrOutput {
return pulumi.ToOutputWithContext(ctx, i).(CassandraKeyspaceAutoscaleSettingsPtrOutput)
}
type CassandraKeyspaceAutoscaleSettingsOutput struct{ *pulumi.OutputState }
func (CassandraKeyspaceAutoscaleSettingsOutput) ElementType() reflect.Type {
return reflect.TypeOf((*CassandraKeyspaceAutoscaleSettings)(nil)).Elem()
}
func (o CassandraKeyspaceAutoscaleSettingsOutput) ToCassandraKeyspaceAutoscaleSettingsOutput() CassandraKeyspaceAutoscaleSettingsOutput {
return o
}
func (o CassandraKeyspaceAutoscaleSettingsOutput) ToCassandraKeyspaceAutoscaleSettingsOutputWithContext(ctx context.Context) CassandraKeyspaceAutoscaleSettingsOutput {
return o
}
func (o CassandraKeyspaceAutoscaleSettingsOutput) ToCassandraKeyspaceAutoscaleSettingsPtrOutput() CassandraKeyspaceAutoscaleSettingsPtrOutput {
return o.ToCassandraKeyspaceAutoscaleSettingsPtrOutputWithContext(context.Background())
}
func (o CassandraKeyspaceAutoscaleSettingsOutput) ToCassandraKeyspaceAutoscaleSettingsPtrOutputWithContext(ctx context.Context) CassandraKeyspaceAutoscaleSettingsPtrOutput {
return o.ApplyT(func(v CassandraKeyspaceAutoscaleSettings) *CassandraKeyspaceAutoscaleSettings {
return &v
}).(CassandraKeyspaceAutoscaleSettingsPtrOutput)
}
// The maximum throughput of the Cassandra KeySpace (RU/s). Must be between `4,000` and `1,000,000`. Must be set in increments of `1,000`. Conflicts with `throughput`.
func (o CassandraKeyspaceAutoscaleSettingsOutput) MaxThroughput() pulumi.IntPtrOutput {
return o.ApplyT(func(v CassandraKeyspaceAutoscaleSettings) *int { return v.MaxThroughput }).(pulumi.IntPtrOutput)
}
type CassandraKeyspaceAutoscaleSettingsPtrOutput struct{ *pulumi.OutputState }
func (CassandraKeyspaceAutoscaleSettingsPtrOutput) ElementType() reflect.Type {
return reflect.TypeOf((**CassandraKeyspaceAutoscaleSettings)(nil)).Elem()
}
func (o CassandraKeyspaceAutoscaleSettingsPtrOutput) ToCassandraKeyspaceAutoscaleSettingsPtrOutput() CassandraKeyspaceAutoscaleSettingsPtrOutput {
return o
}
func (o CassandraKeyspaceAutoscaleSettingsPtrOutput) ToCassandraKeyspaceAutoscaleSettingsPtrOutputWithContext(ctx context.Context) CassandraKeyspaceAutoscaleSettingsPtrOutput {
return o
}
func (o CassandraKeyspaceAutoscaleSettingsPtrOutput) Elem() CassandraKeyspaceAutoscaleSettingsOutput {
return o.ApplyT(func(v *CassandraKeyspaceAutoscaleSettings) CassandraKeyspaceAutoscaleSettings { return *v }).(CassandraKeyspaceAutoscaleSettingsOutput)
}
// The maximum throughput of the Cassandra KeySpace (RU/s). Must be between `4,000` and `1,000,000`. Must be set in increments of `1,000`. Conflicts with `throughput`.
func (o CassandraKeyspaceAutoscaleSettingsPtrOutput) MaxThroughput() pulumi.IntPtrOutput {
return o.ApplyT(func(v *CassandraKeyspaceAutoscaleSettings) *int {
if v == nil {
return nil
}
return v.MaxThroughput
}).(pulumi.IntPtrOutput)
}
type CassandraTableAutoscaleSettings struct {
// The maximum throughput of the Cassandra Table (RU/s). Must be between `4,000` and `1,000,000`. Must be set in increments of `1,000`. Conflicts with `throughput`.
MaxThroughput *int `pulumi:"maxThroughput"`
}
// CassandraTableAutoscaleSettingsInput is an input type that accepts CassandraTableAutoscaleSettingsArgs and CassandraTableAutoscaleSettingsOutput values.
// You can construct a concrete instance of `CassandraTableAutoscaleSettingsInput` via:
//
// CassandraTableAutoscaleSettingsArgs{...}
type CassandraTableAutoscaleSettingsInput interface {
pulumi.Input
ToCassandraTableAutoscaleSettingsOutput() CassandraTableAutoscaleSettingsOutput
ToCassandraTableAutoscaleSettingsOutputWithContext(context.Context) CassandraTableAutoscaleSettingsOutput
}
type CassandraTableAutoscaleSettingsArgs struct {
// The maximum throughput of the Cassandra Table (RU/s). Must be between `4,000` and `1,000,000`. Must be set in increments of `1,000`. Conflicts with `throughput`.
MaxThroughput pulumi.IntPtrInput `pulumi:"maxThroughput"`
}
func (CassandraTableAutoscaleSettingsArgs) ElementType() reflect.Type {
return reflect.TypeOf((*CassandraTableAutoscaleSettings)(nil)).Elem()
}
func (i CassandraTableAutoscaleSettingsArgs) ToCassandraTableAutoscaleSettingsOutput() CassandraTableAutoscaleSettingsOutput {
return i.ToCassandraTableAutoscaleSettingsOutputWithContext(context.Background())
}
func (i CassandraTableAutoscaleSettingsArgs) ToCassandraTableAutoscaleSettingsOutputWithContext(ctx context.Context) CassandraTableAutoscaleSettingsOutput {
return pulumi.ToOutputWithContext(ctx, i).(CassandraTableAutoscaleSettingsOutput)
}
func (i CassandraTableAutoscaleSettingsArgs) ToCassandraTableAutoscaleSettingsPtrOutput() CassandraTableAutoscaleSettingsPtrOutput {
return i.ToCassandraTableAutoscaleSettingsPtrOutputWithContext(context.Background())
}
func (i CassandraTableAutoscaleSettingsArgs) ToCassandraTableAutoscaleSettingsPtrOutputWithContext(ctx context.Context) CassandraTableAutoscaleSettingsPtrOutput {
return pulumi.ToOutputWithContext(ctx, i).(CassandraTableAutoscaleSettingsOutput).ToCassandraTableAutoscaleSettingsPtrOutputWithContext(ctx)
}
// CassandraTableAutoscaleSettingsPtrInput is an input type that accepts CassandraTableAutoscaleSettingsArgs, CassandraTableAutoscaleSettingsPtr and CassandraTableAutoscaleSettingsPtrOutput values.
// You can construct a concrete instance of `CassandraTableAutoscaleSettingsPtrInput` via:
//
// CassandraTableAutoscaleSettingsArgs{...}
//
// or:
//
// nil
type CassandraTableAutoscaleSettingsPtrInput interface {
pulumi.Input
ToCassandraTableAutoscaleSettingsPtrOutput() CassandraTableAutoscaleSettingsPtrOutput
ToCassandraTableAutoscaleSettingsPtrOutputWithContext(context.Context) CassandraTableAutoscaleSettingsPtrOutput
}
type cassandraTableAutoscaleSettingsPtrType CassandraTableAutoscaleSettingsArgs
func CassandraTableAutoscaleSettingsPtr(v *CassandraTableAutoscaleSettingsArgs) CassandraTableAutoscaleSettingsPtrInput {
return (*cassandraTableAutoscaleSettingsPtrType)(v)
}
func (*cassandraTableAutoscaleSettingsPtrType) ElementType() reflect.Type {
return reflect.TypeOf((**CassandraTableAutoscaleSettings)(nil)).Elem()
}
func (i *cassandraTableAutoscaleSettingsPtrType) ToCassandraTableAutoscaleSettingsPtrOutput() CassandraTableAutoscaleSettingsPtrOutput {
return i.ToCassandraTableAutoscaleSettingsPtrOutputWithContext(context.Background())
}
func (i *cassandraTableAutoscaleSettingsPtrType) ToCassandraTableAutoscaleSettingsPtrOutputWithContext(ctx context.Context) CassandraTableAutoscaleSettingsPtrOutput {
return pulumi.ToOutputWithContext(ctx, i).(CassandraTableAutoscaleSettingsPtrOutput)
}
type CassandraTableAutoscaleSettingsOutput struct{ *pulumi.OutputState }
func (CassandraTableAutoscaleSettingsOutput) ElementType() reflect.Type {
return reflect.TypeOf((*CassandraTableAutoscaleSettings)(nil)).Elem()
}
func (o CassandraTableAutoscaleSettingsOutput) ToCassandraTableAutoscaleSettingsOutput() CassandraTableAutoscaleSettingsOutput {
return o
}
func (o CassandraTableAutoscaleSettingsOutput) ToCassandraTableAutoscaleSettingsOutputWithContext(ctx context.Context) CassandraTableAutoscaleSettingsOutput {
return o
}
func (o CassandraTableAutoscaleSettingsOutput) ToCassandraTableAutoscaleSettingsPtrOutput() CassandraTableAutoscaleSettingsPtrOutput {
return o.ToCassandraTableAutoscaleSettingsPtrOutputWithContext(context.Background())
}
func (o CassandraTableAutoscaleSettingsOutput) ToCassandraTableAutoscaleSettingsPtrOutputWithContext(ctx context.Context) CassandraTableAutoscaleSettingsPtrOutput {
return o.ApplyT(func(v CassandraTableAutoscaleSettings) *CassandraTableAutoscaleSettings {
return &v
}).(CassandraTableAutoscaleSettingsPtrOutput)
}
// The maximum throughput of the Cassandra Table (RU/s). Must be between `4,000` and `1,000,000`. Must be set in increments of `1,000`. Conflicts with `throughput`.
func (o CassandraTableAutoscaleSettingsOutput) MaxThroughput() pulumi.IntPtrOutput {
return o.ApplyT(func(v CassandraTableAutoscaleSettings) *int { return v.MaxThroughput }).(pulumi.IntPtrOutput)
}
type CassandraTableAutoscaleSettingsPtrOutput struct{ *pulumi.OutputState }
func (CassandraTableAutoscaleSettingsPtrOutput) ElementType() reflect.Type {
return reflect.TypeOf((**CassandraTableAutoscaleSettings)(nil)).Elem()
}
func (o CassandraTableAutoscaleSettingsPtrOutput) ToCassandraTableAutoscaleSettingsPtrOutput() CassandraTableAutoscaleSettingsPtrOutput {
return o
}
func (o CassandraTableAutoscaleSettingsPtrOutput) ToCassandraTableAutoscaleSettingsPtrOutputWithContext(ctx context.Context) CassandraTableAutoscaleSettingsPtrOutput {
return o
}
func (o CassandraTableAutoscaleSettingsPtrOutput) Elem() CassandraTableAutoscaleSettingsOutput {
return o.ApplyT(func(v *CassandraTableAutoscaleSettings) CassandraTableAutoscaleSettings { return *v }).(CassandraTableAutoscaleSettingsOutput)
}
// The maximum throughput of the Cassandra Table (RU/s). Must be between `4,000` and `1,000,000`. Must be set in increments of `1,000`. Conflicts with `throughput`.
func (o CassandraTableAutoscaleSettingsPtrOutput) MaxThroughput() pulumi.IntPtrOutput {
return o.ApplyT(func(v *CassandraTableAutoscaleSettings) *int {
if v == nil {
return nil
}
return v.MaxThroughput
}).(pulumi.IntPtrOutput)
}
type CassandraTableSchema struct {
// One or more `clusterKey` blocks as defined below.
ClusterKeys []CassandraTableSchemaClusterKey `pulumi:"clusterKeys"`
// One or more `column` blocks as defined below.
Columns []CassandraTableSchemaColumn `pulumi:"columns"`
// One or more `partitionKey` blocks as defined below.
PartitionKeys []CassandraTableSchemaPartitionKey `pulumi:"partitionKeys"`
}
// CassandraTableSchemaInput is an input type that accepts CassandraTableSchemaArgs and CassandraTableSchemaOutput values.
// You can construct a concrete instance of `CassandraTableSchemaInput` via:
//
// CassandraTableSchemaArgs{...}
type CassandraTableSchemaInput interface {
pulumi.Input
ToCassandraTableSchemaOutput() CassandraTableSchemaOutput
ToCassandraTableSchemaOutputWithContext(context.Context) CassandraTableSchemaOutput
}
type CassandraTableSchemaArgs struct {
// One or more `clusterKey` blocks as defined below.
ClusterKeys CassandraTableSchemaClusterKeyArrayInput `pulumi:"clusterKeys"`
// One or more `column` blocks as defined below.
Columns CassandraTableSchemaColumnArrayInput `pulumi:"columns"`
// One or more `partitionKey` blocks as defined below.
PartitionKeys CassandraTableSchemaPartitionKeyArrayInput `pulumi:"partitionKeys"`
}
func (CassandraTableSchemaArgs) ElementType() reflect.Type {
return reflect.TypeOf((*CassandraTableSchema)(nil)).Elem()
}
func (i CassandraTableSchemaArgs) ToCassandraTableSchemaOutput() CassandraTableSchemaOutput {
return i.ToCassandraTableSchemaOutputWithContext(context.Background())
}
func (i CassandraTableSchemaArgs) ToCassandraTableSchemaOutputWithContext(ctx context.Context) CassandraTableSchemaOutput {
return pulumi.ToOutputWithContext(ctx, i).(CassandraTableSchemaOutput)
}
func (i CassandraTableSchemaArgs) ToCassandraTableSchemaPtrOutput() CassandraTableSchemaPtrOutput {
return i.ToCassandraTableSchemaPtrOutputWithContext(context.Background())
}
func (i CassandraTableSchemaArgs) ToCassandraTableSchemaPtrOutputWithContext(ctx context.Context) CassandraTableSchemaPtrOutput {
return pulumi.ToOutputWithContext(ctx, i).(CassandraTableSchemaOutput).ToCassandraTableSchemaPtrOutputWithContext(ctx)
}
// CassandraTableSchemaPtrInput is an input type that accepts CassandraTableSchemaArgs, CassandraTableSchemaPtr and CassandraTableSchemaPtrOutput values.
// You can construct a concrete instance of `CassandraTableSchemaPtrInput` via:
//
// CassandraTableSchemaArgs{...}
//
// or:
//
// nil
type CassandraTableSchemaPtrInput interface {
pulumi.Input
ToCassandraTableSchemaPtrOutput() CassandraTableSchemaPtrOutput
ToCassandraTableSchemaPtrOutputWithContext(context.Context) CassandraTableSchemaPtrOutput
}
type cassandraTableSchemaPtrType CassandraTableSchemaArgs
func CassandraTableSchemaPtr(v *CassandraTableSchemaArgs) CassandraTableSchemaPtrInput {
return (*cassandraTableSchemaPtrType)(v)
}
func (*cassandraTableSchemaPtrType) ElementType() reflect.Type {
return reflect.TypeOf((**CassandraTableSchema)(nil)).Elem()
}
func (i *cassandraTableSchemaPtrType) ToCassandraTableSchemaPtrOutput() CassandraTableSchemaPtrOutput {
return i.ToCassandraTableSchemaPtrOutputWithContext(context.Background())
}
func (i *cassandraTableSchemaPtrType) ToCassandraTableSchemaPtrOutputWithContext(ctx context.Context) CassandraTableSchemaPtrOutput {
return pulumi.ToOutputWithContext(ctx, i).(CassandraTableSchemaPtrOutput)
}
type CassandraTableSchemaOutput struct{ *pulumi.OutputState }
func (CassandraTableSchemaOutput) ElementType() reflect.Type {
return reflect.TypeOf((*CassandraTableSchema)(nil)).Elem()
}
func (o CassandraTableSchemaOutput) ToCassandraTableSchemaOutput() CassandraTableSchemaOutput {
return o
}
func (o CassandraTableSchemaOutput) ToCassandraTableSchemaOutputWithContext(ctx context.Context) CassandraTableSchemaOutput {
return o
}
func (o CassandraTableSchemaOutput) ToCassandraTableSchemaPtrOutput() CassandraTableSchemaPtrOutput {
return o.ToCassandraTableSchemaPtrOutputWithContext(context.Background())
}
func (o CassandraTableSchemaOutput) ToCassandraTableSchemaPtrOutputWithContext(ctx context.Context) CassandraTableSchemaPtrOutput {
return o.ApplyT(func(v CassandraTableSchema) *CassandraTableSchema {
return &v
}).(CassandraTableSchemaPtrOutput)
}
// One or more `clusterKey` blocks as defined below.
func (o CassandraTableSchemaOutput) ClusterKeys() CassandraTableSchemaClusterKeyArrayOutput {
return o.ApplyT(func(v CassandraTableSchema) []CassandraTableSchemaClusterKey { return v.ClusterKeys }).(CassandraTableSchemaClusterKeyArrayOutput)
}
// One or more `column` blocks as defined below.
func (o CassandraTableSchemaOutput) Columns() CassandraTableSchemaColumnArrayOutput {
return o.ApplyT(func(v CassandraTableSchema) []CassandraTableSchemaColumn { return v.Columns }).(CassandraTableSchemaColumnArrayOutput)
}
// One or more `partitionKey` blocks as defined below.
func (o CassandraTableSchemaOutput) PartitionKeys() CassandraTableSchemaPartitionKeyArrayOutput {
return o.ApplyT(func(v CassandraTableSchema) []CassandraTableSchemaPartitionKey { return v.PartitionKeys }).(CassandraTableSchemaPartitionKeyArrayOutput)
}
type CassandraTableSchemaPtrOutput struct{ *pulumi.OutputState }
func (CassandraTableSchemaPtrOutput) ElementType() reflect.Type {
return reflect.TypeOf((**CassandraTableSchema)(nil)).Elem()
}
func (o CassandraTableSchemaPtrOutput) ToCassandraTableSchemaPtrOutput() CassandraTableSchemaPtrOutput {
return o
}
func (o CassandraTableSchemaPtrOutput) ToCassandraTableSchemaPtrOutputWithContext(ctx context.Context) CassandraTableSchemaPtrOutput {
return o
}
func (o CassandraTableSchemaPtrOutput) Elem() CassandraTableSchemaOutput {
return o.ApplyT(func(v *CassandraTableSchema) CassandraTableSchema { return *v }).(CassandraTableSchemaOutput)
}
// One or more `clusterKey` blocks as defined below.
func (o CassandraTableSchemaPtrOutput) ClusterKeys() CassandraTableSchemaClusterKeyArrayOutput {
return o.ApplyT(func(v *CassandraTableSchema) []CassandraTableSchemaClusterKey {
if v == nil {
return nil
}
return v.ClusterKeys
}).(CassandraTableSchemaClusterKeyArrayOutput)
}
// One or more `column` blocks as defined below.
func (o CassandraTableSchemaPtrOutput) Columns() CassandraTableSchemaColumnArrayOutput {
return o.ApplyT(func(v *CassandraTableSchema) []CassandraTableSchemaColumn {
if v == nil {
return nil
}
return v.Columns
}).(CassandraTableSchemaColumnArrayOutput)
}
// One or more `partitionKey` blocks as defined below.
func (o CassandraTableSchemaPtrOutput) PartitionKeys() CassandraTableSchemaPartitionKeyArrayOutput {
return o.ApplyT(func(v *CassandraTableSchema) []CassandraTableSchemaPartitionKey {
if v == nil {
return nil
}
return v.PartitionKeys
}).(CassandraTableSchemaPartitionKeyArrayOutput)
}
type CassandraTableSchemaClusterKey struct {
// Name of the cluster key to be created.
Name string `pulumi:"name"`
// Order of the key. Currently supported values are `Asc` and `Desc`.
OrderBy string `pulumi:"orderBy"`
}
// CassandraTableSchemaClusterKeyInput is an input type that accepts CassandraTableSchemaClusterKeyArgs and CassandraTableSchemaClusterKeyOutput values.
// You can construct a concrete instance of `CassandraTableSchemaClusterKeyInput` via:
//
// CassandraTableSchemaClusterKeyArgs{...}
type CassandraTableSchemaClusterKeyInput interface {
pulumi.Input
ToCassandraTableSchemaClusterKeyOutput() CassandraTableSchemaClusterKeyOutput
ToCassandraTableSchemaClusterKeyOutputWithContext(context.Context) CassandraTableSchemaClusterKeyOutput
}
type CassandraTableSchemaClusterKeyArgs struct {
// Name of the cluster key to be created.
Name pulumi.StringInput `pulumi:"name"`
// Order of the key. Currently supported values are `Asc` and `Desc`.
OrderBy pulumi.StringInput `pulumi:"orderBy"`
}
func (CassandraTableSchemaClusterKeyArgs) ElementType() reflect.Type {
return reflect.TypeOf((*CassandraTableSchemaClusterKey)(nil)).Elem()
}
func (i CassandraTableSchemaClusterKeyArgs) ToCassandraTableSchemaClusterKeyOutput() CassandraTableSchemaClusterKeyOutput {
return i.ToCassandraTableSchemaClusterKeyOutputWithContext(context.Background())
}
func (i CassandraTableSchemaClusterKeyArgs) ToCassandraTableSchemaClusterKeyOutputWithContext(ctx context.Context) CassandraTableSchemaClusterKeyOutput {
return pulumi.ToOutputWithContext(ctx, i).(CassandraTableSchemaClusterKeyOutput)
}
// CassandraTableSchemaClusterKeyArrayInput is an input type that accepts CassandraTableSchemaClusterKeyArray and CassandraTableSchemaClusterKeyArrayOutput values.
// You can construct a concrete instance of `CassandraTableSchemaClusterKeyArrayInput` via:
//
// CassandraTableSchemaClusterKeyArray{ CassandraTableSchemaClusterKeyArgs{...} }
type CassandraTableSchemaClusterKeyArrayInput interface {
pulumi.Input
ToCassandraTableSchemaClusterKeyArrayOutput() CassandraTableSchemaClusterKeyArrayOutput
ToCassandraTableSchemaClusterKeyArrayOutputWithContext(context.Context) CassandraTableSchemaClusterKeyArrayOutput