generated from pulumi/pulumi-tf-provider-boilerplate
/
instance.go
1070 lines (994 loc) · 47.4 KB
/
instance.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/pkg/errors"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
// Manage RDS instance resource within HuaweiCloud.
//
// ## Example Usage
// ### create a single db instance
//
// ```go
// package main
//
// import (
//
// "github.com/huaweicloud/pulumi-huaweicloud/sdk/go/huaweicloud/Rds"
// "github.com/pulumi/pulumi-huaweicloud/sdk/go/huaweicloud/Rds"
// "github.com/pulumi/pulumi/sdk/v3/go/pulumi"
// "github.com/pulumi/pulumi/sdk/v3/go/pulumi/config"
//
// )
//
// func main() {
// pulumi.Run(func(ctx *pulumi.Context) error {
// cfg := config.New(ctx, "")
// vpcId := cfg.RequireObject("vpcId")
// subnetId := cfg.RequireObject("subnetId")
// secgroupId := cfg.RequireObject("secgroupId")
// availabilityZone := cfg.RequireObject("availabilityZone")
// _, err := Rds.NewInstance(ctx, "instance", &Rds.InstanceArgs{
// Flavor: pulumi.String("rds.pg.n1.large.2"),
// VpcId: pulumi.Any(vpcId),
// SubnetId: pulumi.Any(subnetId),
// SecurityGroupId: pulumi.Any(secgroupId),
// AvailabilityZones: pulumi.StringArray{
// pulumi.Any(availabilityZone),
// },
// Db: &rds.InstanceDbArgs{
// Type: pulumi.String("PostgreSQL"),
// Version: pulumi.String("12"),
// Password: pulumi.String("Huangwei!120521"),
// },
// Volume: &rds.InstanceVolumeArgs{
// Type: pulumi.String("ULTRAHIGH"),
// Size: pulumi.Int(100),
// },
// BackupStrategy: &rds.InstanceBackupStrategyArgs{
// StartTime: pulumi.String("08:00-09:00"),
// KeepDays: pulumi.Int(1),
// },
// })
// if err != nil {
// return err
// }
// return nil
// })
// }
//
// ```
// ### create a primary/standby db instance
//
// ```go
// package main
//
// import (
//
// "github.com/huaweicloud/pulumi-huaweicloud/sdk/go/huaweicloud/Rds"
// "github.com/pulumi/pulumi-huaweicloud/sdk/go/huaweicloud/Rds"
// "github.com/pulumi/pulumi/sdk/v3/go/pulumi"
// "github.com/pulumi/pulumi/sdk/v3/go/pulumi/config"
//
// )
//
// func main() {
// pulumi.Run(func(ctx *pulumi.Context) error {
// cfg := config.New(ctx, "")
// vpcId := cfg.RequireObject("vpcId")
// subnetId := cfg.RequireObject("subnetId")
// secgroupId := cfg.RequireObject("secgroupId")
// availabilityZone1 := cfg.RequireObject("availabilityZone1")
// availabilityZone2 := cfg.RequireObject("availabilityZone2")
// _, err := Rds.NewInstance(ctx, "instance", &Rds.InstanceArgs{
// Flavor: pulumi.String("rds.pg.n1.large.2.ha"),
// HaReplicationMode: pulumi.String("async"),
// VpcId: pulumi.Any(vpcId),
// SubnetId: pulumi.Any(subnetId),
// SecurityGroupId: pulumi.Any(secgroupId),
// AvailabilityZones: pulumi.StringArray{
// pulumi.Any(_var.Availability_zone_1),
// pulumi.Any(_var.Availability_zone_2),
// },
// Db: &rds.InstanceDbArgs{
// Type: pulumi.String("PostgreSQL"),
// Version: pulumi.String("12"),
// Password: pulumi.String("Huangwei!120521"),
// },
// Volume: &rds.InstanceVolumeArgs{
// Type: pulumi.String("ULTRAHIGH"),
// Size: pulumi.Int(100),
// },
// BackupStrategy: &rds.InstanceBackupStrategyArgs{
// StartTime: pulumi.String("08:00-09:00"),
// KeepDays: pulumi.Int(1),
// },
// })
// if err != nil {
// return err
// }
// return nil
// })
// }
//
// ```
// ### create a single db instance with encrypted volume
//
// ```go
// package main
//
// import (
//
// "github.com/huaweicloud/pulumi-huaweicloud/sdk/go/huaweicloud/Rds"
// "github.com/pulumi/pulumi-huaweicloud/sdk/go/huaweicloud/Rds"
// "github.com/pulumi/pulumi/sdk/v3/go/pulumi"
// "github.com/pulumi/pulumi/sdk/v3/go/pulumi/config"
//
// )
//
// func main() {
// pulumi.Run(func(ctx *pulumi.Context) error {
// cfg := config.New(ctx, "")
// vpcId := cfg.RequireObject("vpcId")
// subnetId := cfg.RequireObject("subnetId")
// secgroupId := cfg.RequireObject("secgroupId")
// availabilityZone := cfg.RequireObject("availabilityZone")
// kmsId := cfg.RequireObject("kmsId")
// _, err := Rds.NewInstance(ctx, "instance", &Rds.InstanceArgs{
// Flavor: pulumi.String("rds.pg.n1.large.2"),
// VpcId: pulumi.Any(vpcId),
// SubnetId: pulumi.Any(subnetId),
// SecurityGroupId: pulumi.Any(secgroupId),
// AvailabilityZones: pulumi.StringArray{
// pulumi.Any(availabilityZone),
// },
// Db: &rds.InstanceDbArgs{
// Type: pulumi.String("PostgreSQL"),
// Version: pulumi.String("12"),
// Password: pulumi.String("Huangwei!120521"),
// },
// Volume: &rds.InstanceVolumeArgs{
// Type: pulumi.String("ULTRAHIGH"),
// Size: pulumi.Int(100),
// DiskEncryptionId: pulumi.Any(kmsId),
// },
// BackupStrategy: &rds.InstanceBackupStrategyArgs{
// StartTime: pulumi.String("08:00-09:00"),
// KeepDays: pulumi.Int(1),
// },
// })
// if err != nil {
// return err
// }
// return nil
// })
// }
//
// ```
// ### create db instance with customized parameters
//
// ```go
// package main
//
// import (
//
// "github.com/huaweicloud/pulumi-huaweicloud/sdk/go/huaweicloud/Rds"
// "github.com/pulumi/pulumi-huaweicloud/sdk/go/huaweicloud/Rds"
// "github.com/pulumi/pulumi/sdk/v3/go/pulumi"
// "github.com/pulumi/pulumi/sdk/v3/go/pulumi/config"
//
// )
//
// func main() {
// pulumi.Run(func(ctx *pulumi.Context) error {
// cfg := config.New(ctx, "")
// vpcId := cfg.RequireObject("vpcId")
// subnetId := cfg.RequireObject("subnetId")
// secgroupId := cfg.RequireObject("secgroupId")
// availabilityZone := cfg.RequireObject("availabilityZone")
// _, err := Rds.NewInstance(ctx, "instance", &Rds.InstanceArgs{
// Flavor: pulumi.String("rds.pg.n1.large.2"),
// VpcId: pulumi.Any(vpcId),
// SubnetId: pulumi.Any(subnetId),
// SecurityGroupId: pulumi.Any(secgroupId),
// AvailabilityZones: pulumi.StringArray{
// pulumi.Any(availabilityZone),
// },
// Db: &rds.InstanceDbArgs{
// Type: pulumi.String("PostgreSQL"),
// Version: pulumi.String("12"),
// Password: pulumi.String("Huangwei!120521"),
// },
// Volume: &rds.InstanceVolumeArgs{
// Type: pulumi.String("ULTRAHIGH"),
// Size: pulumi.Int(100),
// },
// BackupStrategy: &rds.InstanceBackupStrategyArgs{
// StartTime: pulumi.String("08:00-09:00"),
// KeepDays: pulumi.Int(1),
// },
// Parameters: rds.InstanceParameterArray{
// &rds.InstanceParameterArgs{
// Name: pulumi.String("div_precision_increment"),
// Value: pulumi.String("12"),
// },
// &rds.InstanceParameterArgs{
// Name: pulumi.String("connect_timeout"),
// Value: pulumi.String("13"),
// },
// },
// })
// if err != nil {
// return err
// }
// return nil
// })
// }
//
// ```
//
// ## Import
//
// RDS instance can be imported using the `id`, e.g.
//
// ```sh
//
// $ pulumi import huaweicloud:Rds/instance:Instance instance_1 52e4b497d2c94df88a2eb4c661314903in01
//
// ```
//
// Note that the imported state may not be identical to your resource definition, due to some attributes missing from the API response, security or some other reason. The missing attributes include`db`, `collation`, `availability_zone`,`lower_case_table_names`. It is generally recommended running `terraform plan` after importing a RDS instance. You can then decide if changes should be applied to the instance, or the resource definition should be updated to align with the instance. Also, you can ignore changes as below. resource "huaweicloud_rds_instance" "instance_1" {
//
// ...
//
// lifecycle {
//
// ignore_changes = [
//
// "db", "collation", "availability_zone", "lower_case_table_names"
//
// ]
//
// } }
type Instance struct {
pulumi.CustomResourceState
// Deprecated: Deprecated
AutoPay pulumi.StringPtrOutput `pulumi:"autoPay"`
// Specifies whether auto-renew is enabled. Valid values are "true" and "false".
AutoRenew pulumi.StringPtrOutput `pulumi:"autoRenew"`
// Specifies the list of AZ name. Changing this parameter will create a
// new resource.
AvailabilityZones pulumi.StringArrayOutput `pulumi:"availabilityZones"`
// Specifies the advanced backup policy. Structure is documented below.
BackupStrategy InstanceBackupStrategyOutput `pulumi:"backupStrategy"`
// Specifies the charging mode of the RDS DB instance. Valid values are
// *prePaid* and *postPaid*, defaults to *postPaid*. Changing this creates a new resource.
ChargingMode pulumi.StringOutput `pulumi:"chargingMode"`
// Specifies the Character Set, only available to Microsoft SQL Server DB instances.
// Changing this parameter will create a new resource.
Collation pulumi.StringPtrOutput `pulumi:"collation"`
// Indicates the creation time.
Created pulumi.StringOutput `pulumi:"created"`
// Specifies the database information. Structure is documented below. Changing this
// parameter will create a new resource.
Db InstanceDbOutput `pulumi:"db"`
// The enterprise project id of the RDS instance. Changing this
// parameter creates a new RDS instance.
EnterpriseProjectId pulumi.StringOutput `pulumi:"enterpriseProjectId"`
// Specifies an intranet floating IP address of RDS DB instance. Changing this
// parameter will create a new resource.
FixedIp pulumi.StringOutput `pulumi:"fixedIp"`
// Specifies the specification code.
Flavor pulumi.StringOutput `pulumi:"flavor"`
// Specifies the replication mode for the standby DB instance.
// Changing this parameter will create a new resource.
// + For MySQL, the value is *async* or *semisync*.
// + For PostgreSQL, the value is *async* or *sync*.
// + For Microsoft SQL Server, the value is *sync*.
HaReplicationMode pulumi.StringOutput `pulumi:"haReplicationMode"`
// Specifies the case-sensitive state of the database table name,
// the default value is "1". Changing this parameter will create a new resource.
// + 0: Table names are stored as fixed and table names are case-sensitive.
// + 1: Table names will be stored in lower case and table names are not case-sensitive.
LowerCaseTableNames pulumi.StringPtrOutput `pulumi:"lowerCaseTableNames"`
// Specifies the parameter name. Some of them needs the instance to be restarted
// to take effect.
Name pulumi.StringOutput `pulumi:"name"`
// Indicates the instance nodes information. Structure is documented below.
Nodes InstanceNodeArrayOutput `pulumi:"nodes"`
// Specifies the parameter group ID. Changing this parameter will create
// a new resource.
ParamGroupId pulumi.StringPtrOutput `pulumi:"paramGroupId"`
// Specify an array of one or more parameters to be set to the RDS instance after
// launched. You can check on console to see which parameters supported. Structure is documented below.
Parameters InstanceParameterArrayOutput `pulumi:"parameters"`
// Specifies the backup cycle. Automatic backups will be performed on the specified days of
// the week, except when disabling the automatic backup policy. The value range is a comma-separated number, where each
// number represents a day of the week. For example, a value of 1,2,3,4 would set the backup cycle to Monday, Tuesday,
// Wednesday, and Thursday. The default value is 1,2,3,4,5,6,7.
Period pulumi.IntPtrOutput `pulumi:"period"`
// Specifies the charging period unit of the RDS DB instance. Valid values
// are *month* and *year*. This parameter is mandatory if `chargingMode` is set to *prePaid*. Changing this creates a
// new resource.
PeriodUnit pulumi.StringPtrOutput `pulumi:"periodUnit"`
// Indicates the private IP address list. It is a blank string until an ECS is created.
PrivateIps pulumi.StringArrayOutput `pulumi:"privateIps"`
// Indicates the public IP address list.
PublicIps pulumi.StringArrayOutput `pulumi:"publicIps"`
// The region in which to create the rds instance resource. If omitted, the
// provider-level region will be used. Changing this creates a new rds instance resource.
Region pulumi.StringOutput `pulumi:"region"`
// Specifies the security group which the RDS DB instance belongs to.
SecurityGroupId pulumi.StringOutput `pulumi:"securityGroupId"`
// Specifies whether to enable the SSL for MySQL database.
SslEnable pulumi.BoolPtrOutput `pulumi:"sslEnable"`
// Indicates the node status.
Status pulumi.StringOutput `pulumi:"status"`
// Specifies the network id of a subnet. Changing this parameter will create a
// new resource.
SubnetId pulumi.StringOutput `pulumi:"subnetId"`
// A mapping of tags to assign to the RDS instance. Each tag is represented by one key-value
// pair.
Tags pulumi.StringMapOutput `pulumi:"tags"`
// Specifies the UTC time zone. For MySQL and PostgreSQL Chinese mainland site
// and international site use UTC by default. The value ranges from UTC-12:00 to UTC+12:00 at the full hour. For
// Microsoft SQL Server international site use UTC by default and Chinese mainland site use China Standard Time. The time
// zone is expressed as a character string, refer to
// [HuaweiCloud Document](https://support.huaweicloud.com/intl/en-us/api-rds/rds_01_0002.html#rds_01_0002__table613473883617)
// .
TimeZone pulumi.StringOutput `pulumi:"timeZone"`
// Specifies the volume information. Structure is documented below.
Volume InstanceVolumeOutput `pulumi:"volume"`
// Specifies the VPC ID. Changing this parameter will create a new resource.
VpcId pulumi.StringOutput `pulumi:"vpcId"`
}
// NewInstance registers a new resource with the given unique name, arguments, and options.
func NewInstance(ctx *pulumi.Context,
name string, args *InstanceArgs, opts ...pulumi.ResourceOption) (*Instance, error) {
if args == nil {
return nil, errors.New("missing one or more required arguments")
}
if args.AvailabilityZones == nil {
return nil, errors.New("invalid value for required argument 'AvailabilityZones'")
}
if args.Db == nil {
return nil, errors.New("invalid value for required argument 'Db'")
}
if args.Flavor == nil {
return nil, errors.New("invalid value for required argument 'Flavor'")
}
if args.SecurityGroupId == nil {
return nil, errors.New("invalid value for required argument 'SecurityGroupId'")
}
if args.SubnetId == nil {
return nil, errors.New("invalid value for required argument 'SubnetId'")
}
if args.Volume == nil {
return nil, errors.New("invalid value for required argument 'Volume'")
}
if args.VpcId == nil {
return nil, errors.New("invalid value for required argument 'VpcId'")
}
opts = pkgResourceDefaultOpts(opts)
var resource Instance
err := ctx.RegisterResource("huaweicloud:Rds/instance:Instance", name, args, &resource, opts...)
if err != nil {
return nil, err
}
return &resource, nil
}
// GetInstance gets an existing Instance resource's state with the given name, ID, and optional
// state properties that are used to uniquely qualify the lookup (nil if not required).
func GetInstance(ctx *pulumi.Context,
name string, id pulumi.IDInput, state *InstanceState, opts ...pulumi.ResourceOption) (*Instance, error) {
var resource Instance
err := ctx.ReadResource("huaweicloud:Rds/instance:Instance", name, id, state, &resource, opts...)
if err != nil {
return nil, err
}
return &resource, nil
}
// Input properties used for looking up and filtering Instance resources.
type instanceState struct {
// Deprecated: Deprecated
AutoPay *string `pulumi:"autoPay"`
// Specifies whether auto-renew is enabled. Valid values are "true" and "false".
AutoRenew *string `pulumi:"autoRenew"`
// Specifies the list of AZ name. Changing this parameter will create a
// new resource.
AvailabilityZones []string `pulumi:"availabilityZones"`
// Specifies the advanced backup policy. Structure is documented below.
BackupStrategy *InstanceBackupStrategy `pulumi:"backupStrategy"`
// Specifies the charging mode of the RDS DB instance. Valid values are
// *prePaid* and *postPaid*, defaults to *postPaid*. Changing this creates a new resource.
ChargingMode *string `pulumi:"chargingMode"`
// Specifies the Character Set, only available to Microsoft SQL Server DB instances.
// Changing this parameter will create a new resource.
Collation *string `pulumi:"collation"`
// Indicates the creation time.
Created *string `pulumi:"created"`
// Specifies the database information. Structure is documented below. Changing this
// parameter will create a new resource.
Db *InstanceDb `pulumi:"db"`
// The enterprise project id of the RDS instance. Changing this
// parameter creates a new RDS instance.
EnterpriseProjectId *string `pulumi:"enterpriseProjectId"`
// Specifies an intranet floating IP address of RDS DB instance. Changing this
// parameter will create a new resource.
FixedIp *string `pulumi:"fixedIp"`
// Specifies the specification code.
Flavor *string `pulumi:"flavor"`
// Specifies the replication mode for the standby DB instance.
// Changing this parameter will create a new resource.
// + For MySQL, the value is *async* or *semisync*.
// + For PostgreSQL, the value is *async* or *sync*.
// + For Microsoft SQL Server, the value is *sync*.
HaReplicationMode *string `pulumi:"haReplicationMode"`
// Specifies the case-sensitive state of the database table name,
// the default value is "1". Changing this parameter will create a new resource.
// + 0: Table names are stored as fixed and table names are case-sensitive.
// + 1: Table names will be stored in lower case and table names are not case-sensitive.
LowerCaseTableNames *string `pulumi:"lowerCaseTableNames"`
// Specifies the parameter name. Some of them needs the instance to be restarted
// to take effect.
Name *string `pulumi:"name"`
// Indicates the instance nodes information. Structure is documented below.
Nodes []InstanceNode `pulumi:"nodes"`
// Specifies the parameter group ID. Changing this parameter will create
// a new resource.
ParamGroupId *string `pulumi:"paramGroupId"`
// Specify an array of one or more parameters to be set to the RDS instance after
// launched. You can check on console to see which parameters supported. Structure is documented below.
Parameters []InstanceParameter `pulumi:"parameters"`
// Specifies the backup cycle. Automatic backups will be performed on the specified days of
// the week, except when disabling the automatic backup policy. The value range is a comma-separated number, where each
// number represents a day of the week. For example, a value of 1,2,3,4 would set the backup cycle to Monday, Tuesday,
// Wednesday, and Thursday. The default value is 1,2,3,4,5,6,7.
Period *int `pulumi:"period"`
// Specifies the charging period unit of the RDS DB instance. Valid values
// are *month* and *year*. This parameter is mandatory if `chargingMode` is set to *prePaid*. Changing this creates a
// new resource.
PeriodUnit *string `pulumi:"periodUnit"`
// Indicates the private IP address list. It is a blank string until an ECS is created.
PrivateIps []string `pulumi:"privateIps"`
// Indicates the public IP address list.
PublicIps []string `pulumi:"publicIps"`
// The region in which to create the rds instance resource. If omitted, the
// provider-level region will be used. Changing this creates a new rds instance resource.
Region *string `pulumi:"region"`
// Specifies the security group which the RDS DB instance belongs to.
SecurityGroupId *string `pulumi:"securityGroupId"`
// Specifies whether to enable the SSL for MySQL database.
SslEnable *bool `pulumi:"sslEnable"`
// Indicates the node status.
Status *string `pulumi:"status"`
// Specifies the network id of a subnet. Changing this parameter will create a
// new resource.
SubnetId *string `pulumi:"subnetId"`
// A mapping of tags to assign to the RDS instance. Each tag is represented by one key-value
// pair.
Tags map[string]string `pulumi:"tags"`
// Specifies the UTC time zone. For MySQL and PostgreSQL Chinese mainland site
// and international site use UTC by default. The value ranges from UTC-12:00 to UTC+12:00 at the full hour. For
// Microsoft SQL Server international site use UTC by default and Chinese mainland site use China Standard Time. The time
// zone is expressed as a character string, refer to
// [HuaweiCloud Document](https://support.huaweicloud.com/intl/en-us/api-rds/rds_01_0002.html#rds_01_0002__table613473883617)
// .
TimeZone *string `pulumi:"timeZone"`
// Specifies the volume information. Structure is documented below.
Volume *InstanceVolume `pulumi:"volume"`
// Specifies the VPC ID. Changing this parameter will create a new resource.
VpcId *string `pulumi:"vpcId"`
}
type InstanceState struct {
// Deprecated: Deprecated
AutoPay pulumi.StringPtrInput
// Specifies whether auto-renew is enabled. Valid values are "true" and "false".
AutoRenew pulumi.StringPtrInput
// Specifies the list of AZ name. Changing this parameter will create a
// new resource.
AvailabilityZones pulumi.StringArrayInput
// Specifies the advanced backup policy. Structure is documented below.
BackupStrategy InstanceBackupStrategyPtrInput
// Specifies the charging mode of the RDS DB instance. Valid values are
// *prePaid* and *postPaid*, defaults to *postPaid*. Changing this creates a new resource.
ChargingMode pulumi.StringPtrInput
// Specifies the Character Set, only available to Microsoft SQL Server DB instances.
// Changing this parameter will create a new resource.
Collation pulumi.StringPtrInput
// Indicates the creation time.
Created pulumi.StringPtrInput
// Specifies the database information. Structure is documented below. Changing this
// parameter will create a new resource.
Db InstanceDbPtrInput
// The enterprise project id of the RDS instance. Changing this
// parameter creates a new RDS instance.
EnterpriseProjectId pulumi.StringPtrInput
// Specifies an intranet floating IP address of RDS DB instance. Changing this
// parameter will create a new resource.
FixedIp pulumi.StringPtrInput
// Specifies the specification code.
Flavor pulumi.StringPtrInput
// Specifies the replication mode for the standby DB instance.
// Changing this parameter will create a new resource.
// + For MySQL, the value is *async* or *semisync*.
// + For PostgreSQL, the value is *async* or *sync*.
// + For Microsoft SQL Server, the value is *sync*.
HaReplicationMode pulumi.StringPtrInput
// Specifies the case-sensitive state of the database table name,
// the default value is "1". Changing this parameter will create a new resource.
// + 0: Table names are stored as fixed and table names are case-sensitive.
// + 1: Table names will be stored in lower case and table names are not case-sensitive.
LowerCaseTableNames pulumi.StringPtrInput
// Specifies the parameter name. Some of them needs the instance to be restarted
// to take effect.
Name pulumi.StringPtrInput
// Indicates the instance nodes information. Structure is documented below.
Nodes InstanceNodeArrayInput
// Specifies the parameter group ID. Changing this parameter will create
// a new resource.
ParamGroupId pulumi.StringPtrInput
// Specify an array of one or more parameters to be set to the RDS instance after
// launched. You can check on console to see which parameters supported. Structure is documented below.
Parameters InstanceParameterArrayInput
// Specifies the backup cycle. Automatic backups will be performed on the specified days of
// the week, except when disabling the automatic backup policy. The value range is a comma-separated number, where each
// number represents a day of the week. For example, a value of 1,2,3,4 would set the backup cycle to Monday, Tuesday,
// Wednesday, and Thursday. The default value is 1,2,3,4,5,6,7.
Period pulumi.IntPtrInput
// Specifies the charging period unit of the RDS DB instance. Valid values
// are *month* and *year*. This parameter is mandatory if `chargingMode` is set to *prePaid*. Changing this creates a
// new resource.
PeriodUnit pulumi.StringPtrInput
// Indicates the private IP address list. It is a blank string until an ECS is created.
PrivateIps pulumi.StringArrayInput
// Indicates the public IP address list.
PublicIps pulumi.StringArrayInput
// The region in which to create the rds instance resource. If omitted, the
// provider-level region will be used. Changing this creates a new rds instance resource.
Region pulumi.StringPtrInput
// Specifies the security group which the RDS DB instance belongs to.
SecurityGroupId pulumi.StringPtrInput
// Specifies whether to enable the SSL for MySQL database.
SslEnable pulumi.BoolPtrInput
// Indicates the node status.
Status pulumi.StringPtrInput
// Specifies the network id of a subnet. Changing this parameter will create a
// new resource.
SubnetId pulumi.StringPtrInput
// A mapping of tags to assign to the RDS instance. Each tag is represented by one key-value
// pair.
Tags pulumi.StringMapInput
// Specifies the UTC time zone. For MySQL and PostgreSQL Chinese mainland site
// and international site use UTC by default. The value ranges from UTC-12:00 to UTC+12:00 at the full hour. For
// Microsoft SQL Server international site use UTC by default and Chinese mainland site use China Standard Time. The time
// zone is expressed as a character string, refer to
// [HuaweiCloud Document](https://support.huaweicloud.com/intl/en-us/api-rds/rds_01_0002.html#rds_01_0002__table613473883617)
// .
TimeZone pulumi.StringPtrInput
// Specifies the volume information. Structure is documented below.
Volume InstanceVolumePtrInput
// Specifies the VPC ID. Changing this parameter will create a new resource.
VpcId pulumi.StringPtrInput
}
func (InstanceState) ElementType() reflect.Type {
return reflect.TypeOf((*instanceState)(nil)).Elem()
}
type instanceArgs struct {
// Deprecated: Deprecated
AutoPay *string `pulumi:"autoPay"`
// Specifies whether auto-renew is enabled. Valid values are "true" and "false".
AutoRenew *string `pulumi:"autoRenew"`
// Specifies the list of AZ name. Changing this parameter will create a
// new resource.
AvailabilityZones []string `pulumi:"availabilityZones"`
// Specifies the advanced backup policy. Structure is documented below.
BackupStrategy *InstanceBackupStrategy `pulumi:"backupStrategy"`
// Specifies the charging mode of the RDS DB instance. Valid values are
// *prePaid* and *postPaid*, defaults to *postPaid*. Changing this creates a new resource.
ChargingMode *string `pulumi:"chargingMode"`
// Specifies the Character Set, only available to Microsoft SQL Server DB instances.
// Changing this parameter will create a new resource.
Collation *string `pulumi:"collation"`
// Specifies the database information. Structure is documented below. Changing this
// parameter will create a new resource.
Db InstanceDb `pulumi:"db"`
// The enterprise project id of the RDS instance. Changing this
// parameter creates a new RDS instance.
EnterpriseProjectId *string `pulumi:"enterpriseProjectId"`
// Specifies an intranet floating IP address of RDS DB instance. Changing this
// parameter will create a new resource.
FixedIp *string `pulumi:"fixedIp"`
// Specifies the specification code.
Flavor string `pulumi:"flavor"`
// Specifies the replication mode for the standby DB instance.
// Changing this parameter will create a new resource.
// + For MySQL, the value is *async* or *semisync*.
// + For PostgreSQL, the value is *async* or *sync*.
// + For Microsoft SQL Server, the value is *sync*.
HaReplicationMode *string `pulumi:"haReplicationMode"`
// Specifies the case-sensitive state of the database table name,
// the default value is "1". Changing this parameter will create a new resource.
// + 0: Table names are stored as fixed and table names are case-sensitive.
// + 1: Table names will be stored in lower case and table names are not case-sensitive.
LowerCaseTableNames *string `pulumi:"lowerCaseTableNames"`
// Specifies the parameter name. Some of them needs the instance to be restarted
// to take effect.
Name *string `pulumi:"name"`
// Specifies the parameter group ID. Changing this parameter will create
// a new resource.
ParamGroupId *string `pulumi:"paramGroupId"`
// Specify an array of one or more parameters to be set to the RDS instance after
// launched. You can check on console to see which parameters supported. Structure is documented below.
Parameters []InstanceParameter `pulumi:"parameters"`
// Specifies the backup cycle. Automatic backups will be performed on the specified days of
// the week, except when disabling the automatic backup policy. The value range is a comma-separated number, where each
// number represents a day of the week. For example, a value of 1,2,3,4 would set the backup cycle to Monday, Tuesday,
// Wednesday, and Thursday. The default value is 1,2,3,4,5,6,7.
Period *int `pulumi:"period"`
// Specifies the charging period unit of the RDS DB instance. Valid values
// are *month* and *year*. This parameter is mandatory if `chargingMode` is set to *prePaid*. Changing this creates a
// new resource.
PeriodUnit *string `pulumi:"periodUnit"`
// The region in which to create the rds instance resource. If omitted, the
// provider-level region will be used. Changing this creates a new rds instance resource.
Region *string `pulumi:"region"`
// Specifies the security group which the RDS DB instance belongs to.
SecurityGroupId string `pulumi:"securityGroupId"`
// Specifies whether to enable the SSL for MySQL database.
SslEnable *bool `pulumi:"sslEnable"`
// Specifies the network id of a subnet. Changing this parameter will create a
// new resource.
SubnetId string `pulumi:"subnetId"`
// A mapping of tags to assign to the RDS instance. Each tag is represented by one key-value
// pair.
Tags map[string]string `pulumi:"tags"`
// Specifies the UTC time zone. For MySQL and PostgreSQL Chinese mainland site
// and international site use UTC by default. The value ranges from UTC-12:00 to UTC+12:00 at the full hour. For
// Microsoft SQL Server international site use UTC by default and Chinese mainland site use China Standard Time. The time
// zone is expressed as a character string, refer to
// [HuaweiCloud Document](https://support.huaweicloud.com/intl/en-us/api-rds/rds_01_0002.html#rds_01_0002__table613473883617)
// .
TimeZone *string `pulumi:"timeZone"`
// Specifies the volume information. Structure is documented below.
Volume InstanceVolume `pulumi:"volume"`
// Specifies the VPC ID. Changing this parameter will create a new resource.
VpcId string `pulumi:"vpcId"`
}
// The set of arguments for constructing a Instance resource.
type InstanceArgs struct {
// Deprecated: Deprecated
AutoPay pulumi.StringPtrInput
// Specifies whether auto-renew is enabled. Valid values are "true" and "false".
AutoRenew pulumi.StringPtrInput
// Specifies the list of AZ name. Changing this parameter will create a
// new resource.
AvailabilityZones pulumi.StringArrayInput
// Specifies the advanced backup policy. Structure is documented below.
BackupStrategy InstanceBackupStrategyPtrInput
// Specifies the charging mode of the RDS DB instance. Valid values are
// *prePaid* and *postPaid*, defaults to *postPaid*. Changing this creates a new resource.
ChargingMode pulumi.StringPtrInput
// Specifies the Character Set, only available to Microsoft SQL Server DB instances.
// Changing this parameter will create a new resource.
Collation pulumi.StringPtrInput
// Specifies the database information. Structure is documented below. Changing this
// parameter will create a new resource.
Db InstanceDbInput
// The enterprise project id of the RDS instance. Changing this
// parameter creates a new RDS instance.
EnterpriseProjectId pulumi.StringPtrInput
// Specifies an intranet floating IP address of RDS DB instance. Changing this
// parameter will create a new resource.
FixedIp pulumi.StringPtrInput
// Specifies the specification code.
Flavor pulumi.StringInput
// Specifies the replication mode for the standby DB instance.
// Changing this parameter will create a new resource.
// + For MySQL, the value is *async* or *semisync*.
// + For PostgreSQL, the value is *async* or *sync*.
// + For Microsoft SQL Server, the value is *sync*.
HaReplicationMode pulumi.StringPtrInput
// Specifies the case-sensitive state of the database table name,
// the default value is "1". Changing this parameter will create a new resource.
// + 0: Table names are stored as fixed and table names are case-sensitive.
// + 1: Table names will be stored in lower case and table names are not case-sensitive.
LowerCaseTableNames pulumi.StringPtrInput
// Specifies the parameter name. Some of them needs the instance to be restarted
// to take effect.
Name pulumi.StringPtrInput
// Specifies the parameter group ID. Changing this parameter will create
// a new resource.
ParamGroupId pulumi.StringPtrInput
// Specify an array of one or more parameters to be set to the RDS instance after
// launched. You can check on console to see which parameters supported. Structure is documented below.
Parameters InstanceParameterArrayInput
// Specifies the backup cycle. Automatic backups will be performed on the specified days of
// the week, except when disabling the automatic backup policy. The value range is a comma-separated number, where each
// number represents a day of the week. For example, a value of 1,2,3,4 would set the backup cycle to Monday, Tuesday,
// Wednesday, and Thursday. The default value is 1,2,3,4,5,6,7.
Period pulumi.IntPtrInput
// Specifies the charging period unit of the RDS DB instance. Valid values
// are *month* and *year*. This parameter is mandatory if `chargingMode` is set to *prePaid*. Changing this creates a
// new resource.
PeriodUnit pulumi.StringPtrInput
// The region in which to create the rds instance resource. If omitted, the
// provider-level region will be used. Changing this creates a new rds instance resource.
Region pulumi.StringPtrInput
// Specifies the security group which the RDS DB instance belongs to.
SecurityGroupId pulumi.StringInput
// Specifies whether to enable the SSL for MySQL database.
SslEnable pulumi.BoolPtrInput
// Specifies the network id of a subnet. Changing this parameter will create a
// new resource.
SubnetId pulumi.StringInput
// A mapping of tags to assign to the RDS instance. Each tag is represented by one key-value
// pair.
Tags pulumi.StringMapInput
// Specifies the UTC time zone. For MySQL and PostgreSQL Chinese mainland site
// and international site use UTC by default. The value ranges from UTC-12:00 to UTC+12:00 at the full hour. For
// Microsoft SQL Server international site use UTC by default and Chinese mainland site use China Standard Time. The time
// zone is expressed as a character string, refer to
// [HuaweiCloud Document](https://support.huaweicloud.com/intl/en-us/api-rds/rds_01_0002.html#rds_01_0002__table613473883617)
// .
TimeZone pulumi.StringPtrInput
// Specifies the volume information. Structure is documented below.
Volume InstanceVolumeInput
// Specifies the VPC ID. Changing this parameter will create a new resource.
VpcId pulumi.StringInput
}
func (InstanceArgs) ElementType() reflect.Type {
return reflect.TypeOf((*instanceArgs)(nil)).Elem()
}
type InstanceInput interface {
pulumi.Input
ToInstanceOutput() InstanceOutput
ToInstanceOutputWithContext(ctx context.Context) InstanceOutput
}
func (*Instance) ElementType() reflect.Type {
return reflect.TypeOf((**Instance)(nil)).Elem()
}
func (i *Instance) ToInstanceOutput() InstanceOutput {
return i.ToInstanceOutputWithContext(context.Background())
}
func (i *Instance) ToInstanceOutputWithContext(ctx context.Context) InstanceOutput {
return pulumi.ToOutputWithContext(ctx, i).(InstanceOutput)
}
// InstanceArrayInput is an input type that accepts InstanceArray and InstanceArrayOutput values.
// You can construct a concrete instance of `InstanceArrayInput` via:
//
// InstanceArray{ InstanceArgs{...} }
type InstanceArrayInput interface {
pulumi.Input
ToInstanceArrayOutput() InstanceArrayOutput
ToInstanceArrayOutputWithContext(context.Context) InstanceArrayOutput
}
type InstanceArray []InstanceInput
func (InstanceArray) ElementType() reflect.Type {
return reflect.TypeOf((*[]*Instance)(nil)).Elem()
}
func (i InstanceArray) ToInstanceArrayOutput() InstanceArrayOutput {
return i.ToInstanceArrayOutputWithContext(context.Background())
}
func (i InstanceArray) ToInstanceArrayOutputWithContext(ctx context.Context) InstanceArrayOutput {
return pulumi.ToOutputWithContext(ctx, i).(InstanceArrayOutput)
}
// InstanceMapInput is an input type that accepts InstanceMap and InstanceMapOutput values.
// You can construct a concrete instance of `InstanceMapInput` via:
//
// InstanceMap{ "key": InstanceArgs{...} }
type InstanceMapInput interface {
pulumi.Input
ToInstanceMapOutput() InstanceMapOutput
ToInstanceMapOutputWithContext(context.Context) InstanceMapOutput
}
type InstanceMap map[string]InstanceInput
func (InstanceMap) ElementType() reflect.Type {
return reflect.TypeOf((*map[string]*Instance)(nil)).Elem()
}
func (i InstanceMap) ToInstanceMapOutput() InstanceMapOutput {
return i.ToInstanceMapOutputWithContext(context.Background())
}
func (i InstanceMap) ToInstanceMapOutputWithContext(ctx context.Context) InstanceMapOutput {
return pulumi.ToOutputWithContext(ctx, i).(InstanceMapOutput)
}
type InstanceOutput struct{ *pulumi.OutputState }
func (InstanceOutput) ElementType() reflect.Type {
return reflect.TypeOf((**Instance)(nil)).Elem()
}
func (o InstanceOutput) ToInstanceOutput() InstanceOutput {
return o
}
func (o InstanceOutput) ToInstanceOutputWithContext(ctx context.Context) InstanceOutput {
return o
}
// Deprecated: Deprecated
func (o InstanceOutput) AutoPay() pulumi.StringPtrOutput {
return o.ApplyT(func(v *Instance) pulumi.StringPtrOutput { return v.AutoPay }).(pulumi.StringPtrOutput)
}
// Specifies whether auto-renew is enabled. Valid values are "true" and "false".
func (o InstanceOutput) AutoRenew() pulumi.StringPtrOutput {
return o.ApplyT(func(v *Instance) pulumi.StringPtrOutput { return v.AutoRenew }).(pulumi.StringPtrOutput)
}
// Specifies the list of AZ name. Changing this parameter will create a
// new resource.
func (o InstanceOutput) AvailabilityZones() pulumi.StringArrayOutput {
return o.ApplyT(func(v *Instance) pulumi.StringArrayOutput { return v.AvailabilityZones }).(pulumi.StringArrayOutput)
}
// Specifies the advanced backup policy. Structure is documented below.
func (o InstanceOutput) BackupStrategy() InstanceBackupStrategyOutput {
return o.ApplyT(func(v *Instance) InstanceBackupStrategyOutput { return v.BackupStrategy }).(InstanceBackupStrategyOutput)
}
// Specifies the charging mode of the RDS DB instance. Valid values are
// *prePaid* and *postPaid*, defaults to *postPaid*. Changing this creates a new resource.
func (o InstanceOutput) ChargingMode() pulumi.StringOutput {
return o.ApplyT(func(v *Instance) pulumi.StringOutput { return v.ChargingMode }).(pulumi.StringOutput)
}
// Specifies the Character Set, only available to Microsoft SQL Server DB instances.
// Changing this parameter will create a new resource.
func (o InstanceOutput) Collation() pulumi.StringPtrOutput {
return o.ApplyT(func(v *Instance) pulumi.StringPtrOutput { return v.Collation }).(pulumi.StringPtrOutput)
}
// Indicates the creation time.
func (o InstanceOutput) Created() pulumi.StringOutput {
return o.ApplyT(func(v *Instance) pulumi.StringOutput { return v.Created }).(pulumi.StringOutput)
}
// Specifies the database information. Structure is documented below. Changing this
// parameter will create a new resource.
func (o InstanceOutput) Db() InstanceDbOutput {
return o.ApplyT(func(v *Instance) InstanceDbOutput { return v.Db }).(InstanceDbOutput)
}
// The enterprise project id of the RDS instance. Changing this
// parameter creates a new RDS instance.
func (o InstanceOutput) EnterpriseProjectId() pulumi.StringOutput {
return o.ApplyT(func(v *Instance) pulumi.StringOutput { return v.EnterpriseProjectId }).(pulumi.StringOutput)
}
// Specifies an intranet floating IP address of RDS DB instance. Changing this
// parameter will create a new resource.
func (o InstanceOutput) FixedIp() pulumi.StringOutput {
return o.ApplyT(func(v *Instance) pulumi.StringOutput { return v.FixedIp }).(pulumi.StringOutput)
}
// Specifies the specification code.
func (o InstanceOutput) Flavor() pulumi.StringOutput {
return o.ApplyT(func(v *Instance) pulumi.StringOutput { return v.Flavor }).(pulumi.StringOutput)
}
// Specifies the replication mode for the standby DB instance.
// Changing this parameter will create a new resource.
// + For MySQL, the value is *async* or *semisync*.
// + For PostgreSQL, the value is *async* or *sync*.
// + For Microsoft SQL Server, the value is *sync*.
func (o InstanceOutput) HaReplicationMode() pulumi.StringOutput {
return o.ApplyT(func(v *Instance) pulumi.StringOutput { return v.HaReplicationMode }).(pulumi.StringOutput)
}
// Specifies the case-sensitive state of the database table name,
// the default value is "1". Changing this parameter will create a new resource.
// + 0: Table names are stored as fixed and table names are case-sensitive.
// + 1: Table names will be stored in lower case and table names are not case-sensitive.
func (o InstanceOutput) LowerCaseTableNames() pulumi.StringPtrOutput {
return o.ApplyT(func(v *Instance) pulumi.StringPtrOutput { return v.LowerCaseTableNames }).(pulumi.StringPtrOutput)
}
// Specifies the parameter name. Some of them needs the instance to be restarted
// to take effect.
func (o InstanceOutput) Name() pulumi.StringOutput {
return o.ApplyT(func(v *Instance) pulumi.StringOutput { return v.Name }).(pulumi.StringOutput)
}
// Indicates the instance nodes information. Structure is documented below.
func (o InstanceOutput) Nodes() InstanceNodeArrayOutput {
return o.ApplyT(func(v *Instance) InstanceNodeArrayOutput { return v.Nodes }).(InstanceNodeArrayOutput)
}
// Specifies the parameter group ID. Changing this parameter will create
// a new resource.
func (o InstanceOutput) ParamGroupId() pulumi.StringPtrOutput {
return o.ApplyT(func(v *Instance) pulumi.StringPtrOutput { return v.ParamGroupId }).(pulumi.StringPtrOutput)
}
// Specify an array of one or more parameters to be set to the RDS instance after
// launched. You can check on console to see which parameters supported. Structure is documented below.
func (o InstanceOutput) Parameters() InstanceParameterArrayOutput {
return o.ApplyT(func(v *Instance) InstanceParameterArrayOutput { return v.Parameters }).(InstanceParameterArrayOutput)
}
// Specifies the backup cycle. Automatic backups will be performed on the specified days of
// the week, except when disabling the automatic backup policy. The value range is a comma-separated number, where each
// number represents a day of the week. For example, a value of 1,2,3,4 would set the backup cycle to Monday, Tuesday,
// Wednesday, and Thursday. The default value is 1,2,3,4,5,6,7.
func (o InstanceOutput) Period() pulumi.IntPtrOutput {
return o.ApplyT(func(v *Instance) pulumi.IntPtrOutput { return v.Period }).(pulumi.IntPtrOutput)
}
// Specifies the charging period unit of the RDS DB instance. Valid values
// are *month* and *year*. This parameter is mandatory if `chargingMode` is set to *prePaid*. Changing this creates a
// new resource.
func (o InstanceOutput) PeriodUnit() pulumi.StringPtrOutput {
return o.ApplyT(func(v *Instance) pulumi.StringPtrOutput { return v.PeriodUnit }).(pulumi.StringPtrOutput)
}
// Indicates the private IP address list. It is a blank string until an ECS is created.
func (o InstanceOutput) PrivateIps() pulumi.StringArrayOutput {
return o.ApplyT(func(v *Instance) pulumi.StringArrayOutput { return v.PrivateIps }).(pulumi.StringArrayOutput)
}
// Indicates the public IP address list.
func (o InstanceOutput) PublicIps() pulumi.StringArrayOutput {
return o.ApplyT(func(v *Instance) pulumi.StringArrayOutput { return v.PublicIps }).(pulumi.StringArrayOutput)
}
// The region in which to create the rds instance resource. If omitted, the
// provider-level region will be used. Changing this creates a new rds instance resource.
func (o InstanceOutput) Region() pulumi.StringOutput {
return o.ApplyT(func(v *Instance) pulumi.StringOutput { return v.Region }).(pulumi.StringOutput)
}
// Specifies the security group which the RDS DB instance belongs to.
func (o InstanceOutput) SecurityGroupId() pulumi.StringOutput {
return o.ApplyT(func(v *Instance) pulumi.StringOutput { return v.SecurityGroupId }).(pulumi.StringOutput)
}
// Specifies whether to enable the SSL for MySQL database.
func (o InstanceOutput) SslEnable() pulumi.BoolPtrOutput {
return o.ApplyT(func(v *Instance) pulumi.BoolPtrOutput { return v.SslEnable }).(pulumi.BoolPtrOutput)
}
// Indicates the node status.
func (o InstanceOutput) Status() pulumi.StringOutput {
return o.ApplyT(func(v *Instance) pulumi.StringOutput { return v.Status }).(pulumi.StringOutput)
}
// Specifies the network id of a subnet. Changing this parameter will create a
// new resource.
func (o InstanceOutput) SubnetId() pulumi.StringOutput {
return o.ApplyT(func(v *Instance) pulumi.StringOutput { return v.SubnetId }).(pulumi.StringOutput)
}
// A mapping of tags to assign to the RDS instance. Each tag is represented by one key-value
// pair.
func (o InstanceOutput) Tags() pulumi.StringMapOutput {
return o.ApplyT(func(v *Instance) pulumi.StringMapOutput { return v.Tags }).(pulumi.StringMapOutput)