-
Notifications
You must be signed in to change notification settings - Fork 112
/
zz_instance_types.go
executable file
·1252 lines (966 loc) · 74.2 KB
/
zz_instance_types.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
// SPDX-FileCopyrightText: 2023 The Crossplane Authors <https://crossplane.io>
//
// SPDX-License-Identifier: Apache-2.0
// Code generated by upjet. DO NOT EDIT.
package v1beta1
import (
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
"k8s.io/apimachinery/pkg/runtime/schema"
v1 "github.com/crossplane/crossplane-runtime/apis/common/v1"
)
type BlueGreenUpdateInitParameters struct {
// Enables [low-downtime updates](#Low-Downtime Updates) when true.
// Default is false.
Enabled *bool `json:"enabled,omitempty" tf:"enabled,omitempty"`
}
type BlueGreenUpdateObservation struct {
// Enables [low-downtime updates](#Low-Downtime Updates) when true.
// Default is false.
Enabled *bool `json:"enabled,omitempty" tf:"enabled,omitempty"`
}
type BlueGreenUpdateParameters struct {
// Enables [low-downtime updates](#Low-Downtime Updates) when true.
// Default is false.
// +kubebuilder:validation:Optional
Enabled *bool `json:"enabled,omitempty" tf:"enabled,omitempty"`
}
type InstanceInitParameters struct {
// The allocated storage in gibibytes. If max_allocated_storage is configured, this argument represents the initial storage allocation and differences from the configuration will be ignored automatically when Storage Autoscaling occurs. If replicate_source_db is set, the value is ignored during the creation of the instance.
AllocatedStorage *float64 `json:"allocatedStorage,omitempty" tf:"allocated_storage,omitempty"`
// Indicates that major version
// upgrades are allowed. Changing this parameter does not result in an outage and
// the change is asynchronously applied as soon as possible.
AllowMajorVersionUpgrade *bool `json:"allowMajorVersionUpgrade,omitempty" tf:"allow_major_version_upgrade,omitempty"`
// Specifies whether any database modifications
// are applied immediately, or during the next maintenance window. Default is
// false. See Amazon RDS Documentation for more
// information.
ApplyImmediately *bool `json:"applyImmediately,omitempty" tf:"apply_immediately,omitempty"`
// Indicates that minor engine upgrades
// will be applied automatically to the DB instance during the maintenance window.
// Defaults to true.
AutoMinorVersionUpgrade *bool `json:"autoMinorVersionUpgrade,omitempty" tf:"auto_minor_version_upgrade,omitempty"`
// The AZ for the RDS instance.
AvailabilityZone *string `json:"availabilityZone,omitempty" tf:"availability_zone,omitempty"`
// The days to retain backups for.
// Must be between 0 and 35.
// Default is 0.
// Must be greater than 0 if the database is used as a source for a Read Replica,
// uses low-downtime updates,
// or will use RDS Blue/Green deployments.
BackupRetentionPeriod *float64 `json:"backupRetentionPeriod,omitempty" tf:"backup_retention_period,omitempty"`
// The daily time range (in UTC) during which automated backups are created if they are enabled.
// Example: "09:46-10:16". Must not overlap with maintenance_window.
BackupWindow *string `json:"backupWindow,omitempty" tf:"backup_window,omitempty"`
// Enables low-downtime updates using RDS Blue/Green deployments.
// See blue_green_update below
BlueGreenUpdate []BlueGreenUpdateInitParameters `json:"blueGreenUpdate,omitempty" tf:"blue_green_update,omitempty"`
// The identifier of the CA certificate for the DB instance.
CACertIdentifier *string `json:"caCertIdentifier,omitempty" tf:"ca_cert_identifier,omitempty"`
// The character set name to use for DB
// encoding in Oracle and Microsoft SQL instances (collation). This can't be changed. See Oracle Character Sets
// Supported in Amazon RDS
// or Server-Level Collation for Microsoft SQL Server for more information.
CharacterSetName *string `json:"characterSetName,omitempty" tf:"character_set_name,omitempty"`
// – Copy all Instance tags to snapshots. Default is false.
CopyTagsToSnapshot *bool `json:"copyTagsToSnapshot,omitempty" tf:"copy_tags_to_snapshot,omitempty"`
// The instance profile associated with the underlying Amazon EC2 instance of an RDS Custom DB instance.
CustomIAMInstanceProfile *string `json:"customIamInstanceProfile,omitempty" tf:"custom_iam_instance_profile,omitempty"`
// Indicates whether to enable a customer-owned IP address (CoIP) for an RDS on Outposts DB instance. See CoIP for RDS on Outposts for more information.
CustomerOwnedIPEnabled *bool `json:"customerOwnedIpEnabled,omitempty" tf:"customer_owned_ip_enabled,omitempty"`
// The name of the database to create when the DB instance is created. If this parameter is not specified, no database is created in the DB instance. Note that this does not apply for Oracle or SQL Server engines. See the AWS documentation for more details on what applies for those engines. If you are providing an Oracle db name, it needs to be in all upper case. Cannot be specified for a replica.
DBName *string `json:"dbName,omitempty" tf:"db_name,omitempty"`
// Name of DB subnet group. DB instance will
// be created in the VPC associated with the DB subnet group. If unspecified, will
// be created in the default VPC, or in EC2 Classic, if available. When working
// with read replicas, it should be specified only if the source database
// specifies an instance in another AWS Region. See DBSubnetGroupName in API
// action CreateDBInstanceReadReplica
// for additional read replica contraints.
// +crossplane:generate:reference:type=SubnetGroup
DBSubnetGroupName *string `json:"dbSubnetGroupName,omitempty" tf:"db_subnet_group_name,omitempty"`
// Reference to a SubnetGroup to populate dbSubnetGroupName.
// +kubebuilder:validation:Optional
DBSubnetGroupNameRef *v1.Reference `json:"dbSubnetGroupNameRef,omitempty" tf:"-"`
// Selector for a SubnetGroup to populate dbSubnetGroupName.
// +kubebuilder:validation:Optional
DBSubnetGroupNameSelector *v1.Selector `json:"dbSubnetGroupNameSelector,omitempty" tf:"-"`
// Specifies whether to remove automated backups immediately after the DB instance is deleted. Default is true.
DeleteAutomatedBackups *bool `json:"deleteAutomatedBackups,omitempty" tf:"delete_automated_backups,omitempty"`
// If the DB instance should have deletion protection enabled. The database can't be deleted when this value is set to true. The default is false.
DeletionProtection *bool `json:"deletionProtection,omitempty" tf:"deletion_protection,omitempty"`
// The ID of the Directory Service Active Directory domain to create the instance in.
Domain *string `json:"domain,omitempty" tf:"domain,omitempty"`
// The name of the IAM role to be used when making API calls to the Directory Service.
DomainIAMRoleName *string `json:"domainIamRoleName,omitempty" tf:"domain_iam_role_name,omitempty"`
// Set of log types to enable for exporting to CloudWatch logs. If omitted, no logs will be exported. Valid values (depending on engine). MySQL and MariaDB: audit, error, general, slowquery. PostgreSQL: postgresql, upgrade. MSSQL: agent , error. Oracle: alert, audit, listener, trace.
// +listType=set
EnabledCloudwatchLogsExports []*string `json:"enabledCloudwatchLogsExports,omitempty" tf:"enabled_cloudwatch_logs_exports,omitempty"`
// The database engine to use. For supported values, see the Engine parameter in [API action CreateDBInstance](https://docs.aws.amazon.com/AmazonRDS/latest/APIReference/API_CreateDBInstance.html). Note that for Amazon Aurora instances the engine must match the [DB Cluster](https://marketplace.upbound.io/providers/upbound/provider-aws/latest/resources/rds.aws.upbound.io/Cluster/v1beta1)'s engine'. For information on the difference between the available Aurora MySQL engines see Comparison in the [Amazon RDS Release Notes](https://docs.aws.amazon.com/AmazonRDS/latest/AuroraMySQLReleaseNotes/Welcome.html).
Engine *string `json:"engine,omitempty" tf:"engine,omitempty"`
// The engine version to use. If `autoMinorVersionUpgrade` is enabled, you can provide a prefix of the version such as 5.7 (for 5.7.10). The actual engine version used is returned in the attribute `status.atProvider.engineVersionActual`. For supported values, see the EngineVersion parameter in [API action CreateDBInstance](https://docs.aws.amazon.com/AmazonRDS/latest/APIReference/API_CreateDBInstance.html). Note that for Amazon Aurora instances the engine version must match the [DB Cluster](https://marketplace.upbound.io/providers/upbound/provider-aws/latest/resources/rds.aws.upbound.io/Cluster/v1beta1)'s engine version'.
EngineVersion *string `json:"engineVersion,omitempty" tf:"engine_version,omitempty"`
// The name of your final DB snapshot
// when this DB instance is deleted. Must be provided if skip_final_snapshot is
// set to false. The value must begin with a letter, only contain alphanumeric characters and hyphens, and not end with a hyphen or contain two consecutive hyphens. Must not be provided when deleting a read replica.
FinalSnapshotIdentifier *string `json:"finalSnapshotIdentifier,omitempty" tf:"final_snapshot_identifier,omitempty"`
// Specifies whether mappings of AWS Identity and Access Management (IAM) accounts to database
// accounts is enabled.
IAMDatabaseAuthenticationEnabled *bool `json:"iamDatabaseAuthenticationEnabled,omitempty" tf:"iam_database_authentication_enabled,omitempty"`
// The instance type of the RDS instance.
InstanceClass *string `json:"instanceClass,omitempty" tf:"instance_class,omitempty"`
// The amount of provisioned IOPS. Setting this implies a
// storage_type of "io1". Can only be set when storage_type is "io1" or "gp3".
// Cannot be specified for gp3 storage if the allocated_storage value is below a per-engine threshold.
// See the RDS User Guide for details.
Iops *float64 `json:"iops,omitempty" tf:"iops,omitempty"`
// The ARN for the KMS encryption key. If creating an
// encrypted replica, set this to the destination KMS ARN.
// +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/kms/v1beta1.Key
// +crossplane:generate:reference:extractor=github.com/upbound/provider-aws/config/common.ARNExtractor()
KMSKeyID *string `json:"kmsKeyId,omitempty" tf:"kms_key_id,omitempty"`
// Reference to a Key in kms to populate kmsKeyId.
// +kubebuilder:validation:Optional
KMSKeyIDRef *v1.Reference `json:"kmsKeyIdRef,omitempty" tf:"-"`
// Selector for a Key in kms to populate kmsKeyId.
// +kubebuilder:validation:Optional
KMSKeyIDSelector *v1.Selector `json:"kmsKeyIdSelector,omitempty" tf:"-"`
// License model information for this DB instance.
LicenseModel *string `json:"licenseModel,omitempty" tf:"license_model,omitempty"`
// The window to perform maintenance in.
// Syntax: "ddd:hh24:mi-ddd:hh24:mi". Eg: "Mon:00:00-Mon:03:00". See RDS
// Maintenance Window
// docs
// for more information.
MaintenanceWindow *string `json:"maintenanceWindow,omitempty" tf:"maintenance_window,omitempty"`
// Set to true to allow RDS to manage the master user password in Secrets Manager. Cannot be set if password is provided.
ManageMasterUserPassword *bool `json:"manageMasterUserPassword,omitempty" tf:"manage_master_user_password,omitempty"`
// The Amazon Web Services KMS key identifier is the key ARN, key ID, alias ARN, or alias name for the KMS key. To use a KMS key in a different Amazon Web Services account, specify the key ARN or alias ARN. If not specified, the default KMS key for your Amazon Web Services account is used.
// +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/kms/v1beta1.Key
// +crossplane:generate:reference:extractor=github.com/crossplane/upjet/pkg/resource.ExtractParamPath("key_id",true)
MasterUserSecretKMSKeyID *string `json:"masterUserSecretKmsKeyId,omitempty" tf:"master_user_secret_kms_key_id,omitempty"`
// Reference to a Key in kms to populate masterUserSecretKmsKeyId.
// +kubebuilder:validation:Optional
MasterUserSecretKMSKeyIDRef *v1.Reference `json:"masterUserSecretKmsKeyIdRef,omitempty" tf:"-"`
// Selector for a Key in kms to populate masterUserSecretKmsKeyId.
// +kubebuilder:validation:Optional
MasterUserSecretKMSKeyIDSelector *v1.Selector `json:"masterUserSecretKmsKeyIdSelector,omitempty" tf:"-"`
// When configured, the upper limit to which Amazon RDS can automatically scale the storage of the DB instance. Configuring this will automatically ignore differences to allocated_storage. Must be greater than or equal to allocated_storage or 0 to disable Storage Autoscaling.
MaxAllocatedStorage *float64 `json:"maxAllocatedStorage,omitempty" tf:"max_allocated_storage,omitempty"`
// The interval, in seconds, between points
// when Enhanced Monitoring metrics are collected for the DB instance. To disable
// collecting Enhanced Monitoring metrics, specify 0. The default is 0. Valid
// Values: 0, 1, 5, 10, 15, 30, 60.
MonitoringInterval *float64 `json:"monitoringInterval,omitempty" tf:"monitoring_interval,omitempty"`
// The ARN for the IAM role that permits RDS
// to send enhanced monitoring metrics to CloudWatch Logs. You can find more
// information on the AWS
// Documentation
// what IAM permissions are needed to allow Enhanced Monitoring for RDS Instances.
// +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/iam/v1beta1.Role
// +crossplane:generate:reference:extractor=github.com/upbound/provider-aws/config/common.ARNExtractor()
MonitoringRoleArn *string `json:"monitoringRoleArn,omitempty" tf:"monitoring_role_arn,omitempty"`
// Reference to a Role in iam to populate monitoringRoleArn.
// +kubebuilder:validation:Optional
MonitoringRoleArnRef *v1.Reference `json:"monitoringRoleArnRef,omitempty" tf:"-"`
// Selector for a Role in iam to populate monitoringRoleArn.
// +kubebuilder:validation:Optional
MonitoringRoleArnSelector *v1.Selector `json:"monitoringRoleArnSelector,omitempty" tf:"-"`
// Specifies if the RDS instance is multi-AZ
MultiAz *bool `json:"multiAz,omitempty" tf:"multi_az,omitempty"`
// The name of the database to create when the DB instance is created. If this parameter is not specified, no database is created in the DB instance. Note that this does not apply for Oracle or SQL Server engines. See the AWS documentation for more details on what applies for those engines. If you are providing an Oracle db name, it needs to be in all upper case. Cannot be specified for a replica.
Name *string `json:"name,omitempty" tf:"name,omitempty"`
// The national character set is used in the NCHAR, NVARCHAR2, and NCLOB data types for Oracle instances. This can't be changed. See Oracle Character Sets
// Supported in Amazon RDS.
NcharCharacterSetName *string `json:"ncharCharacterSetName,omitempty" tf:"nchar_character_set_name,omitempty"`
// The network type of the DB instance. Valid values: IPV4, DUAL.
NetworkType *string `json:"networkType,omitempty" tf:"network_type,omitempty"`
// Name of the DB option group to associate.
OptionGroupName *string `json:"optionGroupName,omitempty" tf:"option_group_name,omitempty"`
// Name of the DB parameter group to
// associate.
ParameterGroupName *string `json:"parameterGroupName,omitempty" tf:"parameter_group_name,omitempty"`
// Specifies whether Performance Insights are enabled. Defaults to false.
PerformanceInsightsEnabled *bool `json:"performanceInsightsEnabled,omitempty" tf:"performance_insights_enabled,omitempty"`
// The ARN for the KMS key to encrypt Performance Insights data. When specifying performance_insights_kms_key_id, performance_insights_enabled needs to be set to true. Once KMS key is set, it can never be changed.
PerformanceInsightsKMSKeyID *string `json:"performanceInsightsKmsKeyId,omitempty" tf:"performance_insights_kms_key_id,omitempty"`
// Amount of time in days to retain Performance Insights data. Valid values are 7, 731 (2 years) or a multiple of 31. When specifying performance_insights_retention_period, performance_insights_enabled needs to be set to true. Defaults to '7'.
PerformanceInsightsRetentionPeriod *float64 `json:"performanceInsightsRetentionPeriod,omitempty" tf:"performance_insights_retention_period,omitempty"`
// The port on which the DB accepts connections.
Port *float64 `json:"port,omitempty" tf:"port,omitempty"`
// Bool to control if instance is publicly
// accessible. Default is false.
PubliclyAccessible *bool `json:"publiclyAccessible,omitempty" tf:"publicly_accessible,omitempty"`
// Specifies whether the replica is in either mounted or open-read-only mode. This attribute
// is only supported by Oracle instances. Oracle replicas operate in open-read-only mode unless otherwise specified. See Working with Oracle Read Replicas for more information.
ReplicaMode *string `json:"replicaMode,omitempty" tf:"replica_mode,omitempty"`
// Specifies that this resource is a Replicate
// database, and to use this value as the source database. This correlates to the
// identifier of another Amazon RDS Database to replicate (if replicating within
// a single region) or ARN of the Amazon RDS Database to replicate (if replicating
// cross-region). Note that if you are
// creating a cross-region replica of an encrypted database you will also need to
// specify a kms_key_id. See DB Instance Replication and Working with
// PostgreSQL and MySQL Read Replicas
// for more information on using Replication.
// +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/rds/v1beta1.Instance
ReplicateSourceDB *string `json:"replicateSourceDb,omitempty" tf:"replicate_source_db,omitempty"`
// Reference to a Instance in rds to populate replicateSourceDb.
// +kubebuilder:validation:Optional
ReplicateSourceDBRef *v1.Reference `json:"replicateSourceDbRef,omitempty" tf:"-"`
// Selector for a Instance in rds to populate replicateSourceDb.
// +kubebuilder:validation:Optional
ReplicateSourceDBSelector *v1.Selector `json:"replicateSourceDbSelector,omitempty" tf:"-"`
// A configuration block for restoring a DB instance to an arbitrary point in time. Requires the identifier argument to be set with the name of the new DB instance to be created. See Restore To Point In Time below for details.
RestoreToPointInTime []RestoreToPointInTimeInitParameters `json:"restoreToPointInTime,omitempty" tf:"restore_to_point_in_time,omitempty"`
// Restore from a Percona Xtrabackup in S3. See Importing Data into an Amazon RDS MySQL DB Instance
S3Import []S3ImportInitParameters `json:"s3Import,omitempty" tf:"s3_import,omitempty"`
// List of DB Security Groups to
// associate. Only used for DB Instances on the .
// +listType=set
SecurityGroupNames []*string `json:"securityGroupNames,omitempty" tf:"security_group_names,omitempty"`
// Determines whether a final DB snapshot is
// created before the DB instance is deleted. If true is specified, no DBSnapshot
// is created. If false is specified, a DB snapshot is created before the DB
// instance is deleted, using the value from final_snapshot_identifier. Default
// is false.
SkipFinalSnapshot *bool `json:"skipFinalSnapshot,omitempty" tf:"skip_final_snapshot,omitempty"`
// Specifies whether or not to create this
// database from a snapshot. This correlates to the snapshot ID you'd find in the
// RDS console, e.g: rds:production-2015-06-26-06-05.
SnapshotIdentifier *string `json:"snapshotIdentifier,omitempty" tf:"snapshot_identifier,omitempty"`
// Specifies whether the DB instance is
// encrypted. Note that if you are creating a cross-region read replica this field
// is ignored and you should instead declare kms_key_id with a valid ARN. The
// default is false if not specified.
StorageEncrypted *bool `json:"storageEncrypted,omitempty" tf:"storage_encrypted,omitempty"`
// The storage throughput value for the DB instance. Can only be set when storage_type is "gp3". Cannot be specified if the allocated_storage value is below a per-engine threshold. See the RDS User Guide for details.
StorageThroughput *float64 `json:"storageThroughput,omitempty" tf:"storage_throughput,omitempty"`
// One of "standard" (magnetic), "gp2" (general
// purpose SSD), "gp3" (general purpose SSD that needs iops independently)
// or "io1" (provisioned IOPS SSD). The default is "io1" if iops is specified,
// "gp2" if not.
StorageType *string `json:"storageType,omitempty" tf:"storage_type,omitempty"`
// Key-value map of resource tags.
// +mapType=granular
Tags map[string]*string `json:"tags,omitempty" tf:"tags,omitempty"`
// Time zone of the DB instance. timezone is currently
// only supported by Microsoft SQL Server. The timezone can only be set on
// creation. See MSSQL User
// Guide
// for more information.
Timezone *string `json:"timezone,omitempty" tf:"timezone,omitempty"`
// Username for the master DB user. Cannot be specified for a replica.
Username *string `json:"username,omitempty" tf:"username,omitempty"`
// References to SecurityGroup in ec2 to populate vpcSecurityGroupIds.
// +kubebuilder:validation:Optional
VPCSecurityGroupIDRefs []v1.Reference `json:"vpcSecurityGroupIdRefs,omitempty" tf:"-"`
// Selector for a list of SecurityGroup in ec2 to populate vpcSecurityGroupIds.
// +kubebuilder:validation:Optional
VPCSecurityGroupIDSelector *v1.Selector `json:"vpcSecurityGroupIdSelector,omitempty" tf:"-"`
// List of VPC security groups to
// associate.
// +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/ec2/v1beta1.SecurityGroup
// +crossplane:generate:reference:refFieldName=VPCSecurityGroupIDRefs
// +crossplane:generate:reference:selectorFieldName=VPCSecurityGroupIDSelector
// +listType=set
VPCSecurityGroupIds []*string `json:"vpcSecurityGroupIds,omitempty" tf:"vpc_security_group_ids,omitempty"`
}
type InstanceObservation struct {
// The hostname of the RDS instance. See also endpoint and port.
Address *string `json:"address,omitempty" tf:"address,omitempty"`
// The allocated storage in gibibytes. If max_allocated_storage is configured, this argument represents the initial storage allocation and differences from the configuration will be ignored automatically when Storage Autoscaling occurs. If replicate_source_db is set, the value is ignored during the creation of the instance.
AllocatedStorage *float64 `json:"allocatedStorage,omitempty" tf:"allocated_storage,omitempty"`
// Indicates that major version
// upgrades are allowed. Changing this parameter does not result in an outage and
// the change is asynchronously applied as soon as possible.
AllowMajorVersionUpgrade *bool `json:"allowMajorVersionUpgrade,omitempty" tf:"allow_major_version_upgrade,omitempty"`
// Specifies whether any database modifications
// are applied immediately, or during the next maintenance window. Default is
// false. See Amazon RDS Documentation for more
// information.
ApplyImmediately *bool `json:"applyImmediately,omitempty" tf:"apply_immediately,omitempty"`
// The ARN of the RDS instance.
Arn *string `json:"arn,omitempty" tf:"arn,omitempty"`
// Indicates that minor engine upgrades
// will be applied automatically to the DB instance during the maintenance window.
// Defaults to true.
AutoMinorVersionUpgrade *bool `json:"autoMinorVersionUpgrade,omitempty" tf:"auto_minor_version_upgrade,omitempty"`
// The AZ for the RDS instance.
AvailabilityZone *string `json:"availabilityZone,omitempty" tf:"availability_zone,omitempty"`
// The days to retain backups for.
// Must be between 0 and 35.
// Default is 0.
// Must be greater than 0 if the database is used as a source for a Read Replica,
// uses low-downtime updates,
// or will use RDS Blue/Green deployments.
BackupRetentionPeriod *float64 `json:"backupRetentionPeriod,omitempty" tf:"backup_retention_period,omitempty"`
// The daily time range (in UTC) during which automated backups are created if they are enabled.
// Example: "09:46-10:16". Must not overlap with maintenance_window.
BackupWindow *string `json:"backupWindow,omitempty" tf:"backup_window,omitempty"`
// Enables low-downtime updates using RDS Blue/Green deployments.
// See blue_green_update below
BlueGreenUpdate []BlueGreenUpdateObservation `json:"blueGreenUpdate,omitempty" tf:"blue_green_update,omitempty"`
// The identifier of the CA certificate for the DB instance.
CACertIdentifier *string `json:"caCertIdentifier,omitempty" tf:"ca_cert_identifier,omitempty"`
// The character set name to use for DB
// encoding in Oracle and Microsoft SQL instances (collation). This can't be changed. See Oracle Character Sets
// Supported in Amazon RDS
// or Server-Level Collation for Microsoft SQL Server for more information.
CharacterSetName *string `json:"characterSetName,omitempty" tf:"character_set_name,omitempty"`
// – Copy all Instance tags to snapshots. Default is false.
CopyTagsToSnapshot *bool `json:"copyTagsToSnapshot,omitempty" tf:"copy_tags_to_snapshot,omitempty"`
// The instance profile associated with the underlying Amazon EC2 instance of an RDS Custom DB instance.
CustomIAMInstanceProfile *string `json:"customIamInstanceProfile,omitempty" tf:"custom_iam_instance_profile,omitempty"`
// Indicates whether to enable a customer-owned IP address (CoIP) for an RDS on Outposts DB instance. See CoIP for RDS on Outposts for more information.
CustomerOwnedIPEnabled *bool `json:"customerOwnedIpEnabled,omitempty" tf:"customer_owned_ip_enabled,omitempty"`
// The name of the database to create when the DB instance is created. If this parameter is not specified, no database is created in the DB instance. Note that this does not apply for Oracle or SQL Server engines. See the AWS documentation for more details on what applies for those engines. If you are providing an Oracle db name, it needs to be in all upper case. Cannot be specified for a replica.
DBName *string `json:"dbName,omitempty" tf:"db_name,omitempty"`
// Name of DB subnet group. DB instance will
// be created in the VPC associated with the DB subnet group. If unspecified, will
// be created in the default VPC, or in EC2 Classic, if available. When working
// with read replicas, it should be specified only if the source database
// specifies an instance in another AWS Region. See DBSubnetGroupName in API
// action CreateDBInstanceReadReplica
// for additional read replica contraints.
DBSubnetGroupName *string `json:"dbSubnetGroupName,omitempty" tf:"db_subnet_group_name,omitempty"`
// Specifies whether to remove automated backups immediately after the DB instance is deleted. Default is true.
DeleteAutomatedBackups *bool `json:"deleteAutomatedBackups,omitempty" tf:"delete_automated_backups,omitempty"`
// If the DB instance should have deletion protection enabled. The database can't be deleted when this value is set to true. The default is false.
DeletionProtection *bool `json:"deletionProtection,omitempty" tf:"deletion_protection,omitempty"`
// The ID of the Directory Service Active Directory domain to create the instance in.
Domain *string `json:"domain,omitempty" tf:"domain,omitempty"`
// The name of the IAM role to be used when making API calls to the Directory Service.
DomainIAMRoleName *string `json:"domainIamRoleName,omitempty" tf:"domain_iam_role_name,omitempty"`
// Set of log types to enable for exporting to CloudWatch logs. If omitted, no logs will be exported. Valid values (depending on engine). MySQL and MariaDB: audit, error, general, slowquery. PostgreSQL: postgresql, upgrade. MSSQL: agent , error. Oracle: alert, audit, listener, trace.
// +listType=set
EnabledCloudwatchLogsExports []*string `json:"enabledCloudwatchLogsExports,omitempty" tf:"enabled_cloudwatch_logs_exports,omitempty"`
// The connection endpoint in address:port format.
Endpoint *string `json:"endpoint,omitempty" tf:"endpoint,omitempty"`
// The database engine to use. For supported values, see the Engine parameter in [API action CreateDBInstance](https://docs.aws.amazon.com/AmazonRDS/latest/APIReference/API_CreateDBInstance.html). Note that for Amazon Aurora instances the engine must match the [DB Cluster](https://marketplace.upbound.io/providers/upbound/provider-aws/latest/resources/rds.aws.upbound.io/Cluster/v1beta1)'s engine'. For information on the difference between the available Aurora MySQL engines see Comparison in the [Amazon RDS Release Notes](https://docs.aws.amazon.com/AmazonRDS/latest/AuroraMySQLReleaseNotes/Welcome.html).
Engine *string `json:"engine,omitempty" tf:"engine,omitempty"`
// The engine version to use. If `autoMinorVersionUpgrade` is enabled, you can provide a prefix of the version such as 5.7 (for 5.7.10). The actual engine version used is returned in the attribute `status.atProvider.engineVersionActual`. For supported values, see the EngineVersion parameter in [API action CreateDBInstance](https://docs.aws.amazon.com/AmazonRDS/latest/APIReference/API_CreateDBInstance.html). Note that for Amazon Aurora instances the engine version must match the [DB Cluster](https://marketplace.upbound.io/providers/upbound/provider-aws/latest/resources/rds.aws.upbound.io/Cluster/v1beta1)'s engine version'.
EngineVersion *string `json:"engineVersion,omitempty" tf:"engine_version,omitempty"`
// The running version of the database.
EngineVersionActual *string `json:"engineVersionActual,omitempty" tf:"engine_version_actual,omitempty"`
// The name of your final DB snapshot
// when this DB instance is deleted. Must be provided if skip_final_snapshot is
// set to false. The value must begin with a letter, only contain alphanumeric characters and hyphens, and not end with a hyphen or contain two consecutive hyphens. Must not be provided when deleting a read replica.
FinalSnapshotIdentifier *string `json:"finalSnapshotIdentifier,omitempty" tf:"final_snapshot_identifier,omitempty"`
// The canonical hosted zone ID of the DB instance (to be used
// in a Route 53 Alias record).
HostedZoneID *string `json:"hostedZoneId,omitempty" tf:"hosted_zone_id,omitempty"`
// Specifies whether mappings of AWS Identity and Access Management (IAM) accounts to database
// accounts is enabled.
IAMDatabaseAuthenticationEnabled *bool `json:"iamDatabaseAuthenticationEnabled,omitempty" tf:"iam_database_authentication_enabled,omitempty"`
// The RDS instance ID.
ID *string `json:"id,omitempty" tf:"id,omitempty"`
// The instance type of the RDS instance.
InstanceClass *string `json:"instanceClass,omitempty" tf:"instance_class,omitempty"`
// The amount of provisioned IOPS. Setting this implies a
// storage_type of "io1". Can only be set when storage_type is "io1" or "gp3".
// Cannot be specified for gp3 storage if the allocated_storage value is below a per-engine threshold.
// See the RDS User Guide for details.
Iops *float64 `json:"iops,omitempty" tf:"iops,omitempty"`
// The ARN for the KMS encryption key. If creating an
// encrypted replica, set this to the destination KMS ARN.
KMSKeyID *string `json:"kmsKeyId,omitempty" tf:"kms_key_id,omitempty"`
// The latest time, in UTC RFC3339 format, to which a database can be restored with point-in-time restore.
LatestRestorableTime *string `json:"latestRestorableTime,omitempty" tf:"latest_restorable_time,omitempty"`
// License model information for this DB instance.
LicenseModel *string `json:"licenseModel,omitempty" tf:"license_model,omitempty"`
// Specifies the listener connection endpoint for SQL Server Always On. See endpoint below.
ListenerEndpoint []ListenerEndpointObservation `json:"listenerEndpoint,omitempty" tf:"listener_endpoint,omitempty"`
// The window to perform maintenance in.
// Syntax: "ddd:hh24:mi-ddd:hh24:mi". Eg: "Mon:00:00-Mon:03:00". See RDS
// Maintenance Window
// docs
// for more information.
MaintenanceWindow *string `json:"maintenanceWindow,omitempty" tf:"maintenance_window,omitempty"`
// Set to true to allow RDS to manage the master user password in Secrets Manager. Cannot be set if password is provided.
ManageMasterUserPassword *bool `json:"manageMasterUserPassword,omitempty" tf:"manage_master_user_password,omitempty"`
// A block that specifies the master user secret. Only available when manage_master_user_password is set to true. Documented below.
MasterUserSecret []MasterUserSecretObservation `json:"masterUserSecret,omitempty" tf:"master_user_secret,omitempty"`
// The Amazon Web Services KMS key identifier is the key ARN, key ID, alias ARN, or alias name for the KMS key. To use a KMS key in a different Amazon Web Services account, specify the key ARN or alias ARN. If not specified, the default KMS key for your Amazon Web Services account is used.
MasterUserSecretKMSKeyID *string `json:"masterUserSecretKmsKeyId,omitempty" tf:"master_user_secret_kms_key_id,omitempty"`
// When configured, the upper limit to which Amazon RDS can automatically scale the storage of the DB instance. Configuring this will automatically ignore differences to allocated_storage. Must be greater than or equal to allocated_storage or 0 to disable Storage Autoscaling.
MaxAllocatedStorage *float64 `json:"maxAllocatedStorage,omitempty" tf:"max_allocated_storage,omitempty"`
// The interval, in seconds, between points
// when Enhanced Monitoring metrics are collected for the DB instance. To disable
// collecting Enhanced Monitoring metrics, specify 0. The default is 0. Valid
// Values: 0, 1, 5, 10, 15, 30, 60.
MonitoringInterval *float64 `json:"monitoringInterval,omitempty" tf:"monitoring_interval,omitempty"`
// The ARN for the IAM role that permits RDS
// to send enhanced monitoring metrics to CloudWatch Logs. You can find more
// information on the AWS
// Documentation
// what IAM permissions are needed to allow Enhanced Monitoring for RDS Instances.
MonitoringRoleArn *string `json:"monitoringRoleArn,omitempty" tf:"monitoring_role_arn,omitempty"`
// Specifies if the RDS instance is multi-AZ
MultiAz *bool `json:"multiAz,omitempty" tf:"multi_az,omitempty"`
// The name of the database to create when the DB instance is created. If this parameter is not specified, no database is created in the DB instance. Note that this does not apply for Oracle or SQL Server engines. See the AWS documentation for more details on what applies for those engines. If you are providing an Oracle db name, it needs to be in all upper case. Cannot be specified for a replica.
Name *string `json:"name,omitempty" tf:"name,omitempty"`
// The national character set is used in the NCHAR, NVARCHAR2, and NCLOB data types for Oracle instances. This can't be changed. See Oracle Character Sets
// Supported in Amazon RDS.
NcharCharacterSetName *string `json:"ncharCharacterSetName,omitempty" tf:"nchar_character_set_name,omitempty"`
// The network type of the DB instance. Valid values: IPV4, DUAL.
NetworkType *string `json:"networkType,omitempty" tf:"network_type,omitempty"`
// Name of the DB option group to associate.
OptionGroupName *string `json:"optionGroupName,omitempty" tf:"option_group_name,omitempty"`
// Name of the DB parameter group to
// associate.
ParameterGroupName *string `json:"parameterGroupName,omitempty" tf:"parameter_group_name,omitempty"`
// Specifies whether Performance Insights are enabled. Defaults to false.
PerformanceInsightsEnabled *bool `json:"performanceInsightsEnabled,omitempty" tf:"performance_insights_enabled,omitempty"`
// The ARN for the KMS key to encrypt Performance Insights data. When specifying performance_insights_kms_key_id, performance_insights_enabled needs to be set to true. Once KMS key is set, it can never be changed.
PerformanceInsightsKMSKeyID *string `json:"performanceInsightsKmsKeyId,omitempty" tf:"performance_insights_kms_key_id,omitempty"`
// Amount of time in days to retain Performance Insights data. Valid values are 7, 731 (2 years) or a multiple of 31. When specifying performance_insights_retention_period, performance_insights_enabled needs to be set to true. Defaults to '7'.
PerformanceInsightsRetentionPeriod *float64 `json:"performanceInsightsRetentionPeriod,omitempty" tf:"performance_insights_retention_period,omitempty"`
// The port on which the DB accepts connections.
Port *float64 `json:"port,omitempty" tf:"port,omitempty"`
// Bool to control if instance is publicly
// accessible. Default is false.
PubliclyAccessible *bool `json:"publiclyAccessible,omitempty" tf:"publicly_accessible,omitempty"`
// Specifies whether the replica is in either mounted or open-read-only mode. This attribute
// is only supported by Oracle instances. Oracle replicas operate in open-read-only mode unless otherwise specified. See Working with Oracle Read Replicas for more information.
ReplicaMode *string `json:"replicaMode,omitempty" tf:"replica_mode,omitempty"`
Replicas []*string `json:"replicas,omitempty" tf:"replicas,omitempty"`
// Specifies that this resource is a Replicate
// database, and to use this value as the source database. This correlates to the
// identifier of another Amazon RDS Database to replicate (if replicating within
// a single region) or ARN of the Amazon RDS Database to replicate (if replicating
// cross-region). Note that if you are
// creating a cross-region replica of an encrypted database you will also need to
// specify a kms_key_id. See DB Instance Replication and Working with
// PostgreSQL and MySQL Read Replicas
// for more information on using Replication.
ReplicateSourceDB *string `json:"replicateSourceDb,omitempty" tf:"replicate_source_db,omitempty"`
// The RDS Resource ID of this instance.
ResourceID *string `json:"resourceId,omitempty" tf:"resource_id,omitempty"`
// A configuration block for restoring a DB instance to an arbitrary point in time. Requires the identifier argument to be set with the name of the new DB instance to be created. See Restore To Point In Time below for details.
RestoreToPointInTime []RestoreToPointInTimeObservation `json:"restoreToPointInTime,omitempty" tf:"restore_to_point_in_time,omitempty"`
// Restore from a Percona Xtrabackup in S3. See Importing Data into an Amazon RDS MySQL DB Instance
S3Import []S3ImportObservation `json:"s3Import,omitempty" tf:"s3_import,omitempty"`
// List of DB Security Groups to
// associate. Only used for DB Instances on the .
// +listType=set
SecurityGroupNames []*string `json:"securityGroupNames,omitempty" tf:"security_group_names,omitempty"`
// Determines whether a final DB snapshot is
// created before the DB instance is deleted. If true is specified, no DBSnapshot
// is created. If false is specified, a DB snapshot is created before the DB
// instance is deleted, using the value from final_snapshot_identifier. Default
// is false.
SkipFinalSnapshot *bool `json:"skipFinalSnapshot,omitempty" tf:"skip_final_snapshot,omitempty"`
// Specifies whether or not to create this
// database from a snapshot. This correlates to the snapshot ID you'd find in the
// RDS console, e.g: rds:production-2015-06-26-06-05.
SnapshotIdentifier *string `json:"snapshotIdentifier,omitempty" tf:"snapshot_identifier,omitempty"`
// The RDS instance status.
Status *string `json:"status,omitempty" tf:"status,omitempty"`
// Specifies whether the DB instance is
// encrypted. Note that if you are creating a cross-region read replica this field
// is ignored and you should instead declare kms_key_id with a valid ARN. The
// default is false if not specified.
StorageEncrypted *bool `json:"storageEncrypted,omitempty" tf:"storage_encrypted,omitempty"`
// The storage throughput value for the DB instance. Can only be set when storage_type is "gp3". Cannot be specified if the allocated_storage value is below a per-engine threshold. See the RDS User Guide for details.
StorageThroughput *float64 `json:"storageThroughput,omitempty" tf:"storage_throughput,omitempty"`
// One of "standard" (magnetic), "gp2" (general
// purpose SSD), "gp3" (general purpose SSD that needs iops independently)
// or "io1" (provisioned IOPS SSD). The default is "io1" if iops is specified,
// "gp2" if not.
StorageType *string `json:"storageType,omitempty" tf:"storage_type,omitempty"`
// Key-value map of resource tags.
// +mapType=granular
Tags map[string]*string `json:"tags,omitempty" tf:"tags,omitempty"`
// A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block.
// +mapType=granular
TagsAll map[string]*string `json:"tagsAll,omitempty" tf:"tags_all,omitempty"`
// Time zone of the DB instance. timezone is currently
// only supported by Microsoft SQL Server. The timezone can only be set on
// creation. See MSSQL User
// Guide
// for more information.
Timezone *string `json:"timezone,omitempty" tf:"timezone,omitempty"`
// Username for the master DB user. Cannot be specified for a replica.
Username *string `json:"username,omitempty" tf:"username,omitempty"`
// List of VPC security groups to
// associate.
// +listType=set
VPCSecurityGroupIds []*string `json:"vpcSecurityGroupIds,omitempty" tf:"vpc_security_group_ids,omitempty"`
}
type InstanceParameters struct {
// The allocated storage in gibibytes. If max_allocated_storage is configured, this argument represents the initial storage allocation and differences from the configuration will be ignored automatically when Storage Autoscaling occurs. If replicate_source_db is set, the value is ignored during the creation of the instance.
// +kubebuilder:validation:Optional
AllocatedStorage *float64 `json:"allocatedStorage,omitempty" tf:"allocated_storage,omitempty"`
// Indicates that major version
// upgrades are allowed. Changing this parameter does not result in an outage and
// the change is asynchronously applied as soon as possible.
// +kubebuilder:validation:Optional
AllowMajorVersionUpgrade *bool `json:"allowMajorVersionUpgrade,omitempty" tf:"allow_major_version_upgrade,omitempty"`
// Specifies whether any database modifications
// are applied immediately, or during the next maintenance window. Default is
// false. See Amazon RDS Documentation for more
// information.
// +kubebuilder:validation:Optional
ApplyImmediately *bool `json:"applyImmediately,omitempty" tf:"apply_immediately,omitempty"`
// Password for the master DB user. Note that this may show up in
// logs, and it will be stored in the state file. Cannot be set if manage_master_user_password is set to true.
// If true, the password will be auto-generated and stored in the Secret referenced by the passwordSecretRef field.
// +upjet:crd:field:TFTag=-
// +kubebuilder:validation:Optional
AutoGeneratePassword *bool `json:"autoGeneratePassword,omitempty" tf:"-"`
// Indicates that minor engine upgrades
// will be applied automatically to the DB instance during the maintenance window.
// Defaults to true.
// +kubebuilder:validation:Optional
AutoMinorVersionUpgrade *bool `json:"autoMinorVersionUpgrade,omitempty" tf:"auto_minor_version_upgrade,omitempty"`
// The AZ for the RDS instance.
// +kubebuilder:validation:Optional
AvailabilityZone *string `json:"availabilityZone,omitempty" tf:"availability_zone,omitempty"`
// The days to retain backups for.
// Must be between 0 and 35.
// Default is 0.
// Must be greater than 0 if the database is used as a source for a Read Replica,
// uses low-downtime updates,
// or will use RDS Blue/Green deployments.
// +kubebuilder:validation:Optional
BackupRetentionPeriod *float64 `json:"backupRetentionPeriod,omitempty" tf:"backup_retention_period,omitempty"`
// The daily time range (in UTC) during which automated backups are created if they are enabled.
// Example: "09:46-10:16". Must not overlap with maintenance_window.
// +kubebuilder:validation:Optional
BackupWindow *string `json:"backupWindow,omitempty" tf:"backup_window,omitempty"`
// Enables low-downtime updates using RDS Blue/Green deployments.
// See blue_green_update below
// +kubebuilder:validation:Optional
BlueGreenUpdate []BlueGreenUpdateParameters `json:"blueGreenUpdate,omitempty" tf:"blue_green_update,omitempty"`
// The identifier of the CA certificate for the DB instance.
// +kubebuilder:validation:Optional
CACertIdentifier *string `json:"caCertIdentifier,omitempty" tf:"ca_cert_identifier,omitempty"`
// The character set name to use for DB
// encoding in Oracle and Microsoft SQL instances (collation). This can't be changed. See Oracle Character Sets
// Supported in Amazon RDS
// or Server-Level Collation for Microsoft SQL Server for more information.
// +kubebuilder:validation:Optional
CharacterSetName *string `json:"characterSetName,omitempty" tf:"character_set_name,omitempty"`
// – Copy all Instance tags to snapshots. Default is false.
// +kubebuilder:validation:Optional
CopyTagsToSnapshot *bool `json:"copyTagsToSnapshot,omitempty" tf:"copy_tags_to_snapshot,omitempty"`
// The instance profile associated with the underlying Amazon EC2 instance of an RDS Custom DB instance.
// +kubebuilder:validation:Optional
CustomIAMInstanceProfile *string `json:"customIamInstanceProfile,omitempty" tf:"custom_iam_instance_profile,omitempty"`
// Indicates whether to enable a customer-owned IP address (CoIP) for an RDS on Outposts DB instance. See CoIP for RDS on Outposts for more information.
// +kubebuilder:validation:Optional
CustomerOwnedIPEnabled *bool `json:"customerOwnedIpEnabled,omitempty" tf:"customer_owned_ip_enabled,omitempty"`
// The name of the database to create when the DB instance is created. If this parameter is not specified, no database is created in the DB instance. Note that this does not apply for Oracle or SQL Server engines. See the AWS documentation for more details on what applies for those engines. If you are providing an Oracle db name, it needs to be in all upper case. Cannot be specified for a replica.
// +kubebuilder:validation:Optional
DBName *string `json:"dbName,omitempty" tf:"db_name,omitempty"`
// Name of DB subnet group. DB instance will
// be created in the VPC associated with the DB subnet group. If unspecified, will
// be created in the default VPC, or in EC2 Classic, if available. When working
// with read replicas, it should be specified only if the source database
// specifies an instance in another AWS Region. See DBSubnetGroupName in API
// action CreateDBInstanceReadReplica
// for additional read replica contraints.
// +crossplane:generate:reference:type=SubnetGroup
// +kubebuilder:validation:Optional
DBSubnetGroupName *string `json:"dbSubnetGroupName,omitempty" tf:"db_subnet_group_name,omitempty"`
// Reference to a SubnetGroup to populate dbSubnetGroupName.
// +kubebuilder:validation:Optional
DBSubnetGroupNameRef *v1.Reference `json:"dbSubnetGroupNameRef,omitempty" tf:"-"`
// Selector for a SubnetGroup to populate dbSubnetGroupName.
// +kubebuilder:validation:Optional
DBSubnetGroupNameSelector *v1.Selector `json:"dbSubnetGroupNameSelector,omitempty" tf:"-"`
// Specifies whether to remove automated backups immediately after the DB instance is deleted. Default is true.
// +kubebuilder:validation:Optional
DeleteAutomatedBackups *bool `json:"deleteAutomatedBackups,omitempty" tf:"delete_automated_backups,omitempty"`
// If the DB instance should have deletion protection enabled. The database can't be deleted when this value is set to true. The default is false.
// +kubebuilder:validation:Optional
DeletionProtection *bool `json:"deletionProtection,omitempty" tf:"deletion_protection,omitempty"`
// The ID of the Directory Service Active Directory domain to create the instance in.
// +kubebuilder:validation:Optional
Domain *string `json:"domain,omitempty" tf:"domain,omitempty"`
// The name of the IAM role to be used when making API calls to the Directory Service.
// +kubebuilder:validation:Optional
DomainIAMRoleName *string `json:"domainIamRoleName,omitempty" tf:"domain_iam_role_name,omitempty"`
// Set of log types to enable for exporting to CloudWatch logs. If omitted, no logs will be exported. Valid values (depending on engine). MySQL and MariaDB: audit, error, general, slowquery. PostgreSQL: postgresql, upgrade. MSSQL: agent , error. Oracle: alert, audit, listener, trace.
// +kubebuilder:validation:Optional
// +listType=set
EnabledCloudwatchLogsExports []*string `json:"enabledCloudwatchLogsExports,omitempty" tf:"enabled_cloudwatch_logs_exports,omitempty"`
// The database engine to use. For supported values, see the Engine parameter in [API action CreateDBInstance](https://docs.aws.amazon.com/AmazonRDS/latest/APIReference/API_CreateDBInstance.html). Note that for Amazon Aurora instances the engine must match the [DB Cluster](https://marketplace.upbound.io/providers/upbound/provider-aws/latest/resources/rds.aws.upbound.io/Cluster/v1beta1)'s engine'. For information on the difference between the available Aurora MySQL engines see Comparison in the [Amazon RDS Release Notes](https://docs.aws.amazon.com/AmazonRDS/latest/AuroraMySQLReleaseNotes/Welcome.html).
// +kubebuilder:validation:Optional
Engine *string `json:"engine,omitempty" tf:"engine,omitempty"`
// The engine version to use. If `autoMinorVersionUpgrade` is enabled, you can provide a prefix of the version such as 5.7 (for 5.7.10). The actual engine version used is returned in the attribute `status.atProvider.engineVersionActual`. For supported values, see the EngineVersion parameter in [API action CreateDBInstance](https://docs.aws.amazon.com/AmazonRDS/latest/APIReference/API_CreateDBInstance.html). Note that for Amazon Aurora instances the engine version must match the [DB Cluster](https://marketplace.upbound.io/providers/upbound/provider-aws/latest/resources/rds.aws.upbound.io/Cluster/v1beta1)'s engine version'.
// +kubebuilder:validation:Optional
EngineVersion *string `json:"engineVersion,omitempty" tf:"engine_version,omitempty"`
// The name of your final DB snapshot
// when this DB instance is deleted. Must be provided if skip_final_snapshot is
// set to false. The value must begin with a letter, only contain alphanumeric characters and hyphens, and not end with a hyphen or contain two consecutive hyphens. Must not be provided when deleting a read replica.
// +kubebuilder:validation:Optional
FinalSnapshotIdentifier *string `json:"finalSnapshotIdentifier,omitempty" tf:"final_snapshot_identifier,omitempty"`
// Specifies whether mappings of AWS Identity and Access Management (IAM) accounts to database
// accounts is enabled.
// +kubebuilder:validation:Optional
IAMDatabaseAuthenticationEnabled *bool `json:"iamDatabaseAuthenticationEnabled,omitempty" tf:"iam_database_authentication_enabled,omitempty"`
// The instance type of the RDS instance.
// +kubebuilder:validation:Optional
InstanceClass *string `json:"instanceClass,omitempty" tf:"instance_class,omitempty"`
// The amount of provisioned IOPS. Setting this implies a
// storage_type of "io1". Can only be set when storage_type is "io1" or "gp3".
// Cannot be specified for gp3 storage if the allocated_storage value is below a per-engine threshold.
// See the RDS User Guide for details.
// +kubebuilder:validation:Optional
Iops *float64 `json:"iops,omitempty" tf:"iops,omitempty"`
// The ARN for the KMS encryption key. If creating an
// encrypted replica, set this to the destination KMS ARN.
// +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/kms/v1beta1.Key
// +crossplane:generate:reference:extractor=github.com/upbound/provider-aws/config/common.ARNExtractor()
// +kubebuilder:validation:Optional
KMSKeyID *string `json:"kmsKeyId,omitempty" tf:"kms_key_id,omitempty"`
// Reference to a Key in kms to populate kmsKeyId.
// +kubebuilder:validation:Optional
KMSKeyIDRef *v1.Reference `json:"kmsKeyIdRef,omitempty" tf:"-"`
// Selector for a Key in kms to populate kmsKeyId.
// +kubebuilder:validation:Optional
KMSKeyIDSelector *v1.Selector `json:"kmsKeyIdSelector,omitempty" tf:"-"`
// License model information for this DB instance.
// +kubebuilder:validation:Optional
LicenseModel *string `json:"licenseModel,omitempty" tf:"license_model,omitempty"`
// The window to perform maintenance in.
// Syntax: "ddd:hh24:mi-ddd:hh24:mi". Eg: "Mon:00:00-Mon:03:00". See RDS
// Maintenance Window
// docs
// for more information.
// +kubebuilder:validation:Optional
MaintenanceWindow *string `json:"maintenanceWindow,omitempty" tf:"maintenance_window,omitempty"`
// Set to true to allow RDS to manage the master user password in Secrets Manager. Cannot be set if password is provided.
// +kubebuilder:validation:Optional
ManageMasterUserPassword *bool `json:"manageMasterUserPassword,omitempty" tf:"manage_master_user_password,omitempty"`
// The Amazon Web Services KMS key identifier is the key ARN, key ID, alias ARN, or alias name for the KMS key. To use a KMS key in a different Amazon Web Services account, specify the key ARN or alias ARN. If not specified, the default KMS key for your Amazon Web Services account is used.
// +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/kms/v1beta1.Key
// +crossplane:generate:reference:extractor=github.com/crossplane/upjet/pkg/resource.ExtractParamPath("key_id",true)
// +kubebuilder:validation:Optional
MasterUserSecretKMSKeyID *string `json:"masterUserSecretKmsKeyId,omitempty" tf:"master_user_secret_kms_key_id,omitempty"`
// Reference to a Key in kms to populate masterUserSecretKmsKeyId.
// +kubebuilder:validation:Optional
MasterUserSecretKMSKeyIDRef *v1.Reference `json:"masterUserSecretKmsKeyIdRef,omitempty" tf:"-"`
// Selector for a Key in kms to populate masterUserSecretKmsKeyId.
// +kubebuilder:validation:Optional
MasterUserSecretKMSKeyIDSelector *v1.Selector `json:"masterUserSecretKmsKeyIdSelector,omitempty" tf:"-"`
// When configured, the upper limit to which Amazon RDS can automatically scale the storage of the DB instance. Configuring this will automatically ignore differences to allocated_storage. Must be greater than or equal to allocated_storage or 0 to disable Storage Autoscaling.
// +kubebuilder:validation:Optional
MaxAllocatedStorage *float64 `json:"maxAllocatedStorage,omitempty" tf:"max_allocated_storage,omitempty"`
// The interval, in seconds, between points
// when Enhanced Monitoring metrics are collected for the DB instance. To disable
// collecting Enhanced Monitoring metrics, specify 0. The default is 0. Valid
// Values: 0, 1, 5, 10, 15, 30, 60.
// +kubebuilder:validation:Optional
MonitoringInterval *float64 `json:"monitoringInterval,omitempty" tf:"monitoring_interval,omitempty"`
// The ARN for the IAM role that permits RDS
// to send enhanced monitoring metrics to CloudWatch Logs. You can find more
// information on the AWS
// Documentation
// what IAM permissions are needed to allow Enhanced Monitoring for RDS Instances.
// +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/iam/v1beta1.Role
// +crossplane:generate:reference:extractor=github.com/upbound/provider-aws/config/common.ARNExtractor()
// +kubebuilder:validation:Optional
MonitoringRoleArn *string `json:"monitoringRoleArn,omitempty" tf:"monitoring_role_arn,omitempty"`
// Reference to a Role in iam to populate monitoringRoleArn.
// +kubebuilder:validation:Optional
MonitoringRoleArnRef *v1.Reference `json:"monitoringRoleArnRef,omitempty" tf:"-"`
// Selector for a Role in iam to populate monitoringRoleArn.
// +kubebuilder:validation:Optional
MonitoringRoleArnSelector *v1.Selector `json:"monitoringRoleArnSelector,omitempty" tf:"-"`
// Specifies if the RDS instance is multi-AZ
// +kubebuilder:validation:Optional
MultiAz *bool `json:"multiAz,omitempty" tf:"multi_az,omitempty"`
// The name of the database to create when the DB instance is created. If this parameter is not specified, no database is created in the DB instance. Note that this does not apply for Oracle or SQL Server engines. See the AWS documentation for more details on what applies for those engines. If you are providing an Oracle db name, it needs to be in all upper case. Cannot be specified for a replica.
// +kubebuilder:validation:Optional
Name *string `json:"name,omitempty" tf:"name,omitempty"`
// The national character set is used in the NCHAR, NVARCHAR2, and NCLOB data types for Oracle instances. This can't be changed. See Oracle Character Sets
// Supported in Amazon RDS.
// +kubebuilder:validation:Optional
NcharCharacterSetName *string `json:"ncharCharacterSetName,omitempty" tf:"nchar_character_set_name,omitempty"`
// The network type of the DB instance. Valid values: IPV4, DUAL.
// +kubebuilder:validation:Optional
NetworkType *string `json:"networkType,omitempty" tf:"network_type,omitempty"`
// Name of the DB option group to associate.
// +kubebuilder:validation:Optional
OptionGroupName *string `json:"optionGroupName,omitempty" tf:"option_group_name,omitempty"`
// Name of the DB parameter group to
// associate.
// +kubebuilder:validation:Optional
ParameterGroupName *string `json:"parameterGroupName,omitempty" tf:"parameter_group_name,omitempty"`
// Password for the master DB user. Note that this may show up in
// logs, and it will be stored in the state file. Cannot be set if manage_master_user_password is set to true.
// Password for the master DB user. If you set autoGeneratePassword to true, the Secret referenced here will be created or updated with generated password if it does not already contain one.
// +kubebuilder:validation:Optional
PasswordSecretRef *v1.SecretKeySelector `json:"passwordSecretRef,omitempty" tf:"-"`
// Specifies whether Performance Insights are enabled. Defaults to false.
// +kubebuilder:validation:Optional
PerformanceInsightsEnabled *bool `json:"performanceInsightsEnabled,omitempty" tf:"performance_insights_enabled,omitempty"`
// The ARN for the KMS key to encrypt Performance Insights data. When specifying performance_insights_kms_key_id, performance_insights_enabled needs to be set to true. Once KMS key is set, it can never be changed.
// +kubebuilder:validation:Optional
PerformanceInsightsKMSKeyID *string `json:"performanceInsightsKmsKeyId,omitempty" tf:"performance_insights_kms_key_id,omitempty"`
// Amount of time in days to retain Performance Insights data. Valid values are 7, 731 (2 years) or a multiple of 31. When specifying performance_insights_retention_period, performance_insights_enabled needs to be set to true. Defaults to '7'.
// +kubebuilder:validation:Optional
PerformanceInsightsRetentionPeriod *float64 `json:"performanceInsightsRetentionPeriod,omitempty" tf:"performance_insights_retention_period,omitempty"`
// The port on which the DB accepts connections.
// +kubebuilder:validation:Optional
Port *float64 `json:"port,omitempty" tf:"port,omitempty"`
// Bool to control if instance is publicly
// accessible. Default is false.
// +kubebuilder:validation:Optional
PubliclyAccessible *bool `json:"publiclyAccessible,omitempty" tf:"publicly_accessible,omitempty"`
// Region is the region you'd like your resource to be created in.
// +upjet:crd:field:TFTag=-
// +kubebuilder:validation:Required
Region *string `json:"region" tf:"-"`
// Specifies whether the replica is in either mounted or open-read-only mode. This attribute
// is only supported by Oracle instances. Oracle replicas operate in open-read-only mode unless otherwise specified. See Working with Oracle Read Replicas for more information.
// +kubebuilder:validation:Optional
ReplicaMode *string `json:"replicaMode,omitempty" tf:"replica_mode,omitempty"`
// Specifies that this resource is a Replicate
// database, and to use this value as the source database. This correlates to the
// identifier of another Amazon RDS Database to replicate (if replicating within
// a single region) or ARN of the Amazon RDS Database to replicate (if replicating
// cross-region). Note that if you are
// creating a cross-region replica of an encrypted database you will also need to
// specify a kms_key_id. See DB Instance Replication and Working with
// PostgreSQL and MySQL Read Replicas
// for more information on using Replication.
// +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/rds/v1beta1.Instance
// +kubebuilder:validation:Optional
ReplicateSourceDB *string `json:"replicateSourceDb,omitempty" tf:"replicate_source_db,omitempty"`
// Reference to a Instance in rds to populate replicateSourceDb.
// +kubebuilder:validation:Optional
ReplicateSourceDBRef *v1.Reference `json:"replicateSourceDbRef,omitempty" tf:"-"`
// Selector for a Instance in rds to populate replicateSourceDb.
// +kubebuilder:validation:Optional
ReplicateSourceDBSelector *v1.Selector `json:"replicateSourceDbSelector,omitempty" tf:"-"`
// A configuration block for restoring a DB instance to an arbitrary point in time. Requires the identifier argument to be set with the name of the new DB instance to be created. See Restore To Point In Time below for details.
// +kubebuilder:validation:Optional
RestoreToPointInTime []RestoreToPointInTimeParameters `json:"restoreToPointInTime,omitempty" tf:"restore_to_point_in_time,omitempty"`
// Restore from a Percona Xtrabackup in S3. See Importing Data into an Amazon RDS MySQL DB Instance
// +kubebuilder:validation:Optional
S3Import []S3ImportParameters `json:"s3Import,omitempty" tf:"s3_import,omitempty"`
// List of DB Security Groups to
// associate. Only used for DB Instances on the .
// +kubebuilder:validation:Optional
// +listType=set
SecurityGroupNames []*string `json:"securityGroupNames,omitempty" tf:"security_group_names,omitempty"`
// Determines whether a final DB snapshot is
// created before the DB instance is deleted. If true is specified, no DBSnapshot
// is created. If false is specified, a DB snapshot is created before the DB
// instance is deleted, using the value from final_snapshot_identifier. Default
// is false.
// +kubebuilder:validation:Optional
SkipFinalSnapshot *bool `json:"skipFinalSnapshot,omitempty" tf:"skip_final_snapshot,omitempty"`
// Specifies whether or not to create this
// database from a snapshot. This correlates to the snapshot ID you'd find in the
// RDS console, e.g: rds:production-2015-06-26-06-05.
// +kubebuilder:validation:Optional
SnapshotIdentifier *string `json:"snapshotIdentifier,omitempty" tf:"snapshot_identifier,omitempty"`
// Specifies whether the DB instance is
// encrypted. Note that if you are creating a cross-region read replica this field
// is ignored and you should instead declare kms_key_id with a valid ARN. The
// default is false if not specified.
// +kubebuilder:validation:Optional
StorageEncrypted *bool `json:"storageEncrypted,omitempty" tf:"storage_encrypted,omitempty"`
// The storage throughput value for the DB instance. Can only be set when storage_type is "gp3". Cannot be specified if the allocated_storage value is below a per-engine threshold. See the RDS User Guide for details.
// +kubebuilder:validation:Optional
StorageThroughput *float64 `json:"storageThroughput,omitempty" tf:"storage_throughput,omitempty"`
// One of "standard" (magnetic), "gp2" (general
// purpose SSD), "gp3" (general purpose SSD that needs iops independently)
// or "io1" (provisioned IOPS SSD). The default is "io1" if iops is specified,
// "gp2" if not.
// +kubebuilder:validation:Optional